[03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]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:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04: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:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32: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:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15: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:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35: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:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43: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:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:52:56]accept exits with 7 [06:52:56]New connection [06:52:56]New thread 3067202916 created [06:52:56]Thread 3067059556 joined [06:52:56]Waiting for new connection... [06:52:56] Sock 7.Parse request [06:52:56]Sock 7.Check first char [06:52:56]Sock 7.First char is OK [06:52:56]request: POST /json_proto HTTP/1.0 [06:52:56]Method: POST [06:52:56]URL: /json_proto [06:52:56]Method is POST - this is cgi request [06:52:56]url: /json_proto [06:52:56]query_string will be loaded in cgi processing [06:52:56]execute_cgi json_proto POST (null) [06:52:56]execute_cgi path=json_proto method=POST [06:52:56]POST find Content-Length [06:52:56]Host: 172.17.45.67:8080 [06:52:56]Content-Length: 677 [06:52:56]Content-Type: application/json [06:52:56] [06:52:56]POST finish read [06:52:56]Found Content-Length = 677 [06:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [06:52:56]execute_script... [06:52: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)593012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [06:52:56]POST & json_proto [06:52:56]process_json_proto [06:52:56]json parsed OK: [06:52:56]protocol is kg_v1.0 [06:52:56]action value=close_receipt [06:52:56]process_action close_receipt [06:52:56]cmd_close_receipt [06:52:56]MH_GetDate [06:52:56]Write to MH i2c: F0 00 00 3F 03 31 [06:52:56]Write i2c OK [06:52:56]MH_I2C_Read... [06:52:56]Read from MH i2c: F0 [06:52:56]MH_I2C_Read... [06:52:56]Read from MH i2c: F0 09 00 [06:52:56]MH_I2C_Read... [06:52:56]Read from MH i2c: F0 09 00 3F 03 00 CA EB C2 66 5F 7F 2B 66 86 [06:52:56]GetLastDocTimeStamp 1724034474 [06:52:56]current date 1724050378 [06:52:56]FM_GetShiftState [06:52:56]SAM_PROTO_GetShiftState [06:52:56]wFMCommunicate request_size=4 [06:52:56]MH_SAM_APDU [06:52:56]CAPDU: 80 13 01 00 [06:52:56]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [06:52:56]Write i2c OK [06:52:56]MH_I2C_Read... [06:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:56]Read from MH i2c: E2 [06:52:56]MH_I2C_Read... [06:52:56]Read from MH i2c: E2 0E 00 [06:52:56]MH_I2C_Read... [06:52:56]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 77 [06:52:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [06:52:56]wFMCommunicate OK [06:52:56]SAM_PROTO_GetShiftState done [06:52:56]FM_GetShiftState done [06:52:56]opened in 1724027888 [06:52:56]opened+sec_in_day 1724114288 [06:52:56]quantity*price = 60003 [06:52:56]sum+1 = 60004 [06:52:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 7 19.08.2024 06:52 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139172 ФПД: 81067895587912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T065258&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139172&fm=81067895587912&tin=02508201610067®Number=0000000000092569&sum=60000 [06:52:57]StoreToDocumentArchive [06:52:57]shift 452 fd 139172 [06:52:57]save to /storage/0452/doc_00139172 [06:52:57]save last doc name /storage/0452/doc_00139172 to /storage/kkm_last_doc_name [06:52:57]save OK [06:52:57]Clear old archive folders... [06:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:52:57]tlvbuf is 01D44CF0 [06:52:57]SAM_PROTO_ClearQueue [06:52:57]wFMCommunicate request_size=4 [06:52:57]MH_SAM_APDU [06:52:57]CAPDU: 80 09 00 00 [06:52:57]Write to MH i2c: E2 08 00 4D 03 80 09 00 00 00 00 00 00 C2 [06:52:57]Write i2c OK [06:52:57]MH_I2C_Read... [06:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:57]Read from MH i2c: E2 [06:52:57]MH_I2C_Read... [06:52:57]Read from MH i2c: E2 03 00 [06:52:57]MH_I2C_Read... [06:52:57]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [06:52:57]RAPDU: 90 00 [06:52:57]wFMCommunicate OK [06:52:57]SAM_PROTO_ClearQueue done [06:52:57]KKMCreateOFDPacket [06:52:57]OFDProtocolAddRootSTLVToBuf [06:52:57]FM_MakeSignedData [06:52:57]FM_MakeSignedData [06:52:57]SAM_PROTO_SignData [06:52:57]wFMCommunicate request_size=4 [06:52:57]MH_SAM_APDU [06:52:57]CAPDU: 80 0D 01 02 [06:52:57]Write to MH i2c: E2 08 00 4E 03 80 0D 01 02 00 00 00 00 CA [06:52:57]Write i2c OK [06:52:57]MH_I2C_Read... [06:52:57]Read from MH i2c: E2 [06:52:57]MH_I2C_Read... [06:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:57]Read from MH i2c: E2 03 00 [06:52:57]MH_I2C_Read... [06:52:57]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [06:52:57]RAPDU: 90 00 [06:52:57]wFMCommunicate OK [06:52:57]wFMCommunicate request_size=255 [06:52:57]MH_SAM_APDU [06:52: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 07 00 00 00 F4 03 04 00 CA EB C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 1F 02 00 35 04 06 00 49 [06:52:57]Write to MH i2c: E2 02 01 4F 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 07 00 00 00 F4 03 04 00 CA EB C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 1F 02 00 35 04 06 00 49 00 00 D1 [06:52:57]Write i2c OK [06:52:57]MH_I2C_Read... [06:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:57]Read from MH i2c: E2 [06:52:57]MH_I2C_Read... [06:52:57]Read from MH i2c: E2 03 00 [06:52:57]MH_I2C_Read... [06:52:57]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [06:52:57]RAPDU: 90 00 [06:52:57]wFMCommunicate OK [06:52:57]wFMCommunicate request_size=10 [06:52:57]MH_SAM_APDU [06:52:57]CAPDU: 80 0D 02 02 05 BB 17 1E 84 48 [06:52:57]Write to MH i2c: E2 0D 00 50 03 80 0D 02 02 05 00 BB 17 1E 84 48 00 00 93 [06:52:57]Write i2c OK [06:52:57]MH_I2C_Read... [06:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:58]Read from MH i2c: E2 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: E2 03 00 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [06:52:58]RAPDU: 90 00 [06:52:58]wFMCommunicate OK [06:52:58]wFMCommunicate request_size=4 [06:52:58]MH_SAM_APDU [06:52:58]CAPDU: 80 0D 03 02 [06:52:58]Write to MH i2c: E2 08 00 51 03 80 0D 03 02 00 00 00 00 CF [06:52:58]Write i2c OK [06:52:58]MH_I2C_Read... [06:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:58]Read from MH i2c: E2 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: E2 0B 00 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: E2 0B 00 51 03 00 05 B7 5D DC D5 ED A2 5D 90 00 86 [06:52:58]RAPDU: 05 B7 5D DC D5 ED A2 5D 90 00 [06:52:58]wFMCommunicate OK [06:52:58]SAM_PROTO_SignData done [06:52:58]FM_MakeSignedData done [06:52:58]CreateOFDProtocolMessage [06:52:58]wFMCommunicate request_size=4 [06:52:58]MH_SAM_APDU [06:52:58]CAPDU: 80 11 00 00 [06:52:58]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [06:52:58]Write i2c OK [06:52:58]MH_I2C_Read... [06:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:58]Read from MH i2c: E2 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: E2 17 00 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [06:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:52:58]wFMCommunicate OK [06:52:58]CreateOFDProtocolMessage done [06:52:58]OFDSenderStorePacket 139172 [06:52:58]StoreOFDPacket docnum=139172 [06:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C9 51 07 01 A5 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 07 00 00 00 F4 03 04 00 CA EB C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 1F 02 00 35 04 06 00 49 BB 17 1E 84 48 05 B7 5D DC D5 ED A2 5D [06:52:58]CheckFolder [06:52:58]dirname=/storage/ofd_packets [06:52:58]CheckFolder done [06:52:58]ProducePacketName [06:52:58]name=ofd_packets/00139172 [06:52:58]NVStorageSaveData ofd_packets/00139172 [06:52:58]File name is /storage/ofd_packets/00139172 [06:52:58]Write 301 bytes [06:52:58]NVStorageSaveData done [06:52:58]OFDSenderStorePacket done [06:52:58]KKMCreateOFDPacket done [06:52:58]NVStorageSaveData kkm_last_timestamp [06:52:58]File name is /storage/kkm_last_timestamp [06:52:58]Write 4 bytes [06:52:58]NVStorageSaveData done [06:52:58]ExternCall_PrintAddStr [06:52:58]wPrintStart [06:52:58]Write to MH i2c: 01 00 00 53 03 56 [06:52:58]Write i2c OK [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: 01 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: 01 07 00 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [06:52:58]RasterBufferAndPrint [06:52:58]line Счет N : (1)593012 [06:52:58]line ИНН: 02508201610067 [06:52:58]line Контрольно-Кассовый Чек [06:52:58]line ПРОДАЖА [06:52:58]line ТРК (МРК, ГНК) : 42 [06:52:58]line Товар: 2710124130 [06:52:58]line Аи-92-К-5 [06:52:58]line 8.850 * 67.80 [06:52:58]line = 600.03 [06:52:58]line НДС 12% НСП 1% [06:52:58]line > о реализуемом товаре [06:52:58]line ОКРУГЛЕНИЕ: -0.03 [06:52:58]line ИТОГО: 600.00 [06:52:58]line Внесено: 600.00 [06:52:58]line СДАЧА: 0.00 [06:52:58]line НСП 1% : 5.31 [06:52:58]line НДС 12% : 63.72 [06:52:58]line Наличными: 600.00 [06:52:58]line Безнал.: 0.00 [06:52:58]line Место: АЗС № 136 "Партнер Нефть" [06:52:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [06:52:58]line СНО: Общий режим [06:52:58]line Чек 7 19.08.2024 06:52 [06:52:58]line Смена: 452 ФФД: 1.0 [06:52:58]line ЗНМ: 0300000067 [06:52:58]line РНМ: 0000000000092569 [06:52:58]line Версия ККМ: 001 [06:52:58]line ФМ: 0000000000871776 [06:52:58]line ФД: 139172 [06:52:58]line ФПД: 81067895587912 [06:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T065258&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139172&fm=81067895587912&tin=02508201610067®Number=0000000000092569&sum=60000 [06:52:58]OFD Sender: Processing packet 139172 [packets to send 137, broken 136] [06:52:58]ProducePacketName [06:52:58]name=ofd_packets/00139172 [06:52:58]OFD Sender: To server: pG, [06:52:58]CommunicateWithHost lk.salyk.kg:30040 [06:52:58]ConnectInit lk.salyk.kg [06:52:58]written 0, free lines is 4095 [06:52:58]Connected sock=10 [06:52: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 37 36 0F 01 00 00 C9 51 07 01 A5 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 07 00 00 00 F4 03 04 00 CA EB C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 1F 02 00 35 04 06 00 49 BB 17 1E 84 48 05 B7 5D DC D5 ED A2 5D [06:52: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 37 36 4F 00 00 00 38 A9 47 00 CD 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 1F 02 00 F4 03 04 00 60 92 C2 66 B6 04 01 00 00 6B 4C 80 27 E9 11 94 AB [06:52:58]CommunicateWithHost err = 0 [06:52:58]CheckOFDResponse [06:52:58]1017 (14) - 77093643461234 [06:52:58]1041 (16) - 0000000000871776 [06:52:58]1040 (4) - 139172 [06:52:58]1012 (4) - 19.08.2024 00:31 [06:52:58]1206 (1) - 0 [06:52:58]OFD Sender: Remove packet 139172 [06:52:58]ProducePacketName [06:52:58]name=ofd_packets/00139172 [06:52:58]NVStorageDeleteData [06:52:58]Write to MH i2c: 01 00 00 7E 03 81 [06:52:58]Write i2c OK [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: 01 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: 01 07 00 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: 01 07 00 7E 03 00 00 00 00 00 C7 0C 5B [06:52:58]RasterBufferAndPrint [06:52:58]line [06:52:58]line [06:52:58]line [06:52:58]line [06:52:58]line [06:52:58]written 0, free lines is 3277 [06:52:58]MH_Cut [06:52:58]Write to MH i2c: D1 01 00 85 03 01 5A [06:52:58]Write i2c OK [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: D1 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: D1 01 00 [06:52:58]MH_I2C_Read... [06:52:58]Read from MH i2c: D1 01 00 85 03 00 59 [06:52:58]Write to MH i2c: 01 00 00 86 03 89 [06:52:58]Write i2c OK [06:52:58]MH_I2C_Read... [06:52:59]OFD Sender: No OFD packet to send [06:52:59]*** Cut start [06:52:59]*** Partial cut [06:52:59]*** CUTSNS_PIN = 1 [06:52:59]*** CUTSNS_PIN = 0 [06:52:59]*** Brake cut motor [06:53:00]Read from MH i2c: 01 [06:53:00]MH_I2C_Read... [06:53:00]*** Stop cut motor [06:53:00]*** Cut end [06:53:00]Read from MH i2c: 01 07 00 [06:53:00]MH_I2C_Read... [06:53:00]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 FF 0F 9E [06:53:00]process_action close_receipt done [06:53:00]requested_data is exist [06:53:00]produce_requested_data [06:53:00]requested_item fm.sn is exist - process it [06:53:00]wFMCommunicate request_size=4 [06:53:00]MH_SAM_APDU [06:53:00]CAPDU: 80 11 00 00 [06:53:00]Write to MH i2c: E2 08 00 87 03 80 11 00 00 00 00 00 00 04 [06:53:00]Write i2c OK [06:53:00]MH_I2C_Read... [06:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:00]Read from MH i2c: E2 [06:53:00]MH_I2C_Read... [06:53:00]Read from MH i2c: E2 17 00 [06:53:00]MH_I2C_Read... [06:53:00]Read from MH i2c: E2 17 00 87 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [06:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:53:00]wFMCommunicate OK [06:53:00]requested_item fd.num is exist - process it [06:53:00]SAM_PROTO_GetFieldsCounters [06:53:00]wFMCommunicate request_size=4 [06:53:00]MH_SAM_APDU [06:53:00]CAPDU: 80 13 00 00 [06:53:00]Write to MH i2c: E2 08 00 88 03 80 13 00 00 00 00 00 00 07 [06:53:00]Write i2c OK [06:53:00]MH_I2C_Read... [06:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:00]Read from MH i2c: E2 [06:53:00]MH_I2C_Read... [06:53:00]Read from MH i2c: E2 62 00 [06:53:00]MH_I2C_Read... [06:53:00]Read from MH i2c: E2 62 00 88 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [06:53: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:53:00]wFMCommunicate OK [06:53:00]SAM_PROTO_GetFieldsCounters done [06:53:00]requested_item shift.num is exist - process it [06:53:00]requested_item shift.opened is exist - process it [06:53:00]req_shift_opened [06:53:00]FM_GetShiftState [06:53:00]SAM_PROTO_GetShiftState [06:53:00]wFMCommunicate request_size=4 [06:53:00]MH_SAM_APDU [06:53:00]CAPDU: 80 13 01 00 [06:53:00]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [06:53:00]Write i2c OK [06:53:00]MH_I2C_Read... [06:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:00]Read from MH i2c: E2 [06:53:00]MH_I2C_Read... [06:53:00]Read from MH i2c: E2 0E 00 [06:53:00]MH_I2C_Read... [06:53:00]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C0 [06:53:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [06:53:00]wFMCommunicate OK [06:53:00]SAM_PROTO_GetShiftState done [06:53:00]FM_GetShiftState done [06:53:00]req_shift_opened done [06:53:00]requested_item shift.open_date is exist - process it [06:53:00]req_shift_open_date [06:53:00]req_shift_open_date done [06:53:00]produce_requested_data done [06:53:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139172,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [06:53:00]process_action_free close_receipt [06:53:00]json_value_free [06:53:00]json_value_free done [06:53:00]process_json_proto returns [06:53:00]Send response to host [06:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139172,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [06:53:00]free response buf [06:53:00]execute_script done [06:53:00]execute_script returns [06:53:00]free content buf [06:53:00]Sock 7.Close socket [06:53:00]Sock 7.Thread stoped [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:08]accept exits with 9 [07:05:08]New connection [07:05:08]New thread 3067059556 created [07:05:08]Thread 3067202916 joined [07:05:08]Waiting for new connection... [07:05:08] Sock 9.Parse request [07:05:08]Sock 9.Check first char [07:05:08]Sock 9.First char is OK [07:05:08]request: POST /json_proto HTTP/1.0 [07:05:08]Method: POST [07:05:08]URL: /json_proto [07:05:08]Method is POST - this is cgi request [07:05:08]url: /json_proto [07:05:08]query_string will be loaded in cgi processing [07:05:08]execute_cgi json_proto POST (null) [07:05:08]execute_cgi path=json_proto method=POST [07:05:08]POST find Content-Length [07:05:08]Host: 172.17.45.67:8080 [07:05:08]Content-Length: 659 [07:05:08]Content-Type: application/json [07:05:08] [07:05:08]POST finish read [07:05:08]Found Content-Length = 659 [07:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 12.030, "sum" : 827.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 827.00, "total" : 827.00, "payments": [ { "type": 0, "sum" : 827.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:08]execute_script... [07:05: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)593013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 12.030, "sum" : 827.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 827.00, "total" : 827.00, "payments": [ { "type": 0, "sum" : 827.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:08]POST & json_proto [07:05:08]process_json_proto [07:05:08]json parsed OK: [07:05:08]protocol is kg_v1.0 [07:05:08]action value=close_receipt [07:05:08]process_action close_receipt [07:05:08]cmd_close_receipt [07:05:08]MH_GetDate [07:05:08]Write to MH i2c: F0 00 00 8A 03 7C [07:05:08]Write i2c OK [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: F0 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: F0 09 00 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: F0 09 00 8A 03 00 A6 EE C2 66 5F 7F 2B 66 B0 [07:05:08]GetLastDocTimeStamp 1724050378 [07:05:08]current date 1724051110 [07:05:08]FM_GetShiftState [07:05:08]SAM_PROTO_GetShiftState [07:05:08]wFMCommunicate request_size=4 [07:05:08]MH_SAM_APDU [07:05:08]CAPDU: 80 13 01 00 [07:05:08]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [07:05:08]Write i2c OK [07:05:08]MH_I2C_Read... [07:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:08]Read from MH i2c: E2 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 0E 00 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C2 [07:05:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:05:08]wFMCommunicate OK [07:05:08]SAM_PROTO_GetShiftState done [07:05:08]FM_GetShiftState done [07:05:08]opened in 1724027888 [07:05:08]opened+sec_in_day 1724114288 [07:05:08]quantity*price = 82766 [07:05:08]sum+1 = 82767 [07:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 827.00 Внесено: 827.00 СДАЧА: 0.00 НСП 1% : 7.32 НДС 12% : 87.89 Наличными: 827.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 8 19.08.2024 07:05 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139173 ФПД: 144203088201455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T070510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139173&fm=144203088201455&tin=02508201610067®Number=0000000000092569&sum=82700 [07:05:09]StoreToDocumentArchive [07:05:09]shift 452 fd 139173 [07:05:09]save to /storage/0452/doc_00139173 [07:05:09]save last doc name /storage/0452/doc_00139173 to /storage/kkm_last_doc_name [07:05:09]save OK [07:05:09]Clear old archive folders... [07:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:05:09]tlvbuf is 01D73E00 [07:05:09]SAM_PROTO_ClearQueue [07:05:09]wFMCommunicate request_size=4 [07:05:09]MH_SAM_APDU [07:05:09]CAPDU: 80 09 00 00 [07:05:09]Write to MH i2c: E2 08 00 98 03 80 09 00 00 00 00 00 00 0D [07:05:09]Write i2c OK [07:05:09]MH_I2C_Read... [07:05:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:09]Read from MH i2c: E2 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: E2 03 00 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [07:05:09]RAPDU: 90 00 [07:05:09]wFMCommunicate OK [07:05:09]SAM_PROTO_ClearQueue done [07:05:09]KKMCreateOFDPacket [07:05:09]OFDProtocolAddRootSTLVToBuf [07:05:09]FM_MakeSignedData [07:05:09]FM_MakeSignedData [07:05:09]SAM_PROTO_SignData [07:05:09]wFMCommunicate request_size=4 [07:05:09]MH_SAM_APDU [07:05:09]CAPDU: 80 0D 01 02 [07:05:09]Write to MH i2c: E2 08 00 99 03 80 0D 01 02 00 00 00 00 15 [07:05:09]Write i2c OK [07:05:09]MH_I2C_Read... [07:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:05:09]Read from MH i2c: E2 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: E2 03 00 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [07:05:09]RAPDU: 90 00 [07:05:09]wFMCommunicate OK [07:05:09]wFMCommunicate request_size=253 [07:05:09]MH_SAM_APDU [07:05:09]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 FE 2E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 4E 43 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 43 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 22 00 00 00 00 07 04 06 00 0C 43 01 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 A6 EE C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 1F 02 00 35 04 06 00 83 26 E5 D9 06 EF [07:05:09]Write to MH i2c: E2 00 01 9A 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 FE 2E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 4E 43 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 43 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 22 00 00 00 00 07 04 06 00 0C 43 01 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 A6 EE C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 1F 02 00 35 04 06 00 83 26 E5 D9 06 EF 00 00 2F [07:05:09]Write i2c OK [07:05:09]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 03 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [07:05:10]RAPDU: 90 00 [07:05:10]wFMCommunicate OK [07:05:10]wFMCommunicate request_size=4 [07:05:10]MH_SAM_APDU [07:05:10]CAPDU: 80 0D 03 02 [07:05:10]Write to MH i2c: E2 08 00 9B 03 80 0D 03 02 00 00 00 00 19 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 0B 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 0B 00 9B 03 00 22 27 0C 84 B2 14 85 02 90 00 40 [07:05:10]RAPDU: 22 27 0C 84 B2 14 85 02 90 00 [07:05:10]wFMCommunicate OK [07:05:10]SAM_PROTO_SignData done [07:05:10]FM_MakeSignedData done [07:05:10]CreateOFDProtocolMessage [07:05:10]wFMCommunicate request_size=4 [07:05:10]MH_SAM_APDU [07:05:10]CAPDU: 80 11 00 00 [07:05:10]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 17 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [07:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:05:10]wFMCommunicate OK [07:05:10]CreateOFDProtocolMessage done [07:05:10]OFDSenderStorePacket 139173 [07:05:10]StoreOFDPacket docnum=139173 [07:05:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 2A 70 00 01 7D 1C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 FE 2E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 4E 43 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 43 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 22 00 00 00 00 07 04 06 00 0C 43 01 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 A6 EE C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 1F 02 00 35 04 06 00 83 26 E5 D9 06 EF 22 27 0C 84 B2 14 85 02 [07:05:10]CheckFolder [07:05:10]dirname=/storage/ofd_packets [07:05:10]CheckFolder done [07:05:10]ProducePacketName [07:05:10]name=ofd_packets/00139173 [07:05:10]NVStorageSaveData ofd_packets/00139173 [07:05:10]File name is /storage/ofd_packets/00139173 [07:05:10]Write 294 bytes [07:05:10]NVStorageSaveData done [07:05:10]OFDSenderStorePacket done [07:05:10]KKMCreateOFDPacket done [07:05:10]NVStorageSaveData kkm_last_timestamp [07:05:10]File name is /storage/kkm_last_timestamp [07:05:10]Write 4 bytes [07:05:10]NVStorageSaveData done [07:05:10]ExternCall_PrintAddStr [07:05:10]wPrintStart [07:05:10]Write to MH i2c: 01 00 00 9D 03 A0 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 07 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 FF 0F B5 [07:05:10]RasterBufferAndPrint [07:05:10]line Счет N : (1)593013 [07:05:10]line ИНН: 02508201610067 [07:05:10]line Контрольно-Кассовый Чек [07:05:10]line ПРОДАЖА [07:05:10]line ТРК (МРК, ГНК) : 53 [07:05:10]line Товар: 2710124130 [07:05:10]line SU-92 [07:05:10]line 12.030 * 68.80 [07:05:10]line = 827.66 [07:05:10]line НДС 12% НСП 1% [07:05:10]line > о реализуемом товаре [07:05:10]line ОКРУГЛЕНИЕ: -0.66 [07:05:10]line ИТОГО: 827.00 [07:05:10]line Внесено: 827.00 [07:05:10]line СДАЧА: 0.00 [07:05:10]line НСП 1% : 7.32 [07:05:10]line НДС 12% : 87.89 [07:05:10]line Наличными: 827.00 [07:05:10]line Безнал.: 0.00 [07:05:10]line Место: АЗС № 136 "Партнер Нефть" [07:05:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:05:10]line СНО: Общий режим [07:05:10]line Чек 8 19.08.2024 07:05 [07:05:10]line Смена: 452 ФФД: 1.0 [07:05:10]line ЗНМ: 0300000067 [07:05:10]line РНМ: 0000000000092569 [07:05:10]line Версия ККМ: 001 [07:05:10]line ФМ: 0000000000871776 [07:05:10]line ФД: 139173 [07:05:10]line ФПД: 144203088201455 [07:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T070510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139173&fm=144203088201455&tin=02508201610067®Number=0000000000092569&sum=82700 [07:05:10]OFD Sender: Processing packet 139173 [packets to send 137, broken 136] [07:05:10]ProducePacketName [07:05:10]name=ofd_packets/00139173 [07:05:10]OFD Sender: To server: pG, [07:05:10]CommunicateWithHost lk.salyk.kg:30040 [07:05:10]ConnectInit lk.salyk.kg [07:05:10]written 0, free lines is 4095 [07:05:10]Connected sock=11 [07:05: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 37 36 08 01 00 00 2A 70 00 01 7D 1C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 FE 2E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 4E 43 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 43 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 22 00 00 00 00 07 04 06 00 0C 43 01 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 A6 EE C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 1F 02 00 35 04 06 00 83 26 E5 D9 06 EF 22 27 0C 84 B2 14 85 02 [07:05:11]Write to MH i2c: 01 00 00 C8 03 CB [07:05:11]Write i2c OK [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: 01 [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: 01 07 00 [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: 01 07 00 C8 03 00 00 00 00 00 BE 0C 9C [07:05:11]RasterBufferAndPrint [07:05:11]line [07:05:11]line [07:05:11]line [07:05:11]line [07:05:11]line [07:05:11]written 0, free lines is 3265 [07:05:11]MH_Cut [07:05:11]Write to MH i2c: D1 01 00 CF 03 01 A4 [07:05:11]Write i2c OK [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: D1 [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: D1 01 00 [07:05:11]MH_I2C_Read... [07:05:11]Read from MH i2c: D1 01 00 CF 03 00 A3 [07:05:11]Write to MH i2c: 01 00 00 D0 03 D3 [07:05:11]Write i2c OK [07:05:11]MH_I2C_Read... [07:05: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 37 36 4F 00 00 00 73 BE 47 00 BA 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 37 36 10 04 04 00 A5 1F 02 00 F4 03 04 00 3D 95 C2 66 B6 04 01 00 00 FB 1F C6 1E 56 AC C9 FC [07:05:11]CommunicateWithHost err = 0 [07:05:11]CheckOFDResponse [07:05:11]1017 (14) - 77093643461234 [07:05:11]1041 (16) - 0000000000871776 [07:05:11]1040 (4) - 139173 [07:05:11]1012 (4) - 19.08.2024 00:43 [07:05:11]1206 (1) - 0 [07:05:11]OFD Sender: Remove packet 139173 [07:05:11]ProducePacketName [07:05:11]name=ofd_packets/00139173 [07:05:11]NVStorageDeleteData [07:05:11]OFD Sender: No OFD packet to send [07:05:11]*** Cut start [07:05:11]*** Partial cut [07:05:11]*** CUTSNS_PIN = 1 [07:05:11]*** CUTSNS_PIN = 0 [07:05:12]*** Brake cut motor [07:05:12]Read from MH i2c: 01 [07:05:12]MH_I2C_Read... [07:05:12]*** Stop cut motor [07:05:12]*** Cut end [07:05:12]Read from MH i2c: 01 07 00 [07:05:12]MH_I2C_Read... [07:05:12]Read from MH i2c: 01 07 00 D0 03 00 00 00 00 00 FF 0F E8 [07:05:12]process_action close_receipt done [07:05:12]requested_data is exist [07:05:12]produce_requested_data [07:05:12]requested_item fm.sn is exist - process it [07:05:12]wFMCommunicate request_size=4 [07:05:12]MH_SAM_APDU [07:05:12]CAPDU: 80 11 00 00 [07:05:12]Write to MH i2c: E2 08 00 D1 03 80 11 00 00 00 00 00 00 4E [07:05:12]Write i2c OK [07:05:12]MH_I2C_Read... [07:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:12]Read from MH i2c: E2 [07:05:12]MH_I2C_Read... [07:05:12]Read from MH i2c: E2 17 00 [07:05:12]MH_I2C_Read... [07:05:12]Read from MH i2c: E2 17 00 D1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [07:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:05:12]wFMCommunicate OK [07:05:12]requested_item fd.num is exist - process it [07:05:12]SAM_PROTO_GetFieldsCounters [07:05:12]wFMCommunicate request_size=4 [07:05:12]MH_SAM_APDU [07:05:12]CAPDU: 80 13 00 00 [07:05:12]Write to MH i2c: E2 08 00 D2 03 80 13 00 00 00 00 00 00 51 [07:05:12]Write i2c OK [07:05:12]MH_I2C_Read... [07:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:05:12]Read from MH i2c: E2 [07:05:12]MH_I2C_Read... [07:05:12]Read from MH i2c: E2 62 00 [07:05:12]MH_I2C_Read... [07:05:12]Read from MH i2c: E2 62 00 D2 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [07:05:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:05:12]wFMCommunicate OK [07:05:12]SAM_PROTO_GetFieldsCounters done [07:05:12]requested_item shift.num is exist - process it [07:05:12]requested_item shift.opened is exist - process it [07:05:12]req_shift_opened [07:05:12]FM_GetShiftState [07:05:12]SAM_PROTO_GetShiftState [07:05:12]wFMCommunicate request_size=4 [07:05:12]MH_SAM_APDU [07:05:12]CAPDU: 80 13 01 00 [07:05:12]Write to MH i2c: E2 08 00 D3 03 80 13 01 00 00 00 00 00 53 [07:05:12]Write i2c OK [07:05:12]MH_I2C_Read... [07:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:12]Read from MH i2c: E2 [07:05:12]MH_I2C_Read... [07:05:12]Read from MH i2c: E2 0E 00 [07:05:12]MH_I2C_Read... [07:05:12]Read from MH i2c: E2 0E 00 D3 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0A [07:05:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:05:12]wFMCommunicate OK [07:05:12]SAM_PROTO_GetShiftState done [07:05:12]FM_GetShiftState done [07:05:12]req_shift_opened done [07:05:12]requested_item shift.open_date is exist - process it [07:05:12]req_shift_open_date [07:05:12]req_shift_open_date done [07:05:12]produce_requested_data done [07:05:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139173,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [07:05:12]process_action_free close_receipt [07:05:12]json_value_free [07:05:12]json_value_free done [07:05:12]process_json_proto returns [07:05:12]Send response to host [07:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139173,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [07:05:12]free response buf [07:05:12]execute_script done [07:05:12]execute_script returns [07:05:12]free content buf [07:05:12]Sock 9.Close socket [07:05:12]Sock 9.Thread stoped [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08: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:11]accept exits with 7 [07:10:11]New connection [07:10:11]New thread 3067202916 created [07:10:11]Thread 3067059556 joined [07:10:11]Waiting for new connection... [07:10:11] Sock 7.Parse request [07:10:11]Sock 7.Check first char [07:10:11]Sock 7.First char is OK [07:10:11]request: POST /json_proto HTTP/1.0 [07:10:11]Method: POST [07:10:11]URL: /json_proto [07:10:11]Method is POST - this is cgi request [07:10:11]url: /json_proto [07:10:11]query_string will be loaded in cgi processing [07:10:11]execute_cgi json_proto POST (null) [07:10:11]execute_cgi path=json_proto method=POST [07:10:11]POST find Content-Length [07:10:11]Host: 172.17.45.67:8080 [07:10:11]Content-Length: 658 [07:10:11]Content-Type: application/json [07:10:11] [07:10:11]POST finish read [07:10:11]Found Content-Length = 658 [07:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:11]execute_script... [07:10:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:11]POST & json_proto [07:10:11]process_json_proto [07:10:11]json parsed OK: [07:10:11]protocol is kg_v1.0 [07:10:11]action value=close_receipt [07:10:11]process_action close_receipt [07:10:11]cmd_close_receipt [07:10:11]MH_GetDate [07:10:11]Write to MH i2c: F0 00 00 D4 03 C6 [07:10:11]Write i2c OK [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: F0 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: F0 09 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: F0 09 00 D4 03 00 D5 EF C2 66 5F 7F 2B 66 2A [07:10:11]GetLastDocTimeStamp 1724051110 [07:10:11]current date 1724051413 [07:10:11]FM_GetShiftState [07:10:11]SAM_PROTO_GetShiftState [07:10:11]wFMCommunicate request_size=4 [07:10:11]MH_SAM_APDU [07:10:11]CAPDU: 80 13 01 00 [07:10:11]Write to MH i2c: E2 08 00 D5 03 80 13 01 00 00 00 00 00 55 [07:10:11]Write i2c OK [07:10:11]MH_I2C_Read... [07:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:11]Read from MH i2c: E2 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 0E 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 0E 00 D5 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0C [07:10:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:10:11]wFMCommunicate OK [07:10:11]SAM_PROTO_GetShiftState done [07:10:11]FM_GetShiftState done [07:10:11]opened in 1724027888 [07:10:11]opened+sec_in_day 1724114288 [07:10:11]quantity*price = 50017 [07:10:11]sum+1 = 50019 [07:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 9 19.08.2024 07:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139174 ФПД: 151096699762426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T071013&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139174&fm=151096699762426&tin=02508201610067®Number=0000000000092569&sum=50000 [07:10:12]StoreToDocumentArchive [07:10:12]shift 452 fd 139174 [07:10:12]save to /storage/0452/doc_00139174 [07:10:12]save last doc name /storage/0452/doc_00139174 to /storage/kkm_last_doc_name [07:10:12]save OK [07:10:12]Clear old archive folders... [07:10:12]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:10:12]tlvbuf is 01D62500 [07:10:12]SAM_PROTO_ClearQueue [07:10:12]wFMCommunicate request_size=4 [07:10:12]MH_SAM_APDU [07:10:12]CAPDU: 80 09 00 00 [07:10:12]Write to MH i2c: E2 08 00 E2 03 80 09 00 00 00 00 00 00 57 [07:10:12]Write i2c OK [07:10:12]MH_I2C_Read... [07:10:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:12]Read from MH i2c: E2 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [07:10:12]RAPDU: 90 00 [07:10:12]wFMCommunicate OK [07:10:12]SAM_PROTO_ClearQueue done [07:10:12]KKMCreateOFDPacket [07:10:12]OFDProtocolAddRootSTLVToBuf [07:10:12]FM_MakeSignedData [07:10:12]FM_MakeSignedData [07:10:12]SAM_PROTO_SignData [07:10:12]wFMCommunicate request_size=4 [07:10:12]MH_SAM_APDU [07:10:12]CAPDU: 80 0D 01 02 [07:10:12]Write to MH i2c: E2 08 00 E3 03 80 0D 01 02 00 00 00 00 5F [07:10:12]Write i2c OK [07:10:12]MH_I2C_Read... [07:10:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:12]Read from MH i2c: E2 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [07:10:12]RAPDU: 90 00 [07:10:12]wFMCommunicate OK [07:10:12]wFMCommunicate request_size=253 [07:10:12]MH_SAM_APDU [07:10:12]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D5 EF C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 1F 02 00 35 04 06 00 89 6B F1 1D B6 FA [07:10:12]Write to MH i2c: E2 00 01 E4 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D5 EF C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 1F 02 00 35 04 06 00 89 6B F1 1D B6 FA 00 00 AB [07:10:12]Write i2c OK [07:10:12]MH_I2C_Read... [07:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:12]Read from MH i2c: E2 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [07:10:12]RAPDU: 90 00 [07:10:12]wFMCommunicate OK [07:10:12]wFMCommunicate request_size=4 [07:10:12]MH_SAM_APDU [07:10:12]CAPDU: 80 0D 03 02 [07:10:12]Write to MH i2c: E2 08 00 E5 03 80 0D 03 02 00 00 00 00 63 [07:10:12]Write i2c OK [07:10:12]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 0B 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 0B 00 E5 03 00 64 03 A6 35 44 0C 9C F9 90 00 8B [07:10:13]RAPDU: 64 03 A6 35 44 0C 9C F9 90 00 [07:10:13]wFMCommunicate OK [07:10:13]SAM_PROTO_SignData done [07:10:13]FM_MakeSignedData done [07:10:13]CreateOFDProtocolMessage [07:10:13]wFMCommunicate request_size=4 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 11 00 00 [07:10:13]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 17 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BA [07:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:10:13]wFMCommunicate OK [07:10:13]CreateOFDProtocolMessage done [07:10:13]OFDSenderStorePacket 139174 [07:10:13]StoreOFDPacket docnum=139174 [07:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 DC DF 00 01 AA 72 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D5 EF C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 1F 02 00 35 04 06 00 89 6B F1 1D B6 FA 64 03 A6 35 44 0C 9C F9 [07:10:13]CheckFolder [07:10:13]dirname=/storage/ofd_packets [07:10:13]CheckFolder done [07:10:13]ProducePacketName [07:10:13]name=ofd_packets/00139174 [07:10:13]NVStorageSaveData ofd_packets/00139174 [07:10:13]File name is /storage/ofd_packets/00139174 [07:10:13]Write 294 bytes [07:10:13]NVStorageSaveData done [07:10:13]OFDSenderStorePacket done [07:10:13]KKMCreateOFDPacket done [07:10:13]NVStorageSaveData kkm_last_timestamp [07:10:13]File name is /storage/kkm_last_timestamp [07:10:13]Write 4 bytes [07:10:13]NVStorageSaveData done [07:10:13]ExternCall_PrintAddStr [07:10:13]wPrintStart [07:10:13]Write to MH i2c: 01 00 00 E7 03 EA [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 07 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [07:10:13]RasterBufferAndPrint [07:10:13]line Счет N : (1)593014 [07:10:13]line ИНН: 02508201610067 [07:10:13]line Контрольно-Кассовый Чек [07:10:13]line ПРОДАЖА [07:10:13]line ТРК (МРК, ГНК) : 53 [07:10:13]line Товар: 2710124130 [07:10:13]line SU-92 [07:10:13]line 7.270 * 68.80 [07:10:13]line = 500.18 [07:10:13]line НДС 12% НСП 1% [07:10:13]line > о реализуемом товаре [07:10:13]line ОКРУГЛЕНИЕ: -0.18 [07:10:13]line ИТОГО: 500.00 [07:10:13]line Внесено: 500.00 [07:10:13]line СДАЧА: 0.00 [07:10:13]line НСП 1% : 4.43 [07:10:13]line НДС 12% : 53.12 [07:10:13]line Наличными: 500.00 [07:10:13]line Безнал.: 0.00 [07:10:13]line Место: АЗС № 136 "Партнер Нефть" [07:10:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:10:13]line СНО: Общий режим [07:10:13]line Чек 9 19.08.2024 07:10 [07:10:13]line Смена: 452 ФФД: 1.0 [07:10:13]line ЗНМ: 0300000067 [07:10:13]line РНМ: 0000000000092569 [07:10:13]line Версия ККМ: 001 [07:10:13]line ФМ: 0000000000871776 [07:10:13]line ФД: 139174 [07:10:13]line ФПД: 151096699762426 [07:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T071013&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139174&fm=151096699762426&tin=02508201610067®Number=0000000000092569&sum=50000 [07:10:13]OFD Sender: Processing packet 139174 [packets to send 137, broken 136] [07:10:13]ProducePacketName [07:10:13]name=ofd_packets/00139174 [07:10:13]OFD Sender: To server: pG, [07:10:13]CommunicateWithHost lk.salyk.kg:30040 [07:10:13]ConnectInit lk.salyk.kg [07:10:13]written 0, free lines is 4095 [07:10:13]Connected sock=10 [07:10:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 DC DF 00 01 AA 72 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D5 EF C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 1F 02 00 35 04 06 00 89 6B F1 1D B6 FA 64 03 A6 35 44 0C 9C F9 [07:10: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 37 36 4F 00 00 00 B8 5E 47 00 E6 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 37 36 10 04 04 00 A6 1F 02 00 F4 03 04 00 6B 96 C2 66 B6 04 01 00 00 C8 A1 4E 00 F7 59 0D 64 [07:10:13]CommunicateWithHost err = 0 [07:10:13]CheckOFDResponse [07:10:13]1017 (14) - 77093643461234 [07:10:13]1041 (16) - 0000000000871776 [07:10:13]1040 (4) - 139174 [07:10:13]1012 (4) - 19.08.2024 00:48 [07:10:13]1206 (1) - 0 [07:10:13]OFD Sender: Remove packet 139174 [07:10:13]ProducePacketName [07:10:13]name=ofd_packets/00139174 [07:10:13]NVStorageDeleteData [07:10:13]Write to MH i2c: 01 00 00 12 04 16 [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 07 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 BB 0C E4 [07:10:13]RasterBufferAndPrint [07:10:13]line [07:10:13]line [07:10:13]line [07:10:13]line [07:10:13]line [07:10:13]written 0, free lines is 3266 [07:10:13]MH_Cut [07:10:13]Write to MH i2c: D1 01 00 19 04 01 EF [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: D1 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: D1 01 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: D1 01 00 19 04 00 EE [07:10:13]Write to MH i2c: 01 00 00 1A 04 1E [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:14]OFD Sender: No OFD packet to send [07:10:14]*** Cut start [07:10:14]*** Partial cut [07:10:14]*** CUTSNS_PIN = 1 [07:10:14]*** CUTSNS_PIN = 0 [07:10:14]*** Brake cut motor [07:10:15]Read from MH i2c: 01 [07:10:15]MH_I2C_Read... [07:10:15]*** Stop cut motor [07:10:15]*** Cut end [07:10:15]Read from MH i2c: 01 07 00 [07:10:15]MH_I2C_Read... [07:10:15]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [07:10:15]process_action close_receipt done [07:10:15]requested_data is exist [07:10:15]produce_requested_data [07:10:15]requested_item fm.sn is exist - process it [07:10:15]wFMCommunicate request_size=4 [07:10:15]MH_SAM_APDU [07:10:15]CAPDU: 80 11 00 00 [07:10:15]Write to MH i2c: E2 08 00 1B 04 80 11 00 00 00 00 00 00 99 [07:10:15]Write i2c OK [07:10:15]MH_I2C_Read... [07:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:15]Read from MH i2c: E2 [07:10:15]MH_I2C_Read... [07:10:15]Read from MH i2c: E2 17 00 [07:10:15]MH_I2C_Read... [07:10:15]Read from MH i2c: E2 17 00 1B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F0 [07:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:10:15]wFMCommunicate OK [07:10:15]requested_item fd.num is exist - process it [07:10:15]SAM_PROTO_GetFieldsCounters [07:10:15]wFMCommunicate request_size=4 [07:10:15]MH_SAM_APDU [07:10:15]CAPDU: 80 13 00 00 [07:10:15]Write to MH i2c: E2 08 00 1C 04 80 13 00 00 00 00 00 00 9C [07:10:15]Write i2c OK [07:10:15]MH_I2C_Read... [07:10:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:15]Read from MH i2c: E2 [07:10:15]MH_I2C_Read... [07:10:15]Read from MH i2c: E2 62 00 [07:10:15]MH_I2C_Read... [07:10:15]Read from MH i2c: E2 62 00 1C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [07:10:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:15]wFMCommunicate OK [07:10:15]SAM_PROTO_GetFieldsCounters done [07:10:15]requested_item shift.num is exist - process it [07:10:15]requested_item shift.opened is exist - process it [07:10:15]req_shift_opened [07:10:15]FM_GetShiftState [07:10:15]SAM_PROTO_GetShiftState [07:10:15]wFMCommunicate request_size=4 [07:10:15]MH_SAM_APDU [07:10:15]CAPDU: 80 13 01 00 [07:10:15]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [07:10:15]Write i2c OK [07:10:15]MH_I2C_Read... [07:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:15]Read from MH i2c: E2 [07:10:15]MH_I2C_Read... [07:10:15]Read from MH i2c: E2 0E 00 [07:10:15]MH_I2C_Read... [07:10:15]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 55 [07:10:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:10:15]wFMCommunicate OK [07:10:15]SAM_PROTO_GetShiftState done [07:10:15]FM_GetShiftState done [07:10:15]req_shift_opened done [07:10:15]requested_item shift.open_date is exist - process it [07:10:15]req_shift_open_date [07:10:15]req_shift_open_date done [07:10:15]produce_requested_data done [07:10:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139174,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [07:10:15]process_action_free close_receipt [07:10:15]json_value_free [07:10:15]json_value_free done [07:10:15]process_json_proto returns [07:10:15]Send response to host [07:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139174,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [07:10:15]free response buf [07:10:15]execute_script done [07:10:15]execute_script returns [07:10:15]free content buf [07:10:15]Sock 7.Close socket [07:10:15]Sock 7.Thread stoped [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:16]accept exits with 9 [07:14:16]New connection [07:14:16]New thread 3067059556 created [07:14:16]Thread 3067202916 joined [07:14:16]Waiting for new connection... [07:14:16] Sock 9.Parse request [07:14:16]Sock 9.Check first char [07:14:16]Sock 9.First char is OK [07:14:16]request: POST /json_proto HTTP/1.0 [07:14:16]Method: POST [07:14:16]URL: /json_proto [07:14:16]Method is POST - this is cgi request [07:14:16]url: /json_proto [07:14:16]query_string will be loaded in cgi processing [07:14:16]execute_cgi json_proto POST (null) [07:14:16]execute_cgi path=json_proto method=POST [07:14:16]POST find Content-Length [07:14:16]Host: 172.17.45.67:8080 [07:14:16]Content-Length: 678 [07:14:16]Content-Type: application/json [07:14:16] [07:14:16]POST finish read [07:14:16]Found Content-Length = 678 [07:14:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:14:16]execute_script... [07:14: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)593015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:14:16]POST & json_proto [07:14:16]process_json_proto [07:14:16]json parsed OK: [07:14:16]protocol is kg_v1.0 [07:14:16]action value=close_receipt [07:14:16]process_action close_receipt [07:14:16]cmd_close_receipt [07:14:16]MH_GetDate [07:14:16]Write to MH i2c: F0 00 00 1E 04 11 [07:14:16]Write i2c OK [07:14:16]MH_I2C_Read... [07:14:16]Read from MH i2c: F0 [07:14:16]MH_I2C_Read... [07:14:16]Read from MH i2c: F0 09 00 [07:14:16]MH_I2C_Read... [07:14:16]Read from MH i2c: F0 09 00 1E 04 00 C9 F0 C2 66 5F 7F 2B 66 6A [07:14:16]GetLastDocTimeStamp 1724051413 [07:14:16]current date 1724051657 [07:14:16]FM_GetShiftState [07:14:16]SAM_PROTO_GetShiftState [07:14:16]wFMCommunicate request_size=4 [07:14:16]MH_SAM_APDU [07:14:16]CAPDU: 80 13 01 00 [07:14:16]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [07:14:16]Write i2c OK [07:14:16]MH_I2C_Read... [07:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:16]Read from MH i2c: E2 [07:14:16]MH_I2C_Read... [07:14:16]Read from MH i2c: E2 0E 00 [07:14:16]MH_I2C_Read... [07:14:16]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 57 [07:14:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:14:16]wFMCommunicate OK [07:14:16]SAM_PROTO_GetShiftState done [07:14:16]FM_GetShiftState done [07:14:16]opened in 1724027888 [07:14:16]opened+sec_in_day 1724114288 [07:14:16]quantity*price = 70037 [07:14:16]sum+1 = 70038 [07:14:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 10 19.08.2024 07:14 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139175 ФПД: 83637319660195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T071417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139175&fm=83637319660195&tin=02508201610067®Number=0000000000092569&sum=70000 [07:14:17]StoreToDocumentArchive [07:14:17]shift 452 fd 139175 [07:14:17]save to /storage/0452/doc_00139175 [07:14:17]save last doc name /storage/0452/doc_00139175 to /storage/kkm_last_doc_name [07:14:17]save OK [07:14:17]Clear old archive folders... [07:14:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:17]tlvbuf is 01D6C9B0 [07:14:17]SAM_PROTO_ClearQueue [07:14:17]wFMCommunicate request_size=4 [07:14:17]MH_SAM_APDU [07:14:17]CAPDU: 80 09 00 00 [07:14:17]Write to MH i2c: E2 08 00 2C 04 80 09 00 00 00 00 00 00 A2 [07:14:17]Write i2c OK [07:14:17]MH_I2C_Read... [07:14:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:17]Read from MH i2c: E2 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 03 00 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [07:14:17]RAPDU: 90 00 [07:14:17]wFMCommunicate OK [07:14:17]SAM_PROTO_ClearQueue done [07:14:17]KKMCreateOFDPacket [07:14:17]OFDProtocolAddRootSTLVToBuf [07:14:17]FM_MakeSignedData [07:14:17]FM_MakeSignedData [07:14:17]SAM_PROTO_SignData [07:14:17]wFMCommunicate request_size=4 [07:14:17]MH_SAM_APDU [07:14:17]CAPDU: 80 0D 01 02 [07:14:17]Write to MH i2c: E2 08 00 2D 04 80 0D 01 02 00 00 00 00 AA [07:14:17]Write i2c OK [07:14:17]MH_I2C_Read... [07:14:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:17]Read from MH i2c: E2 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 03 00 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [07:14:17]RAPDU: 90 00 [07:14:17]wFMCommunicate OK [07:14:17]wFMCommunicate request_size=255 [07:14:17]MH_SAM_APDU [07:14: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0A 00 00 00 F4 03 04 00 C9 F0 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 1F 02 00 35 04 06 00 4C [07:14:17]Write to MH i2c: E2 02 01 2E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0A 00 00 00 F4 03 04 00 C9 F0 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 1F 02 00 35 04 06 00 4C 00 00 DE [07:14:17]Write i2c OK [07:14:17]MH_I2C_Read... [07:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:17]Read from MH i2c: E2 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 03 00 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [07:14:17]RAPDU: 90 00 [07:14:17]wFMCommunicate OK [07:14:17]wFMCommunicate request_size=10 [07:14:17]MH_SAM_APDU [07:14:17]CAPDU: 80 0D 02 02 05 11 54 BA 72 A3 [07:14:17]Write to MH i2c: E2 0D 00 2F 04 80 0D 02 02 05 00 11 54 BA 72 A3 00 00 EB [07:14:17]Write i2c OK [07:14:17]MH_I2C_Read... [07:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:17]Read from MH i2c: E2 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 03 00 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [07:14:17]RAPDU: 90 00 [07:14:17]wFMCommunicate OK [07:14:17]wFMCommunicate request_size=4 [07:14:17]MH_SAM_APDU [07:14:17]CAPDU: 80 0D 03 02 [07:14:17]Write to MH i2c: E2 08 00 30 04 80 0D 03 02 00 00 00 00 AF [07:14:17]Write i2c OK [07:14:17]MH_I2C_Read... [07:14:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:17]Read from MH i2c: E2 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 0B 00 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 0B 00 30 04 00 75 C4 73 A7 1E DA DC 74 90 00 4B [07:14:17]RAPDU: 75 C4 73 A7 1E DA DC 74 90 00 [07:14:17]wFMCommunicate OK [07:14:17]SAM_PROTO_SignData done [07:14:17]FM_MakeSignedData done [07:14:17]CreateOFDProtocolMessage [07:14:17]wFMCommunicate request_size=4 [07:14:17]MH_SAM_APDU [07:14:17]CAPDU: 80 11 00 00 [07:14:17]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [07:14:17]Write i2c OK [07:14:17]MH_I2C_Read... [07:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:17]Read from MH i2c: E2 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 17 00 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [07:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:14:17]wFMCommunicate OK [07:14:17]CreateOFDProtocolMessage done [07:14:17]OFDSenderStorePacket 139175 [07:14:17]StoreOFDPacket docnum=139175 [07:14:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 8B 07 01 65 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0A 00 00 00 F4 03 04 00 C9 F0 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 1F 02 00 35 04 06 00 4C 11 54 BA 72 A3 75 C4 73 A7 1E DA DC 74 [07:14:17]CheckFolder [07:14:17]dirname=/storage/ofd_packets [07:14:17]CheckFolder done [07:14:17]ProducePacketName [07:14:17]name=ofd_packets/00139175 [07:14:17]NVStorageSaveData ofd_packets/00139175 [07:14:17]File name is /storage/ofd_packets/00139175 [07:14:17]Write 301 bytes [07:14:17]NVStorageSaveData done [07:14:17]OFDSenderStorePacket done [07:14:17]KKMCreateOFDPacket done [07:14:17]NVStorageSaveData kkm_last_timestamp [07:14:17]File name is /storage/kkm_last_timestamp [07:14:17]Write 4 bytes [07:14:17]NVStorageSaveData done [07:14:17]ExternCall_PrintAddStr [07:14:17]wPrintStart [07:14:17]Write to MH i2c: 01 00 00 32 04 36 [07:14:17]Write i2c OK [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: 01 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: 01 07 00 [07:14:17]MH_I2C_Read... [07:14:17]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [07:14:17]RasterBufferAndPrint [07:14:17]line Счет N : (1)593015 [07:14:17]line ИНН: 02508201610067 [07:14:17]line Контрольно-Кассовый Чек [07:14:17]line ПРОДАЖА [07:14:17]line ТРК (МРК, ГНК) : 62 [07:14:17]line Товар: 2710124130 [07:14:17]line Аи-92-К-5 [07:14:17]line 10.330 * 67.80 [07:14:17]line = 700.37 [07:14:17]line НДС 12% НСП 1% [07:14:17]line > о реализуемом товаре [07:14:17]line ОКРУГЛЕНИЕ: -0.37 [07:14:17]line ИТОГО: 700.00 [07:14:17]line Внесено: 700.00 [07:14:17]line СДАЧА: 0.00 [07:14:17]line НСП 1% : 6.20 [07:14:17]line НДС 12% : 74.38 [07:14:17]line Наличными: 700.00 [07:14:17]line Безнал.: 0.00 [07:14:17]line Место: АЗС № 136 "Партнер Нефть" [07:14:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:14:17]line СНО: Общий режим [07:14:17]line Чек 10 19.08.2024 07:14 [07:14:17]line Смена: 452 ФФД: 1.0 [07:14:17]line ЗНМ: 0300000067 [07:14:17]line РНМ: 0000000000092569 [07:14:17]line Версия ККМ: 001 [07:14:17]line ФМ: 0000000000871776 [07:14:17]line ФД: 139175 [07:14:17]line ФПД: 83637319660195 [07:14:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T071417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139175&fm=83637319660195&tin=02508201610067®Number=0000000000092569&sum=70000 [07:14:18]OFD Sender: Processing packet 139175 [packets to send 137, broken 136] [07:14:18]ProducePacketName [07:14:18]name=ofd_packets/00139175 [07:14:18]OFD Sender: To server: pG, [07:14:18]CommunicateWithHost lk.salyk.kg:30040 [07:14:18]ConnectInit lk.salyk.kg [07:14:18]written 0, free lines is 4095 [07:14:18]Connected sock=10 [07:14: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 37 36 0F 01 00 00 C4 8B 07 01 65 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0A 00 00 00 F4 03 04 00 C9 F0 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 1F 02 00 35 04 06 00 4C 11 54 BA 72 A3 75 C4 73 A7 1E DA DC 74 [07:14: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 37 36 4F 00 00 00 B1 DC 47 00 79 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 37 36 10 04 04 00 A7 1F 02 00 F4 03 04 00 60 97 C2 66 B6 04 01 00 00 25 77 4E 4E A5 6F FF 3B [07:14:18]CommunicateWithHost err = 0 [07:14:18]CheckOFDResponse [07:14:18]1017 (14) - 77093643461234 [07:14:18]1041 (16) - 0000000000871776 [07:14:18]1040 (4) - 139175 [07:14:18]1012 (4) - 19.08.2024 00:52 [07:14:18]1206 (1) - 0 [07:14:18]OFD Sender: Remove packet 139175 [07:14:18]ProducePacketName [07:14:18]name=ofd_packets/00139175 [07:14:18]NVStorageDeleteData [07:14:18]Write to MH i2c: 01 00 00 5D 04 61 [07:14:18]Write i2c OK [07:14:18]MH_I2C_Read... [07:14:18]Read from MH i2c: 01 [07:14:18]MH_I2C_Read... [07:14:18]Read from MH i2c: 01 07 00 [07:14:18]MH_I2C_Read... [07:14:18]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 C0 0C 34 [07:14:18]RasterBufferAndPrint [07:14:18]line [07:14:18]line [07:14:18]line [07:14:18]line [07:14:18]line [07:14:18]written 0, free lines is 3270 [07:14:18]MH_Cut [07:14:18]Write to MH i2c: D1 01 00 64 04 01 3A [07:14:18]Write i2c OK [07:14:18]MH_I2C_Read... [07:14:18]Read from MH i2c: D1 [07:14:18]MH_I2C_Read... [07:14:18]Read from MH i2c: D1 01 00 [07:14:18]MH_I2C_Read... [07:14:18]Read from MH i2c: D1 01 00 64 04 00 39 [07:14:18]Write to MH i2c: 01 00 00 65 04 69 [07:14:18]Write i2c OK [07:14:18]MH_I2C_Read... [07:14:19]OFD Sender: No OFD packet to send [07:14:19]*** Cut start [07:14:19]*** Partial cut [07:14:19]*** CUTSNS_PIN = 1 [07:14:19]*** CUTSNS_PIN = 0 [07:14:19]*** Brake cut motor [07:14:19]Read from MH i2c: 01 [07:14:19]MH_I2C_Read... [07:14:19]*** Stop cut motor [07:14:19]*** Cut end [07:14:19]Read from MH i2c: 01 07 00 [07:14:19]MH_I2C_Read... [07:14:19]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [07:14:19]process_action close_receipt done [07:14:19]requested_data is exist [07:14:19]produce_requested_data [07:14:19]requested_item fm.sn is exist - process it [07:14:19]wFMCommunicate request_size=4 [07:14:19]MH_SAM_APDU [07:14:19]CAPDU: 80 11 00 00 [07:14:19]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [07:14:19]Write i2c OK [07:14:19]MH_I2C_Read... [07:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:19]Read from MH i2c: E2 [07:14:19]MH_I2C_Read... [07:14:19]Read from MH i2c: E2 17 00 [07:14:19]MH_I2C_Read... [07:14:19]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [07:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:14:19]wFMCommunicate OK [07:14:19]requested_item fd.num is exist - process it [07:14:19]SAM_PROTO_GetFieldsCounters [07:14:19]wFMCommunicate request_size=4 [07:14:19]MH_SAM_APDU [07:14:19]CAPDU: 80 13 00 00 [07:14:19]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [07:14:19]Write i2c OK [07:14:19]MH_I2C_Read... [07:14:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:20]Read from MH i2c: E2 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 62 00 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 62 00 67 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [07:14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:14:20]wFMCommunicate OK [07:14:20]SAM_PROTO_GetFieldsCounters done [07:14:20]requested_item shift.num is exist - process it [07:14:20]requested_item shift.opened is exist - process it [07:14:20]req_shift_opened [07:14:20]FM_GetShiftState [07:14:20]SAM_PROTO_GetShiftState [07:14:20]wFMCommunicate request_size=4 [07:14:20]MH_SAM_APDU [07:14:20]CAPDU: 80 13 01 00 [07:14:20]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [07:14:20]Write i2c OK [07:14:20]MH_I2C_Read... [07:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:20]Read from MH i2c: E2 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 0E 00 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A0 [07:14:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:14:20]wFMCommunicate OK [07:14:20]SAM_PROTO_GetShiftState done [07:14:20]FM_GetShiftState done [07:14:20]req_shift_opened done [07:14:20]requested_item shift.open_date is exist - process it [07:14:20]req_shift_open_date [07:14:20]req_shift_open_date done [07:14:20]produce_requested_data done [07:14:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139175,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [07:14:20]process_action_free close_receipt [07:14:20]json_value_free [07:14:20]json_value_free done [07:14:20]process_json_proto returns [07:14:20]Send response to host [07:14:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139175,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [07:14:20]free response buf [07:14:20]execute_script done [07:14:20]execute_script returns [07:14:20]free content buf [07:14:20]Sock 9.Close socket [07:14:20]Sock 9.Thread stoped [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:18]accept exits with 7 [07:17:18]New connection [07:17:18]New thread 3067202916 created [07:17:18]Thread 3067059556 joined [07:17:18]Waiting for new connection... [07:17:18] Sock 7.Parse request [07:17:18]Sock 7.Check first char [07:17:18]Sock 7.First char is OK [07:17:18]request: POST /json_proto HTTP/1.0 [07:17:18]Method: POST [07:17:18]URL: /json_proto [07:17:18]Method is POST - this is cgi request [07:17:18]url: /json_proto [07:17:18]query_string will be loaded in cgi processing [07:17:18]execute_cgi json_proto POST (null) [07:17:18]execute_cgi path=json_proto method=POST [07:17:18]POST find Content-Length [07:17:18]Host: 172.17.45.67:8080 [07:17:18]Content-Length: 658 [07:17:18]Content-Type: application/json [07:17:18] [07:17:18]POST finish read [07:17:18]Found Content-Length = 658 [07:17:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:18]execute_script... [07:17: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)593016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:18]POST & json_proto [07:17:18]process_json_proto [07:17:18]json parsed OK: [07:17:18]protocol is kg_v1.0 [07:17:18]action value=close_receipt [07:17:18]process_action close_receipt [07:17:18]cmd_close_receipt [07:17:18]MH_GetDate [07:17:18]Write to MH i2c: F0 00 00 69 04 5C [07:17:18]Write i2c OK [07:17:18]MH_I2C_Read... [07:17:18]Read from MH i2c: F0 [07:17:18]MH_I2C_Read... [07:17:18]Read from MH i2c: F0 09 00 [07:17:18]MH_I2C_Read... [07:17:18]Read from MH i2c: F0 09 00 69 04 00 80 F1 C2 66 5F 7F 2B 66 6D [07:17:18]GetLastDocTimeStamp 1724051657 [07:17:18]current date 1724051840 [07:17:18]FM_GetShiftState [07:17:18]SAM_PROTO_GetShiftState [07:17:18]wFMCommunicate request_size=4 [07:17:18]MH_SAM_APDU [07:17:18]CAPDU: 80 13 01 00 [07:17:18]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [07:17:18]Write i2c OK [07:17:18]MH_I2C_Read... [07:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:18]Read from MH i2c: E2 [07:17:18]MH_I2C_Read... [07:17:18]Read from MH i2c: E2 0E 00 [07:17:18]MH_I2C_Read... [07:17:18]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A2 [07:17:18]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:17:18]wFMCommunicate OK [07:17:18]SAM_PROTO_GetShiftState done [07:17:18]FM_GetShiftState done [07:17:18]opened in 1724027888 [07:17:18]opened+sec_in_day 1724114288 [07:17:18]quantity*price = 50017 [07:17:18]sum+1 = 50019 [07:17:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 11 19.08.2024 07:17 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139176 ФПД: 68863677452249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T071720&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139176&fm=68863677452249&tin=02508201610067®Number=0000000000092569&sum=50000 [07:17:19]StoreToDocumentArchive [07:17:19]shift 452 fd 139176 [07:17:19]save to /storage/0452/doc_00139176 [07:17:19]save last doc name /storage/0452/doc_00139176 to /storage/kkm_last_doc_name [07:17:19]save OK [07:17:19]Clear old archive folders... [07:17:19]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:17:19]tlvbuf is 01D62E40 [07:17:19]SAM_PROTO_ClearQueue [07:17:19]wFMCommunicate request_size=4 [07:17:19]MH_SAM_APDU [07:17:19]CAPDU: 80 09 00 00 [07:17:19]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [07:17:19]Write i2c OK [07:17:19]MH_I2C_Read... [07:17:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:19]Read from MH i2c: E2 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: E2 03 00 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [07:17:19]RAPDU: 90 00 [07:17:19]wFMCommunicate OK [07:17:19]SAM_PROTO_ClearQueue done [07:17:19]KKMCreateOFDPacket [07:17:19]OFDProtocolAddRootSTLVToBuf [07:17:19]FM_MakeSignedData [07:17:19]FM_MakeSignedData [07:17:19]SAM_PROTO_SignData [07:17:19]wFMCommunicate request_size=4 [07:17:19]MH_SAM_APDU [07:17:19]CAPDU: 80 0D 01 02 [07:17:19]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [07:17:19]Write i2c OK [07:17:19]MH_I2C_Read... [07:17:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:19]Read from MH i2c: E2 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: E2 03 00 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [07:17:19]RAPDU: 90 00 [07:17:19]wFMCommunicate OK [07:17:19]wFMCommunicate request_size=253 [07:17:19]MH_SAM_APDU [07:17:19]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 80 F1 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 1F 02 00 35 04 06 00 3E A1 93 08 4F D9 [07:17:19]Write to MH i2c: E2 00 01 79 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 80 F1 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 1F 02 00 35 04 06 00 3E A1 93 08 4F D9 00 00 E2 [07:17:19]Write i2c OK [07:17:19]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [07:17:20]RAPDU: 90 00 [07:17:20]wFMCommunicate OK [07:17:20]wFMCommunicate request_size=4 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 0D 03 02 [07:17:20]Write to MH i2c: E2 08 00 7A 04 80 0D 03 02 00 00 00 00 F9 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 0B 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 0B 00 7A 04 00 74 50 A9 E2 27 71 53 1E 90 00 52 [07:17:20]RAPDU: 74 50 A9 E2 27 71 53 1E 90 00 [07:17:20]wFMCommunicate OK [07:17:20]SAM_PROTO_SignData done [07:17:20]FM_MakeSignedData done [07:17:20]CreateOFDProtocolMessage [07:17:20]wFMCommunicate request_size=4 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 11 00 00 [07:17:20]Write to MH i2c: E2 08 00 7B 04 80 11 00 00 00 00 00 00 F9 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 17 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 17 00 7B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 50 [07:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:17:20]wFMCommunicate OK [07:17:20]CreateOFDProtocolMessage done [07:17:20]OFDSenderStorePacket 139176 [07:17:20]StoreOFDPacket docnum=139176 [07:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 05 63 00 01 F6 00 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 80 F1 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 1F 02 00 35 04 06 00 3E A1 93 08 4F D9 74 50 A9 E2 27 71 53 1E [07:17:20]CheckFolder [07:17:20]dirname=/storage/ofd_packets [07:17:20]CheckFolder done [07:17:20]ProducePacketName [07:17:20]name=ofd_packets/00139176 [07:17:20]NVStorageSaveData ofd_packets/00139176 [07:17:20]File name is /storage/ofd_packets/00139176 [07:17:20]Write 294 bytes [07:17:20]NVStorageSaveData done [07:17:20]OFDSenderStorePacket done [07:17:20]KKMCreateOFDPacket done [07:17:20]NVStorageSaveData kkm_last_timestamp [07:17:20]File name is /storage/kkm_last_timestamp [07:17:20]Write 4 bytes [07:17:20]NVStorageSaveData done [07:17:20]ExternCall_PrintAddStr [07:17:20]wPrintStart [07:17:20]Write to MH i2c: 01 00 00 7C 04 80 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: 01 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: 01 07 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [07:17:20]RasterBufferAndPrint [07:17:20]line Счет N : (1)593016 [07:17:20]line ИНН: 02508201610067 [07:17:20]line Контрольно-Кассовый Чек [07:17:20]line ПРОДАЖА [07:17:20]line ТРК (МРК, ГНК) : 53 [07:17:20]line Товар: 2710124130 [07:17:20]line SU-92 [07:17:20]line 7.270 * 68.80 [07:17:20]line = 500.18 [07:17:20]line НДС 12% НСП 1% [07:17:20]line > о реализуемом товаре [07:17:20]line ОКРУГЛЕНИЕ: -0.18 [07:17:20]line ИТОГО: 500.00 [07:17:20]line Внесено: 500.00 [07:17:20]line СДАЧА: 0.00 [07:17:20]line НСП 1% : 4.43 [07:17:20]line НДС 12% : 53.12 [07:17:20]line Наличными: 500.00 [07:17:20]line Безнал.: 0.00 [07:17:20]line Место: АЗС № 136 "Партнер Нефть" [07:17:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:17:20]line СНО: Общий режим [07:17:20]line Чек 11 19.08.2024 07:17 [07:17:20]line Смена: 452 ФФД: 1.0 [07:17:20]line ЗНМ: 0300000067 [07:17:20]line РНМ: 0000000000092569 [07:17:20]line Версия ККМ: 001 [07:17:20]line ФМ: 0000000000871776 [07:17:20]line ФД: 139176 [07:17:20]line ФПД: 68863677452249 [07:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T071720&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139176&fm=68863677452249&tin=02508201610067®Number=0000000000092569&sum=50000 [07:17:20]OFD Sender: Processing packet 139176 [packets to send 137, broken 136] [07:17:20]ProducePacketName [07:17:20]name=ofd_packets/00139176 [07:17:20]OFD Sender: To server: pG, [07:17:20]CommunicateWithHost lk.salyk.kg:30040 [07:17:20]ConnectInit lk.salyk.kg [07:17:20]written 0, free lines is 4095 [07:17:20]Connected sock=9 [07:17: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 37 36 08 01 00 00 05 63 00 01 F6 00 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 80 F1 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 1F 02 00 35 04 06 00 3E A1 93 08 4F D9 74 50 A9 E2 27 71 53 1E [07:17: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 37 36 4F 00 00 00 9E ED 47 00 F9 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 37 36 10 04 04 00 A8 1F 02 00 F4 03 04 00 16 98 C2 66 B6 04 01 00 00 8D 0E C2 BC E3 41 21 C8 [07:17:20]CommunicateWithHost err = 0 [07:17:20]CheckOFDResponse [07:17:20]1017 (14) - 77093643461234 [07:17:20]1041 (16) - 0000000000871776 [07:17:20]1040 (4) - 139176 [07:17:20]1012 (4) - 19.08.2024 00:55 [07:17:20]1206 (1) - 0 [07:17:20]OFD Sender: Remove packet 139176 [07:17:20]ProducePacketName [07:17:20]name=ofd_packets/00139176 [07:17:20]NVStorageDeleteData [07:17:20]Write to MH i2c: 01 00 00 A7 04 AB [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: 01 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: 01 07 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 C3 0C 81 [07:17:20]RasterBufferAndPrint [07:17:20]line [07:17:20]line [07:17:20]line [07:17:20]line [07:17:20]line [07:17:20]written 0, free lines is 3272 [07:17:20]MH_Cut [07:17:20]Write to MH i2c: D1 01 00 AE 04 01 84 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: D1 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: D1 01 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: D1 01 00 AE 04 00 83 [07:17:20]Write to MH i2c: 01 00 00 AF 04 B3 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:21]OFD Sender: No OFD packet to send [07:17:21]*** Cut start [07:17:21]*** Partial cut [07:17:21]*** CUTSNS_PIN = 1 [07:17:21]*** CUTSNS_PIN = 0 [07:17:21]*** Brake cut motor [07:17:22]Read from MH i2c: 01 [07:17:22]MH_I2C_Read... [07:17:22]*** Stop cut motor [07:17:22]*** Cut end [07:17:22]Read from MH i2c: 01 07 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [07:17:22]process_action close_receipt done [07:17:22]requested_data is exist [07:17:22]produce_requested_data [07:17:22]requested_item fm.sn is exist - process it [07:17:22]wFMCommunicate request_size=4 [07:17:22]MH_SAM_APDU [07:17:22]CAPDU: 80 11 00 00 [07:17:22]Write to MH i2c: E2 08 00 B0 04 80 11 00 00 00 00 00 00 2E [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:22]Read from MH i2c: E2 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 17 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 17 00 B0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [07:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:17:22]wFMCommunicate OK [07:17:22]requested_item fd.num is exist - process it [07:17:22]SAM_PROTO_GetFieldsCounters [07:17:22]wFMCommunicate request_size=4 [07:17:22]MH_SAM_APDU [07:17:22]CAPDU: 80 13 00 00 [07:17:22]Write to MH i2c: E2 08 00 B1 04 80 13 00 00 00 00 00 00 31 [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:22]Read from MH i2c: E2 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 62 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 62 00 B1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [07:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:17:22]wFMCommunicate OK [07:17:22]SAM_PROTO_GetFieldsCounters done [07:17:22]requested_item shift.num is exist - process it [07:17:22]requested_item shift.opened is exist - process it [07:17:22]req_shift_opened [07:17:22]FM_GetShiftState [07:17:22]SAM_PROTO_GetShiftState [07:17:22]wFMCommunicate request_size=4 [07:17:22]MH_SAM_APDU [07:17:22]CAPDU: 80 13 01 00 [07:17:22]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:22]Read from MH i2c: E2 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 0E 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EA [07:17:22]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:17:22]wFMCommunicate OK [07:17:22]SAM_PROTO_GetShiftState done [07:17:22]FM_GetShiftState done [07:17:22]req_shift_opened done [07:17:22]requested_item shift.open_date is exist - process it [07:17:22]req_shift_open_date [07:17:22]req_shift_open_date done [07:17:22]produce_requested_data done [07:17:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139176,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [07:17:22]process_action_free close_receipt [07:17:22]json_value_free [07:17:22]json_value_free done [07:17:22]process_json_proto returns [07:17:22]Send response to host [07:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139176,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [07:17:22]free response buf [07:17:22]execute_script done [07:17:22]execute_script returns [07:17:22]free content buf [07:17:22]Sock 7.Close socket [07:17:22]Sock 7.Thread stoped [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:40]accept exits with 10 [07:24:40]New connection [07:24:40]New thread 3067059556 created [07:24:40]Thread 3067202916 joined [07:24:40]Waiting for new connection... [07:24:40] Sock 10.Parse request [07:24:40]Sock 10.Check first char [07:24:40]Sock 10.First char is OK [07:24:40]request: POST /json_proto HTTP/1.0 [07:24:40]Method: POST [07:24:40]URL: /json_proto [07:24:40]Method is POST - this is cgi request [07:24:40]url: /json_proto [07:24:40]query_string will be loaded in cgi processing [07:24:40]execute_cgi json_proto POST (null) [07:24:40]execute_cgi path=json_proto method=POST [07:24:40]POST find Content-Length [07:24:40]Host: 172.17.45.67:8080 [07:24:40]Content-Length: 677 [07:24:40]Content-Type: application/json [07:24:40] [07:24:40]POST finish read [07:24:40]Found Content-Length = 677 [07:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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" ] } } [07:24:40]execute_script... [07:24: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)593017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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" ] } } [07:24:40]POST & json_proto [07:24:40]process_json_proto [07:24:40]json parsed OK: [07:24:40]protocol is kg_v1.0 [07:24:40]action value=close_receipt [07:24:40]process_action close_receipt [07:24:40]cmd_close_receipt [07:24:40]MH_GetDate [07:24:40]Write to MH i2c: F0 00 00 B3 04 A6 [07:24:40]Write i2c OK [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: F0 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: F0 09 00 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: F0 09 00 B3 04 00 3A F3 C2 66 5F 7F 2B 66 73 [07:24:40]GetLastDocTimeStamp 1724051840 [07:24:40]current date 1724052282 [07:24:40]FM_GetShiftState [07:24:40]SAM_PROTO_GetShiftState [07:24:40]wFMCommunicate request_size=4 [07:24:40]MH_SAM_APDU [07:24:40]CAPDU: 80 13 01 00 [07:24:40]Write to MH i2c: E2 08 00 B4 04 80 13 01 00 00 00 00 00 35 [07:24:40]Write i2c OK [07:24:40]MH_I2C_Read... [07:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:40]Read from MH i2c: E2 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 0E 00 [07:24:40]MH_I2C_Read... [07:24:40]Read from MH i2c: E2 0E 00 B4 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EC [07:24:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:24:40]wFMCommunicate OK [07:24:40]SAM_PROTO_GetShiftState done [07:24:40]FM_GetShiftState done [07:24:40]opened in 1724027888 [07:24:40]opened+sec_in_day 1724114288 [07:24:40]quantity*price = 15051 [07:24:40]sum+1 = 15053 [07:24:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 12 19.08.2024 07:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139177 ФПД: 211029523564103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T072442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139177&fm=211029523564103&tin=02508201610067®Number=0000000000092569&sum=15000 [07:24:41]StoreToDocumentArchive [07:24:41]shift 452 fd 139177 [07:24:41]save to /storage/0452/doc_00139177 [07:24:41]save last doc name /storage/0452/doc_00139177 to /storage/kkm_last_doc_name [07:24:41]save OK [07:24:41]Clear old archive folders... [07:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:24:41]tlvbuf is 01D6D510 [07:24:41]SAM_PROTO_ClearQueue [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 09 00 00 [07:24:41]Write to MH i2c: E2 08 00 C1 04 80 09 00 00 00 00 00 00 37 [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [07:24:41]RAPDU: 90 00 [07:24:41]wFMCommunicate OK [07:24:41]SAM_PROTO_ClearQueue done [07:24:41]KKMCreateOFDPacket [07:24:41]OFDProtocolAddRootSTLVToBuf [07:24:41]FM_MakeSignedData [07:24:41]FM_MakeSignedData [07:24:41]SAM_PROTO_SignData [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 0D 01 02 [07:24:41]Write to MH i2c: E2 08 00 C2 04 80 0D 01 02 00 00 00 00 3F [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [07:24:41]RAPDU: 90 00 [07:24:41]wFMCommunicate OK [07:24:41]wFMCommunicate request_size=255 [07:24:41]MH_SAM_APDU [07:24: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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 0C 00 00 00 F4 03 04 00 3A F3 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 1F 02 00 35 04 06 00 BF [07:24:41]Write to MH i2c: E2 02 01 C3 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 0C 00 00 00 F4 03 04 00 3A F3 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 1F 02 00 35 04 06 00 BF 00 00 BF [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [07:24:41]RAPDU: 90 00 [07:24:41]wFMCommunicate OK [07:24:41]wFMCommunicate request_size=10 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 0D 02 02 05 EE 23 CA 06 47 [07:24:41]Write to MH i2c: E2 0D 00 C4 04 80 0D 02 02 05 00 EE 23 CA 06 47 00 00 74 [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [07:24:41]RAPDU: 90 00 [07:24:41]wFMCommunicate OK [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 0D 03 02 [07:24:41]Write to MH i2c: E2 08 00 C5 04 80 0D 03 02 00 00 00 00 44 [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]OFD Sender: No OFD packet to send [07:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 0B 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 0B 00 C5 04 00 95 F8 52 6F FF C5 E6 20 90 00 5D [07:24:41]RAPDU: 95 F8 52 6F FF C5 E6 20 90 00 [07:24:41]wFMCommunicate OK [07:24:41]SAM_PROTO_SignData done [07:24:41]FM_MakeSignedData done [07:24:41]CreateOFDProtocolMessage [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 11 00 00 [07:24:41]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:42]Read from MH i2c: E2 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 17 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [07:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:24:42]wFMCommunicate OK [07:24:42]CreateOFDProtocolMessage done [07:24:42]OFDSenderStorePacket 139177 [07:24:42]StoreOFDPacket docnum=139177 [07:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 8C 07 01 6F F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 0C 00 00 00 F4 03 04 00 3A F3 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 1F 02 00 35 04 06 00 BF EE 23 CA 06 47 95 F8 52 6F FF C5 E6 20 [07:24:42]CheckFolder [07:24:42]dirname=/storage/ofd_packets [07:24:42]CheckFolder done [07:24:42]ProducePacketName [07:24:42]name=ofd_packets/00139177 [07:24:42]NVStorageSaveData ofd_packets/00139177 [07:24:42]File name is /storage/ofd_packets/00139177 [07:24:42]Write 301 bytes [07:24:42]NVStorageSaveData done [07:24:42]OFDSenderStorePacket done [07:24:42]KKMCreateOFDPacket done [07:24:42]NVStorageSaveData kkm_last_timestamp [07:24:42]File name is /storage/kkm_last_timestamp [07:24:42]Write 4 bytes [07:24:42]NVStorageSaveData done [07:24:42]ExternCall_PrintAddStr [07:24:42]wPrintStart [07:24:42]Write to MH i2c: 01 00 00 C7 04 CB [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 07 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [07:24:42]RasterBufferAndPrint [07:24:42]line Счет N : (1)593017 [07:24:42]line ИНН: 02508201610067 [07:24:42]line Контрольно-Кассовый Чек [07:24:42]line ПРОДАЖА [07:24:42]line ТРК (МРК, ГНК) : 42 [07:24:42]line Товар: 2710124130 [07:24:42]line Аи-92-К-5 [07:24:42]line 2.220 * 67.80 [07:24:42]line = 150.52 [07:24:42]line НДС 12% НСП 1% [07:24:42]line > о реализуемом товаре [07:24:42]line ОКРУГЛЕНИЕ: -0.52 [07:24:42]line ИТОГО: 150.00 [07:24:42]line Внесено: 150.00 [07:24:42]line СДАЧА: 0.00 [07:24:42]line НСП 1% : 1.33 [07:24:42]line НДС 12% : 15.98 [07:24:42]line Наличными: 150.00 [07:24:42]line Безнал.: 0.00 [07:24:42]line Место: АЗС № 136 "Партнер Нефть" [07:24:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:24:42]line СНО: Общий режим [07:24:42]line Чек 12 19.08.2024 07:24 [07:24:42]line Смена: 452 ФФД: 1.0 [07:24:42]line ЗНМ: 0300000067 [07:24:42]line РНМ: 0000000000092569 [07:24:42]line Версия ККМ: 001 [07:24:42]line ФМ: 0000000000871776 [07:24:42]line ФД: 139177 [07:24:42]line ФПД: 211029523564103 [07:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T072442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139177&fm=211029523564103&tin=02508201610067®Number=0000000000092569&sum=15000 [07:24:42]OFD Sender: Processing packet 139177 [packets to send 137, broken 136] [07:24:42]ProducePacketName [07:24:42]name=ofd_packets/00139177 [07:24:42]OFD Sender: To server: pG, [07:24:42]CommunicateWithHost lk.salyk.kg:30040 [07:24:42]ConnectInit lk.salyk.kg [07:24:42]written 0, free lines is 4095 [07:24:42]Connected sock=11 [07:24: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 37 36 0F 01 00 00 D1 8C 07 01 6F F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 0C 00 00 00 F4 03 04 00 3A F3 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 1F 02 00 35 04 06 00 BF EE 23 CA 06 47 95 F8 52 6F FF C5 E6 20 [07:24:42]Write to MH i2c: 01 00 00 F2 04 F6 [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 07 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: 01 07 00 F2 04 00 00 00 00 00 C1 0C CA [07:24:42]RasterBufferAndPrint [07:24:42]line [07:24:42]line [07:24:42]line [07:24:42]line [07:24:42]line [07:24:42]written 0, free lines is 3271 [07:24: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 37 36 4F 00 00 00 A1 D2 47 00 11 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 37 36 10 04 04 00 A9 1F 02 00 F4 03 04 00 D0 99 C2 66 B6 04 01 00 00 E7 F9 22 BB C5 21 64 A7 [07:24:42]CommunicateWithHost err = 0 [07:24:42]CheckOFDResponse [07:24:42]1017 (14) - 77093643461234 [07:24:42]1041 (16) - 0000000000871776 [07:24:42]1040 (4) - 139177 [07:24:42]1012 (4) - 19.08.2024 01:03 [07:24:42]1206 (1) - 0 [07:24:42]OFD Sender: Remove packet 139177 [07:24:42]ProducePacketName [07:24:42]name=ofd_packets/00139177 [07:24:42]NVStorageDeleteData [07:24:42]MH_Cut [07:24:42]Write to MH i2c: D1 01 00 F9 04 01 CF [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: D1 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: D1 01 00 [07:24:42]MH_I2C_Read... [07:24:42]Read from MH i2c: D1 01 00 F9 04 00 CE [07:24:42]Write to MH i2c: 01 00 00 FA 04 FE [07:24:42]Write i2c OK [07:24:42]MH_I2C_Read... [07:24:43]OFD Sender: No OFD packet to send [07:24:43]*** Cut start [07:24:43]*** Partial cut [07:24:43]*** CUTSNS_PIN = 1 [07:24:43]*** CUTSNS_PIN = 0 [07:24:43]*** Brake cut motor [07:24:44]Read from MH i2c: 01 [07:24:44]MH_I2C_Read... [07:24:44]*** Stop cut motor [07:24:44]*** Cut end [07:24:44]Read from MH i2c: 01 07 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: 01 07 00 FA 04 00 00 00 00 00 FF 0F 13 [07:24:44]process_action close_receipt done [07:24:44]requested_data is exist [07:24:44]produce_requested_data [07:24:44]requested_item fm.sn is exist - process it [07:24:44]wFMCommunicate request_size=4 [07:24:44]MH_SAM_APDU [07:24:44]CAPDU: 80 11 00 00 [07:24:44]Write to MH i2c: E2 08 00 FB 04 80 11 00 00 00 00 00 00 79 [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:44]Read from MH i2c: E2 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 17 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 17 00 FB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [07:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:24:44]wFMCommunicate OK [07:24:44]requested_item fd.num is exist - process it [07:24:44]SAM_PROTO_GetFieldsCounters [07:24:44]wFMCommunicate request_size=4 [07:24:44]MH_SAM_APDU [07:24:44]CAPDU: 80 13 00 00 [07:24:44]Write to MH i2c: E2 08 00 FC 04 80 13 00 00 00 00 00 00 7C [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:44]Read from MH i2c: E2 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 62 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 62 00 FC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [07:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:24:44]wFMCommunicate OK [07:24:44]SAM_PROTO_GetFieldsCounters done [07:24:44]requested_item shift.num is exist - process it [07:24:44]requested_item shift.opened is exist - process it [07:24:44]req_shift_opened [07:24:44]FM_GetShiftState [07:24:44]SAM_PROTO_GetShiftState [07:24:44]wFMCommunicate request_size=4 [07:24:44]MH_SAM_APDU [07:24:44]CAPDU: 80 13 01 00 [07:24:44]Write to MH i2c: E2 08 00 FD 04 80 13 01 00 00 00 00 00 7E [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:44]Read from MH i2c: E2 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 0E 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 0E 00 FD 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 35 [07:24:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:24:44]wFMCommunicate OK [07:24:44]SAM_PROTO_GetShiftState done [07:24:44]FM_GetShiftState done [07:24:44]req_shift_opened done [07:24:44]requested_item shift.open_date is exist - process it [07:24:44]req_shift_open_date [07:24:44]req_shift_open_date done [07:24:44]produce_requested_data done [07:24:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139177,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [07:24:44]process_action_free close_receipt [07:24:44]json_value_free [07:24:44]json_value_free done [07:24:44]process_json_proto returns [07:24:44]Send response to host [07:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139177,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [07:24:44]free response buf [07:24:44]execute_script done [07:24:44]execute_script returns [07:24:44]free content buf [07:24:44]Sock 10.Close socket [07:24:44]Sock 10.Thread stoped [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33: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:04]accept exits with 7 [07:34:04]New connection [07:34:04]New thread 3067202916 created [07:34:04]Thread 3067059556 joined [07:34:04]Waiting for new connection... [07:34:04] Sock 7.Parse request [07:34:04]Sock 7.Check first char [07:34:04]Sock 7.First char is OK [07:34:04]request: POST /json_proto HTTP/1.0 [07:34:04]Method: POST [07:34:04]URL: /json_proto [07:34:04]Method is POST - this is cgi request [07:34:04]url: /json_proto [07:34:04]query_string will be loaded in cgi processing [07:34:04]execute_cgi json_proto POST (null) [07:34:04]execute_cgi path=json_proto method=POST [07:34:04]POST find Content-Length [07:34:04]Host: 172.17.45.67:8080 [07:34:04]Content-Length: 677 [07:34:04]Content-Type: application/json [07:34:04] [07:34:04]POST finish read [07:34:04]Found Content-Length = 677 [07:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [07:34:04]execute_script... [07:34:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [07:34:04]POST & json_proto [07:34:04]process_json_proto [07:34:04]json parsed OK: [07:34:04]protocol is kg_v1.0 [07:34:04]action value=close_receipt [07:34:04]process_action close_receipt [07:34:04]cmd_close_receipt [07:34:04]MH_GetDate [07:34:04]Write to MH i2c: F0 00 00 FE 04 F1 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: F0 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: F0 09 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: F0 09 00 FE 04 00 6E F5 C2 66 5F 7F 2B 66 F4 [07:34:04]GetLastDocTimeStamp 1724052282 [07:34:04]current date 1724052846 [07:34:04]FM_GetShiftState [07:34:04]SAM_PROTO_GetShiftState [07:34:04]wFMCommunicate request_size=4 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 13 01 00 [07:34:04]Write to MH i2c: E2 08 00 FF 04 80 13 01 00 00 00 00 00 80 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:05]Read from MH i2c: E2 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: E2 0E 00 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: E2 0E 00 FF 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 37 [07:34:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:34:05]wFMCommunicate OK [07:34:05]SAM_PROTO_GetShiftState done [07:34:05]FM_GetShiftState done [07:34:05]opened in 1724027888 [07:34:05]opened+sec_in_day 1724114288 [07:34:05]quantity*price = 60003 [07:34:05]sum+1 = 60004 [07:34:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 13 19.08.2024 07:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139178 ФПД: 247391149773002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T073406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139178&fm=247391149773002&tin=02508201610067®Number=0000000000092569&sum=60000 [07:34:06]StoreToDocumentArchive [07:34:06]shift 452 fd 139178 [07:34:06]save to /storage/0452/doc_00139178 [07:34:06]save last doc name /storage/0452/doc_00139178 to /storage/kkm_last_doc_name [07:34:06]save OK [07:34:06]Clear old archive folders... [07:34:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:34:06]tlvbuf is 01D6F120 [07:34:06]SAM_PROTO_ClearQueue [07:34:06]wFMCommunicate request_size=4 [07:34:06]MH_SAM_APDU [07:34:06]CAPDU: 80 09 00 00 [07:34:06]Write to MH i2c: E2 08 00 0C 05 80 09 00 00 00 00 00 00 83 [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:06]Read from MH i2c: E2 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 03 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [07:34:06]RAPDU: 90 00 [07:34:06]wFMCommunicate OK [07:34:06]SAM_PROTO_ClearQueue done [07:34:06]KKMCreateOFDPacket [07:34:06]OFDProtocolAddRootSTLVToBuf [07:34:06]FM_MakeSignedData [07:34:06]FM_MakeSignedData [07:34:06]SAM_PROTO_SignData [07:34:06]wFMCommunicate request_size=4 [07:34:06]MH_SAM_APDU [07:34:06]CAPDU: 80 0D 01 02 [07:34:06]Write to MH i2c: E2 08 00 0D 05 80 0D 01 02 00 00 00 00 8B [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:06]Read from MH i2c: E2 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 03 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [07:34:06]RAPDU: 90 00 [07:34:06]wFMCommunicate OK [07:34:06]wFMCommunicate request_size=255 [07:34:06]MH_SAM_APDU [07:34: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 0D 00 00 00 F4 03 04 00 6E F5 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 1F 02 00 35 04 06 00 E1 [07:34:06]Write to MH i2c: E2 02 01 0E 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 0D 00 00 00 F4 03 04 00 6E F5 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 1F 02 00 35 04 06 00 E1 00 00 E4 [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:06]Read from MH i2c: E2 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 03 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [07:34:06]RAPDU: 90 00 [07:34:06]wFMCommunicate OK [07:34:06]wFMCommunicate request_size=10 [07:34:06]MH_SAM_APDU [07:34:06]CAPDU: 80 0D 02 02 05 00 3D 9A 50 CA [07:34:06]Write to MH i2c: E2 0D 00 0F 05 80 0D 02 02 05 00 00 3D 9A 50 CA 00 00 89 [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:06]Read from MH i2c: E2 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 03 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [07:34:06]RAPDU: 90 00 [07:34:06]wFMCommunicate OK [07:34:06]wFMCommunicate request_size=4 [07:34:06]MH_SAM_APDU [07:34:06]CAPDU: 80 0D 03 02 [07:34:06]Write to MH i2c: E2 08 00 10 05 80 0D 03 02 00 00 00 00 90 [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:06]Read from MH i2c: E2 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 0B 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 0B 00 10 05 00 D9 37 85 AD CB DB 1C 53 90 00 E8 [07:34:06]RAPDU: D9 37 85 AD CB DB 1C 53 90 00 [07:34:06]wFMCommunicate OK [07:34:06]SAM_PROTO_SignData done [07:34:06]FM_MakeSignedData done [07:34:06]CreateOFDProtocolMessage [07:34:06]wFMCommunicate request_size=4 [07:34:06]MH_SAM_APDU [07:34:06]CAPDU: 80 11 00 00 [07:34:06]Write to MH i2c: E2 08 00 11 05 80 11 00 00 00 00 00 00 90 [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:06]Read from MH i2c: E2 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 17 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 17 00 11 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E7 [07:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:34:06]wFMCommunicate OK [07:34:06]CreateOFDProtocolMessage done [07:34:06]OFDSenderStorePacket 139178 [07:34:06]StoreOFDPacket docnum=139178 [07:34:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C5 2C 07 01 19 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 0D 00 00 00 F4 03 04 00 6E F5 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 1F 02 00 35 04 06 00 E1 00 3D 9A 50 CA D9 37 85 AD CB DB 1C 53 [07:34:06]CheckFolder [07:34:06]dirname=/storage/ofd_packets [07:34:06]CheckFolder done [07:34:06]ProducePacketName [07:34:06]name=ofd_packets/00139178 [07:34:06]NVStorageSaveData ofd_packets/00139178 [07:34:06]File name is /storage/ofd_packets/00139178 [07:34:06]Write 301 bytes [07:34:06]NVStorageSaveData done [07:34:06]OFDSenderStorePacket done [07:34:06]KKMCreateOFDPacket done [07:34:06]NVStorageSaveData kkm_last_timestamp [07:34:06]File name is /storage/kkm_last_timestamp [07:34:06]Write 4 bytes [07:34:06]NVStorageSaveData done [07:34:06]OFD Sender: Processing packet 139178 [packets to send 137, broken 136] [07:34:06]ProducePacketName [07:34:06]name=ofd_packets/00139178 [07:34:06]OFD Sender: To server: pG, [07:34:06]CommunicateWithHost lk.salyk.kg:30040 [07:34:06]ConnectInit lk.salyk.kg [07:34:06]ExternCall_PrintAddStr [07:34:06]wPrintStart [07:34:06]Write to MH i2c: 01 00 00 12 05 17 [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: 01 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: 01 07 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [07:34:06]RasterBufferAndPrint [07:34:06]line Счет N : (1)593018 [07:34:06]line ИНН: 02508201610067 [07:34:06]line Контрольно-Кассовый Чек [07:34:06]line ПРОДАЖА [07:34:06]line ТРК (МРК, ГНК) : 42 [07:34:06]line Товар: 2710124130 [07:34:06]line Аи-92-К-5 [07:34:06]line 8.850 * 67.80 [07:34:06]line = 600.03 [07:34:06]line НДС 12% НСП 1% [07:34:06]line > о реализуемом товаре [07:34:06]line ОКРУГЛЕНИЕ: -0.03 [07:34:06]line ИТОГО: 600.00 [07:34:06]line Внесено: 600.00 [07:34:06]line СДАЧА: 0.00 [07:34:06]line НСП 1% : 5.31 [07:34:06]line НДС 12% : 63.72 [07:34:06]line Наличными: 600.00 [07:34:06]line Безнал.: 0.00 [07:34:06]line Место: АЗС № 136 "Партнер Нефть" [07:34:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:34:06]line СНО: Общий режим [07:34:06]line Чек 13 19.08.2024 07:34 [07:34:06]line Смена: 452 ФФД: 1.0 [07:34:06]line ЗНМ: 0300000067 [07:34:06]line РНМ: 0000000000092569 [07:34:06]line Версия ККМ: 001 [07:34:06]line ФМ: 0000000000871776 [07:34:06]line ФД: 139178 [07:34:06]line ФПД: 247391149773002 [07:34:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T073406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139178&fm=247391149773002&tin=02508201610067®Number=0000000000092569&sum=60000 [07:34:07]Connected sock=11 [07:34:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C5 2C 07 01 19 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 0D 00 00 00 F4 03 04 00 6E F5 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 1F 02 00 35 04 06 00 E1 00 3D 9A 50 CA D9 37 85 AD CB DB 1C 53 [07:34:07]written 0, free lines is 4095 [07:34: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 37 36 4F 00 00 00 6C C1 47 00 2D 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 1F 02 00 F4 03 04 00 05 9C C2 66 B6 04 01 00 00 CE CB B6 BB FD 6A 16 5E [07:34:07]CommunicateWithHost err = 0 [07:34:07]CheckOFDResponse [07:34:07]1017 (14) - 77093643461234 [07:34:07]1041 (16) - 0000000000871776 [07:34:07]1040 (4) - 139178 [07:34:07]1012 (4) - 19.08.2024 01:12 [07:34:07]1206 (1) - 0 [07:34:07]OFD Sender: Remove packet 139178 [07:34:07]ProducePacketName [07:34:07]name=ofd_packets/00139178 [07:34:07]NVStorageDeleteData [07:34:07]Write to MH i2c: 01 00 00 3D 05 42 [07:34:07]Write i2c OK [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: 01 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: 01 07 00 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 BF 0C 14 [07:34:07]RasterBufferAndPrint [07:34:07]line [07:34:07]line [07:34:07]line [07:34:07]line [07:34:07]line [07:34:07]written 0, free lines is 3269 [07:34:07]MH_Cut [07:34:07]Write to MH i2c: D1 01 00 44 05 01 1B [07:34:07]Write i2c OK [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: D1 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: D1 01 00 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: D1 01 00 44 05 00 1A [07:34:07]Write to MH i2c: 01 00 00 45 05 4A [07:34:07]Write i2c OK [07:34:07]MH_I2C_Read... [07:34:07]OFD Sender: No OFD packet to send [07:34:08]*** Cut start [07:34:08]*** Partial cut [07:34:08]*** CUTSNS_PIN = 1 [07:34:08]*** CUTSNS_PIN = 0 [07:34:08]*** Brake cut motor [07:34:08]Read from MH i2c: 01 [07:34:08]MH_I2C_Read... [07:34:08]*** Stop cut motor [07:34:08]*** Cut end [07:34:08]Read from MH i2c: 01 07 00 [07:34:08]MH_I2C_Read... [07:34:08]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 FF 0F 5F [07:34:08]process_action close_receipt done [07:34:08]requested_data is exist [07:34:08]produce_requested_data [07:34:08]requested_item fm.sn is exist - process it [07:34:08]wFMCommunicate request_size=4 [07:34:08]MH_SAM_APDU [07:34:08]CAPDU: 80 11 00 00 [07:34:08]Write to MH i2c: E2 08 00 46 05 80 11 00 00 00 00 00 00 C5 [07:34:08]Write i2c OK [07:34:08]MH_I2C_Read... [07:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:08]Read from MH i2c: E2 [07:34:08]MH_I2C_Read... [07:34:08]Read from MH i2c: E2 17 00 [07:34:08]MH_I2C_Read... [07:34:08]Read from MH i2c: E2 17 00 46 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1C [07:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:34:08]wFMCommunicate OK [07:34:08]requested_item fd.num is exist - process it [07:34:08]SAM_PROTO_GetFieldsCounters [07:34:08]wFMCommunicate request_size=4 [07:34:08]MH_SAM_APDU [07:34:08]CAPDU: 80 13 00 00 [07:34:08]Write to MH i2c: E2 08 00 47 05 80 13 00 00 00 00 00 00 C8 [07:34:08]Write i2c OK [07:34:08]MH_I2C_Read... [07:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:08]Read from MH i2c: E2 [07:34:08]MH_I2C_Read... [07:34:08]Read from MH i2c: E2 62 00 [07:34:08]MH_I2C_Read... [07:34:08]Read from MH i2c: E2 62 00 47 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [07:34:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:34:09]wFMCommunicate OK [07:34:09]SAM_PROTO_GetFieldsCounters done [07:34:09]requested_item shift.num is exist - process it [07:34:09]requested_item shift.opened is exist - process it [07:34:09]req_shift_opened [07:34:09]FM_GetShiftState [07:34:09]SAM_PROTO_GetShiftState [07:34:09]wFMCommunicate request_size=4 [07:34:09]MH_SAM_APDU [07:34:09]CAPDU: 80 13 01 00 [07:34:09]Write to MH i2c: E2 08 00 48 05 80 13 01 00 00 00 00 00 CA [07:34:09]Write i2c OK [07:34:09]MH_I2C_Read... [07:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:09]Read from MH i2c: E2 [07:34:09]MH_I2C_Read... [07:34:09]Read from MH i2c: E2 0E 00 [07:34:09]MH_I2C_Read... [07:34:09]Read from MH i2c: E2 0E 00 48 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 81 [07:34:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:34:09]wFMCommunicate OK [07:34:09]SAM_PROTO_GetShiftState done [07:34:09]FM_GetShiftState done [07:34:09]req_shift_opened done [07:34:09]requested_item shift.open_date is exist - process it [07:34:09]req_shift_open_date [07:34:09]req_shift_open_date done [07:34:09]produce_requested_data done [07:34:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139178,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [07:34:09]process_action_free close_receipt [07:34:09]json_value_free [07:34:09]json_value_free done [07:34:09]process_json_proto returns [07:34:09]Send response to host [07:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139178,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [07:34:09]free response buf [07:34:09]execute_script done [07:34:09]execute_script returns [07:34:09]free content buf [07:34:09]Sock 7.Close socket [07:34:09]Sock 7.Thread stoped [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:04]accept exits with 9 [07:44:04]New connection [07:44:04]New thread 3067059556 created [07:44:04]Thread 3067202916 joined [07:44:04]Waiting for new connection... [07:44:04] Sock 9.Parse request [07:44:04]Sock 9.Check first char [07:44:04]Sock 9.First char is OK [07:44:04]request: POST /json_proto HTTP/1.0 [07:44:04]Method: POST [07:44:04]URL: /json_proto [07:44:04]Method is POST - this is cgi request [07:44:04]url: /json_proto [07:44:04]query_string will be loaded in cgi processing [07:44:04]execute_cgi json_proto POST (null) [07:44:04]execute_cgi path=json_proto method=POST [07:44:04]POST find Content-Length [07:44:04]Host: 172.17.45.67:8080 [07:44:04]Content-Length: 682 [07:44:04]Content-Type: application/json [07:44:04] [07:44:04]POST finish read [07:44:04]Found Content-Length = 682 [07:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:04]execute_script... [07:44: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)593019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:04]POST & json_proto [07:44:04]process_json_proto [07:44:04]json parsed OK: [07:44:04]protocol is kg_v1.0 [07:44:04]action value=close_receipt [07:44:04]process_action close_receipt [07:44:04]cmd_close_receipt [07:44:04]MH_GetDate [07:44:04]Write to MH i2c: F0 00 00 49 05 3D [07:44:04]Write i2c OK [07:44:04]MH_I2C_Read... [07:44:04]Read from MH i2c: F0 [07:44:04]MH_I2C_Read... [07:44:04]Read from MH i2c: F0 09 00 [07:44:04]MH_I2C_Read... [07:44:04]Read from MH i2c: F0 09 00 49 05 00 C6 F7 C2 66 5F 7F 2B 66 9A [07:44:04]GetLastDocTimeStamp 1724052846 [07:44:04]current date 1724053446 [07:44:04]FM_GetShiftState [07:44:04]SAM_PROTO_GetShiftState [07:44:04]wFMCommunicate request_size=4 [07:44:04]MH_SAM_APDU [07:44:04]CAPDU: 80 13 01 00 [07:44:04]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [07:44:04]Write i2c OK [07:44:04]MH_I2C_Read... [07:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:04]Read from MH i2c: E2 [07:44:04]MH_I2C_Read... [07:44:04]Read from MH i2c: E2 0E 00 [07:44:04]MH_I2C_Read... [07:44:04]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 83 [07:44:04]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:44:04]wFMCommunicate OK [07:44:04]SAM_PROTO_GetShiftState done [07:44:04]FM_GetShiftState done [07:44:04]opened in 1724027888 [07:44:04]opened+sec_in_day 1724114288 [07:44:04]quantity*price = 100005 [07:44:04]sum+1 = 100006 [07:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 14 19.08.2024 07:44 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139179 ФПД: 191194482570302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T074406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139179&fm=191194482570302&tin=02508201610067®Number=0000000000092569&sum=100000 [07:44:05]StoreToDocumentArchive [07:44:05]shift 452 fd 139179 [07:44:05]save to /storage/0452/doc_00139179 [07:44:05]save last doc name /storage/0452/doc_00139179 to /storage/kkm_last_doc_name [07:44:05]save OK [07:44:05]Clear old archive folders... [07:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:05]tlvbuf is 01D6D3B0 [07:44:05]SAM_PROTO_ClearQueue [07:44:05]wFMCommunicate request_size=4 [07:44:05]MH_SAM_APDU [07:44:05]CAPDU: 80 09 00 00 [07:44:05]Write to MH i2c: E2 08 00 57 05 80 09 00 00 00 00 00 00 CE [07:44:05]Write i2c OK [07:44:05]MH_I2C_Read... [07:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:05]Read from MH i2c: E2 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [07:44:05]RAPDU: 90 00 [07:44:05]wFMCommunicate OK [07:44:05]SAM_PROTO_ClearQueue done [07:44:05]KKMCreateOFDPacket [07:44:05]OFDProtocolAddRootSTLVToBuf [07:44:05]FM_MakeSignedData [07:44:05]FM_MakeSignedData [07:44:05]SAM_PROTO_SignData [07:44:05]wFMCommunicate request_size=4 [07:44:05]MH_SAM_APDU [07:44:05]CAPDU: 80 0D 01 02 [07:44:05]Write to MH i2c: E2 08 00 58 05 80 0D 01 02 00 00 00 00 D6 [07:44:05]Write i2c OK [07:44:05]MH_I2C_Read... [07:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:05]Read from MH i2c: E2 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [07:44:05]RAPDU: 90 00 [07:44:05]wFMCommunicate OK [07:44:05]wFMCommunicate request_size=255 [07:44:05]MH_SAM_APDU [07:44: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 F7 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 1F 02 00 35 04 06 00 AD [07:44:05]Write to MH i2c: E2 02 01 59 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 F7 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 1F 02 00 35 04 06 00 AD 00 00 1F [07:44:05]Write i2c OK [07:44:05]MH_I2C_Read... [07:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:05]Read from MH i2c: E2 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [07:44:05]RAPDU: 90 00 [07:44:05]wFMCommunicate OK [07:44:05]wFMCommunicate request_size=10 [07:44:05]MH_SAM_APDU [07:44:05]CAPDU: 80 0D 02 02 05 E3 EF 37 74 3E [07:44:05]Write to MH i2c: E2 0D 00 5A 05 80 0D 02 02 05 00 E3 EF 37 74 3E 00 00 9E [07:44:05]Write i2c OK [07:44:05]MH_I2C_Read... [07:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:05]Read from MH i2c: E2 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [07:44:05]RAPDU: 90 00 [07:44:05]wFMCommunicate OK [07:44:05]wFMCommunicate request_size=4 [07:44:05]MH_SAM_APDU [07:44:05]CAPDU: 80 0D 03 02 [07:44:05]Write to MH i2c: E2 08 00 5B 05 80 0D 03 02 00 00 00 00 DB [07:44:05]Write i2c OK [07:44:05]MH_I2C_Read... [07:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:05]Read from MH i2c: E2 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 0B 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 0B 00 5B 05 00 02 A0 E3 EF C6 41 76 AD 90 00 7A [07:44:05]RAPDU: 02 A0 E3 EF C6 41 76 AD 90 00 [07:44:05]wFMCommunicate OK [07:44:05]SAM_PROTO_SignData done [07:44:05]FM_MakeSignedData done [07:44:05]CreateOFDProtocolMessage [07:44:05]wFMCommunicate request_size=4 [07:44:05]MH_SAM_APDU [07:44:05]CAPDU: 80 11 00 00 [07:44:05]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [07:44:05]Write i2c OK [07:44:05]MH_I2C_Read... [07:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:05]Read from MH i2c: E2 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 17 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: E2 17 00 5C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 32 [07:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:44:05]wFMCommunicate OK [07:44:05]CreateOFDProtocolMessage done [07:44:05]OFDSenderStorePacket 139179 [07:44:05]StoreOFDPacket docnum=139179 [07:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 64 07 01 07 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 F7 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 1F 02 00 35 04 06 00 AD E3 EF 37 74 3E 02 A0 E3 EF C6 41 76 AD [07:44:05]CheckFolder [07:44:05]dirname=/storage/ofd_packets [07:44:05]CheckFolder done [07:44:05]ProducePacketName [07:44:05]name=ofd_packets/00139179 [07:44:05]NVStorageSaveData ofd_packets/00139179 [07:44:05]File name is /storage/ofd_packets/00139179 [07:44:05]Write 301 bytes [07:44:05]NVStorageSaveData done [07:44:05]OFDSenderStorePacket done [07:44:05]KKMCreateOFDPacket done [07:44:05]NVStorageSaveData kkm_last_timestamp [07:44:05]File name is /storage/kkm_last_timestamp [07:44:05]Write 4 bytes [07:44:05]NVStorageSaveData done [07:44:05]ExternCall_PrintAddStr [07:44:05]wPrintStart [07:44:05]Write to MH i2c: 01 00 00 5D 05 62 [07:44:05]Write i2c OK [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: 01 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: 01 07 00 [07:44:05]MH_I2C_Read... [07:44:05]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [07:44:05]RasterBufferAndPrint [07:44:05]line Счет N : (1)593019 [07:44:05]line ИНН: 02508201610067 [07:44:05]line Контрольно-Кассовый Чек [07:44:05]line ПРОДАЖА [07:44:05]line ТРК (МРК, ГНК) : 52 [07:44:05]line Товар: 2710124130 [07:44:05]line Аи-92-К-5 [07:44:05]line 14.750 * 67.80 [07:44:05]line = 1000.05 [07:44:05]line НДС 12% НСП 1% [07:44:05]line > о реализуемом товаре [07:44:05]line ОКРУГЛЕНИЕ: -0.05 [07:44:05]line ИТОГО: 1000.00 [07:44:05]line Внесено: 1000.00 [07:44:05]line СДАЧА: 0.00 [07:44:05]line НСП 1% : 8.85 [07:44:05]line НДС 12% : 106.20 [07:44:05]line Наличными: 1000.00 [07:44:05]line Безнал.: 0.00 [07:44:05]line Место: АЗС № 136 "Партнер Нефть" [07:44:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:44:05]line СНО: Общий режим [07:44:05]line Чек 14 19.08.2024 07:44 [07:44:05]line Смена: 452 ФФД: 1.0 [07:44:05]line ЗНМ: 0300000067 [07:44:05]line РНМ: 0000000000092569 [07:44:05]line Версия ККМ: 001 [07:44:05]line ФМ: 0000000000871776 [07:44:05]line ФД: 139179 [07:44:05]line ФПД: 191194482570302 [07:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T074406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139179&fm=191194482570302&tin=02508201610067®Number=0000000000092569&sum=100000 [07:44:06]OFD Sender: Processing packet 139179 [packets to send 137, broken 136] [07:44:06]ProducePacketName [07:44:06]name=ofd_packets/00139179 [07:44:06]OFD Sender: To server: pG, [07:44:06]CommunicateWithHost lk.salyk.kg:30040 [07:44:06]ConnectInit lk.salyk.kg [07:44:06]written 0, free lines is 4095 [07:44:06]Connected sock=10 [07:44: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 37 36 0F 01 00 00 D1 64 07 01 07 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 F7 C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 1F 02 00 35 04 06 00 AD E3 EF 37 74 3E 02 A0 E3 EF C6 41 76 AD [07:44: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 37 36 4F 00 00 00 2B EF 47 00 83 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 1F 02 00 F4 03 04 00 5C 9E C2 66 B6 04 01 00 00 CC 3F D8 F6 15 CA 8F 2A [07:44:06]CommunicateWithHost err = 0 [07:44:06]CheckOFDResponse [07:44:06]1017 (14) - 77093643461234 [07:44:06]1041 (16) - 0000000000871776 [07:44:06]1040 (4) - 139179 [07:44:06]1012 (4) - 19.08.2024 01:22 [07:44:06]1206 (1) - 0 [07:44:06]OFD Sender: Remove packet 139179 [07:44:06]ProducePacketName [07:44:06]name=ofd_packets/00139179 [07:44:06]NVStorageDeleteData [07:44:06]Write to MH i2c: 01 00 00 88 05 8D [07:44:06]Write i2c OK [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: 01 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: 01 07 00 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 CB 0C 6B [07:44:06]RasterBufferAndPrint [07:44:06]line [07:44:06]line [07:44:06]line [07:44:06]line [07:44:06]line [07:44:06]written 0, free lines is 3281 [07:44:06]MH_Cut [07:44:06]Write to MH i2c: D1 01 00 8F 05 01 66 [07:44:06]Write i2c OK [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: D1 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: D1 01 00 [07:44:06]MH_I2C_Read... [07:44:06]Read from MH i2c: D1 01 00 8F 05 00 65 [07:44:06]Write to MH i2c: 01 00 00 90 05 95 [07:44:06]Write i2c OK [07:44:06]MH_I2C_Read... [07:44:07]OFD Sender: No OFD packet to send [07:44:07]*** Cut start [07:44:07]*** Partial cut [07:44:07]*** CUTSNS_PIN = 1 [07:44:07]*** CUTSNS_PIN = 0 [07:44:07]*** Brake cut motor [07:44:08]Read from MH i2c: 01 [07:44:08]MH_I2C_Read... [07:44:08]*** Stop cut motor [07:44:08]*** Cut end [07:44:08]Read from MH i2c: 01 07 00 [07:44:08]MH_I2C_Read... [07:44:08]Read from MH i2c: 01 07 00 90 05 00 00 00 00 00 FF 0F AA [07:44:08]process_action close_receipt done [07:44:08]requested_data is exist [07:44:08]produce_requested_data [07:44:08]requested_item fm.sn is exist - process it [07:44:08]wFMCommunicate request_size=4 [07:44:08]MH_SAM_APDU [07:44:08]CAPDU: 80 11 00 00 [07:44:08]Write to MH i2c: E2 08 00 91 05 80 11 00 00 00 00 00 00 10 [07:44:08]Write i2c OK [07:44:08]MH_I2C_Read... [07:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:08]Read from MH i2c: E2 [07:44:08]MH_I2C_Read... [07:44:08]Read from MH i2c: E2 17 00 [07:44:08]MH_I2C_Read... [07:44:08]Read from MH i2c: E2 17 00 91 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 67 [07:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:44:08]wFMCommunicate OK [07:44:08]requested_item fd.num is exist - process it [07:44:08]SAM_PROTO_GetFieldsCounters [07:44:08]wFMCommunicate request_size=4 [07:44:08]MH_SAM_APDU [07:44:08]CAPDU: 80 13 00 00 [07:44:08]Write to MH i2c: E2 08 00 92 05 80 13 00 00 00 00 00 00 13 [07:44:08]Write i2c OK [07:44:08]MH_I2C_Read... [07:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:08]Read from MH i2c: E2 [07:44:08]MH_I2C_Read... [07:44:08]Read from MH i2c: E2 62 00 [07:44:08]MH_I2C_Read... [07:44:08]Read from MH i2c: E2 62 00 92 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [07:44: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:08]wFMCommunicate OK [07:44:08]SAM_PROTO_GetFieldsCounters done [07:44:08]requested_item shift.num is exist - process it [07:44:08]requested_item shift.opened is exist - process it [07:44:08]req_shift_opened [07:44:08]FM_GetShiftState [07:44:08]SAM_PROTO_GetShiftState [07:44:08]wFMCommunicate request_size=4 [07:44:08]MH_SAM_APDU [07:44:08]CAPDU: 80 13 01 00 [07:44:08]Write to MH i2c: E2 08 00 93 05 80 13 01 00 00 00 00 00 15 [07:44:08]Write i2c OK [07:44:08]MH_I2C_Read... [07:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:08]Read from MH i2c: E2 [07:44:08]MH_I2C_Read... [07:44:08]Read from MH i2c: E2 0E 00 [07:44:08]MH_I2C_Read... [07:44:08]Read from MH i2c: E2 0E 00 93 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CC [07:44:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:44:08]wFMCommunicate OK [07:44:08]SAM_PROTO_GetShiftState done [07:44:08]FM_GetShiftState done [07:44:08]req_shift_opened done [07:44:08]requested_item shift.open_date is exist - process it [07:44:08]req_shift_open_date [07:44:08]req_shift_open_date done [07:44:08]produce_requested_data done [07:44:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139179,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [07:44:08]process_action_free close_receipt [07:44:08]json_value_free [07:44:08]json_value_free done [07:44:08]process_json_proto returns [07:44:08]Send response to host [07:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139179,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [07:44:08]free response buf [07:44:08]execute_script done [07:44:08]execute_script returns [07:44:08]free content buf [07:44:08]Sock 9.Close socket [07:44:08]Sock 9.Thread stoped [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:28]accept exits with 7 [07:54:28]New connection [07:54:28]New thread 3067202916 created [07:54:28]Thread 3067059556 joined [07:54:28]Waiting for new connection... [07:54:28] Sock 7.Parse request [07:54:28]Sock 7.Check first char [07:54:28]Sock 7.First char is OK [07:54:28]request: POST /json_proto HTTP/1.0 [07:54:28]Method: POST [07:54:28]URL: /json_proto [07:54:28]Method is POST - this is cgi request [07:54:28]url: /json_proto [07:54:28]query_string will be loaded in cgi processing [07:54:28]execute_cgi json_proto POST (null) [07:54:28]execute_cgi path=json_proto method=POST [07:54:28]POST find Content-Length [07:54:28]Host: 172.17.45.67:8080 [07:54:28]Content-Length: 677 [07:54:28]Content-Type: application/json [07:54:28] [07:54:28]POST finish read [07:54:28]Found Content-Length = 677 [07:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [07:54:28]execute_script... [07:54: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)593020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [07:54:28]POST & json_proto [07:54:28]process_json_proto [07:54:28]json parsed OK: [07:54:28]protocol is kg_v1.0 [07:54:28]action value=close_receipt [07:54:28]process_action close_receipt [07:54:28]cmd_close_receipt [07:54:28]MH_GetDate [07:54:28]Write to MH i2c: F0 00 00 94 05 88 [07:54:28]Write i2c OK [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: F0 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: F0 09 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: F0 09 00 94 05 00 36 FA C2 66 5F 7F 2B 66 58 [07:54:28]GetLastDocTimeStamp 1724053446 [07:54:28]current date 1724054070 [07:54:28]FM_GetShiftState [07:54:28]SAM_PROTO_GetShiftState [07:54:28]wFMCommunicate request_size=4 [07:54:28]MH_SAM_APDU [07:54:28]CAPDU: 80 13 01 00 [07:54:28]Write to MH i2c: E2 08 00 95 05 80 13 01 00 00 00 00 00 17 [07:54:28]Write i2c OK [07:54:28]MH_I2C_Read... [07:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:28]Read from MH i2c: E2 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 0E 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 0E 00 95 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CE [07:54:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:54:28]wFMCommunicate OK [07:54:28]SAM_PROTO_GetShiftState done [07:54:28]FM_GetShiftState done [07:54:28]opened in 1724027888 [07:54:28]opened+sec_in_day 1724114288 [07:54:28]quantity*price = 50036 [07:54:28]sum+1 = 50037 [07:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 15 19.08.2024 07:54 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139180 ФПД: 160356445646775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T075430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139180&fm=160356445646775&tin=02508201610067®Number=0000000000092569&sum=50000 [07:54:29]StoreToDocumentArchive [07:54:29]shift 452 fd 139180 [07:54:29]save to /storage/0452/doc_00139180 [07:54:29]save last doc name /storage/0452/doc_00139180 to /storage/kkm_last_doc_name [07:54:29]save OK [07:54:29]Clear old archive folders... [07:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:29]tlvbuf is 01D45860 [07:54:29]SAM_PROTO_ClearQueue [07:54:29]wFMCommunicate request_size=4 [07:54:29]MH_SAM_APDU [07:54:29]CAPDU: 80 09 00 00 [07:54:29]Write to MH i2c: E2 08 00 A2 05 80 09 00 00 00 00 00 00 19 [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:29]Read from MH i2c: E2 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 03 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [07:54:29]RAPDU: 90 00 [07:54:29]wFMCommunicate OK [07:54:29]SAM_PROTO_ClearQueue done [07:54:29]KKMCreateOFDPacket [07:54:29]OFDProtocolAddRootSTLVToBuf [07:54:29]FM_MakeSignedData [07:54:29]FM_MakeSignedData [07:54:29]SAM_PROTO_SignData [07:54:29]wFMCommunicate request_size=4 [07:54:29]MH_SAM_APDU [07:54:29]CAPDU: 80 0D 01 02 [07:54:29]Write to MH i2c: E2 08 00 A3 05 80 0D 01 02 00 00 00 00 21 [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:29]Read from MH i2c: E2 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 03 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [07:54:29]RAPDU: 90 00 [07:54:29]wFMCommunicate OK [07:54:29]wFMCommunicate request_size=255 [07:54:29]MH_SAM_APDU [07:54: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 0F 00 00 00 F4 03 04 00 36 FA C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 1F 02 00 35 04 06 00 91 [07:54:29]Write to MH i2c: E2 02 01 A4 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 0F 00 00 00 F4 03 04 00 36 FA C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 1F 02 00 35 04 06 00 91 00 00 34 [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:30]Read from MH i2c: E2 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 03 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [07:54:30]RAPDU: 90 00 [07:54:30]wFMCommunicate OK [07:54:30]wFMCommunicate request_size=10 [07:54:30]MH_SAM_APDU [07:54:30]CAPDU: 80 0D 02 02 05 D7 E4 FA EF B7 [07:54:30]Write to MH i2c: E2 0D 00 A5 05 80 0D 02 02 05 00 D7 E4 FA EF B7 00 00 89 [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:30]Read from MH i2c: E2 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 03 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [07:54:30]RAPDU: 90 00 [07:54:30]wFMCommunicate OK [07:54:30]wFMCommunicate request_size=4 [07:54:30]MH_SAM_APDU [07:54:30]CAPDU: 80 0D 03 02 [07:54:30]Write to MH i2c: E2 08 00 A6 05 80 0D 03 02 00 00 00 00 26 [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:30]Read from MH i2c: E2 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 0B 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 0B 00 A6 05 00 95 78 2B AC CA E9 C5 E6 90 00 69 [07:54:30]RAPDU: 95 78 2B AC CA E9 C5 E6 90 00 [07:54:30]wFMCommunicate OK [07:54:30]SAM_PROTO_SignData done [07:54:30]FM_MakeSignedData done [07:54:30]CreateOFDProtocolMessage [07:54:30]wFMCommunicate request_size=4 [07:54:30]MH_SAM_APDU [07:54:30]CAPDU: 80 11 00 00 [07:54:30]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:30]Read from MH i2c: E2 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 17 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [07:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:54:30]wFMCommunicate OK [07:54:30]CreateOFDProtocolMessage done [07:54:30]OFDSenderStorePacket 139180 [07:54:30]StoreOFDPacket docnum=139180 [07:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 53 5E 07 01 54 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 0F 00 00 00 F4 03 04 00 36 FA C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 1F 02 00 35 04 06 00 91 D7 E4 FA EF B7 95 78 2B AC CA E9 C5 E6 [07:54:30]CheckFolder [07:54:30]dirname=/storage/ofd_packets [07:54:30]CheckFolder done [07:54:30]ProducePacketName [07:54:30]name=ofd_packets/00139180 [07:54:30]NVStorageSaveData ofd_packets/00139180 [07:54:30]File name is /storage/ofd_packets/00139180 [07:54:30]Write 301 bytes [07:54:30]NVStorageSaveData done [07:54:30]OFDSenderStorePacket done [07:54:30]KKMCreateOFDPacket done [07:54:30]NVStorageSaveData kkm_last_timestamp [07:54:30]File name is /storage/kkm_last_timestamp [07:54:30]Write 4 bytes [07:54:30]NVStorageSaveData done [07:54:30]ExternCall_PrintAddStr [07:54:30]wPrintStart [07:54:30]Write to MH i2c: 01 00 00 A8 05 AD [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: 01 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: 01 07 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [07:54:30]RasterBufferAndPrint [07:54:30]line Счет N : (1)593020 [07:54:30]line ИНН: 02508201610067 [07:54:30]line Контрольно-Кассовый Чек [07:54:30]line ПРОДАЖА [07:54:30]line ТРК (МРК, ГНК) : 52 [07:54:30]line Товар: 2710124130 [07:54:30]line Аи-92-К-5 [07:54:30]line 7.380 * 67.80 [07:54:30]line = 500.36 [07:54:30]line НДС 12% НСП 1% [07:54:30]line > о реализуемом товаре [07:54:30]line ОКРУГЛЕНИЕ: -0.36 [07:54:30]line ИТОГО: 500.00 [07:54:30]line Внесено: 500.00 [07:54:30]line СДАЧА: 0.00 [07:54:30]line НСП 1% : 4.43 [07:54:30]line НДС 12% : 53.14 [07:54:30]line Наличными: 500.00 [07:54:30]line Безнал.: 0.00 [07:54:30]line Место: АЗС № 136 "Партнер Нефть" [07:54:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:54:30]line СНО: Общий режим [07:54:30]line Чек 15 19.08.2024 07:54 [07:54:30]line Смена: 452 ФФД: 1.0 [07:54:30]line ЗНМ: 0300000067 [07:54:30]line РНМ: 0000000000092569 [07:54:30]line Версия ККМ: 001 [07:54:30]line ФМ: 0000000000871776 [07:54:30]line ФД: 139180 [07:54:30]line ФПД: 160356445646775 [07:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T075430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139180&fm=160356445646775&tin=02508201610067®Number=0000000000092569&sum=50000 [07:54:30]OFD Sender: Processing packet 139180 [packets to send 137, broken 136] [07:54:30]ProducePacketName [07:54:30]name=ofd_packets/00139180 [07:54:30]OFD Sender: To server: pG, [07:54:30]CommunicateWithHost lk.salyk.kg:30040 [07:54:30]ConnectInit lk.salyk.kg [07:54:30]written 0, free lines is 4095 [07:54:30]Connected sock=10 [07:54: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 37 36 0F 01 00 00 53 5E 07 01 54 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 0F 00 00 00 F4 03 04 00 36 FA C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 1F 02 00 35 04 06 00 91 D7 E4 FA EF B7 95 78 2B AC CA E9 C5 E6 [07: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 37 36 4F 00 00 00 FC CE 47 00 79 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 37 36 10 04 04 00 AC 1F 02 00 F4 03 04 00 CD A0 C2 66 B6 04 01 00 00 C2 B0 98 96 FB DC 94 65 [07:54:31]CommunicateWithHost err = 0 [07:54:31]CheckOFDResponse [07:54:31]1017 (14) - 77093643461234 [07:54:31]1041 (16) - 0000000000871776 [07:54:31]1040 (4) - 139180 [07:54:31]1012 (4) - 19.08.2024 01:33 [07:54:31]1206 (1) - 0 [07:54:31]OFD Sender: Remove packet 139180 [07:54:31]ProducePacketName [07:54:31]name=ofd_packets/00139180 [07:54:31]NVStorageDeleteData [07:54:31]Write to MH i2c: 01 00 00 D3 05 D8 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 07 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 BC 0C A7 [07:54:31]RasterBufferAndPrint [07:54:31]line [07:54:31]line [07:54:31]line [07:54:31]line [07:54:31]line [07:54:31]written 0, free lines is 3268 [07:54:31]MH_Cut [07:54:31]Write to MH i2c: D1 01 00 DA 05 01 B1 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: D1 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: D1 01 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: D1 01 00 DA 05 00 B0 [07:54:31]Write to MH i2c: 01 00 00 DB 05 E0 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]OFD Sender: No OFD packet to send [07:54:31]*** Cut start [07:54:31]*** Partial cut [07:54:31]*** CUTSNS_PIN = 1 [07:54:31]*** CUTSNS_PIN = 0 [07:54:32]*** Brake cut motor [07:54:32]Read from MH i2c: 01 [07:54:32]MH_I2C_Read... [07:54:32]*** Stop cut motor [07:54:32]*** Cut end [07:54:32]Read from MH i2c: 01 07 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [07:54:32]process_action close_receipt done [07:54:32]requested_data is exist [07:54:32]produce_requested_data [07:54:32]requested_item fm.sn is exist - process it [07:54:32]wFMCommunicate request_size=4 [07:54:32]MH_SAM_APDU [07:54:32]CAPDU: 80 11 00 00 [07:54:32]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:32]Read from MH i2c: E2 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 17 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [07:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:54:32]wFMCommunicate OK [07:54:32]requested_item fd.num is exist - process it [07:54:32]SAM_PROTO_GetFieldsCounters [07:54:32]wFMCommunicate request_size=4 [07:54:32]MH_SAM_APDU [07:54:32]CAPDU: 80 13 00 00 [07:54:32]Write to MH i2c: E2 08 00 DD 05 80 13 00 00 00 00 00 00 5E [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:32]Read from MH i2c: E2 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 62 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 62 00 DD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [07:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:32]wFMCommunicate OK [07:54:32]SAM_PROTO_GetFieldsCounters done [07:54:32]requested_item shift.num is exist - process it [07:54:32]requested_item shift.opened is exist - process it [07:54:32]req_shift_opened [07:54:32]FM_GetShiftState [07:54:32]SAM_PROTO_GetShiftState [07:54:32]wFMCommunicate request_size=4 [07:54:32]MH_SAM_APDU [07:54:32]CAPDU: 80 13 01 00 [07:54:32]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:32]Read from MH i2c: E2 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 0E 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 17 [07:54:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [07:54:32]wFMCommunicate OK [07:54:32]SAM_PROTO_GetShiftState done [07:54:32]FM_GetShiftState done [07:54:32]req_shift_opened done [07:54:32]requested_item shift.open_date is exist - process it [07:54:32]req_shift_open_date [07:54:32]req_shift_open_date done [07:54:32]produce_requested_data done [07:54:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139180,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [07:54:32]process_action_free close_receipt [07:54:32]json_value_free [07:54:32]json_value_free done [07:54:32]process_json_proto returns [07:54:32]Send response to host [07:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139180,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [07:54:32]free response buf [07:54:32]execute_script done [07:54:32]execute_script returns [07:54:32]free content buf [07:54:32]Sock 7.Close socket [07:54:32]Sock 7.Thread stoped [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59: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:55]accept exits with 9 [08:01:55]New connection [08:01:55]New thread 3067059556 created [08:01:55]Thread 3067202916 joined [08:01:55]Waiting for new connection... [08:01:55] Sock 9.Parse request [08:01:55]Sock 9.Check first char [08:01:55]Sock 9.First char is OK [08:01:55]request: POST /json_proto HTTP/1.0 [08:01:55]Method: POST [08:01:55]URL: /json_proto [08:01:55]Method is POST - this is cgi request [08:01:55]url: /json_proto [08:01:55]query_string will be loaded in cgi processing [08:01:55]execute_cgi json_proto POST (null) [08:01:55]execute_cgi path=json_proto method=POST [08:01:55]POST find Content-Length [08:01:55]Host: 172.17.45.67:8080 [08:01:55]Content-Length: 808 [08:01:55]Content-Type: application/json [08:01:55] [08:01:55]POST finish read [08:01:55]Found Content-Length = 808 [08:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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\u000A1672351.1672350", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:55]execute_script... [08:01: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)593021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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\u000A1672351.1672350", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:55]POST & json_proto [08:01:55]process_json_proto [08:01:55]json parsed OK: [08:01:55]protocol is kg_v1.0 [08:01:55]action value=close_receipt [08:01:55]process_action close_receipt [08:01:55]cmd_close_receipt [08:01:55]MH_GetDate [08:01:55]Write to MH i2c: F0 00 00 DF 05 D3 [08:01:55]Write i2c OK [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: F0 [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: F0 09 00 [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: F0 09 00 DF 05 00 F5 FB C2 66 5F 7F 2B 66 63 [08:01:55]GetLastDocTimeStamp 1724054070 [08:01:55]current date 1724054517 [08:01:55]FM_GetShiftState [08:01:55]SAM_PROTO_GetShiftState [08:01:55]wFMCommunicate request_size=4 [08:01:55]MH_SAM_APDU [08:01:55]CAPDU: 80 13 01 00 [08:01:55]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [08:01:55]Write i2c OK [08:01:55]MH_I2C_Read... [08:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:55]Read from MH i2c: E2 [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: E2 0E 00 [08:01:55]MH_I2C_Read... [08:01:55]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 19 [08:01:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:01:55]wFMCommunicate OK [08:01:55]SAM_PROTO_GetShiftState done [08:01:55]FM_GetShiftState done [08:01:55]opened in 1724027888 [08:01:55]opened+sec_in_day 1724114288 [08:01:55]quantity*price = 0 [08:01:55]sum+1 = 1 [08:01:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 16 19.08.2024 08:01 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 1672351.1672350 ФМ: 0000000000871776 ФД: 139181 ФПД: 83594264799673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080157&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139181&fm=83594264799673&tin=02508201610067®Number=0000000000092569&sum=0 [08:01:56]StoreToDocumentArchive [08:01:56]shift 452 fd 139181 [08:01:56]save to /storage/0452/doc_00139181 [08:01:56]save last doc name /storage/0452/doc_00139181 to /storage/kkm_last_doc_name [08:01:56]save OK [08:01:56]Clear old archive folders... [08:01:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:56]tlvbuf is 01D45720 [08:01:56]SAM_PROTO_ClearQueue [08:01:56]wFMCommunicate request_size=4 [08:01:56]MH_SAM_APDU [08:01:56]CAPDU: 80 09 00 00 [08:01:56]Write to MH i2c: E2 08 00 ED 05 80 09 00 00 00 00 00 00 64 [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:56]Read from MH i2c: E2 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 03 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [08:01:56]RAPDU: 90 00 [08:01:56]wFMCommunicate OK [08:01:56]SAM_PROTO_ClearQueue done [08:01:56]KKMCreateOFDPacket [08:01:56]OFDProtocolAddRootSTLVToBuf [08:01:56]FM_MakeSignedData [08:01:56]FM_MakeSignedData [08:01:56]SAM_PROTO_SignData [08:01:56]wFMCommunicate request_size=4 [08:01:56]MH_SAM_APDU [08:01:56]CAPDU: 80 0D 01 02 [08:01:56]Write to MH i2c: E2 08 00 EE 05 80 0D 01 02 00 00 00 00 6C [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:56]Read from MH i2c: E2 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 03 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [08:01:56]RAPDU: 90 00 [08:01:56]wFMCommunicate OK [08:01:56]wFMCommunicate request_size=255 [08:01:56]MH_SAM_APDU [08:01:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 10 00 00 00 F4 03 04 00 F5 FB C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 1F 02 00 35 04 06 00 4C [08:01:56]Write to MH i2c: E2 02 01 EF 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 10 00 00 00 F4 03 04 00 F5 FB C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 1F 02 00 35 04 06 00 4C 00 00 67 [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]wFMCommunicate request_size=10 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 0D 02 02 05 07 4E 75 69 B9 [08:01:57]Write to MH i2c: E2 0D 00 F0 05 80 0D 02 02 05 00 07 4E 75 69 B9 00 00 65 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]wFMCommunicate request_size=4 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 0D 03 02 [08:01:57]Write to MH i2c: E2 08 00 F1 05 80 0D 03 02 00 00 00 00 71 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:57]OFD Sender: No OFD packet to send [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 0B 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 0B 00 F1 05 00 0A 48 5E 5B C9 C9 66 66 90 00 DB [08:01:57]RAPDU: 0A 48 5E 5B C9 C9 66 66 90 00 [08:01:57]wFMCommunicate OK [08:01:57]SAM_PROTO_SignData done [08:01:57]FM_MakeSignedData done [08:01:57]CreateOFDProtocolMessage [08:01:57]wFMCommunicate request_size=4 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 11 00 00 [08:01:57]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 17 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [08:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:01:57]wFMCommunicate OK [08:01:57]CreateOFDProtocolMessage done [08:01:57]OFDSenderStorePacket 139181 [08:01:57]StoreOFDPacket docnum=139181 [08:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A0 46 07 01 93 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 10 00 00 00 F4 03 04 00 F5 FB C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 1F 02 00 35 04 06 00 4C 07 4E 75 69 B9 0A 48 5E 5B C9 C9 66 66 [08:01:57]CheckFolder [08:01:57]dirname=/storage/ofd_packets [08:01:57]CheckFolder done [08:01:57]ProducePacketName [08:01:57]name=ofd_packets/00139181 [08:01:57]NVStorageSaveData ofd_packets/00139181 [08:01:57]File name is /storage/ofd_packets/00139181 [08:01:57]Write 301 bytes [08:01:57]NVStorageSaveData done [08:01:57]OFDSenderStorePacket done [08:01:57]KKMCreateOFDPacket done [08:01:57]NVStorageSaveData kkm_last_timestamp [08:01:57]File name is /storage/kkm_last_timestamp [08:01:57]Write 4 bytes [08:01:57]NVStorageSaveData done [08:01:57]ExternCall_PrintAddStr [08:01:57]wPrintStart [08:01:57]Write to MH i2c: 01 00 00 F3 05 F8 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: 01 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: 01 07 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [08:01:57]RasterBufferAndPrint [08:01:57]line Счет N : (1)593021 [08:01:57]line ИНН: 02508201610067 [08:01:57]line Контрольно-Кассовый Чек [08:01:57]line ПРОДАЖА [08:01:57]line ТРК (МРК, ГНК) : 31 [08:01:57]line Товар: 2710124500 [08:01:57]line Аи-95-К-5 [08:01:57]line 40.000 * 0.00 [08:01:57]line = 0.00 [08:01:57]line НДС 12% НСП 1% [08:01:57]line > о реализуемом товаре [08:01:57]line ИТОГО: 0.00 [08:01:57]line НСП 1% : 0.00 [08:01:57]line НДС 12% : 0.00 [08:01:57]line Наличными: 0.00 [08:01:57]line Безнал.: 0.00 [08:01:57]line Место: АЗС № 136 "Партнер Нефть" [08:01:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:01:57]line СНО: Общий режим [08:01:57]line Чек 16 19.08.2024 08:01 [08:01:57]line Смена: 452 ФФД: 1.0 [08:01:57]line ЗНМ: 0300000067 [08:01:57]line РНМ: 0000000000092569 [08:01:57]line Версия ККМ: 001 [08:01:57]line Талоны: Топливные Талоны [08:01:57]line 1672351.1672350 [08:01:57]line ФМ: 0000000000871776 [08:01:57]line ФД: 139181 [08:01:57]line ФПД: 83594264799673 [08:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080157&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139181&fm=83594264799673&tin=02508201610067®Number=0000000000092569&sum=0 [08:01:57]OFD Sender: Processing packet 139181 [packets to send 137, broken 136] [08:01:57]ProducePacketName [08:01:57]name=ofd_packets/00139181 [08:01:57]OFD Sender: To server: pG, [08:01:57]CommunicateWithHost lk.salyk.kg:30040 [08:01:57]ConnectInit lk.salyk.kg [08:01:57]written 0, free lines is 4095 [08:01:57]Connected sock=10 [08:01: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 37 36 0F 01 00 00 A0 46 07 01 93 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 10 00 00 00 F4 03 04 00 F5 FB C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 1F 02 00 35 04 06 00 4C 07 4E 75 69 B9 0A 48 5E 5B C9 C9 66 66 [08:01: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 37 36 4F 00 00 00 97 6C 47 00 F7 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 37 36 10 04 04 00 AD 1F 02 00 F4 03 04 00 8B A2 C2 66 B6 04 01 00 00 2B 23 8A C0 24 ED 58 5F [08:01:57]CommunicateWithHost err = 0 [08:01:57]CheckOFDResponse [08:01:57]1017 (14) - 77093643461234 [08:01:57]1041 (16) - 0000000000871776 [08:01:57]1040 (4) - 139181 [08:01:58]1012 (4) - 19.08.2024 01:40 [08:01:58]1206 (1) - 0 [08:01:58]OFD Sender: Remove packet 139181 [08:01:58]ProducePacketName [08:01:58]name=ofd_packets/00139181 [08:01:58]NVStorageDeleteData [08:01:58]Write to MH i2c: 01 00 00 1D 06 23 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 07 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 D3 0C 09 [08:01:58]RasterBufferAndPrint [08:01:58]line [08:01:58]line [08:01:58]line [08:01:58]line [08:01:58]line [08:01:58]written 0, free lines is 3289 [08:01:58]MH_Cut [08:01:58]Write to MH i2c: D1 01 00 24 06 01 FC [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: D1 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: D1 01 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: D1 01 00 24 06 00 FB [08:01:58]Write to MH i2c: 01 00 00 25 06 2B [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]OFD Sender: No OFD packet to send [08:01:58]*** Cut start [08:01:58]*** Partial cut [08:01:58]*** CUTSNS_PIN = 1 [08:01:58]*** CUTSNS_PIN = 0 [08:01:59]*** Brake cut motor [08:01:59]Read from MH i2c: 01 [08:01:59]MH_I2C_Read... [08:01:59]*** Stop cut motor [08:01:59]*** Cut end [08:01:59]Read from MH i2c: 01 07 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [08:01:59]process_action close_receipt done [08:01:59]requested_data is exist [08:01:59]produce_requested_data [08:01:59]requested_item fm.sn is exist - process it [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 11 00 00 [08:01:59]Write to MH i2c: E2 08 00 26 06 80 11 00 00 00 00 00 00 A6 [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 17 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 17 00 26 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FD [08:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:01:59]wFMCommunicate OK [08:01:59]requested_item fd.num is exist - process it [08:01:59]SAM_PROTO_GetFieldsCounters [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 13 00 00 [08:01:59]Write to MH i2c: E2 08 00 27 06 80 13 00 00 00 00 00 00 A9 [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 62 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 62 00 27 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [08:01: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:59]wFMCommunicate OK [08:01:59]SAM_PROTO_GetFieldsCounters done [08:01:59]requested_item shift.num is exist - process it [08:01:59]requested_item shift.opened is exist - process it [08:01:59]req_shift_opened [08:01:59]FM_GetShiftState [08:01:59]SAM_PROTO_GetShiftState [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 13 01 00 [08:01:59]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 0E 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 62 [08:01:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:01:59]wFMCommunicate OK [08:01:59]SAM_PROTO_GetShiftState done [08:01:59]FM_GetShiftState done [08:01:59]req_shift_opened done [08:01:59]requested_item shift.open_date is exist - process it [08:01:59]req_shift_open_date [08:01:59]req_shift_open_date done [08:01:59]produce_requested_data done [08:01:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139181,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:01:59]process_action_free close_receipt [08:01:59]json_value_free [08:01:59]json_value_free done [08:01:59]process_json_proto returns [08:01:59]Send response to host [08:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139181,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:01:59]free response buf [08:01:59]execute_script done [08:01:59]execute_script returns [08:01:59]free content buf [08:01:59]Sock 9.Close socket [08:01:59]Sock 9.Thread stoped [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:39]accept exits with 7 [08:02:39]New connection [08:02:39]New thread 3067202916 created [08:02:39]Thread 3067059556 joined [08:02:39]Waiting for new connection... [08:02:39] Sock 7.Parse request [08:02:39]Sock 7.Check first char [08:02:39]Sock 7.First char is OK [08:02:39]request: POST /json_proto HTTP/1.0 [08:02:39]Method: POST [08:02:39]URL: /json_proto [08:02:39]Method is POST - this is cgi request [08:02:39]url: /json_proto [08:02:39]query_string will be loaded in cgi processing [08:02:39]execute_cgi json_proto POST (null) [08:02:39]execute_cgi path=json_proto method=POST [08:02:39]POST find Content-Length [08:02:39]Host: 172.17.45.67:8080 [08:02:39]Content-Length: 677 [08:02:39]Content-Type: application/json [08:02:39] [08:02:39]POST finish read [08:02:39]Found Content-Length = 677 [08:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [08:02:39]execute_script... [08:02: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)593022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [08:02:39]POST & json_proto [08:02:39]process_json_proto [08:02:39]json parsed OK: [08:02:39]protocol is kg_v1.0 [08:02:39]action value=close_receipt [08:02:39]process_action close_receipt [08:02:39]cmd_close_receipt [08:02:39]MH_GetDate [08:02:39]Write to MH i2c: F0 00 00 29 06 1E [08:02:39]Write i2c OK [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: F0 [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: F0 09 00 [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: F0 09 00 29 06 00 21 FC C2 66 5F 7F 2B 66 DB [08:02:39]GetLastDocTimeStamp 1724054517 [08:02:39]current date 1724054561 [08:02:39]FM_GetShiftState [08:02:39]SAM_PROTO_GetShiftState [08:02:39]wFMCommunicate request_size=4 [08:02:39]MH_SAM_APDU [08:02:39]CAPDU: 80 13 01 00 [08:02:39]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [08:02:39]Write i2c OK [08:02:39]MH_I2C_Read... [08:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:39]Read from MH i2c: E2 [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: E2 0E 00 [08:02:39]MH_I2C_Read... [08:02:39]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 64 [08:02:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:02:39]wFMCommunicate OK [08:02:39]SAM_PROTO_GetShiftState done [08:02:39]FM_GetShiftState done [08:02:39]opened in 1724027888 [08:02:39]opened+sec_in_day 1724114288 [08:02:39]quantity*price = 60003 [08:02:39]sum+1 = 60004 [08:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 17 19.08.2024 08:02 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139182 ФПД: 253041103406170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080241&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139182&fm=253041103406170&tin=02508201610067®Number=0000000000092569&sum=60000 [08:02:40]StoreToDocumentArchive [08:02:40]shift 452 fd 139182 [08:02:40]save to /storage/0452/doc_00139182 [08:02:40]save last doc name /storage/0452/doc_00139182 to /storage/kkm_last_doc_name [08:02:40]save OK [08:02:40]Clear old archive folders... [08:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:40]tlvbuf is 01D87280 [08:02:40]SAM_PROTO_ClearQueue [08:02:40]wFMCommunicate request_size=4 [08:02:40]MH_SAM_APDU [08:02:40]CAPDU: 80 09 00 00 [08:02:40]Write to MH i2c: E2 08 00 37 06 80 09 00 00 00 00 00 00 AF [08:02:40]Write i2c OK [08:02:40]MH_I2C_Read... [08:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:40]Read from MH i2c: E2 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 03 00 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [08:02:40]RAPDU: 90 00 [08:02:40]wFMCommunicate OK [08:02:40]SAM_PROTO_ClearQueue done [08:02:40]KKMCreateOFDPacket [08:02:40]OFDProtocolAddRootSTLVToBuf [08:02:40]FM_MakeSignedData [08:02:40]FM_MakeSignedData [08:02:40]SAM_PROTO_SignData [08:02:40]wFMCommunicate request_size=4 [08:02:40]MH_SAM_APDU [08:02:40]CAPDU: 80 0D 01 02 [08:02:40]Write to MH i2c: E2 08 00 38 06 80 0D 01 02 00 00 00 00 B7 [08:02:40]Write i2c OK [08:02:40]MH_I2C_Read... [08:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:40]Read from MH i2c: E2 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 03 00 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [08:02:40]RAPDU: 90 00 [08:02:40]wFMCommunicate OK [08:02:40]wFMCommunicate request_size=255 [08:02:40]MH_SAM_APDU [08:02: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 11 00 00 00 F4 03 04 00 21 FC C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 1F 02 00 35 04 06 00 E6 [08:02:40]Write to MH i2c: E2 02 01 39 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 11 00 00 00 F4 03 04 00 21 FC C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 1F 02 00 35 04 06 00 E6 00 00 D7 [08:02:40]Write i2c OK [08:02:40]MH_I2C_Read... [08:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:40]Read from MH i2c: E2 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 03 00 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [08:02:40]RAPDU: 90 00 [08:02:40]wFMCommunicate OK [08:02:40]wFMCommunicate request_size=10 [08:02:40]MH_SAM_APDU [08:02:40]CAPDU: 80 0D 02 02 05 23 B9 15 04 5A [08:02:40]Write to MH i2c: E2 0D 00 3A 06 80 0D 02 02 05 00 23 B9 15 04 5A 00 00 13 [08:02:40]Write i2c OK [08:02:40]MH_I2C_Read... [08:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:40]Read from MH i2c: E2 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 03 00 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [08:02:40]RAPDU: 90 00 [08:02:40]wFMCommunicate OK [08:02:40]wFMCommunicate request_size=4 [08:02:40]MH_SAM_APDU [08:02:40]CAPDU: 80 0D 03 02 [08:02:40]Write to MH i2c: E2 08 00 3B 06 80 0D 03 02 00 00 00 00 BC [08:02:40]Write i2c OK [08:02:40]MH_I2C_Read... [08:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:40]Read from MH i2c: E2 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 0B 00 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 0B 00 3B 06 00 EE 53 54 3D 08 92 DE 07 90 00 0E [08:02:40]RAPDU: EE 53 54 3D 08 92 DE 07 90 00 [08:02:40]wFMCommunicate OK [08:02:40]SAM_PROTO_SignData done [08:02:40]FM_MakeSignedData done [08:02:40]CreateOFDProtocolMessage [08:02:40]wFMCommunicate request_size=4 [08:02:40]MH_SAM_APDU [08:02:40]CAPDU: 80 11 00 00 [08:02:40]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [08:02:40]Write i2c OK [08:02:40]MH_I2C_Read... [08:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:40]Read from MH i2c: E2 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 17 00 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 13 [08:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:02:40]wFMCommunicate OK [08:02:40]CreateOFDProtocolMessage done [08:02:40]OFDSenderStorePacket 139182 [08:02:40]StoreOFDPacket docnum=139182 [08:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A4 55 07 01 ED 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 11 00 00 00 F4 03 04 00 21 FC C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 1F 02 00 35 04 06 00 E6 23 B9 15 04 5A EE 53 54 3D 08 92 DE 07 [08:02:40]CheckFolder [08:02:40]dirname=/storage/ofd_packets [08:02:40]CheckFolder done [08:02:40]ProducePacketName [08:02:40]name=ofd_packets/00139182 [08:02:40]NVStorageSaveData ofd_packets/00139182 [08:02:40]File name is /storage/ofd_packets/00139182 [08:02:40]Write 301 bytes [08:02:40]NVStorageSaveData done [08:02:40]OFDSenderStorePacket done [08:02:40]KKMCreateOFDPacket done [08:02:40]NVStorageSaveData kkm_last_timestamp [08:02:40]File name is /storage/kkm_last_timestamp [08:02:40]Write 4 bytes [08:02:40]NVStorageSaveData done [08:02:40]ExternCall_PrintAddStr [08:02:40]wPrintStart [08:02:40]Write to MH i2c: 01 00 00 3D 06 43 [08:02:40]Write i2c OK [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: 01 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: 01 07 00 [08:02:40]MH_I2C_Read... [08:02:40]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [08:02:40]RasterBufferAndPrint [08:02:40]line Счет N : (1)593022 [08:02:40]line ИНН: 02508201610067 [08:02:40]line Контрольно-Кассовый Чек [08:02:40]line ПРОДАЖА [08:02:40]line ТРК (МРК, ГНК) : 62 [08:02:40]line Товар: 2710124130 [08:02:40]line Аи-92-К-5 [08:02:40]line 8.850 * 67.80 [08:02:40]line = 600.03 [08:02:40]line НДС 12% НСП 1% [08:02:40]line > о реализуемом товаре [08:02:40]line ОКРУГЛЕНИЕ: -0.03 [08:02:40]line ИТОГО: 600.00 [08:02:40]line Внесено: 600.00 [08:02:40]line СДАЧА: 0.00 [08:02:40]line НСП 1% : 5.31 [08:02:40]line НДС 12% : 63.72 [08:02:40]line Наличными: 600.00 [08:02:40]line Безнал.: 0.00 [08:02:40]line Место: АЗС № 136 "Партнер Нефть" [08:02:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:02:40]line СНО: Общий режим [08:02:40]line Чек 17 19.08.2024 08:02 [08:02:40]line Смена: 452 ФФД: 1.0 [08:02:40]line ЗНМ: 0300000067 [08:02:40]line РНМ: 0000000000092569 [08:02:40]line Версия ККМ: 001 [08:02:40]line ФМ: 0000000000871776 [08:02:40]line ФД: 139182 [08:02:40]line ФПД: 253041103406170 [08:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080241&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139182&fm=253041103406170&tin=02508201610067®Number=0000000000092569&sum=60000 [08:02:41]OFD Sender: Processing packet 139182 [packets to send 137, broken 136] [08:02:41]ProducePacketName [08:02:41]name=ofd_packets/00139182 [08:02:41]OFD Sender: To server: pG, [08:02:41]CommunicateWithHost lk.salyk.kg:30040 [08:02:41]ConnectInit lk.salyk.kg [08:02:41]written 0, free lines is 4095 [08:02:41]Connected sock=10 [08:02: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 37 36 0F 01 00 00 A4 55 07 01 ED 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 11 00 00 00 F4 03 04 00 21 FC C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 1F 02 00 35 04 06 00 E6 23 B9 15 04 5A EE 53 54 3D 08 92 DE 07 [08:02: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 37 36 4F 00 00 00 06 BF 47 00 4F 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 37 36 10 04 04 00 AE 1F 02 00 F4 03 04 00 B7 A2 C2 66 B6 04 01 00 00 CC 77 C0 40 AD BD A2 59 [08:02:41]CommunicateWithHost err = 0 [08:02:41]CheckOFDResponse [08:02:41]1017 (14) - 77093643461234 [08:02:41]1041 (16) - 0000000000871776 [08:02:41]1040 (4) - 139182 [08:02:41]1012 (4) - 19.08.2024 01:41 [08:02:41]1206 (1) - 0 [08:02:41]OFD Sender: Remove packet 139182 [08:02:41]ProducePacketName [08:02:41]name=ofd_packets/00139182 [08:02:41]NVStorageDeleteData [08:02:41]Write to MH i2c: 01 00 00 68 06 6E [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: 01 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: 01 07 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: 01 07 00 68 06 00 00 00 00 00 BB 0C 3C [08:02:41]RasterBufferAndPrint [08:02:41]line [08:02:41]line [08:02:41]line [08:02:41]line [08:02:41]line [08:02:41]written 0, free lines is 3267 [08:02:41]MH_Cut [08:02:41]Write to MH i2c: D1 01 00 6F 06 01 47 [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: D1 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: D1 01 00 [08:02:41]MH_I2C_Read... [08:02:41]Read from MH i2c: D1 01 00 6F 06 00 46 [08:02:41]Write to MH i2c: 01 00 00 70 06 76 [08:02:41]Write i2c OK [08:02:41]MH_I2C_Read... [08:02:42]OFD Sender: No OFD packet to send [08:02:42]*** Cut start [08:02:42]*** Partial cut [08:02:42]*** CUTSNS_PIN = 1 [08:02:42]*** CUTSNS_PIN = 0 [08:02:42]*** Brake cut motor [08:02:43]Read from MH i2c: 01 [08:02:43]MH_I2C_Read... [08:02:43]*** Stop cut motor [08:02:43]*** Cut end [08:02:43]Read from MH i2c: 01 07 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: 01 07 00 70 06 00 00 00 00 00 FF 0F 8B [08:02:43]process_action close_receipt done [08:02:43]requested_data is exist [08:02:43]produce_requested_data [08:02:43]requested_item fm.sn is exist - process it [08:02:43]wFMCommunicate request_size=4 [08:02:43]MH_SAM_APDU [08:02:43]CAPDU: 80 11 00 00 [08:02:43]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [08:02:43]Write i2c OK [08:02:43]MH_I2C_Read... [08:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:43]Read from MH i2c: E2 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 17 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 48 [08:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:02:43]wFMCommunicate OK [08:02:43]requested_item fd.num is exist - process it [08:02:43]SAM_PROTO_GetFieldsCounters [08:02:43]wFMCommunicate request_size=4 [08:02:43]MH_SAM_APDU [08:02:43]CAPDU: 80 13 00 00 [08:02:43]Write to MH i2c: E2 08 00 72 06 80 13 00 00 00 00 00 00 F4 [08:02:43]Write i2c OK [08:02:43]MH_I2C_Read... [08:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:43]Read from MH i2c: E2 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 62 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 62 00 72 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [08:02: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:43]wFMCommunicate OK [08:02:43]SAM_PROTO_GetFieldsCounters done [08:02:43]requested_item shift.num is exist - process it [08:02:43]requested_item shift.opened is exist - process it [08:02:43]req_shift_opened [08:02:43]FM_GetShiftState [08:02:43]SAM_PROTO_GetShiftState [08:02:43]wFMCommunicate request_size=4 [08:02:43]MH_SAM_APDU [08:02:43]CAPDU: 80 13 01 00 [08:02:43]Write to MH i2c: E2 08 00 73 06 80 13 01 00 00 00 00 00 F6 [08:02:43]Write i2c OK [08:02:43]MH_I2C_Read... [08:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:43]Read from MH i2c: E2 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 0E 00 [08:02:43]MH_I2C_Read... [08:02:43]Read from MH i2c: E2 0E 00 73 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AD [08:02:43]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:02:43]wFMCommunicate OK [08:02:43]SAM_PROTO_GetShiftState done [08:02:43]FM_GetShiftState done [08:02:43]req_shift_opened done [08:02:43]requested_item shift.open_date is exist - process it [08:02:43]req_shift_open_date [08:02:43]req_shift_open_date done [08:02:43]produce_requested_data done [08:02:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139182,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:02:43]process_action_free close_receipt [08:02:43]json_value_free [08:02:43]json_value_free done [08:02:43]process_json_proto returns [08:02:43]Send response to host [08:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139182,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:02:43]free response buf [08:02:43]execute_script done [08:02:43]execute_script returns [08:02:43]free content buf [08:02:43]Sock 7.Close socket [08:02:43]Sock 7.Thread stoped [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:24]accept exits with 9 [08:06:24]New connection [08:06:24]New thread 3067059556 created [08:06:24]Thread 3067202916 joined [08:06:24]Waiting for new connection... [08:06:24] Sock 9.Parse request [08:06:24]Sock 9.Check first char [08:06:24]Sock 9.First char is OK [08:06:24]request: POST /json_proto HTTP/1.0 [08:06:24]Method: POST [08:06:24]URL: /json_proto [08:06:24]Method is POST - this is cgi request [08:06:24]url: /json_proto [08:06:24]query_string will be loaded in cgi processing [08:06:24]execute_cgi json_proto POST (null) [08:06:24]execute_cgi path=json_proto method=POST [08:06:24]POST find Content-Length [08:06:24]Host: 172.17.45.67:8080 [08:06:24]Content-Length: 677 [08:06:24]Content-Type: application/json [08:06:24] [08:06:24]POST finish read [08:06:24]Found Content-Length = 677 [08:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:06:24]execute_script... [08:06: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)593023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:06:24]POST & json_proto [08:06:24]process_json_proto [08:06:24]json parsed OK: [08:06:24]protocol is kg_v1.0 [08:06:24]action value=close_receipt [08:06:24]process_action close_receipt [08:06:24]cmd_close_receipt [08:06:24]MH_GetDate [08:06:24]Write to MH i2c: F0 00 00 74 06 69 [08:06:24]Write i2c OK [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: F0 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: F0 09 00 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: F0 09 00 74 06 00 02 FD C2 66 5F 7F 2B 66 08 [08:06:24]GetLastDocTimeStamp 1724054561 [08:06:24]current date 1724054786 [08:06:24]FM_GetShiftState [08:06:24]SAM_PROTO_GetShiftState [08:06:24]wFMCommunicate request_size=4 [08:06:24]MH_SAM_APDU [08:06:24]CAPDU: 80 13 01 00 [08:06:24]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [08:06:24]Write i2c OK [08:06:24]MH_I2C_Read... [08:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:24]Read from MH i2c: E2 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 0E 00 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AF [08:06:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:06:24]wFMCommunicate OK [08:06:24]SAM_PROTO_GetShiftState done [08:06:24]FM_GetShiftState done [08:06:24]opened in 1724027888 [08:06:24]opened+sec_in_day 1724114288 [08:06:24]quantity*price = 50036 [08:06:24]sum+1 = 50037 [08:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 18 19.08.2024 08:06 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139183 ФПД: 264241730237659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080626&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139183&fm=264241730237659&tin=02508201610067®Number=0000000000092569&sum=50000 [08:06:25]StoreToDocumentArchive [08:06:25]shift 452 fd 139183 [08:06:25]save to /storage/0452/doc_00139183 [08:06:25]save last doc name /storage/0452/doc_00139183 to /storage/kkm_last_doc_name [08:06:25]save OK [08:06:25]Clear old archive folders... [08:06:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:25]tlvbuf is 01D5EA60 [08:06:25]SAM_PROTO_ClearQueue [08:06:25]wFMCommunicate request_size=4 [08:06:25]MH_SAM_APDU [08:06:25]CAPDU: 80 09 00 00 [08:06:25]Write to MH i2c: E2 08 00 82 06 80 09 00 00 00 00 00 00 FA [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:25]Read from MH i2c: E2 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 03 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [08:06:25]RAPDU: 90 00 [08:06:25]wFMCommunicate OK [08:06:25]SAM_PROTO_ClearQueue done [08:06:25]KKMCreateOFDPacket [08:06:25]OFDProtocolAddRootSTLVToBuf [08:06:25]FM_MakeSignedData [08:06:25]FM_MakeSignedData [08:06:25]SAM_PROTO_SignData [08:06:25]wFMCommunicate request_size=4 [08:06:25]MH_SAM_APDU [08:06:25]CAPDU: 80 0D 01 02 [08:06:25]Write to MH i2c: E2 08 00 83 06 80 0D 01 02 00 00 00 00 02 [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:25]Read from MH i2c: E2 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 03 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [08:06:25]RAPDU: 90 00 [08:06:25]wFMCommunicate OK [08:06:25]wFMCommunicate request_size=255 [08:06:25]MH_SAM_APDU [08:06: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 12 00 00 00 F4 03 04 00 02 FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 1F 02 00 35 04 06 00 F0 [08:06:25]Write to MH i2c: E2 02 01 84 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 12 00 00 00 F4 03 04 00 02 FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 1F 02 00 35 04 06 00 F0 00 00 49 [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:25]Read from MH i2c: E2 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 03 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [08:06:25]RAPDU: 90 00 [08:06:25]wFMCommunicate OK [08:06:25]wFMCommunicate request_size=10 [08:06:25]MH_SAM_APDU [08:06:25]CAPDU: 80 0D 02 02 05 53 92 77 34 DB [08:06:25]Write to MH i2c: E2 0D 00 85 06 80 0D 02 02 05 00 53 92 77 34 DB 00 00 7A [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:25]Read from MH i2c: E2 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 03 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [08:06:25]RAPDU: 90 00 [08:06:25]wFMCommunicate OK [08:06:25]wFMCommunicate request_size=4 [08:06:25]MH_SAM_APDU [08:06:25]CAPDU: 80 0D 03 02 [08:06:25]Write to MH i2c: E2 08 00 86 06 80 0D 03 02 00 00 00 00 07 [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:25]Read from MH i2c: E2 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 0B 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 0B 00 86 06 00 7F 8F 76 10 2E 38 F8 69 90 00 63 [08:06:25]RAPDU: 7F 8F 76 10 2E 38 F8 69 90 00 [08:06:25]wFMCommunicate OK [08:06:25]SAM_PROTO_SignData done [08:06:25]FM_MakeSignedData done [08:06:25]CreateOFDProtocolMessage [08:06:25]wFMCommunicate request_size=4 [08:06:25]MH_SAM_APDU [08:06:25]CAPDU: 80 11 00 00 [08:06:25]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:25]Read from MH i2c: E2 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 17 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5E [08:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:06:25]wFMCommunicate OK [08:06:25]CreateOFDProtocolMessage done [08:06:25]OFDSenderStorePacket 139183 [08:06:25]StoreOFDPacket docnum=139183 [08:06:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D2 91 07 01 99 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 12 00 00 00 F4 03 04 00 02 FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 1F 02 00 35 04 06 00 F0 53 92 77 34 DB 7F 8F 76 10 2E 38 F8 69 [08:06:25]CheckFolder [08:06:25]dirname=/storage/ofd_packets [08:06:25]CheckFolder done [08:06:25]ProducePacketName [08:06:25]name=ofd_packets/00139183 [08:06:25]NVStorageSaveData ofd_packets/00139183 [08:06:25]File name is /storage/ofd_packets/00139183 [08:06:25]Write 301 bytes [08:06:25]NVStorageSaveData done [08:06:25]OFDSenderStorePacket done [08:06:25]KKMCreateOFDPacket done [08:06:25]NVStorageSaveData kkm_last_timestamp [08:06:25]File name is /storage/kkm_last_timestamp [08:06:25]Write 4 bytes [08:06:25]NVStorageSaveData done [08:06:25]ExternCall_PrintAddStr [08:06:25]wPrintStart [08:06:25]Write to MH i2c: 01 00 00 88 06 8E [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: 01 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: 01 07 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: 01 07 00 88 06 00 00 00 00 00 FF 0F A3 [08:06:25]RasterBufferAndPrint [08:06:25]line Счет N : (1)593023 [08:06:25]line ИНН: 02508201610067 [08:06:25]line Контрольно-Кассовый Чек [08:06:25]line ПРОДАЖА [08:06:25]line ТРК (МРК, ГНК) : 42 [08:06:25]line Товар: 2710124130 [08:06:25]line Аи-92-К-5 [08:06:25]line 7.380 * 67.80 [08:06:25]line = 500.36 [08:06:25]line НДС 12% НСП 1% [08:06:25]line > о реализуемом товаре [08:06:25]line ОКРУГЛЕНИЕ: -0.36 [08:06:25]line ИТОГО: 500.00 [08:06:25]line Внесено: 500.00 [08:06:25]line СДАЧА: 0.00 [08:06:25]line НСП 1% : 4.43 [08:06:25]line НДС 12% : 53.14 [08:06:25]line Наличными: 500.00 [08:06:25]line Безнал.: 0.00 [08:06:25]line Место: АЗС № 136 "Партнер Нефть" [08:06:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:06:25]line СНО: Общий режим [08:06:25]line Чек 18 19.08.2024 08:06 [08:06:25]line Смена: 452 ФФД: 1.0 [08:06:25]line ЗНМ: 0300000067 [08:06:25]line РНМ: 0000000000092569 [08:06:25]line Версия ККМ: 001 [08:06:25]line ФМ: 0000000000871776 [08:06:25]line ФД: 139183 [08:06:25]line ФПД: 264241730237659 [08:06:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080626&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139183&fm=264241730237659&tin=02508201610067®Number=0000000000092569&sum=50000 [08:06:26]OFD Sender: Processing packet 139183 [packets to send 137, broken 136] [08:06:26]ProducePacketName [08:06:26]name=ofd_packets/00139183 [08:06:26]OFD Sender: To server: pG, [08:06:26]CommunicateWithHost lk.salyk.kg:30040 [08:06:26]ConnectInit lk.salyk.kg [08:06:26]written 0, free lines is 4095 [08:06:26]Connected sock=10 [08:06: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 37 36 0F 01 00 00 D2 91 07 01 99 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 12 00 00 00 F4 03 04 00 02 FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 1F 02 00 35 04 06 00 F0 53 92 77 34 DB 7F 8F 76 10 2E 38 F8 69 [08:06: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 37 36 4F 00 00 00 2D 91 47 00 8B 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 37 36 10 04 04 00 AF 1F 02 00 F4 03 04 00 98 A3 C2 66 B6 04 01 00 00 97 F2 4C 63 7D A3 D0 97 [08:06:26]CommunicateWithHost err = 0 [08:06:26]CheckOFDResponse [08:06:26]1017 (14) - 77093643461234 [08:06:26]1041 (16) - 0000000000871776 [08:06:26]1040 (4) - 139183 [08:06:26]1012 (4) - 19.08.2024 01:44 [08:06:26]1206 (1) - 0 [08:06:26]OFD Sender: Remove packet 139183 [08:06:26]ProducePacketName [08:06:26]name=ofd_packets/00139183 [08:06:26]NVStorageDeleteData [08:06:26]Write to MH i2c: 01 00 00 B3 06 B9 [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 07 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 BE 0C 8A [08:06:26]RasterBufferAndPrint [08:06:26]line [08:06:26]line [08:06:26]line [08:06:26]line [08:06:26]line [08:06:26]written 0, free lines is 3269 [08:06:26]MH_Cut [08:06:26]Write to MH i2c: D1 01 00 BA 06 01 92 [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: D1 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: D1 01 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: D1 01 00 BA 06 00 91 [08:06:26]Write to MH i2c: 01 00 00 BB 06 C1 [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:27]OFD Sender: No OFD packet to send [08:06:27]*** Cut start [08:06:27]*** Partial cut [08:06:27]*** CUTSNS_PIN = 1 [08:06:27]*** CUTSNS_PIN = 0 [08:06:27]*** Brake cut motor [08:06:27]Read from MH i2c: 01 [08:06:27]MH_I2C_Read... [08:06:27]*** Stop cut motor [08:06:27]*** Cut end [08:06:27]Read from MH i2c: 01 07 00 [08:06:27]MH_I2C_Read... [08:06:27]Read from MH i2c: 01 07 00 BB 06 00 00 00 00 00 FF 0F D6 [08:06:27]process_action close_receipt done [08:06:27]requested_data is exist [08:06:27]produce_requested_data [08:06:27]requested_item fm.sn is exist - process it [08:06:27]wFMCommunicate request_size=4 [08:06:27]MH_SAM_APDU [08:06:27]CAPDU: 80 11 00 00 [08:06:27]Write to MH i2c: E2 08 00 BC 06 80 11 00 00 00 00 00 00 3C [08:06:27]Write i2c OK [08:06:27]MH_I2C_Read... [08:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:28]Read from MH i2c: E2 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 17 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 17 00 BC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 93 [08:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:06:28]wFMCommunicate OK [08:06:28]requested_item fd.num is exist - process it [08:06:28]SAM_PROTO_GetFieldsCounters [08:06:28]wFMCommunicate request_size=4 [08:06:28]MH_SAM_APDU [08:06:28]CAPDU: 80 13 00 00 [08:06:28]Write to MH i2c: E2 08 00 BD 06 80 13 00 00 00 00 00 00 3F [08:06:28]Write i2c OK [08:06:28]MH_I2C_Read... [08:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:28]Read from MH i2c: E2 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 62 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 62 00 BD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [08:06: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:28]wFMCommunicate OK [08:06:28]SAM_PROTO_GetFieldsCounters done [08:06:28]requested_item shift.num is exist - process it [08:06:28]requested_item shift.opened is exist - process it [08:06:28]req_shift_opened [08:06:28]FM_GetShiftState [08:06:28]SAM_PROTO_GetShiftState [08:06:28]wFMCommunicate request_size=4 [08:06:28]MH_SAM_APDU [08:06:28]CAPDU: 80 13 01 00 [08:06:28]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [08:06:28]Write i2c OK [08:06:28]MH_I2C_Read... [08:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:28]Read from MH i2c: E2 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 0E 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F8 [08:06:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:06:28]wFMCommunicate OK [08:06:28]SAM_PROTO_GetShiftState done [08:06:28]FM_GetShiftState done [08:06:28]req_shift_opened done [08:06:28]requested_item shift.open_date is exist - process it [08:06:28]req_shift_open_date [08:06:28]req_shift_open_date done [08:06:28]produce_requested_data done [08:06:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139183,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:06:28]process_action_free close_receipt [08:06:28]json_value_free [08:06:28]json_value_free done [08:06:28]process_json_proto returns [08:06:28]Send response to host [08:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139183,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:06:28]free response buf [08:06:28]execute_script done [08:06:28]execute_script returns [08:06:28]free content buf [08:06:28]Sock 9.Close socket [08:06:28]Sock 9.Thread stoped [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:44]accept exits with 7 [08:08:44]New connection [08:08:44]New thread 3067202916 created [08:08:44]Thread 3067059556 joined [08:08:44]Waiting for new connection... [08:08:44] Sock 7.Parse request [08:08:44]Sock 7.Check first char [08:08:44]Sock 7.First char is OK [08:08:44]request: POST /json_proto HTTP/1.0 [08:08:44]Method: POST [08:08:44]URL: /json_proto [08:08:44]Method is POST - this is cgi request [08:08:44]url: /json_proto [08:08:44]query_string will be loaded in cgi processing [08:08:44]execute_cgi json_proto POST (null) [08:08:44]execute_cgi path=json_proto method=POST [08:08:44]POST find Content-Length [08:08:44]Host: 172.17.45.67:8080 [08:08:44]Content-Length: 677 [08:08:44]Content-Type: application/json [08:08:44] [08:08:44]POST finish read [08:08:44]Found Content-Length = 677 [08:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [08:08:44]execute_script... [08:08: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)593025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [08:08:44]POST & json_proto [08:08:44]process_json_proto [08:08:44]json parsed OK: [08:08:44]protocol is kg_v1.0 [08:08:44]action value=close_receipt [08:08:44]process_action close_receipt [08:08:44]cmd_close_receipt [08:08:44]MH_GetDate [08:08:44]Write to MH i2c: F0 00 00 BF 06 B4 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: F0 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: F0 09 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: F0 09 00 BF 06 00 8E FD C2 66 5F 7F 2B 66 DF [08:08:44]GetLastDocTimeStamp 1724054786 [08:08:44]current date 1724054926 [08:08:44]FM_GetShiftState [08:08:44]SAM_PROTO_GetShiftState [08:08:44]wFMCommunicate request_size=4 [08:08:44]MH_SAM_APDU [08:08:44]CAPDU: 80 13 01 00 [08:08:44]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [08:08:44]Write i2c OK [08:08:44]MH_I2C_Read... [08:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:44]Read from MH i2c: E2 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 0E 00 [08:08:44]MH_I2C_Read... [08:08:44]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FA [08:08:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:08:44]wFMCommunicate OK [08:08:44]SAM_PROTO_GetShiftState done [08:08:44]FM_GetShiftState done [08:08:44]opened in 1724027888 [08:08:44]opened+sec_in_day 1724114288 [08:08:44]quantity*price = 35052 [08:08:44]sum+1 = 35054 [08:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 19 19.08.2024 08:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139184 ФПД: 184648828945427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080846&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139184&fm=184648828945427&tin=02508201610067®Number=0000000000092569&sum=35000 [08:08:45]StoreToDocumentArchive [08:08:45]shift 452 fd 139184 [08:08:45]save to /storage/0452/doc_00139184 [08:08:45]save last doc name /storage/0452/doc_00139184 to /storage/kkm_last_doc_name [08:08:45]save OK [08:08:45]Clear old archive folders... [08:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:45]tlvbuf is 01D5DC30 [08:08:45]SAM_PROTO_ClearQueue [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 09 00 00 [08:08:45]Write to MH i2c: E2 08 00 CD 06 80 09 00 00 00 00 00 00 45 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [08:08:45]RAPDU: 90 00 [08:08:45]wFMCommunicate OK [08:08:45]SAM_PROTO_ClearQueue done [08:08:45]KKMCreateOFDPacket [08:08:45]OFDProtocolAddRootSTLVToBuf [08:08:45]FM_MakeSignedData [08:08:45]FM_MakeSignedData [08:08:45]SAM_PROTO_SignData [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 0D 01 02 [08:08:45]Write to MH i2c: E2 08 00 CE 06 80 0D 01 02 00 00 00 00 4D [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [08:08:45]RAPDU: 90 00 [08:08:45]wFMCommunicate OK [08:08:45]wFMCommunicate request_size=255 [08:08:45]MH_SAM_APDU [08:08: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 13 00 00 00 F4 03 04 00 8E FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 1F 02 00 35 04 06 00 A7 [08:08:45]Write to MH i2c: E2 02 01 CF 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 13 00 00 00 F4 03 04 00 8E FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 1F 02 00 35 04 06 00 A7 00 00 04 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [08:08:45]RAPDU: 90 00 [08:08:45]wFMCommunicate OK [08:08:45]wFMCommunicate request_size=10 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 0D 02 02 05 EF E7 DB 84 13 [08:08:45]Write to MH i2c: E2 0D 00 D0 06 80 0D 02 02 05 00 EF E7 DB 84 13 00 00 A2 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [08:08:45]RAPDU: 90 00 [08:08:45]wFMCommunicate OK [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 0D 03 02 [08:08:45]Write to MH i2c: E2 08 00 D1 06 80 0D 03 02 00 00 00 00 52 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 0B 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 0B 00 D1 06 00 F3 DD F5 64 51 5E 84 B4 90 00 63 [08:08:46]RAPDU: F3 DD F5 64 51 5E 84 B4 90 00 [08:08:46]wFMCommunicate OK [08:08:46]SAM_PROTO_SignData done [08:08:46]FM_MakeSignedData done [08:08:46]CreateOFDProtocolMessage [08:08:46]wFMCommunicate request_size=4 [08:08:46]MH_SAM_APDU [08:08:46]CAPDU: 80 11 00 00 [08:08:46]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:46]Read from MH i2c: E2 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 17 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [08:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:08:46]wFMCommunicate OK [08:08:46]CreateOFDProtocolMessage done [08:08:46]OFDSenderStorePacket 139184 [08:08:46]StoreOFDPacket docnum=139184 [08:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AA 19 07 01 65 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 13 00 00 00 F4 03 04 00 8E FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 1F 02 00 35 04 06 00 A7 EF E7 DB 84 13 F3 DD F5 64 51 5E 84 B4 [08:08:46]CheckFolder [08:08:46]dirname=/storage/ofd_packets [08:08:46]CheckFolder done [08:08:46]ProducePacketName [08:08:46]name=ofd_packets/00139184 [08:08:46]NVStorageSaveData ofd_packets/00139184 [08:08:46]File name is /storage/ofd_packets/00139184 [08:08:46]Write 301 bytes [08:08:46]NVStorageSaveData done [08:08:46]OFDSenderStorePacket done [08:08:46]KKMCreateOFDPacket done [08:08:46]NVStorageSaveData kkm_last_timestamp [08:08:46]File name is /storage/kkm_last_timestamp [08:08:46]Write 4 bytes [08:08:46]NVStorageSaveData done [08:08:46]OFD Sender: Processing packet 139184 [packets to send 137, broken 136] [08:08:46]ProducePacketName [08:08:46]name=ofd_packets/00139184 [08:08:46]OFD Sender: To server: pG, [08:08:46]CommunicateWithHost lk.salyk.kg:30040 [08:08:46]ConnectInit lk.salyk.kg [08:08:46]ExternCall_PrintAddStr [08:08:46]wPrintStart [08:08:46]Write to MH i2c: 01 00 00 D3 06 D9 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 07 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 07 00 D3 06 00 00 00 00 00 FF 0F EE [08:08:46]RasterBufferAndPrint [08:08:46]line Счет N : (1)593025 [08:08:46]line ИНН: 02508201610067 [08:08:46]line Контрольно-Кассовый Чек [08:08:46]line ПРОДАЖА [08:08:46]line ТРК (МРК, ГНК) : 32 [08:08:46]line Товар: 2710124130 [08:08:46]line Аи-92-К-5 [08:08:46]line 5.170 * 67.80 [08:08:46]line = 350.53 [08:08:46]line НДС 12% НСП 1% [08:08:46]line > о реализуемом товаре [08:08:46]line ОКРУГЛЕНИЕ: -0.53 [08:08:46]line ИТОГО: 350.00 [08:08:46]line Внесено: 350.00 [08:08:46]line СДАЧА: 0.00 [08:08:46]line НСП 1% : 3.10 [08:08:46]line НДС 12% : 37.22 [08:08:46]line Наличными: 350.00 [08:08:46]line Безнал.: 0.00 [08:08:46]line Место: АЗС № 136 "Партнер Нефть" [08:08:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:08:46]line СНО: Общий режим [08:08:46]line Чек 19 19.08.2024 08:08 [08:08:46]line Смена: 452 ФФД: 1.0 [08:08:46]line ЗНМ: 0300000067 [08:08:46]line РНМ: 0000000000092569 [08:08:46]line Версия ККМ: 001 [08:08:46]line ФМ: 0000000000871776 [08:08:46]line ФД: 139184 [08:08:46]line ФПД: 184648828945427 [08:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080846&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139184&fm=184648828945427&tin=02508201610067®Number=0000000000092569&sum=35000 [08:08:46]Connected sock=11 [08:08: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 37 36 0F 01 00 00 AA 19 07 01 65 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 13 00 00 00 F4 03 04 00 8E FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 1F 02 00 35 04 06 00 A7 EF E7 DB 84 13 F3 DD F5 64 51 5E 84 B4 [08:08:46]written 0, free lines is 4095 [08:08: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 37 36 4F 00 00 00 B2 D3 47 00 32 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 37 36 10 04 04 00 B0 1F 02 00 F4 03 04 00 24 A4 C2 66 B6 04 01 00 00 8D F2 30 07 FD 9C 2C 2F [08:08:46]CommunicateWithHost err = 0 [08:08:46]CheckOFDResponse [08:08:46]1017 (14) - 77093643461234 [08:08:46]1041 (16) - 0000000000871776 [08:08:46]1040 (4) - 139184 [08:08:46]1012 (4) - 19.08.2024 01:47 [08:08:46]1206 (1) - 0 [08:08:46]OFD Sender: Remove packet 139184 [08:08:46]ProducePacketName [08:08:46]name=ofd_packets/00139184 [08:08:46]NVStorageDeleteData [08:08:46]Write to MH i2c: 01 00 00 FE 06 04 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 07 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 CB 0C E2 [08:08:46]RasterBufferAndPrint [08:08:46]line [08:08:46]line [08:08:46]line [08:08:46]line [08:08:46]line [08:08:46]written 0, free lines is 3281 [08:08:46]MH_Cut [08:08:46]Write to MH i2c: D1 01 00 05 07 01 DE [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: D1 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: D1 01 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: D1 01 00 05 07 00 DD [08:08:46]Write to MH i2c: 01 00 00 06 07 0D [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:47]OFD Sender: No OFD packet to send [08:08:47]*** Cut start [08:08:47]*** Partial cut [08:08:47]*** CUTSNS_PIN = 1 [08:08:47]*** CUTSNS_PIN = 0 [08:08:47]*** Brake cut motor [08:08:48]Read from MH i2c: 01 [08:08:48]MH_I2C_Read... [08:08:48]*** Stop cut motor [08:08:48]*** Cut end [08:08:48]Read from MH i2c: 01 07 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 FF 0F 22 [08:08:48]process_action close_receipt done [08:08:48]requested_data is exist [08:08:48]produce_requested_data [08:08:48]requested_item fm.sn is exist - process it [08:08:48]wFMCommunicate request_size=4 [08:08:48]MH_SAM_APDU [08:08:48]CAPDU: 80 11 00 00 [08:08:48]Write to MH i2c: E2 08 00 07 07 80 11 00 00 00 00 00 00 88 [08:08:48]Write i2c OK [08:08:48]MH_I2C_Read... [08:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:48]Read from MH i2c: E2 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 17 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 17 00 07 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [08:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:08:48]wFMCommunicate OK [08:08:48]requested_item fd.num is exist - process it [08:08:48]SAM_PROTO_GetFieldsCounters [08:08:48]wFMCommunicate request_size=4 [08:08:48]MH_SAM_APDU [08:08:48]CAPDU: 80 13 00 00 [08:08:48]Write to MH i2c: E2 08 00 08 07 80 13 00 00 00 00 00 00 8B [08:08:48]Write i2c OK [08:08:48]MH_I2C_Read... [08:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:48]Read from MH i2c: E2 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 62 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 62 00 08 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [08:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:48]wFMCommunicate OK [08:08:48]SAM_PROTO_GetFieldsCounters done [08:08:48]requested_item shift.num is exist - process it [08:08:48]requested_item shift.opened is exist - process it [08:08:48]req_shift_opened [08:08:48]FM_GetShiftState [08:08:48]SAM_PROTO_GetShiftState [08:08:48]wFMCommunicate request_size=4 [08:08:48]MH_SAM_APDU [08:08:48]CAPDU: 80 13 01 00 [08:08:48]Write to MH i2c: E2 08 00 09 07 80 13 01 00 00 00 00 00 8D [08:08:48]Write i2c OK [08:08:48]MH_I2C_Read... [08:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:48]Read from MH i2c: E2 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 0E 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 0E 00 09 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 44 [08:08:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:08:48]wFMCommunicate OK [08:08:48]SAM_PROTO_GetShiftState done [08:08:48]FM_GetShiftState done [08:08:48]req_shift_opened done [08:08:48]requested_item shift.open_date is exist - process it [08:08:48]req_shift_open_date [08:08:48]req_shift_open_date done [08:08:48]produce_requested_data done [08:08:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139184,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:08:48]process_action_free close_receipt [08:08:48]json_value_free [08:08:48]json_value_free done [08:08:48]process_json_proto returns [08:08:48]Send response to host [08:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139184,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:08:48]free response buf [08:08:48]execute_script done [08:08:48]execute_script returns [08:08:48]free content buf [08:08:48]Sock 7.Close socket [08:08:48]Sock 7.Thread stoped [08:08:52]OFD Sender: No OFD packet to send [08:08:54]accept exits with 9 [08:08:54]New connection [08:08:54]New thread 3067059556 created [08:08:54]Thread 3067202916 joined [08:08:54]Waiting for new connection... [08:08:54] Sock 9.Parse request [08:08:54]Sock 9.Check first char [08:08:54]Sock 9.First char is OK [08:08:54]request: POST /json_proto HTTP/1.0 [08:08:54]Method: POST [08:08:54]URL: /json_proto [08:08:54]Method is POST - this is cgi request [08:08:54]url: /json_proto [08:08:54]query_string will be loaded in cgi processing [08:08:54]execute_cgi json_proto POST (null) [08:08:54]execute_cgi path=json_proto method=POST [08:08:54]POST find Content-Length [08:08:54]Host: 172.17.45.67:8080 [08:08:54]Content-Length: 682 [08:08:54]Content-Type: application/json [08:08:54] [08:08:54]POST finish read [08:08:54]Found Content-Length = 682 [08:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:08:54]execute_script... [08:08: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)593024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:08:54]POST & json_proto [08:08:54]process_json_proto [08:08:54]json parsed OK: [08:08:54]protocol is kg_v1.0 [08:08:54]action value=close_receipt [08:08:54]process_action close_receipt [08:08:54]cmd_close_receipt [08:08:54]MH_GetDate [08:08:54]Write to MH i2c: F0 00 00 0A 07 00 [08:08:54]Write i2c OK [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: F0 [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: F0 09 00 [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: F0 09 00 0A 07 00 97 FD C2 66 5F 7F 2B 66 34 [08:08:54]GetLastDocTimeStamp 1724054926 [08:08:54]current date 1724054935 [08:08:54]FM_GetShiftState [08:08:54]SAM_PROTO_GetShiftState [08:08:54]wFMCommunicate request_size=4 [08:08:54]MH_SAM_APDU [08:08:54]CAPDU: 80 13 01 00 [08:08:54]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [08:08:54]Write i2c OK [08:08:54]MH_I2C_Read... [08:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:54]Read from MH i2c: E2 [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: E2 0E 00 [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 46 [08:08:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:08:54]wFMCommunicate OK [08:08:54]SAM_PROTO_GetShiftState done [08:08:54]FM_GetShiftState done [08:08:54]opened in 1724027888 [08:08:54]opened+sec_in_day 1724114288 [08:08:54]quantity*price = 100005 [08:08:54]sum+1 = 100006 [08:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 20 19.08.2024 08:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139185 ФПД: 159528076748834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080856&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139185&fm=159528076748834&tin=02508201610067®Number=0000000000092569&sum=100000 [08:08:55]StoreToDocumentArchive [08:08:55]shift 452 fd 139185 [08:08:55]save to /storage/0452/doc_00139185 [08:08:55]save last doc name /storage/0452/doc_00139185 to /storage/kkm_last_doc_name [08:08:55]save OK [08:08:55]Clear old archive folders... [08:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:55]tlvbuf is 01D675C0 [08:08:55]SAM_PROTO_ClearQueue [08:08:55]wFMCommunicate request_size=4 [08:08:55]MH_SAM_APDU [08:08:55]CAPDU: 80 09 00 00 [08:08:55]Write to MH i2c: E2 08 00 18 07 80 09 00 00 00 00 00 00 91 [08:08:55]Write i2c OK [08:08:55]MH_I2C_Read... [08:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:55]Read from MH i2c: E2 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 03 00 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 03 00 18 07 00 90 00 93 [08:08:55]RAPDU: 90 00 [08:08:55]wFMCommunicate OK [08:08:55]SAM_PROTO_ClearQueue done [08:08:55]KKMCreateOFDPacket [08:08:55]OFDProtocolAddRootSTLVToBuf [08:08:55]FM_MakeSignedData [08:08:55]FM_MakeSignedData [08:08:55]SAM_PROTO_SignData [08:08:55]wFMCommunicate request_size=4 [08:08:55]MH_SAM_APDU [08:08:55]CAPDU: 80 0D 01 02 [08:08:55]Write to MH i2c: E2 08 00 19 07 80 0D 01 02 00 00 00 00 99 [08:08:55]Write i2c OK [08:08:55]MH_I2C_Read... [08:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:55]Read from MH i2c: E2 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 03 00 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [08:08:55]RAPDU: 90 00 [08:08:55]wFMCommunicate OK [08:08:55]wFMCommunicate request_size=255 [08:08:55]MH_SAM_APDU [08:08: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 98 FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 1F 02 00 35 04 06 00 91 [08:08:55]Write to MH i2c: E2 02 01 1A 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 98 FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 1F 02 00 35 04 06 00 91 00 00 AA [08:08:55]Write i2c OK [08:08:55]MH_I2C_Read... [08:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:55]Read from MH i2c: E2 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 03 00 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [08:08:55]RAPDU: 90 00 [08:08:55]wFMCommunicate OK [08:08:55]wFMCommunicate request_size=10 [08:08:55]MH_SAM_APDU [08:08:55]CAPDU: 80 0D 02 02 05 17 06 58 A8 22 [08:08:55]Write to MH i2c: E2 0D 00 1B 07 80 0D 02 02 05 00 17 06 58 A8 22 00 00 E5 [08:08:55]Write i2c OK [08:08:55]MH_I2C_Read... [08:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:55]Read from MH i2c: E2 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 03 00 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [08:08:55]RAPDU: 90 00 [08:08:55]wFMCommunicate OK [08:08:55]wFMCommunicate request_size=4 [08:08:55]MH_SAM_APDU [08:08:55]CAPDU: 80 0D 03 02 [08:08:55]Write to MH i2c: E2 08 00 1C 07 80 0D 03 02 00 00 00 00 9E [08:08:55]Write i2c OK [08:08:55]MH_I2C_Read... [08:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:55]Read from MH i2c: E2 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 0B 00 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 0B 00 1C 07 00 FC 9D E9 69 A7 8D D9 B7 90 00 4E [08:08:55]RAPDU: FC 9D E9 69 A7 8D D9 B7 90 00 [08:08:55]wFMCommunicate OK [08:08:55]SAM_PROTO_SignData done [08:08:55]FM_MakeSignedData done [08:08:55]CreateOFDProtocolMessage [08:08:55]wFMCommunicate request_size=4 [08:08:55]MH_SAM_APDU [08:08:55]CAPDU: 80 11 00 00 [08:08:55]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [08:08:55]Write i2c OK [08:08:55]MH_I2C_Read... [08:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:55]Read from MH i2c: E2 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 17 00 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 17 00 1D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F5 [08:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:08:55]wFMCommunicate OK [08:08:55]CreateOFDProtocolMessage done [08:08:55]OFDSenderStorePacket 139185 [08:08:55]StoreOFDPacket docnum=139185 [08:08:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DF D8 07 01 C8 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 98 FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 1F 02 00 35 04 06 00 91 17 06 58 A8 22 FC 9D E9 69 A7 8D D9 B7 [08:08:55]CheckFolder [08:08:55]dirname=/storage/ofd_packets [08:08:55]CheckFolder done [08:08:55]ProducePacketName [08:08:55]name=ofd_packets/00139185 [08:08:55]NVStorageSaveData ofd_packets/00139185 [08:08:55]File name is /storage/ofd_packets/00139185 [08:08:55]Write 301 bytes [08:08:55]NVStorageSaveData done [08:08:55]OFDSenderStorePacket done [08:08:55]KKMCreateOFDPacket done [08:08:55]NVStorageSaveData kkm_last_timestamp [08:08:55]File name is /storage/kkm_last_timestamp [08:08:55]Write 4 bytes [08:08:55]NVStorageSaveData done [08:08:55]ExternCall_PrintAddStr [08:08:55]wPrintStart [08:08:55]Write to MH i2c: 01 00 00 1E 07 25 [08:08:55]Write i2c OK [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: 01 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: 01 07 00 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 FF 0F 3A [08:08:55]RasterBufferAndPrint [08:08:55]line Счет N : (1)593024 [08:08:55]line ИНН: 02508201610067 [08:08:55]line Контрольно-Кассовый Чек [08:08:55]line ПРОДАЖА [08:08:55]line ТРК (МРК, ГНК) : 42 [08:08:55]line Товар: 2710124130 [08:08:55]line Аи-92-К-5 [08:08:55]line 14.750 * 67.80 [08:08:55]line = 1000.05 [08:08:55]line НДС 12% НСП 1% [08:08:55]line > о реализуемом товаре [08:08:55]line ОКРУГЛЕНИЕ: -0.05 [08:08:55]line ИТОГО: 1000.00 [08:08:55]line Внесено: 1000.00 [08:08:55]line СДАЧА: 0.00 [08:08:55]line НСП 1% : 8.85 [08:08:55]line НДС 12% : 106.20 [08:08:55]line Наличными: 1000.00 [08:08:55]line Безнал.: 0.00 [08:08:55]line Место: АЗС № 136 "Партнер Нефть" [08:08:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:08:55]line СНО: Общий режим [08:08:55]line Чек 20 19.08.2024 08:08 [08:08:55]line Смена: 452 ФФД: 1.0 [08:08:55]line ЗНМ: 0300000067 [08:08:55]line РНМ: 0000000000092569 [08:08:55]line Версия ККМ: 001 [08:08:55]line ФМ: 0000000000871776 [08:08:55]line ФД: 139185 [08:08:55]line ФПД: 159528076748834 [08:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080856&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139185&fm=159528076748834&tin=02508201610067®Number=0000000000092569&sum=100000 [08:08:55]written 0, free lines is 4095 [08:08:55]OFD Sender: Processing packet 139185 [packets to send 137, broken 136] [08:08:55]ProducePacketName [08:08:55]name=ofd_packets/00139185 [08:08:55]OFD Sender: To server: pG, [08:08:55]CommunicateWithHost lk.salyk.kg:30040 [08:08:55]ConnectInit lk.salyk.kg [08:08:55]Connected sock=10 [08:08:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DF D8 07 01 C8 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 98 FD C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 1F 02 00 35 04 06 00 91 17 06 58 A8 22 FC 9D E9 69 A7 8D D9 B7 [08:08: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 37 36 4F 00 00 00 90 40 47 00 8F 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 37 36 10 04 04 00 B1 1F 02 00 F4 03 04 00 2E A4 C2 66 B6 04 01 00 00 DA 35 D7 72 EF 73 AC CE [08:08:56]CommunicateWithHost err = 0 [08:08:56]CheckOFDResponse [08:08:56]1017 (14) - 77093643461234 [08:08:56]1041 (16) - 0000000000871776 [08:08:56]1040 (4) - 139185 [08:08:56]1012 (4) - 19.08.2024 01:47 [08:08:56]1206 (1) - 0 [08:08:56]OFD Sender: Remove packet 139185 [08:08:56]ProducePacketName [08:08:56]name=ofd_packets/00139185 [08:08:56]NVStorageDeleteData [08:08:56]Write to MH i2c: 01 00 00 49 07 50 [08:08:56]Write i2c OK [08:08:56]MH_I2C_Read... [08:08:56]Read from MH i2c: 01 [08:08:56]MH_I2C_Read... [08:08:56]Read from MH i2c: 01 07 00 [08:08:56]MH_I2C_Read... [08:08:56]Read from MH i2c: 01 07 00 49 07 00 00 00 00 00 E3 0C 46 [08:08:56]RasterBufferAndPrint [08:08:56]line [08:08:56]line [08:08:56]line [08:08:56]line [08:08:56]line [08:08:56]written 0, free lines is 3308 [08:08:56]MH_Cut [08:08:56]Write to MH i2c: D1 01 00 50 07 01 29 [08:08:56]Write i2c OK [08:08:56]MH_I2C_Read... [08:08:56]Read from MH i2c: D1 [08:08:56]MH_I2C_Read... [08:08:56]Read from MH i2c: D1 01 00 [08:08:56]MH_I2C_Read... [08:08:56]Read from MH i2c: D1 01 00 50 07 00 28 [08:08:56]Write to MH i2c: 01 00 00 51 07 58 [08:08:56]Write i2c OK [08:08:56]MH_I2C_Read... [08:08:56]OFD Sender: No OFD packet to send [08:08:56]*** Cut start [08:08:56]*** Partial cut [08:08:56]*** CUTSNS_PIN = 1 [08:08:57]*** CUTSNS_PIN = 0 [08:08:57]*** Brake cut motor [08:08:57]Read from MH i2c: 01 [08:08:57]MH_I2C_Read... [08:08:57]*** Stop cut motor [08:08:57]*** Cut end [08:08:57]Read from MH i2c: 01 07 00 [08:08:57]MH_I2C_Read... [08:08:57]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 FF 0F 6D [08:08:57]process_action close_receipt done [08:08:57]requested_data is exist [08:08:57]produce_requested_data [08:08:57]requested_item fm.sn is exist - process it [08:08:57]wFMCommunicate request_size=4 [08:08:57]MH_SAM_APDU [08:08:57]CAPDU: 80 11 00 00 [08:08:57]Write to MH i2c: E2 08 00 52 07 80 11 00 00 00 00 00 00 D3 [08:08:57]Write i2c OK [08:08:57]MH_I2C_Read... [08:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:57]Read from MH i2c: E2 [08:08:57]MH_I2C_Read... [08:08:57]Read from MH i2c: E2 17 00 [08:08:57]MH_I2C_Read... [08:08:57]Read from MH i2c: E2 17 00 52 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [08:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:08:57]wFMCommunicate OK [08:08:57]requested_item fd.num is exist - process it [08:08:57]SAM_PROTO_GetFieldsCounters [08:08:57]wFMCommunicate request_size=4 [08:08:57]MH_SAM_APDU [08:08:57]CAPDU: 80 13 00 00 [08:08:57]Write to MH i2c: E2 08 00 53 07 80 13 00 00 00 00 00 00 D6 [08:08:57]Write i2c OK [08:08:57]MH_I2C_Read... [08:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:57]Read from MH i2c: E2 [08:08:57]MH_I2C_Read... [08:08:57]Read from MH i2c: E2 62 00 [08:08:57]MH_I2C_Read... [08:08:57]Read from MH i2c: E2 62 00 53 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [08:08:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:57]wFMCommunicate OK [08:08:57]SAM_PROTO_GetFieldsCounters done [08:08:57]requested_item shift.num is exist - process it [08:08:57]requested_item shift.opened is exist - process it [08:08:57]req_shift_opened [08:08:57]FM_GetShiftState [08:08:57]SAM_PROTO_GetShiftState [08:08:57]wFMCommunicate request_size=4 [08:08:57]MH_SAM_APDU [08:08:57]CAPDU: 80 13 01 00 [08:08:57]Write to MH i2c: E2 08 00 54 07 80 13 01 00 00 00 00 00 D8 [08:08:57]Write i2c OK [08:08:57]MH_I2C_Read... [08:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:57]Read from MH i2c: E2 [08:08:57]MH_I2C_Read... [08:08:57]Read from MH i2c: E2 0E 00 [08:08:57]MH_I2C_Read... [08:08:57]Read from MH i2c: E2 0E 00 54 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8F [08:08:57]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:08:57]wFMCommunicate OK [08:08:57]SAM_PROTO_GetShiftState done [08:08:57]FM_GetShiftState done [08:08:57]req_shift_opened done [08:08:57]requested_item shift.open_date is exist - process it [08:08:57]req_shift_open_date [08:08:57]req_shift_open_date done [08:08:57]produce_requested_data done [08:08:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139185,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:08:57]process_action_free close_receipt [08:08:57]json_value_free [08:08:57]json_value_free done [08:08:57]process_json_proto returns [08:08:57]Send response to host [08:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139185,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:08:57]free response buf [08:08:57]execute_script done [08:08:57]execute_script returns [08:08:57]free content buf [08:08:57]Sock 9.Close socket [08:08:57]Sock 9.Thread stoped [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]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:37]accept exits with 7 [08:15:37]New connection [08:15:37]New thread 3067202916 created [08:15:37]Thread 3067059556 joined [08:15:37]Waiting for new connection... [08:15:37] Sock 7.Parse request [08:15:37]Sock 7.Check first char [08:15:37]Sock 7.First char is OK [08:15:37]request: POST /json_proto HTTP/1.0 [08:15:37]Method: POST [08:15:37]URL: /json_proto [08:15:37]Method is POST - this is cgi request [08:15:37]url: /json_proto [08:15:37]query_string will be loaded in cgi processing [08:15:37]execute_cgi json_proto POST (null) [08:15:37]execute_cgi path=json_proto method=POST [08:15:37]POST find Content-Length [08:15:37]Host: 172.17.45.67:8080 [08:15:37]Content-Length: 677 [08:15:37]Content-Type: application/json [08:15:37] [08:15:37]POST finish read [08:15:37]Found Content-Length = 677 [08:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:15:37]execute_script... [08:15: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)593026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:15:37]POST & json_proto [08:15:37]process_json_proto [08:15:37]json parsed OK: [08:15:37]protocol is kg_v1.0 [08:15:37]action value=close_receipt [08:15:37]process_action close_receipt [08:15:37]cmd_close_receipt [08:15:37]MH_GetDate [08:15:37]Write to MH i2c: F0 00 00 55 07 4B [08:15:37]Write i2c OK [08:15:37]MH_I2C_Read... [08:15:37]Read from MH i2c: F0 [08:15:37]MH_I2C_Read... [08:15:37]Read from MH i2c: F0 09 00 [08:15:37]MH_I2C_Read... [08:15:37]Read from MH i2c: F0 09 00 55 07 00 2B FF C2 66 5F 7F 2B 66 15 [08:15:37]GetLastDocTimeStamp 1724054936 [08:15:37]current date 1724055339 [08:15:37]FM_GetShiftState [08:15:37]SAM_PROTO_GetShiftState [08:15:37]wFMCommunicate request_size=4 [08:15:37]MH_SAM_APDU [08:15:37]CAPDU: 80 13 01 00 [08:15:37]Write to MH i2c: E2 08 00 56 07 80 13 01 00 00 00 00 00 DA [08:15:37]Write i2c OK [08:15:37]MH_I2C_Read... [08:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:37]Read from MH i2c: E2 [08:15:37]MH_I2C_Read... [08:15:37]Read from MH i2c: E2 0E 00 [08:15:37]MH_I2C_Read... [08:15:37]Read from MH i2c: E2 0E 00 56 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 91 [08:15:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:15:37]wFMCommunicate OK [08:15:37]SAM_PROTO_GetShiftState done [08:15:37]FM_GetShiftState done [08:15:37]opened in 1724027888 [08:15:37]opened+sec_in_day 1724114288 [08:15:37]quantity*price = 50036 [08:15:37]sum+1 = 50037 [08:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 21 19.08.2024 08:15 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139186 ФПД: 49237282221788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T081539&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139186&fm=49237282221788&tin=02508201610067®Number=0000000000092569&sum=50000 [08:15:38]StoreToDocumentArchive [08:15:38]shift 452 fd 139186 [08:15:38]save to /storage/0452/doc_00139186 [08:15:38]save last doc name /storage/0452/doc_00139186 to /storage/kkm_last_doc_name [08:15:38]save OK [08:15:38]Clear old archive folders... [08:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:39]tlvbuf is 01D72620 [08:15:39]SAM_PROTO_ClearQueue [08:15:39]wFMCommunicate request_size=4 [08:15:39]MH_SAM_APDU [08:15:39]CAPDU: 80 09 00 00 [08:15:39]Write to MH i2c: E2 08 00 63 07 80 09 00 00 00 00 00 00 DC [08:15:39]Write i2c OK [08:15:39]MH_I2C_Read... [08:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:39]Read from MH i2c: E2 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 03 00 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [08:15:39]RAPDU: 90 00 [08:15:39]wFMCommunicate OK [08:15:39]SAM_PROTO_ClearQueue done [08:15:39]KKMCreateOFDPacket [08:15:39]OFDProtocolAddRootSTLVToBuf [08:15:39]FM_MakeSignedData [08:15:39]FM_MakeSignedData [08:15:39]SAM_PROTO_SignData [08:15:39]wFMCommunicate request_size=4 [08:15:39]MH_SAM_APDU [08:15:39]CAPDU: 80 0D 01 02 [08:15:39]Write to MH i2c: E2 08 00 64 07 80 0D 01 02 00 00 00 00 E4 [08:15:39]Write i2c OK [08:15:39]MH_I2C_Read... [08:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:39]Read from MH i2c: E2 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 03 00 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [08:15:39]RAPDU: 90 00 [08:15:39]wFMCommunicate OK [08:15:39]wFMCommunicate request_size=255 [08:15:39]MH_SAM_APDU [08:15: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 2B FF C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 1F 02 00 35 04 06 00 2C [08:15:39]Write to MH i2c: E2 02 01 65 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 2B FF C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 1F 02 00 35 04 06 00 2C 00 00 98 [08:15:39]Write i2c OK [08:15:39]MH_I2C_Read... [08:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:39]Read from MH i2c: E2 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 03 00 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [08:15:39]RAPDU: 90 00 [08:15:39]wFMCommunicate OK [08:15:39]wFMCommunicate request_size=10 [08:15:39]MH_SAM_APDU [08:15:39]CAPDU: 80 0D 02 02 05 C7 F2 B7 6E DC [08:15:39]Write to MH i2c: E2 0D 00 66 07 80 0D 02 02 05 00 C7 F2 B7 6E DC 00 00 AB [08:15:39]Write i2c OK [08:15:39]MH_I2C_Read... [08:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:39]Read from MH i2c: E2 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 03 00 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [08:15:39]RAPDU: 90 00 [08:15:39]wFMCommunicate OK [08:15:39]wFMCommunicate request_size=4 [08:15:39]MH_SAM_APDU [08:15:39]CAPDU: 80 0D 03 02 [08:15:39]Write to MH i2c: E2 08 00 67 07 80 0D 03 02 00 00 00 00 E9 [08:15:39]Write i2c OK [08:15:39]MH_I2C_Read... [08:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:39]Read from MH i2c: E2 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 0B 00 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 0B 00 67 07 00 CC 78 80 AF E5 75 63 1F 90 00 39 [08:15:39]RAPDU: CC 78 80 AF E5 75 63 1F 90 00 [08:15:39]wFMCommunicate OK [08:15:39]SAM_PROTO_SignData done [08:15:39]FM_MakeSignedData done [08:15:39]CreateOFDProtocolMessage [08:15:39]wFMCommunicate request_size=4 [08:15:39]MH_SAM_APDU [08:15:39]CAPDU: 80 11 00 00 [08:15:39]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [08:15:39]Write i2c OK [08:15:39]MH_I2C_Read... [08:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:39]Read from MH i2c: E2 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 17 00 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [08:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:15:39]wFMCommunicate OK [08:15:39]CreateOFDProtocolMessage done [08:15:39]OFDSenderStorePacket 139186 [08:15:39]StoreOFDPacket docnum=139186 [08:15:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 97 07 01 36 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 2B FF C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 1F 02 00 35 04 06 00 2C C7 F2 B7 6E DC CC 78 80 AF E5 75 63 1F [08:15:39]CheckFolder [08:15:39]dirname=/storage/ofd_packets [08:15:39]CheckFolder done [08:15:39]ProducePacketName [08:15:39]name=ofd_packets/00139186 [08:15:39]NVStorageSaveData ofd_packets/00139186 [08:15:39]File name is /storage/ofd_packets/00139186 [08:15:39]Write 301 bytes [08:15:39]NVStorageSaveData done [08:15:39]OFDSenderStorePacket done [08:15:39]KKMCreateOFDPacket done [08:15:39]NVStorageSaveData kkm_last_timestamp [08:15:39]File name is /storage/kkm_last_timestamp [08:15:39]Write 4 bytes [08:15:39]NVStorageSaveData done [08:15:39]ExternCall_PrintAddStr [08:15:39]wPrintStart [08:15:39]Write to MH i2c: 01 00 00 69 07 70 [08:15:39]Write i2c OK [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: 01 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: 01 07 00 [08:15:39]MH_I2C_Read... [08:15:39]Read from MH i2c: 01 07 00 69 07 00 00 00 00 00 FF 0F 85 [08:15:39]RasterBufferAndPrint [08:15:39]line Счет N : (1)593026 [08:15:39]line ИНН: 02508201610067 [08:15:39]line Контрольно-Кассовый Чек [08:15:39]line ПРОДАЖА [08:15:39]line ТРК (МРК, ГНК) : 32 [08:15:39]line Товар: 2710124130 [08:15:39]line Аи-92-К-5 [08:15:39]line 7.380 * 67.80 [08:15:39]line = 500.36 [08:15:39]line НДС 12% НСП 1% [08:15:39]line > о реализуемом товаре [08:15:39]line ОКРУГЛЕНИЕ: -0.36 [08:15:39]line ИТОГО: 500.00 [08:15:39]line Внесено: 500.00 [08:15:39]line СДАЧА: 0.00 [08:15:39]line НСП 1% : 4.43 [08:15:39]line НДС 12% : 53.14 [08:15:39]line Наличными: 500.00 [08:15:39]line Безнал.: 0.00 [08:15:39]line Место: АЗС № 136 "Партнер Нефть" [08:15:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:15:39]line СНО: Общий режим [08:15:39]line Чек 21 19.08.2024 08:15 [08:15:39]line Смена: 452 ФФД: 1.0 [08:15:39]line ЗНМ: 0300000067 [08:15:39]line РНМ: 0000000000092569 [08:15:39]line Версия ККМ: 001 [08:15:39]line ФМ: 0000000000871776 [08:15:39]line ФД: 139186 [08:15:39]line ФПД: 49237282221788 [08:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T081539&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139186&fm=49237282221788&tin=02508201610067®Number=0000000000092569&sum=50000 [08:15:39]OFD Sender: Processing packet 139186 [packets to send 137, broken 136] [08:15:39]ProducePacketName [08:15:39]name=ofd_packets/00139186 [08:15:39]OFD Sender: To server: pG, [08:15:39]CommunicateWithHost lk.salyk.kg:30040 [08:15:39]ConnectInit lk.salyk.kg [08:15:39]written 0, free lines is 4095 [08:15:39]Connected sock=10 [08:15: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 37 36 0F 01 00 00 81 97 07 01 36 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 2B FF C2 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 1F 02 00 35 04 06 00 2C C7 F2 B7 6E DC CC 78 80 AF E5 75 63 1F [08:15: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 37 36 4F 00 00 00 D3 11 47 00 BD 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 37 36 10 04 04 00 B2 1F 02 00 F4 03 04 00 C2 A5 C2 66 B6 04 01 00 00 5D C3 9C 42 C7 62 15 49 [08:15:40]CommunicateWithHost err = 0 [08:15:40]CheckOFDResponse [08:15:40]1017 (14) - 77093643461234 [08:15:40]1041 (16) - 0000000000871776 [08:15:40]1040 (4) - 139186 [08:15:40]1012 (4) - 19.08.2024 01:54 [08:15:40]1206 (1) - 0 [08:15:40]OFD Sender: Remove packet 139186 [08:15:40]ProducePacketName [08:15:40]name=ofd_packets/00139186 [08:15:40]NVStorageDeleteData [08:15:40]Write to MH i2c: 01 00 00 94 07 9B [08:15:40]Write i2c OK [08:15:40]MH_I2C_Read... [08:15:40]Read from MH i2c: 01 [08:15:40]MH_I2C_Read... [08:15:40]Read from MH i2c: 01 07 00 [08:15:40]MH_I2C_Read... [08:15:40]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 C1 0C 6F [08:15:40]RasterBufferAndPrint [08:15:40]line [08:15:40]line [08:15:40]line [08:15:40]line [08:15:40]line [08:15:40]written 0, free lines is 3271 [08:15:40]MH_Cut [08:15:40]Write to MH i2c: D1 01 00 9B 07 01 74 [08:15:40]Write i2c OK [08:15:40]MH_I2C_Read... [08:15:40]Read from MH i2c: D1 [08:15:40]MH_I2C_Read... [08:15:40]Read from MH i2c: D1 01 00 [08:15:40]MH_I2C_Read... [08:15:40]Read from MH i2c: D1 01 00 9B 07 00 73 [08:15:40]Write to MH i2c: 01 00 00 9C 07 A3 [08:15:40]Write i2c OK [08:15:40]MH_I2C_Read... [08:15:40]OFD Sender: No OFD packet to send [08:15:41]*** Cut start [08:15:41]*** Partial cut [08:15:41]*** CUTSNS_PIN = 1 [08:15:41]*** CUTSNS_PIN = 0 [08:15:41]*** Brake cut motor [08:15:41]Read from MH i2c: 01 [08:15:41]MH_I2C_Read... [08:15:41]*** Stop cut motor [08:15:41]*** Cut end [08:15:41]Read from MH i2c: 01 07 00 [08:15:41]MH_I2C_Read... [08:15:41]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [08:15:41]process_action close_receipt done [08:15:41]requested_data is exist [08:15:41]produce_requested_data [08:15:41]requested_item fm.sn is exist - process it [08:15:41]wFMCommunicate request_size=4 [08:15:41]MH_SAM_APDU [08:15:41]CAPDU: 80 11 00 00 [08:15:41]Write to MH i2c: E2 08 00 9D 07 80 11 00 00 00 00 00 00 1E [08:15:41]Write i2c OK [08:15:41]MH_I2C_Read... [08:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:41]Read from MH i2c: E2 [08:15:41]MH_I2C_Read... [08:15:41]Read from MH i2c: E2 17 00 [08:15:41]MH_I2C_Read... [08:15:41]Read from MH i2c: E2 17 00 9D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [08:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:15:41]wFMCommunicate OK [08:15:41]requested_item fd.num is exist - process it [08:15:41]SAM_PROTO_GetFieldsCounters [08:15:41]wFMCommunicate request_size=4 [08:15:41]MH_SAM_APDU [08:15:41]CAPDU: 80 13 00 00 [08:15:41]Write to MH i2c: E2 08 00 9E 07 80 13 00 00 00 00 00 00 21 [08:15:41]Write i2c OK [08:15:41]MH_I2C_Read... [08:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:41]Read from MH i2c: E2 [08:15:41]MH_I2C_Read... [08:15:41]Read from MH i2c: E2 62 00 [08:15:41]MH_I2C_Read... [08:15:41]Read from MH i2c: E2 62 00 9E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [08:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:41]wFMCommunicate OK [08:15:41]SAM_PROTO_GetFieldsCounters done [08:15:41]requested_item shift.num is exist - process it [08:15:41]requested_item shift.opened is exist - process it [08:15:41]req_shift_opened [08:15:41]FM_GetShiftState [08:15:41]SAM_PROTO_GetShiftState [08:15:41]wFMCommunicate request_size=4 [08:15:41]MH_SAM_APDU [08:15:41]CAPDU: 80 13 01 00 [08:15:41]Write to MH i2c: E2 08 00 9F 07 80 13 01 00 00 00 00 00 23 [08:15:41]Write i2c OK [08:15:41]MH_I2C_Read... [08:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:41]Read from MH i2c: E2 [08:15:41]MH_I2C_Read... [08:15:41]Read from MH i2c: E2 0E 00 [08:15:41]MH_I2C_Read... [08:15:41]Read from MH i2c: E2 0E 00 9F 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DA [08:15:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:15:41]wFMCommunicate OK [08:15:41]SAM_PROTO_GetShiftState done [08:15:41]FM_GetShiftState done [08:15:41]req_shift_opened done [08:15:41]requested_item shift.open_date is exist - process it [08:15:41]req_shift_open_date [08:15:41]req_shift_open_date done [08:15:41]produce_requested_data done [08:15:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139186,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:15:41]process_action_free close_receipt [08:15:41]json_value_free [08:15:41]json_value_free done [08:15:41]process_json_proto returns [08:15:41]Send response to host [08:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139186,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:15:41]free response buf [08:15:41]execute_script done [08:15:41]execute_script returns [08:15:41]free content buf [08:15:41]Sock 7.Close socket [08:15:41]Sock 7.Thread stoped [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:46]accept exits with 9 [08:19:46]New connection [08:19:46]New thread 3067059556 created [08:19:46]Thread 3067202916 joined [08:19:46]Waiting for new connection... [08:19:46] Sock 9.Parse request [08:19:46]Sock 9.Check first char [08:19:46]Sock 9.First char is OK [08:19:46]request: POST /json_proto HTTP/1.0 [08:19:46]Method: POST [08:19:46]URL: /json_proto [08:19:46]Method is POST - this is cgi request [08:19:46]url: /json_proto [08:19:46]query_string will be loaded in cgi processing [08:19:46]execute_cgi json_proto POST (null) [08:19:46]execute_cgi path=json_proto method=POST [08:19:46]POST find Content-Length [08:19:46]Host: 172.17.45.67:8080 [08:19:46]Content-Length: 677 [08:19:46]Content-Type: application/json [08:19:46] [08:19:46]POST finish read [08:19:46]Found Content-Length = 677 [08:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [08:19:46]execute_script... [08:19: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)593027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [08:19:46]POST & json_proto [08:19:46]process_json_proto [08:19:46]json parsed OK: [08:19:46]protocol is kg_v1.0 [08:19:46]action value=close_receipt [08:19:46]process_action close_receipt [08:19:46]cmd_close_receipt [08:19:46]MH_GetDate [08:19:46]Write to MH i2c: F0 00 00 A0 07 96 [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: F0 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: F0 09 00 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: F0 09 00 A0 07 00 24 00 C3 66 5F 7F 2B 66 5B [08:19:46]GetLastDocTimeStamp 1724055339 [08:19:46]current date 1724055588 [08:19:46]FM_GetShiftState [08:19:46]SAM_PROTO_GetShiftState [08:19:46]wFMCommunicate request_size=4 [08:19:46]MH_SAM_APDU [08:19:46]CAPDU: 80 13 01 00 [08:19:46]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:46]Read from MH i2c: E2 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: E2 0E 00 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DC [08:19:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:19:46]wFMCommunicate OK [08:19:46]SAM_PROTO_GetShiftState done [08:19:46]FM_GetShiftState done [08:19:46]opened in 1724027888 [08:19:46]opened+sec_in_day 1724114288 [08:19:46]quantity*price = 60003 [08:19:46]sum+1 = 60004 [08:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 22 19.08.2024 08:19 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139187 ФПД: 71043047734959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T081948&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139187&fm=71043047734959&tin=02508201610067®Number=0000000000092569&sum=60000 [08:19:48]StoreToDocumentArchive [08:19:48]shift 452 fd 139187 [08:19:48]save to /storage/0452/doc_00139187 [08:19:48]save last doc name /storage/0452/doc_00139187 to /storage/kkm_last_doc_name [08:19:48]save OK [08:19:48]Clear old archive folders... [08:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:48]tlvbuf is 01D5E960 [08:19:48]SAM_PROTO_ClearQueue [08:19:48]wFMCommunicate request_size=4 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 09 00 00 [08:19:48]Write to MH i2c: E2 08 00 AE 07 80 09 00 00 00 00 00 00 27 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [08:19:48]RAPDU: 90 00 [08:19:48]wFMCommunicate OK [08:19:48]SAM_PROTO_ClearQueue done [08:19:48]KKMCreateOFDPacket [08:19:48]OFDProtocolAddRootSTLVToBuf [08:19:48]FM_MakeSignedData [08:19:48]FM_MakeSignedData [08:19:48]SAM_PROTO_SignData [08:19:48]wFMCommunicate request_size=4 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 0D 01 02 [08:19:48]Write to MH i2c: E2 08 00 AF 07 80 0D 01 02 00 00 00 00 2F [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [08:19:48]RAPDU: 90 00 [08:19:48]wFMCommunicate OK [08:19:48]wFMCommunicate request_size=255 [08:19:48]MH_SAM_APDU [08:19: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 16 00 00 00 F4 03 04 00 24 00 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 1F 02 00 35 04 06 00 40 [08:19:48]Write to MH i2c: E2 02 01 B0 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 16 00 00 00 F4 03 04 00 24 00 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 1F 02 00 35 04 06 00 40 00 00 BB [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [08:19:48]RAPDU: 90 00 [08:19:48]wFMCommunicate OK [08:19:48]wFMCommunicate request_size=10 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 0D 02 02 05 9C FF 9F BE AF [08:19:48]Write to MH i2c: E2 0D 00 B1 07 80 0D 02 02 05 00 9C FF 9F BE AF 00 00 E3 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [08:19:48]RAPDU: 90 00 [08:19:48]wFMCommunicate OK [08:19:48]wFMCommunicate request_size=4 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 0D 03 02 [08:19:48]Write to MH i2c: E2 08 00 B2 07 80 0D 03 02 00 00 00 00 34 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 0B 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 0B 00 B2 07 00 E0 55 86 98 48 0C A9 B2 90 00 37 [08:19:48]RAPDU: E0 55 86 98 48 0C A9 B2 90 00 [08:19:48]wFMCommunicate OK [08:19:48]SAM_PROTO_SignData done [08:19:48]FM_MakeSignedData done [08:19:48]CreateOFDProtocolMessage [08:19:48]wFMCommunicate request_size=4 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 11 00 00 [08:19:48]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 17 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8B [08:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:19:48]wFMCommunicate OK [08:19:48]CreateOFDProtocolMessage done [08:19:48]OFDSenderStorePacket 139187 [08:19:48]StoreOFDPacket docnum=139187 [08:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B6 39 07 01 02 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 16 00 00 00 F4 03 04 00 24 00 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 1F 02 00 35 04 06 00 40 9C FF 9F BE AF E0 55 86 98 48 0C A9 B2 [08:19:48]CheckFolder [08:19:48]dirname=/storage/ofd_packets [08:19:48]CheckFolder done [08:19:48]ProducePacketName [08:19:48]name=ofd_packets/00139187 [08:19:48]NVStorageSaveData ofd_packets/00139187 [08:19:48]File name is /storage/ofd_packets/00139187 [08:19:48]Write 301 bytes [08:19:48]NVStorageSaveData done [08:19:48]OFDSenderStorePacket done [08:19:48]KKMCreateOFDPacket done [08:19:48]NVStorageSaveData kkm_last_timestamp [08:19:48]File name is /storage/kkm_last_timestamp [08:19:48]Write 4 bytes [08:19:48]NVStorageSaveData done [08:19:48]ExternCall_PrintAddStr [08:19:48]wPrintStart [08:19:48]Write to MH i2c: 01 00 00 B4 07 BB [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: 01 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: 01 07 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 FF 0F D0 [08:19:48]RasterBufferAndPrint [08:19:48]line Счет N : (1)593027 [08:19:48]line ИНН: 02508201610067 [08:19:48]line Контрольно-Кассовый Чек [08:19:48]line ПРОДАЖА [08:19:48]line ТРК (МРК, ГНК) : 52 [08:19:48]line Товар: 2710124130 [08:19:48]line Аи-92-К-5 [08:19:48]line 8.850 * 67.80 [08:19:48]line = 600.03 [08:19:48]line НДС 12% НСП 1% [08:19:48]line > о реализуемом товаре [08:19:48]line ОКРУГЛЕНИЕ: -0.03 [08:19:48]line ИТОГО: 600.00 [08:19:48]line Внесено: 600.00 [08:19:48]line СДАЧА: 0.00 [08:19:48]line НСП 1% : 5.31 [08:19:48]line НДС 12% : 63.72 [08:19:48]line Наличными: 600.00 [08:19:48]line Безнал.: 0.00 [08:19:48]line Место: АЗС № 136 "Партнер Нефть" [08:19:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:19:48]line СНО: Общий режим [08:19:48]line Чек 22 19.08.2024 08:19 [08:19:48]line Смена: 452 ФФД: 1.0 [08:19:48]line ЗНМ: 0300000067 [08:19:48]line РНМ: 0000000000092569 [08:19:48]line Версия ККМ: 001 [08:19:48]line ФМ: 0000000000871776 [08:19:48]line ФД: 139187 [08:19:48]line ФПД: 71043047734959 [08:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T081948&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139187&fm=71043047734959&tin=02508201610067®Number=0000000000092569&sum=60000 [08:19:48]OFD Sender: Processing packet 139187 [packets to send 137, broken 136] [08:19:48]ProducePacketName [08:19:48]name=ofd_packets/00139187 [08:19:48]OFD Sender: To server: pG, [08:19:48]CommunicateWithHost lk.salyk.kg:30040 [08:19:48]ConnectInit lk.salyk.kg [08:19:48]written 0, free lines is 4095 [08:19:49]Connected sock=10 [08:19: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 37 36 0F 01 00 00 B6 39 07 01 02 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 16 00 00 00 F4 03 04 00 24 00 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 1F 02 00 35 04 06 00 40 9C FF 9F BE AF E0 55 86 98 48 0C A9 B2 [08:19: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 37 36 4F 00 00 00 31 DD 47 00 03 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 37 36 10 04 04 00 B3 1F 02 00 F4 03 04 00 BB A6 C2 66 B6 04 01 00 00 47 5D B0 F3 7B C9 71 5C [08:19:49]CommunicateWithHost err = 0 [08:19:49]CheckOFDResponse [08:19:49]1017 (14) - 77093643461234 [08:19:49]1041 (16) - 0000000000871776 [08:19:49]1040 (4) - 139187 [08:19:49]1012 (4) - 19.08.2024 01:58 [08:19:49]1206 (1) - 0 [08:19:49]OFD Sender: Remove packet 139187 [08:19:49]ProducePacketName [08:19:49]name=ofd_packets/00139187 [08:19:49]NVStorageDeleteData [08:19:49]Write to MH i2c: 01 00 00 DF 07 E6 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 DF 07 00 00 00 00 00 C1 0C BA [08:19:49]RasterBufferAndPrint [08:19:49]line [08:19:49]line [08:19:49]line [08:19:49]line [08:19:49]line [08:19:49]written 0, free lines is 3271 [08:19:49]MH_Cut [08:19:49]Write to MH i2c: D1 01 00 E6 07 01 BF [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: D1 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: D1 01 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: D1 01 00 E6 07 00 BE [08:19:49]Write to MH i2c: 01 00 00 E7 07 EE [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]OFD Sender: No OFD packet to send [08:19:50]*** Cut start [08:19:50]*** Partial cut [08:19:50]*** CUTSNS_PIN = 1 [08:19:50]*** CUTSNS_PIN = 0 [08:19:50]*** Brake cut motor [08:19:50]Read from MH i2c: 01 [08:19:50]MH_I2C_Read... [08:19:50]*** Stop cut motor [08:19:50]*** Cut end [08:19:50]Read from MH i2c: 01 07 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: 01 07 00 E7 07 00 00 00 00 00 FF 0F 03 [08:19:50]process_action close_receipt done [08:19:50]requested_data is exist [08:19:50]produce_requested_data [08:19:50]requested_item fm.sn is exist - process it [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 11 00 00 [08:19:50]Write to MH i2c: E2 08 00 E8 07 80 11 00 00 00 00 00 00 69 [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 17 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 17 00 E8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [08:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:19:50]wFMCommunicate OK [08:19:50]requested_item fd.num is exist - process it [08:19:50]SAM_PROTO_GetFieldsCounters [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 13 00 00 [08:19:50]Write to MH i2c: E2 08 00 E9 07 80 13 00 00 00 00 00 00 6C [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 62 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 62 00 E9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [08:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:50]wFMCommunicate OK [08:19:50]SAM_PROTO_GetFieldsCounters done [08:19:50]requested_item shift.num is exist - process it [08:19:50]requested_item shift.opened is exist - process it [08:19:50]req_shift_opened [08:19:50]FM_GetShiftState [08:19:50]SAM_PROTO_GetShiftState [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 13 01 00 [08:19:50]Write to MH i2c: E2 08 00 EA 07 80 13 01 00 00 00 00 00 6E [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:50]Read from MH i2c: E2 0E 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 0E 00 EA 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 25 [08:19:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:19:50]wFMCommunicate OK [08:19:50]SAM_PROTO_GetShiftState done [08:19:50]FM_GetShiftState done [08:19:50]req_shift_opened done [08:19:50]requested_item shift.open_date is exist - process it [08:19:50]req_shift_open_date [08:19:50]req_shift_open_date done [08:19:50]produce_requested_data done [08:19:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139187,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:19:50]process_action_free close_receipt [08:19:50]json_value_free [08:19:50]json_value_free done [08:19:50]process_json_proto returns [08:19:50]Send response to host [08:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139187,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:19:50]free response buf [08:19:50]execute_script done [08:19:50]execute_script returns [08:19:50]free content buf [08:19:50]Sock 9.Close socket [08:19:50]Sock 9.Thread stoped [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:10]accept exits with 7 [08:23:10]New connection [08:23:10]New thread 3067202916 created [08:23:10]Thread 3067059556 joined [08:23:10]Waiting for new connection... [08:23:10] Sock 7.Parse request [08:23:10]Sock 7.Check first char [08:23:10]Sock 7.First char is OK [08:23:10]request: POST /json_proto HTTP/1.0 [08:23:10]Method: POST [08:23:10]URL: /json_proto [08:23:10]Method is POST - this is cgi request [08:23:10]url: /json_proto [08:23:10]query_string will be loaded in cgi processing [08:23:10]execute_cgi json_proto POST (null) [08:23:10]execute_cgi path=json_proto method=POST [08:23:10]POST find Content-Length [08:23:10]Host: 172.17.45.67:8080 [08:23:10]Content-Length: 677 [08:23:10]Content-Type: application/json [08:23:10] [08:23:10]POST finish read [08:23:10]Found Content-Length = 677 [08:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [08:23:10]execute_script... [08:23: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)593028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [08:23:10]POST & json_proto [08:23:10]process_json_proto [08:23:10]json parsed OK: [08:23:10]protocol is kg_v1.0 [08:23:10]action value=close_receipt [08:23:10]process_action close_receipt [08:23:10]cmd_close_receipt [08:23:10]MH_GetDate [08:23:10]Write to MH i2c: F0 00 00 EB 07 E1 [08:23:10]Write i2c OK [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: F0 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: F0 09 00 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: F0 09 00 EB 07 00 F0 00 C3 66 5F 7F 2B 66 72 [08:23:10]GetLastDocTimeStamp 1724055588 [08:23:10]current date 1724055792 [08:23:10]FM_GetShiftState [08:23:10]SAM_PROTO_GetShiftState [08:23:10]wFMCommunicate request_size=4 [08:23:10]MH_SAM_APDU [08:23:10]CAPDU: 80 13 01 00 [08:23:10]Write to MH i2c: E2 08 00 EC 07 80 13 01 00 00 00 00 00 70 [08:23:10]Write i2c OK [08:23:10]MH_I2C_Read... [08:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:11]Read from MH i2c: E2 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: E2 0E 00 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: E2 0E 00 EC 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 27 [08:23:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:23:11]wFMCommunicate OK [08:23:11]SAM_PROTO_GetShiftState done [08:23:11]FM_GetShiftState done [08:23:11]opened in 1724027888 [08:23:11]opened+sec_in_day 1724114288 [08:23:11]quantity*price = 60003 [08:23:11]sum+1 = 60004 [08:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 23 19.08.2024 08:23 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139188 ФПД: 14070693440589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T082313&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139188&fm=14070693440589&tin=02508201610067®Number=0000000000092569&sum=60000 [08:23:12]StoreToDocumentArchive [08:23:12]shift 452 fd 139188 [08:23:12]save to /storage/0452/doc_00139188 [08:23:12]save last doc name /storage/0452/doc_00139188 to /storage/kkm_last_doc_name [08:23:12]save OK [08:23:12]Clear old archive folders... [08:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:12]tlvbuf is 01D84E60 [08:23:12]SAM_PROTO_ClearQueue [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 09 00 00 [08:23:12]Write to MH i2c: E2 08 00 F9 07 80 09 00 00 00 00 00 00 72 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]SAM_PROTO_ClearQueue done [08:23:12]KKMCreateOFDPacket [08:23:12]OFDProtocolAddRootSTLVToBuf [08:23:12]FM_MakeSignedData [08:23:12]FM_MakeSignedData [08:23:12]SAM_PROTO_SignData [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 01 02 [08:23:12]Write to MH i2c: E2 08 00 FA 07 80 0D 01 02 00 00 00 00 7A [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]wFMCommunicate request_size=255 [08:23:12]MH_SAM_APDU [08:23: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 17 00 00 00 F4 03 04 00 F1 00 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 1F 02 00 35 04 06 00 0C [08:23:12]Write to MH i2c: E2 02 01 FB 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 17 00 00 00 F4 03 04 00 F1 00 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 1F 02 00 35 04 06 00 0C 00 00 A1 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]wFMCommunicate request_size=10 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 02 02 05 CC 16 AF 2C 4D [08:23:12]Write to MH i2c: E2 0D 00 FC 07 80 0D 02 02 05 00 CC 16 AF 2C 4D 00 00 91 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 03 02 [08:23:12]Write to MH i2c: E2 08 00 FD 07 80 0D 03 02 00 00 00 00 7F [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 0B 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 0B 00 FD 07 00 C8 72 76 D5 BA 36 D4 D1 90 00 9A [08:23:12]RAPDU: C8 72 76 D5 BA 36 D4 D1 90 00 [08:23:12]wFMCommunicate OK [08:23:12]SAM_PROTO_SignData done [08:23:12]FM_MakeSignedData done [08:23:12]CreateOFDProtocolMessage [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 11 00 00 [08:23:12]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 17 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [08:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:23:12]wFMCommunicate OK [08:23:12]CreateOFDProtocolMessage done [08:23:12]OFDSenderStorePacket 139188 [08:23:12]StoreOFDPacket docnum=139188 [08:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 15 B8 07 01 54 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 17 00 00 00 F4 03 04 00 F1 00 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 1F 02 00 35 04 06 00 0C CC 16 AF 2C 4D C8 72 76 D5 BA 36 D4 D1 [08:23:12]CheckFolder [08:23:12]dirname=/storage/ofd_packets [08:23:12]CheckFolder done [08:23:12]ProducePacketName [08:23:12]name=ofd_packets/00139188 [08:23:12]NVStorageSaveData ofd_packets/00139188 [08:23:12]File name is /storage/ofd_packets/00139188 [08:23:12]Write 301 bytes [08:23:12]NVStorageSaveData done [08:23:12]OFDSenderStorePacket done [08:23:12]KKMCreateOFDPacket done [08:23:12]NVStorageSaveData kkm_last_timestamp [08:23:12]File name is /storage/kkm_last_timestamp [08:23:12]Write 4 bytes [08:23:12]NVStorageSaveData done [08:23:12]ExternCall_PrintAddStr [08:23:12]wPrintStart [08:23:12]Write to MH i2c: 01 00 00 FF 07 06 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: 01 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: 01 07 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 FF 0F 1B [08:23:12]RasterBufferAndPrint [08:23:12]line Счет N : (1)593028 [08:23:12]line ИНН: 02508201610067 [08:23:12]line Контрольно-Кассовый Чек [08:23:12]line ПРОДАЖА [08:23:12]line ТРК (МРК, ГНК) : 62 [08:23:12]line Товар: 2710124130 [08:23:12]line Аи-92-К-5 [08:23:12]line 8.850 * 67.80 [08:23:12]line = 600.03 [08:23:12]line НДС 12% НСП 1% [08:23:12]line > о реализуемом товаре [08:23:12]line ОКРУГЛЕНИЕ: -0.03 [08:23:12]line ИТОГО: 600.00 [08:23:12]line Внесено: 600.00 [08:23:12]line СДАЧА: 0.00 [08:23:12]line НСП 1% : 5.31 [08:23:12]line НДС 12% : 63.72 [08:23:12]line Наличными: 600.00 [08:23:12]line Безнал.: 0.00 [08:23:12]line Место: АЗС № 136 "Партнер Нефть" [08:23:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:23:12]line СНО: Общий режим [08:23:12]line Чек 23 19.08.2024 08:23 [08:23:12]line Смена: 452 ФФД: 1.0 [08:23:12]line ЗНМ: 0300000067 [08:23:12]line РНМ: 0000000000092569 [08:23:12]line Версия ККМ: 001 [08:23:12]line ФМ: 0000000000871776 [08:23:12]line ФД: 139188 [08:23:12]line ФПД: 14070693440589 [08:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T082313&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139188&fm=14070693440589&tin=02508201610067®Number=0000000000092569&sum=60000 [08:23:13]OFD Sender: Processing packet 139188 [packets to send 137, broken 136] [08:23:13]ProducePacketName [08:23:13]name=ofd_packets/00139188 [08:23:13]OFD Sender: To server: pG, [08:23:13]CommunicateWithHost lk.salyk.kg:30040 [08:23:13]ConnectInit lk.salyk.kg [08:23:13]written 0, free lines is 4095 [08:23:13]Connected sock=10 [08: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 37 36 0F 01 00 00 15 B8 07 01 54 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 17 00 00 00 F4 03 04 00 F1 00 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 1F 02 00 35 04 06 00 0C CC 16 AF 2C 4D C8 72 76 D5 BA 36 D4 D1 [08:23: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 37 36 4F 00 00 00 61 9A 47 00 CB 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 37 36 10 04 04 00 B4 1F 02 00 F4 03 04 00 87 A7 C2 66 B6 04 01 00 00 64 3F 2C 1A 89 32 D7 68 [08:23:13]CommunicateWithHost err = 0 [08:23:13]CheckOFDResponse [08:23:13]1017 (14) - 77093643461234 [08:23:13]1041 (16) - 0000000000871776 [08:23:13]1040 (4) - 139188 [08:23:13]1012 (4) - 19.08.2024 02:01 [08:23:13]1206 (1) - 0 [08:23:13]OFD Sender: Remove packet 139188 [08:23:13]ProducePacketName [08:23:13]name=ofd_packets/00139188 [08:23:13]NVStorageDeleteData [08:23:13]Write to MH i2c: 01 00 00 2A 08 32 [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 07 00 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 07 00 2A 08 00 00 00 00 00 C1 0C 06 [08:23:13]RasterBufferAndPrint [08:23:13]line [08:23:13]line [08:23:13]line [08:23:13]line [08:23:13]line [08:23:13]written 0, free lines is 3271 [08:23:13]MH_Cut [08:23:13]Write to MH i2c: D1 01 00 31 08 01 0B [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: D1 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: D1 01 00 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: D1 01 00 31 08 00 0A [08:23:13]Write to MH i2c: 01 00 00 32 08 3A [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:13]OFD Sender: No OFD packet to send [08:23:14]*** Cut start [08:23:14]*** Partial cut [08:23:14]*** CUTSNS_PIN = 1 [08:23:14]*** CUTSNS_PIN = 0 [08:23:14]*** Brake cut motor [08:23:14]Read from MH i2c: 01 [08:23:14]MH_I2C_Read... [08:23:14]*** Stop cut motor [08:23:14]*** Cut end [08:23:14]Read from MH i2c: 01 07 00 [08:23:14]MH_I2C_Read... [08:23:14]Read from MH i2c: 01 07 00 32 08 00 00 00 00 00 FF 0F 4F [08:23:14]process_action close_receipt done [08:23:14]requested_data is exist [08:23:14]produce_requested_data [08:23:14]requested_item fm.sn is exist - process it [08:23:14]wFMCommunicate request_size=4 [08:23:14]MH_SAM_APDU [08:23:14]CAPDU: 80 11 00 00 [08:23:14]Write to MH i2c: E2 08 00 33 08 80 11 00 00 00 00 00 00 B5 [08:23:14]Write i2c OK [08:23:14]MH_I2C_Read... [08:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:14]Read from MH i2c: E2 [08:23:14]MH_I2C_Read... [08:23:14]Read from MH i2c: E2 17 00 [08:23:14]MH_I2C_Read... [08:23:14]Read from MH i2c: E2 17 00 33 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [08:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:23:14]wFMCommunicate OK [08:23:14]requested_item fd.num is exist - process it [08:23:14]SAM_PROTO_GetFieldsCounters [08:23:14]wFMCommunicate request_size=4 [08:23:14]MH_SAM_APDU [08:23:14]CAPDU: 80 13 00 00 [08:23:14]Write to MH i2c: E2 08 00 34 08 80 13 00 00 00 00 00 00 B8 [08:23:14]Write i2c OK [08:23:14]MH_I2C_Read... [08:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 62 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 62 00 34 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [08:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:15]wFMCommunicate OK [08:23:15]SAM_PROTO_GetFieldsCounters done [08:23:15]requested_item shift.num is exist - process it [08:23:15]requested_item shift.opened is exist - process it [08:23:15]req_shift_opened [08:23:15]FM_GetShiftState [08:23:15]SAM_PROTO_GetShiftState [08:23:15]wFMCommunicate request_size=4 [08:23:15]MH_SAM_APDU [08:23:15]CAPDU: 80 13 01 00 [08:23:15]Write to MH i2c: E2 08 00 35 08 80 13 01 00 00 00 00 00 BA [08:23:15]Write i2c OK [08:23:15]MH_I2C_Read... [08:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:15]Read from MH i2c: E2 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 0E 00 [08:23:15]MH_I2C_Read... [08:23:15]Read from MH i2c: E2 0E 00 35 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 71 [08:23:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:23:15]wFMCommunicate OK [08:23:15]SAM_PROTO_GetShiftState done [08:23:15]FM_GetShiftState done [08:23:15]req_shift_opened done [08:23:15]requested_item shift.open_date is exist - process it [08:23:15]req_shift_open_date [08:23:15]req_shift_open_date done [08:23:15]produce_requested_data done [08:23:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139188,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:23:15]process_action_free close_receipt [08:23:15]json_value_free [08:23:15]json_value_free done [08:23:15]process_json_proto returns [08:23:15]Send response to host [08:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139188,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:23:15]free response buf [08:23:15]execute_script done [08:23:15]execute_script returns [08:23:15]free content buf [08:23:15]Sock 7.Close socket [08:23:15]Sock 7.Thread stoped [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]accept exits with 9 [08:28:24]New connection [08:28:24]New thread 3067059556 created [08:28:24]Thread 3067202916 joined [08:28:24]Waiting for new connection... [08:28:24] Sock 9.Parse request [08:28:24]Sock 9.Check first char [08:28:24]Sock 9.First char is OK [08:28:24]request: POST /json_proto HTTP/1.0 [08:28:24]Method: POST [08:28:24]URL: /json_proto [08:28:24]Method is POST - this is cgi request [08:28:24]url: /json_proto [08:28:24]query_string will be loaded in cgi processing [08:28:24]execute_cgi json_proto POST (null) [08:28:24]execute_cgi path=json_proto method=POST [08:28:24]POST find Content-Length [08:28:24]Host: 172.17.45.67:8080 [08:28:24]Content-Length: 687 [08:28:24]Content-Type: application/json [08:28:24] [08:28:24]POST finish read [08:28:24]Found Content-Length = 687 [08:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [08:28:24]execute_script... [08:28: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)593029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [08:28:24]POST & json_proto [08:28:24]process_json_proto [08:28:24]json parsed OK: [08:28:24]protocol is kg_v1.0 [08:28:24]action value=close_receipt [08:28:24]process_action close_receipt [08:28:24]cmd_close_receipt [08:28:24]MH_GetDate [08:28:24]Write to MH i2c: F0 00 00 36 08 2D [08:28:24]Write i2c OK [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: F0 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: F0 09 00 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: F0 09 00 36 08 00 2A 02 C3 66 5F 7F 2B 66 FA [08:28:24]GetLastDocTimeStamp 1724055793 [08:28:24]current date 1724056106 [08:28:24]FM_GetShiftState [08:28:24]SAM_PROTO_GetShiftState [08:28:24]wFMCommunicate request_size=4 [08:28:24]MH_SAM_APDU [08:28:24]CAPDU: 80 13 01 00 [08:28:24]Write to MH i2c: E2 08 00 37 08 80 13 01 00 00 00 00 00 BC [08:28:24]Write i2c OK [08:28:24]MH_I2C_Read... [08:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:24]Read from MH i2c: E2 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: E2 0E 00 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: E2 0E 00 37 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 73 [08:28:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:28:24]wFMCommunicate OK [08:28:24]SAM_PROTO_GetShiftState done [08:28:24]FM_GetShiftState done [08:28:24]opened in 1724027888 [08:28:24]opened+sec_in_day 1724114288 [08:28:24]quantity*price = 250012 [08:28:24]sum+1 = 250013 [08:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 24 19.08.2024 08:28 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139189 ФПД: 271156654418825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T082826&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139189&fm=271156654418825&tin=02508201610067®Number=0000000000092569&sum=250000 [08:28:25]StoreToDocumentArchive [08:28:25]shift 452 fd 139189 [08:28:25]save to /storage/0452/doc_00139189 [08:28:25]save last doc name /storage/0452/doc_00139189 to /storage/kkm_last_doc_name [08:28:25]save OK [08:28:25]Clear old archive folders... [08:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:28:25]tlvbuf is B6DE5AE0 [08:28:25]SAM_PROTO_ClearQueue [08:28:25]wFMCommunicate request_size=4 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 09 00 00 [08:28:25]Write to MH i2c: E2 08 00 44 08 80 09 00 00 00 00 00 00 BE [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:25]Read from MH i2c: E2 03 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 03 00 44 08 00 90 00 C0 [08:28:25]RAPDU: 90 00 [08:28:25]wFMCommunicate OK [08:28:25]SAM_PROTO_ClearQueue done [08:28:25]KKMCreateOFDPacket [08:28:25]OFDProtocolAddRootSTLVToBuf [08:28:25]FM_MakeSignedData [08:28:25]FM_MakeSignedData [08:28:25]SAM_PROTO_SignData [08:28:25]wFMCommunicate request_size=4 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 0D 01 02 [08:28:25]Write to MH i2c: E2 08 00 45 08 80 0D 01 02 00 00 00 00 C6 [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 03 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [08:28:25]RAPDU: 90 00 [08:28:25]wFMCommunicate OK [08:28:25]wFMCommunicate request_size=255 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 18 00 00 00 F4 03 04 00 2A 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 1F 02 00 35 04 06 00 [08:28:25]Write to MH i2c: E2 02 01 46 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 18 00 00 00 F4 03 04 00 2A 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 1F 02 00 35 04 06 00 00 00 A6 [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 03 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [08:28:25]RAPDU: 90 00 [08:28:25]wFMCommunicate OK [08:28:25]wFMCommunicate request_size=11 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 0D 02 02 06 F6 9D 94 10 AB 89 [08:28:25]Write to MH i2c: E2 0E 00 47 08 80 0D 02 02 06 00 F6 9D 94 10 AB 89 00 00 40 [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 03 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [08:28:25]RAPDU: 90 00 [08:28:25]wFMCommunicate OK [08:28:25]wFMCommunicate request_size=4 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 0D 03 02 [08:28:25]Write to MH i2c: E2 08 00 48 08 80 0D 03 02 00 00 00 00 CB [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 0B 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 0B 00 48 08 00 A8 5A 42 A1 E2 CD 58 23 90 00 DB [08:28:25]RAPDU: A8 5A 42 A1 E2 CD 58 23 90 00 [08:28:25]wFMCommunicate OK [08:28:25]SAM_PROTO_SignData done [08:28:25]FM_MakeSignedData done [08:28:25]CreateOFDProtocolMessage [08:28:25]wFMCommunicate request_size=4 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 11 00 00 [08:28:25]Write to MH i2c: E2 08 00 49 08 80 11 00 00 00 00 00 00 CB [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 17 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 17 00 49 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 22 [08:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:28:25]wFMCommunicate OK [08:28:25]CreateOFDProtocolMessage done [08:28:25]OFDSenderStorePacket 139189 [08:28:25]StoreOFDPacket docnum=139189 [08:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 01 31 08 01 92 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 18 00 00 00 F4 03 04 00 2A 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 1F 02 00 35 04 06 00 F6 9D 94 10 AB 89 A8 5A 42 A1 E2 CD 58 23 [08:28:25]CheckFolder [08:28:25]dirname=/storage/ofd_packets [08:28:25]CheckFolder done [08:28:25]ProducePacketName [08:28:25]name=ofd_packets/00139189 [08:28:25]NVStorageSaveData ofd_packets/00139189 [08:28:25]File name is /storage/ofd_packets/00139189 [08:28:25]Write 302 bytes [08:28:25]NVStorageSaveData done [08:28:25]OFDSenderStorePacket done [08:28:25]KKMCreateOFDPacket done [08:28:25]NVStorageSaveData kkm_last_timestamp [08:28:25]File name is /storage/kkm_last_timestamp [08:28:25]Write 4 bytes [08:28:25]NVStorageSaveData done [08:28:25]ExternCall_PrintAddStr [08:28:25]wPrintStart [08:28:25]Write to MH i2c: 01 00 00 4A 08 52 [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: 01 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: 01 07 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: 01 07 00 4A 08 00 00 00 00 00 FF 0F 67 [08:28:25]RasterBufferAndPrint [08:28:25]line Счет N : (1)593029 [08:28:25]line ИНН: 02508201610067 [08:28:25]line Контрольно-Кассовый Чек [08:28:25]line ПРОДАЖА [08:28:25]line ТРК (МРК, ГНК) : 44 [08:28:25]line Товар: 2710194210 [08:28:25]line ДТ(л)-К-5 [08:28:25]line 32.810 * 76.20 [08:28:25]line = 2500.12 [08:28:25]line НДС 12% НСП 1% [08:28:25]line > о реализуемом товаре [08:28:25]line ОКРУГЛЕНИЕ: -0.12 [08:28:25]line ИТОГО: 2500.00 [08:28:25]line Внесено: 2500.00 [08:28:25]line СДАЧА: 0.00 [08:28:25]line НСП 1% : 22.12 [08:28:25]line НДС 12% : 265.50 [08:28:25]line Наличными: 2500.00 [08:28:25]line Безнал.: 0.00 [08:28:25]line Место: АЗС № 136 "Партнер Нефть" [08:28:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:28:25]line СНО: Общий режим [08:28:25]line Чек 24 19.08.2024 08:28 [08:28:25]line Смена: 452 ФФД: 1.0 [08:28:25]line ЗНМ: 0300000067 [08:28:25]line РНМ: 0000000000092569 [08:28:25]line Версия ККМ: 001 [08:28:25]line ФМ: 0000000000871776 [08:28:26]line ФД: 139189 [08:28:26]line ФПД: 271156654418825 [08:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T082826&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139189&fm=271156654418825&tin=02508201610067®Number=0000000000092569&sum=250000 [08:28:26]OFD Sender: Processing packet 139189 [packets to send 137, broken 136] [08:28:26]ProducePacketName [08:28:26]name=ofd_packets/00139189 [08:28:26]OFD Sender: To server: pG, [08:28:26]CommunicateWithHost lk.salyk.kg:30040 [08:28:26]ConnectInit lk.salyk.kg [08:28:26]written 0, free lines is 4095 [08:28:26]Connected sock=10 [08:28: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 37 36 10 01 00 00 01 31 08 01 92 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 18 00 00 00 F4 03 04 00 2A 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 1F 02 00 35 04 06 00 F6 9D 94 10 AB 89 A8 5A 42 A1 E2 CD 58 23 [08:28:26]Write to MH i2c: 01 00 00 75 08 7D [08:28:26]Write i2c OK [08:28:26]MH_I2C_Read... [08:28:26]Read from MH i2c: 01 [08:28:26]MH_I2C_Read... [08:28:26]Read from MH i2c: 01 07 00 [08:28:26]MH_I2C_Read... [08:28:26]Read from MH i2c: 01 07 00 75 08 00 00 00 00 00 CE 0C 5E [08:28:26]RasterBufferAndPrint [08:28:26]line [08:28:26]line [08:28:26]line [08:28:26]line [08:28:26]line [08:28:26]written 0, free lines is 3282 [08:28:26]MH_Cut [08:28:26]Write to MH i2c: D1 01 00 7C 08 01 56 [08:28:26]Write i2c OK [08:28:26]MH_I2C_Read... [08:28:26]Read from MH i2c: D1 [08:28:26]MH_I2C_Read... [08:28:26]Read from MH i2c: D1 01 00 [08:28:26]MH_I2C_Read... [08:28:26]Read from MH i2c: D1 01 00 7C 08 00 55 [08:28:26]Write to MH i2c: 01 00 00 7D 08 85 [08:28:26]Write i2c OK [08:28:26]MH_I2C_Read... [08:28: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 37 36 4F 00 00 00 76 41 47 00 65 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 37 36 10 04 04 00 B5 1F 02 00 F4 03 04 00 C0 A8 C2 66 B6 04 01 00 00 43 C2 08 BC C5 43 91 13 [08:28:26]CommunicateWithHost err = 0 [08:28:26]CheckOFDResponse [08:28:26]1017 (14) - 77093643461234 [08:28:26]1041 (16) - 0000000000871776 [08:28:26]1040 (4) - 139189 [08:28:26]1012 (4) - 19.08.2024 02:06 [08:28:26]1206 (1) - 0 [08:28:26]OFD Sender: Remove packet 139189 [08:28:26]ProducePacketName [08:28:26]name=ofd_packets/00139189 [08:28:26]NVStorageDeleteData [08:28:27]OFD Sender: No OFD packet to send [08:28:27]*** Cut start [08:28:27]*** Partial cut [08:28:27]*** CUTSNS_PIN = 1 [08:28:27]*** CUTSNS_PIN = 0 [08:28:27]*** Brake cut motor [08:28:27]Read from MH i2c: 01 [08:28:27]MH_I2C_Read... [08:28:27]*** Stop cut motor [08:28:27]*** Cut end [08:28:27]Read from MH i2c: 01 07 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: 01 07 00 7D 08 00 00 00 00 00 FF 0F 9A [08:28:27]process_action close_receipt done [08:28:27]requested_data is exist [08:28:27]produce_requested_data [08:28:27]requested_item fm.sn is exist - process it [08:28:27]wFMCommunicate request_size=4 [08:28:27]MH_SAM_APDU [08:28:27]CAPDU: 80 11 00 00 [08:28:27]Write to MH i2c: E2 08 00 7E 08 80 11 00 00 00 00 00 00 00 [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:27]Read from MH i2c: E2 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 17 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 17 00 7E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 57 [08:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:28:27]wFMCommunicate OK [08:28:27]requested_item fd.num is exist - process it [08:28:27]SAM_PROTO_GetFieldsCounters [08:28:27]wFMCommunicate request_size=4 [08:28:27]MH_SAM_APDU [08:28:27]CAPDU: 80 13 00 00 [08:28:27]Write to MH i2c: E2 08 00 7F 08 80 13 00 00 00 00 00 00 03 [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:28]Read from MH i2c: E2 [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: E2 62 00 [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: E2 62 00 7F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:28]wFMCommunicate OK [08:28:28]SAM_PROTO_GetFieldsCounters done [08:28:28]requested_item shift.num is exist - process it [08:28:28]requested_item shift.opened is exist - process it [08:28:28]req_shift_opened [08:28:28]FM_GetShiftState [08:28:28]SAM_PROTO_GetShiftState [08:28:28]wFMCommunicate request_size=4 [08:28:28]MH_SAM_APDU [08:28:28]CAPDU: 80 13 01 00 [08:28:28]Write to MH i2c: E2 08 00 80 08 80 13 01 00 00 00 00 00 05 [08:28:28]Write i2c OK [08:28:28]MH_I2C_Read... [08:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:28]Read from MH i2c: E2 [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: E2 0E 00 [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: E2 0E 00 80 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BC [08:28:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:28:28]wFMCommunicate OK [08:28:28]SAM_PROTO_GetShiftState done [08:28:28]FM_GetShiftState done [08:28:28]req_shift_opened done [08:28:28]requested_item shift.open_date is exist - process it [08:28:28]req_shift_open_date [08:28:28]req_shift_open_date done [08:28:28]produce_requested_data done [08:28:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139189,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:28:28]process_action_free close_receipt [08:28:28]json_value_free [08:28:28]json_value_free done [08:28:28]process_json_proto returns [08:28:28]Send response to host [08:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139189,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:28:28]free response buf [08:28:28]execute_script done [08:28:28]execute_script returns [08:28:28]free content buf [08:28:28]Sock 9.Close socket [08:28:28]Sock 9.Thread stoped [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:02]accept exits with 7 [08:30:02]New connection [08:30:02]New thread 3067202916 created [08:30:02]Thread 3067059556 joined [08:30:02]Waiting for new connection... [08:30:02] Sock 7.Parse request [08:30:02]Sock 7.Check first char [08:30:02]Sock 7.First char is OK [08:30:02]request: POST /json_proto HTTP/1.0 [08:30:02]Method: POST [08:30:02]URL: /json_proto [08:30:02]Method is POST - this is cgi request [08:30:02]url: /json_proto [08:30:02]query_string will be loaded in cgi processing [08:30:02]execute_cgi json_proto POST (null) [08:30:02]execute_cgi path=json_proto method=POST [08:30:02]POST find Content-Length [08:30:02]Host: 172.17.45.67:8080 [08:30:02]Content-Length: 687 [08:30:02]Content-Type: application/json [08:30:02] [08:30:02]POST finish read [08:30:02]Found Content-Length = 687 [08:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:30:02]execute_script... [08:30:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:30:02]POST & json_proto [08:30:02]process_json_proto [08:30:02]json parsed OK: [08:30:02]protocol is kg_v1.0 [08:30:02]action value=close_receipt [08:30:02]process_action close_receipt [08:30:02]cmd_close_receipt [08:30:02]MH_GetDate [08:30:02]Write to MH i2c: F0 00 00 81 08 78 [08:30:02]Write i2c OK [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: F0 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: F0 09 00 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: F0 09 00 81 08 00 8C 02 C3 66 5F 7F 2B 66 A7 [08:30:02]GetLastDocTimeStamp 1724056106 [08:30:02]current date 1724056204 [08:30:02]FM_GetShiftState [08:30:02]SAM_PROTO_GetShiftState [08:30:02]wFMCommunicate request_size=4 [08:30:02]MH_SAM_APDU [08:30:02]CAPDU: 80 13 01 00 [08:30:02]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [08:30:02]Write i2c OK [08:30:02]MH_I2C_Read... [08:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:03]Read from MH i2c: E2 [08:30:03]MH_I2C_Read... [08:30:03]Read from MH i2c: E2 0E 00 [08:30:03]MH_I2C_Read... [08:30:03]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BE [08:30:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:30:03]wFMCommunicate OK [08:30:03]SAM_PROTO_GetShiftState done [08:30:03]FM_GetShiftState done [08:30:03]opened in 1724027888 [08:30:03]opened+sec_in_day 1724114288 [08:30:03]quantity*price = 100050 [08:30:03]sum+1 = 100052 [08:30:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 25 19.08.2024 08:30 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139190 ФПД: 117626385021117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083005&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139190&fm=117626385021117&tin=02508201610067®Number=0000000000092569&sum=100000 [08:30:04]StoreToDocumentArchive [08:30:04]shift 452 fd 139190 [08:30:04]save to /storage/0452/doc_00139190 [08:30:04]save last doc name /storage/0452/doc_00139190 to /storage/kkm_last_doc_name [08:30:04]save OK [08:30:04]Clear old archive folders... [08:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:30:04]tlvbuf is 01D65110 [08:30:04]SAM_PROTO_ClearQueue [08:30:04]wFMCommunicate request_size=4 [08:30:04]MH_SAM_APDU [08:30:04]CAPDU: 80 09 00 00 [08:30:04]Write to MH i2c: E2 08 00 8F 08 80 09 00 00 00 00 00 00 09 [08:30:04]Write i2c OK [08:30:04]MH_I2C_Read... [08:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:04]Read from MH i2c: E2 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 03 00 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [08:30:04]RAPDU: 90 00 [08:30:04]wFMCommunicate OK [08:30:04]SAM_PROTO_ClearQueue done [08:30:04]KKMCreateOFDPacket [08:30:04]OFDProtocolAddRootSTLVToBuf [08:30:04]FM_MakeSignedData [08:30:04]FM_MakeSignedData [08:30:04]SAM_PROTO_SignData [08:30:04]wFMCommunicate request_size=4 [08:30:04]MH_SAM_APDU [08:30:04]CAPDU: 80 0D 01 02 [08:30:04]Write to MH i2c: E2 08 00 90 08 80 0D 01 02 00 00 00 00 11 [08:30:04]Write i2c OK [08:30:04]MH_I2C_Read... [08:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:04]Read from MH i2c: E2 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 03 00 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [08:30:04]RAPDU: 90 00 [08:30:04]wFMCommunicate OK [08:30:04]wFMCommunicate request_size=255 [08:30:04]MH_SAM_APDU [08:30:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 8D 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 1F 02 00 35 04 06 00 [08:30:04]Write to MH i2c: E2 02 01 91 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 8D 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 1F 02 00 35 04 06 00 00 00 F5 [08:30:04]Write i2c OK [08:30:04]MH_I2C_Read... [08:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:04]Read from MH i2c: E2 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 03 00 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [08:30:04]RAPDU: 90 00 [08:30:04]wFMCommunicate OK [08:30:04]wFMCommunicate request_size=11 [08:30:04]MH_SAM_APDU [08:30:04]CAPDU: 80 0D 02 02 06 6A FB 06 E5 38 BD [08:30:04]Write to MH i2c: E2 0E 00 92 08 80 0D 02 02 06 00 6A FB 06 E5 38 BD 00 00 65 [08:30:04]Write i2c OK [08:30:04]MH_I2C_Read... [08:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:04]Read from MH i2c: E2 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 03 00 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [08:30:04]RAPDU: 90 00 [08:30:04]wFMCommunicate OK [08:30:04]wFMCommunicate request_size=4 [08:30:04]MH_SAM_APDU [08:30:04]CAPDU: 80 0D 03 02 [08:30:04]Write to MH i2c: E2 08 00 93 08 80 0D 03 02 00 00 00 00 16 [08:30:04]Write i2c OK [08:30:04]MH_I2C_Read... [08:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:04]Read from MH i2c: E2 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 0B 00 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 0B 00 93 08 00 61 85 A4 8B 47 08 D8 85 90 00 D8 [08:30:04]RAPDU: 61 85 A4 8B 47 08 D8 85 90 00 [08:30:04]wFMCommunicate OK [08:30:04]SAM_PROTO_SignData done [08:30:04]FM_MakeSignedData done [08:30:04]CreateOFDProtocolMessage [08:30:04]wFMCommunicate request_size=4 [08:30:04]MH_SAM_APDU [08:30:04]CAPDU: 80 11 00 00 [08:30:04]Write to MH i2c: E2 08 00 94 08 80 11 00 00 00 00 00 00 16 [08:30:04]Write i2c OK [08:30:04]MH_I2C_Read... [08:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:04]Read from MH i2c: E2 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 17 00 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: E2 17 00 94 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [08:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:30:04]wFMCommunicate OK [08:30:04]CreateOFDProtocolMessage done [08:30:04]OFDSenderStorePacket 139190 [08:30:04]StoreOFDPacket docnum=139190 [08:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A6 6F 08 01 6A 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 8D 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 1F 02 00 35 04 06 00 6A FB 06 E5 38 BD 61 85 A4 8B 47 08 D8 85 [08:30:04]CheckFolder [08:30:04]dirname=/storage/ofd_packets [08:30:04]CheckFolder done [08:30:04]ProducePacketName [08:30:04]name=ofd_packets/00139190 [08:30:04]NVStorageSaveData ofd_packets/00139190 [08:30:04]File name is /storage/ofd_packets/00139190 [08:30:04]Write 302 bytes [08:30:04]NVStorageSaveData done [08:30:04]OFDSenderStorePacket done [08:30:04]KKMCreateOFDPacket done [08:30:04]NVStorageSaveData kkm_last_timestamp [08:30:04]File name is /storage/kkm_last_timestamp [08:30:04]Write 4 bytes [08:30:04]NVStorageSaveData done [08:30:04]ExternCall_PrintAddStr [08:30:04]wPrintStart [08:30:04]Write to MH i2c: 01 00 00 95 08 9D [08:30:04]Write i2c OK [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: 01 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: 01 07 00 [08:30:04]MH_I2C_Read... [08:30:04]Read from MH i2c: 01 07 00 95 08 00 00 00 00 00 FF 0F B2 [08:30:04]RasterBufferAndPrint [08:30:04]line Счет N : (1)593031 [08:30:04]line ИНН: 02508201610067 [08:30:04]line Контрольно-Кассовый Чек [08:30:04]line ПРОДАЖА [08:30:04]line ТРК (МРК, ГНК) : 34 [08:30:04]line Товар: 2710194210 [08:30:04]line ДТ(л)-К-5 [08:30:04]line 13.130 * 76.20 [08:30:04]line = 1000.51 [08:30:04]line НДС 12% НСП 1% [08:30:04]line > о реализуемом товаре [08:30:04]line ОКРУГЛЕНИЕ: -0.51 [08:30:04]line ИТОГО: 1000.00 [08:30:04]line Внесено: 1000.00 [08:30:04]line СДАЧА: 0.00 [08:30:04]line НСП 1% : 8.85 [08:30:04]line НДС 12% : 106.25 [08:30:04]line Наличными: 1000.00 [08:30:04]line Безнал.: 0.00 [08:30:04]line Место: АЗС № 136 "Партнер Нефть" [08:30:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:30:04]line СНО: Общий режим [08:30:04]line Чек 25 19.08.2024 08:30 [08:30:04]line Смена: 452 ФФД: 1.0 [08:30:04]line ЗНМ: 0300000067 [08:30:04]line РНМ: 0000000000092569 [08:30:04]line Версия ККМ: 001 [08:30:04]line ФМ: 0000000000871776 [08:30:04]line ФД: 139190 [08:30:04]line ФПД: 117626385021117 [08:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083005&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139190&fm=117626385021117&tin=02508201610067®Number=0000000000092569&sum=100000 [08:30:04]OFD Sender: Processing packet 139190 [packets to send 137, broken 136] [08:30:04]ProducePacketName [08:30:04]name=ofd_packets/00139190 [08:30:04]OFD Sender: To server: pG, [08:30:05]CommunicateWithHost lk.salyk.kg:30040 [08:30:05]ConnectInit lk.salyk.kg [08:30:05]written 0, free lines is 4095 [08:30:05]Connected sock=10 [08:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A6 6F 08 01 6A 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 8D 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 1F 02 00 35 04 06 00 6A FB 06 E5 38 BD 61 85 A4 8B 47 08 D8 85 [08:30: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 37 36 4F 00 00 00 3D F3 47 00 66 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 37 36 10 04 04 00 B6 1F 02 00 F4 03 04 00 23 A9 C2 66 B6 04 01 00 00 2A BD CF 26 07 D3 14 D8 [08:30:05]CommunicateWithHost err = 0 [08:30:05]CheckOFDResponse [08:30:05]1017 (14) - 77093643461234 [08:30:05]1041 (16) - 0000000000871776 [08:30:05]1040 (4) - 139190 [08:30:05]1012 (4) - 19.08.2024 02:08 [08:30:05]1206 (1) - 0 [08:30:05]OFD Sender: Remove packet 139190 [08:30:05]ProducePacketName [08:30:05]name=ofd_packets/00139190 [08:30:05]NVStorageDeleteData [08:30:05]Write to MH i2c: 01 00 00 C0 08 C8 [08:30:05]Write i2c OK [08:30:05]MH_I2C_Read... [08:30:05]Read from MH i2c: 01 [08:30:05]MH_I2C_Read... [08:30:05]Read from MH i2c: 01 07 00 [08:30:05]MH_I2C_Read... [08:30:05]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 CE 0C A9 [08:30:05]RasterBufferAndPrint [08:30:05]line [08:30:05]line [08:30:05]line [08:30:05]line [08:30:05]line [08:30:05]written 0, free lines is 3284 [08:30:05]MH_Cut [08:30:05]Write to MH i2c: D1 01 00 C7 08 01 A1 [08:30:05]Write i2c OK [08:30:05]MH_I2C_Read... [08:30:05]Read from MH i2c: D1 [08:30:05]MH_I2C_Read... [08:30:05]Read from MH i2c: D1 01 00 [08:30:05]MH_I2C_Read... [08:30:05]Read from MH i2c: D1 01 00 C7 08 00 A0 [08:30:05]Write to MH i2c: 01 00 00 C8 08 D0 [08:30:05]Write i2c OK [08:30:05]MH_I2C_Read... [08:30:05]OFD Sender: No OFD packet to send [08:30:06]*** Cut start [08:30:06]*** Partial cut [08:30:06]*** CUTSNS_PIN = 1 [08:30:06]*** CUTSNS_PIN = 0 [08:30:06]*** Brake cut motor [08:30:06]Read from MH i2c: 01 [08:30:06]MH_I2C_Read... [08:30:06]*** Stop cut motor [08:30:06]*** Cut end [08:30:06]Read from MH i2c: 01 07 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: 01 07 00 C8 08 00 00 00 00 00 FF 0F E5 [08:30:06]process_action close_receipt done [08:30:06]requested_data is exist [08:30:06]produce_requested_data [08:30:06]requested_item fm.sn is exist - process it [08:30:06]wFMCommunicate request_size=4 [08:30:06]MH_SAM_APDU [08:30:06]CAPDU: 80 11 00 00 [08:30:06]Write to MH i2c: E2 08 00 C9 08 80 11 00 00 00 00 00 00 4B [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:06]Read from MH i2c: E2 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 17 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 17 00 C9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [08:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:30:06]wFMCommunicate OK [08:30:06]requested_item fd.num is exist - process it [08:30:06]SAM_PROTO_GetFieldsCounters [08:30:06]wFMCommunicate request_size=4 [08:30:06]MH_SAM_APDU [08:30:06]CAPDU: 80 13 00 00 [08:30:06]Write to MH i2c: E2 08 00 CA 08 80 13 00 00 00 00 00 00 4E [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:06]Read from MH i2c: E2 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 62 00 [08:30:06]MH_I2C_Read... [08:30:06]Read from MH i2c: E2 62 00 CA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [08:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:06]wFMCommunicate OK [08:30:06]SAM_PROTO_GetFieldsCounters done [08:30:06]requested_item shift.num is exist - process it [08:30:06]requested_item shift.opened is exist - process it [08:30:06]req_shift_opened [08:30:06]FM_GetShiftState [08:30:06]SAM_PROTO_GetShiftState [08:30:06]wFMCommunicate request_size=4 [08:30:06]MH_SAM_APDU [08:30:06]CAPDU: 80 13 01 00 [08:30:06]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [08:30:06]Write i2c OK [08:30:06]MH_I2C_Read... [08:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:07]Read from MH i2c: E2 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 0E 00 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 07 [08:30:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:30:07]wFMCommunicate OK [08:30:07]SAM_PROTO_GetShiftState done [08:30:07]FM_GetShiftState done [08:30:07]req_shift_opened done [08:30:07]requested_item shift.open_date is exist - process it [08:30:07]req_shift_open_date [08:30:07]req_shift_open_date done [08:30:07]produce_requested_data done [08:30:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139190,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:30:07]process_action_free close_receipt [08:30:07]json_value_free [08:30:07]json_value_free done [08:30:07]process_json_proto returns [08:30:07]Send response to host [08:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139190,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:30:07]free response buf [08:30:07]execute_script done [08:30:07]execute_script returns [08:30:07]free content buf [08:30:07]Sock 7.Close socket [08:30:07]Sock 7.Thread stoped [08:30:07]accept exits with 9 [08:30:07]New connection [08:30:07]New thread 3067059556 created [08:30:07]Thread 3067202916 joined [08:30:07]Waiting for new connection... [08:30:07] Sock 9.Parse request [08:30:07]Sock 9.Check first char [08:30:07]Sock 9.First char is OK [08:30:07]request: POST /json_proto HTTP/1.0 [08:30:07]Method: POST [08:30:07]URL: /json_proto [08:30:07]Method is POST - this is cgi request [08:30:07]url: /json_proto [08:30:07]query_string will be loaded in cgi processing [08:30:07]execute_cgi json_proto POST (null) [08:30:07]execute_cgi path=json_proto method=POST [08:30:07]POST find Content-Length [08:30:07]Host: 172.17.45.67:8080 [08:30:07]Content-Length: 792 [08:30:07]Content-Type: application/json [08:30:07] [08:30:07]POST finish read [08:30:07]Found Content-Length = 792 [08:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "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\u000A99935", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:07]execute_script... [08:30: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)593030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "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\u000A99935", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:07]POST & json_proto [08:30:07]process_json_proto [08:30:07]json parsed OK: [08:30:07]protocol is kg_v1.0 [08:30:07]action value=close_receipt [08:30:07]process_action close_receipt [08:30:07]cmd_close_receipt [08:30:07]MH_GetDate [08:30:07]Write to MH i2c: F0 00 00 CC 08 C3 [08:30:07]Write i2c OK [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: F0 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: F0 09 00 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: F0 09 00 CC 08 00 91 02 C3 66 5F 7F 2B 66 F7 [08:30:07]GetLastDocTimeStamp 1724056205 [08:30:07]current date 1724056209 [08:30:07]FM_GetShiftState [08:30:07]SAM_PROTO_GetShiftState [08:30:07]wFMCommunicate request_size=4 [08:30:07]MH_SAM_APDU [08:30:07]CAPDU: 80 13 01 00 [08:30:07]Write to MH i2c: E2 08 00 CD 08 80 13 01 00 00 00 00 00 52 [08:30:07]Write i2c OK [08:30:07]MH_I2C_Read... [08:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:07]Read from MH i2c: E2 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 0E 00 [08:30:07]MH_I2C_Read... [08:30:07]Read from MH i2c: E2 0E 00 CD 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 09 [08:30:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:30:07]wFMCommunicate OK [08:30:07]SAM_PROTO_GetShiftState done [08:30:07]FM_GetShiftState done [08:30:07]opened in 1724027888 [08:30:07]opened+sec_in_day 1724114288 [08:30:07]quantity*price = 0 [08:30:07]sum+1 = 1 [08:30:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 26 19.08.2024 08:30 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99935 ФМ: 0000000000871776 ФД: 139191 ФПД: 11739941572400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083009&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139191&fm=11739941572400&tin=02508201610067®Number=0000000000092569&sum=0 [08:30:08]StoreToDocumentArchive [08:30:08]shift 452 fd 139191 [08:30:08]save to /storage/0452/doc_00139191 [08:30:08]save last doc name /storage/0452/doc_00139191 to /storage/kkm_last_doc_name [08:30:08]save OK [08:30:08]Clear old archive folders... [08:30:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:08]tlvbuf is 01DA2FC0 [08:30:08]SAM_PROTO_ClearQueue [08:30:08]wFMCommunicate request_size=4 [08:30:08]MH_SAM_APDU [08:30:08]CAPDU: 80 09 00 00 [08:30:08]Write to MH i2c: E2 08 00 DA 08 80 09 00 00 00 00 00 00 54 [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:08]Read from MH i2c: E2 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [08:30:08]RAPDU: 90 00 [08:30:08]wFMCommunicate OK [08:30:08]SAM_PROTO_ClearQueue done [08:30:08]KKMCreateOFDPacket [08:30:08]OFDProtocolAddRootSTLVToBuf [08:30:08]FM_MakeSignedData [08:30:08]FM_MakeSignedData [08:30:08]SAM_PROTO_SignData [08:30:08]wFMCommunicate request_size=4 [08:30:08]MH_SAM_APDU [08:30:08]CAPDU: 80 0D 01 02 [08:30:08]Write to MH i2c: E2 08 00 DB 08 80 0D 01 02 00 00 00 00 5C [08:30:08]Write i2c OK [08:30:08]MH_I2C_Read... [08:30:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:08]Read from MH i2c: E2 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 [08:30:08]MH_I2C_Read... [08:30:08]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [08:30:08]RAPDU: 90 00 [08:30:08]wFMCommunicate OK [08:30:08]wFMCommunicate request_size=255 [08:30:08]MH_SAM_APDU [08:30: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 9E 39 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 1A 00 00 00 F4 03 04 00 91 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 1F 02 00 35 04 06 00 0A [08:30:08]Write to MH i2c: E2 02 01 DC 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 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 1A 00 00 00 F4 03 04 00 91 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 1F 02 00 35 04 06 00 0A 00 00 C4 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [08:30:09]RAPDU: 90 00 [08:30:09]wFMCommunicate OK [08:30:09]wFMCommunicate request_size=10 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 0D 02 02 05 AD 6B 0C 0F 30 [08:30:09]Write to MH i2c: E2 0D 00 DD 08 80 0D 02 02 05 00 AD 6B 0C 0F 30 00 00 CC [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [08:30:09]RAPDU: 90 00 [08:30:09]wFMCommunicate OK [08:30:09]wFMCommunicate request_size=4 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 0D 03 02 [08:30:09]Write to MH i2c: E2 08 00 DE 08 80 0D 03 02 00 00 00 00 61 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 0B 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 0B 00 DE 08 00 CC 13 B5 20 42 E6 59 FB 90 00 92 [08:30:09]RAPDU: CC 13 B5 20 42 E6 59 FB 90 00 [08:30:09]wFMCommunicate OK [08:30:09]SAM_PROTO_SignData done [08:30:09]FM_MakeSignedData done [08:30:09]CreateOFDProtocolMessage [08:30:09]wFMCommunicate request_size=4 [08:30:09]MH_SAM_APDU [08:30:09]CAPDU: 80 11 00 00 [08:30:09]Write to MH i2c: E2 08 00 DF 08 80 11 00 00 00 00 00 00 61 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:09]Read from MH i2c: E2 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 17 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: E2 17 00 DF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [08:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:30:09]wFMCommunicate OK [08:30:09]CreateOFDProtocolMessage done [08:30:09]OFDSenderStorePacket 139191 [08:30:09]StoreOFDPacket docnum=139191 [08:30:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B6 22 07 01 33 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 9E 39 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 1A 00 00 00 F4 03 04 00 91 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 1F 02 00 35 04 06 00 0A AD 6B 0C 0F 30 CC 13 B5 20 42 E6 59 FB [08:30:09]CheckFolder [08:30:09]dirname=/storage/ofd_packets [08:30:09]CheckFolder done [08:30:09]ProducePacketName [08:30:09]name=ofd_packets/00139191 [08:30:09]NVStorageSaveData ofd_packets/00139191 [08:30:09]File name is /storage/ofd_packets/00139191 [08:30:09]Write 301 bytes [08:30:09]NVStorageSaveData done [08:30:09]OFDSenderStorePacket done [08:30:09]KKMCreateOFDPacket done [08:30:09]NVStorageSaveData kkm_last_timestamp [08:30:09]File name is /storage/kkm_last_timestamp [08:30:09]Write 4 bytes [08:30:09]NVStorageSaveData done [08:30:09]ExternCall_PrintAddStr [08:30:09]wPrintStart [08:30:09]Write to MH i2c: 01 00 00 E0 08 E8 [08:30:09]Write i2c OK [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 [08:30:09]MH_I2C_Read... [08:30:09]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 FF 0F FD [08:30:09]RasterBufferAndPrint [08:30:09]line Счет N : (1)593030 [08:30:09]line ИНН: 02508201610067 [08:30:09]line Контрольно-Кассовый Чек [08:30:09]line ПРОДАЖА [08:30:09]line ТРК (МРК, ГНК) : 52 [08:30:09]line Товар: 2710124130 [08:30:09]line Аи-92-К-5 [08:30:09]line 14.750 * 0.00 [08:30:09]line = 0.00 [08:30:09]line НДС 12% НСП 1% [08:30:09]line > о реализуемом товаре [08:30:09]line ИТОГО: 0.00 [08:30:09]line НСП 1% : 0.00 [08:30:09]line НДС 12% : 0.00 [08:30:09]line Наличными: 0.00 [08:30:09]line Безнал.: 0.00 [08:30:09]line Место: АЗС № 136 "Партнер Нефть" [08:30:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:30:09]line СНО: Общий режим [08:30:09]line Чек 26 19.08.2024 08:30 [08:30:09]line Смена: 452 ФФД: 1.0 [08:30:09]line ЗНМ: 0300000067 [08:30:09]line РНМ: 0000000000092569 [08:30:09]line Версия ККМ: 001 [08:30:09]line Талоны: Топливная Карта [08:30:09]line 99935 [08:30:09]line ФМ: 0000000000871776 [08:30:09]line ФД: 139191 [08:30:09]line ФПД: 11739941572400 [08:30:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083009&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139191&fm=11739941572400&tin=02508201610067®Number=0000000000092569&sum=0 [08:30:09]OFD Sender: Processing packet 139191 [packets to send 137, broken 136] [08:30:09]ProducePacketName [08:30:09]name=ofd_packets/00139191 [08:30:09]OFD Sender: To server: pG, [08:30:09]CommunicateWithHost lk.salyk.kg:30040 [08:30:09]ConnectInit lk.salyk.kg [08:30:09]written 0, free lines is 4095 [08:30:09]Connected sock=10 [08:30: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 37 36 0F 01 00 00 B6 22 07 01 33 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 9E 39 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 1A 00 00 00 F4 03 04 00 91 02 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 1F 02 00 35 04 06 00 0A AD 6B 0C 0F 30 CC 13 B5 20 42 E6 59 FB [08:30: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 37 36 4F 00 00 00 ED 73 47 00 E9 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 37 36 10 04 04 00 B7 1F 02 00 F4 03 04 00 28 A9 C2 66 B6 04 01 00 00 C3 74 E4 03 03 C3 4E F1 [08:30:10]CommunicateWithHost err = 0 [08:30:10]CheckOFDResponse [08:30:10]1017 (14) - 77093643461234 [08:30:10]1041 (16) - 0000000000871776 [08:30:10]1040 (4) - 139191 [08:30:10]1012 (4) - 19.08.2024 02:08 [08:30:10]1206 (1) - 0 [08:30:10]OFD Sender: Remove packet 139191 [08:30:10]ProducePacketName [08:30:10]name=ofd_packets/00139191 [08:30:10]NVStorageDeleteData [08:30:10]Write to MH i2c: 01 00 00 0A 09 13 [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: 01 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: 01 07 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: 01 07 00 0A 09 00 00 00 00 00 E2 0C 08 [08:30:10]RasterBufferAndPrint [08:30:10]line [08:30:10]line [08:30:10]line [08:30:10]line [08:30:10]line [08:30:10]written 0, free lines is 3312 [08:30:10]MH_Cut [08:30:10]Write to MH i2c: D1 01 00 11 09 01 EC [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: D1 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: D1 01 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: D1 01 00 11 09 00 EB [08:30:10]Write to MH i2c: 01 00 00 12 09 1B [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]OFD Sender: No OFD packet to send [08:30:10]*** Cut start [08:30:10]*** Partial cut [08:30:10]*** CUTSNS_PIN = 1 [08:30:11]*** CUTSNS_PIN = 0 [08:30:11]*** Brake cut motor [08:30:11]Read from MH i2c: 01 [08:30:11]MH_I2C_Read... [08:30:11]*** Stop cut motor [08:30:11]*** Cut end [08:30:11]Read from MH i2c: 01 07 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: 01 07 00 12 09 00 00 00 00 00 FF 0F 30 [08:30:11]process_action close_receipt done [08:30:11]requested_data is exist [08:30:11]produce_requested_data [08:30:11]requested_item fm.sn is exist - process it [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 11 00 00 [08:30:11]Write to MH i2c: E2 08 00 13 09 80 11 00 00 00 00 00 00 96 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 17 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 17 00 13 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [08:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:30:11]wFMCommunicate OK [08:30:11]requested_item fd.num is exist - process it [08:30:11]SAM_PROTO_GetFieldsCounters [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 13 00 00 [08:30:11]Write to MH i2c: E2 08 00 14 09 80 13 00 00 00 00 00 00 99 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 62 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 62 00 14 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [08:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:11]wFMCommunicate OK [08:30:11]SAM_PROTO_GetFieldsCounters done [08:30:11]requested_item shift.num is exist - process it [08:30:11]requested_item shift.opened is exist - process it [08:30:11]req_shift_opened [08:30:11]FM_GetShiftState [08:30:11]SAM_PROTO_GetShiftState [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 13 01 00 [08:30:11]Write to MH i2c: E2 08 00 15 09 80 13 01 00 00 00 00 00 9B [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 0E 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 0E 00 15 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 52 [08:30:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:30:11]wFMCommunicate OK [08:30:11]SAM_PROTO_GetShiftState done [08:30:11]FM_GetShiftState done [08:30:11]req_shift_opened done [08:30:11]requested_item shift.open_date is exist - process it [08:30:11]req_shift_open_date [08:30:11]req_shift_open_date done [08:30:11]produce_requested_data done [08:30:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139191,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:30:11]process_action_free close_receipt [08:30:11]json_value_free [08:30:11]json_value_free done [08:30:11]process_json_proto returns [08:30:11]Send response to host [08:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139191,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:30:11]free response buf [08:30:11]execute_script done [08:30:11]execute_script returns [08:30:11]free content buf [08:30:11]Sock 9.Close socket [08:30:11]Sock 9.Thread stoped [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08: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:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:16]accept exits with 7 [08:36:16]New connection [08:36:16]New thread 3067202916 created [08:36:16]Thread 3067059556 joined [08:36:16]Waiting for new connection... [08:36:16] Sock 7.Parse request [08:36:16]Sock 7.Check first char [08:36:16]Sock 7.First char is OK [08:36:16]request: POST /json_proto HTTP/1.0 [08:36:16]Method: POST [08:36:16]URL: /json_proto [08:36:16]Method is POST - this is cgi request [08:36:16]url: /json_proto [08:36:16]query_string will be loaded in cgi processing [08:36:16]execute_cgi json_proto POST (null) [08:36:16]execute_cgi path=json_proto method=POST [08:36:16]POST find Content-Length [08:36:16]Host: 172.17.45.67:8080 [08:36:16]Content-Length: 677 [08:36:16]Content-Type: application/json [08:36:16] [08:36:16]POST finish read [08:36:16]Found Content-Length = 677 [08:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:36:16]execute_script... [08:36: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)593032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:36:16]POST & json_proto [08:36:16]process_json_proto [08:36:16]json parsed OK: [08:36:16]protocol is kg_v1.0 [08:36:16]action value=close_receipt [08:36:16]process_action close_receipt [08:36:16]cmd_close_receipt [08:36:16]MH_GetDate [08:36:16]Write to MH i2c: F0 00 00 16 09 0E [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: F0 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: F0 09 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: F0 09 00 16 09 00 02 04 C3 66 5F 7F 2B 66 B5 [08:36:16]GetLastDocTimeStamp 1724056209 [08:36:16]current date 1724056578 [08:36:16]FM_GetShiftState [08:36:16]SAM_PROTO_GetShiftState [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 13 01 00 [08:36:16]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0E 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 54 [08:36:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:36:16]wFMCommunicate OK [08:36:16]SAM_PROTO_GetShiftState done [08:36:16]FM_GetShiftState done [08:36:16]opened in 1724027888 [08:36:16]opened+sec_in_day 1724114288 [08:36:16]quantity*price = 50036 [08:36:16]sum+1 = 50037 [08:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 27 19.08.2024 08:36 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139192 ФПД: 94637562625148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083618&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139192&fm=94637562625148&tin=02508201610067®Number=0000000000092569&sum=50000 [08:36:17]StoreToDocumentArchive [08:36:17]shift 452 fd 139192 [08:36:17]save to /storage/0452/doc_00139192 [08:36:17]save last doc name /storage/0452/doc_00139192 to /storage/kkm_last_doc_name [08:36:17]save OK [08:36:17]Clear old archive folders... [08:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:17]tlvbuf is 01D65320 [08:36:17]SAM_PROTO_ClearQueue [08:36:17]wFMCommunicate request_size=4 [08:36:17]MH_SAM_APDU [08:36:17]CAPDU: 80 09 00 00 [08:36:17]Write to MH i2c: E2 08 00 24 09 80 09 00 00 00 00 00 00 9F [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:17]Read from MH i2c: E2 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 03 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [08:36:17]RAPDU: 90 00 [08:36:17]wFMCommunicate OK [08:36:17]SAM_PROTO_ClearQueue done [08:36:17]KKMCreateOFDPacket [08:36:17]OFDProtocolAddRootSTLVToBuf [08:36:17]FM_MakeSignedData [08:36:17]FM_MakeSignedData [08:36:17]SAM_PROTO_SignData [08:36:17]wFMCommunicate request_size=4 [08:36:17]MH_SAM_APDU [08:36:17]CAPDU: 80 0D 01 02 [08:36:17]Write to MH i2c: E2 08 00 25 09 80 0D 01 02 00 00 00 00 A7 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:17]Read from MH i2c: E2 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 03 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [08:36:17]RAPDU: 90 00 [08:36:17]wFMCommunicate OK [08:36:17]wFMCommunicate request_size=255 [08:36:17]MH_SAM_APDU [08:36: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 00 00 00 F4 03 04 00 02 04 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 1F 02 00 35 04 06 00 56 [08:36:17]Write to MH i2c: E2 02 01 26 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 00 00 00 F4 03 04 00 02 04 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 1F 02 00 35 04 06 00 56 00 00 6E [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [08:36:18]RAPDU: 90 00 [08:36:18]wFMCommunicate OK [08:36:18]wFMCommunicate request_size=10 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 0D 02 02 05 12 86 4D 7C 7C [08:36:18]Write to MH i2c: E2 0D 00 27 09 80 0D 02 02 05 00 12 86 4D 7C 7C 00 00 91 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [08:36:18]RAPDU: 90 00 [08:36:18]wFMCommunicate OK [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 0D 03 02 [08:36:18]Write to MH i2c: E2 08 00 28 09 80 0D 03 02 00 00 00 00 AC [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0B 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0B 00 28 09 00 DD BB 98 5C 4E 3A 32 F3 90 00 E6 [08:36:18]RAPDU: DD BB 98 5C 4E 3A 32 F3 90 00 [08:36:18]wFMCommunicate OK [08:36:18]SAM_PROTO_SignData done [08:36:18]FM_MakeSignedData done [08:36:18]CreateOFDProtocolMessage [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 11 00 00 [08:36:18]Write to MH i2c: E2 08 00 29 09 80 11 00 00 00 00 00 00 AC [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 17 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 17 00 29 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 03 [08:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:36:18]wFMCommunicate OK [08:36:18]CreateOFDProtocolMessage done [08:36:18]OFDSenderStorePacket 139192 [08:36:18]StoreOFDPacket docnum=139192 [08:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F7 0C 07 01 B2 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 00 00 00 F4 03 04 00 02 04 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 1F 02 00 35 04 06 00 56 12 86 4D 7C 7C DD BB 98 5C 4E 3A 32 F3 [08:36:18]CheckFolder [08:36:18]dirname=/storage/ofd_packets [08:36:18]CheckFolder done [08:36:18]ProducePacketName [08:36:18]name=ofd_packets/00139192 [08:36:18]NVStorageSaveData ofd_packets/00139192 [08:36:18]File name is /storage/ofd_packets/00139192 [08:36:18]Write 301 bytes [08:36:18]NVStorageSaveData done [08:36:18]OFDSenderStorePacket done [08:36:18]KKMCreateOFDPacket done [08:36:18]NVStorageSaveData kkm_last_timestamp [08:36:18]File name is /storage/kkm_last_timestamp [08:36:18]Write 4 bytes [08:36:18]NVStorageSaveData done [08:36:18]ExternCall_PrintAddStr [08:36:18]wPrintStart [08:36:18]Write to MH i2c: 01 00 00 2A 09 33 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 07 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 07 00 2A 09 00 00 00 00 00 FF 0F 48 [08:36:18]RasterBufferAndPrint [08:36:18]line Счет N : (1)593032 [08:36:18]line ИНН: 02508201610067 [08:36:18]line Контрольно-Кассовый Чек [08:36:18]line ПРОДАЖА [08:36:18]line ТРК (МРК, ГНК) : 52 [08:36:18]line Товар: 2710124130 [08:36:18]line Аи-92-К-5 [08:36:18]line 7.380 * 67.80 [08:36:18]line = 500.36 [08:36:18]line НДС 12% НСП 1% [08:36:18]line > о реализуемом товаре [08:36:18]line ОКРУГЛЕНИЕ: -0.36 [08:36:18]line ИТОГО: 500.00 [08:36:18]line Внесено: 500.00 [08:36:18]line СДАЧА: 0.00 [08:36:18]line НСП 1% : 4.43 [08:36:18]line НДС 12% : 53.14 [08:36:18]line Наличными: 500.00 [08:36:18]line Безнал.: 0.00 [08:36:18]line Место: АЗС № 136 "Партнер Нефть" [08:36:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:36:18]line СНО: Общий режим [08:36:18]line Чек 27 19.08.2024 08:36 [08:36:18]line Смена: 452 ФФД: 1.0 [08:36:18]line ЗНМ: 0300000067 [08:36:18]line РНМ: 0000000000092569 [08:36:18]line Версия ККМ: 001 [08:36:18]line ФМ: 0000000000871776 [08:36:18]line ФД: 139192 [08:36:18]line ФПД: 94637562625148 [08:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083618&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139192&fm=94637562625148&tin=02508201610067®Number=0000000000092569&sum=50000 [08:36:18]written 0, free lines is 4095 [08:36:18]OFD Sender: Processing packet 139192 [packets to send 137, broken 136] [08:36:18]ProducePacketName [08:36:18]name=ofd_packets/00139192 [08:36:18]OFD Sender: To server: pG, [08:36:18]CommunicateWithHost lk.salyk.kg:30040 [08:36:18]ConnectInit lk.salyk.kg [08:36:18]Connected sock=10 [08:36: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 37 36 0F 01 00 00 F7 0C 07 01 B2 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 00 00 00 F4 03 04 00 02 04 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 1F 02 00 35 04 06 00 56 12 86 4D 7C 7C DD BB 98 5C 4E 3A 32 F3 [08:36: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 37 36 4F 00 00 00 FD C3 47 00 71 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 37 36 10 04 04 00 B8 1F 02 00 F4 03 04 00 98 AA C2 66 B6 04 01 00 00 46 BC 6E CB DA 6E 62 85 [08:36:18]CommunicateWithHost err = 0 [08:36:18]CheckOFDResponse [08:36:18]1017 (14) - 77093643461234 [08:36:18]1041 (16) - 0000000000871776 [08:36:18]1040 (4) - 139192 [08:36:18]1012 (4) - 19.08.2024 02:14 [08:36:18]1206 (1) - 0 [08:36:18]OFD Sender: Remove packet 139192 [08:36:18]ProducePacketName [08:36:18]name=ofd_packets/00139192 [08:36:18]NVStorageDeleteData [08:36:18]Write to MH i2c: 01 00 00 55 09 5E [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 07 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 E0 0C 51 [08:36:18]RasterBufferAndPrint [08:36:18]line [08:36:18]line [08:36:18]line [08:36:18]line [08:36:18]line [08:36:18]written 0, free lines is 3302 [08:36:18]MH_Cut [08:36:18]Write to MH i2c: D1 01 00 5C 09 01 37 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: D1 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: D1 01 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: D1 01 00 5C 09 00 36 [08:36:18]Write to MH i2c: 01 00 00 5D 09 66 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:19]OFD Sender: No OFD packet to send [08:36:19]*** Cut start [08:36:19]*** Partial cut [08:36:19]*** CUTSNS_PIN = 1 [08:36:19]*** CUTSNS_PIN = 0 [08:36:19]*** Brake cut motor [08:36:20]Read from MH i2c: 01 [08:36:20]MH_I2C_Read... [08:36:20]*** Stop cut motor [08:36:20]*** Cut end [08:36:20]Read from MH i2c: 01 07 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: 01 07 00 5D 09 00 00 00 00 00 FF 0F 7B [08:36:20]process_action close_receipt done [08:36:20]requested_data is exist [08:36:20]produce_requested_data [08:36:20]requested_item fm.sn is exist - process it [08:36:20]wFMCommunicate request_size=4 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 11 00 00 [08:36:20]Write to MH i2c: E2 08 00 5E 09 80 11 00 00 00 00 00 00 E1 [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 17 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 17 00 5E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 38 [08:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:36:20]wFMCommunicate OK [08:36:20]requested_item fd.num is exist - process it [08:36:20]SAM_PROTO_GetFieldsCounters [08:36:20]wFMCommunicate request_size=4 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 13 00 00 [08:36:20]Write to MH i2c: E2 08 00 5F 09 80 13 00 00 00 00 00 00 E4 [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 62 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 62 00 5F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [08:36: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:20]wFMCommunicate OK [08:36:20]SAM_PROTO_GetFieldsCounters done [08:36:20]requested_item shift.num is exist - process it [08:36:20]requested_item shift.opened is exist - process it [08:36:20]req_shift_opened [08:36:20]FM_GetShiftState [08:36:20]SAM_PROTO_GetShiftState [08:36:20]wFMCommunicate request_size=4 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 13 01 00 [08:36:20]Write to MH i2c: E2 08 00 60 09 80 13 01 00 00 00 00 00 E6 [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 0E 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 0E 00 60 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9D [08:36:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:36:20]wFMCommunicate OK [08:36:20]SAM_PROTO_GetShiftState done [08:36:20]FM_GetShiftState done [08:36:20]req_shift_opened done [08:36:20]requested_item shift.open_date is exist - process it [08:36:20]req_shift_open_date [08:36:20]req_shift_open_date done [08:36:20]produce_requested_data done [08:36:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139192,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:36:20]process_action_free close_receipt [08:36:20]json_value_free [08:36:20]json_value_free done [08:36:20]process_json_proto returns [08:36:20]Send response to host [08:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139192,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:36:20]free response buf [08:36:20]execute_script done [08:36:20]execute_script returns [08:36:20]free content buf [08:36:20]Sock 7.Close socket [08:36:20]Sock 7.Thread stoped [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:57]accept exits with 9 [08:41:57]New connection [08:41:57]New thread 3067059556 created [08:41:57]Thread 3067202916 joined [08:41:57]Waiting for new connection... [08:41:57] Sock 9.Parse request [08:41:57]Sock 9.Check first char [08:41:57]Sock 9.First char is OK [08:41:57]request: POST /json_proto HTTP/1.0 [08:41:57]Method: POST [08:41:57]URL: /json_proto [08:41:57]Method is POST - this is cgi request [08:41:57]url: /json_proto [08:41:57]query_string will be loaded in cgi processing [08:41:57]execute_cgi json_proto POST (null) [08:41:57]execute_cgi path=json_proto method=POST [08:41:57]POST find Content-Length [08:41:57]Host: 172.17.45.67:8080 [08:41:57]Content-Length: 658 [08:41:57]Content-Type: application/json [08:41:57] [08:41:57]POST finish read [08:41:57]Found Content-Length = 658 [08:41:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:57]execute_script... [08:41: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)593033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:57]POST & json_proto [08:41:57]process_json_proto [08:41:57]json parsed OK: [08:41:57]protocol is kg_v1.0 [08:41:57]action value=close_receipt [08:41:57]process_action close_receipt [08:41:57]cmd_close_receipt [08:41:57]MH_GetDate [08:41:57]Write to MH i2c: F0 00 00 61 09 59 [08:41:57]Write i2c OK [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: F0 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: F0 09 00 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: F0 09 00 61 09 00 57 05 C3 66 5F 7F 2B 66 56 [08:41:57]GetLastDocTimeStamp 1724056578 [08:41:57]current date 1724056919 [08:41:57]FM_GetShiftState [08:41:57]SAM_PROTO_GetShiftState [08:41:57]wFMCommunicate request_size=4 [08:41:57]MH_SAM_APDU [08:41:57]CAPDU: 80 13 01 00 [08:41:57]Write to MH i2c: E2 08 00 62 09 80 13 01 00 00 00 00 00 E8 [08:41:57]Write i2c OK [08:41:57]MH_I2C_Read... [08:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:57]Read from MH i2c: E2 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 0E 00 [08:41:57]MH_I2C_Read... [08:41:57]Read from MH i2c: E2 0E 00 62 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9F [08:41:57]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:41:57]wFMCommunicate OK [08:41:57]SAM_PROTO_GetShiftState done [08:41:57]FM_GetShiftState done [08:41:57]opened in 1724027888 [08:41:57]opened+sec_in_day 1724114288 [08:41:57]quantity*price = 50017 [08:41:57]sum+1 = 50019 [08:41:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 28 19.08.2024 08:41 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139193 ФПД: 33429406084810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084159&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139193&fm=33429406084810&tin=02508201610067®Number=0000000000092569&sum=50000 [08:41:58]StoreToDocumentArchive [08:41:58]shift 452 fd 139193 [08:41:58]save to /storage/0452/doc_00139193 [08:41:58]save last doc name /storage/0452/doc_00139193 to /storage/kkm_last_doc_name [08:41:58]save OK [08:41:58]Clear old archive folders... [08:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:41:58]tlvbuf is 01D7BF70 [08:41:58]SAM_PROTO_ClearQueue [08:41:58]wFMCommunicate request_size=4 [08:41:58]MH_SAM_APDU [08:41:58]CAPDU: 80 09 00 00 [08:41:58]Write to MH i2c: E2 08 00 6F 09 80 09 00 00 00 00 00 00 EA [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:58]Read from MH i2c: E2 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 03 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [08:41:58]RAPDU: 90 00 [08:41:58]wFMCommunicate OK [08:41:58]SAM_PROTO_ClearQueue done [08:41:58]KKMCreateOFDPacket [08:41:58]OFDProtocolAddRootSTLVToBuf [08:41:58]FM_MakeSignedData [08:41:58]FM_MakeSignedData [08:41:58]SAM_PROTO_SignData [08:41:58]wFMCommunicate request_size=4 [08:41:58]MH_SAM_APDU [08:41:58]CAPDU: 80 0D 01 02 [08:41:58]Write to MH i2c: E2 08 00 70 09 80 0D 01 02 00 00 00 00 F2 [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:58]Read from MH i2c: E2 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 03 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [08:41:58]RAPDU: 90 00 [08:41:58]wFMCommunicate OK [08:41:58]wFMCommunicate request_size=253 [08:41:58]MH_SAM_APDU [08:41:58]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 57 05 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 1F 02 00 35 04 06 00 1E 67 63 DF EE CA [08:41:58]Write to MH i2c: E2 00 01 71 09 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 57 05 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 1F 02 00 35 04 06 00 1E 67 63 DF EE CA 00 00 CA [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:58]Read from MH i2c: E2 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 03 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [08:41:58]RAPDU: 90 00 [08:41:58]wFMCommunicate OK [08:41:58]wFMCommunicate request_size=4 [08:41:58]MH_SAM_APDU [08:41:58]CAPDU: 80 0D 03 02 [08:41:58]Write to MH i2c: E2 08 00 72 09 80 0D 03 02 00 00 00 00 F6 [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:58]Read from MH i2c: E2 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 0B 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 0B 00 72 09 00 33 78 5C 1A D9 2F D1 DD 90 00 CE [08:41:58]RAPDU: 33 78 5C 1A D9 2F D1 DD 90 00 [08:41:58]wFMCommunicate OK [08:41:58]SAM_PROTO_SignData done [08:41:58]FM_MakeSignedData done [08:41:58]CreateOFDProtocolMessage [08:41:58]wFMCommunicate request_size=4 [08:41:58]MH_SAM_APDU [08:41:58]CAPDU: 80 11 00 00 [08:41:58]Write to MH i2c: E2 08 00 73 09 80 11 00 00 00 00 00 00 F6 [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:58]Read from MH i2c: E2 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 17 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: E2 17 00 73 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [08:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:41:58]wFMCommunicate OK [08:41:58]CreateOFDProtocolMessage done [08:41:58]OFDSenderStorePacket 139193 [08:41:58]StoreOFDPacket docnum=139193 [08:41:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 37 20 00 01 27 1E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 57 05 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 1F 02 00 35 04 06 00 1E 67 63 DF EE CA 33 78 5C 1A D9 2F D1 DD [08:41:58]CheckFolder [08:41:58]dirname=/storage/ofd_packets [08:41:58]CheckFolder done [08:41:58]ProducePacketName [08:41:58]name=ofd_packets/00139193 [08:41:58]NVStorageSaveData ofd_packets/00139193 [08:41:58]File name is /storage/ofd_packets/00139193 [08:41:58]Write 294 bytes [08:41:58]NVStorageSaveData done [08:41:58]OFDSenderStorePacket done [08:41:58]KKMCreateOFDPacket done [08:41:58]NVStorageSaveData kkm_last_timestamp [08:41:58]File name is /storage/kkm_last_timestamp [08:41:58]Write 4 bytes [08:41:58]NVStorageSaveData done [08:41:58]ExternCall_PrintAddStr [08:41:58]wPrintStart [08:41:58]Write to MH i2c: 01 00 00 74 09 7D [08:41:58]Write i2c OK [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: 01 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: 01 07 00 [08:41:58]MH_I2C_Read... [08:41:58]Read from MH i2c: 01 07 00 74 09 00 00 00 00 00 FF 0F 92 [08:41:58]RasterBufferAndPrint [08:41:58]line Счет N : (1)593033 [08:41:58]line ИНН: 02508201610067 [08:41:58]line Контрольно-Кассовый Чек [08:41:58]line ПРОДАЖА [08:41:58]line ТРК (МРК, ГНК) : 43 [08:41:58]line Товар: 2710124130 [08:41:58]line SU-92 [08:41:58]line 7.270 * 68.80 [08:41:58]line = 500.18 [08:41:58]line НДС 12% НСП 1% [08:41:58]line > о реализуемом товаре [08:41:58]line ОКРУГЛЕНИЕ: -0.18 [08:41:58]line ИТОГО: 500.00 [08:41:58]line Внесено: 500.00 [08:41:58]line СДАЧА: 0.00 [08:41:58]line НСП 1% : 4.43 [08:41:58]line НДС 12% : 53.12 [08:41:58]line Наличными: 500.00 [08:41:58]line Безнал.: 0.00 [08:41:58]line Место: АЗС № 136 "Партнер Нефть" [08:41:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:41:58]line СНО: Общий режим [08:41:58]line Чек 28 19.08.2024 08:41 [08:41:58]line Смена: 452 ФФД: 1.0 [08:41:58]line ЗНМ: 0300000067 [08:41:58]line РНМ: 0000000000092569 [08:41:58]line Версия ККМ: 001 [08:41:58]line ФМ: 0000000000871776 [08:41:58]line ФД: 139193 [08:41:58]line ФПД: 33429406084810 [08:41:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084159&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139193&fm=33429406084810&tin=02508201610067®Number=0000000000092569&sum=50000 [08:41:58]written 0, free lines is 4095 [08:41:58]OFD Sender: Processing packet 139193 [packets to send 137, broken 136] [08:41:58]ProducePacketName [08:41:58]name=ofd_packets/00139193 [08:41:58]OFD Sender: To server: pG, [08:41:58]CommunicateWithHost lk.salyk.kg:30040 [08:41:58]ConnectInit lk.salyk.kg [08:41:59]Connected sock=10 [08:41: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 37 36 08 01 00 00 37 20 00 01 27 1E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 57 05 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 1F 02 00 35 04 06 00 1E 67 63 DF EE CA 33 78 5C 1A D9 2F D1 DD [08:41:59]Write to MH i2c: 01 00 00 9F 09 A8 [08:41:59]Write i2c OK [08:41:59]MH_I2C_Read... [08:41:59]Read from MH i2c: 01 [08:41:59]MH_I2C_Read... [08:41:59]Read from MH i2c: 01 07 00 [08:41:59]MH_I2C_Read... [08:41:59]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 CE 0C 89 [08:41:59]RasterBufferAndPrint [08:41:59]line [08:41:59]line [08:41:59]line [08:41:59]line [08:41:59]line [08:41:59]written 0, free lines is 3281 [08:41:59]MH_Cut [08:41:59]Write to MH i2c: D1 01 00 A6 09 01 81 [08:41:59]Write i2c OK [08:41:59]MH_I2C_Read... [08:41:59]Read from MH i2c: D1 [08:41:59]MH_I2C_Read... [08:41:59]Read from MH i2c: D1 01 00 [08:41:59]MH_I2C_Read... [08:41:59]Read from MH i2c: D1 01 00 A6 09 00 80 [08:41:59]Write to MH i2c: 01 00 00 A7 09 B0 [08:41:59]Write i2c OK [08:41:59]MH_I2C_Read... [08:41: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 37 36 4F 00 00 00 6B 2B 47 00 2E 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 37 36 10 04 04 00 B9 1F 02 00 F4 03 04 00 ED AB C2 66 B6 04 01 00 00 E0 6A 7E 94 EA 82 A5 B8 [08:41:59]CommunicateWithHost err = 0 [08:41:59]CheckOFDResponse [08:41:59]1017 (14) - 77093643461234 [08:41:59]1041 (16) - 0000000000871776 [08:41:59]1040 (4) - 139193 [08:41:59]1012 (4) - 19.08.2024 02:20 [08:41:59]1206 (1) - 0 [08:41:59]OFD Sender: Remove packet 139193 [08:41:59]ProducePacketName [08:41:59]name=ofd_packets/00139193 [08:41:59]NVStorageDeleteData [08:41:59]OFD Sender: No OFD packet to send [08:42:00]*** Cut start [08:42:00]*** Partial cut [08:42:00]*** CUTSNS_PIN = 1 [08:42:00]*** CUTSNS_PIN = 0 [08:42:00]*** Brake cut motor [08:42:00]Read from MH i2c: 01 [08:42:00]MH_I2C_Read... [08:42:00]*** Stop cut motor [08:42:00]*** Cut end [08:42:00]Read from MH i2c: 01 07 00 [08:42:00]MH_I2C_Read... [08:42:00]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [08:42:00]process_action close_receipt done [08:42:00]requested_data is exist [08:42:00]produce_requested_data [08:42:00]requested_item fm.sn is exist - process it [08:42:00]wFMCommunicate request_size=4 [08:42:00]MH_SAM_APDU [08:42:00]CAPDU: 80 11 00 00 [08:42:00]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [08:42:00]Write i2c OK [08:42:00]MH_I2C_Read... [08:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:00]Read from MH i2c: E2 [08:42:00]MH_I2C_Read... [08:42:00]Read from MH i2c: E2 17 00 [08:42:00]MH_I2C_Read... [08:42:00]Read from MH i2c: E2 17 00 A8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 82 [08:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:42:00]wFMCommunicate OK [08:42:00]requested_item fd.num is exist - process it [08:42:00]SAM_PROTO_GetFieldsCounters [08:42:00]wFMCommunicate request_size=4 [08:42:00]MH_SAM_APDU [08:42:00]CAPDU: 80 13 00 00 [08:42:00]Write to MH i2c: E2 08 00 A9 09 80 13 00 00 00 00 00 00 2E [08:42:00]Write i2c OK [08:42:00]MH_I2C_Read... [08:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:00]Read from MH i2c: E2 [08:42:00]MH_I2C_Read... [08:42:00]Read from MH i2c: E2 62 00 [08:42:00]MH_I2C_Read... [08:42:00]Read from MH i2c: E2 62 00 A9 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [08:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:00]wFMCommunicate OK [08:42:00]SAM_PROTO_GetFieldsCounters done [08:42:00]requested_item shift.num is exist - process it [08:42:00]requested_item shift.opened is exist - process it [08:42:00]req_shift_opened [08:42:00]FM_GetShiftState [08:42:00]SAM_PROTO_GetShiftState [08:42:00]wFMCommunicate request_size=4 [08:42:00]MH_SAM_APDU [08:42:00]CAPDU: 80 13 01 00 [08:42:00]Write to MH i2c: E2 08 00 AA 09 80 13 01 00 00 00 00 00 30 [08:42:00]Write i2c OK [08:42:00]MH_I2C_Read... [08:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:00]Read from MH i2c: E2 [08:42:00]MH_I2C_Read... [08:42:00]Read from MH i2c: E2 0E 00 [08:42:00]MH_I2C_Read... [08:42:00]Read from MH i2c: E2 0E 00 AA 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E7 [08:42:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:42:00]wFMCommunicate OK [08:42:00]SAM_PROTO_GetShiftState done [08:42:00]FM_GetShiftState done [08:42:00]req_shift_opened done [08:42:00]requested_item shift.open_date is exist - process it [08:42:00]req_shift_open_date [08:42:00]req_shift_open_date done [08:42:00]produce_requested_data done [08:42:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139193,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:42:00]process_action_free close_receipt [08:42:00]json_value_free [08:42:00]json_value_free done [08:42:00]process_json_proto returns [08:42:00]Send response to host [08:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139193,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:42:00]free response buf [08:42:00]execute_script done [08:42:00]execute_script returns [08:42:00]free content buf [08:42:00]Sock 9.Close socket [08:42:00]Sock 9.Thread stoped [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:28]accept exits with 7 [08:43:28]New connection [08:43:28]New thread 3067202916 created [08:43:28]Thread 3067059556 joined [08:43:28]Waiting for new connection... [08:43:28] Sock 7.Parse request [08:43:28]Sock 7.Check first char [08:43:28]Sock 7.First char is OK [08:43:28]request: POST /json_proto HTTP/1.0 [08:43:28]Method: POST [08:43:28]URL: /json_proto [08:43:28]Method is POST - this is cgi request [08:43:28]url: /json_proto [08:43:28]query_string will be loaded in cgi processing [08:43:28]execute_cgi json_proto POST (null) [08:43:28]execute_cgi path=json_proto method=POST [08:43:28]POST find Content-Length [08:43:28]Host: 172.17.45.67:8080 [08:43:28]Content-Length: 677 [08:43:28]Content-Type: application/json [08:43:28] [08:43:28]POST finish read [08:43:28]Found Content-Length = 677 [08:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.740, "sum" : 660.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:28]execute_script... [08:43: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)593034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.740, "sum" : 660.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:28]POST & json_proto [08:43:28]process_json_proto [08:43:28]json parsed OK: [08:43:28]protocol is kg_v1.0 [08:43:28]action value=close_receipt [08:43:28]process_action close_receipt [08:43:28]cmd_close_receipt [08:43:28]MH_GetDate [08:43:28]Write to MH i2c: F0 00 00 AB 09 A3 [08:43:28]Write i2c OK [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: F0 [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: F0 09 00 [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: F0 09 00 AB 09 00 B2 05 C3 66 5F 7F 2B 66 FB [08:43:28]GetLastDocTimeStamp 1724056919 [08:43:28]current date 1724057010 [08:43:28]FM_GetShiftState [08:43:28]SAM_PROTO_GetShiftState [08:43:28]wFMCommunicate request_size=4 [08:43:28]MH_SAM_APDU [08:43:28]CAPDU: 80 13 01 00 [08:43:28]Write to MH i2c: E2 08 00 AC 09 80 13 01 00 00 00 00 00 32 [08:43:28]Write i2c OK [08:43:28]MH_I2C_Read... [08:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:28]Read from MH i2c: E2 [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: E2 0E 00 [08:43:28]MH_I2C_Read... [08:43:28]Read from MH i2c: E2 0E 00 AC 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E9 [08:43:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:43:28]wFMCommunicate OK [08:43:28]SAM_PROTO_GetShiftState done [08:43:28]FM_GetShiftState done [08:43:28]opened in 1724027888 [08:43:28]opened+sec_in_day 1724114288 [08:43:28]quantity*price = 66037 [08:43:28]sum+1 = 66038 [08:43:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.13 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 29 19.08.2024 08:43 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139194 ФПД: 197126324313035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084330&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139194&fm=197126324313035&tin=02508201610067®Number=0000000000092569&sum=66000 [08:43:29]StoreToDocumentArchive [08:43:29]shift 452 fd 139194 [08:43:29]save to /storage/0452/doc_00139194 [08:43:29]save last doc name /storage/0452/doc_00139194 to /storage/kkm_last_doc_name [08:43:29]save OK [08:43:29]Clear old archive folders... [08:43:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:29]tlvbuf is B6F929C0 [08:43:29]SAM_PROTO_ClearQueue [08:43:29]wFMCommunicate request_size=4 [08:43:29]MH_SAM_APDU [08:43:29]CAPDU: 80 09 00 00 [08:43:29]Write to MH i2c: E2 08 00 B9 09 80 09 00 00 00 00 00 00 34 [08:43:29]Write i2c OK [08:43:29]MH_I2C_Read... [08:43:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:29]Read from MH i2c: E2 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 03 00 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 03 00 B9 09 00 90 00 36 [08:43:29]RAPDU: 90 00 [08:43:29]wFMCommunicate OK [08:43:29]SAM_PROTO_ClearQueue done [08:43:29]KKMCreateOFDPacket [08:43:29]OFDProtocolAddRootSTLVToBuf [08:43:29]FM_MakeSignedData [08:43:29]FM_MakeSignedData [08:43:29]SAM_PROTO_SignData [08:43:29]wFMCommunicate request_size=4 [08:43:29]MH_SAM_APDU [08:43:29]CAPDU: 80 0D 01 02 [08:43:29]Write to MH i2c: E2 08 00 BA 09 80 0D 01 02 00 00 00 00 3C [08:43:29]Write i2c OK [08:43:29]MH_I2C_Read... [08:43:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:29]Read from MH i2c: E2 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 03 00 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [08:43:29]RAPDU: 90 00 [08:43:29]wFMCommunicate OK [08:43:29]wFMCommunicate request_size=255 [08:43:29]MH_SAM_APDU [08:43: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 0C 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F5 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B2 05 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 1F 02 00 35 04 06 00 B3 [08:43:29]Write to MH i2c: E2 02 01 BB 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F5 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B2 05 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 1F 02 00 35 04 06 00 B3 00 00 CD [08:43:29]OFD Sender: No OFD packet to send [08:43:29]Write i2c OK [08:43:29]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [08:43:30]RAPDU: 90 00 [08:43:30]wFMCommunicate OK [08:43:30]wFMCommunicate request_size=10 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 0D 02 02 05 49 0C 89 5B CB [08:43:30]Write to MH i2c: E2 0D 00 BC 09 80 0D 02 02 05 00 49 0C 89 5B CB 00 00 4D [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [08:43:30]RAPDU: 90 00 [08:43:30]wFMCommunicate OK [08:43:30]wFMCommunicate request_size=4 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 0D 03 02 [08:43:30]Write to MH i2c: E2 08 00 BD 09 80 0D 03 02 00 00 00 00 41 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 0B 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 0B 00 BD 09 00 F8 32 4E 33 B7 9B 30 0B 90 00 7A [08:43:30]RAPDU: F8 32 4E 33 B7 9B 30 0B 90 00 [08:43:30]wFMCommunicate OK [08:43:30]SAM_PROTO_SignData done [08:43:30]FM_MakeSignedData done [08:43:30]CreateOFDProtocolMessage [08:43:30]wFMCommunicate request_size=4 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 11 00 00 [08:43:30]Write to MH i2c: E2 08 00 BE 09 80 11 00 00 00 00 00 00 41 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 17 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 17 00 BE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [08:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:43:30]wFMCommunicate OK [08:43:30]CreateOFDProtocolMessage done [08:43:30]OFDSenderStorePacket 139194 [08:43:30]StoreOFDPacket docnum=139194 [08:43:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 7D 07 01 3F 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 0C 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F5 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B2 05 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 1F 02 00 35 04 06 00 B3 49 0C 89 5B CB F8 32 4E 33 B7 9B 30 0B [08:43:30]CheckFolder [08:43:30]dirname=/storage/ofd_packets [08:43:30]CheckFolder done [08:43:30]ProducePacketName [08:43:30]name=ofd_packets/00139194 [08:43:30]NVStorageSaveData ofd_packets/00139194 [08:43:30]File name is /storage/ofd_packets/00139194 [08:43:30]Write 301 bytes [08:43:30]NVStorageSaveData done [08:43:30]OFDSenderStorePacket done [08:43:30]KKMCreateOFDPacket done [08:43:30]NVStorageSaveData kkm_last_timestamp [08:43:30]File name is /storage/kkm_last_timestamp [08:43:30]Write 4 bytes [08:43:30]NVStorageSaveData done [08:43:30]ExternCall_PrintAddStr [08:43:30]wPrintStart [08:43:30]Write to MH i2c: 01 00 00 BF 09 C8 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: 01 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: 01 07 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 FF 0F DD [08:43:30]RasterBufferAndPrint [08:43:30]line Счет N : (1)593034 [08:43:30]line ИНН: 02508201610067 [08:43:30]line Контрольно-Кассовый Чек [08:43:30]line ПРОДАЖА [08:43:30]line ТРК (МРК, ГНК) : 62 [08:43:30]line Товар: 2710124130 [08:43:30]line Аи-92-К-5 [08:43:30]line 9.740 * 67.80 [08:43:30]line = 660.37 [08:43:30]line НДС 12% НСП 1% [08:43:30]line > о реализуемом товаре [08:43:30]line ОКРУГЛЕНИЕ: -0.37 [08:43:30]line ИТОГО: 660.00 [08:43:30]line Внесено: 660.00 [08:43:30]line СДАЧА: 0.00 [08:43:30]line НСП 1% : 5.84 [08:43:30]line НДС 12% : 70.13 [08:43:30]line Наличными: 660.00 [08:43:30]line Безнал.: 0.00 [08:43:30]line Место: АЗС № 136 "Партнер Нефть" [08:43:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:43:30]line СНО: Общий режим [08:43:30]line Чек 29 19.08.2024 08:43 [08:43:30]line Смена: 452 ФФД: 1.0 [08:43:30]line ЗНМ: 0300000067 [08:43:30]line РНМ: 0000000000092569 [08:43:30]line Версия ККМ: 001 [08:43:30]line ФМ: 0000000000871776 [08:43:30]line ФД: 139194 [08:43:30]line ФПД: 197126324313035 [08:43:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084330&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139194&fm=197126324313035&tin=02508201610067®Number=0000000000092569&sum=66000 [08:43:30]OFD Sender: Processing packet 139194 [packets to send 137, broken 136] [08:43:30]ProducePacketName [08:43:30]name=ofd_packets/00139194 [08:43:30]OFD Sender: To server: pG, [08:43:30]CommunicateWithHost lk.salyk.kg:30040 [08:43:30]ConnectInit lk.salyk.kg [08:43:30]written 0, free lines is 4095 [08:43:30]Connected sock=10 [08:43: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 37 36 0F 01 00 00 16 7D 07 01 3F 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 0C 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F5 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B2 05 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 1F 02 00 35 04 06 00 B3 49 0C 89 5B CB F8 32 4E 33 B7 9B 30 0B [08:43: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 37 36 4F 00 00 00 B0 8E 47 00 6C 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 37 36 10 04 04 00 BA 1F 02 00 F4 03 04 00 49 AC C2 66 B6 04 01 00 00 9E 9E E8 88 FE 12 32 BF [08:43:31]CommunicateWithHost err = 0 [08:43:31]CheckOFDResponse [08:43:31]1017 (14) - 77093643461234 [08:43:31]1041 (16) - 0000000000871776 [08:43:31]1040 (4) - 139194 [08:43:31]1012 (4) - 19.08.2024 02:22 [08:43:31]1206 (1) - 0 [08:43:31]OFD Sender: Remove packet 139194 [08:43:31]ProducePacketName [08:43:31]name=ofd_packets/00139194 [08:43:31]NVStorageDeleteData [08:43:31]Write to MH i2c: 01 00 00 EA 09 F3 [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: 01 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: 01 07 00 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: 01 07 00 EA 09 00 00 00 00 00 D0 0C D6 [08:43:31]RasterBufferAndPrint [08:43:31]line [08:43:31]line [08:43:31]line [08:43:31]line [08:43:31]line [08:43:31]written 0, free lines is 3287 [08:43:31]MH_Cut [08:43:31]Write to MH i2c: D1 01 00 F1 09 01 CC [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: D1 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: D1 01 00 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: D1 01 00 F1 09 00 CB [08:43:31]Write to MH i2c: 01 00 00 F2 09 FB [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]OFD Sender: No OFD packet to send [08:43:31]*** Cut start [08:43:31]*** Partial cut [08:43:31]*** CUTSNS_PIN = 1 [08:43:31]*** CUTSNS_PIN = 0 [08:43:32]*** Brake cut motor [08:43:32]Read from MH i2c: 01 [08:43:32]MH_I2C_Read... [08:43:32]*** Stop cut motor [08:43:32]*** Cut end [08:43:32]Read from MH i2c: 01 07 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: 01 07 00 F2 09 00 00 00 00 00 FF 0F 10 [08:43:32]process_action close_receipt done [08:43:32]requested_data is exist [08:43:32]produce_requested_data [08:43:32]requested_item fm.sn is exist - process it [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 11 00 00 [08:43:32]Write to MH i2c: E2 08 00 F3 09 80 11 00 00 00 00 00 00 76 [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:32]Read from MH i2c: E2 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 17 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 17 00 F3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CD [08:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:43:32]wFMCommunicate OK [08:43:32]requested_item fd.num is exist - process it [08:43:32]SAM_PROTO_GetFieldsCounters [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 13 00 00 [08:43:32]Write to MH i2c: E2 08 00 F4 09 80 13 00 00 00 00 00 00 79 [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:32]Read from MH i2c: E2 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 62 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 62 00 F4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [08:43: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:32]wFMCommunicate OK [08:43:32]SAM_PROTO_GetFieldsCounters done [08:43:32]requested_item shift.num is exist - process it [08:43:32]requested_item shift.opened is exist - process it [08:43:32]req_shift_opened [08:43:32]FM_GetShiftState [08:43:32]SAM_PROTO_GetShiftState [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 13 01 00 [08:43:32]Write to MH i2c: E2 08 00 F5 09 80 13 01 00 00 00 00 00 7B [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:32]Read from MH i2c: E2 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 0E 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 0E 00 F5 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 32 [08:43:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:43:32]wFMCommunicate OK [08:43:32]SAM_PROTO_GetShiftState done [08:43:32]FM_GetShiftState done [08:43:32]req_shift_opened done [08:43:32]requested_item shift.open_date is exist - process it [08:43:32]req_shift_open_date [08:43:32]req_shift_open_date done [08:43:32]produce_requested_data done [08:43:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139194,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:43:32]process_action_free close_receipt [08:43:32]json_value_free [08:43:32]json_value_free done [08:43:32]process_json_proto returns [08:43:32]Send response to host [08:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139194,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:43:32]free response buf [08:43:32]execute_script done [08:43:32]execute_script returns [08:43:32]free content buf [08:43:32]Sock 7.Close socket [08:43:32]Sock 7.Thread stoped [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:14]accept exits with 9 [08:45:14]New connection [08:45:14]New thread 3067059556 created [08:45:14]Thread 3067202916 joined [08:45:14]Waiting for new connection... [08:45:14] Sock 9.Parse request [08:45:14]Sock 9.Check first char [08:45:14]Sock 9.First char is OK [08:45:14]request: POST /json_proto HTTP/1.0 [08:45:14]Method: POST [08:45:14]URL: /json_proto [08:45:14]Method is POST - this is cgi request [08:45:14]url: /json_proto [08:45:14]query_string will be loaded in cgi processing [08:45:14]execute_cgi json_proto POST (null) [08:45:14]execute_cgi path=json_proto method=POST [08:45:14]POST find Content-Length [08:45:14]Host: 172.17.45.67:8080 [08:45:14]Content-Length: 677 [08:45:14]Content-Type: application/json [08:45:14] [08:45:14]POST finish read [08:45:14]Found Content-Length = 677 [08:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [08:45:14]execute_script... [08:45: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)593035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [08:45:14]POST & json_proto [08:45:14]process_json_proto [08:45:14]json parsed OK: [08:45:14]protocol is kg_v1.0 [08:45:14]action value=close_receipt [08:45:14]process_action close_receipt [08:45:14]cmd_close_receipt [08:45:14]MH_GetDate [08:45:14]Write to MH i2c: F0 00 00 F6 09 EE [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: F0 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: F0 09 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: F0 09 00 F6 09 00 1C 06 C3 66 5F 7F 2B 66 B1 [08:45:14]GetLastDocTimeStamp 1724057010 [08:45:14]current date 1724057116 [08:45:14]FM_GetShiftState [08:45:14]SAM_PROTO_GetShiftState [08:45:14]wFMCommunicate request_size=4 [08:45:14]MH_SAM_APDU [08:45:14]CAPDU: 80 13 01 00 [08:45:14]Write to MH i2c: E2 08 00 F7 09 80 13 01 00 00 00 00 00 7D [08:45:14]Write i2c OK [08:45:14]MH_I2C_Read... [08:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:14]Read from MH i2c: E2 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 0E 00 [08:45:14]MH_I2C_Read... [08:45:14]Read from MH i2c: E2 0E 00 F7 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 34 [08:45:14]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:45:14]wFMCommunicate OK [08:45:14]SAM_PROTO_GetShiftState done [08:45:14]FM_GetShiftState done [08:45:14]opened in 1724027888 [08:45:14]opened+sec_in_day 1724114288 [08:45:14]quantity*price = 20001 [08:45:14]sum+1 = 20002 [08:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 30 19.08.2024 08:45 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139195 ФПД: 15714874595153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139195&fm=15714874595153&tin=02508201610067®Number=0000000000092569&sum=20000 [08:45:16]StoreToDocumentArchive [08:45:16]shift 452 fd 139195 [08:45:16]save to /storage/0452/doc_00139195 [08:45:16]save last doc name /storage/0452/doc_00139195 to /storage/kkm_last_doc_name [08:45:16]save OK [08:45:16]Clear old archive folders... [08:45:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:16]tlvbuf is 01D7D290 [08:45:16]SAM_PROTO_ClearQueue [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 09 00 00 [08:45:16]Write to MH i2c: E2 08 00 04 0A 80 09 00 00 00 00 00 00 80 [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 03 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 03 00 04 0A 00 90 00 82 [08:45:16]RAPDU: 90 00 [08:45:16]wFMCommunicate OK [08:45:16]SAM_PROTO_ClearQueue done [08:45:16]KKMCreateOFDPacket [08:45:16]OFDProtocolAddRootSTLVToBuf [08:45:16]FM_MakeSignedData [08:45:16]FM_MakeSignedData [08:45:16]SAM_PROTO_SignData [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 0D 01 02 [08:45:16]Write to MH i2c: E2 08 00 05 0A 80 0D 01 02 00 00 00 00 88 [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 03 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 03 00 05 0A 00 90 00 83 [08:45:16]RAPDU: 90 00 [08:45:16]wFMCommunicate OK [08:45:16]wFMCommunicate request_size=255 [08:45:16]MH_SAM_APDU [08:45: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 1E 00 00 00 F4 03 04 00 1D 06 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 1F 02 00 35 04 06 00 0E [08:45:16]Write to MH i2c: E2 02 01 06 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 1E 00 00 00 F4 03 04 00 1D 06 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 1F 02 00 35 04 06 00 0E 00 00 2C [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 03 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 03 00 06 0A 00 90 00 84 [08:45:16]RAPDU: 90 00 [08:45:16]wFMCommunicate OK [08:45:16]wFMCommunicate request_size=10 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 0D 02 02 05 4A E7 84 97 51 [08:45:16]Write to MH i2c: E2 0D 00 07 0A 80 0D 02 02 05 00 4A E7 84 97 51 00 00 32 [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 03 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [08:45:16]RAPDU: 90 00 [08:45:16]wFMCommunicate OK [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 0D 03 02 [08:45:16]Write to MH i2c: E2 08 00 08 0A 80 0D 03 02 00 00 00 00 8D [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 0B 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 0B 00 08 0A 00 D3 17 62 B0 57 87 6C 20 90 00 F4 [08:45:16]RAPDU: D3 17 62 B0 57 87 6C 20 90 00 [08:45:16]wFMCommunicate OK [08:45:16]SAM_PROTO_SignData done [08:45:16]FM_MakeSignedData done [08:45:16]CreateOFDProtocolMessage [08:45:16]wFMCommunicate request_size=4 [08:45:16]MH_SAM_APDU [08:45:16]CAPDU: 80 11 00 00 [08:45:16]Write to MH i2c: E2 08 00 09 0A 80 11 00 00 00 00 00 00 8D [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:16]Read from MH i2c: E2 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 17 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: E2 17 00 09 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E4 [08:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:45:16]wFMCommunicate OK [08:45:16]CreateOFDProtocolMessage done [08:45:16]OFDSenderStorePacket 139195 [08:45:16]StoreOFDPacket docnum=139195 [08:45:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BC E8 07 01 EF 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 1E 00 00 00 F4 03 04 00 1D 06 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 1F 02 00 35 04 06 00 0E 4A E7 84 97 51 D3 17 62 B0 57 87 6C 20 [08:45:16]CheckFolder [08:45:16]dirname=/storage/ofd_packets [08:45:16]CheckFolder done [08:45:16]ProducePacketName [08:45:16]name=ofd_packets/00139195 [08:45:16]NVStorageSaveData ofd_packets/00139195 [08:45:16]File name is /storage/ofd_packets/00139195 [08:45:16]Write 301 bytes [08:45:16]NVStorageSaveData done [08:45:16]OFDSenderStorePacket done [08:45:16]KKMCreateOFDPacket done [08:45:16]NVStorageSaveData kkm_last_timestamp [08:45:16]File name is /storage/kkm_last_timestamp [08:45:16]Write 4 bytes [08:45:16]NVStorageSaveData done [08:45:16]ExternCall_PrintAddStr [08:45:16]wPrintStart [08:45:16]Write to MH i2c: 01 00 00 0A 0A 14 [08:45:16]Write i2c OK [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: 01 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: 01 07 00 [08:45:16]MH_I2C_Read... [08:45:16]Read from MH i2c: 01 07 00 0A 0A 00 00 00 00 00 FF 0F 29 [08:45:16]RasterBufferAndPrint [08:45:16]line Счет N : (1)593035 [08:45:16]line ИНН: 02508201610067 [08:45:16]line Контрольно-Кассовый Чек [08:45:16]line ПРОДАЖА [08:45:16]line ТРК (МРК, ГНК) : 42 [08:45:16]line Товар: 2710124130 [08:45:16]line Аи-92-К-5 [08:45:16]line 2.950 * 67.80 [08:45:16]line = 200.01 [08:45:16]line НДС 12% НСП 1% [08:45:16]line > о реализуемом товаре [08:45:16]line ОКРУГЛЕНИЕ: -0.01 [08:45:16]line ИТОГО: 200.00 [08:45:16]line Внесено: 200.00 [08:45:16]line СДАЧА: 0.00 [08:45:16]line НСП 1% : 1.77 [08:45:16]line НДС 12% : 21.24 [08:45:16]line Наличными: 200.00 [08:45:16]line Безнал.: 0.00 [08:45:16]line Место: АЗС № 136 "Партнер Нефть" [08:45:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:45:16]line СНО: Общий режим [08:45:16]line Чек 30 19.08.2024 08:45 [08:45:16]line Смена: 452 ФФД: 1.0 [08:45:16]line ЗНМ: 0300000067 [08:45:16]line РНМ: 0000000000092569 [08:45:16]line Версия ККМ: 001 [08:45:16]line ФМ: 0000000000871776 [08:45:16]line ФД: 139195 [08:45:16]line ФПД: 15714874595153 [08:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139195&fm=15714874595153&tin=02508201610067®Number=0000000000092569&sum=20000 [08:45:16]OFD Sender: Processing packet 139195 [packets to send 137, broken 136] [08:45:16]ProducePacketName [08:45:16]name=ofd_packets/00139195 [08:45:16]OFD Sender: To server: pG, [08:45:16]CommunicateWithHost lk.salyk.kg:30040 [08:45:16]ConnectInit lk.salyk.kg [08:45:16]written 0, free lines is 4095 [08:45:17]Connected sock=11 [08:45: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 37 36 0F 01 00 00 BC E8 07 01 EF 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 1E 00 00 00 F4 03 04 00 1D 06 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 1F 02 00 35 04 06 00 0E 4A E7 84 97 51 D3 17 62 B0 57 87 6C 20 [08:45: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 37 36 4F 00 00 00 75 A0 47 00 49 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 37 36 10 04 04 00 BB 1F 02 00 F4 03 04 00 B3 AC C2 66 B6 04 01 00 00 4D 5D BA E8 6B 5A 9C 17 [08:45:17]CommunicateWithHost err = 0 [08:45:17]CheckOFDResponse [08:45:17]1017 (14) - 77093643461234 [08:45:17]1041 (16) - 0000000000871776 [08:45:17]1040 (4) - 139195 [08:45:17]1012 (4) - 19.08.2024 02:23 [08:45:17]1206 (1) - 0 [08:45:17]OFD Sender: Remove packet 139195 [08:45:17]ProducePacketName [08:45:17]name=ofd_packets/00139195 [08:45:17]NVStorageDeleteData [08:45:17]Write to MH i2c: 01 00 00 35 0A 3F [08:45:17]Write i2c OK [08:45:17]MH_I2C_Read... [08:45:17]Read from MH i2c: 01 [08:45:17]MH_I2C_Read... [08:45:17]Read from MH i2c: 01 07 00 [08:45:17]MH_I2C_Read... [08:45:17]Read from MH i2c: 01 07 00 35 0A 00 00 00 00 00 D0 0C 22 [08:45:17]RasterBufferAndPrint [08:45:17]line [08:45:17]line [08:45:17]line [08:45:17]line [08:45:17]line [08:45:17]written 0, free lines is 3285 [08:45:17]MH_Cut [08:45:17]Write to MH i2c: D1 01 00 3C 0A 01 18 [08:45:17]Write i2c OK [08:45:17]MH_I2C_Read... [08:45:17]Read from MH i2c: D1 [08:45:17]MH_I2C_Read... [08:45:17]Read from MH i2c: D1 01 00 [08:45:17]MH_I2C_Read... [08:45:17]Read from MH i2c: D1 01 00 3C 0A 00 17 [08:45:17]Write to MH i2c: 01 00 00 3D 0A 47 [08:45:17]Write i2c OK [08:45:17]MH_I2C_Read... [08:45:17]OFD Sender: No OFD packet to send [08:45:18]*** Cut start [08:45:18]*** Partial cut [08:45:18]*** CUTSNS_PIN = 1 [08:45:18]*** CUTSNS_PIN = 0 [08:45:18]*** Brake cut motor [08:45:18]Read from MH i2c: 01 [08:45:18]MH_I2C_Read... [08:45:18]*** Stop cut motor [08:45:18]*** Cut end [08:45:18]Read from MH i2c: 01 07 00 [08:45:18]MH_I2C_Read... [08:45:18]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [08:45:18]process_action close_receipt done [08:45:18]requested_data is exist [08:45:18]produce_requested_data [08:45:18]requested_item fm.sn is exist - process it [08:45:18]wFMCommunicate request_size=4 [08:45:18]MH_SAM_APDU [08:45:18]CAPDU: 80 11 00 00 [08:45:18]Write to MH i2c: E2 08 00 3E 0A 80 11 00 00 00 00 00 00 C2 [08:45:18]Write i2c OK [08:45:18]MH_I2C_Read... [08:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:18]Read from MH i2c: E2 [08:45:18]MH_I2C_Read... [08:45:18]Read from MH i2c: E2 17 00 [08:45:18]MH_I2C_Read... [08:45:18]Read from MH i2c: E2 17 00 3E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 19 [08:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:45:18]wFMCommunicate OK [08:45:18]requested_item fd.num is exist - process it [08:45:18]SAM_PROTO_GetFieldsCounters [08:45:18]wFMCommunicate request_size=4 [08:45:18]MH_SAM_APDU [08:45:18]CAPDU: 80 13 00 00 [08:45:18]Write to MH i2c: E2 08 00 3F 0A 80 13 00 00 00 00 00 00 C5 [08:45:18]Write i2c OK [08:45:18]MH_I2C_Read... [08:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:18]Read from MH i2c: E2 [08:45:18]MH_I2C_Read... [08:45:18]Read from MH i2c: E2 62 00 [08:45:18]MH_I2C_Read... [08:45:18]Read from MH i2c: E2 62 00 3F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [08:45: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:18]wFMCommunicate OK [08:45:18]SAM_PROTO_GetFieldsCounters done [08:45:18]requested_item shift.num is exist - process it [08:45:18]requested_item shift.opened is exist - process it [08:45:18]req_shift_opened [08:45:18]FM_GetShiftState [08:45:18]SAM_PROTO_GetShiftState [08:45:18]wFMCommunicate request_size=4 [08:45:18]MH_SAM_APDU [08:45:18]CAPDU: 80 13 01 00 [08:45:18]Write to MH i2c: E2 08 00 40 0A 80 13 01 00 00 00 00 00 C7 [08:45:19]Write i2c OK [08:45:19]MH_I2C_Read... [08:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:19]Read from MH i2c: E2 [08:45:19]MH_I2C_Read... [08:45:19]Read from MH i2c: E2 0E 00 [08:45:19]MH_I2C_Read... [08:45:19]Read from MH i2c: E2 0E 00 40 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7E [08:45:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:45:19]wFMCommunicate OK [08:45:19]SAM_PROTO_GetShiftState done [08:45:19]FM_GetShiftState done [08:45:19]req_shift_opened done [08:45:19]requested_item shift.open_date is exist - process it [08:45:19]req_shift_open_date [08:45:19]req_shift_open_date done [08:45:19]produce_requested_data done [08:45:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139195,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:45:19]process_action_free close_receipt [08:45:19]json_value_free [08:45:19]json_value_free done [08:45:19]process_json_proto returns [08:45:19]Send response to host [08:45:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139195,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:45:19]free response buf [08:45:19]execute_script done [08:45:19]execute_script returns [08:45:19]free content buf [08:45:19]Sock 9.Close socket [08:45:19]Sock 9.Thread stoped [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:12]accept exits with 7 [08:54:12]New connection [08:54:12]New thread 3067202916 created [08:54:12]Thread 3067059556 joined [08:54:12]Waiting for new connection... [08:54:12] Sock 7.Parse request [08:54:12]Sock 7.Check first char [08:54:12]Sock 7.First char is OK [08:54:12]request: POST /json_proto HTTP/1.0 [08:54:12]Method: POST [08:54:12]URL: /json_proto [08:54:12]Method is POST - this is cgi request [08:54:12]url: /json_proto [08:54:12]query_string will be loaded in cgi processing [08:54:12]execute_cgi json_proto POST (null) [08:54:12]execute_cgi path=json_proto method=POST [08:54:12]POST find Content-Length [08:54:12]Host: 172.17.45.67:8080 [08:54:12]Content-Length: 677 [08:54:12]Content-Type: application/json [08:54:12] [08:54:12]POST finish read [08:54:12]Found Content-Length = 677 [08:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:12]execute_script... [08:54:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:12]POST & json_proto [08:54:12]process_json_proto [08:54:12]json parsed OK: [08:54:12]protocol is kg_v1.0 [08:54:12]action value=close_receipt [08:54:12]process_action close_receipt [08:54:12]cmd_close_receipt [08:54:12]MH_GetDate [08:54:12]Write to MH i2c: F0 00 00 41 0A 3A [08:54:12]Write i2c OK [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: F0 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: F0 09 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: F0 09 00 41 0A 00 36 08 C3 66 5F 7F 2B 66 19 [08:54:12]GetLastDocTimeStamp 1724057117 [08:54:12]current date 1724057654 [08:54:12]FM_GetShiftState [08:54:12]SAM_PROTO_GetShiftState [08:54:12]wFMCommunicate request_size=4 [08:54:12]MH_SAM_APDU [08:54:12]CAPDU: 80 13 01 00 [08:54:12]Write to MH i2c: E2 08 00 42 0A 80 13 01 00 00 00 00 00 C9 [08:54:12]Write i2c OK [08:54:12]MH_I2C_Read... [08:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:12]Read from MH i2c: E2 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 0E 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 0E 00 42 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 80 [08:54:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:54:12]wFMCommunicate OK [08:54:12]SAM_PROTO_GetShiftState done [08:54:12]FM_GetShiftState done [08:54:12]opened in 1724027888 [08:54:12]opened+sec_in_day 1724114288 [08:54:12]quantity*price = 30035 [08:54:12]sum+1 = 30036 [08:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 31 19.08.2024 08:54 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139196 ФПД: 87613277048913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085414&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139196&fm=87613277048913&tin=02508201610067®Number=0000000000092569&sum=30000 [08:54:13]StoreToDocumentArchive [08:54:13]shift 452 fd 139196 [08:54:13]save to /storage/0452/doc_00139196 [08:54:13]save last doc name /storage/0452/doc_00139196 to /storage/kkm_last_doc_name [08:54:13]save OK [08:54:13]Clear old archive folders... [08:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:13]tlvbuf is 01D457F0 [08:54:13]SAM_PROTO_ClearQueue [08:54:13]wFMCommunicate request_size=4 [08:54:13]MH_SAM_APDU [08:54:13]CAPDU: 80 09 00 00 [08:54:13]Write to MH i2c: E2 08 00 4F 0A 80 09 00 00 00 00 00 00 CB [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:13]Read from MH i2c: E2 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 03 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 03 00 4F 0A 00 90 00 CD [08:54:13]RAPDU: 90 00 [08:54:13]wFMCommunicate OK [08:54:13]SAM_PROTO_ClearQueue done [08:54:13]KKMCreateOFDPacket [08:54:13]OFDProtocolAddRootSTLVToBuf [08:54:13]FM_MakeSignedData [08:54:13]FM_MakeSignedData [08:54:13]SAM_PROTO_SignData [08:54:13]wFMCommunicate request_size=4 [08:54:13]MH_SAM_APDU [08:54:13]CAPDU: 80 0D 01 02 [08:54:13]Write to MH i2c: E2 08 00 50 0A 80 0D 01 02 00 00 00 00 D3 [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:13]Read from MH i2c: E2 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 03 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 03 00 50 0A 00 90 00 CE [08:54:13]RAPDU: 90 00 [08:54:13]wFMCommunicate OK [08:54:13]wFMCommunicate request_size=255 [08:54:13]MH_SAM_APDU [08:54: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 36 08 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 1F 02 00 35 04 06 00 4F [08:54:13]Write to MH i2c: E2 02 01 51 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 36 08 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 1F 02 00 35 04 06 00 4F 00 00 F2 [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]OFD Sender: No OFD packet to send [08:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:13]Read from MH i2c: E2 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 03 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 03 00 51 0A 00 90 00 CF [08:54:13]RAPDU: 90 00 [08:54:13]wFMCommunicate OK [08:54:13]wFMCommunicate request_size=10 [08:54:13]MH_SAM_APDU [08:54:13]CAPDU: 80 0D 02 02 05 AF 0E 41 90 51 [08:54:13]Write to MH i2c: E2 0D 00 52 0A 80 0D 02 02 05 00 AF 0E 41 90 51 00 00 BF [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:13]Read from MH i2c: E2 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 03 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [08:54:13]RAPDU: 90 00 [08:54:13]wFMCommunicate OK [08:54:13]wFMCommunicate request_size=4 [08:54:13]MH_SAM_APDU [08:54:13]CAPDU: 80 0D 03 02 [08:54:13]Write to MH i2c: E2 08 00 53 0A 80 0D 03 02 00 00 00 00 D8 [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:13]Read from MH i2c: E2 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 0B 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 0B 00 53 0A 00 2E D3 58 84 7A 3B 43 D7 90 00 85 [08:54:13]RAPDU: 2E D3 58 84 7A 3B 43 D7 90 00 [08:54:13]wFMCommunicate OK [08:54:13]SAM_PROTO_SignData done [08:54:13]FM_MakeSignedData done [08:54:13]CreateOFDProtocolMessage [08:54:13]wFMCommunicate request_size=4 [08:54:13]MH_SAM_APDU [08:54:13]CAPDU: 80 11 00 00 [08:54:13]Write to MH i2c: E2 08 00 54 0A 80 11 00 00 00 00 00 00 D8 [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:13]Read from MH i2c: E2 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 17 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 17 00 54 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [08:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:54:13]wFMCommunicate OK [08:54:13]CreateOFDProtocolMessage done [08:54:13]OFDSenderStorePacket 139196 [08:54:13]StoreOFDPacket docnum=139196 [08:54:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E3 4B 07 01 E6 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 36 08 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 1F 02 00 35 04 06 00 4F AF 0E 41 90 51 2E D3 58 84 7A 3B 43 D7 [08:54:13]CheckFolder [08:54:13]dirname=/storage/ofd_packets [08:54:13]CheckFolder done [08:54:13]ProducePacketName [08:54:13]name=ofd_packets/00139196 [08:54:13]NVStorageSaveData ofd_packets/00139196 [08:54:13]File name is /storage/ofd_packets/00139196 [08:54:13]Write 301 bytes [08:54:13]NVStorageSaveData done [08:54:13]OFDSenderStorePacket done [08:54:13]KKMCreateOFDPacket done [08:54:13]NVStorageSaveData kkm_last_timestamp [08:54:13]File name is /storage/kkm_last_timestamp [08:54:13]Write 4 bytes [08:54:13]NVStorageSaveData done [08:54:13]ExternCall_PrintAddStr [08:54:13]wPrintStart [08:54:13]Write to MH i2c: 01 00 00 55 0A 5F [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: 01 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: 01 07 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: 01 07 00 55 0A 00 00 00 00 00 FF 0F 74 [08:54:13]RasterBufferAndPrint [08:54:13]line Счет N : (1)593036 [08:54:13]line ИНН: 02508201610067 [08:54:13]line Контрольно-Кассовый Чек [08:54:13]line ПРОДАЖА [08:54:13]line ТРК (МРК, ГНК) : 32 [08:54:13]line Товар: 2710124130 [08:54:13]line Аи-92-К-5 [08:54:13]line 4.430 * 67.80 [08:54:13]line = 300.35 [08:54:13]line НДС 12% НСП 1% [08:54:13]line > о реализуемом товаре [08:54:13]line ОКРУГЛЕНИЕ: -0.35 [08:54:13]line ИТОГО: 300.00 [08:54:13]line Внесено: 300.00 [08:54:13]line СДАЧА: 0.00 [08:54:13]line НСП 1% : 2.66 [08:54:13]line НДС 12% : 31.90 [08:54:13]line Наличными: 300.00 [08:54:13]line Безнал.: 0.00 [08:54:13]line Место: АЗС № 136 "Партнер Нефть" [08:54:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:54:13]line СНО: Общий режим [08:54:13]line Чек 31 19.08.2024 08:54 [08:54:13]line Смена: 452 ФФД: 1.0 [08:54:13]line ЗНМ: 0300000067 [08:54:13]line РНМ: 0000000000092569 [08:54:13]line Версия ККМ: 001 [08:54:13]line ФМ: 0000000000871776 [08:54:13]line ФД: 139196 [08:54:13]line ФПД: 87613277048913 [08:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085414&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139196&fm=87613277048913&tin=02508201610067®Number=0000000000092569&sum=30000 [08:54:14]OFD Sender: Processing packet 139196 [packets to send 137, broken 136] [08:54:14]ProducePacketName [08:54:14]name=ofd_packets/00139196 [08:54:14]OFD Sender: To server: pG, [08:54:14]CommunicateWithHost lk.salyk.kg:30040 [08:54:14]ConnectInit lk.salyk.kg [08:54:14]written 0, free lines is 4095 [08:54:14]Connected sock=9 [08:54:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E3 4B 07 01 E6 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 36 08 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 1F 02 00 35 04 06 00 4F AF 0E 41 90 51 2E D3 58 84 7A 3B 43 D7 [08:54: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 37 36 4F 00 00 00 4D EF 47 00 76 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 1F 02 00 F4 03 04 00 CC AE C2 66 B6 04 01 00 00 B4 7B 1F B3 25 7B 65 0E [08:54:14]CommunicateWithHost err = 0 [08:54:14]CheckOFDResponse [08:54:14]1017 (14) - 77093643461234 [08:54:14]1041 (16) - 0000000000871776 [08:54:14]1040 (4) - 139196 [08:54:14]1012 (4) - 19.08.2024 02:32 [08:54:14]1206 (1) - 0 [08:54:14]OFD Sender: Remove packet 139196 [08:54:14]ProducePacketName [08:54:14]name=ofd_packets/00139196 [08:54:14]NVStorageDeleteData [08:54:14]Write to MH i2c: 01 00 00 80 0A 8A [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: 01 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: 01 07 00 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: 01 07 00 80 0A 00 00 00 00 00 D4 0C 71 [08:54:14]RasterBufferAndPrint [08:54:14]line [08:54:14]line [08:54:14]line [08:54:14]line [08:54:14]line [08:54:14]written 0, free lines is 3293 [08:54:14]MH_Cut [08:54:14]Write to MH i2c: D1 01 00 87 0A 01 63 [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: D1 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: D1 01 00 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: D1 01 00 87 0A 00 62 [08:54:14]Write to MH i2c: 01 00 00 88 0A 92 [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:14]OFD Sender: No OFD packet to send [08:54:15]*** Cut start [08:54:15]*** Partial cut [08:54:15]*** CUTSNS_PIN = 1 [08:54:15]*** CUTSNS_PIN = 0 [08:54:15]*** Brake cut motor [08:54:15]Read from MH i2c: 01 [08:54:15]MH_I2C_Read... [08:54:15]*** Stop cut motor [08:54:15]*** Cut end [08:54:15]Read from MH i2c: 01 07 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: 01 07 00 88 0A 00 00 00 00 00 FF 0F A7 [08:54:15]process_action close_receipt done [08:54:15]requested_data is exist [08:54:15]produce_requested_data [08:54:15]requested_item fm.sn is exist - process it [08:54:15]wFMCommunicate request_size=4 [08:54:15]MH_SAM_APDU [08:54:15]CAPDU: 80 11 00 00 [08:54:15]Write to MH i2c: E2 08 00 89 0A 80 11 00 00 00 00 00 00 0D [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:15]Read from MH i2c: E2 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 17 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 17 00 89 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 64 [08:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:54:15]wFMCommunicate OK [08:54:15]requested_item fd.num is exist - process it [08:54:15]SAM_PROTO_GetFieldsCounters [08:54:15]wFMCommunicate request_size=4 [08:54:15]MH_SAM_APDU [08:54:15]CAPDU: 80 13 00 00 [08:54:15]Write to MH i2c: E2 08 00 8A 0A 80 13 00 00 00 00 00 00 10 [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:16]Read from MH i2c: E2 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 62 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 62 00 8A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [08:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:16]wFMCommunicate OK [08:54:16]SAM_PROTO_GetFieldsCounters done [08:54:16]requested_item shift.num is exist - process it [08:54:16]requested_item shift.opened is exist - process it [08:54:16]req_shift_opened [08:54:16]FM_GetShiftState [08:54:16]SAM_PROTO_GetShiftState [08:54:16]wFMCommunicate request_size=4 [08:54:16]MH_SAM_APDU [08:54:16]CAPDU: 80 13 01 00 [08:54:16]Write to MH i2c: E2 08 00 8B 0A 80 13 01 00 00 00 00 00 12 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:16]Read from MH i2c: E2 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 0E 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: E2 0E 00 8B 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C9 [08:54:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [08:54:16]wFMCommunicate OK [08:54:16]SAM_PROTO_GetShiftState done [08:54:16]FM_GetShiftState done [08:54:16]req_shift_opened done [08:54:16]requested_item shift.open_date is exist - process it [08:54:16]req_shift_open_date [08:54:16]req_shift_open_date done [08:54:16]produce_requested_data done [08:54:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139196,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [08:54:16]process_action_free close_receipt [08:54:16]json_value_free [08:54:16]json_value_free done [08:54:16]process_json_proto returns [08:54:16]Send response to host [08:54:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139196,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [08:54:16]free response buf [08:54:16]execute_script done [08:54:16]execute_script returns [08:54:16]free content buf [08:54:16]Sock 7.Close socket [08:54:16]Sock 7.Thread stoped [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:01]accept exits with 10 [09:01:01]New connection [09:01:01]New thread 3067059556 created [09:01:01]Thread 3067202916 joined [09:01:01]Waiting for new connection... [09:01:01] Sock 10.Parse request [09:01:01]Sock 10.Check first char [09:01:01]Sock 10.First char is OK [09:01:01]request: POST /json_proto HTTP/1.0 [09:01:01]Method: POST [09:01:01]URL: /json_proto [09:01:01]Method is POST - this is cgi request [09:01:01]url: /json_proto [09:01:01]query_string will be loaded in cgi processing [09:01:01]execute_cgi json_proto POST (null) [09:01:01]execute_cgi path=json_proto method=POST [09:01:01]POST find Content-Length [09:01:01]Host: 172.17.45.67:8080 [09:01:01]Content-Length: 659 [09:01:01]Content-Type: application/json [09:01:01] [09:01:01]POST finish read [09:01:01]Found Content-Length = 659 [09:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:01:01]execute_script... [09:01: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)593037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:01:01]POST & json_proto [09:01:01]process_json_proto [09:01:01]json parsed OK: [09:01:01]protocol is kg_v1.0 [09:01:01]action value=close_receipt [09:01:01]process_action close_receipt [09:01:01]cmd_close_receipt [09:01:01]MH_GetDate [09:01:01]Write to MH i2c: F0 00 00 8C 0A 85 [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: F0 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: F0 09 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: F0 09 00 8C 0A 00 CF 09 C3 66 5F 7F 2B 66 FE [09:01:01]GetLastDocTimeStamp 1724057654 [09:01:01]current date 1724058063 [09:01:01]FM_GetShiftState [09:01:01]SAM_PROTO_GetShiftState [09:01:01]wFMCommunicate request_size=4 [09:01:01]MH_SAM_APDU [09:01:01]CAPDU: 80 13 01 00 [09:01:01]Write to MH i2c: E2 08 00 8D 0A 80 13 01 00 00 00 00 00 14 [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:01]Read from MH i2c: E2 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 0E 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 0E 00 8D 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CB [09:01:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:01:01]wFMCommunicate OK [09:01:01]SAM_PROTO_GetShiftState done [09:01:01]FM_GetShiftState done [09:01:01]opened in 1724027888 [09:01:01]opened+sec_in_day 1724114288 [09:01:01]quantity*price = 70038 [09:01:01]sum+1 = 70039 [09:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 32 19.08.2024 09:01 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139197 ФПД: 51257120999353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090103&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139197&fm=51257120999353&tin=02508201610067®Number=0000000000092569&sum=70000 [09:01:02]StoreToDocumentArchive [09:01:02]shift 452 fd 139197 [09:01:02]save to /storage/0452/doc_00139197 [09:01:02]save last doc name /storage/0452/doc_00139197 to /storage/kkm_last_doc_name [09:01:02]save OK [09:01:02]Clear old archive folders... [09:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:01:02]tlvbuf is 01DA67A0 [09:01:02]SAM_PROTO_ClearQueue [09:01:02]wFMCommunicate request_size=4 [09:01:02]MH_SAM_APDU [09:01:02]CAPDU: 80 09 00 00 [09:01:02]Write to MH i2c: E2 08 00 9A 0A 80 09 00 00 00 00 00 00 16 [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:02]Read from MH i2c: E2 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 03 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [09:01:02]RAPDU: 90 00 [09:01:02]wFMCommunicate OK [09:01:02]SAM_PROTO_ClearQueue done [09:01:02]KKMCreateOFDPacket [09:01:02]OFDProtocolAddRootSTLVToBuf [09:01:02]FM_MakeSignedData [09:01:02]FM_MakeSignedData [09:01:02]SAM_PROTO_SignData [09:01:02]wFMCommunicate request_size=4 [09:01:02]MH_SAM_APDU [09:01:02]CAPDU: 80 0D 01 02 [09:01:02]Write to MH i2c: E2 08 00 9B 0A 80 0D 01 02 00 00 00 00 1E [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:02]Read from MH i2c: E2 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 03 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 03 00 9B 0A 00 90 00 19 [09:01:02]RAPDU: 90 00 [09:01:02]wFMCommunicate OK [09:01:02]wFMCommunicate request_size=253 [09:01:02]MH_SAM_APDU [09:01:02]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 CF 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 1F 02 00 35 04 06 00 2E 9E 3A 7D 47 B9 [09:01:02]Write to MH i2c: E2 00 01 9C 0A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 CF 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 1F 02 00 35 04 06 00 2E 9E 3A 7D 47 B9 00 00 51 [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:02]Read from MH i2c: E2 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 03 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 03 00 9C 0A 00 90 00 1A [09:01:02]RAPDU: 90 00 [09:01:02]wFMCommunicate OK [09:01:02]wFMCommunicate request_size=4 [09:01:02]MH_SAM_APDU [09:01:02]CAPDU: 80 0D 03 02 [09:01:02]Write to MH i2c: E2 08 00 9D 0A 80 0D 03 02 00 00 00 00 22 [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:02]Read from MH i2c: E2 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 0B 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 0B 00 9D 0A 00 EB 65 64 F2 EA 4F 76 D3 90 00 4B [09:01:02]RAPDU: EB 65 64 F2 EA 4F 76 D3 90 00 [09:01:02]wFMCommunicate OK [09:01:02]SAM_PROTO_SignData done [09:01:02]FM_MakeSignedData done [09:01:02]CreateOFDProtocolMessage [09:01:02]wFMCommunicate request_size=4 [09:01:02]MH_SAM_APDU [09:01:02]CAPDU: 80 11 00 00 [09:01:02]Write to MH i2c: E2 08 00 9E 0A 80 11 00 00 00 00 00 00 22 [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:02]Read from MH i2c: E2 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 17 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 17 00 9E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [09:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:01:02]wFMCommunicate OK [09:01:02]CreateOFDProtocolMessage done [09:01:02]OFDSenderStorePacket 139197 [09:01:02]StoreOFDPacket docnum=139197 [09:01:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 DA E9 00 01 A8 43 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 CF 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 1F 02 00 35 04 06 00 2E 9E 3A 7D 47 B9 EB 65 64 F2 EA 4F 76 D3 [09:01:02]CheckFolder [09:01:02]dirname=/storage/ofd_packets [09:01:02]CheckFolder done [09:01:02]ProducePacketName [09:01:02]name=ofd_packets/00139197 [09:01:02]NVStorageSaveData ofd_packets/00139197 [09:01:02]File name is /storage/ofd_packets/00139197 [09:01:02]Write 294 bytes [09:01:02]NVStorageSaveData done [09:01:02]OFDSenderStorePacket done [09:01:02]KKMCreateOFDPacket done [09:01:02]NVStorageSaveData kkm_last_timestamp [09:01:02]File name is /storage/kkm_last_timestamp [09:01:02]Write 4 bytes [09:01:02]NVStorageSaveData done [09:01:02]ExternCall_PrintAddStr [09:01:02]wPrintStart [09:01:02]Write to MH i2c: 01 00 00 9F 0A A9 [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: 01 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: 01 07 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: 01 07 00 9F 0A 00 00 00 00 00 FF 0F BE [09:01:02]RasterBufferAndPrint [09:01:02]line Счет N : (1)593037 [09:01:02]line ИНН: 02508201610067 [09:01:02]line Контрольно-Кассовый Чек [09:01:02]line ПРОДАЖА [09:01:02]line ТРК (МРК, ГНК) : 53 [09:01:02]line Товар: 2710124130 [09:01:02]line SU-92 [09:01:02]line 10.180 * 68.80 [09:01:02]line = 700.38 [09:01:02]line НДС 12% НСП 1% [09:01:02]line > о реализуемом товаре [09:01:02]line ОКРУГЛЕНИЕ: -0.38 [09:01:02]line ИТОГО: 700.00 [09:01:02]line Внесено: 700.00 [09:01:02]line СДАЧА: 0.00 [09:01:02]line НСП 1% : 6.20 [09:01:02]line НДС 12% : 74.38 [09:01:02]line Наличными: 700.00 [09:01:02]line Безнал.: 0.00 [09:01:02]line Место: АЗС № 136 "Партнер Нефть" [09:01:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:01:02]line СНО: Общий режим [09:01:02]line Чек 32 19.08.2024 09:01 [09:01:02]line Смена: 452 ФФД: 1.0 [09:01:02]line ЗНМ: 0300000067 [09:01:02]line РНМ: 0000000000092569 [09:01:02]line Версия ККМ: 001 [09:01:02]line ФМ: 0000000000871776 [09:01:02]line ФД: 139197 [09:01:02]line ФПД: 51257120999353 [09:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090103&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139197&fm=51257120999353&tin=02508201610067®Number=0000000000092569&sum=70000 [09:01:03]OFD Sender: Processing packet 139197 [packets to send 137, broken 136] [09:01:03]ProducePacketName [09:01:03]name=ofd_packets/00139197 [09:01:03]OFD Sender: To server: pG, [09:01:03]CommunicateWithHost lk.salyk.kg:30040 [09:01:03]ConnectInit lk.salyk.kg [09:01:03]written 0, free lines is 4095 [09:01:03]Connected sock=9 [09:01: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 37 36 08 01 00 00 DA E9 00 01 A8 43 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 CF 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 1F 02 00 35 04 06 00 2E 9E 3A 7D 47 B9 EB 65 64 F2 EA 4F 76 D3 [09:01: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 37 36 4F 00 00 00 AC E6 47 00 C0 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 1F 02 00 F4 03 04 00 65 B0 C2 66 B6 04 01 00 00 BE F9 6A B0 81 4B 32 47 [09:01:03]CommunicateWithHost err = 0 [09:01:03]CheckOFDResponse [09:01:03]1017 (14) - 77093643461234 [09:01:03]1041 (16) - 0000000000871776 [09:01:03]1040 (4) - 139197 [09:01:03]1012 (4) - 19.08.2024 02:39 [09:01:03]1206 (1) - 0 [09:01:03]OFD Sender: Remove packet 139197 [09:01:03]ProducePacketName [09:01:03]name=ofd_packets/00139197 [09:01:03]NVStorageDeleteData [09:01:03]Write to MH i2c: 01 00 00 CA 0A D4 [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: 01 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: 01 07 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: 01 07 00 CA 0A 00 00 00 00 00 CF 0C B6 [09:01:03]RasterBufferAndPrint [09:01:03]line [09:01:03]line [09:01:03]line [09:01:03]line [09:01:03]line [09:01:03]written 0, free lines is 3286 [09:01:03]MH_Cut [09:01:03]Write to MH i2c: D1 01 00 D1 0A 01 AD [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: D1 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: D1 01 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: D1 01 00 D1 0A 00 AC [09:01:03]Write to MH i2c: 01 00 00 D2 0A DC [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:04]OFD Sender: No OFD packet to send [09:01:04]*** Cut start [09:01:04]*** Partial cut [09:01:04]*** CUTSNS_PIN = 1 [09:01:04]*** CUTSNS_PIN = 0 [09:01:04]*** Brake cut motor [09:01:05]Read from MH i2c: 01 [09:01:05]MH_I2C_Read... [09:01:05]*** Stop cut motor [09:01:05]*** Cut end [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 D2 0A 00 00 00 00 00 FF 0F F1 [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 D3 0A 80 11 00 00 00 00 00 00 57 [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 D3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [09:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 D4 0A 80 13 00 00 00 00 00 00 5A [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 D4 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 D5 0A 80 13 01 00 00 00 00 00 5C [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 D5 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 13 [09:01:05]RAPDU: 09 00 01 F0 93 C2 66 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":"0000000000871776","fd.num":139197,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [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":"0000000000871776","fd.num":139197,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [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 10.Close socket [09:01:05]Sock 10.Thread stoped [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:30]accept exits with 7 [09:01:30]New connection [09:01:30]New thread 3067202916 created [09:01:30]Thread 3067059556 joined [09:01:30]Waiting for new connection... [09:01:30] Sock 7.Parse request [09:01:30]Sock 7.Check first char [09:01:30]Sock 7.First char is OK [09:01:30]request: POST /json_proto HTTP/1.0 [09:01:30]Method: POST [09:01:30]URL: /json_proto [09:01:30]Method is POST - this is cgi request [09:01:30]url: /json_proto [09:01:30]query_string will be loaded in cgi processing [09:01:30]execute_cgi json_proto POST (null) [09:01:30]execute_cgi path=json_proto method=POST [09:01:30]POST find Content-Length [09:01:30]Host: 172.17.45.67:8080 [09:01:30]Content-Length: 677 [09:01:30]Content-Type: application/json [09:01:30] [09:01:30]POST finish read [09:01:30]Found Content-Length = 677 [09:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:01:30]execute_script... [09:01: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)593038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:01:30]POST & json_proto [09:01:30]process_json_proto [09:01:30]json parsed OK: [09:01:30]protocol is kg_v1.0 [09:01:30]action value=close_receipt [09:01:30]process_action close_receipt [09:01:30]cmd_close_receipt [09:01:30]MH_GetDate [09:01:30]Write to MH i2c: F0 00 00 D6 0A CF [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: F0 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: F0 09 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: F0 09 00 D6 0A 00 EC 09 C3 66 5F 7F 2B 66 65 [09:01:30]GetLastDocTimeStamp 1724058063 [09:01:30]current date 1724058092 [09:01:30]FM_GetShiftState [09:01:30]SAM_PROTO_GetShiftState [09:01:30]wFMCommunicate request_size=4 [09:01:30]MH_SAM_APDU [09:01:30]CAPDU: 80 13 01 00 [09:01:30]Write to MH i2c: E2 08 00 D7 0A 80 13 01 00 00 00 00 00 5E [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:30]Read from MH i2c: E2 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 0E 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 0E 00 D7 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 15 [09:01:30]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:01:30]wFMCommunicate OK [09:01:30]SAM_PROTO_GetShiftState done [09:01:30]FM_GetShiftState done [09:01:30]opened in 1724027888 [09:01:30]opened+sec_in_day 1724114288 [09:01:30]quantity*price = 50036 [09:01:30]sum+1 = 50037 [09:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 33 19.08.2024 09:01 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139198 ФПД: 124480651685768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090132&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139198&fm=124480651685768&tin=02508201610067®Number=0000000000092569&sum=50000 [09:01:31]StoreToDocumentArchive [09:01:31]shift 452 fd 139198 [09:01:31]save to /storage/0452/doc_00139198 [09:01:31]save last doc name /storage/0452/doc_00139198 to /storage/kkm_last_doc_name [09:01:31]save OK [09:01:31]Clear old archive folders... [09:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:31]tlvbuf is 01D6E1D0 [09:01:31]SAM_PROTO_ClearQueue [09:01:31]wFMCommunicate request_size=4 [09:01:31]MH_SAM_APDU [09:01:31]CAPDU: 80 09 00 00 [09:01:31]Write to MH i2c: E2 08 00 E4 0A 80 09 00 00 00 00 00 00 60 [09:01:31]Write i2c OK [09:01:31]MH_I2C_Read... [09:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:31]Read from MH i2c: E2 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 03 00 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 03 00 E4 0A 00 90 00 62 [09:01:31]RAPDU: 90 00 [09:01:31]wFMCommunicate OK [09:01:31]SAM_PROTO_ClearQueue done [09:01:31]KKMCreateOFDPacket [09:01:31]OFDProtocolAddRootSTLVToBuf [09:01:31]FM_MakeSignedData [09:01:31]FM_MakeSignedData [09:01:31]SAM_PROTO_SignData [09:01:31]wFMCommunicate request_size=4 [09:01:31]MH_SAM_APDU [09:01:31]CAPDU: 80 0D 01 02 [09:01:31]Write to MH i2c: E2 08 00 E5 0A 80 0D 01 02 00 00 00 00 68 [09:01:31]Write i2c OK [09:01:31]MH_I2C_Read... [09:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:31]Read from MH i2c: E2 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 03 00 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 03 00 E5 0A 00 90 00 63 [09:01:31]RAPDU: 90 00 [09:01:31]wFMCommunicate OK [09:01:31]wFMCommunicate request_size=255 [09:01:31]MH_SAM_APDU [09:01: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 21 00 00 00 F4 03 04 00 EC 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 1F 02 00 35 04 06 00 71 [09:01:31]Write to MH i2c: E2 02 01 E6 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 21 00 00 00 F4 03 04 00 EC 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 1F 02 00 35 04 06 00 71 00 00 45 [09:01:31]Write i2c OK [09:01:31]MH_I2C_Read... [09:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:32]Read from MH i2c: E2 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 03 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 03 00 E6 0A 00 90 00 64 [09:01:32]RAPDU: 90 00 [09:01:32]wFMCommunicate OK [09:01:32]wFMCommunicate request_size=10 [09:01:32]MH_SAM_APDU [09:01:32]CAPDU: 80 0D 02 02 05 36 E9 06 6F 88 [09:01:32]Write to MH i2c: E2 0D 00 E7 0A 80 0D 02 02 05 00 36 E9 06 6F 88 00 00 91 [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:32]Read from MH i2c: E2 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 03 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [09:01:32]RAPDU: 90 00 [09:01:32]wFMCommunicate OK [09:01:32]wFMCommunicate request_size=4 [09:01:32]MH_SAM_APDU [09:01:32]CAPDU: 80 0D 03 02 [09:01:32]Write to MH i2c: E2 08 00 E8 0A 80 0D 03 02 00 00 00 00 6D [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:32]Read from MH i2c: E2 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 0B 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 0B 00 E8 0A 00 70 77 3B 29 02 8C 53 7C 90 00 16 [09:01:32]RAPDU: 70 77 3B 29 02 8C 53 7C 90 00 [09:01:32]wFMCommunicate OK [09:01:32]SAM_PROTO_SignData done [09:01:32]FM_MakeSignedData done [09:01:32]CreateOFDProtocolMessage [09:01:32]wFMCommunicate request_size=4 [09:01:32]MH_SAM_APDU [09:01:32]CAPDU: 80 11 00 00 [09:01:32]Write to MH i2c: E2 08 00 E9 0A 80 11 00 00 00 00 00 00 6D [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:32]Read from MH i2c: E2 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 17 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 17 00 E9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [09:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:01:32]wFMCommunicate OK [09:01:32]CreateOFDProtocolMessage done [09:01:32]OFDSenderStorePacket 139198 [09:01:32]StoreOFDPacket docnum=139198 [09:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C5 32 07 01 0A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 21 00 00 00 F4 03 04 00 EC 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 1F 02 00 35 04 06 00 71 36 E9 06 6F 88 70 77 3B 29 02 8C 53 7C [09:01:32]CheckFolder [09:01:32]dirname=/storage/ofd_packets [09:01:32]CheckFolder done [09:01:32]ProducePacketName [09:01:32]name=ofd_packets/00139198 [09:01:32]NVStorageSaveData ofd_packets/00139198 [09:01:32]File name is /storage/ofd_packets/00139198 [09:01:32]Write 301 bytes [09:01:32]NVStorageSaveData done [09:01:32]OFDSenderStorePacket done [09:01:32]KKMCreateOFDPacket done [09:01:32]NVStorageSaveData kkm_last_timestamp [09:01:32]File name is /storage/kkm_last_timestamp [09:01:32]Write 4 bytes [09:01:32]NVStorageSaveData done [09:01:32]ExternCall_PrintAddStr [09:01:32]wPrintStart [09:01:32]Write to MH i2c: 01 00 00 EA 0A F4 [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: 01 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: 01 07 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: 01 07 00 EA 0A 00 00 00 00 00 FF 0F 09 [09:01:32]RasterBufferAndPrint [09:01:32]line Счет N : (1)593038 [09:01:32]line ИНН: 02508201610067 [09:01:32]line Контрольно-Кассовый Чек [09:01:32]line ПРОДАЖА [09:01:32]line ТРК (МРК, ГНК) : 32 [09:01:32]line Товар: 2710124130 [09:01:32]line Аи-92-К-5 [09:01:32]line 7.380 * 67.80 [09:01:32]line = 500.36 [09:01:32]line НДС 12% НСП 1% [09:01:32]line > о реализуемом товаре [09:01:32]line ОКРУГЛЕНИЕ: -0.36 [09:01:32]line ИТОГО: 500.00 [09:01:32]line Внесено: 500.00 [09:01:32]line СДАЧА: 0.00 [09:01:32]line НСП 1% : 4.43 [09:01:32]line НДС 12% : 53.14 [09:01:32]line Наличными: 500.00 [09:01:32]line Безнал.: 0.00 [09:01:32]line Место: АЗС № 136 "Партнер Нефть" [09:01:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:01:32]line СНО: Общий режим [09:01:32]line Чек 33 19.08.2024 09:01 [09:01:32]line Смена: 452 ФФД: 1.0 [09:01:32]line ЗНМ: 0300000067 [09:01:32]line РНМ: 0000000000092569 [09:01:32]line Версия ККМ: 001 [09:01:32]line ФМ: 0000000000871776 [09:01:32]line ФД: 139198 [09:01:32]line ФПД: 124480651685768 [09:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090132&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139198&fm=124480651685768&tin=02508201610067®Number=0000000000092569&sum=50000 [09:01:32]OFD Sender: Processing packet 139198 [packets to send 137, broken 136] [09:01:32]ProducePacketName [09:01:32]name=ofd_packets/00139198 [09:01:32]OFD Sender: To server: pG, [09:01:32]CommunicateWithHost lk.salyk.kg:30040 [09:01:32]ConnectInit lk.salyk.kg [09:01:32]written 0, free lines is 4095 [09:01:32]Connected sock=10 [09:01: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 37 36 0F 01 00 00 C5 32 07 01 0A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 21 00 00 00 F4 03 04 00 EC 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 1F 02 00 35 04 06 00 71 36 E9 06 6F 88 70 77 3B 29 02 8C 53 7C [09:01: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 37 36 4F 00 00 00 C6 31 47 00 8B 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 37 36 10 04 04 00 BE 1F 02 00 F4 03 04 00 82 B0 C2 66 B6 04 01 00 00 58 C1 E5 37 BE F2 4A 7F [09:01:32]CommunicateWithHost err = 0 [09:01:32]CheckOFDResponse [09:01:32]1017 (14) - 77093643461234 [09:01:32]1041 (16) - 0000000000871776 [09:01:32]1040 (4) - 139198 [09:01:32]1012 (4) - 19.08.2024 02:40 [09:01:32]1206 (1) - 0 [09:01:32]OFD Sender: Remove packet 139198 [09:01:32]ProducePacketName [09:01:32]name=ofd_packets/00139198 [09:01:32]NVStorageDeleteData [09:01:32]Write to MH i2c: 01 00 00 15 0B 20 [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: 01 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: 01 07 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: 01 07 00 15 0B 00 00 00 00 00 D1 0C 04 [09:01:32]RasterBufferAndPrint [09:01:32]line [09:01:32]line [09:01:32]line [09:01:32]line [09:01:32]line [09:01:32]written 0, free lines is 3290 [09:01:33]MH_Cut [09:01:33]Write to MH i2c: D1 01 00 1C 0B 01 F9 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: D1 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: D1 01 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: D1 01 00 1C 0B 00 F8 [09:01:33]Write to MH i2c: 01 00 00 1D 0B 28 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]OFD Sender: No OFD packet to send [09:01:33]*** Cut start [09:01:33]*** Partial cut [09:01:33]*** CUTSNS_PIN = 1 [09:01:33]*** CUTSNS_PIN = 0 [09:01:33]*** Brake cut motor [09:01:34]Read from MH i2c: 01 [09:01:34]MH_I2C_Read... [09:01:34]*** Stop cut motor [09:01:34]*** Cut end [09:01:34]Read from MH i2c: 01 07 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: 01 07 00 1D 0B 00 00 00 00 00 FF 0F 3D [09:01:34]process_action close_receipt done [09:01:34]requested_data is exist [09:01:34]produce_requested_data [09:01:34]requested_item fm.sn is exist - process it [09:01:34]wFMCommunicate request_size=4 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 11 00 00 [09:01:34]Write to MH i2c: E2 08 00 1E 0B 80 11 00 00 00 00 00 00 A3 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:34]Read from MH i2c: E2 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 17 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 17 00 1E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [09:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:01:34]wFMCommunicate OK [09:01:34]requested_item fd.num is exist - process it [09:01:34]SAM_PROTO_GetFieldsCounters [09:01:34]wFMCommunicate request_size=4 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 13 00 00 [09:01:34]Write to MH i2c: E2 08 00 1F 0B 80 13 00 00 00 00 00 00 A6 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:34]Read from MH i2c: E2 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 62 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 62 00 1F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [09:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:34]wFMCommunicate OK [09:01:34]SAM_PROTO_GetFieldsCounters done [09:01:34]requested_item shift.num is exist - process it [09:01:34]requested_item shift.opened is exist - process it [09:01:34]req_shift_opened [09:01:34]FM_GetShiftState [09:01:34]SAM_PROTO_GetShiftState [09:01:34]wFMCommunicate request_size=4 [09:01:34]MH_SAM_APDU [09:01:34]CAPDU: 80 13 01 00 [09:01:34]Write to MH i2c: E2 08 00 20 0B 80 13 01 00 00 00 00 00 A8 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:34]Read from MH i2c: E2 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 0E 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: E2 0E 00 20 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5F [09:01:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:01:34]wFMCommunicate OK [09:01:34]SAM_PROTO_GetShiftState done [09:01:34]FM_GetShiftState done [09:01:34]req_shift_opened done [09:01:34]requested_item shift.open_date is exist - process it [09:01:34]req_shift_open_date [09:01:34]req_shift_open_date done [09:01:34]produce_requested_data done [09:01:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139198,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:01:34]process_action_free close_receipt [09:01:34]json_value_free [09:01:34]json_value_free done [09:01:34]process_json_proto returns [09:01:34]Send response to host [09:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139198,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:01:34]free response buf [09:01:34]execute_script done [09:01:34]execute_script returns [09:01:34]free content buf [09:01:34]Sock 7.Close socket [09:01:34]Sock 7.Thread stoped [09:01:38]OFD Sender: No OFD packet to send [09:01:38]accept exits with 9 [09:01:38]New connection [09:01:38]New thread 3067059556 created [09:01:38]Thread 3067202916 joined [09:01:38]Waiting for new connection... [09:01:38] Sock 9.Parse request [09:01:38]Sock 9.Check first char [09:01:38]Sock 9.First char is OK [09:01:38]request: POST /json_proto HTTP/1.0 [09:01:38]Method: POST [09:01:38]URL: /json_proto [09:01:38]Method is POST - this is cgi request [09:01:38]url: /json_proto [09:01:38]query_string will be loaded in cgi processing [09:01:38]execute_cgi json_proto POST (null) [09:01:38]execute_cgi path=json_proto method=POST [09:01:38]POST find Content-Length [09:01:38]Host: 172.17.45.67:8080 [09:01:38]Content-Length: 677 [09:01:38]Content-Type: application/json [09:01:38] [09:01:38]POST finish read [09:01:38]Found Content-Length = 677 [09:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:01:38]execute_script... [09: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)593040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:01:38]POST & json_proto [09:01:38]process_json_proto [09:01:38]json parsed OK: [09:01:38]protocol is kg_v1.0 [09:01:38]action value=close_receipt [09:01:38]process_action close_receipt [09:01:38]cmd_close_receipt [09:01:38]MH_GetDate [09:01:38]Write to MH i2c: F0 00 00 21 0B 1B [09:01:38]Write i2c OK [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: F0 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: F0 09 00 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: F0 09 00 21 0B 00 F4 09 C3 66 5F 7F 2B 66 B9 [09:01:38]GetLastDocTimeStamp 1724058092 [09:01:38]current date 1724058100 [09:01:38]FM_GetShiftState [09:01:38]SAM_PROTO_GetShiftState [09:01:38]wFMCommunicate request_size=4 [09:01:38]MH_SAM_APDU [09:01:38]CAPDU: 80 13 01 00 [09:01:38]Write to MH i2c: E2 08 00 22 0B 80 13 01 00 00 00 00 00 AA [09:01:38]Write i2c OK [09:01:38]MH_I2C_Read... [09:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:38]Read from MH i2c: E2 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 0E 00 [09:01:38]MH_I2C_Read... [09:01:38]Read from MH i2c: E2 0E 00 22 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 61 [09:01:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:01:38]wFMCommunicate OK [09:01:38]SAM_PROTO_GetShiftState done [09:01:38]FM_GetShiftState done [09:01:38]opened in 1724027888 [09:01:38]opened+sec_in_day 1724114288 [09:01:38]quantity*price = 50036 [09:01:38]sum+1 = 50037 [09:01:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 34 19.08.2024 09:01 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139199 ФПД: 2495245085009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090140&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139199&fm=2495245085009&tin=02508201610067®Number=0000000000092569&sum=50000 [09:01:39]StoreToDocumentArchive [09:01:39]shift 452 fd 139199 [09:01:39]save to /storage/0452/doc_00139199 [09:01:39]save last doc name /storage/0452/doc_00139199 to /storage/kkm_last_doc_name [09:01:39]save OK [09:01:39]Clear old archive folders... [09:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:39]tlvbuf is 01DA1140 [09:01:39]SAM_PROTO_ClearQueue [09:01:39]wFMCommunicate request_size=4 [09:01:39]MH_SAM_APDU [09:01:39]CAPDU: 80 09 00 00 [09:01:39]Write to MH i2c: E2 08 00 2F 0B 80 09 00 00 00 00 00 00 AC [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:39]Read from MH i2c: E2 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 2F 0B 00 90 00 AE [09:01:39]RAPDU: 90 00 [09:01:39]wFMCommunicate OK [09:01:39]SAM_PROTO_ClearQueue done [09:01:39]KKMCreateOFDPacket [09:01:39]OFDProtocolAddRootSTLVToBuf [09:01:39]FM_MakeSignedData [09:01:39]FM_MakeSignedData [09:01:39]SAM_PROTO_SignData [09:01:39]wFMCommunicate request_size=4 [09:01:39]MH_SAM_APDU [09:01:39]CAPDU: 80 0D 01 02 [09:01:39]Write to MH i2c: E2 08 00 30 0B 80 0D 01 02 00 00 00 00 B4 [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:39]Read from MH i2c: E2 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 [09:01:39]MH_I2C_Read... [09:01:39]Read from MH i2c: E2 03 00 30 0B 00 90 00 AF [09:01:39]RAPDU: 90 00 [09:01:39]wFMCommunicate OK [09:01:39]wFMCommunicate request_size=255 [09:01:39]MH_SAM_APDU [09: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 22 00 00 00 F4 03 04 00 F4 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 1F 02 00 35 04 06 00 02 [09:01:39]Write to MH i2c: E2 02 01 31 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 22 00 00 00 F4 03 04 00 F4 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 1F 02 00 35 04 06 00 02 00 00 2C [09:01:39]Write i2c OK [09:01:39]MH_I2C_Read... [09:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:40]Read from MH i2c: E2 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 03 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [09:01:40]RAPDU: 90 00 [09:01:40]wFMCommunicate OK [09:01:40]wFMCommunicate request_size=10 [09:01:40]MH_SAM_APDU [09:01:40]CAPDU: 80 0D 02 02 05 44 F8 32 69 51 [09:01:40]Write to MH i2c: E2 0D 00 32 0B 80 0D 02 02 05 00 44 F8 32 69 51 00 00 E9 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:40]Read from MH i2c: E2 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 03 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [09:01:40]RAPDU: 90 00 [09:01:40]wFMCommunicate OK [09:01:40]wFMCommunicate request_size=4 [09:01:40]MH_SAM_APDU [09:01:40]CAPDU: 80 0D 03 02 [09:01:40]Write to MH i2c: E2 08 00 33 0B 80 0D 03 02 00 00 00 00 B9 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:40]Read from MH i2c: E2 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 0B 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 0B 00 33 0B 00 B1 69 27 ED BA 94 9D 97 90 00 6A [09:01:40]RAPDU: B1 69 27 ED BA 94 9D 97 90 00 [09:01:40]wFMCommunicate OK [09:01:40]SAM_PROTO_SignData done [09:01:40]FM_MakeSignedData done [09:01:40]CreateOFDProtocolMessage [09:01:40]wFMCommunicate request_size=4 [09:01:40]MH_SAM_APDU [09:01:40]CAPDU: 80 11 00 00 [09:01:40]Write to MH i2c: E2 08 00 34 0B 80 11 00 00 00 00 00 00 B9 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 [09:01:40]MH_I2C_Read... [09:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:40]Read from MH i2c: E2 17 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: E2 17 00 34 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [09:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:01:40]wFMCommunicate OK [09:01:40]CreateOFDProtocolMessage done [09:01:40]OFDSenderStorePacket 139199 [09:01:40]StoreOFDPacket docnum=139199 [09:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 46 C9 07 01 56 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 22 00 00 00 F4 03 04 00 F4 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 1F 02 00 35 04 06 00 02 44 F8 32 69 51 B1 69 27 ED BA 94 9D 97 [09:01:40]CheckFolder [09:01:40]dirname=/storage/ofd_packets [09:01:40]CheckFolder done [09:01:40]ProducePacketName [09:01:40]name=ofd_packets/00139199 [09:01:40]NVStorageSaveData ofd_packets/00139199 [09:01:40]File name is /storage/ofd_packets/00139199 [09:01:40]Write 301 bytes [09:01:40]NVStorageSaveData done [09:01:40]OFDSenderStorePacket done [09:01:40]KKMCreateOFDPacket done [09:01:40]NVStorageSaveData kkm_last_timestamp [09:01:40]File name is /storage/kkm_last_timestamp [09:01:40]Write 4 bytes [09:01:40]NVStorageSaveData done [09:01:40]ExternCall_PrintAddStr [09:01:40]wPrintStart [09:01:40]Write to MH i2c: 01 00 00 35 0B 40 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 07 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 07 00 35 0B 00 00 00 00 00 FF 0F 55 [09:01:40]RasterBufferAndPrint [09:01:40]line Счет N : (1)593040 [09:01:40]line ИНН: 02508201610067 [09:01:40]line Контрольно-Кассовый Чек [09:01:40]line ПРОДАЖА [09:01:40]line ТРК (МРК, ГНК) : 42 [09:01:40]line Товар: 2710124130 [09:01:40]line Аи-92-К-5 [09:01:40]line 7.380 * 67.80 [09:01:40]line = 500.36 [09:01:40]line НДС 12% НСП 1% [09:01:40]line > о реализуемом товаре [09:01:40]line ОКРУГЛЕНИЕ: -0.36 [09:01:40]line ИТОГО: 500.00 [09:01:40]line Внесено: 500.00 [09:01:40]line СДАЧА: 0.00 [09:01:40]line НСП 1% : 4.43 [09:01:40]line НДС 12% : 53.14 [09:01:40]line Наличными: 500.00 [09:01:40]line Безнал.: 0.00 [09:01:40]line Место: АЗС № 136 "Партнер Нефть" [09:01:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:01:40]line СНО: Общий режим [09:01:40]line Чек 34 19.08.2024 09:01 [09:01:40]line Смена: 452 ФФД: 1.0 [09:01:40]line ЗНМ: 0300000067 [09:01:40]line РНМ: 0000000000092569 [09:01:40]line Версия ККМ: 001 [09:01:40]line ФМ: 0000000000871776 [09:01:40]line ФД: 139199 [09:01:40]line ФПД: 2495245085009 [09:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090140&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139199&fm=2495245085009&tin=02508201610067®Number=0000000000092569&sum=50000 [09:01:40]written 0, free lines is 4095 [09:01:40]OFD Sender: Processing packet 139199 [packets to send 137, broken 136] [09:01:40]ProducePacketName [09:01:40]name=ofd_packets/00139199 [09:01:40]OFD Sender: To server: pG, [09:01:40]CommunicateWithHost lk.salyk.kg:30040 [09:01:40]ConnectInit lk.salyk.kg [09:01:40]Connected sock=10 [09: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 37 36 0F 01 00 00 46 C9 07 01 56 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 22 00 00 00 F4 03 04 00 F4 09 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 1F 02 00 35 04 06 00 02 44 F8 32 69 51 B1 69 27 ED BA 94 9D 97 [09:01:40]Write to MH i2c: 01 00 00 60 0B 6B [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 07 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: 01 07 00 60 0B 00 00 00 00 00 D1 0C 4F [09:01:40]RasterBufferAndPrint [09:01:40]line [09:01:40]line [09:01:40]line [09:01:40]line [09:01:40]line [09:01:40]written 0, free lines is 3296 [09: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 37 36 4F 00 00 00 32 A9 47 00 14 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 37 36 10 04 04 00 BF 1F 02 00 F4 03 04 00 8A B0 C2 66 B6 04 01 00 00 9B B8 BF B9 BD 5D E3 DE [09:01:40]CommunicateWithHost err = 0 [09:01:40]CheckOFDResponse [09:01:40]1017 (14) - 77093643461234 [09:01:40]1041 (16) - 0000000000871776 [09:01:40]1040 (4) - 139199 [09:01:40]1012 (4) - 19.08.2024 02:40 [09:01:40]1206 (1) - 0 [09:01:40]OFD Sender: Remove packet 139199 [09:01:40]ProducePacketName [09:01:40]name=ofd_packets/00139199 [09:01:40]NVStorageDeleteData [09:01:40]MH_Cut [09:01:40]Write to MH i2c: D1 01 00 67 0B 01 44 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: D1 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: D1 01 00 [09:01:40]MH_I2C_Read... [09:01:40]Read from MH i2c: D1 01 00 67 0B 00 43 [09:01:40]Write to MH i2c: 01 00 00 68 0B 73 [09:01:40]Write i2c OK [09:01:40]MH_I2C_Read... [09:01:41]OFD Sender: No OFD packet to send [09:01:41]*** Cut start [09:01:41]*** Partial cut [09:01:41]*** CUTSNS_PIN = 1 [09:01:41]*** CUTSNS_PIN = 0 [09:01:41]*** Brake cut motor [09:01:41]Read from MH i2c: 01 [09:01:42]MH_I2C_Read... [09:01:42]*** Stop cut motor [09:01:42]*** Cut end [09:01:42]Read from MH i2c: 01 07 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: 01 07 00 68 0B 00 00 00 00 00 FF 0F 88 [09:01:42]process_action close_receipt done [09:01:42]requested_data is exist [09:01:42]produce_requested_data [09:01:42]requested_item fm.sn is exist - process it [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 11 00 00 [09:01:42]Write to MH i2c: E2 08 00 69 0B 80 11 00 00 00 00 00 00 EE [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:42]Read from MH i2c: E2 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 17 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 17 00 69 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [09:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:01:42]wFMCommunicate OK [09:01:42]requested_item fd.num is exist - process it [09:01:42]SAM_PROTO_GetFieldsCounters [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 13 00 00 [09:01:42]Write to MH i2c: E2 08 00 6A 0B 80 13 00 00 00 00 00 00 F1 [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:42]Read from MH i2c: E2 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 62 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 62 00 6A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:42]wFMCommunicate OK [09:01:42]SAM_PROTO_GetFieldsCounters done [09:01:42]requested_item shift.num is exist - process it [09:01:42]requested_item shift.opened is exist - process it [09:01:42]req_shift_opened [09:01:42]FM_GetShiftState [09:01:42]SAM_PROTO_GetShiftState [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 13 01 00 [09:01:42]Write to MH i2c: E2 08 00 6B 0B 80 13 01 00 00 00 00 00 F3 [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:42]Read from MH i2c: E2 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 0E 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 0E 00 6B 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AA [09:01:42]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:01:42]wFMCommunicate OK [09:01:42]SAM_PROTO_GetShiftState done [09:01:42]FM_GetShiftState done [09:01:42]req_shift_opened done [09:01:42]requested_item shift.open_date is exist - process it [09:01:42]req_shift_open_date [09:01:42]req_shift_open_date done [09:01:42]produce_requested_data done [09:01:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139199,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:01:42]process_action_free close_receipt [09:01:42]json_value_free [09:01:42]json_value_free done [09:01:42]process_json_proto returns [09:01:42]Send response to host [09:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139199,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:01:42]free response buf [09:01:42]execute_script done [09:01:42]execute_script returns [09:01:42]free content buf [09:01:42]Sock 9.Close socket [09:01:42]Sock 9.Thread stoped [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:05]accept exits with 7 [09:02:05]New connection [09:02:05]New thread 3067202916 created [09:02:05]Thread 3067059556 joined [09:02:05]Waiting for new connection... [09:02:05] Sock 7.Parse request [09:02:05]Sock 7.Check first char [09:02:05]Sock 7.First char is OK [09:02:05]request: POST /json_proto HTTP/1.0 [09:02:05]Method: POST [09:02:05]URL: /json_proto [09:02:05]Method is POST - this is cgi request [09:02:05]url: /json_proto [09:02:05]query_string will be loaded in cgi processing [09:02:05]execute_cgi json_proto POST (null) [09:02:05]execute_cgi path=json_proto method=POST [09:02:05]POST find Content-Length [09:02:05]Host: 172.17.45.67:8080 [09:02:05]Content-Length: 659 [09:02:05]Content-Type: application/json [09:02:05] [09:02:05]POST finish read [09:02:05]Found Content-Length = 659 [09:02:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:02:05]execute_script... [09:02: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)593039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:02:05]POST & json_proto [09:02:05]process_json_proto [09:02:05]json parsed OK: [09:02:05]protocol is kg_v1.0 [09:02:05]action value=close_receipt [09:02:05]process_action close_receipt [09:02:05]cmd_close_receipt [09:02:05]MH_GetDate [09:02:05]Write to MH i2c: F0 00 00 6C 0B 66 [09:02:05]Write i2c OK [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: F0 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: F0 09 00 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: F0 09 00 6C 0B 00 0F 0A C3 66 5F 7F 2B 66 20 [09:02:05]GetLastDocTimeStamp 1724058100 [09:02:05]current date 1724058127 [09:02:05]FM_GetShiftState [09:02:05]SAM_PROTO_GetShiftState [09:02:05]wFMCommunicate request_size=4 [09:02:05]MH_SAM_APDU [09:02:05]CAPDU: 80 13 01 00 [09:02:05]Write to MH i2c: E2 08 00 6D 0B 80 13 01 00 00 00 00 00 F5 [09:02:05]Write i2c OK [09:02:05]MH_I2C_Read... [09:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:05]Read from MH i2c: E2 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: E2 0E 00 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: E2 0E 00 6D 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AC [09:02:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:02:05]wFMCommunicate OK [09:02:05]SAM_PROTO_GetShiftState done [09:02:05]FM_GetShiftState done [09:02:05]opened in 1724027888 [09:02:05]opened+sec_in_day 1724114288 [09:02:05]quantity*price = 70038 [09:02:05]sum+1 = 70039 [09:02:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 35 19.08.2024 09:02 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139200 ФПД: 73487849606226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090207&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139200&fm=73487849606226&tin=02508201610067®Number=0000000000092569&sum=70000 [09:02:06]StoreToDocumentArchive [09:02:06]shift 452 fd 139200 [09:02:06]save to /storage/0452/doc_00139200 [09:02:06]save last doc name /storage/0452/doc_00139200 to /storage/kkm_last_doc_name [09:02:06]OFD Sender: No OFD packet to send [09:02:06]save OK [09:02:06]Clear old archive folders... [09:02:06]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:02:06]tlvbuf is 01D91A00 [09:02:06]SAM_PROTO_ClearQueue [09:02:06]wFMCommunicate request_size=4 [09:02:06]MH_SAM_APDU [09:02:06]CAPDU: 80 09 00 00 [09:02:06]Write to MH i2c: E2 08 00 7A 0B 80 09 00 00 00 00 00 00 F7 [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:06]Read from MH i2c: E2 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 03 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 03 00 7A 0B 00 90 00 F9 [09:02:06]RAPDU: 90 00 [09:02:06]wFMCommunicate OK [09:02:06]SAM_PROTO_ClearQueue done [09:02:06]KKMCreateOFDPacket [09:02:06]OFDProtocolAddRootSTLVToBuf [09:02:06]FM_MakeSignedData [09:02:06]FM_MakeSignedData [09:02:06]SAM_PROTO_SignData [09:02:06]wFMCommunicate request_size=4 [09:02:06]MH_SAM_APDU [09:02:06]CAPDU: 80 0D 01 02 [09:02:06]Write to MH i2c: E2 08 00 7B 0B 80 0D 01 02 00 00 00 00 FF [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:06]Read from MH i2c: E2 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 03 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [09:02:06]RAPDU: 90 00 [09:02:06]wFMCommunicate OK [09:02:06]wFMCommunicate request_size=253 [09:02:06]MH_SAM_APDU [09:02:06]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 23 00 00 00 F4 03 04 00 0F 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 1F 02 00 35 04 06 00 42 D6 39 2B CC 52 [09:02:06]Write to MH i2c: E2 00 01 7C 0B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 23 00 00 00 F4 03 04 00 0F 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 1F 02 00 35 04 06 00 42 D6 39 2B CC 52 00 00 90 [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:06]Read from MH i2c: E2 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 03 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [09:02:06]RAPDU: 90 00 [09:02:06]wFMCommunicate OK [09:02:06]wFMCommunicate request_size=4 [09:02:06]MH_SAM_APDU [09:02:06]CAPDU: 80 0D 03 02 [09:02:06]Write to MH i2c: E2 08 00 7D 0B 80 0D 03 02 00 00 00 00 03 [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:06]Read from MH i2c: E2 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 0B 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 0B 00 7D 0B 00 22 4E DC E7 EE 57 9A 3A 90 00 50 [09:02:06]RAPDU: 22 4E DC E7 EE 57 9A 3A 90 00 [09:02:06]wFMCommunicate OK [09:02:06]SAM_PROTO_SignData done [09:02:06]FM_MakeSignedData done [09:02:06]CreateOFDProtocolMessage [09:02:06]wFMCommunicate request_size=4 [09:02:06]MH_SAM_APDU [09:02:06]CAPDU: 80 11 00 00 [09:02:06]Write to MH i2c: E2 08 00 7E 0B 80 11 00 00 00 00 00 00 03 [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:06]Read from MH i2c: E2 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 17 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 17 00 7E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [09:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:02:06]wFMCommunicate OK [09:02:06]CreateOFDProtocolMessage done [09:02:06]OFDSenderStorePacket 139200 [09:02:06]StoreOFDPacket docnum=139200 [09:02:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 85 6D 00 01 98 FE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 23 00 00 00 F4 03 04 00 0F 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 1F 02 00 35 04 06 00 42 D6 39 2B CC 52 22 4E DC E7 EE 57 9A 3A [09:02:06]CheckFolder [09:02:06]dirname=/storage/ofd_packets [09:02:06]CheckFolder done [09:02:06]ProducePacketName [09:02:06]name=ofd_packets/00139200 [09:02:06]NVStorageSaveData ofd_packets/00139200 [09:02:06]File name is /storage/ofd_packets/00139200 [09:02:06]Write 294 bytes [09:02:06]NVStorageSaveData done [09:02:06]OFDSenderStorePacket done [09:02:06]KKMCreateOFDPacket done [09:02:06]NVStorageSaveData kkm_last_timestamp [09:02:06]File name is /storage/kkm_last_timestamp [09:02:06]Write 4 bytes [09:02:06]NVStorageSaveData done [09:02:06]ExternCall_PrintAddStr [09:02:06]wPrintStart [09:02:06]Write to MH i2c: 01 00 00 7F 0B 8A [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: 01 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: 01 07 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: 01 07 00 7F 0B 00 00 00 00 00 FF 0F 9F [09:02:06]RasterBufferAndPrint [09:02:06]line Счет N : (1)593039 [09:02:06]line ИНН: 02508201610067 [09:02:06]line Контрольно-Кассовый Чек [09:02:06]line ПРОДАЖА [09:02:06]line ТРК (МРК, ГНК) : 63 [09:02:06]line Товар: 2710124130 [09:02:06]line SU-92 [09:02:06]line 10.180 * 68.80 [09:02:06]line = 700.38 [09:02:06]line НДС 12% НСП 1% [09:02:06]line > о реализуемом товаре [09:02:06]line ОКРУГЛЕНИЕ: -0.38 [09:02:06]line ИТОГО: 700.00 [09:02:06]line Внесено: 700.00 [09:02:06]line СДАЧА: 0.00 [09:02:06]line НСП 1% : 6.20 [09:02:06]line НДС 12% : 74.38 [09:02:06]line Наличными: 700.00 [09:02:06]line Безнал.: 0.00 [09:02:06]line Место: АЗС № 136 "Партнер Нефть" [09:02:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:02:06]line СНО: Общий режим [09:02:06]line Чек 35 19.08.2024 09:02 [09:02:06]line Смена: 452 ФФД: 1.0 [09:02:06]line ЗНМ: 0300000067 [09:02:06]line РНМ: 0000000000092569 [09:02:06]line Версия ККМ: 001 [09:02:06]line ФМ: 0000000000871776 [09:02:06]line ФД: 139200 [09:02:06]line ФПД: 73487849606226 [09:02:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090207&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139200&fm=73487849606226&tin=02508201610067®Number=0000000000092569&sum=70000 [09:02:07]OFD Sender: Processing packet 139200 [packets to send 137, broken 136] [09:02:07]ProducePacketName [09:02:07]name=ofd_packets/00139200 [09:02:07]OFD Sender: To server: pG, [09:02:07]CommunicateWithHost lk.salyk.kg:30040 [09:02:07]ConnectInit lk.salyk.kg [09:02:07]written 0, free lines is 4095 [09:02:07]Connected sock=10 [09:02: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 37 36 08 01 00 00 85 6D 00 01 98 FE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 23 00 00 00 F4 03 04 00 0F 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 1F 02 00 35 04 06 00 42 D6 39 2B CC 52 22 4E DC E7 EE 57 9A 3A [09:02: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 37 36 4F 00 00 00 B1 15 47 00 ED 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 1F 02 00 F4 03 04 00 A5 B0 C2 66 B6 04 01 00 00 5E D4 38 35 8C 79 3F 77 [09:02:07]CommunicateWithHost err = 0 [09:02:07]CheckOFDResponse [09:02:07]1017 (14) - 77093643461234 [09:02:07]1041 (16) - 0000000000871776 [09:02:07]1040 (4) - 139200 [09:02:07]1012 (4) - 19.08.2024 02:40 [09:02:07]1206 (1) - 0 [09:02:07]OFD Sender: Remove packet 139200 [09:02:07]ProducePacketName [09:02:07]name=ofd_packets/00139200 [09:02:07]NVStorageDeleteData [09:02:07]Write to MH i2c: 01 00 00 AA 0B B5 [09:02:07]Write i2c OK [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: 01 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: 01 07 00 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: 01 07 00 AA 0B 00 00 00 00 00 DD 0C A5 [09:02:07]RasterBufferAndPrint [09:02:07]line [09:02:07]line [09:02:07]line [09:02:07]line [09:02:07]line [09:02:07]written 0, free lines is 3299 [09:02:07]MH_Cut [09:02:07]Write to MH i2c: D1 01 00 B1 0B 01 8E [09:02:07]Write i2c OK [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: D1 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: D1 01 00 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: D1 01 00 B1 0B 00 8D [09:02:07]Write to MH i2c: 01 00 00 B2 0B BD [09:02:07]Write i2c OK [09:02:07]MH_I2C_Read... [09:02:08]OFD Sender: No OFD packet to send [09:02:08]*** Cut start [09:02:08]*** Partial cut [09:02:08]*** CUTSNS_PIN = 1 [09:02:08]*** CUTSNS_PIN = 0 [09:02:08]*** Brake cut motor [09:02:08]Read from MH i2c: 01 [09:02:08]MH_I2C_Read... [09:02:08]*** Stop cut motor [09:02:08]*** Cut end [09:02:08]Read from MH i2c: 01 07 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 07 00 B2 0B 00 00 00 00 00 FF 0F D2 [09:02:08]process_action close_receipt done [09:02:08]requested_data is exist [09:02:08]produce_requested_data [09:02:08]requested_item fm.sn is exist - process it [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 11 00 00 [09:02:08]Write to MH i2c: E2 08 00 B3 0B 80 11 00 00 00 00 00 00 38 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 17 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 17 00 B3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [09:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:02:08]wFMCommunicate OK [09:02:08]requested_item fd.num is exist - process it [09:02:08]SAM_PROTO_GetFieldsCounters [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 13 00 00 [09:02:08]Write to MH i2c: E2 08 00 B4 0B 80 13 00 00 00 00 00 00 3B [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 62 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 62 00 B4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [09:02: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_GetFieldsCounters done [09:02:09]requested_item shift.num is exist - process it [09:02:09]requested_item shift.opened is exist - process it [09:02:09]req_shift_opened [09:02:09]FM_GetShiftState [09:02:09]SAM_PROTO_GetShiftState [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 13 01 00 [09:02:09]Write to MH i2c: E2 08 00 B5 0B 80 13 01 00 00 00 00 00 3D [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0E 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0E 00 B5 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F4 [09:02:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_GetShiftState done [09:02:09]FM_GetShiftState done [09:02:09]req_shift_opened done [09:02:09]requested_item shift.open_date is exist - process it [09:02:09]req_shift_open_date [09:02:09]req_shift_open_date done [09:02:09]produce_requested_data done [09:02:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139200,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:02:09]process_action_free close_receipt [09:02:09]json_value_free [09:02:09]json_value_free done [09:02:09]process_json_proto returns [09:02:09]Send response to host [09:02:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139200,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:02:09]free response buf [09:02:09]execute_script done [09:02:09]execute_script returns [09:02:09]free content buf [09:02:09]Sock 7.Close socket [09:02:09]Sock 7.Thread stoped [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:50]accept exits with 9 [09:03:50]New connection [09:03:50]New thread 3067059556 created [09:03:50]Thread 3067202916 joined [09:03:50]Waiting for new connection... [09:03:50] Sock 9.Parse request [09:03:50]Sock 9.Check first char [09:03:50]Sock 9.First char is OK [09:03:50]request: POST /json_proto HTTP/1.0 [09:03:50]Method: POST [09:03:50]URL: /json_proto [09:03:50]Method is POST - this is cgi request [09:03:50]url: /json_proto [09:03:50]query_string will be loaded in cgi processing [09:03:50]execute_cgi json_proto POST (null) [09:03:50]execute_cgi path=json_proto method=POST [09:03:50]POST find Content-Length [09:03:50]Host: 172.17.45.67:8080 [09:03:50]Content-Length: 678 [09:03:50]Content-Type: application/json [09:03:50] [09:03:50]POST finish read [09:03:50]Found Content-Length = 678 [09:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:03:50]execute_script... [09:03: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)593041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:03:50]POST & json_proto [09:03:50]process_json_proto [09:03:50]json parsed OK: [09:03:50]protocol is kg_v1.0 [09:03:50]action value=close_receipt [09:03:50]process_action close_receipt [09:03:50]cmd_close_receipt [09:03:50]MH_GetDate [09:03:50]Write to MH i2c: F0 00 00 B6 0B B0 [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: F0 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: F0 09 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: F0 09 00 B6 0B 00 79 0A C3 66 5F 7F 2B 66 D4 [09:03:50]GetLastDocTimeStamp 1724058127 [09:03:50]current date 1724058233 [09:03:50]FM_GetShiftState [09:03:50]SAM_PROTO_GetShiftState [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 13 01 00 [09:03:50]Write to MH i2c: E2 08 00 B7 0B 80 13 01 00 00 00 00 00 3F [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:51]Read from MH i2c: E2 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: E2 0E 00 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: E2 0E 00 B7 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F6 [09:03:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:03:51]wFMCommunicate OK [09:03:51]SAM_PROTO_GetShiftState done [09:03:51]FM_GetShiftState done [09:03:51]opened in 1724027888 [09:03:51]opened+sec_in_day 1724114288 [09:03:51]quantity*price = 70037 [09:03:51]sum+1 = 70038 [09:03:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 36 19.08.2024 09:03 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139201 ФПД: 197445638378522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090353&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139201&fm=197445638378522&tin=02508201610067®Number=0000000000092569&sum=70000 [09:03:52]StoreToDocumentArchive [09:03:52]shift 452 fd 139201 [09:03:52]save to /storage/0452/doc_00139201 [09:03:52]save last doc name /storage/0452/doc_00139201 to /storage/kkm_last_doc_name [09:03:52]save OK [09:03:52]Clear old archive folders... [09:03:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:52]tlvbuf is 01D6EB50 [09:03:52]SAM_PROTO_ClearQueue [09:03:52]wFMCommunicate request_size=4 [09:03:52]MH_SAM_APDU [09:03:52]CAPDU: 80 09 00 00 [09:03:52]Write to MH i2c: E2 08 00 C4 0B 80 09 00 00 00 00 00 00 41 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [09:03:52]RAPDU: 90 00 [09:03:52]wFMCommunicate OK [09:03:52]SAM_PROTO_ClearQueue done [09:03:52]KKMCreateOFDPacket [09:03:52]OFDProtocolAddRootSTLVToBuf [09:03:52]FM_MakeSignedData [09:03:52]FM_MakeSignedData [09:03:52]SAM_PROTO_SignData [09:03:52]wFMCommunicate request_size=4 [09:03:52]MH_SAM_APDU [09:03:52]CAPDU: 80 0D 01 02 [09:03:52]Write to MH i2c: E2 08 00 C5 0B 80 0D 01 02 00 00 00 00 49 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [09:03:52]RAPDU: 90 00 [09:03:52]wFMCommunicate OK [09:03:52]wFMCommunicate request_size=255 [09:03:52]MH_SAM_APDU [09:03: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 24 00 00 00 F4 03 04 00 79 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 1F 02 00 35 04 06 00 B3 [09:03:52]Write to MH i2c: E2 02 01 C6 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 24 00 00 00 F4 03 04 00 79 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 1F 02 00 35 04 06 00 B3 00 00 E3 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [09:03:52]RAPDU: 90 00 [09:03:52]wFMCommunicate OK [09:03:52]wFMCommunicate request_size=10 [09:03:52]MH_SAM_APDU [09:03:52]CAPDU: 80 0D 02 02 05 93 65 23 54 1A [09:03:52]Write to MH i2c: E2 0D 00 C7 0B 80 0D 02 02 05 00 93 65 23 54 1A 00 00 DF [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [09:03:52]RAPDU: 90 00 [09:03:52]wFMCommunicate OK [09:03:52]wFMCommunicate request_size=4 [09:03:52]MH_SAM_APDU [09:03:52]CAPDU: 80 0D 03 02 [09:03:52]Write to MH i2c: E2 08 00 C8 0B 80 0D 03 02 00 00 00 00 4E [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 0B 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 0B 00 C8 0B 00 C8 B9 53 2F 58 C3 FA 03 90 00 6A [09:03:52]RAPDU: C8 B9 53 2F 58 C3 FA 03 90 00 [09:03:52]wFMCommunicate OK [09:03:52]SAM_PROTO_SignData done [09:03:52]FM_MakeSignedData done [09:03:52]CreateOFDProtocolMessage [09:03:52]wFMCommunicate request_size=4 [09:03:52]MH_SAM_APDU [09:03:52]CAPDU: 80 11 00 00 [09:03:52]Write to MH i2c: E2 08 00 C9 0B 80 11 00 00 00 00 00 00 4E [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 17 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 17 00 C9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [09:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:03:52]wFMCommunicate OK [09:03:52]CreateOFDProtocolMessage done [09:03:52]OFDSenderStorePacket 139201 [09:03:52]StoreOFDPacket docnum=139201 [09:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 6A 07 01 DD 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 24 00 00 00 F4 03 04 00 79 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 1F 02 00 35 04 06 00 B3 93 65 23 54 1A C8 B9 53 2F 58 C3 FA 03 [09:03:52]CheckFolder [09:03:52]dirname=/storage/ofd_packets [09:03:52]CheckFolder done [09:03:52]ProducePacketName [09:03:52]name=ofd_packets/00139201 [09:03:52]NVStorageSaveData ofd_packets/00139201 [09:03:52]File name is /storage/ofd_packets/00139201 [09:03:52]Write 301 bytes [09:03:52]NVStorageSaveData done [09:03:52]OFDSenderStorePacket done [09:03:52]KKMCreateOFDPacket done [09:03:52]NVStorageSaveData kkm_last_timestamp [09:03:52]File name is /storage/kkm_last_timestamp [09:03:52]Write 4 bytes [09:03:52]NVStorageSaveData done [09:03:52]ExternCall_PrintAddStr [09:03:52]wPrintStart [09:03:52]Write to MH i2c: 01 00 00 CA 0B D5 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: 01 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: 01 07 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 FF 0F EA [09:03:52]RasterBufferAndPrint [09:03:52]line Счет N : (1)593041 [09:03:52]line ИНН: 02508201610067 [09:03:52]line Контрольно-Кассовый Чек [09:03:52]line ПРОДАЖА [09:03:52]line ТРК (МРК, ГНК) : 52 [09:03:52]line Товар: 2710124130 [09:03:52]line Аи-92-К-5 [09:03:52]line 10.330 * 67.80 [09:03:52]line = 700.37 [09:03:52]line НДС 12% НСП 1% [09:03:52]line > о реализуемом товаре [09:03:52]line ОКРУГЛЕНИЕ: -0.37 [09:03:52]line ИТОГО: 700.00 [09:03:52]line Внесено: 700.00 [09:03:52]line СДАЧА: 0.00 [09:03:52]line НСП 1% : 6.20 [09:03:52]line НДС 12% : 74.38 [09:03:52]line Наличными: 700.00 [09:03:52]line Безнал.: 0.00 [09:03:52]line Место: АЗС № 136 "Партнер Нефть" [09:03:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:03:52]line СНО: Общий режим [09:03:52]line Чек 36 19.08.2024 09:03 [09:03:52]line Смена: 452 ФФД: 1.0 [09:03:52]line ЗНМ: 0300000067 [09:03:52]line РНМ: 0000000000092569 [09:03:52]line Версия ККМ: 001 [09:03:52]line ФМ: 0000000000871776 [09:03:52]line ФД: 139201 [09:03:52]line ФПД: 197445638378522 [09:03:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090353&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139201&fm=197445638378522&tin=02508201610067®Number=0000000000092569&sum=70000 [09:03:53]OFD Sender: Processing packet 139201 [packets to send 137, broken 136] [09:03:53]ProducePacketName [09:03:53]name=ofd_packets/00139201 [09:03:53]OFD Sender: To server: pG, [09:03:53]CommunicateWithHost lk.salyk.kg:30040 [09:03:53]ConnectInit lk.salyk.kg [09:03:53]written 0, free lines is 4095 [09:03:53]Connected sock=10 [09:03: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 37 36 0F 01 00 00 16 6A 07 01 DD 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 24 00 00 00 F4 03 04 00 79 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 1F 02 00 35 04 06 00 B3 93 65 23 54 1A C8 B9 53 2F 58 C3 FA 03 [09:03: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 37 36 4F 00 00 00 0B 5A 47 00 3C 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 1F 02 00 F4 03 04 00 0F B1 C2 66 B6 04 01 00 00 EB B9 06 0F B7 D4 A6 5E [09:03:53]CommunicateWithHost err = 0 [09:03:53]CheckOFDResponse [09:03:53]1017 (14) - 77093643461234 [09:03:53]1041 (16) - 0000000000871776 [09:03:53]1040 (4) - 139201 [09:03:53]1012 (4) - 19.08.2024 02:42 [09:03:53]1206 (1) - 0 [09:03:53]OFD Sender: Remove packet 139201 [09:03:53]ProducePacketName [09:03:53]name=ofd_packets/00139201 [09:03:53]NVStorageDeleteData [09:03:53]Write to MH i2c: 01 00 00 F5 0B 00 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 07 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 07 00 F5 0B 00 00 00 00 00 D4 0C E7 [09:03:53]RasterBufferAndPrint [09:03:53]line [09:03:53]line [09:03:53]line [09:03:53]line [09:03:53]line [09:03:53]written 0, free lines is 3292 [09:03:53]MH_Cut [09:03:53]Write to MH i2c: D1 01 00 FC 0B 01 D9 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: D1 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: D1 01 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: D1 01 00 FC 0B 00 D8 [09:03:53]Write to MH i2c: 01 00 00 FD 0B 08 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]OFD Sender: No OFD packet to send [09:03:54]*** Cut start [09:03:54]*** Partial cut [09:03:54]*** CUTSNS_PIN = 1 [09:03:54]*** CUTSNS_PIN = 0 [09:03:54]*** Brake cut motor [09:03:54]Read from MH i2c: 01 [09:03:54]MH_I2C_Read... [09:03:54]*** Stop cut motor [09:03:54]*** Cut end [09:03:54]Read from MH i2c: 01 07 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: 01 07 00 FD 0B 00 00 00 00 00 FF 0F 1D [09:03:54]process_action close_receipt done [09:03:54]requested_data is exist [09:03:54]produce_requested_data [09:03:54]requested_item fm.sn is exist - process it [09:03:54]wFMCommunicate request_size=4 [09:03:54]MH_SAM_APDU [09:03:54]CAPDU: 80 11 00 00 [09:03:54]Write to MH i2c: E2 08 00 FE 0B 80 11 00 00 00 00 00 00 83 [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:54]Read from MH i2c: E2 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 17 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 17 00 FE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DA [09:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:03:54]wFMCommunicate OK [09:03:54]requested_item fd.num is exist - process it [09:03:54]SAM_PROTO_GetFieldsCounters [09:03:54]wFMCommunicate request_size=4 [09:03:54]MH_SAM_APDU [09:03:54]CAPDU: 80 13 00 00 [09:03:54]Write to MH i2c: E2 08 00 FF 0B 80 13 00 00 00 00 00 00 86 [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:54]Read from MH i2c: E2 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 62 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 62 00 FF 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [09:03: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:55]wFMCommunicate OK [09:03:55]SAM_PROTO_GetFieldsCounters done [09:03:55]requested_item shift.num is exist - process it [09:03:55]requested_item shift.opened is exist - process it [09:03:55]req_shift_opened [09:03:55]FM_GetShiftState [09:03:55]SAM_PROTO_GetShiftState [09:03:55]wFMCommunicate request_size=4 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 13 01 00 [09:03:55]Write to MH i2c: E2 08 00 00 0C 80 13 01 00 00 00 00 00 89 [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 00 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 40 [09:03:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:03:55]wFMCommunicate OK [09:03:55]SAM_PROTO_GetShiftState done [09:03:55]FM_GetShiftState done [09:03:55]req_shift_opened done [09:03:55]requested_item shift.open_date is exist - process it [09:03:55]req_shift_open_date [09:03:55]req_shift_open_date done [09:03:55]produce_requested_data done [09:03:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139201,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:03:55]process_action_free close_receipt [09:03:55]json_value_free [09:03:55]json_value_free done [09:03:55]process_json_proto returns [09:03:55]Send response to host [09:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139201,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:03:55]free response buf [09:03:55]execute_script done [09:03:55]execute_script returns [09:03:55]free content buf [09:03:55]Sock 9.Close socket [09:03:55]Sock 9.Thread stoped [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:02]accept exits with 7 [09:06:02]New connection [09:06:02]New thread 3067202916 created [09:06:02]Thread 3067059556 joined [09:06:02]Waiting for new connection... [09:06:02] Sock 7.Parse request [09:06:02]Sock 7.Check first char [09:06:02]Sock 7.First char is OK [09:06:02]request: POST /json_proto HTTP/1.0 [09:06:02]Method: POST [09:06:02]URL: /json_proto [09:06:02]Method is POST - this is cgi request [09:06:02]url: /json_proto [09:06:02]query_string will be loaded in cgi processing [09:06:02]execute_cgi json_proto POST (null) [09:06:02]execute_cgi path=json_proto method=POST [09:06:02]POST find Content-Length [09:06:02]Host: 172.17.45.67:8080 [09:06:02]Content-Length: 682 [09:06:02]Content-Type: application/json [09:06:02] [09:06:02]POST finish read [09:06:02]Found Content-Length = 682 [09:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:06:02]execute_script... [09:06: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)593042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:06:02]POST & json_proto [09:06:02]process_json_proto [09:06:02]json parsed OK: [09:06:02]protocol is kg_v1.0 [09:06:02]action value=close_receipt [09:06:02]process_action close_receipt [09:06:02]cmd_close_receipt [09:06:02]MH_GetDate [09:06:02]Write to MH i2c: F0 00 00 01 0C FC [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: F0 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: F0 09 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: F0 09 00 01 0C 00 FC 0A C3 66 5F 7F 2B 66 A3 [09:06:02]GetLastDocTimeStamp 1724058233 [09:06:02]current date 1724058364 [09:06:02]FM_GetShiftState [09:06:02]SAM_PROTO_GetShiftState [09:06:02]wFMCommunicate request_size=4 [09:06:02]MH_SAM_APDU [09:06:02]CAPDU: 80 13 01 00 [09:06:02]Write to MH i2c: E2 08 00 02 0C 80 13 01 00 00 00 00 00 8B [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:02]Read from MH i2c: E2 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 0E 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 0E 00 02 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 42 [09:06:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:06:02]wFMCommunicate OK [09:06:02]SAM_PROTO_GetShiftState done [09:06:02]FM_GetShiftState done [09:06:02]opened in 1724027888 [09:06:02]opened+sec_in_day 1724114288 [09:06:02]quantity*price = 100005 [09:06:02]sum+1 = 100006 [09:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 37 19.08.2024 09:06 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139202 ФПД: 259639045643945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090604&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139202&fm=259639045643945&tin=02508201610067®Number=0000000000092569&sum=100000 [09:06:03]StoreToDocumentArchive [09:06:03]shift 452 fd 139202 [09:06:03]save to /storage/0452/doc_00139202 [09:06:03]save last doc name /storage/0452/doc_00139202 to /storage/kkm_last_doc_name [09:06:03]save OK [09:06:03]Clear old archive folders... [09:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:03]tlvbuf is 01D45DE0 [09:06:03]SAM_PROTO_ClearQueue [09:06:03]wFMCommunicate request_size=4 [09:06:03]MH_SAM_APDU [09:06:03]CAPDU: 80 09 00 00 [09:06:03]Write to MH i2c: E2 08 00 0F 0C 80 09 00 00 00 00 00 00 8D [09:06:03]Write i2c OK [09:06:03]MH_I2C_Read... [09:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:03]Read from MH i2c: E2 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 03 00 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [09:06:03]RAPDU: 90 00 [09:06:03]wFMCommunicate OK [09:06:03]SAM_PROTO_ClearQueue done [09:06:03]KKMCreateOFDPacket [09:06:03]OFDProtocolAddRootSTLVToBuf [09:06:03]FM_MakeSignedData [09:06:03]FM_MakeSignedData [09:06:03]SAM_PROTO_SignData [09:06:03]wFMCommunicate request_size=4 [09:06:03]MH_SAM_APDU [09:06:03]CAPDU: 80 0D 01 02 [09:06:03]Write to MH i2c: E2 08 00 10 0C 80 0D 01 02 00 00 00 00 95 [09:06:03]Write i2c OK [09:06:03]MH_I2C_Read... [09:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:03]Read from MH i2c: E2 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 03 00 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [09:06:03]RAPDU: 90 00 [09:06:03]wFMCommunicate OK [09:06:03]wFMCommunicate request_size=255 [09:06:03]MH_SAM_APDU [09:06: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 1F 02 00 35 04 06 00 EC [09:06:03]Write to MH i2c: E2 02 01 11 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 1F 02 00 35 04 06 00 EC 00 00 95 [09:06:03]Write i2c OK [09:06:03]MH_I2C_Read... [09:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:03]Read from MH i2c: E2 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 03 00 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [09:06:03]RAPDU: 90 00 [09:06:03]wFMCommunicate OK [09:06:03]wFMCommunicate request_size=10 [09:06:03]MH_SAM_APDU [09:06:03]CAPDU: 80 0D 02 02 05 23 ED 15 DE A9 [09:06:03]Write to MH i2c: E2 0D 00 12 0C 80 0D 02 02 05 00 23 ED 15 DE A9 00 00 4E [09:06:03]Write i2c OK [09:06:03]MH_I2C_Read... [09:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:03]Read from MH i2c: E2 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 03 00 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [09:06:03]RAPDU: 90 00 [09:06:03]wFMCommunicate OK [09:06:03]wFMCommunicate request_size=4 [09:06:03]MH_SAM_APDU [09:06:03]CAPDU: 80 0D 03 02 [09:06:03]Write to MH i2c: E2 08 00 13 0C 80 0D 03 02 00 00 00 00 9A [09:06:03]Write i2c OK [09:06:03]MH_I2C_Read... [09:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:03]Read from MH i2c: E2 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 0B 00 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 0B 00 13 0C 00 B2 46 3A 6F 5A F3 1F C5 90 00 6D [09:06:03]RAPDU: B2 46 3A 6F 5A F3 1F C5 90 00 [09:06:03]wFMCommunicate OK [09:06:03]SAM_PROTO_SignData done [09:06:03]FM_MakeSignedData done [09:06:03]CreateOFDProtocolMessage [09:06:03]wFMCommunicate request_size=4 [09:06:03]MH_SAM_APDU [09:06:03]CAPDU: 80 11 00 00 [09:06:03]Write to MH i2c: E2 08 00 14 0C 80 11 00 00 00 00 00 00 9A [09:06:03]Write i2c OK [09:06:03]MH_I2C_Read... [09:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:03]Read from MH i2c: E2 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 17 00 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: E2 17 00 14 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [09:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:06:03]wFMCommunicate OK [09:06:03]CreateOFDProtocolMessage done [09:06:03]OFDSenderStorePacket 139202 [09:06:03]StoreOFDPacket docnum=139202 [09:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 21 FB 07 01 D1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 1F 02 00 35 04 06 00 EC 23 ED 15 DE A9 B2 46 3A 6F 5A F3 1F C5 [09:06:03]CheckFolder [09:06:03]dirname=/storage/ofd_packets [09:06:03]CheckFolder done [09:06:03]ProducePacketName [09:06:03]name=ofd_packets/00139202 [09:06:03]NVStorageSaveData ofd_packets/00139202 [09:06:03]File name is /storage/ofd_packets/00139202 [09:06:03]Write 301 bytes [09:06:03]NVStorageSaveData done [09:06:03]OFDSenderStorePacket done [09:06:03]KKMCreateOFDPacket done [09:06:03]NVStorageSaveData kkm_last_timestamp [09:06:03]File name is /storage/kkm_last_timestamp [09:06:03]Write 4 bytes [09:06:03]NVStorageSaveData done [09:06:03]ExternCall_PrintAddStr [09:06:03]wPrintStart [09:06:03]Write to MH i2c: 01 00 00 15 0C 21 [09:06:03]Write i2c OK [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: 01 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: 01 07 00 [09:06:03]MH_I2C_Read... [09:06:03]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 FF 0F 36 [09:06:03]RasterBufferAndPrint [09:06:03]line Счет N : (1)593042 [09:06:03]line ИНН: 02508201610067 [09:06:03]line Контрольно-Кассовый Чек [09:06:03]line ПРОДАЖА [09:06:03]line ТРК (МРК, ГНК) : 32 [09:06:03]line Товар: 2710124130 [09:06:03]line Аи-92-К-5 [09:06:03]line 14.750 * 67.80 [09:06:03]line = 1000.05 [09:06:03]line НДС 12% НСП 1% [09:06:03]line > о реализуемом товаре [09:06:03]line ОКРУГЛЕНИЕ: -0.05 [09:06:03]line ИТОГО: 1000.00 [09:06:03]line Внесено: 1000.00 [09:06:03]line СДАЧА: 0.00 [09:06:03]line НСП 1% : 8.85 [09:06:03]line НДС 12% : 106.20 [09:06:03]line Наличными: 1000.00 [09:06:03]line Безнал.: 0.00 [09:06:03]line Место: АЗС № 136 "Партнер Нефть" [09:06:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:06:03]line СНО: Общий режим [09:06:03]line Чек 37 19.08.2024 09:06 [09:06:03]line Смена: 452 ФФД: 1.0 [09:06:03]line ЗНМ: 0300000067 [09:06:03]line РНМ: 0000000000092569 [09:06:03]line Версия ККМ: 001 [09:06:03]line ФМ: 0000000000871776 [09:06:03]line ФД: 139202 [09:06:03]line ФПД: 259639045643945 [09:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090604&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139202&fm=259639045643945&tin=02508201610067®Number=0000000000092569&sum=100000 [09:06:04]OFD Sender: Processing packet 139202 [packets to send 137, broken 136] [09:06:04]ProducePacketName [09:06:04]name=ofd_packets/00139202 [09:06:04]OFD Sender: To server: pG, [09:06:04]CommunicateWithHost lk.salyk.kg:30040 [09:06:04]ConnectInit lk.salyk.kg [09:06:04]written 0, free lines is 4095 [09:06:04]Connected sock=11 [09:06: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 37 36 0F 01 00 00 21 FB 07 01 D1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 0A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 1F 02 00 35 04 06 00 EC 23 ED 15 DE A9 B2 46 3A 6F 5A F3 1F C5 [09:06: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 37 36 4F 00 00 00 4E 5D 47 00 1A 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 37 36 10 04 04 00 C2 1F 02 00 F4 03 04 00 92 B1 C2 66 B6 04 01 00 00 C2 63 C5 FA FB 24 48 03 [09:06:04]CommunicateWithHost err = 0 [09:06:04]CheckOFDResponse [09:06:04]1017 (14) - 77093643461234 [09:06:04]1041 (16) - 0000000000871776 [09:06:04]1040 (4) - 139202 [09:06:04]1012 (4) - 19.08.2024 02:44 [09:06:04]1206 (1) - 0 [09:06:04]OFD Sender: Remove packet 139202 [09:06:04]ProducePacketName [09:06:04]name=ofd_packets/00139202 [09:06:04]NVStorageDeleteData [09:06:04]Write to MH i2c: 01 00 00 40 0C 4C [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 07 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 07 00 40 0C 00 00 00 00 00 CA 0C 29 [09:06:04]RasterBufferAndPrint [09:06:04]line [09:06:04]line [09:06:04]line [09:06:04]line [09:06:04]line [09:06:04]written 0, free lines is 3279 [09:06:04]MH_Cut [09:06:04]Write to MH i2c: D1 01 00 47 0C 01 25 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: D1 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: D1 01 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: D1 01 00 47 0C 00 24 [09:06:04]Write to MH i2c: 01 00 00 48 0C 54 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:05]OFD Sender: No OFD packet to send [09:06:05]*** Cut start [09:06:05]*** Partial cut [09:06:05]*** CUTSNS_PIN = 1 [09:06:05]*** CUTSNS_PIN = 0 [09:06:05]*** Brake cut motor [09:06:06]Read from MH i2c: 01 [09:06:06]MH_I2C_Read... [09:06:06]*** Stop cut motor [09:06:06]*** Cut end [09:06:06]Read from MH i2c: 01 07 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 48 0C 00 00 00 00 00 FF 0F 69 [09:06:06]process_action close_receipt done [09:06:06]requested_data is exist [09:06:06]produce_requested_data [09:06:06]requested_item fm.sn is exist - process it [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 11 00 00 [09:06:06]Write to MH i2c: E2 08 00 49 0C 80 11 00 00 00 00 00 00 CF [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 49 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [09:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:06:06]wFMCommunicate OK [09:06:06]requested_item fd.num is exist - process it [09:06:06]SAM_PROTO_GetFieldsCounters [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 13 00 00 [09:06:06]Write to MH i2c: E2 08 00 4A 0C 80 13 00 00 00 00 00 00 D2 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 62 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 62 00 4A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [09:06: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_GetFieldsCounters done [09:06:06]requested_item shift.num is exist - process it [09:06:06]requested_item shift.opened is exist - process it [09:06:06]req_shift_opened [09:06:06]FM_GetShiftState [09:06:06]SAM_PROTO_GetShiftState [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 13 01 00 [09:06:06]Write to MH i2c: E2 08 00 4B 0C 80 13 01 00 00 00 00 00 D4 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0E 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0E 00 4B 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8B [09:06:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_GetShiftState done [09:06:06]FM_GetShiftState done [09:06:06]req_shift_opened done [09:06:06]requested_item shift.open_date is exist - process it [09:06:06]req_shift_open_date [09:06:06]req_shift_open_date done [09:06:06]produce_requested_data done [09:06:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139202,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:06:06]process_action_free close_receipt [09:06:06]json_value_free [09:06:06]json_value_free done [09:06:06]process_json_proto returns [09:06:06]Send response to host [09:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139202,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:06:06]free response buf [09:06:06]execute_script done [09:06:06]execute_script returns [09:06:06]free content buf [09:06:06]Sock 7.Close socket [09:06:06]Sock 7.Thread stoped [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:21]int [09:07:21]Write to MH i2c: 01 00 00 4C 0C 58 [09:07:21]*** FLAG_PRN_KEY set [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 07 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 07 00 4C 0C 00 08 00 00 00 FF 0F 75 [09:07:21]state=0 [09:07:21]Key pressed [09:07:21]Feed [09:07:21]Write to MH i2c: D8 00 00 4D 0C 30 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: D8 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: D8 01 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: D8 01 00 4D 0C 00 31 [09:07:21]int [09:07:21]Write to MH i2c: 01 00 00 4E 0C 5A [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 07 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 07 00 4E 0C 00 48 00 00 00 3C 00 E5 [09:07:21]state=2 [09:07:21]Key pressed [09:07:21]int [09:07:21]Write to MH i2c: 01 00 00 4F 0C 5B [09:07:22]*** FLAG_PRN_KEY reset [09:07:22]Write i2c OK [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 07 00 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 07 00 4F 0C 00 00 00 00 00 FF 0F 70 [09:07:22]state=2 [09:07:22]Stop feed [09:07:25]OFD Sender: No OFD packet to send [09:07:27]accept exits with 9 [09:07:27]New connection [09:07:27]New thread 3067059556 created [09:07:27]Thread 3067202916 joined [09:07:27]Waiting for new connection... [09:07:27] Sock 9.Parse request [09:07:27]Sock 9.Check first char [09:07:27]Sock 9.First char is OK [09:07:27]request: POST /json_proto HTTP/1.0 [09:07:27]Method: POST [09:07:27]URL: /json_proto [09:07:27]Method is POST - this is cgi request [09:07:27]url: /json_proto [09:07:27]query_string will be loaded in cgi processing [09:07:27]execute_cgi json_proto POST (null) [09:07:27]execute_cgi path=json_proto method=POST [09:07:27]POST find Content-Length [09:07:27]Host: 172.17.45.67:8080 [09:07:27]Content-Length: 677 [09:07:27]Content-Type: application/json [09:07:27] [09:07:27]POST finish read [09:07:27]Found Content-Length = 677 [09:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:27]execute_script... [09:07:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:27]POST & json_proto [09:07:27]process_json_proto [09:07:27]json parsed OK: [09:07:27]protocol is kg_v1.0 [09:07:27]action value=close_receipt [09:07:27]process_action close_receipt [09:07:27]cmd_close_receipt [09:07:27]MH_GetDate [09:07:27]Write to MH i2c: F0 00 00 50 0C 4B [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: F0 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: F0 09 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: F0 09 00 50 0C 00 51 0B C3 66 5F 7F 2B 66 48 [09:07:27]GetLastDocTimeStamp 1724058364 [09:07:27]current date 1724058449 [09:07:27]FM_GetShiftState [09:07:27]SAM_PROTO_GetShiftState [09:07:27]wFMCommunicate request_size=4 [09:07:27]MH_SAM_APDU [09:07:27]CAPDU: 80 13 01 00 [09:07:27]Write to MH i2c: E2 08 00 51 0C 80 13 01 00 00 00 00 00 DA [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:27]Read from MH i2c: E2 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 0E 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 0E 00 51 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 91 [09:07:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:07:27]wFMCommunicate OK [09:07:27]SAM_PROTO_GetShiftState done [09:07:27]FM_GetShiftState done [09:07:27]opened in 1724027888 [09:07:27]opened+sec_in_day 1724114288 [09:07:27]quantity*price = 60003 [09:07:27]sum+1 = 60004 [09:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 38 19.08.2024 09:07 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139203 ФПД: 227612968580596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090729&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139203&fm=227612968580596&tin=02508201610067®Number=0000000000092569&sum=60000 [09:07:28]StoreToDocumentArchive [09:07:28]shift 452 fd 139203 [09:07:28]save to /storage/0452/doc_00139203 [09:07:28]save last doc name /storage/0452/doc_00139203 to /storage/kkm_last_doc_name [09:07:28]save OK [09:07:28]Clear old archive folders... [09:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:28]tlvbuf is 01D792F0 [09:07:28]SAM_PROTO_ClearQueue [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 09 00 00 [09:07:28]Write to MH i2c: E2 08 00 5E 0C 80 09 00 00 00 00 00 00 DC [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:28]Read from MH i2c: E2 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 03 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [09:07:28]RAPDU: 90 00 [09:07:28]wFMCommunicate OK [09:07:28]SAM_PROTO_ClearQueue done [09:07:28]KKMCreateOFDPacket [09:07:28]OFDProtocolAddRootSTLVToBuf [09:07:28]FM_MakeSignedData [09:07:28]FM_MakeSignedData [09:07:28]SAM_PROTO_SignData [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 0D 01 02 [09:07:28]Write to MH i2c: E2 08 00 5F 0C 80 0D 01 02 00 00 00 00 E4 [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:28]Read from MH i2c: E2 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 03 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [09:07:28]RAPDU: 90 00 [09:07:28]wFMCommunicate OK [09:07:28]wFMCommunicate request_size=255 [09:07:28]MH_SAM_APDU [09:07: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 26 00 00 00 F4 03 04 00 51 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 1F 02 00 35 04 06 00 CF [09:07:28]Write to MH i2c: E2 02 01 60 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 26 00 00 00 F4 03 04 00 51 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 1F 02 00 35 04 06 00 CF 00 00 57 [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:29]Read from MH i2c: E2 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 03 00 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [09:07:29]RAPDU: 90 00 [09:07:29]wFMCommunicate OK [09:07:29]wFMCommunicate request_size=10 [09:07:29]MH_SAM_APDU [09:07:29]CAPDU: 80 0D 02 02 05 03 46 23 75 F4 [09:07:29]Write to MH i2c: E2 0D 00 61 0C 80 0D 02 02 05 00 03 46 23 75 F4 00 00 C6 [09:07:29]Write i2c OK [09:07:29]MH_I2C_Read... [09:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:29]Read from MH i2c: E2 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 03 00 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [09:07:29]RAPDU: 90 00 [09:07:29]wFMCommunicate OK [09:07:29]wFMCommunicate request_size=4 [09:07:29]MH_SAM_APDU [09:07:29]CAPDU: 80 0D 03 02 [09:07:29]Write to MH i2c: E2 08 00 62 0C 80 0D 03 02 00 00 00 00 E9 [09:07:29]Write i2c OK [09:07:29]MH_I2C_Read... [09:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:29]Read from MH i2c: E2 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 0B 00 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 0B 00 62 0C 00 6D EB 4C 6A F4 69 ED EB 90 00 2D [09:07:29]RAPDU: 6D EB 4C 6A F4 69 ED EB 90 00 [09:07:29]wFMCommunicate OK [09:07:29]SAM_PROTO_SignData done [09:07:29]FM_MakeSignedData done [09:07:29]CreateOFDProtocolMessage [09:07:29]wFMCommunicate request_size=4 [09:07:29]MH_SAM_APDU [09:07:29]CAPDU: 80 11 00 00 [09:07:29]Write to MH i2c: E2 08 00 63 0C 80 11 00 00 00 00 00 00 E9 [09:07:29]Write i2c OK [09:07:29]MH_I2C_Read... [09:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:29]Read from MH i2c: E2 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 17 00 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 17 00 63 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [09:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:07:29]wFMCommunicate OK [09:07:29]CreateOFDProtocolMessage done [09:07:29]OFDSenderStorePacket 139203 [09:07:29]StoreOFDPacket docnum=139203 [09:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 53 4A 07 01 A8 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 26 00 00 00 F4 03 04 00 51 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 1F 02 00 35 04 06 00 CF 03 46 23 75 F4 6D EB 4C 6A F4 69 ED EB [09:07:29]CheckFolder [09:07:29]dirname=/storage/ofd_packets [09:07:29]CheckFolder done [09:07:29]ProducePacketName [09:07:29]name=ofd_packets/00139203 [09:07:29]NVStorageSaveData ofd_packets/00139203 [09:07:29]File name is /storage/ofd_packets/00139203 [09:07:29]Write 301 bytes [09:07:29]NVStorageSaveData done [09:07:29]OFDSenderStorePacket done [09:07:29]KKMCreateOFDPacket done [09:07:29]NVStorageSaveData kkm_last_timestamp [09:07:29]File name is /storage/kkm_last_timestamp [09:07:29]Write 4 bytes [09:07:29]NVStorageSaveData done [09:07:29]ExternCall_PrintAddStr [09:07:29]wPrintStart [09:07:29]Write to MH i2c: 01 00 00 64 0C 70 [09:07:29]Write i2c OK [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: 01 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: 01 07 00 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: 01 07 00 64 0C 00 00 00 00 00 FF 0F 85 [09:07:29]RasterBufferAndPrint [09:07:29]line Счет N : (1)593044 [09:07:29]line ИНН: 02508201610067 [09:07:29]line Контрольно-Кассовый Чек [09:07:29]line ПРОДАЖА [09:07:29]line ТРК (МРК, ГНК) : 42 [09:07:29]line Товар: 2710124130 [09:07:29]line Аи-92-К-5 [09:07:29]line 8.850 * 67.80 [09:07:29]line = 600.03 [09:07:29]line НДС 12% НСП 1% [09:07:29]line > о реализуемом товаре [09:07:29]line ОКРУГЛЕНИЕ: -0.03 [09:07:29]line ИТОГО: 600.00 [09:07:29]line Внесено: 600.00 [09:07:29]line СДАЧА: 0.00 [09:07:29]line НСП 1% : 5.31 [09:07:29]line НДС 12% : 63.72 [09:07:29]line Наличными: 600.00 [09:07:29]line Безнал.: 0.00 [09:07:29]line Место: АЗС № 136 "Партнер Нефть" [09:07:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:07:29]line СНО: Общий режим [09:07:29]line Чек 38 19.08.2024 09:07 [09:07:29]line Смена: 452 ФФД: 1.0 [09:07:29]line ЗНМ: 0300000067 [09:07:29]line РНМ: 0000000000092569 [09:07:29]line Версия ККМ: 001 [09:07:29]line ФМ: 0000000000871776 [09:07:29]line ФД: 139203 [09:07:29]line ФПД: 227612968580596 [09:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090729&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139203&fm=227612968580596&tin=02508201610067®Number=0000000000092569&sum=60000 [09:07:29]OFD Sender: Processing packet 139203 [packets to send 137, broken 136] [09:07:29]ProducePacketName [09:07:29]name=ofd_packets/00139203 [09:07:29]OFD Sender: To server: pG, [09:07:29]CommunicateWithHost lk.salyk.kg:30040 [09:07:29]ConnectInit lk.salyk.kg [09:07:29]written 0, free lines is 4095 [09:07:29]Connected sock=10 [09:07:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 53 4A 07 01 A8 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 26 00 00 00 F4 03 04 00 51 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 1F 02 00 35 04 06 00 CF 03 46 23 75 F4 6D EB 4C 6A F4 69 ED EB [09:07:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 45 A9 47 00 10 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 37 36 10 04 04 00 C3 1F 02 00 F4 03 04 00 E7 B1 C2 66 B6 04 01 00 00 9E A3 66 C5 4B AB 13 9F [09:07:29]CommunicateWithHost err = 0 [09:07:29]CheckOFDResponse [09:07:29]1017 (14) - 77093643461234 [09:07:29]1041 (16) - 0000000000871776 [09:07:29]1040 (4) - 139203 [09:07:29]1012 (4) - 19.08.2024 02:45 [09:07:29]1206 (1) - 0 [09:07:29]OFD Sender: Remove packet 139203 [09:07:29]ProducePacketName [09:07:29]name=ofd_packets/00139203 [09:07:29]NVStorageDeleteData [09:07:29]Write to MH i2c: 01 00 00 8F 0C 9B [09:07:29]Write i2c OK [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: 01 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: 01 07 00 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: 01 07 00 8F 0C 00 00 00 00 00 E2 0C 90 [09:07:29]RasterBufferAndPrint [09:07:29]line [09:07:29]line [09:07:29]line [09:07:29]line [09:07:29]line [09:07:29]written 0, free lines is 3304 [09:07:29]MH_Cut [09:07:29]Write to MH i2c: D1 01 00 96 0C 01 74 [09:07:29]Write i2c OK [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: D1 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: D1 01 00 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: D1 01 00 96 0C 00 73 [09:07:29]Write to MH i2c: 01 00 00 97 0C A3 [09:07:29]Write i2c OK [09:07:29]MH_I2C_Read... [09:07:30]OFD Sender: No OFD packet to send [09:07:30]*** Cut start [09:07:30]*** Partial cut [09:07:30]*** CUTSNS_PIN = 1 [09:07:30]*** CUTSNS_PIN = 0 [09:07:30]*** Brake cut motor [09:07:31]Read from MH i2c: 01 [09:07:31]MH_I2C_Read... [09:07:31]*** Stop cut motor [09:07:31]*** Cut end [09:07:31]Read from MH i2c: 01 07 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 07 00 97 0C 00 00 00 00 00 FF 0F B8 [09:07:31]process_action close_receipt done [09:07:31]requested_data is exist [09:07:31]produce_requested_data [09:07:31]requested_item fm.sn is exist - process it [09:07:31]wFMCommunicate request_size=4 [09:07:31]MH_SAM_APDU [09:07:31]CAPDU: 80 11 00 00 [09:07:31]Write to MH i2c: E2 08 00 98 0C 80 11 00 00 00 00 00 00 1E [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:31]Read from MH i2c: E2 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 17 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 17 00 98 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [09:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:07:31]wFMCommunicate OK [09:07:31]requested_item fd.num is exist - process it [09:07:31]SAM_PROTO_GetFieldsCounters [09:07:31]wFMCommunicate request_size=4 [09:07:31]MH_SAM_APDU [09:07:31]CAPDU: 80 13 00 00 [09:07:31]Write to MH i2c: E2 08 00 99 0C 80 13 00 00 00 00 00 00 21 [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:31]Read from MH i2c: E2 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 62 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 62 00 99 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:07:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:31]wFMCommunicate OK [09:07:31]SAM_PROTO_GetFieldsCounters done [09:07:31]requested_item shift.num is exist - process it [09:07:31]requested_item shift.opened is exist - process it [09:07:31]req_shift_opened [09:07:31]FM_GetShiftState [09:07:31]SAM_PROTO_GetShiftState [09:07:31]wFMCommunicate request_size=4 [09:07:31]MH_SAM_APDU [09:07:31]CAPDU: 80 13 01 00 [09:07:31]Write to MH i2c: E2 08 00 9A 0C 80 13 01 00 00 00 00 00 23 [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]int [09:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:31]*** FLAG_PRN_KEY set [09:07:31]Read from MH i2c: E2 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 0E 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 0E 00 9A 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DA [09:07:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:07:31]wFMCommunicate OK [09:07:31]SAM_PROTO_GetShiftState done [09:07:31]FM_GetShiftState done [09:07:31]req_shift_opened done [09:07:31]requested_item shift.open_date is exist - process it [09:07:31]req_shift_open_date [09:07:31]req_shift_open_date done [09:07:31]produce_requested_data done [09:07:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139203,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:07:31]process_action_free close_receipt [09:07:31]json_value_free [09:07:31]json_value_free done [09:07:31]process_json_proto returns [09:07:31]Send response to host [09:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139203,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:07:31]free response buf [09:07:31]execute_script done [09:07:31]execute_script returns [09:07:31]free content buf [09:07:31]Sock 9.Close socket [09:07:31]Sock 9.Thread stoped [09:07:31]Write to MH i2c: 01 00 00 9B 0C A7 [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 07 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 07 00 9B 0C 00 08 00 00 00 FF 0F C4 [09:07:31]state=0 [09:07:31]Key pressed [09:07:31]Feed [09:07:31]Write to MH i2c: D8 00 00 9C 0C 7F [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: D8 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: D8 01 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: D8 01 00 9C 0C 00 80 [09:07:31]int [09:07:31]Write to MH i2c: 01 00 00 9D 0C A9 [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 07 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 07 00 9D 0C 00 48 00 00 00 3C 00 34 [09:07:31]state=2 [09:07:31]Key pressed [09:07:31]int [09:07:31]Write to MH i2c: 01 00 00 9E 0C AA [09:07:31]*** FLAG_PRN_KEY reset [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 07 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 F9 0F B9 [09:07:31]state=2 [09:07:31]Stop feed [09:07:35]OFD Sender: No OFD packet to send [09:07:38]accept exits with 7 [09:07:38]New connection [09:07:38]New thread 3067202916 created [09:07:38]Thread 3067059556 joined [09:07:38]Waiting for new connection... [09:07:38] Sock 7.Parse request [09:07:38]Sock 7.Check first char [09:07:38]Sock 7.First char is OK [09:07:38]request: POST /json_proto HTTP/1.0 [09:07:38]Method: POST [09:07:38]URL: /json_proto [09:07:38]Method is POST - this is cgi request [09:07:38]url: /json_proto [09:07:38]query_string will be loaded in cgi processing [09:07:38]execute_cgi json_proto POST (null) [09:07:38]execute_cgi path=json_proto method=POST [09:07:38]POST find Content-Length [09:07:38]Host: 172.17.45.67:8080 [09:07:38]Content-Length: 797 [09:07:38]Content-Type: application/json [09:07:38] [09:07:38]POST finish read [09:07:38]Found Content-Length = 797 [09:07:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:38]execute_script... [09: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)593043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:38]POST & json_proto [09:07:38]process_json_proto [09:07:38]json parsed OK: [09:07:38]protocol is kg_v1.0 [09:07:38]action value=close_receipt [09:07:38]process_action close_receipt [09:07:38]cmd_close_receipt [09:07:38]MH_GetDate [09:07:38]Write to MH i2c: F0 00 00 9F 0C 9A [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: F0 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: F0 09 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: F0 09 00 9F 0C 00 5C 0B C3 66 5F 7F 2B 66 A2 [09:07:38]GetLastDocTimeStamp 1724058449 [09:07:38]current date 1724058460 [09:07:38]FM_GetShiftState [09:07:38]SAM_PROTO_GetShiftState [09:07:38]wFMCommunicate request_size=4 [09:07:38]MH_SAM_APDU [09:07:38]CAPDU: 80 13 01 00 [09:07:38]Write to MH i2c: E2 08 00 A0 0C 80 13 01 00 00 00 00 00 29 [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:38]Read from MH i2c: E2 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 0E 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 0E 00 A0 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E0 [09:07:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:07:38]wFMCommunicate OK [09:07:38]SAM_PROTO_GetShiftState done [09:07:38]FM_GetShiftState done [09:07:38]opened in 1724027888 [09:07:38]opened+sec_in_day 1724114288 [09:07:38]quantity*price = 0 [09:07:38]sum+1 = 1 [09:07:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 39 19.08.2024 09:07 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139204 ФПД: 106973367699431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090740&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139204&fm=106973367699431&tin=02508201610067®Number=0000000000092569&sum=0 [09:07:39]StoreToDocumentArchive [09:07:39]shift 452 fd 139204 [09:07:39]save to /storage/0452/doc_00139204 [09:07:39]save last doc name /storage/0452/doc_00139204 to /storage/kkm_last_doc_name [09:07:39]save OK [09:07:39]Clear old archive folders... [09:07:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:07:39]tlvbuf is 01D924D0 [09:07:39]SAM_PROTO_ClearQueue [09:07:39]wFMCommunicate request_size=4 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 09 00 00 [09:07:39]Write to MH i2c: E2 08 00 AD 0C 80 09 00 00 00 00 00 00 2B [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 03 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [09:07:39]RAPDU: 90 00 [09:07:39]wFMCommunicate OK [09:07:39]SAM_PROTO_ClearQueue done [09:07:39]KKMCreateOFDPacket [09:07:39]OFDProtocolAddRootSTLVToBuf [09:07:39]FM_MakeSignedData [09:07:39]FM_MakeSignedData [09:07:39]SAM_PROTO_SignData [09:07:39]wFMCommunicate request_size=4 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 0D 01 02 [09:07:39]Write to MH i2c: E2 08 00 AE 0C 80 0D 01 02 00 00 00 00 33 [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 03 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [09:07:39]RAPDU: 90 00 [09:07:39]wFMCommunicate OK [09:07:39]wFMCommunicate request_size=255 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 27 00 00 00 F4 03 04 00 5C 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 1F 02 00 35 04 06 00 [09:07:39]Write to MH i2c: E2 02 01 AF 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 27 00 00 00 F4 03 04 00 5C 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 1F 02 00 35 04 06 00 00 00 B0 [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 03 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [09:07:39]RAPDU: 90 00 [09:07:39]wFMCommunicate OK [09:07:39]wFMCommunicate request_size=11 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 0D 02 02 06 61 4A AD 95 07 E7 [09:07:39]Write to MH i2c: E2 0E 00 B0 0C 80 0D 02 02 06 00 61 4A AD 95 07 E7 00 00 1D [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 03 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [09:07:39]RAPDU: 90 00 [09:07:39]wFMCommunicate OK [09:07:39]wFMCommunicate request_size=4 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 0D 03 02 [09:07:39]Write to MH i2c: E2 08 00 B1 0C 80 0D 03 02 00 00 00 00 38 [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:40]Read from MH i2c: E2 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 0B 00 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 0B 00 B1 0C 00 4D CE 6B A6 44 B0 60 41 90 00 FA [09:07:40]RAPDU: 4D CE 6B A6 44 B0 60 41 90 00 [09:07:40]wFMCommunicate OK [09:07:40]SAM_PROTO_SignData done [09:07:40]FM_MakeSignedData done [09:07:40]CreateOFDProtocolMessage [09:07:40]wFMCommunicate request_size=4 [09:07:40]MH_SAM_APDU [09:07:40]CAPDU: 80 11 00 00 [09:07:40]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [09:07:40]Write i2c OK [09:07:40]MH_I2C_Read... [09:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:40]Read from MH i2c: E2 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 17 00 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [09:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:07:40]wFMCommunicate OK [09:07:40]CreateOFDProtocolMessage done [09:07:40]OFDSenderStorePacket 139204 [09:07:40]StoreOFDPacket docnum=139204 [09:07:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 F5 AC 08 01 3F 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 27 00 00 00 F4 03 04 00 5C 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 1F 02 00 35 04 06 00 61 4A AD 95 07 E7 4D CE 6B A6 44 B0 60 41 [09:07:40]CheckFolder [09:07:40]dirname=/storage/ofd_packets [09:07:40]CheckFolder done [09:07:40]ProducePacketName [09:07:40]name=ofd_packets/00139204 [09:07:40]NVStorageSaveData ofd_packets/00139204 [09:07:40]File name is /storage/ofd_packets/00139204 [09:07:40]Write 302 bytes [09:07:40]NVStorageSaveData done [09:07:40]OFDSenderStorePacket done [09:07:40]KKMCreateOFDPacket done [09:07:40]NVStorageSaveData kkm_last_timestamp [09:07:40]File name is /storage/kkm_last_timestamp [09:07:40]Write 4 bytes [09:07:40]NVStorageSaveData done [09:07:40]ExternCall_PrintAddStr [09:07:40]wPrintStart [09:07:40]Write to MH i2c: 01 00 00 B3 0C BF [09:07:40]Write i2c OK [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: 01 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: 01 07 00 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 FF 0F D4 [09:07:40]RasterBufferAndPrint [09:07:40]line Счет N : (1)593043 [09:07:40]line ИНН: 02508201610067 [09:07:40]line Контрольно-Кассовый Чек [09:07:40]line ПРОДАЖА [09:07:40]line ТРК (МРК, ГНК) : 21 [09:07:40]line Товар: 2710194210 [09:07:40]line ДТ(л)-К-5 [09:07:40]line 28.000 * 0.00 [09:07:40]line = 0.00 [09:07:40]line НДС 12% НСП 1% [09:07:40]line > о реализуемом товаре [09:07:40]line ИТОГО: 0.00 [09:07:40]line НСП 1% : 0.00 [09:07:40]line НДС 12% : 0.00 [09:07:40]line Наличными: 0.00 [09:07:40]line Безнал.: 0.00 [09:07:40]line Место: АЗС № 136 "Партнер Нефть" [09:07:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:07:40]line СНО: Общий режим [09:07:40]line Чек 39 19.08.2024 09:07 [09:07:40]line Смена: 452 ФФД: 1.0 [09:07:40]line ЗНМ: 0300000067 [09:07:40]line РНМ: 0000000000092569 [09:07:40]line Версия ККМ: 001 [09:07:40]line Талоны: Топливная Карта [09:07:40]line 99761 [09:07:40]line ФМ: 0000000000871776 [09:07:40]line ФД: 139204 [09:07:40]line ФПД: 106973367699431 [09:07:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090740&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139204&fm=106973367699431&tin=02508201610067®Number=0000000000092569&sum=0 [09:07:40]written 0, free lines is 4095 [09:07:40]OFD Sender: Processing packet 139204 [packets to send 137, broken 136] [09:07:40]ProducePacketName [09:07:40]name=ofd_packets/00139204 [09:07:40]OFD Sender: To server: pG, [09:07:40]CommunicateWithHost lk.salyk.kg:30040 [09:07:40]ConnectInit lk.salyk.kg [09:07:40]Connected sock=10 [09:07: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 37 36 10 01 00 00 F5 AC 08 01 3F 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 27 00 00 00 F4 03 04 00 5C 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 1F 02 00 35 04 06 00 61 4A AD 95 07 E7 4D CE 6B A6 44 B0 60 41 [09:07:40]Write to MH i2c: 01 00 00 DD 0C E9 [09:07:40]Write i2c OK [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: 01 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: 01 07 00 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 E2 0C DE [09:07:40]RasterBufferAndPrint [09:07:40]line [09:07:40]line [09:07:40]line [09:07:40]line [09:07:40]line [09: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 37 36 4F 00 00 00 7B 01 47 00 24 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 1F 02 00 F4 03 04 00 F2 B1 C2 66 B6 04 01 00 00 EB C1 69 F8 FC AA 6D 20 [09:07:40]CommunicateWithHost err = 0 [09:07:40]CheckOFDResponse [09:07:40]1017 (14) - 77093643461234 [09:07:40]1041 (16) - 0000000000871776 [09:07:40]1040 (4) - 139204 [09:07:40]1012 (4) - 19.08.2024 02:46 [09:07:40]1206 (1) - 0 [09:07:40]OFD Sender: Remove packet 139204 [09:07:40]ProducePacketName [09:07:40]name=ofd_packets/00139204 [09:07:40]NVStorageDeleteData [09:07:40]written 0, free lines is 3323 [09:07:40]MH_Cut [09:07:40]Write to MH i2c: D1 01 00 E4 0C 01 C2 [09:07:40]Write i2c OK [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: D1 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: D1 01 00 [09:07:40]MH_I2C_Read... [09:07:40]Read from MH i2c: D1 01 00 E4 0C 00 C1 [09:07:40]Write to MH i2c: 01 00 00 E5 0C F1 [09:07:40]Write i2c OK [09:07:40]MH_I2C_Read... [09:07:41]OFD Sender: No OFD packet to send [09:07:41]*** Cut start [09:07:41]*** Partial cut [09:07:41]*** CUTSNS_PIN = 1 [09:07:41]*** CUTSNS_PIN = 0 [09:07:41]*** Brake cut motor [09:07:41]Read from MH i2c: 01 [09:07:41]MH_I2C_Read... [09:07:41]*** Stop cut motor [09:07:41]*** Cut end [09:07:41]Read from MH i2c: 01 07 00 [09:07:41]MH_I2C_Read... [09:07:41]Read from MH i2c: 01 07 00 E5 0C 00 00 00 00 00 FF 0F 06 [09:07:41]process_action close_receipt done [09:07:41]requested_data is exist [09:07:41]produce_requested_data [09:07:41]requested_item fm.sn is exist - process it [09:07:41]wFMCommunicate request_size=4 [09:07:41]MH_SAM_APDU [09:07:41]CAPDU: 80 11 00 00 [09:07:41]Write to MH i2c: E2 08 00 E6 0C 80 11 00 00 00 00 00 00 6C [09:07:41]Write i2c OK [09:07:41]MH_I2C_Read... [09:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:41]Read from MH i2c: E2 [09:07:41]MH_I2C_Read... [09:07:41]Read from MH i2c: E2 17 00 [09:07:41]MH_I2C_Read... [09:07:41]Read from MH i2c: E2 17 00 E6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C3 [09:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:07:41]wFMCommunicate OK [09:07:41]requested_item fd.num is exist - process it [09:07:41]SAM_PROTO_GetFieldsCounters [09:07:41]wFMCommunicate request_size=4 [09:07:41]MH_SAM_APDU [09:07:41]CAPDU: 80 13 00 00 [09:07:41]Write to MH i2c: E2 08 00 E7 0C 80 13 00 00 00 00 00 00 6F [09:07:41]Write i2c OK [09:07:41]MH_I2C_Read... [09:07:42]int [09:07:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:42]*** FLAG_PRN_KEY set [09:07:42]Read from MH i2c: E2 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: E2 62 00 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: E2 62 00 E7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [09:07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:42]wFMCommunicate OK [09:07:42]SAM_PROTO_GetFieldsCounters done [09:07:42]requested_item shift.num is exist - process it [09:07:42]requested_item shift.opened is exist - process it [09:07:42]req_shift_opened [09:07:42]FM_GetShiftState [09:07:42]SAM_PROTO_GetShiftState [09:07:42]wFMCommunicate request_size=4 [09:07:42]MH_SAM_APDU [09:07:42]CAPDU: 80 13 01 00 [09:07:42]Write to MH i2c: 01 00 00 E8 0C F4 [09:07:42]Write i2c OK [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: 01 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: 01 07 00 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: 01 07 00 E8 0C 00 08 00 00 00 FF 0F 11 [09:07:42]state=0 [09:07:42]Key pressed [09:07:42]Feed [09:07:42]Write to MH i2c: D8 00 00 E9 0C CC [09:07:42]Write i2c OK [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: D8 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: D8 01 00 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: D8 01 00 E9 0C 00 CD [09:07:42]Write to MH i2c: E2 08 00 EA 0C 80 13 01 00 00 00 00 00 73 [09:07:42]Write i2c OK [09:07:42]MH_I2C_Read... [09:07:42]int [09:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:42]Read from MH i2c: E2 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: E2 0E 00 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: E2 0E 00 EA 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2A [09:07:42]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:07:42]wFMCommunicate OK [09:07:42]SAM_PROTO_GetShiftState done [09:07:42]FM_GetShiftState done [09:07:42]req_shift_opened done [09:07:42]requested_item shift.open_date is exist - process it [09:07:42]req_shift_open_date [09:07:42]req_shift_open_date done [09:07:42]produce_requested_data done [09:07:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139204,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:07:42]process_action_free close_receipt [09:07:42]json_value_free [09:07:42]json_value_free done [09:07:42]process_json_proto returns [09:07:42]Send response to host [09:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139204,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:07:42]free response buf [09:07:42]execute_script done [09:07:42]execute_script returns [09:07:42]free content buf [09:07:42]Sock 7.Close socket [09:07:42]Sock 7.Thread stoped [09:07:42]Write to MH i2c: 01 00 00 EB 0C F7 [09:07:42]Write i2c OK [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: 01 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: 01 07 00 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: 01 07 00 EB 0C 00 48 00 00 00 3C 00 82 [09:07:42]state=2 [09:07:42]Key pressed [09:07:42]int [09:07:42]Write to MH i2c: 01 00 00 EC 0C F8 [09:07:42]*** FLAG_PRN_KEY reset [09:07:42]Write i2c OK [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: 01 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: 01 07 00 [09:07:42]MH_I2C_Read... [09:07:42]Read from MH i2c: 01 07 00 EC 0C 00 00 00 00 00 F9 0F 07 [09:07:42]state=2 [09:07:42]Stop feed [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:08:57]accept exits with 9 [09:08:57]New connection [09:08:57]New thread 3067059556 created [09:08:57]Thread 3067202916 joined [09:08:57]Waiting for new connection... [09:08:57] Sock 9.Parse request [09:08:57]Sock 9.Check first char [09:08:57]Sock 9.First char is OK [09:08:57]request: POST /json_proto HTTP/1.0 [09:08:57]Method: POST [09:08:57]URL: /json_proto [09:08:57]Method is POST - this is cgi request [09:08:57]url: /json_proto [09:08:57]query_string will be loaded in cgi processing [09:08:57]execute_cgi json_proto POST (null) [09:08:57]execute_cgi path=json_proto method=POST [09:08:57]POST find Content-Length [09:08:57]Host: 172.17.45.67:8080 [09:08:57]Content-Length: 677 [09:08:57]Content-Type: application/json [09:08:57] [09:08:57]POST finish read [09:08:57]Found Content-Length = 677 [09:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:57]execute_script... [09:08: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)593045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:57]POST & json_proto [09:08:57]process_json_proto [09:08:57]json parsed OK: [09:08:57]protocol is kg_v1.0 [09:08:57]action value=close_receipt [09:08:57]process_action close_receipt [09:08:57]cmd_close_receipt [09:08:57]MH_GetDate [09:08:57]Write to MH i2c: F0 00 00 ED 0C E8 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: F0 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: F0 09 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: F0 09 00 ED 0C 00 AB 0B C3 66 5F 7F 2B 66 3F [09:08:57]GetLastDocTimeStamp 1724058460 [09:08:57]current date 1724058539 [09:08:57]FM_GetShiftState [09:08:57]SAM_PROTO_GetShiftState [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 13 01 00 [09:08:57]Write to MH i2c: E2 08 00 EE 0C 80 13 01 00 00 00 00 00 77 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 0E 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 0E 00 EE 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2E [09:08:57]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:08:57]wFMCommunicate OK [09:08:57]SAM_PROTO_GetShiftState done [09:08:57]FM_GetShiftState done [09:08:57]opened in 1724027888 [09:08:57]opened+sec_in_day 1724114288 [09:08:57]quantity*price = 30035 [09:08:57]sum+1 = 30036 [09:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 40 19.08.2024 09:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139205 ФПД: 132627207653758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090859&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139205&fm=132627207653758&tin=02508201610067®Number=0000000000092569&sum=30000 [09:08:58]StoreToDocumentArchive [09:08:58]shift 452 fd 139205 [09:08:58]save to /storage/0452/doc_00139205 [09:08:58]save last doc name /storage/0452/doc_00139205 to /storage/kkm_last_doc_name [09:08:58]save OK [09:08:58]Clear old archive folders... [09:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:58]tlvbuf is 01D6E6C0 [09:08:58]SAM_PROTO_ClearQueue [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 09 00 00 [09:08:58]Write to MH i2c: E2 08 00 FB 0C 80 09 00 00 00 00 00 00 79 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 03 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [09:08:58]RAPDU: 90 00 [09:08:58]wFMCommunicate OK [09:08:58]SAM_PROTO_ClearQueue done [09:08:58]KKMCreateOFDPacket [09:08:58]OFDProtocolAddRootSTLVToBuf [09:08:58]FM_MakeSignedData [09:08:58]FM_MakeSignedData [09:08:58]SAM_PROTO_SignData [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 0D 01 02 [09:08:58]Write to MH i2c: E2 08 00 FC 0C 80 0D 01 02 00 00 00 00 81 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 03 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 03 00 FC 0C 00 90 00 7C [09:08:58]RAPDU: 90 00 [09:08:58]wFMCommunicate OK [09:08:58]wFMCommunicate request_size=255 [09:08:58]MH_SAM_APDU [09:08: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AB 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 1F 02 00 35 04 06 00 78 [09:08:58]Write to MH i2c: E2 02 01 FD 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AB 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 1F 02 00 35 04 06 00 78 00 00 53 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:59]Read from MH i2c: E2 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 03 00 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [09:08:59]RAPDU: 90 00 [09:08:59]wFMCommunicate OK [09:08:59]wFMCommunicate request_size=10 [09:08:59]MH_SAM_APDU [09:08:59]CAPDU: 80 0D 02 02 05 9F AD 99 89 7E [09:08:59]Write to MH i2c: E2 0D 00 FE 0C 80 0D 02 02 05 00 9F AD 99 89 7E 00 00 7A [09:08:59]Write i2c OK [09:08:59]MH_I2C_Read... [09:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:59]Read from MH i2c: E2 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 03 00 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [09:08:59]RAPDU: 90 00 [09:08:59]wFMCommunicate OK [09:08:59]wFMCommunicate request_size=4 [09:08:59]MH_SAM_APDU [09:08:59]CAPDU: 80 0D 03 02 [09:08:59]Write to MH i2c: E2 08 00 FF 0C 80 0D 03 02 00 00 00 00 86 [09:08:59]Write i2c OK [09:08:59]MH_I2C_Read... [09:08:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:59]Read from MH i2c: E2 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 0B 00 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 0B 00 FF 0C 00 80 D7 AC 7C 45 DA FF 62 90 00 86 [09:08:59]RAPDU: 80 D7 AC 7C 45 DA FF 62 90 00 [09:08:59]wFMCommunicate OK [09:08:59]SAM_PROTO_SignData done [09:08:59]FM_MakeSignedData done [09:08:59]CreateOFDProtocolMessage [09:08:59]wFMCommunicate request_size=4 [09:08:59]MH_SAM_APDU [09:08:59]CAPDU: 80 11 00 00 [09:08:59]Write to MH i2c: E2 08 00 00 0D 80 11 00 00 00 00 00 00 87 [09:08:59]Write i2c OK [09:08:59]MH_I2C_Read... [09:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:59]Read from MH i2c: E2 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 17 00 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: E2 17 00 00 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DE [09:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:08:59]wFMCommunicate OK [09:08:59]CreateOFDProtocolMessage done [09:08:59]OFDSenderStorePacket 139205 [09:08:59]StoreOFDPacket docnum=139205 [09:08:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 77 5E 07 01 19 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AB 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 1F 02 00 35 04 06 00 78 9F AD 99 89 7E 80 D7 AC 7C 45 DA FF 62 [09:08:59]CheckFolder [09:08:59]dirname=/storage/ofd_packets [09:08:59]CheckFolder done [09:08:59]ProducePacketName [09:08:59]name=ofd_packets/00139205 [09:08:59]NVStorageSaveData ofd_packets/00139205 [09:08:59]File name is /storage/ofd_packets/00139205 [09:08:59]Write 301 bytes [09:08:59]NVStorageSaveData done [09:08:59]OFDSenderStorePacket done [09:08:59]KKMCreateOFDPacket done [09:08:59]NVStorageSaveData kkm_last_timestamp [09:08:59]File name is /storage/kkm_last_timestamp [09:08:59]Write 4 bytes [09:08:59]NVStorageSaveData done [09:08:59]ExternCall_PrintAddStr [09:08:59]wPrintStart [09:08:59]Write to MH i2c: 01 00 00 01 0D 0E [09:08:59]Write i2c OK [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: 01 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: 01 07 00 [09:08:59]MH_I2C_Read... [09:08:59]Read from MH i2c: 01 07 00 01 0D 00 00 00 00 00 FF 0F 23 [09:08:59]RasterBufferAndPrint [09:08:59]line Счет N : (1)593045 [09:08:59]line ИНН: 02508201610067 [09:08:59]line Контрольно-Кассовый Чек [09:08:59]line ПРОДАЖА [09:08:59]line ТРК (МРК, ГНК) : 52 [09:08:59]line Товар: 2710124130 [09:08:59]line Аи-92-К-5 [09:08:59]line 4.430 * 67.80 [09:08:59]line = 300.35 [09:08:59]line НДС 12% НСП 1% [09:08:59]line > о реализуемом товаре [09:08:59]line ОКРУГЛЕНИЕ: -0.35 [09:08:59]line ИТОГО: 300.00 [09:08:59]line Внесено: 300.00 [09:08:59]line СДАЧА: 0.00 [09:08:59]line НСП 1% : 2.66 [09:08:59]line НДС 12% : 31.90 [09:08:59]line Наличными: 300.00 [09:08:59]line Безнал.: 0.00 [09:08:59]line Место: АЗС № 136 "Партнер Нефть" [09:08:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:08:59]line СНО: Общий режим [09:08:59]line Чек 40 19.08.2024 09:08 [09:08:59]line Смена: 452 ФФД: 1.0 [09:08:59]line ЗНМ: 0300000067 [09:08:59]line РНМ: 0000000000092569 [09:08:59]line Версия ККМ: 001 [09:08:59]line ФМ: 0000000000871776 [09:08:59]line ФД: 139205 [09:08:59]line ФПД: 132627207653758 [09:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090859&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139205&fm=132627207653758&tin=02508201610067®Number=0000000000092569&sum=30000 [09:08:59]OFD Sender: Processing packet 139205 [packets to send 137, broken 136] [09:08:59]ProducePacketName [09:08:59]name=ofd_packets/00139205 [09:08:59]OFD Sender: To server: pG, [09:08:59]CommunicateWithHost lk.salyk.kg:30040 [09:08:59]ConnectInit lk.salyk.kg [09:08:59]written 0, free lines is 4095 [09:08:59]Connected sock=10 [09:08: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 37 36 0F 01 00 00 77 5E 07 01 19 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AB 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 1F 02 00 35 04 06 00 78 9F AD 99 89 7E 80 D7 AC 7C 45 DA FF 62 [09:08: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 37 36 4F 00 00 00 FE D7 47 00 DB 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 37 36 10 04 04 00 C5 1F 02 00 F4 03 04 00 42 B2 C2 66 B6 04 01 00 00 D8 23 83 A6 95 5D 26 DA [09:08:59]CommunicateWithHost err = 0 [09:08:59]CheckOFDResponse [09:08:59]1017 (14) - 77093643461234 [09:08:59]1041 (16) - 0000000000871776 [09:08:59]1040 (4) - 139205 [09:08:59]1012 (4) - 19.08.2024 02:47 [09:08:59]1206 (1) - 0 [09:08:59]OFD Sender: Remove packet 139205 [09:08:59]ProducePacketName [09:08:59]name=ofd_packets/00139205 [09:08:59]NVStorageDeleteData [09:09:00]Write to MH i2c: 01 00 00 2C 0D 39 [09:09:00]Write i2c OK [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 07 00 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: 01 07 00 2C 0D 00 00 00 00 00 DA 0C 26 [09:09:00]RasterBufferAndPrint [09:09:00]line [09:09:00]line [09:09:00]line [09:09:00]line [09:09:00]line [09:09:00]written 0, free lines is 3297 [09:09:00]MH_Cut [09:09:00]Write to MH i2c: D1 01 00 33 0D 01 12 [09:09:00]Write i2c OK [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: D1 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: D1 01 00 [09:09:00]MH_I2C_Read... [09:09:00]Read from MH i2c: D1 01 00 33 0D 00 11 [09:09:00]Write to MH i2c: 01 00 00 34 0D 41 [09:09:00]Write i2c OK [09:09:00]MH_I2C_Read... [09:09:00]OFD Sender: No OFD packet to send [09:09:00]*** Cut start [09:09:00]*** Partial cut [09:09:00]*** CUTSNS_PIN = 1 [09:09:00]*** CUTSNS_PIN = 0 [09:09:01]*** Brake cut motor [09:09:01]Read from MH i2c: 01 [09:09:01]MH_I2C_Read... [09:09:01]*** Stop cut motor [09:09:01]*** Cut end [09:09:01]Read from MH i2c: 01 07 00 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: 01 07 00 34 0D 00 00 00 00 00 FF 0F 56 [09:09:01]process_action close_receipt done [09:09:01]requested_data is exist [09:09:01]produce_requested_data [09:09:01]requested_item fm.sn is exist - process it [09:09:01]wFMCommunicate request_size=4 [09:09:01]MH_SAM_APDU [09:09:01]CAPDU: 80 11 00 00 [09:09:01]Write to MH i2c: E2 08 00 35 0D 80 11 00 00 00 00 00 00 BC [09:09:01]Write i2c OK [09:09:01]MH_I2C_Read... [09:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:01]Read from MH i2c: E2 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: E2 17 00 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: E2 17 00 35 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 13 [09:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:09:01]wFMCommunicate OK [09:09:01]requested_item fd.num is exist - process it [09:09:01]SAM_PROTO_GetFieldsCounters [09:09:01]wFMCommunicate request_size=4 [09:09:01]MH_SAM_APDU [09:09:01]CAPDU: 80 13 00 00 [09:09:01]Write to MH i2c: E2 08 00 36 0D 80 13 00 00 00 00 00 00 BF [09:09:01]Write i2c OK [09:09:01]MH_I2C_Read... [09:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:01]Read from MH i2c: E2 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: E2 62 00 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: E2 62 00 36 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [09:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:01]wFMCommunicate OK [09:09:01]SAM_PROTO_GetFieldsCounters done [09:09:01]requested_item shift.num is exist - process it [09:09:01]requested_item shift.opened is exist - process it [09:09:01]req_shift_opened [09:09:01]FM_GetShiftState [09:09:01]SAM_PROTO_GetShiftState [09:09:01]wFMCommunicate request_size=4 [09:09:01]MH_SAM_APDU [09:09:01]CAPDU: 80 13 01 00 [09:09:01]Write to MH i2c: E2 08 00 37 0D 80 13 01 00 00 00 00 00 C1 [09:09:01]Write i2c OK [09:09:01]MH_I2C_Read... [09:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:01]Read from MH i2c: E2 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: E2 0E 00 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: E2 0E 00 37 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 78 [09:09:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:09:01]wFMCommunicate OK [09:09:01]SAM_PROTO_GetShiftState done [09:09:01]FM_GetShiftState done [09:09:01]req_shift_opened done [09:09:01]requested_item shift.open_date is exist - process it [09:09:01]req_shift_open_date [09:09:01]req_shift_open_date done [09:09:01]produce_requested_data done [09:09:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139205,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:09:01]process_action_free close_receipt [09:09:01]json_value_free [09:09:01]json_value_free done [09:09:01]process_json_proto returns [09:09:01]Send response to host [09:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139205,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:09:01]free response buf [09:09:01]execute_script done [09:09:01]execute_script returns [09:09:01]free content buf [09:09:01]Sock 9.Close socket [09:09:01]Sock 9.Thread stoped [09:09:01]int [09:09:01]Write to MH i2c: 01 00 00 38 0D 45 [09:09:01]*** FLAG_PRN_KEY set [09:09:01]Write i2c OK [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: 01 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: 01 07 00 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: 01 07 00 38 0D 00 08 00 00 00 FF 0F 62 [09:09:01]state=0 [09:09:01]Key pressed [09:09:01]Feed [09:09:01]Write to MH i2c: D8 00 00 39 0D 1D [09:09:01]Write i2c OK [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: D8 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: D8 01 00 [09:09:01]MH_I2C_Read... [09:09:01]Read from MH i2c: D8 01 00 39 0D 00 1E [09:09:01]int [09:09:01]Write to MH i2c: 01 00 00 3A 0D 47 [09:09:01]Write i2c OK [09:09:01]MH_I2C_Read... [09:09:02]Read from MH i2c: 01 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: 01 07 00 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: 01 07 00 3A 0D 00 48 00 00 00 3C 00 D2 [09:09:02]state=2 [09:09:02]Key pressed [09:09:02]int [09:09:02]Write to MH i2c: 01 00 00 3B 0D 48 [09:09:02]*** FLAG_PRN_KEY reset [09:09:02]Write i2c OK [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: 01 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: 01 07 00 [09:09:02]MH_I2C_Read... [09:09:02]Read from MH i2c: 01 07 00 3B 0D 00 00 00 00 00 F9 0F 57 [09:09:02]state=2 [09:09:02]Stop feed [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:37]accept exits with 7 [09:09:37]New connection [09:09:37]New thread 3067202916 created [09:09:37]Thread 3067059556 joined [09:09:37]Waiting for new connection... [09:09:37] Sock 7.Parse request [09:09:37]Sock 7.Check first char [09:09:37]Sock 7.First char is OK [09:09:37]request: POST /json_proto HTTP/1.0 [09:09:37]Method: POST [09:09:37]URL: /json_proto [09:09:37]Method is POST - this is cgi request [09:09:37]url: /json_proto [09:09:37]query_string will be loaded in cgi processing [09:09:37]execute_cgi json_proto POST (null) [09:09:37]execute_cgi path=json_proto method=POST [09:09:37]POST find Content-Length [09:09:37]Host: 172.17.45.67:8080 [09:09:37]Content-Length: 677 [09:09:37]Content-Type: application/json [09:09:37] [09:09:37]POST finish read [09:09:37]Found Content-Length = 677 [09:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:37]execute_script... [09:09:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:37]POST & json_proto [09:09:37]process_json_proto [09:09:37]json parsed OK: [09:09:37]protocol is kg_v1.0 [09:09:37]action value=close_receipt [09:09:37]process_action close_receipt [09:09:37]cmd_close_receipt [09:09:37]MH_GetDate [09:09:37]Write to MH i2c: F0 00 00 3C 0D 38 [09:09:37]Write i2c OK [09:09:37]MH_I2C_Read... [09:09:37]Read from MH i2c: F0 [09:09:37]MH_I2C_Read... [09:09:37]Read from MH i2c: F0 09 00 [09:09:37]MH_I2C_Read... [09:09:37]Read from MH i2c: F0 09 00 3C 0D 00 D3 0B C3 66 5F 7F 2B 66 B7 [09:09:37]GetLastDocTimeStamp 1724058539 [09:09:37]current date 1724058579 [09:09:37]FM_GetShiftState [09:09:37]SAM_PROTO_GetShiftState [09:09:37]wFMCommunicate request_size=4 [09:09:37]MH_SAM_APDU [09:09:37]CAPDU: 80 13 01 00 [09:09:37]Write to MH i2c: E2 08 00 3D 0D 80 13 01 00 00 00 00 00 C7 [09:09:37]Write i2c OK [09:09:37]MH_I2C_Read... [09:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:37]Read from MH i2c: E2 [09:09:37]MH_I2C_Read... [09:09:37]Read from MH i2c: E2 0E 00 [09:09:37]MH_I2C_Read... [09:09:37]Read from MH i2c: E2 0E 00 3D 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7E [09:09:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:09:37]wFMCommunicate OK [09:09:37]SAM_PROTO_GetShiftState done [09:09:37]FM_GetShiftState done [09:09:37]opened in 1724027888 [09:09:37]opened+sec_in_day 1724114288 [09:09:37]quantity*price = 60003 [09:09:37]sum+1 = 60004 [09:09:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 41 19.08.2024 09:09 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139206 ФПД: 61942580525111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139206&fm=61942580525111&tin=02508201610067®Number=0000000000092569&sum=60000 [09:09:38]StoreToDocumentArchive [09:09:38]shift 452 fd 139206 [09:09:38]save to /storage/0452/doc_00139206 [09:09:38]save last doc name /storage/0452/doc_00139206 to /storage/kkm_last_doc_name [09:09:38]save OK [09:09:38]Clear old archive folders... [09:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:38]tlvbuf is 01D79D70 [09:09:38]SAM_PROTO_ClearQueue [09:09:38]wFMCommunicate request_size=4 [09:09:38]MH_SAM_APDU [09:09:38]CAPDU: 80 09 00 00 [09:09:38]Write to MH i2c: E2 08 00 4A 0D 80 09 00 00 00 00 00 00 C9 [09:09:38]Write i2c OK [09:09:38]MH_I2C_Read... [09:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:38]Read from MH i2c: E2 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 03 00 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [09:09:38]RAPDU: 90 00 [09:09:38]wFMCommunicate OK [09:09:38]SAM_PROTO_ClearQueue done [09:09:38]KKMCreateOFDPacket [09:09:38]OFDProtocolAddRootSTLVToBuf [09:09:38]FM_MakeSignedData [09:09:38]FM_MakeSignedData [09:09:38]SAM_PROTO_SignData [09:09:38]wFMCommunicate request_size=4 [09:09:38]MH_SAM_APDU [09:09:38]CAPDU: 80 0D 01 02 [09:09:38]Write to MH i2c: E2 08 00 4B 0D 80 0D 01 02 00 00 00 00 D1 [09:09:38]Write i2c OK [09:09:38]MH_I2C_Read... [09:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:38]Read from MH i2c: E2 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 03 00 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [09:09:38]RAPDU: 90 00 [09:09:38]wFMCommunicate OK [09:09:38]wFMCommunicate request_size=255 [09:09:38]MH_SAM_APDU [09:09:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 29 00 00 00 F4 03 04 00 D3 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 1F 02 00 35 04 06 00 38 [09:09:38]Write to MH i2c: E2 02 01 4C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 29 00 00 00 F4 03 04 00 D3 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 1F 02 00 35 04 06 00 38 00 00 35 [09:09:38]Write i2c OK [09:09:38]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [09:09:39]RAPDU: 90 00 [09:09:39]wFMCommunicate OK [09:09:39]wFMCommunicate request_size=10 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 0D 02 02 05 56 21 82 38 37 [09:09:39]Write to MH i2c: E2 0D 00 4D 0D 80 0D 02 02 05 00 56 21 82 38 37 00 00 46 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [09:09:39]RAPDU: 90 00 [09:09:39]wFMCommunicate OK [09:09:39]wFMCommunicate request_size=4 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 0D 03 02 [09:09:39]Write to MH i2c: E2 08 00 4E 0D 80 0D 03 02 00 00 00 00 D6 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 0B 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 0B 00 4E 0D 00 B1 B5 81 D3 14 2C C2 85 90 00 18 [09:09:39]RAPDU: B1 B5 81 D3 14 2C C2 85 90 00 [09:09:39]wFMCommunicate OK [09:09:39]SAM_PROTO_SignData done [09:09:39]FM_MakeSignedData done [09:09:39]CreateOFDProtocolMessage [09:09:39]wFMCommunicate request_size=4 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 11 00 00 [09:09:39]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 17 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2D [09:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:09:39]wFMCommunicate OK [09:09:39]CreateOFDProtocolMessage done [09:09:39]OFDSenderStorePacket 139206 [09:09:39]StoreOFDPacket docnum=139206 [09:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2D 46 07 01 DF E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 29 00 00 00 F4 03 04 00 D3 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 1F 02 00 35 04 06 00 38 56 21 82 38 37 B1 B5 81 D3 14 2C C2 85 [09:09:39]CheckFolder [09:09:39]dirname=/storage/ofd_packets [09:09:39]CheckFolder done [09:09:39]ProducePacketName [09:09:39]name=ofd_packets/00139206 [09:09:39]NVStorageSaveData ofd_packets/00139206 [09:09:39]File name is /storage/ofd_packets/00139206 [09:09:39]Write 301 bytes [09:09:39]NVStorageSaveData done [09:09:39]OFDSenderStorePacket done [09:09:39]KKMCreateOFDPacket done [09:09:39]NVStorageSaveData kkm_last_timestamp [09:09:39]File name is /storage/kkm_last_timestamp [09:09:39]Write 4 bytes [09:09:39]NVStorageSaveData done [09:09:39]ExternCall_PrintAddStr [09:09:39]wPrintStart [09:09:39]Write to MH i2c: 01 00 00 50 0D 5D [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: 01 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: 01 07 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: 01 07 00 50 0D 00 00 00 00 00 FF 0F 72 [09:09:39]RasterBufferAndPrint [09:09:39]line Счет N : (1)593047 [09:09:39]line ИНН: 02508201610067 [09:09:39]line Контрольно-Кассовый Чек [09:09:39]line ПРОДАЖА [09:09:39]line ТРК (МРК, ГНК) : 62 [09:09:39]line Товар: 2710124130 [09:09:39]line Аи-92-К-5 [09:09:39]line 8.850 * 67.80 [09:09:39]line = 600.03 [09:09:39]line НДС 12% НСП 1% [09:09:39]line > о реализуемом товаре [09:09:39]line ОКРУГЛЕНИЕ: -0.03 [09:09:39]line ИТОГО: 600.00 [09:09:39]line Внесено: 600.00 [09:09:39]line СДАЧА: 0.00 [09:09:39]line НСП 1% : 5.31 [09:09:39]line НДС 12% : 63.72 [09:09:39]line Наличными: 600.00 [09:09:39]line Безнал.: 0.00 [09:09:39]line Место: АЗС № 136 "Партнер Нефть" [09:09:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:09:39]line СНО: Общий режим [09:09:39]line Чек 41 19.08.2024 09:09 [09:09:39]line Смена: 452 ФФД: 1.0 [09:09:39]line ЗНМ: 0300000067 [09:09:39]line РНМ: 0000000000092569 [09:09:39]line Версия ККМ: 001 [09:09:39]line ФМ: 0000000000871776 [09:09:39]line ФД: 139206 [09:09:39]line ФПД: 61942580525111 [09:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139206&fm=61942580525111&tin=02508201610067®Number=0000000000092569&sum=60000 [09:09:39]written 0, free lines is 4095 [09:09:39]OFD Sender: Processing packet 139206 [packets to send 137, broken 136] [09:09:39]ProducePacketName [09:09:39]name=ofd_packets/00139206 [09:09:39]OFD Sender: To server: pG, [09:09:39]CommunicateWithHost lk.salyk.kg:30040 [09:09:39]ConnectInit lk.salyk.kg [09:09:39]Connected sock=10 [09:09:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2D 46 07 01 DF E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 29 00 00 00 F4 03 04 00 D3 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 1F 02 00 35 04 06 00 38 56 21 82 38 37 B1 B5 81 D3 14 2C C2 85 [09:09: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 37 36 4F 00 00 00 2D A2 47 00 13 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 37 36 10 04 04 00 C6 1F 02 00 F4 03 04 00 69 B2 C2 66 B6 04 01 00 00 D3 B0 22 52 DD D0 C3 12 [09:09:39]CommunicateWithHost err = 0 [09:09:39]CheckOFDResponse [09:09:39]1017 (14) - 77093643461234 [09:09:39]1041 (16) - 0000000000871776 [09:09:39]1040 (4) - 139206 [09:09:39]1012 (4) - 19.08.2024 02:48 [09:09:39]1206 (1) - 0 [09:09:39]OFD Sender: Remove packet 139206 [09:09:39]ProducePacketName [09:09:39]name=ofd_packets/00139206 [09:09:39]NVStorageDeleteData [09:09:39]Write to MH i2c: 01 00 00 7B 0D 88 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: 01 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: 01 07 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 D6 0C 71 [09:09:39]RasterBufferAndPrint [09:09:39]line [09:09:39]line [09:09:39]line [09:09:39]line [09:09:39]line [09:09:39]written 0, free lines is 3290 [09:09:39]MH_Cut [09:09:39]Write to MH i2c: D1 01 00 82 0D 01 61 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: D1 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: D1 01 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: D1 01 00 82 0D 00 60 [09:09:39]Write to MH i2c: 01 00 00 83 0D 90 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:40]OFD Sender: No OFD packet to send [09:09:40]*** Cut start [09:09:40]*** Partial cut [09:09:40]*** CUTSNS_PIN = 1 [09:09:40]*** CUTSNS_PIN = 0 [09:09:40]*** Brake cut motor [09:09:40]Read from MH i2c: 01 [09:09:40]MH_I2C_Read... [09:09:40]*** Stop cut motor [09:09:40]*** Cut end [09:09:40]Read from MH i2c: 01 07 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: 01 07 00 83 0D 00 00 00 00 00 FF 0F A5 [09:09:40]process_action close_receipt done [09:09:40]requested_data is exist [09:09:40]produce_requested_data [09:09:40]requested_item fm.sn is exist - process it [09:09:40]wFMCommunicate request_size=4 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 11 00 00 [09:09:40]Write to MH i2c: E2 08 00 84 0D 80 11 00 00 00 00 00 00 0B [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 17 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 17 00 84 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [09:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:09:40]wFMCommunicate OK [09:09:40]requested_item fd.num is exist - process it [09:09:40]SAM_PROTO_GetFieldsCounters [09:09:40]wFMCommunicate request_size=4 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 13 00 00 [09:09:40]Write to MH i2c: E2 08 00 85 0D 80 13 00 00 00 00 00 00 0E [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 62 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 62 00 85 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [09:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:41]wFMCommunicate OK [09:09:41]SAM_PROTO_GetFieldsCounters done [09:09:41]requested_item shift.num is exist - process it [09:09:41]requested_item shift.opened is exist - process it [09:09:41]req_shift_opened [09:09:41]FM_GetShiftState [09:09:41]SAM_PROTO_GetShiftState [09:09:41]wFMCommunicate request_size=4 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 13 01 00 [09:09:41]Write to MH i2c: E2 08 00 86 0D 80 13 01 00 00 00 00 00 10 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]int [09:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:41]*** FLAG_PRN_KEY set [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 0E 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 0E 00 86 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C7 [09:09:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:09:41]wFMCommunicate OK [09:09:41]SAM_PROTO_GetShiftState done [09:09:41]FM_GetShiftState done [09:09:41]req_shift_opened done [09:09:41]requested_item shift.open_date is exist - process it [09:09:41]req_shift_open_date [09:09:41]req_shift_open_date done [09:09:41]produce_requested_data done [09:09:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139206,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:09:41]process_action_free close_receipt [09:09:41]json_value_free [09:09:41]json_value_free done [09:09:41]process_json_proto returns [09:09:41]Send response to host [09:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139206,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:09:41]free response buf [09:09:41]execute_script done [09:09:41]execute_script returns [09:09:41]free content buf [09:09:41]Sock 7.Close socket [09:09:41]Sock 7.Thread stoped [09:09:41]Write to MH i2c: 01 00 00 87 0D 94 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 87 0D 00 08 00 00 00 FF 0F B1 [09:09:41]state=0 [09:09:41]Key pressed [09:09:41]Feed [09:09:41]Write to MH i2c: D8 00 00 88 0D 6C [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: D8 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: D8 01 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: D8 01 00 88 0D 00 6D [09:09:41]int [09:09:41]Write to MH i2c: 01 00 00 89 0D 96 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 89 0D 00 48 00 00 00 3C 00 21 [09:09:41]state=2 [09:09:41]Key pressed [09:09:41]int [09:09:41]Write to MH i2c: 01 00 00 8A 0D 97 [09:09:41]*** FLAG_PRN_KEY reset [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 8A 0D 00 00 00 00 00 F8 0F A5 [09:09:41]state=2 [09:09:41]Stop feed [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:01]accept exits with 9 [09:10:01]New connection [09:10:01]New thread 3067059556 created [09:10:01]Thread 3067202916 joined [09:10:01]Waiting for new connection... [09:10:01] Sock 9.Parse request [09:10:01]Sock 9.Check first char [09:10:01]Sock 9.First char is OK [09:10:01]request: POST /json_proto HTTP/1.0 [09:10:01]Method: POST [09:10:01]URL: /json_proto [09:10:01]Method is POST - this is cgi request [09:10:01]url: /json_proto [09:10:01]query_string will be loaded in cgi processing [09:10:01]execute_cgi json_proto POST (null) [09:10:01]execute_cgi path=json_proto method=POST [09:10:01]POST find Content-Length [09:10:01]Host: 172.17.45.67:8080 [09:10:01]Content-Length: 797 [09:10:01]Content-Type: application/json [09:10:01] [09:10:01]POST finish read [09:10:01]Found Content-Length = 797 [09:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:01]execute_script... [09:10: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)593046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:01]POST & json_proto [09:10:01]process_json_proto [09:10:01]json parsed OK: [09:10:01]protocol is kg_v1.0 [09:10:01]action value=close_receipt [09:10:01]process_action close_receipt [09:10:01]cmd_close_receipt [09:10:01]MH_GetDate [09:10:01]Write to MH i2c: F0 00 00 8B 0D 87 [09:10:01]Write i2c OK [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: F0 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: F0 09 00 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: F0 09 00 8B 0D 00 EB 0B C3 66 5F 7F 2B 66 1E [09:10:01]GetLastDocTimeStamp 1724058579 [09:10:01]current date 1724058603 [09:10:01]FM_GetShiftState [09:10:01]SAM_PROTO_GetShiftState [09:10:01]wFMCommunicate request_size=4 [09:10:01]MH_SAM_APDU [09:10:01]CAPDU: 80 13 01 00 [09:10:01]Write to MH i2c: E2 08 00 8C 0D 80 13 01 00 00 00 00 00 16 [09:10:01]Write i2c OK [09:10:01]MH_I2C_Read... [09:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:01]Read from MH i2c: E2 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: E2 0E 00 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: E2 0E 00 8C 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CD [09:10:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:10:01]wFMCommunicate OK [09:10:01]SAM_PROTO_GetShiftState done [09:10:01]FM_GetShiftState done [09:10:01]opened in 1724027888 [09:10:01]opened+sec_in_day 1724114288 [09:10:01]quantity*price = 0 [09:10:01]sum+1 = 1 [09:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 42 19.08.2024 09:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139207 ФПД: 133785935904267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091004&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139207&fm=133785935904267&tin=02508201610067®Number=0000000000092569&sum=0 [09:10:02]StoreToDocumentArchive [09:10:02]shift 452 fd 139207 [09:10:02]save to /storage/0452/doc_00139207 [09:10:02]save last doc name /storage/0452/doc_00139207 to /storage/kkm_last_doc_name [09:10:02]save OK [09:10:02]Clear old archive folders... [09:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:10:02]tlvbuf is 01D79CB0 [09:10:02]SAM_PROTO_ClearQueue [09:10:02]wFMCommunicate request_size=4 [09:10:02]MH_SAM_APDU [09:10:02]CAPDU: 80 09 00 00 [09:10:02]Write to MH i2c: E2 08 00 99 0D 80 09 00 00 00 00 00 00 18 [09:10:02]Write i2c OK [09:10:02]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 03 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 03 00 99 0D 00 90 00 1A [09:10:03]RAPDU: 90 00 [09:10:03]wFMCommunicate OK [09:10:03]SAM_PROTO_ClearQueue done [09:10:03]KKMCreateOFDPacket [09:10:03]OFDProtocolAddRootSTLVToBuf [09:10:03]FM_MakeSignedData [09:10:03]FM_MakeSignedData [09:10:03]SAM_PROTO_SignData [09:10:03]wFMCommunicate request_size=4 [09:10:03]MH_SAM_APDU [09:10:03]CAPDU: 80 0D 01 02 [09:10:03]Write to MH i2c: E2 08 00 9A 0D 80 0D 01 02 00 00 00 00 20 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 03 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [09:10:03]RAPDU: 90 00 [09:10:03]wFMCommunicate OK [09:10:03]wFMCommunicate request_size=255 [09:10:03]MH_SAM_APDU [09:10:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 2A 00 00 00 F4 03 04 00 EC 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 1F 02 00 35 04 06 00 [09:10:03]Write to MH i2c: E2 02 01 9B 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 2A 00 00 00 F4 03 04 00 EC 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 1F 02 00 35 04 06 00 00 00 33 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 03 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [09:10:03]RAPDU: 90 00 [09:10:03]wFMCommunicate OK [09:10:03]wFMCommunicate request_size=11 [09:10:03]MH_SAM_APDU [09:10:03]CAPDU: 80 0D 02 02 06 79 AD 77 2F 7E 0B [09:10:03]Write to MH i2c: E2 0E 00 9C 0D 80 0D 02 02 06 00 79 AD 77 2F 7E 0B 00 00 84 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 03 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [09:10:03]RAPDU: 90 00 [09:10:03]wFMCommunicate OK [09:10:03]wFMCommunicate request_size=4 [09:10:03]MH_SAM_APDU [09:10:03]CAPDU: 80 0D 03 02 [09:10:03]Write to MH i2c: E2 08 00 9D 0D 80 0D 03 02 00 00 00 00 25 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 0B 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 0B 00 9D 0D 00 5B D0 38 85 5E F5 31 36 90 00 C8 [09:10:03]RAPDU: 5B D0 38 85 5E F5 31 36 90 00 [09:10:03]wFMCommunicate OK [09:10:03]SAM_PROTO_SignData done [09:10:03]FM_MakeSignedData done [09:10:03]CreateOFDProtocolMessage [09:10:03]wFMCommunicate request_size=4 [09:10:03]MH_SAM_APDU [09:10:03]CAPDU: 80 11 00 00 [09:10:03]Write to MH i2c: E2 08 00 9E 0D 80 11 00 00 00 00 00 00 25 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 17 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 17 00 9E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7C [09:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:10:03]wFMCommunicate OK [09:10:03]CreateOFDProtocolMessage done [09:10:03]OFDSenderStorePacket 139207 [09:10:03]StoreOFDPacket docnum=139207 [09:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 AD 97 08 01 B0 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 2A 00 00 00 F4 03 04 00 EC 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 1F 02 00 35 04 06 00 79 AD 77 2F 7E 0B 5B D0 38 85 5E F5 31 36 [09:10:03]CheckFolder [09:10:03]dirname=/storage/ofd_packets [09:10:03]CheckFolder done [09:10:03]ProducePacketName [09:10:03]name=ofd_packets/00139207 [09:10:03]NVStorageSaveData ofd_packets/00139207 [09:10:03]File name is /storage/ofd_packets/00139207 [09:10:03]Write 302 bytes [09:10:03]NVStorageSaveData done [09:10:03]OFDSenderStorePacket done [09:10:03]KKMCreateOFDPacket done [09:10:03]NVStorageSaveData kkm_last_timestamp [09:10:03]File name is /storage/kkm_last_timestamp [09:10:03]Write 4 bytes [09:10:03]NVStorageSaveData done [09:10:03]ExternCall_PrintAddStr [09:10:03]wPrintStart [09:10:03]Write to MH i2c: 01 00 00 9F 0D AC [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 07 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 07 00 9F 0D 00 00 00 00 00 FF 0F C1 [09:10:03]RasterBufferAndPrint [09:10:03]line Счет N : (1)593046 [09:10:03]line ИНН: 02508201610067 [09:10:03]line Контрольно-Кассовый Чек [09:10:03]line ПРОДАЖА [09:10:03]line ТРК (МРК, ГНК) : 21 [09:10:03]line Товар: 2710194210 [09:10:03]line ДТ(л)-К-5 [09:10:03]line 28.000 * 0.00 [09:10:03]line = 0.00 [09:10:03]line НДС 12% НСП 1% [09:10:03]line > о реализуемом товаре [09:10:03]line ИТОГО: 0.00 [09:10:03]line НСП 1% : 0.00 [09:10:03]line НДС 12% : 0.00 [09:10:03]line Наличными: 0.00 [09:10:03]line Безнал.: 0.00 [09:10:03]line Место: АЗС № 136 "Партнер Нефть" [09:10:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:10:03]line СНО: Общий режим [09:10:03]line Чек 42 19.08.2024 09:10 [09:10:03]line Смена: 452 ФФД: 1.0 [09:10:03]line ЗНМ: 0300000067 [09:10:03]line РНМ: 0000000000092569 [09:10:03]line Версия ККМ: 001 [09:10:03]line Талоны: Топливная Карта [09:10:03]line 99761 [09:10:03]line ФМ: 0000000000871776 [09:10:03]line ФД: 139207 [09:10:03]line ФПД: 133785935904267 [09:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091004&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139207&fm=133785935904267&tin=02508201610067®Number=0000000000092569&sum=0 [09:10:03]written 0, free lines is 4095 [09:10:03]OFD Sender: Processing packet 139207 [packets to send 137, broken 136] [09:10:03]ProducePacketName [09:10:03]name=ofd_packets/00139207 [09:10:03]OFD Sender: To server: pG, [09:10:03]CommunicateWithHost lk.salyk.kg:30040 [09:10:03]ConnectInit lk.salyk.kg [09:10:03]Write to MH i2c: 01 00 00 C9 0D D6 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 07 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 07 00 C9 0D 00 00 00 00 00 DA 0C C3 [09:10:03]RasterBufferAndPrint [09:10:03]line [09:10:03]line [09:10:03]line [09:10:03]line [09:10:03]line [09:10:03]written 0, free lines is 3296 [09:10:03]MH_Cut [09:10:03]Write to MH i2c: D1 01 00 D0 0D 01 AF [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: D1 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: D1 01 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: D1 01 00 D0 0D 00 AE [09:10:03]Write to MH i2c: 01 00 00 D1 0D DE [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]Connected sock=10 [09:10: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 37 36 10 01 00 00 AD 97 08 01 B0 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 2A 00 00 00 F4 03 04 00 EC 0B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 1F 02 00 35 04 06 00 79 AD 77 2F 7E 0B 5B D0 38 85 5E F5 31 36 [09:10: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 37 36 4F 00 00 00 D9 FF 47 00 20 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 37 36 10 04 04 00 C7 1F 02 00 F4 03 04 00 82 B2 C2 66 B6 04 01 00 00 AE B6 65 FC 9E 9D 90 C0 [09:10:04]CommunicateWithHost err = 0 [09:10:04]CheckOFDResponse [09:10:04]1017 (14) - 77093643461234 [09:10:04]1041 (16) - 0000000000871776 [09:10:04]1040 (4) - 139207 [09:10:04]1012 (4) - 19.08.2024 02:48 [09:10:04]1206 (1) - 0 [09:10:04]OFD Sender: Remove packet 139207 [09:10:04]ProducePacketName [09:10:04]name=ofd_packets/00139207 [09:10:04]NVStorageDeleteData [09:10:04]*** Cut start [09:10:04]*** Partial cut [09:10:04]*** CUTSNS_PIN = 1 [09:10:04]*** CUTSNS_PIN = 0 [09:10:04]OFD Sender: No OFD packet to send [09:10:04]*** Brake cut motor [09:10:05]Read from MH i2c: 01 [09:10:05]MH_I2C_Read... [09:10:05]*** Stop cut motor [09:10:05]*** Cut end [09:10:05]Read from MH i2c: 01 07 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: 01 07 00 D1 0D 00 00 00 00 00 FF 0F F3 [09:10:05]process_action close_receipt done [09:10:05]requested_data is exist [09:10:05]produce_requested_data [09:10:05]requested_item fm.sn is exist - process it [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 11 00 00 [09:10:05]Write to MH i2c: E2 08 00 D2 0D 80 11 00 00 00 00 00 00 59 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 17 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 17 00 D2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B0 [09:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:10:05]wFMCommunicate OK [09:10:05]requested_item fd.num is exist - process it [09:10:05]SAM_PROTO_GetFieldsCounters [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 13 00 00 [09:10:05]Write to MH i2c: E2 08 00 D3 0D 80 13 00 00 00 00 00 00 5C [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]int [09:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:05]*** FLAG_PRN_KEY set [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 62 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 62 00 D3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [09:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_GetFieldsCounters done [09:10:05]requested_item shift.num is exist - process it [09:10:05]requested_item shift.opened is exist - process it [09:10:05]req_shift_opened [09:10:05]FM_GetShiftState [09:10:05]SAM_PROTO_GetShiftState [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 13 01 00 [09:10:05]Write to MH i2c: 01 00 00 D4 0D E1 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: 01 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: 01 07 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: 01 07 00 D4 0D 00 08 00 00 00 FF 0F FE [09:10:05]state=0 [09:10:05]Key pressed [09:10:05]Feed [09:10:05]Write to MH i2c: D8 00 00 D5 0D B9 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: D8 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: D8 01 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: D8 01 00 D5 0D 00 BA [09:10:05]Write to MH i2c: E2 08 00 D6 0D 80 13 01 00 00 00 00 00 60 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 D6 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 17 [09:10:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_GetShiftState done [09:10:05]FM_GetShiftState done [09:10:05]req_shift_opened done [09:10:05]requested_item shift.open_date is exist - process it [09:10:05]req_shift_open_date [09:10:05]req_shift_open_date done [09:10:05]produce_requested_data done [09:10:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139207,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:10:05]process_action_free close_receipt [09:10:05]json_value_free [09:10:05]json_value_free done [09:10:05]process_json_proto returns [09:10:05]Send response to host [09:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139207,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:10:05]free response buf [09:10:05]execute_script done [09:10:05]execute_script returns [09:10:05]free content buf [09:10:05]Sock 9.Close socket [09:10:05]Sock 9.Thread stoped [09:10:05]*** FLAG_PRN_KEY reset [09:10:09]OFD Sender: No OFD packet to send [09:10:10]Write to MH i2c: 01 00 00 D7 0D E4 [09:10:10]Write i2c OK [09:10:10]MH_I2C_Read... [09:10:10]Read from MH i2c: 01 [09:10:10]MH_I2C_Read... [09:10:10]Read from MH i2c: 01 07 00 [09:10:10]MH_I2C_Read... [09:10:10]Read from MH i2c: 01 07 00 D7 0D 00 00 00 00 00 FF 0F F9 [09:10:10]state=2 [09:10:10]Stop feed [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:01]accept exits with 7 [09:16:01]New connection [09:16:01]New thread 3067202916 created [09:16:01]Thread 3067059556 joined [09:16:01]Waiting for new connection... [09:16:01] Sock 7.Parse request [09:16:01]Sock 7.Check first char [09:16:01]Sock 7.First char is OK [09:16:01]request: POST /json_proto HTTP/1.0 [09:16:01]Method: POST [09:16:01]URL: /json_proto [09:16:01]Method is POST - this is cgi request [09:16:01]url: /json_proto [09:16:01]query_string will be loaded in cgi processing [09:16:01]execute_cgi json_proto POST (null) [09:16:01]execute_cgi path=json_proto method=POST [09:16:01]POST find Content-Length [09:16:01]Host: 172.17.45.67:8080 [09:16:01]Content-Length: 682 [09:16:01]Content-Type: application/json [09:16:01] [09:16:01]POST finish read [09:16:01]Found Content-Length = 682 [09:16:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:16:01]execute_script... [09:16:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:16:01]POST & json_proto [09:16:01]process_json_proto [09:16:01]json parsed OK: [09:16:01]protocol is kg_v1.0 [09:16:01]action value=close_receipt [09:16:01]process_action close_receipt [09:16:01]cmd_close_receipt [09:16:01]MH_GetDate [09:16:01]Write to MH i2c: F0 00 00 D8 0D D4 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: F0 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: F0 09 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: F0 09 00 D8 0D 00 53 0D C3 66 5F 7F 2B 66 D5 [09:16:01]GetLastDocTimeStamp 1724058604 [09:16:01]current date 1724058963 [09:16:01]FM_GetShiftState [09:16:01]SAM_PROTO_GetShiftState [09:16:01]wFMCommunicate request_size=4 [09:16:01]MH_SAM_APDU [09:16:01]CAPDU: 80 13 01 00 [09:16:01]Write to MH i2c: E2 08 00 D9 0D 80 13 01 00 00 00 00 00 63 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 D9 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1A [09:16:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:16:01]wFMCommunicate OK [09:16:01]SAM_PROTO_GetShiftState done [09:16:01]FM_GetShiftState done [09:16:01]opened in 1724027888 [09:16:01]opened+sec_in_day 1724114288 [09:16:01]quantity*price = 150041 [09:16:01]sum+1 = 150042 [09:16:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 43 19.08.2024 09:16 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139208 ФПД: 61073837604852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091603&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139208&fm=61073837604852&tin=02508201610067®Number=0000000000092569&sum=150000 [09:16:02]StoreToDocumentArchive [09:16:02]shift 452 fd 139208 [09:16:02]save to /storage/0452/doc_00139208 [09:16:02]save last doc name /storage/0452/doc_00139208 to /storage/kkm_last_doc_name [09:16:02]save OK [09:16:02]Clear old archive folders... [09:16:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:02]tlvbuf is 01D77010 [09:16:02]SAM_PROTO_ClearQueue [09:16:02]wFMCommunicate request_size=4 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 09 00 00 [09:16:02]Write to MH i2c: E2 08 00 E6 0D 80 09 00 00 00 00 00 00 65 [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:02]Read from MH i2c: E2 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [09:16:02]RAPDU: 90 00 [09:16:02]wFMCommunicate OK [09:16:02]SAM_PROTO_ClearQueue done [09:16:02]KKMCreateOFDPacket [09:16:02]OFDProtocolAddRootSTLVToBuf [09:16:02]FM_MakeSignedData [09:16:02]FM_MakeSignedData [09:16:02]SAM_PROTO_SignData [09:16:02]wFMCommunicate request_size=4 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 0D 01 02 [09:16:02]Write to MH i2c: E2 08 00 E7 0D 80 0D 01 02 00 00 00 00 6D [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:02]Read from MH i2c: E2 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [09:16:02]RAPDU: 90 00 [09:16:02]wFMCommunicate OK [09:16:02]wFMCommunicate request_size=255 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 2B 00 00 00 F4 03 04 00 53 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 1F 02 00 35 04 06 00 37 [09:16:02]Write to MH i2c: E2 02 01 E8 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 2B 00 00 00 F4 03 04 00 53 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 1F 02 00 35 04 06 00 37 00 00 04 [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:02]Read from MH i2c: E2 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 E8 0D 00 90 00 69 [09:16:02]RAPDU: 90 00 [09:16:02]wFMCommunicate OK [09:16:02]wFMCommunicate request_size=10 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 0D 02 02 05 8B DC 65 3F F4 [09:16:02]Write to MH i2c: E2 0D 00 E9 0D 80 0D 02 02 05 00 8B DC 65 3F F4 00 00 79 [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:02]Read from MH i2c: E2 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 03 00 E9 0D 00 90 00 6A [09:16:02]RAPDU: 90 00 [09:16:02]wFMCommunicate OK [09:16:02]wFMCommunicate request_size=4 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 0D 03 02 [09:16:02]Write to MH i2c: E2 08 00 EA 0D 80 0D 03 02 00 00 00 00 72 [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:02]Read from MH i2c: E2 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 0B 00 [09:16:02]MH_I2C_Read... [09:16:02]Read from MH i2c: E2 0B 00 EA 0D 00 8D FB 46 5E B0 BA 6C 27 90 00 9C [09:16:02]RAPDU: 8D FB 46 5E B0 BA 6C 27 90 00 [09:16:02]wFMCommunicate OK [09:16:02]SAM_PROTO_SignData done [09:16:02]FM_MakeSignedData done [09:16:02]CreateOFDProtocolMessage [09:16:02]wFMCommunicate request_size=4 [09:16:02]MH_SAM_APDU [09:16:02]CAPDU: 80 11 00 00 [09:16:02]Write to MH i2c: E2 08 00 EB 0D 80 11 00 00 00 00 00 00 72 [09:16:02]Write i2c OK [09:16:02]MH_I2C_Read... [09:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:03]Read from MH i2c: E2 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 17 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: E2 17 00 EB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C9 [09:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:16:03]wFMCommunicate OK [09:16:03]CreateOFDProtocolMessage done [09:16:03]OFDSenderStorePacket 139208 [09:16:03]StoreOFDPacket docnum=139208 [09:16:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 51 AA 07 01 77 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 2B 00 00 00 F4 03 04 00 53 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 1F 02 00 35 04 06 00 37 8B DC 65 3F F4 8D FB 46 5E B0 BA 6C 27 [09:16:03]CheckFolder [09:16:03]dirname=/storage/ofd_packets [09:16:03]CheckFolder done [09:16:03]ProducePacketName [09:16:03]name=ofd_packets/00139208 [09:16:03]NVStorageSaveData ofd_packets/00139208 [09:16:03]File name is /storage/ofd_packets/00139208 [09:16:03]Write 301 bytes [09:16:03]NVStorageSaveData done [09:16:03]OFDSenderStorePacket done [09:16:03]KKMCreateOFDPacket done [09:16:03]NVStorageSaveData kkm_last_timestamp [09:16:03]File name is /storage/kkm_last_timestamp [09:16:03]Write 4 bytes [09:16:03]NVStorageSaveData done [09:16:03]ExternCall_PrintAddStr [09:16:03]wPrintStart [09:16:03]Write to MH i2c: 01 00 00 EC 0D F9 [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: 01 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: 01 07 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: 01 07 00 EC 0D 00 00 00 00 00 FF 0F 0E [09:16:03]RasterBufferAndPrint [09:16:03]line Счет N : (1)593048 [09:16:03]line ИНН: 02508201610067 [09:16:03]line Контрольно-Кассовый Чек [09:16:03]line ПРОДАЖА [09:16:03]line ТРК (МРК, ГНК) : 42 [09:16:03]line Товар: 2710124130 [09:16:03]line Аи-92-К-5 [09:16:03]line 22.130 * 67.80 [09:16:03]line = 1500.41 [09:16:03]line НДС 12% НСП 1% [09:16:03]line > о реализуемом товаре [09:16:03]line ОКРУГЛЕНИЕ: -0.41 [09:16:03]line ИТОГО: 1500.00 [09:16:03]line Внесено: 1500.00 [09:16:03]line СДАЧА: 0.00 [09:16:03]line НСП 1% : 13.28 [09:16:03]line НДС 12% : 159.34 [09:16:03]line Наличными: 1500.00 [09:16:03]line Безнал.: 0.00 [09:16:03]line Место: АЗС № 136 "Партнер Нефть" [09:16:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:16:03]line СНО: Общий режим [09:16:03]line Чек 43 19.08.2024 09:16 [09:16:03]line Смена: 452 ФФД: 1.0 [09:16:03]line ЗНМ: 0300000067 [09:16:03]line РНМ: 0000000000092569 [09:16:03]line Версия ККМ: 001 [09:16:03]line ФМ: 0000000000871776 [09:16:03]line ФД: 139208 [09:16:03]line ФПД: 61073837604852 [09:16:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091603&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139208&fm=61073837604852&tin=02508201610067®Number=0000000000092569&sum=150000 [09:16:03]OFD Sender: Processing packet 139208 [packets to send 137, broken 136] [09:16:03]ProducePacketName [09:16:03]name=ofd_packets/00139208 [09:16:03]OFD Sender: To server: pG, [09:16:03]CommunicateWithHost lk.salyk.kg:30040 [09:16:03]ConnectInit lk.salyk.kg [09:16:03]written 0, free lines is 4095 [09:16:03]Connected sock=10 [09:16:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 51 AA 07 01 77 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 2B 00 00 00 F4 03 04 00 53 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 1F 02 00 35 04 06 00 37 8B DC 65 3F F4 8D FB 46 5E B0 BA 6C 27 [09:16: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 37 36 4F 00 00 00 DA E8 47 00 1B 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 1F 02 00 F4 03 04 00 E9 B3 C2 66 B6 04 01 00 00 9C 9D 66 D5 11 E5 B4 39 [09:16:03]CommunicateWithHost err = 0 [09:16:03]CheckOFDResponse [09:16:03]1017 (14) - 77093643461234 [09:16:03]1041 (16) - 0000000000871776 [09:16:03]1040 (4) - 139208 [09:16:03]1012 (4) - 19.08.2024 02:54 [09:16:03]1206 (1) - 0 [09:16:03]OFD Sender: Remove packet 139208 [09:16:03]ProducePacketName [09:16:03]name=ofd_packets/00139208 [09:16:03]NVStorageDeleteData [09:16:03]Write to MH i2c: 01 00 00 17 0E 25 [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: 01 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: 01 07 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: 01 07 00 17 0E 00 00 00 00 00 DC 0C 14 [09:16:03]RasterBufferAndPrint [09:16:03]line [09:16:03]line [09:16:03]line [09:16:03]line [09:16:03]line [09:16:03]written 0, free lines is 3298 [09:16:03]MH_Cut [09:16:03]Write to MH i2c: D1 01 00 1E 0E 01 FE [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: D1 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: D1 01 00 [09:16:03]MH_I2C_Read... [09:16:03]Read from MH i2c: D1 01 00 1E 0E 00 FD [09:16:03]Write to MH i2c: 01 00 00 1F 0E 2D [09:16:03]Write i2c OK [09:16:03]MH_I2C_Read... [09:16:04]OFD Sender: No OFD packet to send [09:16:04]*** Cut start [09:16:04]*** Partial cut [09:16:04]*** CUTSNS_PIN = 1 [09:16:04]*** CUTSNS_PIN = 0 [09:16:04]*** Brake cut motor [09:16:05]Read from MH i2c: 01 [09:16:05]MH_I2C_Read... [09:16:05]*** Stop cut motor [09:16:05]*** Cut end [09:16:05]Read from MH i2c: 01 07 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: 01 07 00 1F 0E 00 00 00 00 00 FF 0F 42 [09:16:05]process_action close_receipt done [09:16:05]requested_data is exist [09:16:05]produce_requested_data [09:16:05]requested_item fm.sn is exist - process it [09:16:05]wFMCommunicate request_size=4 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 11 00 00 [09:16:05]Write to MH i2c: E2 08 00 20 0E 80 11 00 00 00 00 00 00 A8 [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 17 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 17 00 20 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FF [09:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:16:05]wFMCommunicate OK [09:16:05]requested_item fd.num is exist - process it [09:16:05]SAM_PROTO_GetFieldsCounters [09:16:05]wFMCommunicate request_size=4 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 13 00 00 [09:16:05]Write to MH i2c: E2 08 00 21 0E 80 13 00 00 00 00 00 00 AB [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 62 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 62 00 21 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [09:16:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:05]wFMCommunicate OK [09:16:05]SAM_PROTO_GetFieldsCounters done [09:16:05]requested_item shift.num is exist - process it [09:16:05]requested_item shift.opened is exist - process it [09:16:05]req_shift_opened [09:16:05]FM_GetShiftState [09:16:05]SAM_PROTO_GetShiftState [09:16:05]wFMCommunicate request_size=4 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 13 01 00 [09:16:05]Write to MH i2c: E2 08 00 22 0E 80 13 01 00 00 00 00 00 AD [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 0E 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 0E 00 22 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 64 [09:16:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:16:05]wFMCommunicate OK [09:16:05]SAM_PROTO_GetShiftState done [09:16:05]FM_GetShiftState done [09:16:05]req_shift_opened done [09:16:05]requested_item shift.open_date is exist - process it [09:16:05]req_shift_open_date [09:16:05]req_shift_open_date done [09:16:05]produce_requested_data done [09:16:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139208,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:16:05]process_action_free close_receipt [09:16:05]json_value_free [09:16:05]json_value_free done [09:16:05]process_json_proto returns [09:16:05]Send response to host [09:16:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139208,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:16:05]free response buf [09:16:05]execute_script done [09:16:05]execute_script returns [09:16:05]free content buf [09:16:05]Sock 7.Close socket [09:16:05]Sock 7.Thread stoped [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:03]accept exits with 9 [09:17:03]New connection [09:17:03]New thread 3067059556 created [09:17:03]Thread 3067202916 joined [09:17:03]Waiting for new connection... [09:17:03] Sock 9.Parse request [09:17:03]Sock 9.Check first char [09:17:03]Sock 9.First char is OK [09:17:03]request: POST /json_proto HTTP/1.0 [09:17:03]Method: POST [09:17:03]URL: /json_proto [09:17:03]Method is POST - this is cgi request [09:17:03]url: /json_proto [09:17:03]query_string will be loaded in cgi processing [09:17:03]execute_cgi json_proto POST (null) [09:17:03]execute_cgi path=json_proto method=POST [09:17:03]POST find Content-Length [09:17:03]Host: 172.17.45.67:8080 [09:17:03]Content-Length: 677 [09:17:03]Content-Type: application/json [09:17:03] [09:17:03]POST finish read [09:17:03]Found Content-Length = 677 [09:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [09:17:03]execute_script... [09:17: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)593049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [09:17:03]POST & json_proto [09:17:03]process_json_proto [09:17:03]json parsed OK: [09:17:03]protocol is kg_v1.0 [09:17:03]action value=close_receipt [09:17:03]process_action close_receipt [09:17:03]cmd_close_receipt [09:17:03]MH_GetDate [09:17:03]Write to MH i2c: F0 00 00 23 0E 20 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: F0 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: F0 09 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: F0 09 00 23 0E 00 91 0D C3 66 5F 7F 2B 66 5F [09:17:03]GetLastDocTimeStamp 1724058963 [09:17:03]current date 1724059025 [09:17:03]FM_GetShiftState [09:17:03]SAM_PROTO_GetShiftState [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 13 01 00 [09:17:03]Write to MH i2c: E2 08 00 24 0E 80 13 01 00 00 00 00 00 AF [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0E 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0E 00 24 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 66 [09:17:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:17:03]wFMCommunicate OK [09:17:03]SAM_PROTO_GetShiftState done [09:17:03]FM_GetShiftState done [09:17:03]opened in 1724027888 [09:17:03]opened+sec_in_day 1724114288 [09:17:03]quantity*price = 25018 [09:17:03]sum+1 = 25019 [09:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 44 19.08.2024 09:17 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139209 ФПД: 112005295088374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139209&fm=112005295088374&tin=02508201610067®Number=0000000000092569&sum=25000 [09:17:04]StoreToDocumentArchive [09:17:04]shift 452 fd 139209 [09:17:04]save to /storage/0452/doc_00139209 [09:17:04]save last doc name /storage/0452/doc_00139209 to /storage/kkm_last_doc_name [09:17:04]save OK [09:17:04]Clear old archive folders... [09:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:04]tlvbuf is 01D80F70 [09:17:04]SAM_PROTO_ClearQueue [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 09 00 00 [09:17:04]Write to MH i2c: E2 08 00 31 0E 80 09 00 00 00 00 00 00 B1 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_ClearQueue done [09:17:04]KKMCreateOFDPacket [09:17:04]OFDProtocolAddRootSTLVToBuf [09:17:04]FM_MakeSignedData [09:17:04]FM_MakeSignedData [09:17:04]SAM_PROTO_SignData [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 01 02 [09:17:04]Write to MH i2c: E2 08 00 32 0E 80 0D 01 02 00 00 00 00 B9 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 32 0E 00 90 00 B4 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=255 [09:17:04]MH_SAM_APDU [09:17: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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 2C 00 00 00 F4 03 04 00 91 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 1F 02 00 35 04 06 00 65 [09:17:04]Write to MH i2c: E2 02 01 33 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 2C 00 00 00 F4 03 04 00 91 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 1F 02 00 35 04 06 00 65 00 00 57 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=10 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 02 02 05 DE 43 D3 A2 F6 [09:17:04]Write to MH i2c: E2 0D 00 34 0E 80 0D 02 02 05 00 DE 43 D3 A2 F6 00 00 52 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 03 02 [09:17:04]Write to MH i2c: E2 08 00 35 0E 80 0D 03 02 00 00 00 00 BE [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0B 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0B 00 35 0E 00 C3 DD D3 FD CB 29 5F F7 90 00 79 [09:17:04]RAPDU: C3 DD D3 FD CB 29 5F F7 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_SignData done [09:17:04]FM_MakeSignedData done [09:17:04]CreateOFDProtocolMessage [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 11 00 00 [09:17:04]Write to MH i2c: E2 08 00 36 0E 80 11 00 00 00 00 00 00 BE [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 17 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 17 00 36 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [09:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:04]wFMCommunicate OK [09:17:04]CreateOFDProtocolMessage done [09:17:04]OFDSenderStorePacket 139209 [09:17:04]StoreOFDPacket docnum=139209 [09:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C8 9A 07 01 C2 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 2C 00 00 00 F4 03 04 00 91 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 1F 02 00 35 04 06 00 65 DE 43 D3 A2 F6 C3 DD D3 FD CB 29 5F F7 [09:17:04]CheckFolder [09:17:04]dirname=/storage/ofd_packets [09:17:04]CheckFolder done [09:17:04]ProducePacketName [09:17:04]name=ofd_packets/00139209 [09:17:04]NVStorageSaveData ofd_packets/00139209 [09:17:04]File name is /storage/ofd_packets/00139209 [09:17:04]Write 301 bytes [09:17:04]NVStorageSaveData done [09:17:04]OFDSenderStorePacket done [09:17:04]KKMCreateOFDPacket done [09:17:04]NVStorageSaveData kkm_last_timestamp [09:17:04]File name is /storage/kkm_last_timestamp [09:17:04]Write 4 bytes [09:17:04]NVStorageSaveData done [09:17:04]ExternCall_PrintAddStr [09:17:04]wPrintStart [09:17:04]Write to MH i2c: 01 00 00 37 0E 45 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 FF 0F 5A [09:17:04]RasterBufferAndPrint [09:17:04]line Счет N : (1)593049 [09:17:04]line ИНН: 02508201610067 [09:17:04]line Контрольно-Кассовый Чек [09:17:04]line ПРОДАЖА [09:17:04]line ТРК (МРК, ГНК) : 52 [09:17:04]line Товар: 2710124130 [09:17:04]line Аи-92-К-5 [09:17:04]line 3.690 * 67.80 [09:17:04]line = 250.18 [09:17:04]line НДС 12% НСП 1% [09:17:04]line > о реализуемом товаре [09:17:04]line ОКРУГЛЕНИЕ: -0.18 [09:17:04]line ИТОГО: 250.00 [09:17:04]line Внесено: 250.00 [09:17:04]line СДАЧА: 0.00 [09:17:04]line НСП 1% : 2.21 [09:17:04]line НДС 12% : 26.57 [09:17:04]line Наличными: 250.00 [09:17:04]line Безнал.: 0.00 [09:17:04]line Место: АЗС № 136 "Партнер Нефть" [09:17:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:17:04]line СНО: Общий режим [09:17:04]line Чек 44 19.08.2024 09:17 [09:17:04]line Смена: 452 ФФД: 1.0 [09:17:04]line ЗНМ: 0300000067 [09:17:04]line РНМ: 0000000000092569 [09:17:04]line Версия ККМ: 001 [09:17:04]line ФМ: 0000000000871776 [09:17:04]line ФД: 139209 [09:17:04]line ФПД: 112005295088374 [09:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139209&fm=112005295088374&tin=02508201610067®Number=0000000000092569&sum=25000 [09:17:05]OFD Sender: Processing packet 139209 [packets to send 137, broken 136] [09:17:05]ProducePacketName [09:17:05]name=ofd_packets/00139209 [09:17:05]OFD Sender: To server: pG, [09:17:05]CommunicateWithHost lk.salyk.kg:30040 [09:17:05]ConnectInit lk.salyk.kg [09:17:05]written 0, free lines is 4095 [09:17:05]Connected sock=10 [09:17: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 37 36 0F 01 00 00 C8 9A 07 01 C2 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 2C 00 00 00 F4 03 04 00 91 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 1F 02 00 35 04 06 00 65 DE 43 D3 A2 F6 C3 DD D3 FD CB 29 5F F7 [09:17: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 37 36 4F 00 00 00 38 AA 47 00 39 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 37 36 10 04 04 00 C9 1F 02 00 F4 03 04 00 27 B4 C2 66 B6 04 01 00 00 9A 5A 17 CF 71 01 24 90 [09:17:05]CommunicateWithHost err = 0 [09:17:05]CheckOFDResponse [09:17:05]1017 (14) - 77093643461234 [09:17:05]1041 (16) - 0000000000871776 [09:17:05]1040 (4) - 139209 [09:17:05]1012 (4) - 19.08.2024 02:55 [09:17:05]1206 (1) - 0 [09:17:05]OFD Sender: Remove packet 139209 [09:17:05]ProducePacketName [09:17:05]name=ofd_packets/00139209 [09:17:05]NVStorageDeleteData [09:17:05]Write to MH i2c: 01 00 00 62 0E 70 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 62 0E 00 00 00 00 00 D8 0C 5B [09:17:05]RasterBufferAndPrint [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]written 0, free lines is 3295 [09:17:05]MH_Cut [09:17:05]Write to MH i2c: D1 01 00 69 0E 01 49 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 69 0E 00 48 [09:17:05]Write to MH i2c: 01 00 00 6A 0E 78 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:06]OFD Sender: No OFD packet to send [09:17:06]*** Cut start [09:17:06]*** Partial cut [09:17:06]*** CUTSNS_PIN = 1 [09:17:06]*** CUTSNS_PIN = 0 [09:17:06]*** Brake cut motor [09:17:07]Read from MH i2c: 01 [09:17:07]MH_I2C_Read... [09:17:07]*** Stop cut motor [09:17:07]*** Cut end [09:17:07]Read from MH i2c: 01 07 00 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: 01 07 00 6A 0E 00 00 00 00 00 FF 0F 8D [09:17:07]process_action close_receipt done [09:17:07]requested_data is exist [09:17:07]produce_requested_data [09:17:07]requested_item fm.sn is exist - process it [09:17:07]wFMCommunicate request_size=4 [09:17:07]MH_SAM_APDU [09:17:07]CAPDU: 80 11 00 00 [09:17:07]Write to MH i2c: E2 08 00 6B 0E 80 11 00 00 00 00 00 00 F3 [09:17:07]Write i2c OK [09:17:07]MH_I2C_Read... [09:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:07]Read from MH i2c: E2 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 17 00 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 17 00 6B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4A [09:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:07]wFMCommunicate OK [09:17:07]requested_item fd.num is exist - process it [09:17:07]SAM_PROTO_GetFieldsCounters [09:17:07]wFMCommunicate request_size=4 [09:17:07]MH_SAM_APDU [09:17:07]CAPDU: 80 13 00 00 [09:17:07]Write to MH i2c: E2 08 00 6C 0E 80 13 00 00 00 00 00 00 F6 [09:17:07]Write i2c OK [09:17:07]MH_I2C_Read... [09:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:07]Read from MH i2c: E2 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 62 00 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 62 00 6C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [09:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:07]wFMCommunicate OK [09:17:07]SAM_PROTO_GetFieldsCounters done [09:17:07]requested_item shift.num is exist - process it [09:17:07]requested_item shift.opened is exist - process it [09:17:07]req_shift_opened [09:17:07]FM_GetShiftState [09:17:07]SAM_PROTO_GetShiftState [09:17:07]wFMCommunicate request_size=4 [09:17:07]MH_SAM_APDU [09:17:07]CAPDU: 80 13 01 00 [09:17:07]Write to MH i2c: E2 08 00 6D 0E 80 13 01 00 00 00 00 00 F8 [09:17:07]Write i2c OK [09:17:07]MH_I2C_Read... [09:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:07]Read from MH i2c: E2 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 0E 00 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 0E 00 6D 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AF [09:17:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:17:07]wFMCommunicate OK [09:17:07]SAM_PROTO_GetShiftState done [09:17:07]FM_GetShiftState done [09:17:07]req_shift_opened done [09:17:07]requested_item shift.open_date is exist - process it [09:17:07]req_shift_open_date [09:17:07]req_shift_open_date done [09:17:07]produce_requested_data done [09:17:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139209,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:17:07]process_action_free close_receipt [09:17:07]json_value_free [09:17:07]json_value_free done [09:17:07]process_json_proto returns [09:17:07]Send response to host [09:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139209,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:17:07]free response buf [09:17:07]execute_script done [09:17:07]execute_script returns [09:17:07]free content buf [09:17:07]Sock 9.Close socket [09:17:07]Sock 9.Thread stoped [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:52]accept exits with 7 [09:17:52]New connection [09:17:52]New thread 3067202916 created [09:17:52]Thread 3067059556 joined [09:17:52]Waiting for new connection... [09:17:52] Sock 7.Parse request [09:17:52]Sock 7.Check first char [09:17:52]Sock 7.First char is OK [09:17:52]request: POST /json_proto HTTP/1.0 [09:17:52]Method: POST [09:17:52]URL: /json_proto [09:17:52]Method is POST - this is cgi request [09:17:52]url: /json_proto [09:17:52]query_string will be loaded in cgi processing [09:17:52]execute_cgi json_proto POST (null) [09:17:52]execute_cgi path=json_proto method=POST [09:17:52]POST find Content-Length [09:17:52]Host: 172.17.45.67:8080 [09:17:52]Content-Length: 677 [09:17:52]Content-Type: application/json [09:17:52] [09:17:52]POST finish read [09:17:52]Found Content-Length = 677 [09:17:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:17:52]execute_script... [09:17: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)593050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:17:52]POST & json_proto [09:17:52]process_json_proto [09:17:52]json parsed OK: [09:17:52]protocol is kg_v1.0 [09:17:52]action value=close_receipt [09:17:52]process_action close_receipt [09:17:52]cmd_close_receipt [09:17:52]MH_GetDate [09:17:52]Write to MH i2c: F0 00 00 6E 0E 6B [09:17:52]Write i2c OK [09:17:52]MH_I2C_Read... [09:17:52]Read from MH i2c: F0 [09:17:52]MH_I2C_Read... [09:17:52]Read from MH i2c: F0 09 00 [09:17:52]MH_I2C_Read... [09:17:52]Read from MH i2c: F0 09 00 6E 0E 00 C2 0D C3 66 5F 7F 2B 66 DB [09:17:52]GetLastDocTimeStamp 1724059025 [09:17:52]current date 1724059074 [09:17:52]FM_GetShiftState [09:17:52]SAM_PROTO_GetShiftState [09:17:52]wFMCommunicate request_size=4 [09:17:52]MH_SAM_APDU [09:17:52]CAPDU: 80 13 01 00 [09:17:52]Write to MH i2c: E2 08 00 6F 0E 80 13 01 00 00 00 00 00 FA [09:17:52]Write i2c OK [09:17:52]MH_I2C_Read... [09:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:52]Read from MH i2c: E2 [09:17:52]MH_I2C_Read... [09:17:52]Read from MH i2c: E2 0E 00 [09:17:52]MH_I2C_Read... [09:17:52]Read from MH i2c: E2 0E 00 6F 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B1 [09:17:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:17:52]wFMCommunicate OK [09:17:52]SAM_PROTO_GetShiftState done [09:17:52]FM_GetShiftState done [09:17:52]opened in 1724027888 [09:17:52]opened+sec_in_day 1724114288 [09:17:52]quantity*price = 50036 [09:17:52]sum+1 = 50037 [09:17:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 45 19.08.2024 09:17 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139210 ФПД: 228127723583205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091754&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139210&fm=228127723583205&tin=02508201610067®Number=0000000000092569&sum=50000 [09:17:53]StoreToDocumentArchive [09:17:53]shift 452 fd 139210 [09:17:53]save to /storage/0452/doc_00139210 [09:17:53]save last doc name /storage/0452/doc_00139210 to /storage/kkm_last_doc_name [09:17:53]save OK [09:17:53]Clear old archive folders... [09:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:53]tlvbuf is 01D45CC0 [09:17:53]SAM_PROTO_ClearQueue [09:17:53]wFMCommunicate request_size=4 [09:17:53]MH_SAM_APDU [09:17:53]CAPDU: 80 09 00 00 [09:17:53]Write to MH i2c: E2 08 00 7C 0E 80 09 00 00 00 00 00 00 FC [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:53]Read from MH i2c: E2 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 03 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [09:17:53]RAPDU: 90 00 [09:17:53]wFMCommunicate OK [09:17:53]SAM_PROTO_ClearQueue done [09:17:53]KKMCreateOFDPacket [09:17:53]OFDProtocolAddRootSTLVToBuf [09:17:53]FM_MakeSignedData [09:17:53]FM_MakeSignedData [09:17:53]SAM_PROTO_SignData [09:17:53]wFMCommunicate request_size=4 [09:17:53]MH_SAM_APDU [09:17:53]CAPDU: 80 0D 01 02 [09:17:53]Write to MH i2c: E2 08 00 7D 0E 80 0D 01 02 00 00 00 00 04 [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:53]Read from MH i2c: E2 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 03 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 03 00 7D 0E 00 90 00 FF [09:17:53]RAPDU: 90 00 [09:17:53]wFMCommunicate OK [09:17:53]wFMCommunicate request_size=255 [09:17:53]MH_SAM_APDU [09:17: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 2D 00 00 00 F4 03 04 00 C2 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 1F 02 00 35 04 06 00 CF [09:17:53]Write to MH i2c: E2 02 01 7E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 2D 00 00 00 F4 03 04 00 C2 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 1F 02 00 35 04 06 00 CF 00 00 31 [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:53]Read from MH i2c: E2 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 03 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 03 00 7E 0E 00 90 00 00 [09:17:53]RAPDU: 90 00 [09:17:53]wFMCommunicate OK [09:17:53]wFMCommunicate request_size=10 [09:17:53]MH_SAM_APDU [09:17:53]CAPDU: 80 0D 02 02 05 7B 1F ED 76 E5 [09:17:53]Write to MH i2c: E2 0D 00 7F 0E 80 0D 02 02 05 00 7B 1F ED 76 E5 00 00 F3 [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:53]Read from MH i2c: E2 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 03 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [09:17:53]RAPDU: 90 00 [09:17:53]wFMCommunicate OK [09:17:53]wFMCommunicate request_size=4 [09:17:53]MH_SAM_APDU [09:17:53]CAPDU: 80 0D 03 02 [09:17:53]Write to MH i2c: E2 08 00 80 0E 80 0D 03 02 00 00 00 00 09 [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:54]Read from MH i2c: E2 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: E2 0B 00 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: E2 0B 00 80 0E 00 84 F8 71 49 6F E8 38 8B 90 00 5A [09:17:54]RAPDU: 84 F8 71 49 6F E8 38 8B 90 00 [09:17:54]wFMCommunicate OK [09:17:54]SAM_PROTO_SignData done [09:17:54]FM_MakeSignedData done [09:17:54]CreateOFDProtocolMessage [09:17:54]wFMCommunicate request_size=4 [09:17:54]MH_SAM_APDU [09:17:54]CAPDU: 80 11 00 00 [09:17:54]Write to MH i2c: E2 08 00 81 0E 80 11 00 00 00 00 00 00 09 [09:17:54]Write i2c OK [09:17:54]MH_I2C_Read... [09:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:54]Read from MH i2c: E2 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: E2 17 00 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: E2 17 00 81 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 60 [09:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:54]wFMCommunicate OK [09:17:54]CreateOFDProtocolMessage done [09:17:54]OFDSenderStorePacket 139210 [09:17:54]StoreOFDPacket docnum=139210 [09:17:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 FB 07 01 5E 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 2D 00 00 00 F4 03 04 00 C2 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 1F 02 00 35 04 06 00 CF 7B 1F ED 76 E5 84 F8 71 49 6F E8 38 8B [09:17:54]CheckFolder [09:17:54]dirname=/storage/ofd_packets [09:17:54]CheckFolder done [09:17:54]ProducePacketName [09:17:54]name=ofd_packets/00139210 [09:17:54]NVStorageSaveData ofd_packets/00139210 [09:17:54]File name is /storage/ofd_packets/00139210 [09:17:54]Write 301 bytes [09:17:54]NVStorageSaveData done [09:17:54]OFDSenderStorePacket done [09:17:54]KKMCreateOFDPacket done [09:17:54]NVStorageSaveData kkm_last_timestamp [09:17:54]File name is /storage/kkm_last_timestamp [09:17:54]Write 4 bytes [09:17:54]NVStorageSaveData done [09:17:54]OFD Sender: Processing packet 139210 [packets to send 137, broken 136] [09:17:54]ProducePacketName [09:17:54]name=ofd_packets/00139210 [09:17:54]OFD Sender: To server: pG, [09:17:54]CommunicateWithHost lk.salyk.kg:30040 [09:17:54]ConnectInit lk.salyk.kg [09:17:54]ExternCall_PrintAddStr [09:17:54]wPrintStart [09:17:54]Write to MH i2c: 01 00 00 82 0E 90 [09:17:54]Write i2c OK [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: 01 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: 01 07 00 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 FF 0F A5 [09:17:54]RasterBufferAndPrint [09:17:54]line Счет N : (1)593050 [09:17:54]line ИНН: 02508201610067 [09:17:54]line Контрольно-Кассовый Чек [09:17:54]line ПРОДАЖА [09:17:54]line ТРК (МРК, ГНК) : 62 [09:17:54]line Товар: 2710124130 [09:17:54]line Аи-92-К-5 [09:17:54]line 7.380 * 67.80 [09:17:54]line = 500.36 [09:17:54]line НДС 12% НСП 1% [09:17:54]line > о реализуемом товаре [09:17:54]line ОКРУГЛЕНИЕ: -0.36 [09:17:54]line ИТОГО: 500.00 [09:17:54]line Внесено: 500.00 [09:17:54]line СДАЧА: 0.00 [09:17:54]line НСП 1% : 4.43 [09:17:54]line НДС 12% : 53.14 [09:17:54]line Наличными: 500.00 [09:17:54]line Безнал.: 0.00 [09:17:54]line Место: АЗС № 136 "Партнер Нефть" [09:17:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:17:54]line СНО: Общий режим [09:17:54]line Чек 45 19.08.2024 09:17 [09:17:54]line Смена: 452 ФФД: 1.0 [09:17:54]line ЗНМ: 0300000067 [09:17:54]line РНМ: 0000000000092569 [09:17:54]line Версия ККМ: 001 [09:17:54]line ФМ: 0000000000871776 [09:17:54]line ФД: 139210 [09:17:54]line ФПД: 228127723583205 [09:17:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091754&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139210&fm=228127723583205&tin=02508201610067®Number=0000000000092569&sum=50000 [09:17:54]Connected sock=11 [09:17: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 37 36 0F 01 00 00 93 FB 07 01 5E 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 2D 00 00 00 F4 03 04 00 C2 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 1F 02 00 35 04 06 00 CF 7B 1F ED 76 E5 84 F8 71 49 6F E8 38 8B [09:17:54]written 0, free lines is 4095 [09:17: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 37 36 4F 00 00 00 31 AA 47 00 21 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 37 36 10 04 04 00 CA 1F 02 00 F4 03 04 00 58 B4 C2 66 B6 04 01 00 00 C4 32 56 3D EE 2E 58 FE [09:17:54]CommunicateWithHost err = 0 [09:17:54]CheckOFDResponse [09:17:54]1017 (14) - 77093643461234 [09:17:54]1041 (16) - 0000000000871776 [09:17:54]1040 (4) - 139210 [09:17:54]1012 (4) - 19.08.2024 02:56 [09:17:54]1206 (1) - 0 [09:17:54]OFD Sender: Remove packet 139210 [09:17:54]ProducePacketName [09:17:54]name=ofd_packets/00139210 [09:17:54]NVStorageDeleteData [09:17:54]Write to MH i2c: 01 00 00 AD 0E BB [09:17:54]Write i2c OK [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: 01 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: 01 07 00 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: 01 07 00 AD 0E 00 00 00 00 00 C6 0C 94 [09:17:54]RasterBufferAndPrint [09:17:54]line [09:17:54]line [09:17:54]line [09:17:54]line [09:17:54]line [09:17:54]written 0, free lines is 3276 [09:17:54]MH_Cut [09:17:54]Write to MH i2c: D1 01 00 B4 0E 01 94 [09:17:54]Write i2c OK [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: D1 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: D1 01 00 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: D1 01 00 B4 0E 00 93 [09:17:54]Write to MH i2c: 01 00 00 B5 0E C3 [09:17:54]Write i2c OK [09:17:54]MH_I2C_Read... [09:17:55]OFD Sender: No OFD packet to send [09:17:55]*** Cut start [09:17:55]*** Partial cut [09:17:55]*** CUTSNS_PIN = 1 [09:17:55]*** CUTSNS_PIN = 0 [09:17:55]*** Brake cut motor [09:17:56]Read from MH i2c: 01 [09:17:56]MH_I2C_Read... [09:17:56]*** Stop cut motor [09:17:56]*** Cut end [09:17:56]Read from MH i2c: 01 07 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: 01 07 00 B5 0E 00 00 00 00 00 FF 0F D8 [09:17:56]process_action close_receipt done [09:17:56]requested_data is exist [09:17:56]produce_requested_data [09:17:56]requested_item fm.sn is exist - process it [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 11 00 00 [09:17:56]Write to MH i2c: E2 08 00 B6 0E 80 11 00 00 00 00 00 00 3E [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 17 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 17 00 B6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 95 [09:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:56]wFMCommunicate OK [09:17:56]requested_item fd.num is exist - process it [09:17:56]SAM_PROTO_GetFieldsCounters [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 13 00 00 [09:17:56]Write to MH i2c: E2 08 00 B7 0E 80 13 00 00 00 00 00 00 41 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 62 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 62 00 B7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [09:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:56]wFMCommunicate OK [09:17:56]SAM_PROTO_GetFieldsCounters done [09:17:56]requested_item shift.num is exist - process it [09:17:56]requested_item shift.opened is exist - process it [09:17:56]req_shift_opened [09:17:56]FM_GetShiftState [09:17:56]SAM_PROTO_GetShiftState [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 13 01 00 [09:17:56]Write to MH i2c: E2 08 00 B8 0E 80 13 01 00 00 00 00 00 43 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0E 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0E 00 B8 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FA [09:17:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:17:56]wFMCommunicate OK [09:17:56]SAM_PROTO_GetShiftState done [09:17:56]FM_GetShiftState done [09:17:56]req_shift_opened done [09:17:56]requested_item shift.open_date is exist - process it [09:17:56]req_shift_open_date [09:17:56]req_shift_open_date done [09:17:56]produce_requested_data done [09:17:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139210,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:17:56]process_action_free close_receipt [09:17:56]json_value_free [09:17:56]json_value_free done [09:17:56]process_json_proto returns [09:17:56]Send response to host [09:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139210,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:17:56]free response buf [09:17:56]execute_script done [09:17:56]execute_script returns [09:17:56]free content buf [09:17:56]Sock 7.Close socket [09:17:56]Sock 7.Thread stoped [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:34]accept exits with 9 [09:18:34]New connection [09:18:34]New thread 3067059556 created [09:18:34]Thread 3067202916 joined [09:18:34]Waiting for new connection... [09:18:34] Sock 9.Parse request [09:18:34]Sock 9.Check first char [09:18:34]Sock 9.First char is OK [09:18:34]request: POST /json_proto HTTP/1.0 [09:18:34]Method: POST [09:18:34]URL: /json_proto [09:18:34]Method is POST - this is cgi request [09:18:34]url: /json_proto [09:18:34]query_string will be loaded in cgi processing [09:18:34]execute_cgi json_proto POST (null) [09:18:34]execute_cgi path=json_proto method=POST [09:18:34]POST find Content-Length [09:18:34]Host: 172.17.45.67:8080 [09:18:34]Content-Length: 658 [09:18:34]Content-Type: application/json [09:18:34] [09:18:34]POST finish read [09:18:34]Found Content-Length = 658 [09:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:18:34]execute_script... [09:18: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)593051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:18:34]POST & json_proto [09:18:34]process_json_proto [09:18:34]json parsed OK: [09:18:34]protocol is kg_v1.0 [09:18:34]action value=close_receipt [09:18:34]process_action close_receipt [09:18:34]cmd_close_receipt [09:18:34]MH_GetDate [09:18:34]Write to MH i2c: F0 00 00 B9 0E B6 [09:18:34]Write i2c OK [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: F0 [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: F0 09 00 [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: F0 09 00 B9 0E 00 EC 0D C3 66 5F 7F 2B 66 50 [09:18:34]GetLastDocTimeStamp 1724059074 [09:18:34]current date 1724059116 [09:18:34]FM_GetShiftState [09:18:34]SAM_PROTO_GetShiftState [09:18:34]wFMCommunicate request_size=4 [09:18:34]MH_SAM_APDU [09:18:34]CAPDU: 80 13 01 00 [09:18:34]Write to MH i2c: E2 08 00 BA 0E 80 13 01 00 00 00 00 00 45 [09:18:34]Write i2c OK [09:18:34]MH_I2C_Read... [09:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:34]Read from MH i2c: E2 [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: E2 0E 00 [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: E2 0E 00 BA 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FC [09:18:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:18:34]wFMCommunicate OK [09:18:34]SAM_PROTO_GetShiftState done [09:18:34]FM_GetShiftState done [09:18:34]opened in 1724027888 [09:18:34]opened+sec_in_day 1724114288 [09:18:34]quantity*price = 40041 [09:18:34]sum+1 = 40043 [09:18:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 46 19.08.2024 09:18 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139211 ФПД: 75953147605163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091836&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139211&fm=75953147605163&tin=02508201610067®Number=0000000000092569&sum=40000 [09:18:35]StoreToDocumentArchive [09:18:35]shift 452 fd 139211 [09:18:35]save to /storage/0452/doc_00139211 [09:18:35]save last doc name /storage/0452/doc_00139211 to /storage/kkm_last_doc_name [09:18:35]save OK [09:18:35]Clear old archive folders... [09:18:35]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:18:35]tlvbuf is 01D73E70 [09:18:35]SAM_PROTO_ClearQueue [09:18:35]wFMCommunicate request_size=4 [09:18:35]MH_SAM_APDU [09:18:35]CAPDU: 80 09 00 00 [09:18:35]Write to MH i2c: E2 08 00 C7 0E 80 09 00 00 00 00 00 00 47 [09:18:35]Write i2c OK [09:18:35]MH_I2C_Read... [09:18:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:35]Read from MH i2c: E2 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 03 00 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [09:18:35]RAPDU: 90 00 [09:18:35]wFMCommunicate OK [09:18:35]SAM_PROTO_ClearQueue done [09:18:35]KKMCreateOFDPacket [09:18:35]OFDProtocolAddRootSTLVToBuf [09:18:35]FM_MakeSignedData [09:18:35]FM_MakeSignedData [09:18:35]SAM_PROTO_SignData [09:18:35]wFMCommunicate request_size=4 [09:18:35]MH_SAM_APDU [09:18:35]CAPDU: 80 0D 01 02 [09:18:35]Write to MH i2c: E2 08 00 C8 0E 80 0D 01 02 00 00 00 00 4F [09:18:35]Write i2c OK [09:18:35]MH_I2C_Read... [09:18:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:35]Read from MH i2c: E2 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 03 00 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [09:18:35]RAPDU: 90 00 [09:18:35]wFMCommunicate OK [09:18:35]wFMCommunicate request_size=253 [09:18:35]MH_SAM_APDU [09:18:35]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EC 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 1F 02 00 35 04 06 00 45 14 38 61 F0 AB [09:18:35]Write to MH i2c: E2 00 01 C9 0E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EC 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 1F 02 00 35 04 06 00 45 14 38 61 F0 AB 00 00 38 [09:18:35]Write i2c OK [09:18:35]MH_I2C_Read... [09:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:35]Read from MH i2c: E2 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 03 00 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [09:18:35]RAPDU: 90 00 [09:18:35]wFMCommunicate OK [09:18:35]wFMCommunicate request_size=4 [09:18:35]MH_SAM_APDU [09:18:35]CAPDU: 80 0D 03 02 [09:18:35]Write to MH i2c: E2 08 00 CA 0E 80 0D 03 02 00 00 00 00 53 [09:18:35]Write i2c OK [09:18:35]MH_I2C_Read... [09:18:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:35]Read from MH i2c: E2 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 0B 00 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 0B 00 CA 0E 00 15 39 69 35 A0 39 78 A4 90 00 35 [09:18:35]RAPDU: 15 39 69 35 A0 39 78 A4 90 00 [09:18:35]wFMCommunicate OK [09:18:35]SAM_PROTO_SignData done [09:18:35]FM_MakeSignedData done [09:18:35]CreateOFDProtocolMessage [09:18:35]wFMCommunicate request_size=4 [09:18:35]MH_SAM_APDU [09:18:35]CAPDU: 80 11 00 00 [09:18:35]Write to MH i2c: E2 08 00 CB 0E 80 11 00 00 00 00 00 00 53 [09:18:35]Write i2c OK [09:18:35]MH_I2C_Read... [09:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:35]Read from MH i2c: E2 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 17 00 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: E2 17 00 CB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [09:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:18:35]wFMCommunicate OK [09:18:35]CreateOFDProtocolMessage done [09:18:35]OFDSenderStorePacket 139211 [09:18:35]StoreOFDPacket docnum=139211 [09:18:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 84 53 00 01 44 9E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EC 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 1F 02 00 35 04 06 00 45 14 38 61 F0 AB 15 39 69 35 A0 39 78 A4 [09:18:35]CheckFolder [09:18:35]dirname=/storage/ofd_packets [09:18:35]CheckFolder done [09:18:35]ProducePacketName [09:18:35]name=ofd_packets/00139211 [09:18:35]NVStorageSaveData ofd_packets/00139211 [09:18:35]File name is /storage/ofd_packets/00139211 [09:18:35]Write 294 bytes [09:18:35]NVStorageSaveData done [09:18:35]OFDSenderStorePacket done [09:18:35]KKMCreateOFDPacket done [09:18:35]NVStorageSaveData kkm_last_timestamp [09:18:35]File name is /storage/kkm_last_timestamp [09:18:35]Write 4 bytes [09:18:35]NVStorageSaveData done [09:18:35]ExternCall_PrintAddStr [09:18:35]wPrintStart [09:18:35]Write to MH i2c: 01 00 00 CC 0E DA [09:18:35]Write i2c OK [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: 01 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: 01 07 00 [09:18:35]MH_I2C_Read... [09:18:35]Read from MH i2c: 01 07 00 CC 0E 00 00 00 00 00 FF 0F EF [09:18:35]RasterBufferAndPrint [09:18:35]line Счет N : (1)593051 [09:18:35]line ИНН: 02508201610067 [09:18:35]line Контрольно-Кассовый Чек [09:18:35]line ПРОДАЖА [09:18:35]line ТРК (МРК, ГНК) : 43 [09:18:35]line Товар: 2710124130 [09:18:35]line SU-92 [09:18:35]line 5.820 * 68.80 [09:18:35]line = 400.42 [09:18:35]line НДС 12% НСП 1% [09:18:35]line > о реализуемом товаре [09:18:35]line ОКРУГЛЕНИЕ: -0.42 [09:18:35]line ИТОГО: 400.00 [09:18:35]line Внесено: 400.00 [09:18:35]line СДАЧА: 0.00 [09:18:35]line НСП 1% : 3.54 [09:18:35]line НДС 12% : 42.52 [09:18:35]line Наличными: 400.00 [09:18:35]line Безнал.: 0.00 [09:18:35]line Место: АЗС № 136 "Партнер Нефть" [09:18:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:18:35]line СНО: Общий режим [09:18:35]line Чек 46 19.08.2024 09:18 [09:18:35]line Смена: 452 ФФД: 1.0 [09:18:35]line ЗНМ: 0300000067 [09:18:35]line РНМ: 0000000000092569 [09:18:35]line Версия ККМ: 001 [09:18:35]line ФМ: 0000000000871776 [09:18:35]line ФД: 139211 [09:18:35]line ФПД: 75953147605163 [09:18:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091836&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139211&fm=75953147605163&tin=02508201610067®Number=0000000000092569&sum=40000 [09:18:36]OFD Sender: Processing packet 139211 [packets to send 137, broken 136] [09:18:36]ProducePacketName [09:18:36]name=ofd_packets/00139211 [09:18:36]OFD Sender: To server: pG, [09:18:36]CommunicateWithHost lk.salyk.kg:30040 [09:18:36]ConnectInit lk.salyk.kg [09:18:36]written 0, free lines is 4095 [09:18:36]Connected sock=10 [09:18: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 37 36 08 01 00 00 84 53 00 01 44 9E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EC 0D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 1F 02 00 35 04 06 00 45 14 38 61 F0 AB 15 39 69 35 A0 39 78 A4 [09:18: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 37 36 4F 00 00 00 F1 78 47 00 4A 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 37 36 10 04 04 00 CB 1F 02 00 F4 03 04 00 82 B4 C2 66 B6 04 01 00 00 06 C7 5E 49 E3 3C 9E E4 [09:18:36]CommunicateWithHost err = 0 [09:18:36]CheckOFDResponse [09:18:36]1017 (14) - 77093643461234 [09:18:36]1041 (16) - 0000000000871776 [09:18:36]1040 (4) - 139211 [09:18:36]1012 (4) - 19.08.2024 02:57 [09:18:36]1206 (1) - 0 [09:18:36]OFD Sender: Remove packet 139211 [09:18:36]ProducePacketName [09:18:36]name=ofd_packets/00139211 [09:18:36]NVStorageDeleteData [09:18:36]Write to MH i2c: 01 00 00 F7 0E 05 [09:18:36]Write i2c OK [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: 01 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: 01 07 00 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: 01 07 00 F7 0E 00 00 00 00 00 DA 0C F2 [09:18:36]RasterBufferAndPrint [09:18:36]line [09:18:36]line [09:18:36]line [09:18:36]line [09:18:36]line [09:18:36]written 0, free lines is 3297 [09:18:36]MH_Cut [09:18:36]Write to MH i2c: D1 01 00 FE 0E 01 DE [09:18:36]Write i2c OK [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: D1 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: D1 01 00 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: D1 01 00 FE 0E 00 DD [09:18:36]Write to MH i2c: 01 00 00 FF 0E 0D [09:18:36]Write i2c OK [09:18:36]MH_I2C_Read... [09:18:37]OFD Sender: No OFD packet to send [09:18:37]*** Cut start [09:18:37]*** Partial cut [09:18:37]*** CUTSNS_PIN = 1 [09:18:37]*** CUTSNS_PIN = 0 [09:18:37]*** Brake cut motor [09:18:37]Read from MH i2c: 01 [09:18:37]MH_I2C_Read... [09:18:37]*** Stop cut motor [09:18:37]*** Cut end [09:18:37]Read from MH i2c: 01 07 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: 01 07 00 FF 0E 00 00 00 00 00 FF 0F 22 [09:18:37]process_action close_receipt done [09:18:37]requested_data is exist [09:18:37]produce_requested_data [09:18:37]requested_item fm.sn is exist - process it [09:18:37]wFMCommunicate request_size=4 [09:18:37]MH_SAM_APDU [09:18:37]CAPDU: 80 11 00 00 [09:18:37]Write to MH i2c: E2 08 00 00 0F 80 11 00 00 00 00 00 00 89 [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:37]Read from MH i2c: E2 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 17 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 17 00 00 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [09:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:18:37]wFMCommunicate OK [09:18:37]requested_item fd.num is exist - process it [09:18:37]SAM_PROTO_GetFieldsCounters [09:18:37]wFMCommunicate request_size=4 [09:18:37]MH_SAM_APDU [09:18:37]CAPDU: 80 13 00 00 [09:18:37]Write to MH i2c: E2 08 00 01 0F 80 13 00 00 00 00 00 00 8C [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:38]Read from MH i2c: E2 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 62 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 62 00 01 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [09:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:38]wFMCommunicate OK [09:18:38]SAM_PROTO_GetFieldsCounters done [09:18:38]requested_item shift.num is exist - process it [09:18:38]requested_item shift.opened is exist - process it [09:18:38]req_shift_opened [09:18:38]FM_GetShiftState [09:18:38]SAM_PROTO_GetShiftState [09:18:38]wFMCommunicate request_size=4 [09:18:38]MH_SAM_APDU [09:18:38]CAPDU: 80 13 01 00 [09:18:38]Write to MH i2c: E2 08 00 02 0F 80 13 01 00 00 00 00 00 8E [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:38]Read from MH i2c: E2 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 0E 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 0E 00 02 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 45 [09:18:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:18:38]wFMCommunicate OK [09:18:38]SAM_PROTO_GetShiftState done [09:18:38]FM_GetShiftState done [09:18:38]req_shift_opened done [09:18:38]requested_item shift.open_date is exist - process it [09:18:38]req_shift_open_date [09:18:38]req_shift_open_date done [09:18:38]produce_requested_data done [09:18:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139211,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:18:38]process_action_free close_receipt [09:18:38]json_value_free [09:18:38]json_value_free done [09:18:38]process_json_proto returns [09:18:38]Send response to host [09:18:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139211,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:18:38]free response buf [09:18:38]execute_script done [09:18:38]execute_script returns [09:18:38]free content buf [09:18:38]Sock 9.Close socket [09:18:38]Sock 9.Thread stoped [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:33]accept exits with 7 [09:23:33]New connection [09:23:33]New thread 3067202916 created [09:23:33]Thread 3067059556 joined [09:23:33]Waiting for new connection... [09:23:33] Sock 7.Parse request [09:23:33]Sock 7.Check first char [09:23:33]Sock 7.First char is OK [09:23:33]request: POST /json_proto HTTP/1.0 [09:23:33]Method: POST [09:23:33]URL: /json_proto [09:23:33]Method is POST - this is cgi request [09:23:33]url: /json_proto [09:23:33]query_string will be loaded in cgi processing [09:23:33]execute_cgi json_proto POST (null) [09:23:33]execute_cgi path=json_proto method=POST [09:23:33]POST find Content-Length [09:23:33]Host: 172.17.45.67:8080 [09:23:33]Content-Length: 663 [09:23:33]Content-Type: application/json [09:23:33] [09:23:33]POST finish read [09:23:33]Found Content-Length = 663 [09:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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:23:33]execute_script... [09:23: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)593052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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:23:33]POST & json_proto [09:23:33]process_json_proto [09:23:33]json parsed OK: [09:23:33]protocol is kg_v1.0 [09:23:33]action value=close_receipt [09:23:33]process_action close_receipt [09:23:33]cmd_close_receipt [09:23:33]MH_GetDate [09:23:33]Write to MH i2c: F0 00 00 03 0F 01 [09:23:33]Write i2c OK [09:23:33]MH_I2C_Read... [09:23:33]Read from MH i2c: F0 [09:23:33]MH_I2C_Read... [09:23:33]Read from MH i2c: F0 09 00 [09:23:33]MH_I2C_Read... [09:23:33]Read from MH i2c: F0 09 00 03 0F 00 17 0F C3 66 5F 7F 2B 66 C8 [09:23:33]GetLastDocTimeStamp 1724059116 [09:23:33]current date 1724059415 [09:23:33]FM_GetShiftState [09:23:33]SAM_PROTO_GetShiftState [09:23:33]wFMCommunicate request_size=4 [09:23:33]MH_SAM_APDU [09:23:33]CAPDU: 80 13 01 00 [09:23:33]Write to MH i2c: E2 08 00 04 0F 80 13 01 00 00 00 00 00 90 [09:23:33]Write i2c OK [09:23:33]MH_I2C_Read... [09:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:33]Read from MH i2c: E2 [09:23:33]MH_I2C_Read... [09:23:33]Read from MH i2c: E2 0E 00 [09:23:33]MH_I2C_Read... [09:23:33]Read from MH i2c: E2 0E 00 04 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 47 [09:23:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:23:33]wFMCommunicate OK [09:23:33]SAM_PROTO_GetShiftState done [09:23:33]FM_GetShiftState done [09:23:33]opened in 1724027888 [09:23:33]opened+sec_in_day 1724114288 [09:23:33]quantity*price = 100035 [09:23:33]sum+1 = 100036 [09:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 47 19.08.2024 09:23 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139212 ФПД: 185034345511423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092335&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139212&fm=185034345511423&tin=02508201610067®Number=0000000000092569&sum=100000 [09:23:34]StoreToDocumentArchive [09:23:34]shift 452 fd 139212 [09:23:34]save to /storage/0452/doc_00139212 [09:23:34]save last doc name /storage/0452/doc_00139212 to /storage/kkm_last_doc_name [09:23:34]save OK [09:23:34]Clear old archive folders... [09:23:34]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:23:34]tlvbuf is 01DA61B0 [09:23:34]SAM_PROTO_ClearQueue [09:23:34]wFMCommunicate request_size=4 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 09 00 00 [09:23:34]Write to MH i2c: E2 08 00 11 0F 80 09 00 00 00 00 00 00 92 [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 11 0F 00 90 00 94 [09:23:34]RAPDU: 90 00 [09:23:34]wFMCommunicate OK [09:23:34]SAM_PROTO_ClearQueue done [09:23:34]KKMCreateOFDPacket [09:23:34]OFDProtocolAddRootSTLVToBuf [09:23:34]FM_MakeSignedData [09:23:34]FM_MakeSignedData [09:23:34]SAM_PROTO_SignData [09:23:34]wFMCommunicate request_size=4 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 0D 01 02 [09:23:34]Write to MH i2c: E2 08 00 12 0F 80 0D 01 02 00 00 00 00 9A [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 12 0F 00 90 00 95 [09:23:34]RAPDU: 90 00 [09:23:34]wFMCommunicate OK [09:23:34]wFMCommunicate request_size=253 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 17 0F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 1F 02 00 35 04 06 00 A8 49 AA 6F 79 FF [09:23:34]Write to MH i2c: E2 00 01 13 0F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 17 0F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 1F 02 00 35 04 06 00 A8 49 AA 6F 79 FF 00 00 C4 [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [09:23:34]RAPDU: 90 00 [09:23:34]wFMCommunicate OK [09:23:34]wFMCommunicate request_size=4 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 0D 03 02 [09:23:34]Write to MH i2c: E2 08 00 14 0F 80 0D 03 02 00 00 00 00 9E [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 0B 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 0B 00 14 0F 00 5F BC 78 0E 48 A1 6B C2 90 00 56 [09:23:34]RAPDU: 5F BC 78 0E 48 A1 6B C2 90 00 [09:23:34]wFMCommunicate OK [09:23:34]SAM_PROTO_SignData done [09:23:34]FM_MakeSignedData done [09:23:34]CreateOFDProtocolMessage [09:23:34]wFMCommunicate request_size=4 [09:23:34]MH_SAM_APDU [09:23:34]CAPDU: 80 11 00 00 [09:23:34]Write to MH i2c: E2 08 00 15 0F 80 11 00 00 00 00 00 00 9E [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:34]Read from MH i2c: E2 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 17 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: E2 17 00 15 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F5 [09:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:23:34]wFMCommunicate OK [09:23:34]CreateOFDProtocolMessage done [09:23:34]OFDSenderStorePacket 139212 [09:23:34]StoreOFDPacket docnum=139212 [09:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 2D FF 00 01 EB 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 17 0F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 1F 02 00 35 04 06 00 A8 49 AA 6F 79 FF 5F BC 78 0E 48 A1 6B C2 [09:23:34]CheckFolder [09:23:34]dirname=/storage/ofd_packets [09:23:34]CheckFolder done [09:23:34]ProducePacketName [09:23:34]name=ofd_packets/00139212 [09:23:34]NVStorageSaveData ofd_packets/00139212 [09:23:34]File name is /storage/ofd_packets/00139212 [09:23:34]Write 294 bytes [09:23:34]NVStorageSaveData done [09:23:34]OFDSenderStorePacket done [09:23:34]KKMCreateOFDPacket done [09:23:34]NVStorageSaveData kkm_last_timestamp [09:23:34]File name is /storage/kkm_last_timestamp [09:23:34]Write 4 bytes [09:23:34]NVStorageSaveData done [09:23:34]ExternCall_PrintAddStr [09:23:34]wPrintStart [09:23:34]Write to MH i2c: 01 00 00 16 0F 25 [09:23:34]Write i2c OK [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: 01 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: 01 07 00 [09:23:34]MH_I2C_Read... [09:23:34]Read from MH i2c: 01 07 00 16 0F 00 00 00 00 00 FF 0F 3A [09:23:34]RasterBufferAndPrint [09:23:34]line Счет N : (1)593052 [09:23:34]line ИНН: 02508201610067 [09:23:34]line Контрольно-Кассовый Чек [09:23:34]line ПРОДАЖА [09:23:34]line ТРК (МРК, ГНК) : 63 [09:23:34]line Товар: 2710124130 [09:23:34]line SU-92 [09:23:34]line 14.540 * 68.80 [09:23:34]line = 1000.35 [09:23:34]line НДС 12% НСП 1% [09:23:34]line > о реализуемом товаре [09:23:34]line ОКРУГЛЕНИЕ: -0.35 [09:23:34]line ИТОГО: 1000.00 [09:23:34]line Внесено: 1000.00 [09:23:34]line СДАЧА: 0.00 [09:23:34]line НСП 1% : 8.85 [09:23:34]line НДС 12% : 106.23 [09:23:34]line Наличными: 1000.00 [09:23:34]line Безнал.: 0.00 [09:23:34]line Место: АЗС № 136 "Партнер Нефть" [09:23:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:23:34]line СНО: Общий режим [09:23:34]line Чек 47 19.08.2024 09:23 [09:23:34]line Смена: 452 ФФД: 1.0 [09:23:34]line ЗНМ: 0300000067 [09:23:34]line РНМ: 0000000000092569 [09:23:34]line Версия ККМ: 001 [09:23:34]line ФМ: 0000000000871776 [09:23:34]line ФД: 139212 [09:23:34]line ФПД: 185034345511423 [09:23:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092335&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139212&fm=185034345511423&tin=02508201610067®Number=0000000000092569&sum=100000 [09:23:35]OFD Sender: Processing packet 139212 [packets to send 137, broken 136] [09:23:35]ProducePacketName [09:23:35]name=ofd_packets/00139212 [09:23:35]OFD Sender: To server: pG, [09:23:35]CommunicateWithHost lk.salyk.kg:30040 [09:23:35]ConnectInit lk.salyk.kg [09:23:35]written 0, free lines is 4095 [09:23:35]Connected sock=10 [09:23: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 37 36 08 01 00 00 2D FF 00 01 EB 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 17 0F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 1F 02 00 35 04 06 00 A8 49 AA 6F 79 FF 5F BC 78 0E 48 A1 6B C2 [09:23: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 37 36 4F 00 00 00 02 B7 47 00 B7 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 37 36 10 04 04 00 CC 1F 02 00 F4 03 04 00 AD B5 C2 66 B6 04 01 00 00 B3 23 CD 5A CF 1C 25 05 [09:23:35]CommunicateWithHost err = 0 [09:23:35]CheckOFDResponse [09:23:35]1017 (14) - 77093643461234 [09:23:35]1041 (16) - 0000000000871776 [09:23:35]1040 (4) - 139212 [09:23:35]1012 (4) - 19.08.2024 03:02 [09:23:35]1206 (1) - 0 [09:23:35]OFD Sender: Remove packet 139212 [09:23:35]ProducePacketName [09:23:35]name=ofd_packets/00139212 [09:23:35]NVStorageDeleteData [09:23:35]Write to MH i2c: 01 00 00 41 0F 50 [09:23:35]Write i2c OK [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: 01 [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: 01 07 00 [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: 01 07 00 41 0F 00 00 00 00 00 C5 0C 28 [09:23:35]RasterBufferAndPrint [09:23:35]line [09:23:35]line [09:23:35]line [09:23:35]line [09:23:35]line [09:23:35]written 0, free lines is 3275 [09:23:35]MH_Cut [09:23:35]Write to MH i2c: D1 01 00 48 0F 01 29 [09:23:35]Write i2c OK [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: D1 [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: D1 01 00 [09:23:35]MH_I2C_Read... [09:23:35]Read from MH i2c: D1 01 00 48 0F 00 28 [09:23:35]Write to MH i2c: 01 00 00 49 0F 58 [09:23:35]Write i2c OK [09:23:35]MH_I2C_Read... [09:23:36]OFD Sender: No OFD packet to send [09:23:36]*** Cut start [09:23:36]*** Partial cut [09:23:36]*** CUTSNS_PIN = 1 [09:23:36]*** CUTSNS_PIN = 0 [09:23:36]*** Brake cut motor [09:23:36]Read from MH i2c: 01 [09:23:36]MH_I2C_Read... [09:23:36]*** Stop cut motor [09:23:36]*** Cut end [09:23:36]Read from MH i2c: 01 07 00 [09:23:36]MH_I2C_Read... [09:23:36]Read from MH i2c: 01 07 00 49 0F 00 00 00 00 00 FF 0F 6D [09:23:36]process_action close_receipt done [09:23:36]requested_data is exist [09:23:36]produce_requested_data [09:23:36]requested_item fm.sn is exist - process it [09:23:36]wFMCommunicate request_size=4 [09:23:36]MH_SAM_APDU [09:23:36]CAPDU: 80 11 00 00 [09:23:36]Write to MH i2c: E2 08 00 4A 0F 80 11 00 00 00 00 00 00 D3 [09:23:36]Write i2c OK [09:23:36]MH_I2C_Read... [09:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:36]Read from MH i2c: E2 [09:23:36]MH_I2C_Read... [09:23:36]Read from MH i2c: E2 17 00 [09:23:36]MH_I2C_Read... [09:23:36]Read from MH i2c: E2 17 00 4A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [09:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:23:36]wFMCommunicate OK [09:23:36]requested_item fd.num is exist - process it [09:23:36]SAM_PROTO_GetFieldsCounters [09:23:36]wFMCommunicate request_size=4 [09:23:36]MH_SAM_APDU [09:23:36]CAPDU: 80 13 00 00 [09:23:36]Write to MH i2c: E2 08 00 4B 0F 80 13 00 00 00 00 00 00 D6 [09:23:37]Write i2c OK [09:23:37]MH_I2C_Read... [09:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:37]Read from MH i2c: E2 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 62 00 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 62 00 4B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [09:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:37]wFMCommunicate OK [09:23:37]SAM_PROTO_GetFieldsCounters done [09:23:37]requested_item shift.num is exist - process it [09:23:37]requested_item shift.opened is exist - process it [09:23:37]req_shift_opened [09:23:37]FM_GetShiftState [09:23:37]SAM_PROTO_GetShiftState [09:23:37]wFMCommunicate request_size=4 [09:23:37]MH_SAM_APDU [09:23:37]CAPDU: 80 13 01 00 [09:23:37]Write to MH i2c: E2 08 00 4C 0F 80 13 01 00 00 00 00 00 D8 [09:23:37]Write i2c OK [09:23:37]MH_I2C_Read... [09:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:37]Read from MH i2c: E2 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 0E 00 [09:23:37]MH_I2C_Read... [09:23:37]Read from MH i2c: E2 0E 00 4C 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8F [09:23:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:23:37]wFMCommunicate OK [09:23:37]SAM_PROTO_GetShiftState done [09:23:37]FM_GetShiftState done [09:23:37]req_shift_opened done [09:23:37]requested_item shift.open_date is exist - process it [09:23:37]req_shift_open_date [09:23:37]req_shift_open_date done [09:23:37]produce_requested_data done [09:23:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139212,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:23:37]process_action_free close_receipt [09:23:37]json_value_free [09:23:37]json_value_free done [09:23:37]process_json_proto returns [09:23:37]Send response to host [09:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139212,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:23:37]free response buf [09:23:37]execute_script done [09:23:37]execute_script returns [09:23:37]free content buf [09:23:37]Sock 7.Close socket [09:23:37]Sock 7.Thread stoped [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:50]accept exits with 9 [09:29:50]New connection [09:29:50]New thread 3067059556 created [09:29:50]Thread 3067202916 joined [09:29:50]Waiting for new connection... [09:29:50] Sock 9.Parse request [09:29:50]Sock 9.Check first char [09:29:50]Sock 9.First char is OK [09:29:50]request: POST /json_proto HTTP/1.0 [09:29:50]Method: POST [09:29:50]URL: /json_proto [09:29:50]Method is POST - this is cgi request [09:29:50]url: /json_proto [09:29:50]query_string will be loaded in cgi processing [09:29:50]execute_cgi json_proto POST (null) [09:29:50]execute_cgi path=json_proto method=POST [09:29:50]POST find Content-Length [09:29:50]Host: 172.17.45.67:8080 [09:29:50]Content-Length: 682 [09:29:50]Content-Type: application/json [09:29:50] [09:29:50]POST finish read [09:29:50]Found Content-Length = 682 [09:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:29:50]execute_script... [09:29: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)593053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:29:50]POST & json_proto [09:29:50]process_json_proto [09:29:50]json parsed OK: [09:29:50]protocol is kg_v1.0 [09:29:50]action value=close_receipt [09:29:50]process_action close_receipt [09:29:50]cmd_close_receipt [09:29:50]MH_GetDate [09:29:50]Write to MH i2c: F0 00 00 4D 0F 4B [09:29:50]Write i2c OK [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: F0 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: F0 09 00 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: F0 09 00 4D 0F 00 90 10 C3 66 5F 7F 2B 66 8C [09:29:50]GetLastDocTimeStamp 1724059415 [09:29:50]current date 1724059792 [09:29:50]FM_GetShiftState [09:29:50]SAM_PROTO_GetShiftState [09:29:50]wFMCommunicate request_size=4 [09:29:50]MH_SAM_APDU [09:29:50]CAPDU: 80 13 01 00 [09:29:50]Write to MH i2c: E2 08 00 4E 0F 80 13 01 00 00 00 00 00 DA [09:29:50]Write i2c OK [09:29:50]MH_I2C_Read... [09:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:50]Read from MH i2c: E2 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: E2 0E 00 [09:29:50]MH_I2C_Read... [09:29:50]Read from MH i2c: E2 0E 00 4E 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 91 [09:29:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:29:50]wFMCommunicate OK [09:29:50]SAM_PROTO_GetShiftState done [09:29:50]FM_GetShiftState done [09:29:50]opened in 1724027888 [09:29:50]opened+sec_in_day 1724114288 [09:29:50]quantity*price = 100005 [09:29:50]sum+1 = 100006 [09:29:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 48 19.08.2024 09:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139213 ФПД: 227593723355169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092952&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139213&fm=227593723355169&tin=02508201610067®Number=0000000000092569&sum=100000 [09:29:51]StoreToDocumentArchive [09:29:51]shift 452 fd 139213 [09:29:51]save to /storage/0452/doc_00139213 [09:29:51]save last doc name /storage/0452/doc_00139213 to /storage/kkm_last_doc_name [09:29:51]save OK [09:29:51]Clear old archive folders... [09:29:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:51]tlvbuf is 01DBE8D0 [09:29:51]SAM_PROTO_ClearQueue [09:29:51]wFMCommunicate request_size=4 [09:29:51]MH_SAM_APDU [09:29:51]CAPDU: 80 09 00 00 [09:29:51]Write to MH i2c: E2 08 00 5B 0F 80 09 00 00 00 00 00 00 DC [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:51]Read from MH i2c: E2 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 03 00 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 03 00 5B 0F 00 90 00 DE [09:29:51]RAPDU: 90 00 [09:29:51]wFMCommunicate OK [09:29:51]SAM_PROTO_ClearQueue done [09:29:51]KKMCreateOFDPacket [09:29:51]OFDProtocolAddRootSTLVToBuf [09:29:51]FM_MakeSignedData [09:29:51]FM_MakeSignedData [09:29:51]SAM_PROTO_SignData [09:29:51]wFMCommunicate request_size=4 [09:29:51]MH_SAM_APDU [09:29:51]CAPDU: 80 0D 01 02 [09:29:51]Write to MH i2c: E2 08 00 5C 0F 80 0D 01 02 00 00 00 00 E4 [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:51]Read from MH i2c: E2 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 03 00 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 03 00 5C 0F 00 90 00 DF [09:29:51]RAPDU: 90 00 [09:29:51]wFMCommunicate OK [09:29:51]wFMCommunicate request_size=255 [09:29:51]MH_SAM_APDU [09:29: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 90 10 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 1F 02 00 35 04 06 00 CE [09:29:51]Write to MH i2c: E2 02 01 5D 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 90 10 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 1F 02 00 35 04 06 00 CE 00 00 76 [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]OFD Sender: No OFD packet to send [09:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:51]Read from MH i2c: E2 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 03 00 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [09:29:51]RAPDU: 90 00 [09:29:51]wFMCommunicate OK [09:29:51]wFMCommunicate request_size=10 [09:29:51]MH_SAM_APDU [09:29:51]CAPDU: 80 0D 02 02 05 FE CB 08 A0 21 [09:29:51]Write to MH i2c: E2 0D 00 5E 0F 80 0D 02 02 05 00 FE CB 08 A0 21 00 00 83 [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:51]Read from MH i2c: E2 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 03 00 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 03 00 5E 0F 00 90 00 E1 [09:29:51]RAPDU: 90 00 [09:29:51]wFMCommunicate OK [09:29:51]wFMCommunicate request_size=4 [09:29:51]MH_SAM_APDU [09:29:51]CAPDU: 80 0D 03 02 [09:29:51]Write to MH i2c: E2 08 00 5F 0F 80 0D 03 02 00 00 00 00 E9 [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:51]Read from MH i2c: E2 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 0B 00 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 0B 00 5F 0F 00 5A 7D CB 0C 15 FD 00 0E 90 00 B8 [09:29:51]RAPDU: 5A 7D CB 0C 15 FD 00 0E 90 00 [09:29:51]wFMCommunicate OK [09:29:51]SAM_PROTO_SignData done [09:29:51]FM_MakeSignedData done [09:29:51]CreateOFDProtocolMessage [09:29:51]wFMCommunicate request_size=4 [09:29:51]MH_SAM_APDU [09:29:51]CAPDU: 80 11 00 00 [09:29:51]Write to MH i2c: E2 08 00 60 0F 80 11 00 00 00 00 00 00 E9 [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:51]Read from MH i2c: E2 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 17 00 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: E2 17 00 60 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [09:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:29:51]wFMCommunicate OK [09:29:51]CreateOFDProtocolMessage done [09:29:51]OFDSenderStorePacket 139213 [09:29:51]StoreOFDPacket docnum=139213 [09:29:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CD 0A 07 01 4E E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 90 10 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 1F 02 00 35 04 06 00 CE FE CB 08 A0 21 5A 7D CB 0C 15 FD 00 0E [09:29:51]CheckFolder [09:29:51]dirname=/storage/ofd_packets [09:29:51]CheckFolder done [09:29:51]ProducePacketName [09:29:51]name=ofd_packets/00139213 [09:29:51]NVStorageSaveData ofd_packets/00139213 [09:29:51]File name is /storage/ofd_packets/00139213 [09:29:51]Write 301 bytes [09:29:51]NVStorageSaveData done [09:29:51]OFDSenderStorePacket done [09:29:51]KKMCreateOFDPacket done [09:29:51]NVStorageSaveData kkm_last_timestamp [09:29:51]File name is /storage/kkm_last_timestamp [09:29:51]Write 4 bytes [09:29:51]NVStorageSaveData done [09:29:51]ExternCall_PrintAddStr [09:29:51]wPrintStart [09:29:51]Write to MH i2c: 01 00 00 61 0F 70 [09:29:51]Write i2c OK [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: 01 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: 01 07 00 [09:29:51]MH_I2C_Read... [09:29:51]Read from MH i2c: 01 07 00 61 0F 00 00 00 00 00 FF 0F 85 [09:29:51]RasterBufferAndPrint [09:29:51]line Счет N : (1)593053 [09:29:51]line ИНН: 02508201610067 [09:29:51]line Контрольно-Кассовый Чек [09:29:51]line ПРОДАЖА [09:29:51]line ТРК (МРК, ГНК) : 52 [09:29:51]line Товар: 2710124130 [09:29:51]line Аи-92-К-5 [09:29:51]line 14.750 * 67.80 [09:29:51]line = 1000.05 [09:29:51]line НДС 12% НСП 1% [09:29:51]line > о реализуемом товаре [09:29:51]line ОКРУГЛЕНИЕ: -0.05 [09:29:51]line ИТОГО: 1000.00 [09:29:51]line Внесено: 1000.00 [09:29:51]line СДАЧА: 0.00 [09:29:51]line НСП 1% : 8.85 [09:29:51]line НДС 12% : 106.20 [09:29:51]line Наличными: 1000.00 [09:29:51]line Безнал.: 0.00 [09:29:51]line Место: АЗС № 136 "Партнер Нефть" [09:29:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:29:51]line СНО: Общий режим [09:29:51]line Чек 48 19.08.2024 09:29 [09:29:51]line Смена: 452 ФФД: 1.0 [09:29:51]line ЗНМ: 0300000067 [09:29:51]line РНМ: 0000000000092569 [09:29:51]line Версия ККМ: 001 [09:29:51]line ФМ: 0000000000871776 [09:29:51]line ФД: 139213 [09:29:51]line ФПД: 227593723355169 [09:29:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092952&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139213&fm=227593723355169&tin=02508201610067®Number=0000000000092569&sum=100000 [09:29:52]OFD Sender: Processing packet 139213 [packets to send 137, broken 136] [09:29:52]ProducePacketName [09:29:52]name=ofd_packets/00139213 [09:29:52]OFD Sender: To server: pG, [09:29:52]CommunicateWithHost lk.salyk.kg:30040 [09:29:52]ConnectInit lk.salyk.kg [09:29:52]written 0, free lines is 4095 [09:29:52]Connected sock=10 [09:29: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 37 36 0F 01 00 00 CD 0A 07 01 4E E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 90 10 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 1F 02 00 35 04 06 00 CE FE CB 08 A0 21 5A 7D CB 0C 15 FD 00 0E [09:29: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 37 36 4F 00 00 00 76 2E 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 37 36 10 04 04 00 CD 1F 02 00 F4 03 04 00 26 B7 C2 66 B6 04 01 00 00 9E 16 07 8C 50 35 D7 FA [09:29:52]CommunicateWithHost err = 0 [09:29:52]CheckOFDResponse [09:29:52]1017 (14) - 77093643461234 [09:29:52]1041 (16) - 0000000000871776 [09:29:52]1040 (4) - 139213 [09:29:52]1012 (4) - 19.08.2024 03:08 [09:29:52]1206 (1) - 0 [09:29:52]OFD Sender: Remove packet 139213 [09:29:52]ProducePacketName [09:29:52]name=ofd_packets/00139213 [09:29:52]NVStorageDeleteData [09:29:52]Write to MH i2c: 01 00 00 8C 0F 9B [09:29:52]Write i2c OK [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: 01 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: 01 07 00 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: 01 07 00 8C 0F 00 00 00 00 00 CE 0C 7C [09:29:52]RasterBufferAndPrint [09:29:52]line [09:29:52]line [09:29:52]line [09:29:52]line [09:29:52]line [09:29:52]written 0, free lines is 3283 [09:29:52]MH_Cut [09:29:52]Write to MH i2c: D1 01 00 93 0F 01 74 [09:29:52]Write i2c OK [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: D1 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: D1 01 00 [09:29:52]MH_I2C_Read... [09:29:52]Read from MH i2c: D1 01 00 93 0F 00 73 [09:29:52]Write to MH i2c: 01 00 00 94 0F A3 [09:29:52]Write i2c OK [09:29:52]MH_I2C_Read... [09:29:53]OFD Sender: No OFD packet to send [09:29:53]*** Cut start [09:29:53]*** Partial cut [09:29:53]*** CUTSNS_PIN = 1 [09:29:53]*** CUTSNS_PIN = 0 [09:29:53]*** Brake cut motor [09:29:53]Read from MH i2c: 01 [09:29:53]MH_I2C_Read... [09:29:53]*** Stop cut motor [09:29:53]*** Cut end [09:29:53]Read from MH i2c: 01 07 00 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: 01 07 00 94 0F 00 00 00 00 00 FF 0F B8 [09:29:53]process_action close_receipt done [09:29:53]requested_data is exist [09:29:53]produce_requested_data [09:29:53]requested_item fm.sn is exist - process it [09:29:53]wFMCommunicate request_size=4 [09:29:53]MH_SAM_APDU [09:29:53]CAPDU: 80 11 00 00 [09:29:53]Write to MH i2c: E2 08 00 95 0F 80 11 00 00 00 00 00 00 1E [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:53]Read from MH i2c: E2 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 17 00 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: E2 17 00 95 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [09:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:29:53]wFMCommunicate OK [09:29:53]requested_item fd.num is exist - process it [09:29:53]SAM_PROTO_GetFieldsCounters [09:29:53]wFMCommunicate request_size=4 [09:29:53]MH_SAM_APDU [09:29:53]CAPDU: 80 13 00 00 [09:29:53]Write to MH i2c: E2 08 00 96 0F 80 13 00 00 00 00 00 00 21 [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:54]Read from MH i2c: E2 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 62 00 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 62 00 96 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [09:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:54]wFMCommunicate OK [09:29:54]SAM_PROTO_GetFieldsCounters done [09:29:54]requested_item shift.num is exist - process it [09:29:54]requested_item shift.opened is exist - process it [09:29:54]req_shift_opened [09:29:54]FM_GetShiftState [09:29:54]SAM_PROTO_GetShiftState [09:29:54]wFMCommunicate request_size=4 [09:29:54]MH_SAM_APDU [09:29:54]CAPDU: 80 13 01 00 [09:29:54]Write to MH i2c: E2 08 00 97 0F 80 13 01 00 00 00 00 00 23 [09:29:54]Write i2c OK [09:29:54]MH_I2C_Read... [09:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:54]Read from MH i2c: E2 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 0E 00 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 0E 00 97 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DA [09:29:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:29:54]wFMCommunicate OK [09:29:54]SAM_PROTO_GetShiftState done [09:29:54]FM_GetShiftState done [09:29:54]req_shift_opened done [09:29:54]requested_item shift.open_date is exist - process it [09:29:54]req_shift_open_date [09:29:54]req_shift_open_date done [09:29:54]produce_requested_data done [09:29:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139213,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:29:54]process_action_free close_receipt [09:29:54]json_value_free [09:29:54]json_value_free done [09:29:54]process_json_proto returns [09:29:54]Send response to host [09:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139213,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:29:54]free response buf [09:29:54]execute_script done [09:29:54]execute_script returns [09:29:54]free content buf [09:29:54]Sock 9.Close socket [09:29:54]Sock 9.Thread stoped [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:03]accept exits with 7 [09:39:03]New connection [09:39:03]New thread 3067202916 created [09:39:04]Thread 3067059556 joined [09:39:04]Waiting for new connection... [09:39:04] Sock 7.Parse request [09:39:04]Sock 7.Check first char [09:39:04]Sock 7.First char is OK [09:39:04]request: POST /json_proto HTTP/1.0 [09:39:04]Method: POST [09:39:04]URL: /json_proto [09:39:04]Method is POST - this is cgi request [09:39:04]url: /json_proto [09:39:04]query_string will be loaded in cgi processing [09:39:04]execute_cgi json_proto POST (null) [09:39:04]execute_cgi path=json_proto method=POST [09:39:04]POST find Content-Length [09:39:04]Host: 172.17.45.67:8080 [09:39:04]Content-Length: 677 [09:39:04]Content-Type: application/json [09:39:04] [09:39:04]POST finish read [09:39:04]Found Content-Length = 677 [09:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:04]execute_script... [09:39: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)593054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:04]POST & json_proto [09:39:04]process_json_proto [09:39:04]json parsed OK: [09:39:04]protocol is kg_v1.0 [09:39:04]action value=close_receipt [09:39:04]process_action close_receipt [09:39:04]cmd_close_receipt [09:39:04]MH_GetDate [09:39:04]Write to MH i2c: F0 00 00 98 0F 96 [09:39:04]Write i2c OK [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: F0 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: F0 09 00 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: F0 09 00 98 0F 00 BA 12 C3 66 5F 7F 2B 66 03 [09:39:04]GetLastDocTimeStamp 1724059792 [09:39:04]current date 1724060346 [09:39:04]FM_GetShiftState [09:39:04]SAM_PROTO_GetShiftState [09:39:04]wFMCommunicate request_size=4 [09:39:04]MH_SAM_APDU [09:39:04]CAPDU: 80 13 01 00 [09:39:04]Write to MH i2c: E2 08 00 99 0F 80 13 01 00 00 00 00 00 25 [09:39:04]Write i2c OK [09:39:04]MH_I2C_Read... [09:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:04]Read from MH i2c: E2 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: E2 0E 00 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: E2 0E 00 99 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DC [09:39:04]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:39:04]wFMCommunicate OK [09:39:04]SAM_PROTO_GetShiftState done [09:39:04]FM_GetShiftState done [09:39:04]opened in 1724027888 [09:39:04]opened+sec_in_day 1724114288 [09:39:04]quantity*price = 30035 [09:39:04]sum+1 = 30036 [09:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 49 19.08.2024 09:39 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139214 ФПД: 261199265700988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T093906&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139214&fm=261199265700988&tin=02508201610067®Number=0000000000092569&sum=30000 [09:39:05]StoreToDocumentArchive [09:39:05]shift 452 fd 139214 [09:39:05]save to /storage/0452/doc_00139214 [09:39:05]save last doc name /storage/0452/doc_00139214 to /storage/kkm_last_doc_name [09:39:05]save OK [09:39:05]Clear old archive folders... [09:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:05]tlvbuf is 01DA64A0 [09:39:05]SAM_PROTO_ClearQueue [09:39:05]wFMCommunicate request_size=4 [09:39:05]MH_SAM_APDU [09:39:05]CAPDU: 80 09 00 00 [09:39:05]Write to MH i2c: E2 08 00 A6 0F 80 09 00 00 00 00 00 00 27 [09:39:05]Write i2c OK [09:39:05]MH_I2C_Read... [09:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:05]Read from MH i2c: E2 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 03 00 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 03 00 A6 0F 00 90 00 29 [09:39:05]RAPDU: 90 00 [09:39:05]wFMCommunicate OK [09:39:05]SAM_PROTO_ClearQueue done [09:39:05]KKMCreateOFDPacket [09:39:05]OFDProtocolAddRootSTLVToBuf [09:39:05]FM_MakeSignedData [09:39:05]FM_MakeSignedData [09:39:05]SAM_PROTO_SignData [09:39:05]wFMCommunicate request_size=4 [09:39:05]MH_SAM_APDU [09:39:05]CAPDU: 80 0D 01 02 [09:39:05]Write to MH i2c: E2 08 00 A7 0F 80 0D 01 02 00 00 00 00 2F [09:39:05]Write i2c OK [09:39:05]MH_I2C_Read... [09:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:05]Read from MH i2c: E2 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 03 00 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [09:39:05]RAPDU: 90 00 [09:39:05]wFMCommunicate OK [09:39:05]wFMCommunicate request_size=255 [09:39:05]MH_SAM_APDU [09:39: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BA 12 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 1F 02 00 35 04 06 00 ED [09:39:05]Write to MH i2c: E2 02 01 A8 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BA 12 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 1F 02 00 35 04 06 00 ED 00 00 9E [09:39:05]Write i2c OK [09:39:05]MH_I2C_Read... [09:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:05]Read from MH i2c: E2 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 03 00 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [09:39:05]RAPDU: 90 00 [09:39:05]wFMCommunicate OK [09:39:05]wFMCommunicate request_size=10 [09:39:05]MH_SAM_APDU [09:39:05]CAPDU: 80 0D 02 02 05 8F 31 72 9C 7C [09:39:05]Write to MH i2c: E2 0D 00 A9 0F 80 0D 02 02 05 00 8F 31 72 9C 7C 00 00 86 [09:39:05]Write i2c OK [09:39:05]MH_I2C_Read... [09:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:05]Read from MH i2c: E2 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 03 00 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [09:39:05]RAPDU: 90 00 [09:39:05]wFMCommunicate OK [09:39:05]wFMCommunicate request_size=4 [09:39:05]MH_SAM_APDU [09:39:05]CAPDU: 80 0D 03 02 [09:39:05]Write to MH i2c: E2 08 00 AA 0F 80 0D 03 02 00 00 00 00 34 [09:39:05]Write i2c OK [09:39:05]MH_I2C_Read... [09:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:05]Read from MH i2c: E2 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 0B 00 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 0B 00 AA 0F 00 E0 C8 94 35 15 62 0E 13 90 00 3E [09:39:05]RAPDU: E0 C8 94 35 15 62 0E 13 90 00 [09:39:05]wFMCommunicate OK [09:39:05]SAM_PROTO_SignData done [09:39:05]FM_MakeSignedData done [09:39:05]CreateOFDProtocolMessage [09:39:05]wFMCommunicate request_size=4 [09:39:05]MH_SAM_APDU [09:39:05]CAPDU: 80 11 00 00 [09:39:05]Write to MH i2c: E2 08 00 AB 0F 80 11 00 00 00 00 00 00 34 [09:39:05]Write i2c OK [09:39:05]MH_I2C_Read... [09:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:05]Read from MH i2c: E2 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 17 00 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: E2 17 00 AB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8B [09:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:39:05]wFMCommunicate OK [09:39:05]CreateOFDProtocolMessage done [09:39:05]OFDSenderStorePacket 139214 [09:39:05]StoreOFDPacket docnum=139214 [09:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 87 B6 07 01 E5 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BA 12 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 1F 02 00 35 04 06 00 ED 8F 31 72 9C 7C E0 C8 94 35 15 62 0E 13 [09:39:05]CheckFolder [09:39:05]dirname=/storage/ofd_packets [09:39:05]CheckFolder done [09:39:05]ProducePacketName [09:39:05]name=ofd_packets/00139214 [09:39:05]NVStorageSaveData ofd_packets/00139214 [09:39:05]File name is /storage/ofd_packets/00139214 [09:39:05]Write 301 bytes [09:39:05]NVStorageSaveData done [09:39:05]OFDSenderStorePacket done [09:39:05]KKMCreateOFDPacket done [09:39:05]NVStorageSaveData kkm_last_timestamp [09:39:05]File name is /storage/kkm_last_timestamp [09:39:05]Write 4 bytes [09:39:05]NVStorageSaveData done [09:39:05]ExternCall_PrintAddStr [09:39:05]wPrintStart [09:39:05]Write to MH i2c: 01 00 00 AC 0F BB [09:39:05]Write i2c OK [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: 01 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: 01 07 00 [09:39:05]MH_I2C_Read... [09:39:05]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [09:39:05]RasterBufferAndPrint [09:39:05]line Счет N : (1)593054 [09:39:05]line ИНН: 02508201610067 [09:39:05]line Контрольно-Кассовый Чек [09:39:05]line ПРОДАЖА [09:39:05]line ТРК (МРК, ГНК) : 52 [09:39:05]line Товар: 2710124130 [09:39:05]line Аи-92-К-5 [09:39:05]line 4.430 * 67.80 [09:39:05]line = 300.35 [09:39:05]line НДС 12% НСП 1% [09:39:05]line > о реализуемом товаре [09:39:05]line ОКРУГЛЕНИЕ: -0.35 [09:39:05]line ИТОГО: 300.00 [09:39:05]line Внесено: 300.00 [09:39:05]line СДАЧА: 0.00 [09:39:05]line НСП 1% : 2.66 [09:39:05]line НДС 12% : 31.90 [09:39:05]line Наличными: 300.00 [09:39:05]line Безнал.: 0.00 [09:39:05]line Место: АЗС № 136 "Партнер Нефть" [09:39:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:39:05]line СНО: Общий режим [09:39:05]line Чек 49 19.08.2024 09:39 [09:39:05]line Смена: 452 ФФД: 1.0 [09:39:05]line ЗНМ: 0300000067 [09:39:05]line РНМ: 0000000000092569 [09:39:05]line Версия ККМ: 001 [09:39:05]line ФМ: 0000000000871776 [09:39:05]line ФД: 139214 [09:39:05]line ФПД: 261199265700988 [09:39:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T093906&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139214&fm=261199265700988&tin=02508201610067®Number=0000000000092569&sum=30000 [09:39:06]OFD Sender: Processing packet 139214 [packets to send 137, broken 136] [09:39:06]ProducePacketName [09:39:06]name=ofd_packets/00139214 [09:39:06]OFD Sender: To server: pG, [09:39:06]CommunicateWithHost lk.salyk.kg:30040 [09:39:06]ConnectInit lk.salyk.kg [09:39:06]written 0, free lines is 4095 [09:39:06]Connected sock=10 [09:39: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 37 36 0F 01 00 00 87 B6 07 01 E5 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BA 12 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 1F 02 00 35 04 06 00 ED 8F 31 72 9C 7C E0 C8 94 35 15 62 0E 13 [09:39: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 37 36 4F 00 00 00 BE 38 47 00 9E 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 37 36 10 04 04 00 CE 1F 02 00 F4 03 04 00 50 B9 C2 66 B6 04 01 00 00 FC BF 18 7F D0 B6 6A 2F [09:39:06]CommunicateWithHost err = 0 [09:39:06]CheckOFDResponse [09:39:06]1017 (14) - 77093643461234 [09:39:06]1041 (16) - 0000000000871776 [09:39:06]1040 (4) - 139214 [09:39:06]1012 (4) - 19.08.2024 03:17 [09:39:06]1206 (1) - 0 [09:39:06]OFD Sender: Remove packet 139214 [09:39:06]ProducePacketName [09:39:06]name=ofd_packets/00139214 [09:39:06]NVStorageDeleteData [09:39:06]Write to MH i2c: 01 00 00 D7 0F E6 [09:39:06]Write i2c OK [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: 01 [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: 01 07 00 [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: 01 07 00 D7 0F 00 00 00 00 00 CB 0C C4 [09:39:06]RasterBufferAndPrint [09:39:06]line [09:39:06]line [09:39:06]line [09:39:06]line [09:39:06]line [09:39:06]written 0, free lines is 3281 [09:39:06]MH_Cut [09:39:06]Write to MH i2c: D1 01 00 DE 0F 01 BF [09:39:06]Write i2c OK [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: D1 [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: D1 01 00 [09:39:06]MH_I2C_Read... [09:39:06]Read from MH i2c: D1 01 00 DE 0F 00 BE [09:39:06]Write to MH i2c: 01 00 00 DF 0F EE [09:39:06]Write i2c OK [09:39:06]MH_I2C_Read... [09:39:06]OFD Sender: No OFD packet to send [09:39:07]*** Cut start [09:39:07]*** Partial cut [09:39:07]*** CUTSNS_PIN = 1 [09:39:07]*** CUTSNS_PIN = 0 [09:39:07]*** Brake cut motor [09:39:07]Read from MH i2c: 01 [09:39:07]MH_I2C_Read... [09:39:07]*** Stop cut motor [09:39:07]*** Cut end [09:39:07]Read from MH i2c: 01 07 00 [09:39:07]MH_I2C_Read... [09:39:07]Read from MH i2c: 01 07 00 DF 0F 00 00 00 00 00 FF 0F 03 [09:39:07]process_action close_receipt done [09:39:07]requested_data is exist [09:39:07]produce_requested_data [09:39:07]requested_item fm.sn is exist - process it [09:39:07]wFMCommunicate request_size=4 [09:39:07]MH_SAM_APDU [09:39:07]CAPDU: 80 11 00 00 [09:39:07]Write to MH i2c: E2 08 00 E0 0F 80 11 00 00 00 00 00 00 69 [09:39:07]Write i2c OK [09:39:07]MH_I2C_Read... [09:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:07]Read from MH i2c: E2 [09:39:07]MH_I2C_Read... [09:39:07]Read from MH i2c: E2 17 00 [09:39:07]MH_I2C_Read... [09:39:07]Read from MH i2c: E2 17 00 E0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [09:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:39:07]wFMCommunicate OK [09:39:07]requested_item fd.num is exist - process it [09:39:07]SAM_PROTO_GetFieldsCounters [09:39:07]wFMCommunicate request_size=4 [09:39:07]MH_SAM_APDU [09:39:07]CAPDU: 80 13 00 00 [09:39:07]Write to MH i2c: E2 08 00 E1 0F 80 13 00 00 00 00 00 00 6C [09:39:07]Write i2c OK [09:39:07]MH_I2C_Read... [09:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:08]Read from MH i2c: E2 [09:39:08]MH_I2C_Read... [09:39:08]Read from MH i2c: E2 62 00 [09:39:08]MH_I2C_Read... [09:39:08]Read from MH i2c: E2 62 00 E1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [09:39: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:08]wFMCommunicate OK [09:39:08]SAM_PROTO_GetFieldsCounters done [09:39:08]requested_item shift.num is exist - process it [09:39:08]requested_item shift.opened is exist - process it [09:39:08]req_shift_opened [09:39:08]FM_GetShiftState [09:39:08]SAM_PROTO_GetShiftState [09:39:08]wFMCommunicate request_size=4 [09:39:08]MH_SAM_APDU [09:39:08]CAPDU: 80 13 01 00 [09:39:08]Write to MH i2c: E2 08 00 E2 0F 80 13 01 00 00 00 00 00 6E [09:39:08]Write i2c OK [09:39:08]MH_I2C_Read... [09:39:08]Read from MH i2c: E2 [09:39:08]MH_I2C_Read... [09:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:08]Read from MH i2c: E2 0E 00 [09:39:08]MH_I2C_Read... [09:39:08]Read from MH i2c: E2 0E 00 E2 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 25 [09:39:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:39:08]wFMCommunicate OK [09:39:08]SAM_PROTO_GetShiftState done [09:39:08]FM_GetShiftState done [09:39:08]req_shift_opened done [09:39:08]requested_item shift.open_date is exist - process it [09:39:08]req_shift_open_date [09:39:08]req_shift_open_date done [09:39:08]produce_requested_data done [09:39:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139214,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:39:08]process_action_free close_receipt [09:39:08]json_value_free [09:39:08]json_value_free done [09:39:08]process_json_proto returns [09:39:08]Send response to host [09:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139214,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:39:08]free response buf [09:39:08]execute_script done [09:39:08]execute_script returns [09:39:08]free content buf [09:39:08]Sock 7.Close socket [09:39:08]Sock 7.Thread stoped [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:10]accept exits with 9 [09:41:10]New connection [09:41:10]New thread 3067059556 created [09:41:10]Thread 3067202916 joined [09:41:10]Waiting for new connection... [09:41:10] Sock 9.Parse request [09:41:10]Sock 9.Check first char [09:41:10]Sock 9.First char is OK [09:41:10]request: POST /json_proto HTTP/1.0 [09:41:10]Method: POST [09:41:10]URL: /json_proto [09:41:10]Method is POST - this is cgi request [09:41:10]url: /json_proto [09:41:10]query_string will be loaded in cgi processing [09:41:10]execute_cgi json_proto POST (null) [09:41:10]execute_cgi path=json_proto method=POST [09:41:10]POST find Content-Length [09:41:10]Host: 172.17.45.67:8080 [09:41:10]Content-Length: 677 [09:41:10]Content-Type: application/json [09:41:10] [09:41:10]POST finish read [09:41:10]Found Content-Length = 677 [09:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.130, "sum" : 280.01, "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" ] } } [09:41:10]execute_script... [09:41: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)593055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.130, "sum" : 280.01, "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" ] } } [09:41:10]POST & json_proto [09:41:10]process_json_proto [09:41:10]json parsed OK: [09:41:10]protocol is kg_v1.0 [09:41:10]action value=close_receipt [09:41:10]process_action close_receipt [09:41:10]cmd_close_receipt [09:41:10]MH_GetDate [09:41:10]Write to MH i2c: F0 00 00 E3 0F E1 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: F0 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: F0 09 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: F0 09 00 E3 0F 00 38 13 C3 66 5F 7F 2B 66 CD [09:41:10]GetLastDocTimeStamp 1724060346 [09:41:10]current date 1724060472 [09:41:10]FM_GetShiftState [09:41:10]SAM_PROTO_GetShiftState [09:41:10]wFMCommunicate request_size=4 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 13 01 00 [09:41:10]Write to MH i2c: E2 08 00 E4 0F 80 13 01 00 00 00 00 00 70 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 0E 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 0E 00 E4 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 27 [09:41:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:41:10]wFMCommunicate OK [09:41:10]SAM_PROTO_GetShiftState done [09:41:10]FM_GetShiftState done [09:41:10]opened in 1724027888 [09:41:10]opened+sec_in_day 1724114288 [09:41:10]quantity*price = 28001 [09:41:10]sum+1 = 28002 [09:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.74 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 50 19.08.2024 09:41 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139215 ФПД: 258998980767499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094112&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139215&fm=258998980767499&tin=02508201610067®Number=0000000000092569&sum=28000 [09:41:11]StoreToDocumentArchive [09:41:11]shift 452 fd 139215 [09:41:11]save to /storage/0452/doc_00139215 [09:41:11]save last doc name /storage/0452/doc_00139215 to /storage/kkm_last_doc_name [09:41:11]save OK [09:41:11]Clear old archive folders... [09:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:11]tlvbuf is 01D73EE0 [09:41:11]SAM_PROTO_ClearQueue [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 09 00 00 [09:41:11]Write to MH i2c: E2 08 00 F1 0F 80 09 00 00 00 00 00 00 72 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 F1 0F 00 90 00 74 [09:41:11]RAPDU: 90 00 [09:41:11]wFMCommunicate OK [09:41:11]SAM_PROTO_ClearQueue done [09:41:11]KKMCreateOFDPacket [09:41:11]OFDProtocolAddRootSTLVToBuf [09:41:11]FM_MakeSignedData [09:41:11]FM_MakeSignedData [09:41:11]SAM_PROTO_SignData [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 0D 01 02 [09:41:11]Write to MH i2c: E2 08 00 F2 0F 80 0D 01 02 00 00 00 00 7A [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 F2 0F 00 90 00 75 [09:41:11]RAPDU: 90 00 [09:41:11]wFMCommunicate OK [09:41:11]wFMCommunicate request_size=255 [09:41:11]MH_SAM_APDU [09:41: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 22 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 61 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 9E 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 32 00 00 00 F4 03 04 00 38 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 1F 02 00 35 04 06 00 EB [09:41:11]Write to MH i2c: E2 02 01 F3 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 61 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 9E 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 32 00 00 00 F4 03 04 00 38 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 1F 02 00 35 04 06 00 EB 00 00 A5 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 F3 0F 00 90 00 76 [09:41:11]RAPDU: 90 00 [09:41:11]wFMCommunicate OK [09:41:11]wFMCommunicate request_size=10 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 0D 02 02 05 8E E6 3E EF 0B [09:41:11]Write to MH i2c: E2 0D 00 F4 0F 80 0D 02 02 05 00 8E E6 3E EF 0B 00 00 33 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 F4 0F 00 90 00 77 [09:41:12]RAPDU: 90 00 [09:41:12]wFMCommunicate OK [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 0D 03 02 [09:41:12]Write to MH i2c: E2 08 00 F5 0F 80 0D 03 02 00 00 00 00 7F [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 0B 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 0B 00 F5 0F 00 9E 80 8D AC CD 2B 98 2F 90 00 96 [09:41:12]RAPDU: 9E 80 8D AC CD 2B 98 2F 90 00 [09:41:12]wFMCommunicate OK [09:41:12]SAM_PROTO_SignData done [09:41:12]FM_MakeSignedData done [09:41:12]CreateOFDProtocolMessage [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 11 00 00 [09:41:12]Write to MH i2c: E2 08 00 F6 0F 80 11 00 00 00 00 00 00 7F [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 17 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 17 00 F6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [09:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:41:12]wFMCommunicate OK [09:41:12]CreateOFDProtocolMessage done [09:41:12]OFDSenderStorePacket 139215 [09:41:12]StoreOFDPacket docnum=139215 [09:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 01 95 07 01 27 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 61 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 9E 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 32 00 00 00 F4 03 04 00 38 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 1F 02 00 35 04 06 00 EB 8E E6 3E EF 0B 9E 80 8D AC CD 2B 98 2F [09:41:12]CheckFolder [09:41:12]dirname=/storage/ofd_packets [09:41:12]CheckFolder done [09:41:12]ProducePacketName [09:41:12]name=ofd_packets/00139215 [09:41:12]NVStorageSaveData ofd_packets/00139215 [09:41:12]File name is /storage/ofd_packets/00139215 [09:41:12]Write 301 bytes [09:41:12]NVStorageSaveData done [09:41:12]OFDSenderStorePacket done [09:41:12]KKMCreateOFDPacket done [09:41:12]NVStorageSaveData kkm_last_timestamp [09:41:12]File name is /storage/kkm_last_timestamp [09:41:12]Write 4 bytes [09:41:12]NVStorageSaveData done [09:41:12]ExternCall_PrintAddStr [09:41:12]wPrintStart [09:41:12]Write to MH i2c: 01 00 00 F7 0F 06 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 F7 0F 00 00 00 00 00 FF 0F 1B [09:41:12]RasterBufferAndPrint [09:41:12]line Счет N : (1)593055 [09:41:12]line ИНН: 02508201610067 [09:41:12]line Контрольно-Кассовый Чек [09:41:12]line ПРОДАЖА [09:41:12]line ТРК (МРК, ГНК) : 32 [09:41:12]line Товар: 2710124130 [09:41:12]line Аи-92-К-5 [09:41:12]line 4.130 * 67.80 [09:41:12]line = 280.01 [09:41:12]line НДС 12% НСП 1% [09:41:12]line > о реализуемом товаре [09:41:12]line ОКРУГЛЕНИЕ: -0.01 [09:41:12]line ИТОГО: 280.00 [09:41:12]line Внесено: 280.00 [09:41:12]line СДАЧА: 0.00 [09:41:12]line НСП 1% : 2.48 [09:41:12]line НДС 12% : 29.74 [09:41:12]line Наличными: 280.00 [09:41:12]line Безнал.: 0.00 [09:41:12]line Место: АЗС № 136 "Партнер Нефть" [09:41:12]OFD Sender: Processing packet 139215 [packets to send 137, broken 136] [09:41:12]ProducePacketName [09:41:12]name=ofd_packets/00139215 [09:41:12]OFD Sender: To server: pG, [09:41:12]CommunicateWithHost lk.salyk.kg:30040 [09:41:12]ConnectInit lk.salyk.kg [09:41:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:41:12]line СНО: Общий режим [09:41:12]line Чек 50 19.08.2024 09:41 [09:41:12]line Смена: 452 ФФД: 1.0 [09:41:12]line ЗНМ: 0300000067 [09:41:12]line РНМ: 0000000000092569 [09:41:12]line Версия ККМ: 001 [09:41:12]line ФМ: 0000000000871776 [09:41:12]line ФД: 139215 [09:41:12]line ФПД: 258998980767499 [09:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094112&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139215&fm=258998980767499&tin=02508201610067®Number=0000000000092569&sum=28000 [09:41:12]written 0, free lines is 4095 [09:41:12]Connected sock=10 [09:41: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 37 36 0F 01 00 00 01 95 07 01 27 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 61 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 9E 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 32 00 00 00 F4 03 04 00 38 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 1F 02 00 35 04 06 00 EB 8E E6 3E EF 0B 9E 80 8D AC CD 2B 98 2F [09:41: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 37 36 4F 00 00 00 DE 26 47 00 98 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 1F 02 00 F4 03 04 00 CE B9 C2 66 B6 04 01 00 00 4D 7B 19 19 4B 19 27 12 [09:41:12]CommunicateWithHost err = 0 [09:41:12]CheckOFDResponse [09:41:12]1017 (14) - 77093643461234 [09:41:12]1041 (16) - 0000000000871776 [09:41:12]1040 (4) - 139215 [09:41:12]1012 (4) - 19.08.2024 03:19 [09:41:12]1206 (1) - 0 [09:41:12]OFD Sender: Remove packet 139215 [09:41:12]ProducePacketName [09:41:12]name=ofd_packets/00139215 [09:41:12]NVStorageDeleteData [09:41:12]Write to MH i2c: 01 00 00 22 10 32 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 22 10 00 00 00 00 00 C0 0C 05 [09:41:12]RasterBufferAndPrint [09:41:12]line [09:41:12]line [09:41:12]line [09:41:12]line [09:41:12]line [09:41:12]written 0, free lines is 3270 [09:41:12]MH_Cut [09:41:12]Write to MH i2c: D1 01 00 29 10 01 0B [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: D1 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: D1 01 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: D1 01 00 29 10 00 0A [09:41:12]Write to MH i2c: 01 00 00 2A 10 3A [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:13]OFD Sender: No OFD packet to send [09:41:13]*** Cut start [09:41:13]*** Partial cut [09:41:13]*** CUTSNS_PIN = 1 [09:41:13]*** CUTSNS_PIN = 0 [09:41:13]*** Brake cut motor [09:41:13]Read from MH i2c: 01 [09:41:13]MH_I2C_Read... [09:41:13]*** Stop cut motor [09:41:13]*** Cut end [09:41:13]Read from MH i2c: 01 07 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 2A 10 00 00 00 00 00 FF 0F 4F [09:41:13]process_action close_receipt done [09:41:13]requested_data is exist [09:41:13]produce_requested_data [09:41:13]requested_item fm.sn is exist - process it [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 11 00 00 [09:41:13]Write to MH i2c: E2 08 00 2B 10 80 11 00 00 00 00 00 00 B5 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 17 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 17 00 2B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [09:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:41:14]wFMCommunicate OK [09:41:14]requested_item fd.num is exist - process it [09:41:14]SAM_PROTO_GetFieldsCounters [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 13 00 00 [09:41:14]Write to MH i2c: E2 08 00 2C 10 80 13 00 00 00 00 00 00 B8 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 62 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 62 00 2C 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [09:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_GetFieldsCounters done [09:41:14]requested_item shift.num is exist - process it [09:41:14]requested_item shift.opened is exist - process it [09:41:14]req_shift_opened [09:41:14]FM_GetShiftState [09:41:14]SAM_PROTO_GetShiftState [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 13 01 00 [09:41:14]Write to MH i2c: E2 08 00 2D 10 80 13 01 00 00 00 00 00 BA [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0E 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0E 00 2D 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 71 [09:41:14]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_GetShiftState done [09:41:14]FM_GetShiftState done [09:41:14]req_shift_opened done [09:41:14]requested_item shift.open_date is exist - process it [09:41:14]req_shift_open_date [09:41:14]req_shift_open_date done [09:41:14]produce_requested_data done [09:41:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139215,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:41:14]process_action_free close_receipt [09:41:14]json_value_free [09:41:14]json_value_free done [09:41:14]process_json_proto returns [09:41:14]Send response to host [09:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139215,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:41:14]free response buf [09:41:14]execute_script done [09:41:14]execute_script returns [09:41:14]free content buf [09:41:14]Sock 9.Close socket [09:41:14]Sock 9.Thread stoped [09:41:15]int [09:41:15]Write to MH i2c: 01 00 00 2E 10 3E [09:41:15]*** FLAG_PRN_KEY set [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 2E 10 00 08 00 00 00 FF 0F 5B [09:41:15]state=0 [09:41:15]Key pressed [09:41:15]Feed [09:41:15]Write to MH i2c: D8 00 00 2F 10 16 [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: D8 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: D8 01 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: D8 01 00 2F 10 00 17 [09:41:15]int [09:41:15]Write to MH i2c: 01 00 00 30 10 40 [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 30 10 00 48 00 00 00 3C 00 CB [09:41:15]state=2 [09:41:15]Key pressed [09:41:15]int [09:41:15]Write to MH i2c: 01 00 00 31 10 41 [09:41:15]*** FLAG_PRN_KEY reset [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 FA 0F 51 [09:41:15]state=2 [09:41:15]Stop feed [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:41]accept exits with 7 [09:41:41]New connection [09:41:41]New thread 3067202916 created [09:41:41]Thread 3067059556 joined [09:41:41]Waiting for new connection... [09:41:41] Sock 7.Parse request [09:41:41]Sock 7.Check first char [09:41:41]Sock 7.First char is OK [09:41:41]request: POST /json_proto HTTP/1.0 [09:41:41]Method: POST [09:41:41]URL: /json_proto [09:41:41]Method is POST - this is cgi request [09:41:41]url: /json_proto [09:41:41]query_string will be loaded in cgi processing [09:41:41]execute_cgi json_proto POST (null) [09:41:41]execute_cgi path=json_proto method=POST [09:41:41]POST find Content-Length [09:41:41]Host: 172.17.45.67:8080 [09:41:41]Content-Length: 797 [09:41:41]Content-Type: application/json [09:41:41] [09:41:41]POST finish read [09:41:41]Found Content-Length = 797 [09:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:41]execute_script... [09:41: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)593056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:41]POST & json_proto [09:41:41]process_json_proto [09:41:41]json parsed OK: [09:41:41]protocol is kg_v1.0 [09:41:41]action value=close_receipt [09:41:41]process_action close_receipt [09:41:41]cmd_close_receipt [09:41:41]MH_GetDate [09:41:41]Write to MH i2c: F0 00 00 32 10 31 [09:41:41]Write i2c OK [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: F0 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: F0 09 00 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: F0 09 00 32 10 00 57 13 C3 66 5F 7F 2B 66 3C [09:41:41]GetLastDocTimeStamp 1724060472 [09:41:41]current date 1724060503 [09:41:41]FM_GetShiftState [09:41:41]SAM_PROTO_GetShiftState [09:41:41]wFMCommunicate request_size=4 [09:41:41]MH_SAM_APDU [09:41:41]CAPDU: 80 13 01 00 [09:41:41]Write to MH i2c: E2 08 00 33 10 80 13 01 00 00 00 00 00 C0 [09:41:41]Write i2c OK [09:41:41]MH_I2C_Read... [09:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:41]Read from MH i2c: E2 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 0E 00 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 0E 00 33 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 77 [09:41:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:41:41]wFMCommunicate OK [09:41:41]SAM_PROTO_GetShiftState done [09:41:41]FM_GetShiftState done [09:41:41]opened in 1724027888 [09:41:41]opened+sec_in_day 1724114288 [09:41:41]quantity*price = 0 [09:41:41]sum+1 = 1 [09:41:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 51 19.08.2024 09:41 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139216 ФПД: 113123507947731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094144&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139216&fm=113123507947731&tin=02508201610067®Number=0000000000092569&sum=0 [09:41:42]StoreToDocumentArchive [09:41:42]shift 452 fd 139216 [09:41:42]save to /storage/0452/doc_00139216 [09:41:42]save last doc name /storage/0452/doc_00139216 to /storage/kkm_last_doc_name [09:41:42]save OK [09:41:42]Clear old archive folders... [09:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:41:42]tlvbuf is 01D6E420 [09:41:42]SAM_PROTO_ClearQueue [09:41:42]wFMCommunicate request_size=4 [09:41:42]MH_SAM_APDU [09:41:42]CAPDU: 80 09 00 00 [09:41:42]Write to MH i2c: E2 08 00 40 10 80 09 00 00 00 00 00 00 C2 [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:42]Read from MH i2c: E2 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 40 10 00 90 00 C4 [09:41:42]RAPDU: 90 00 [09:41:42]wFMCommunicate OK [09:41:42]SAM_PROTO_ClearQueue done [09:41:42]KKMCreateOFDPacket [09:41:42]OFDProtocolAddRootSTLVToBuf [09:41:42]FM_MakeSignedData [09:41:42]FM_MakeSignedData [09:41:42]SAM_PROTO_SignData [09:41:42]wFMCommunicate request_size=4 [09:41:42]MH_SAM_APDU [09:41:42]CAPDU: 80 0D 01 02 [09:41:42]Write to MH i2c: E2 08 00 41 10 80 0D 01 02 00 00 00 00 CA [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:42]Read from MH i2c: E2 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 [09:41:42]MH_I2C_Read... [09:41:42]Read from MH i2c: E2 03 00 41 10 00 90 00 C5 [09:41:42]RAPDU: 90 00 [09:41:42]wFMCommunicate OK [09:41:42]wFMCommunicate request_size=255 [09:41:42]MH_SAM_APDU [09:41:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 33 00 00 00 F4 03 04 00 58 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 1F 02 00 35 04 06 00 [09:41:42]Write to MH i2c: E2 02 01 42 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 33 00 00 00 F4 03 04 00 58 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 1F 02 00 35 04 06 00 00 00 63 [09:41:42]Write i2c OK [09:41:42]MH_I2C_Read... [09:41:43]OFD Sender: No OFD packet to send [09:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 42 10 00 90 00 C6 [09:41:43]RAPDU: 90 00 [09:41:43]wFMCommunicate OK [09:41:43]wFMCommunicate request_size=11 [09:41:43]MH_SAM_APDU [09:41:43]CAPDU: 80 0D 02 02 06 66 E2 9E 81 C8 D3 [09:41:43]Write to MH i2c: E2 0E 00 43 10 80 0D 02 02 06 00 66 E2 9E 81 C8 D3 00 00 DB [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 43 10 00 90 00 C7 [09:41:43]RAPDU: 90 00 [09:41:43]wFMCommunicate OK [09:41:43]wFMCommunicate request_size=4 [09:41:43]MH_SAM_APDU [09:41:43]CAPDU: 80 0D 03 02 [09:41:43]Write to MH i2c: E2 08 00 44 10 80 0D 03 02 00 00 00 00 CF [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 0B 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 0B 00 44 10 00 B4 75 9F DB BD FB FD D8 90 00 00 [09:41:43]RAPDU: B4 75 9F DB BD FB FD D8 90 00 [09:41:43]wFMCommunicate OK [09:41:43]SAM_PROTO_SignData done [09:41:43]FM_MakeSignedData done [09:41:43]CreateOFDProtocolMessage [09:41:43]wFMCommunicate request_size=4 [09:41:43]MH_SAM_APDU [09:41:43]CAPDU: 80 11 00 00 [09:41:43]Write to MH i2c: E2 08 00 45 10 80 11 00 00 00 00 00 00 CF [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 17 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 17 00 45 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [09:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:41:43]wFMCommunicate OK [09:41:43]CreateOFDProtocolMessage done [09:41:43]OFDSenderStorePacket 139216 [09:41:43]StoreOFDPacket docnum=139216 [09:41:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B5 2A 08 01 36 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 33 00 00 00 F4 03 04 00 58 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 1F 02 00 35 04 06 00 66 E2 9E 81 C8 D3 B4 75 9F DB BD FB FD D8 [09:41:43]CheckFolder [09:41:43]dirname=/storage/ofd_packets [09:41:43]CheckFolder done [09:41:43]ProducePacketName [09:41:43]name=ofd_packets/00139216 [09:41:43]NVStorageSaveData ofd_packets/00139216 [09:41:43]File name is /storage/ofd_packets/00139216 [09:41:43]Write 302 bytes [09:41:43]NVStorageSaveData done [09:41:43]OFDSenderStorePacket done [09:41:43]KKMCreateOFDPacket done [09:41:43]NVStorageSaveData kkm_last_timestamp [09:41:43]File name is /storage/kkm_last_timestamp [09:41:43]Write 4 bytes [09:41:43]NVStorageSaveData done [09:41:43]ExternCall_PrintAddStr [09:41:43]wPrintStart [09:41:43]Write to MH i2c: 01 00 00 46 10 56 [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: 01 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: 01 07 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: 01 07 00 46 10 00 00 00 00 00 FF 0F 6B [09:41:43]RasterBufferAndPrint [09:41:43]line Счет N : (1)593056 [09:41:43]line ИНН: 02508201610067 [09:41:43]line Контрольно-Кассовый Чек [09:41:43]line ПРОДАЖА [09:41:43]line ТРК (МРК, ГНК) : 21 [09:41:43]line Товар: 2710194210 [09:41:43]line ДТ(л)-К-5 [09:41:43]line 28.000 * 0.00 [09:41:43]line = 0.00 [09:41:43]line НДС 12% НСП 1% [09:41:43]line > о реализуемом товаре [09:41:43]line ИТОГО: 0.00 [09:41:43]line НСП 1% : 0.00 [09:41:43]line НДС 12% : 0.00 [09:41:43]line Наличными: 0.00 [09:41:43]line Безнал.: 0.00 [09:41:43]line Место: АЗС № 136 "Партнер Нефть" [09:41:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:41:43]line СНО: Общий режим [09:41:43]line Чек 51 19.08.2024 09:41 [09:41:43]line Смена: 452 ФФД: 1.0 [09:41:43]line ЗНМ: 0300000067 [09:41:43]line РНМ: 0000000000092569 [09:41:43]line Версия ККМ: 001 [09:41:43]line Талоны: Топливная Карта [09:41:43]line 99761 [09:41:43]line ФМ: 0000000000871776 [09:41:43]line ФД: 139216 [09:41:43]line ФПД: 113123507947731 [09:41:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094144&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139216&fm=113123507947731&tin=02508201610067®Number=0000000000092569&sum=0 [09:41:43]OFD Sender: Processing packet 139216 [packets to send 137, broken 136] [09:41:43]ProducePacketName [09:41:43]name=ofd_packets/00139216 [09:41:43]OFD Sender: To server: pG, [09:41:43]CommunicateWithHost lk.salyk.kg:30040 [09:41:43]ConnectInit lk.salyk.kg [09:41:43]written 0, free lines is 4095 [09:41:43]Connected sock=10 [09:41: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 37 36 10 01 00 00 B5 2A 08 01 36 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 33 00 00 00 F4 03 04 00 58 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 1F 02 00 35 04 06 00 66 E2 9E 81 C8 D3 B4 75 9F DB BD FB FD D8 [09:41: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 37 36 4F 00 00 00 88 D9 47 00 00 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 1F 02 00 F4 03 04 00 EE B9 C2 66 B6 04 01 00 00 D7 CC 91 D6 16 B8 7C 6A [09:41:44]CommunicateWithHost err = 0 [09:41:44]CheckOFDResponse [09:41:44]1017 (14) - 77093643461234 [09:41:44]1041 (16) - 0000000000871776 [09:41:44]1040 (4) - 139216 [09:41:44]1012 (4) - 19.08.2024 03:20 [09:41:44]1206 (1) - 0 [09:41:44]OFD Sender: Remove packet 139216 [09:41:44]ProducePacketName [09:41:44]name=ofd_packets/00139216 [09:41:44]NVStorageDeleteData [09:41:44]Write to MH i2c: 01 00 00 70 10 80 [09:41:44]Write i2c OK [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: 01 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: 01 07 00 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: 01 07 00 70 10 00 00 00 00 00 E6 0C 79 [09:41:44]RasterBufferAndPrint [09:41:44]line [09:41:44]line [09:41:44]line [09:41:44]line [09:41:44]line [09:41:44]written 0, free lines is 3309 [09:41:44]MH_Cut [09:41:44]Write to MH i2c: D1 01 00 77 10 01 59 [09:41:44]Write i2c OK [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: D1 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: D1 01 00 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: D1 01 00 77 10 00 58 [09:41:44]Write to MH i2c: 01 00 00 78 10 88 [09:41:44]Write i2c OK [09:41:44]MH_I2C_Read... [09:41:44]OFD Sender: No OFD packet to send [09:41:44]*** Cut start [09:41:44]*** Partial cut [09:41:44]*** CUTSNS_PIN = 1 [09:41:44]*** CUTSNS_PIN = 0 [09:41:45]*** Brake cut motor [09:41:45]Read from MH i2c: 01 [09:41:45]MH_I2C_Read... [09:41:45]*** Stop cut motor [09:41:45]*** Cut end [09:41:45]Read from MH i2c: 01 07 00 [09:41:45]MH_I2C_Read... [09:41:45]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 FF 0F 9D [09:41:45]process_action close_receipt done [09:41:45]requested_data is exist [09:41:45]produce_requested_data [09:41:45]requested_item fm.sn is exist - process it [09:41:45]wFMCommunicate request_size=4 [09:41:45]MH_SAM_APDU [09:41:45]CAPDU: 80 11 00 00 [09:41:45]Write to MH i2c: E2 08 00 79 10 80 11 00 00 00 00 00 00 03 [09:41:45]Write i2c OK [09:41:45]MH_I2C_Read... [09:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:45]Read from MH i2c: E2 [09:41:45]MH_I2C_Read... [09:41:45]Read from MH i2c: E2 17 00 [09:41:45]MH_I2C_Read... [09:41:45]Read from MH i2c: E2 17 00 79 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [09:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:41:45]wFMCommunicate OK [09:41:45]requested_item fd.num is exist - process it [09:41:45]SAM_PROTO_GetFieldsCounters [09:41:45]wFMCommunicate request_size=4 [09:41:45]MH_SAM_APDU [09:41:45]CAPDU: 80 13 00 00 [09:41:45]Write to MH i2c: E2 08 00 7A 10 80 13 00 00 00 00 00 00 06 [09:41:45]Write i2c OK [09:41:45]MH_I2C_Read... [09:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:45]Read from MH i2c: E2 [09:41:45]MH_I2C_Read... [09:41:45]Read from MH i2c: E2 62 00 [09:41:45]MH_I2C_Read... [09:41:45]Read from MH i2c: E2 62 00 7A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [09:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:45]wFMCommunicate OK [09:41:45]SAM_PROTO_GetFieldsCounters done [09:41:45]requested_item shift.num is exist - process it [09:41:45]requested_item shift.opened is exist - process it [09:41:45]req_shift_opened [09:41:45]FM_GetShiftState [09:41:45]SAM_PROTO_GetShiftState [09:41:45]wFMCommunicate request_size=4 [09:41:45]MH_SAM_APDU [09:41:45]CAPDU: 80 13 01 00 [09:41:45]Write to MH i2c: E2 08 00 7B 10 80 13 01 00 00 00 00 00 08 [09:41:45]Write i2c OK [09:41:45]MH_I2C_Read... [09:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:45]Read from MH i2c: E2 [09:41:45]MH_I2C_Read... [09:41:45]Read from MH i2c: E2 0E 00 [09:41:45]MH_I2C_Read... [09:41:45]Read from MH i2c: E2 0E 00 7B 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BF [09:41:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:41:45]wFMCommunicate OK [09:41:45]SAM_PROTO_GetShiftState done [09:41:45]FM_GetShiftState done [09:41:45]req_shift_opened done [09:41:45]requested_item shift.open_date is exist - process it [09:41:45]req_shift_open_date [09:41:45]req_shift_open_date done [09:41:45]produce_requested_data done [09:41:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139216,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:41:45]process_action_free close_receipt [09:41:45]json_value_free [09:41:45]json_value_free done [09:41:45]process_json_proto returns [09:41:45]Send response to host [09:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139216,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:41:45]free response buf [09:41:45]execute_script done [09:41:45]execute_script returns [09:41:45]free content buf [09:41:45]Sock 7.Close socket [09:41:45]Sock 7.Thread stoped [09:41:48]int [09:41:48]Write to MH i2c: 01 00 00 7C 10 8C [09:41:48]*** FLAG_PRN_KEY set [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 7C 10 00 08 00 00 00 FF 0F A9 [09:41:48]state=0 [09:41:48]Key pressed [09:41:48]Feed [09:41:48]Write to MH i2c: D8 00 00 7D 10 64 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: D8 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: D8 01 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: D8 01 00 7D 10 00 65 [09:41:48]int [09:41:48]Write to MH i2c: 01 00 00 7E 10 8E [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 7E 10 00 48 00 00 00 3C 00 19 [09:41:48]state=2 [09:41:48]Key pressed [09:41:48]int [09:41:48]Write to MH i2c: 01 00 00 7F 10 8F [09:41:48]*** FLAG_PRN_KEY reset [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 F9 0F 9E [09:41:48]state=2 [09:41:48]Stop feed [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:03]accept exits with 9 [09:42:03]New connection [09:42:03]New thread 3067059556 created [09:42:03]Thread 3067202916 joined [09:42:03]Waiting for new connection... [09:42:03] Sock 9.Parse request [09:42:03]Sock 9.Check first char [09:42:03]Sock 9.First char is OK [09:42:03]request: POST /json_proto HTTP/1.0 [09:42:03]Method: POST [09:42:03]URL: /json_proto [09:42:03]Method is POST - this is cgi request [09:42:03]url: /json_proto [09:42:03]query_string will be loaded in cgi processing [09:42:03]execute_cgi json_proto POST (null) [09:42:03]execute_cgi path=json_proto method=POST [09:42:03]POST find Content-Length [09:42:03]Host: 172.17.45.67:8080 [09:42:03]Content-Length: 792 [09:42:03]Content-Type: application/json [09:42:03] [09:42:03]POST finish read [09:42:03]Found Content-Length = 792 [09:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:03]execute_script... [09:42: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)593057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:03]POST & json_proto [09:42:03]process_json_proto [09:42:03]json parsed OK: [09:42:03]protocol is kg_v1.0 [09:42:03]action value=close_receipt [09:42:03]process_action close_receipt [09:42:03]cmd_close_receipt [09:42:03]MH_GetDate [09:42:03]Write to MH i2c: F0 00 00 80 10 7F [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: F0 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: F0 09 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: F0 09 00 80 10 00 6E 13 C3 66 5F 7F 2B 66 A1 [09:42:03]GetLastDocTimeStamp 1724060504 [09:42:03]current date 1724060526 [09:42:03]FM_GetShiftState [09:42:03]SAM_PROTO_GetShiftState [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 13 01 00 [09:42:03]Write to MH i2c: E2 08 00 81 10 80 13 01 00 00 00 00 00 0E [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 0E 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 0E 00 81 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C5 [09:42:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:42:03]wFMCommunicate OK [09:42:03]SAM_PROTO_GetShiftState done [09:42:03]FM_GetShiftState done [09:42:03]opened in 1724027888 [09:42:03]opened+sec_in_day 1724114288 [09:42:03]quantity*price = 0 [09:42:03]sum+1 = 1 [09:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 52 19.08.2024 09:42 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 139217 ФПД: 46000096631456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094206&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139217&fm=46000096631456&tin=02508201610067®Number=0000000000092569&sum=0 [09:42:04]StoreToDocumentArchive [09:42:04]shift 452 fd 139217 [09:42:04]save to /storage/0452/doc_00139217 [09:42:04]save last doc name /storage/0452/doc_00139217 to /storage/kkm_last_doc_name [09:42:04]save OK [09:42:04]Clear old archive folders... [09:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:04]tlvbuf is 01D44900 [09:42:04]SAM_PROTO_ClearQueue [09:42:04]wFMCommunicate request_size=4 [09:42:04]MH_SAM_APDU [09:42:04]CAPDU: 80 09 00 00 [09:42:04]Write to MH i2c: E2 08 00 8E 10 80 09 00 00 00 00 00 00 10 [09:42:04]Write i2c OK [09:42:04]MH_I2C_Read... [09:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:04]Read from MH i2c: E2 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: E2 03 00 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: E2 03 00 8E 10 00 90 00 12 [09:42:04]RAPDU: 90 00 [09:42:04]wFMCommunicate OK [09:42:04]SAM_PROTO_ClearQueue done [09:42:04]KKMCreateOFDPacket [09:42:04]OFDProtocolAddRootSTLVToBuf [09:42:04]FM_MakeSignedData [09:42:04]FM_MakeSignedData [09:42:04]SAM_PROTO_SignData [09:42:04]wFMCommunicate request_size=4 [09:42:04]MH_SAM_APDU [09:42:04]CAPDU: 80 0D 01 02 [09:42:04]Write to MH i2c: E2 08 00 8F 10 80 0D 01 02 00 00 00 00 18 [09:42:04]Write i2c OK [09:42:04]MH_I2C_Read... [09:42:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:05]Read from MH i2c: E2 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 03 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 03 00 8F 10 00 90 00 13 [09:42:05]RAPDU: 90 00 [09:42:05]wFMCommunicate OK [09:42:05]wFMCommunicate request_size=255 [09:42:05]MH_SAM_APDU [09:42:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 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 34 00 00 00 F4 03 04 00 6E 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 1F 02 00 35 04 06 00 29 [09:42:05]Write to MH i2c: E2 02 01 90 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 34 00 00 00 F4 03 04 00 6E 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 1F 02 00 35 04 06 00 29 00 00 21 [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:05]Read from MH i2c: E2 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 03 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 03 00 90 10 00 90 00 14 [09:42:05]RAPDU: 90 00 [09:42:05]wFMCommunicate OK [09:42:05]wFMCommunicate request_size=10 [09:42:05]MH_SAM_APDU [09:42:05]CAPDU: 80 0D 02 02 05 D6 3B 6B 5A A0 [09:42:05]Write to MH i2c: E2 0D 00 91 10 80 0D 02 02 05 00 D6 3B 6B 5A A0 00 00 9B [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:05]Read from MH i2c: E2 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 03 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 03 00 91 10 00 90 00 15 [09:42:05]RAPDU: 90 00 [09:42:05]wFMCommunicate OK [09:42:05]wFMCommunicate request_size=4 [09:42:05]MH_SAM_APDU [09:42:05]CAPDU: 80 0D 03 02 [09:42:05]Write to MH i2c: E2 08 00 92 10 80 0D 03 02 00 00 00 00 1D [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:05]Read from MH i2c: E2 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 0B 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 0B 00 92 10 00 CA 85 A4 DC 9B 75 84 8B 90 00 0C [09:42:05]RAPDU: CA 85 A4 DC 9B 75 84 8B 90 00 [09:42:05]wFMCommunicate OK [09:42:05]SAM_PROTO_SignData done [09:42:05]FM_MakeSignedData done [09:42:05]CreateOFDProtocolMessage [09:42:05]wFMCommunicate request_size=4 [09:42:05]MH_SAM_APDU [09:42:05]CAPDU: 80 11 00 00 [09:42:05]Write to MH i2c: E2 08 00 93 10 80 11 00 00 00 00 00 00 1D [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:05]Read from MH i2c: E2 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 17 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 17 00 93 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [09:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:42:05]wFMCommunicate OK [09:42:05]CreateOFDProtocolMessage done [09:42:05]OFDSenderStorePacket 139217 [09:42:05]StoreOFDPacket docnum=139217 [09:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 79 90 07 01 DE 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 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 34 00 00 00 F4 03 04 00 6E 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 1F 02 00 35 04 06 00 29 D6 3B 6B 5A A0 CA 85 A4 DC 9B 75 84 8B [09:42:05]CheckFolder [09:42:05]dirname=/storage/ofd_packets [09:42:05]CheckFolder done [09:42:05]ProducePacketName [09:42:05]name=ofd_packets/00139217 [09:42:05]NVStorageSaveData ofd_packets/00139217 [09:42:05]File name is /storage/ofd_packets/00139217 [09:42:05]Write 301 bytes [09:42:05]NVStorageSaveData done [09:42:05]OFDSenderStorePacket done [09:42:05]KKMCreateOFDPacket done [09:42:05]NVStorageSaveData kkm_last_timestamp [09:42:05]File name is /storage/kkm_last_timestamp [09:42:05]Write 4 bytes [09:42:05]NVStorageSaveData done [09:42:05]ExternCall_PrintAddStr [09:42:05]wPrintStart [09:42:05]Write to MH i2c: 01 00 00 94 10 A4 [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: 01 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: 01 07 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: 01 07 00 94 10 00 00 00 00 00 FF 0F B9 [09:42:05]RasterBufferAndPrint [09:42:05]line Счет N : (1)593057 [09:42:05]line ИНН: 02508201610067 [09:42:05]line Контрольно-Кассовый Чек [09:42:05]line ПРОДАЖА [09:42:05]line ТРК (МРК, ГНК) : 62 [09:42:05]line Товар: 2710124130 [09:42:05]line Аи-92-К-5 [09:42:05]line 10.000 * 0.00 [09:42:05]line = 0.00 [09:42:05]line НДС 12% НСП 1% [09:42:05]line > о реализуемом товаре [09:42:05]line ИТОГО: 0.00 [09:42:05]line НСП 1% : 0.00 [09:42:05]line НДС 12% : 0.00 [09:42:05]line Наличными: 0.00 [09:42:05]line Безнал.: 0.00 [09:42:05]line Место: АЗС № 136 "Партнер Нефть" [09:42:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:42:05]line СНО: Общий режим [09:42:05]line Чек 52 19.08.2024 09:42 [09:42:05]line Смена: 452 ФФД: 1.0 [09:42:05]line ЗНМ: 0300000067 [09:42:05]line РНМ: 0000000000092569 [09:42:05]line Версия ККМ: 001 [09:42:05]line Талоны: Топливная Карта [09:42:05]line 03824 [09:42:05]line ФМ: 0000000000871776 [09:42:05]line ФД: 139217 [09:42:05]line ФПД: 46000096631456 [09:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094206&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139217&fm=46000096631456&tin=02508201610067®Number=0000000000092569&sum=0 [09:42:05]written 0, free lines is 4095 [09:42:05]OFD Sender: Processing packet 139217 [packets to send 137, broken 136] [09:42:05]ProducePacketName [09:42:05]name=ofd_packets/00139217 [09:42:05]OFD Sender: To server: pG, [09:42:05]CommunicateWithHost lk.salyk.kg:30040 [09:42:05]ConnectInit lk.salyk.kg [09:42:05]Connected sock=10 [09:42: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 37 36 0F 01 00 00 79 90 07 01 DE 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 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 34 00 00 00 F4 03 04 00 6E 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 1F 02 00 35 04 06 00 29 D6 3B 6B 5A A0 CA 85 A4 DC 9B 75 84 8B [09:42:05]Write to MH i2c: 01 00 00 BE 10 CE [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: 01 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: 01 07 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: 01 07 00 BE 10 00 00 00 00 00 E4 0C C5 [09:42:05]RasterBufferAndPrint [09:42:05]line [09:42:05]line [09:42:05]line [09:42:05]line [09:42:05]line [09:42:05]written 0, free lines is 3306 [09:42:05]MH_Cut [09:42:05]Write to MH i2c: D1 01 00 C5 10 01 A7 [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: D1 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: D1 01 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: D1 01 00 C5 10 00 A6 [09:42:05]Write to MH i2c: 01 00 00 C6 10 D6 [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42: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 37 36 4F 00 00 00 26 09 47 00 61 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 37 36 10 04 04 00 D1 1F 02 00 F4 03 04 00 04 BA C2 66 B6 04 01 00 00 A0 02 E3 10 A3 28 16 C6 [09:42:05]CommunicateWithHost err = 0 [09:42:05]CheckOFDResponse [09:42:05]1017 (14) - 77093643461234 [09:42:05]1041 (16) - 0000000000871776 [09:42:05]1040 (4) - 139217 [09:42:05]1012 (4) - 19.08.2024 03:20 [09:42:05]1206 (1) - 0 [09:42:05]OFD Sender: Remove packet 139217 [09:42:05]ProducePacketName [09:42:05]name=ofd_packets/00139217 [09:42:05]NVStorageDeleteData [09:42:06]OFD Sender: No OFD packet to send [09:42:06]*** Cut start [09:42:06]*** Partial cut [09:42:06]*** CUTSNS_PIN = 1 [09:42:06]*** CUTSNS_PIN = 0 [09:42:06]*** Brake cut motor [09:42:07]Read from MH i2c: 01 [09:42:07]MH_I2C_Read... [09:42:07]*** Stop cut motor [09:42:07]*** Cut end [09:42:07]Read from MH i2c: 01 07 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [09:42:07]process_action close_receipt done [09:42:07]requested_data is exist [09:42:07]produce_requested_data [09:42:07]requested_item fm.sn is exist - process it [09:42:07]wFMCommunicate request_size=4 [09:42:07]MH_SAM_APDU [09:42:07]CAPDU: 80 11 00 00 [09:42:07]Write to MH i2c: E2 08 00 C7 10 80 11 00 00 00 00 00 00 51 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 17 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 17 00 C7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A8 [09:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:42:07]wFMCommunicate OK [09:42:07]requested_item fd.num is exist - process it [09:42:07]SAM_PROTO_GetFieldsCounters [09:42:07]wFMCommunicate request_size=4 [09:42:07]MH_SAM_APDU [09:42:07]CAPDU: 80 13 00 00 [09:42:07]Write to MH i2c: E2 08 00 C8 10 80 13 00 00 00 00 00 00 54 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 62 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 62 00 C8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [09:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:07]wFMCommunicate OK [09:42:07]SAM_PROTO_GetFieldsCounters done [09:42:07]requested_item shift.num is exist - process it [09:42:07]requested_item shift.opened is exist - process it [09:42:07]req_shift_opened [09:42:07]FM_GetShiftState [09:42:07]SAM_PROTO_GetShiftState [09:42:07]wFMCommunicate request_size=4 [09:42:07]MH_SAM_APDU [09:42:07]CAPDU: 80 13 01 00 [09:42:07]Write to MH i2c: E2 08 00 C9 10 80 13 01 00 00 00 00 00 56 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 0E 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 0E 00 C9 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0D [09:42:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:42:07]wFMCommunicate OK [09:42:07]SAM_PROTO_GetShiftState done [09:42:07]FM_GetShiftState done [09:42:07]req_shift_opened done [09:42:07]requested_item shift.open_date is exist - process it [09:42:07]req_shift_open_date [09:42:07]req_shift_open_date done [09:42:07]produce_requested_data done [09:42:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139217,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:42:07]process_action_free close_receipt [09:42:07]json_value_free [09:42:07]json_value_free done [09:42:07]process_json_proto returns [09:42:07]Send response to host [09:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139217,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:42:07]free response buf [09:42:07]execute_script done [09:42:07]execute_script returns [09:42:07]free content buf [09:42:07]Sock 9.Close socket [09:42:07]Sock 9.Thread stoped [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:34]int [09:42:34]Write to MH i2c: 01 00 00 CA 10 DA [09:42:34]*** FLAG_PRN_KEY set [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 07 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 07 00 CA 10 00 08 00 00 00 FF 0F F7 [09:42:34]state=0 [09:42:34]Key pressed [09:42:34]Feed [09:42:34]Write to MH i2c: D8 00 00 CB 10 B2 [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: D8 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: D8 01 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: D8 01 00 CB 10 00 B3 [09:42:34]int [09:42:34]Write to MH i2c: 01 00 00 CC 10 DC [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 07 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 07 00 CC 10 00 48 00 00 00 3C 00 67 [09:42:34]state=2 [09:42:34]Key pressed [09:42:34]int [09:42:34]Write to MH i2c: 01 00 00 CD 10 DD [09:42:34]*** FLAG_PRN_KEY reset [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 07 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: 01 07 00 CD 10 00 00 00 00 00 F9 0F EC [09:42:34]state=2 [09:42:34]Stop feed [09:42:36]OFD Sender: No OFD packet to send [09:42:40]accept exits with 7 [09:42:40]New connection [09:42:40]New thread 3067202916 created [09:42:40]Thread 3067059556 joined [09:42:40]Waiting for new connection... [09:42:40] Sock 7.Parse request [09:42:40]Sock 7.Check first char [09:42:40]Sock 7.First char is OK [09:42:40]request: POST /json_proto HTTP/1.0 [09:42:40]Method: POST [09:42:40]URL: /json_proto [09:42:40]Method is POST - this is cgi request [09:42:40]url: /json_proto [09:42:40]query_string will be loaded in cgi processing [09:42:40]execute_cgi json_proto POST (null) [09:42:40]execute_cgi path=json_proto method=POST [09:42:40]POST find Content-Length [09:42:40]Host: 172.17.45.67:8080 [09:42:40]Content-Length: 792 [09:42:40]Content-Type: application/json [09:42:40] [09:42:40]POST finish read [09:42:40]Found Content-Length = 792 [09:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 13.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\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:40]execute_script... [09:42: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)593058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 13.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\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:40]POST & json_proto [09:42:40]process_json_proto [09:42:40]json parsed OK: [09:42:40]protocol is kg_v1.0 [09:42:40]action value=close_receipt [09:42:40]process_action close_receipt [09:42:40]cmd_close_receipt [09:42:40]MH_GetDate [09:42:40]Write to MH i2c: F0 00 00 CE 10 CD [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: F0 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: F0 09 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: F0 09 00 CE 10 00 92 13 C3 66 5F 7F 2B 66 13 [09:42:40]GetLastDocTimeStamp 1724060526 [09:42:40]current date 1724060562 [09:42:40]FM_GetShiftState [09:42:40]SAM_PROTO_GetShiftState [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 13 01 00 [09:42:40]Write to MH i2c: E2 08 00 CF 10 80 13 01 00 00 00 00 00 5C [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0E 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0E 00 CF 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 13 [09:42:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_GetShiftState done [09:42:40]FM_GetShiftState done [09:42:40]opened in 1724027888 [09:42:40]opened+sec_in_day 1724114288 [09:42:40]quantity*price = 0 [09:42:40]sum+1 = 1 [09:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 53 19.08.2024 09:42 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 139218 ФПД: 16872216214799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094242&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139218&fm=16872216214799&tin=02508201610067®Number=0000000000092569&sum=0 [09:42:41]StoreToDocumentArchive [09:42:41]shift 452 fd 139218 [09:42:41]save to /storage/0452/doc_00139218 [09:42:41]save last doc name /storage/0452/doc_00139218 to /storage/kkm_last_doc_name [09:42:41]save OK [09:42:41]Clear old archive folders... [09:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:41]tlvbuf is 01D76160 [09:42:41]SAM_PROTO_ClearQueue [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 09 00 00 [09:42:41]Write to MH i2c: E2 08 00 DC 10 80 09 00 00 00 00 00 00 5E [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 03 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 03 00 DC 10 00 90 00 60 [09:42:41]RAPDU: 90 00 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_ClearQueue done [09:42:41]KKMCreateOFDPacket [09:42:41]OFDProtocolAddRootSTLVToBuf [09:42:41]FM_MakeSignedData [09:42:41]FM_MakeSignedData [09:42:41]SAM_PROTO_SignData [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 0D 01 02 [09:42:41]Write to MH i2c: E2 08 00 DD 10 80 0D 01 02 00 00 00 00 66 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 03 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [09:42:41]RAPDU: 90 00 [09:42:41]wFMCommunicate OK [09:42:41]wFMCommunicate request_size=255 [09:42:41]MH_SAM_APDU [09:42: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 C8 32 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 35 00 00 00 F4 03 04 00 92 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 1F 02 00 35 04 06 00 0F [09:42:41]Write to MH i2c: E2 02 01 DE 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 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 35 00 00 00 F4 03 04 00 92 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 1F 02 00 35 04 06 00 0F 00 00 3E [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 03 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [09:42:42]RAPDU: 90 00 [09:42:42]wFMCommunicate OK [09:42:42]wFMCommunicate request_size=10 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 0D 02 02 05 58 5E 74 3D 0F [09:42:42]Write to MH i2c: E2 0D 00 DF 10 80 0D 02 02 05 00 58 5E 74 3D 0F 00 00 E9 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 03 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 03 00 DF 10 00 90 00 63 [09:42:42]RAPDU: 90 00 [09:42:42]wFMCommunicate OK [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 0D 03 02 [09:42:42]Write to MH i2c: E2 08 00 E0 10 80 0D 03 02 00 00 00 00 6B [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0B 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0B 00 E0 10 00 4C 6F A0 55 AA 3C B0 F6 90 00 A8 [09:42:42]RAPDU: 4C 6F A0 55 AA 3C B0 F6 90 00 [09:42:42]wFMCommunicate OK [09:42:42]SAM_PROTO_SignData done [09:42:42]FM_MakeSignedData done [09:42:42]CreateOFDProtocolMessage [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 11 00 00 [09:42:42]Write to MH i2c: E2 08 00 E1 10 80 11 00 00 00 00 00 00 6B [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 17 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 17 00 E1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C2 [09:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:42:42]wFMCommunicate OK [09:42:42]CreateOFDProtocolMessage done [09:42:42]OFDSenderStorePacket 139218 [09:42:42]StoreOFDPacket docnum=139218 [09:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E AD 07 01 13 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 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 35 00 00 00 F4 03 04 00 92 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 1F 02 00 35 04 06 00 0F 58 5E 74 3D 0F 4C 6F A0 55 AA 3C B0 F6 [09:42:42]CheckFolder [09:42:42]dirname=/storage/ofd_packets [09:42:42]CheckFolder done [09:42:42]ProducePacketName [09:42:42]name=ofd_packets/00139218 [09:42:42]NVStorageSaveData ofd_packets/00139218 [09:42:42]File name is /storage/ofd_packets/00139218 [09:42:42]Write 301 bytes [09:42:42]NVStorageSaveData done [09:42:42]OFDSenderStorePacket done [09:42:42]KKMCreateOFDPacket done [09:42:42]NVStorageSaveData kkm_last_timestamp [09:42:42]File name is /storage/kkm_last_timestamp [09:42:42]Write 4 bytes [09:42:42]NVStorageSaveData done [09:42:42]ExternCall_PrintAddStr [09:42:42]wPrintStart [09:42:42]Write to MH i2c: 01 00 00 E2 10 F2 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 E2 10 00 00 00 00 00 FF 0F 07 [09:42:42]RasterBufferAndPrint [09:42:42]line Счет N : (1)593058 [09:42:42]line ИНН: 02508201610067 [09:42:42]line Контрольно-Кассовый Чек [09:42:42]line ПРОДАЖА [09:42:42]line ТРК (МРК, ГНК) : 52 [09:42:42]line Товар: 2710124130 [09:42:42]line Аи-92-К-5 [09:42:42]line 13.000 * 0.00 [09:42:42]line = 0.00 [09:42:42]line НДС 12% НСП 1% [09:42:42]line > о реализуемом товаре [09:42:42]line ИТОГО: 0.00 [09:42:42]line НСП 1% : 0.00 [09:42:42]line НДС 12% : 0.00 [09:42:42]line Наличными: 0.00 [09:42:42]line Безнал.: 0.00 [09:42:42]line Место: АЗС № 136 "Партнер Нефть" [09:42:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:42:42]line СНО: Общий режим [09:42:42]line Чек 53 19.08.2024 09:42 [09:42:42]line Смена: 452 ФФД: 1.0 [09:42:42]line ЗНМ: 0300000067 [09:42:42]line РНМ: 0000000000092569 [09:42:42]line Версия ККМ: 001 [09:42:42]line Талоны: Топливная Карта [09:42:42]line 03824 [09:42:42]line ФМ: 0000000000871776 [09:42:42]line ФД: 139218 [09:42:42]line ФПД: 16872216214799 [09:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094242&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139218&fm=16872216214799&tin=02508201610067®Number=0000000000092569&sum=0 [09:42:42]written 0, free lines is 4095 [09:42:42]OFD Sender: Processing packet 139218 [packets to send 137, broken 136] [09:42:42]ProducePacketName [09:42:42]name=ofd_packets/00139218 [09:42:42]OFD Sender: To server: pG, [09:42:42]CommunicateWithHost lk.salyk.kg:30040 [09:42:42]ConnectInit lk.salyk.kg [09:42:42]Connected sock=10 [09:42: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 37 36 0F 01 00 00 1E AD 07 01 13 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 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 35 00 00 00 F4 03 04 00 92 13 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 1F 02 00 35 04 06 00 0F 58 5E 74 3D 0F 4C 6F A0 55 AA 3C B0 F6 [09:42:42]Write to MH i2c: 01 00 00 0C 11 1D [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 0C 11 00 00 00 00 00 E9 0C 19 [09:42:42]RasterBufferAndPrint [09:42:42]line [09:42:42]line [09:42:42]line [09:42:42]line [09:42:42]line [09:42:42]written 0, free lines is 3312 [09:42:42]MH_Cut [09:42:42]Write to MH i2c: D1 01 00 13 11 01 F6 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: D1 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: D1 01 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: D1 01 00 13 11 00 F5 [09:42:42]Write to MH i2c: 01 00 00 14 11 25 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42: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 37 36 4F 00 00 00 11 A2 47 00 9A 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 37 36 10 04 04 00 D2 1F 02 00 F4 03 04 00 28 BA C2 66 B6 04 01 00 00 97 77 30 26 09 88 E2 86 [09:42:42]CommunicateWithHost err = 0 [09:42:42]CheckOFDResponse [09:42:42]1017 (14) - 77093643461234 [09:42:42]1041 (16) - 0000000000871776 [09:42:42]1040 (4) - 139218 [09:42:42]1012 (4) - 19.08.2024 03:21 [09:42:42]1206 (1) - 0 [09:42:42]OFD Sender: Remove packet 139218 [09:42:42]ProducePacketName [09:42:42]name=ofd_packets/00139218 [09:42:42]NVStorageDeleteData [09:42:43]OFD Sender: No OFD packet to send [09:42:43]*** Cut start [09:42:43]*** Partial cut [09:42:43]*** CUTSNS_PIN = 1 [09:42:43]*** CUTSNS_PIN = 0 [09:42:43]*** Brake cut motor [09:42:43]Read from MH i2c: 01 [09:42:43]MH_I2C_Read... [09:42:43]*** Stop cut motor [09:42:43]*** Cut end [09:42:43]Read from MH i2c: 01 07 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 07 00 14 11 00 00 00 00 00 FF 0F 3A [09:42:43]process_action close_receipt done [09:42:43]requested_data is exist [09:42:43]produce_requested_data [09:42:43]requested_item fm.sn is exist - process it [09:42:43]wFMCommunicate request_size=4 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 11 00 00 [09:42:43]Write to MH i2c: E2 08 00 15 11 80 11 00 00 00 00 00 00 A0 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:43]Read from MH i2c: E2 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 17 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 17 00 15 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F7 [09:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:42:44]wFMCommunicate OK [09:42:44]requested_item fd.num is exist - process it [09:42:44]SAM_PROTO_GetFieldsCounters [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 13 00 00 [09:42:44]Write to MH i2c: E2 08 00 16 11 80 13 00 00 00 00 00 00 A3 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 62 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 62 00 16 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [09:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_GetFieldsCounters done [09:42:44]requested_item shift.num is exist - process it [09:42:44]requested_item shift.opened is exist - process it [09:42:44]req_shift_opened [09:42:44]FM_GetShiftState [09:42:44]SAM_PROTO_GetShiftState [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 13 01 00 [09:42:44]Write to MH i2c: E2 08 00 17 11 80 13 01 00 00 00 00 00 A5 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0E 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0E 00 17 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5C [09:42:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_GetShiftState done [09:42:44]FM_GetShiftState done [09:42:44]req_shift_opened done [09:42:44]requested_item shift.open_date is exist - process it [09:42:44]req_shift_open_date [09:42:44]req_shift_open_date done [09:42:44]produce_requested_data done [09:42:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139218,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:42:44]process_action_free close_receipt [09:42:44]json_value_free [09:42:44]json_value_free done [09:42:44]process_json_proto returns [09:42:44]Send response to host [09:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139218,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:42:44]free response buf [09:42:44]execute_script done [09:42:44]execute_script returns [09:42:44]free content buf [09:42:44]Sock 7.Close socket [09:42:44]Sock 7.Thread stoped [09:42:48]OFD Sender: No OFD packet to send [09:42:49]int [09:42:49]Write to MH i2c: 01 00 00 18 11 29 [09:42:49]*** FLAG_PRN_KEY set [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 07 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 07 00 18 11 00 08 00 00 00 FF 0F 46 [09:42:49]state=0 [09:42:49]Key pressed [09:42:49]Feed [09:42:49]Write to MH i2c: D8 00 00 19 11 01 [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: D8 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: D8 01 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: D8 01 00 19 11 00 02 [09:42:49]int [09:42:49]Write to MH i2c: 01 00 00 1A 11 2B [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 07 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 07 00 1A 11 00 48 00 00 00 3C 00 B6 [09:42:49]state=2 [09:42:49]Key pressed [09:42:49]int [09:42:49]Write to MH i2c: 01 00 00 1B 11 2C [09:42:49]*** FLAG_PRN_KEY reset [09:42:49]Write i2c OK [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 07 00 [09:42:49]MH_I2C_Read... [09:42:49]Read from MH i2c: 01 07 00 1B 11 00 00 00 00 00 F8 0F 3A [09:42:49]state=2 [09:42:49]Stop feed [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:12]accept exits with 9 [09:47:12]New connection [09:47:12]New thread 3067059556 created [09:47:12]Thread 3067202916 joined [09:47:12]Waiting for new connection... [09:47:12] Sock 9.Parse request [09:47:12]Sock 9.Check first char [09:47:12]Sock 9.First char is OK [09:47:12]request: POST /json_proto HTTP/1.0 [09:47:12]Method: POST [09:47:12]URL: /json_proto [09:47:12]Method is POST - this is cgi request [09:47:12]url: /json_proto [09:47:12]query_string will be loaded in cgi processing [09:47:12]execute_cgi json_proto POST (null) [09:47:12]execute_cgi path=json_proto method=POST [09:47:12]POST find Content-Length [09:47:12]Host: 172.17.45.67:8080 [09:47:12]Content-Length: 677 [09:47:12]Content-Type: application/json [09:47:12] [09:47:12]POST finish read [09:47:12]Found Content-Length = 677 [09:47:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [09:47:12]execute_script... [09:47: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)593060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [09:47:12]POST & json_proto [09:47:12]process_json_proto [09:47:12]json parsed OK: [09:47:12]protocol is kg_v1.0 [09:47:12]action value=close_receipt [09:47:12]process_action close_receipt [09:47:12]cmd_close_receipt [09:47:12]MH_GetDate [09:47:12]Write to MH i2c: F0 00 00 1C 11 1C [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: F0 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: F0 09 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: F0 09 00 1C 11 00 A2 14 C3 66 5F 7F 2B 66 73 [09:47:12]GetLastDocTimeStamp 1724060562 [09:47:12]current date 1724060834 [09:47:12]FM_GetShiftState [09:47:12]SAM_PROTO_GetShiftState [09:47:12]wFMCommunicate request_size=4 [09:47:12]MH_SAM_APDU [09:47:12]CAPDU: 80 13 01 00 [09:47:12]Write to MH i2c: E2 08 00 1D 11 80 13 01 00 00 00 00 00 AB [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:12]Read from MH i2c: E2 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 0E 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 0E 00 1D 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 62 [09:47:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:47:12]wFMCommunicate OK [09:47:12]SAM_PROTO_GetShiftState done [09:47:12]FM_GetShiftState done [09:47:12]opened in 1724027888 [09:47:12]opened+sec_in_day 1724114288 [09:47:12]quantity*price = 20001 [09:47:12]sum+1 = 20002 [09:47:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 54 19.08.2024 09:47 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139219 ФПД: 187638476908252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094714&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139219&fm=187638476908252&tin=02508201610067®Number=0000000000092569&sum=20000 [09:47:13]StoreToDocumentArchive [09:47:13]shift 452 fd 139219 [09:47:13]save to /storage/0452/doc_00139219 [09:47:13]save last doc name /storage/0452/doc_00139219 to /storage/kkm_last_doc_name [09:47:13]save OK [09:47:13]Clear old archive folders... [09:47:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:13]tlvbuf is B6DE56D0 [09:47:13]SAM_PROTO_ClearQueue [09:47:13]wFMCommunicate request_size=4 [09:47:13]MH_SAM_APDU [09:47:13]CAPDU: 80 09 00 00 [09:47:13]Write to MH i2c: E2 08 00 2A 11 80 09 00 00 00 00 00 00 AD [09:47:13]Write i2c OK [09:47:13]MH_I2C_Read... [09:47:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:13]Read from MH i2c: E2 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: E2 03 00 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: E2 03 00 2A 11 00 90 00 AF [09:47:13]RAPDU: 90 00 [09:47:13]wFMCommunicate OK [09:47:13]SAM_PROTO_ClearQueue done [09:47:13]KKMCreateOFDPacket [09:47:13]OFDProtocolAddRootSTLVToBuf [09:47:13]FM_MakeSignedData [09:47:13]FM_MakeSignedData [09:47:13]SAM_PROTO_SignData [09:47:13]wFMCommunicate request_size=4 [09:47:13]MH_SAM_APDU [09:47:13]CAPDU: 80 0D 01 02 [09:47:13]Write to MH i2c: E2 08 00 2B 11 80 0D 01 02 00 00 00 00 B5 [09:47:13]Write i2c OK [09:47:13]MH_I2C_Read... [09:47:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:13]Read from MH i2c: E2 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: E2 03 00 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [09:47:13]RAPDU: 90 00 [09:47:13]wFMCommunicate OK [09:47:13]wFMCommunicate request_size=255 [09:47:13]MH_SAM_APDU [09:47: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 36 00 00 00 F4 03 04 00 A2 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 1F 02 00 35 04 06 00 AA [09:47:13]Write to MH i2c: E2 02 01 2C 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 36 00 00 00 F4 03 04 00 A2 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 1F 02 00 35 04 06 00 AA 00 00 B8 [09:47:13]Write i2c OK [09:47:13]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 2C 11 00 90 00 B1 [09:47:14]RAPDU: 90 00 [09:47:14]wFMCommunicate OK [09:47:14]wFMCommunicate request_size=10 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 0D 02 02 05 A7 FC C3 26 DC [09:47:14]Write to MH i2c: E2 0D 00 2D 11 80 0D 02 02 05 00 A7 FC C3 26 DC 00 00 2A [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 03 00 2D 11 00 90 00 B2 [09:47:14]RAPDU: 90 00 [09:47:14]wFMCommunicate OK [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 0D 03 02 [09:47:14]Write to MH i2c: E2 08 00 2E 11 80 0D 03 02 00 00 00 00 BA [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 0B 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 0B 00 2E 11 00 F5 00 83 BA DD 50 82 27 90 00 C3 [09:47:14]RAPDU: F5 00 83 BA DD 50 82 27 90 00 [09:47:14]wFMCommunicate OK [09:47:14]SAM_PROTO_SignData done [09:47:14]FM_MakeSignedData done [09:47:14]CreateOFDProtocolMessage [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 11 00 00 [09:47:14]Write to MH i2c: E2 08 00 2F 11 80 11 00 00 00 00 00 00 BA [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 17 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 17 00 2F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 11 [09:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:14]wFMCommunicate OK [09:47:14]CreateOFDProtocolMessage done [09:47:14]OFDSenderStorePacket 139219 [09:47:14]StoreOFDPacket docnum=139219 [09:47:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C7 78 07 01 C7 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 36 00 00 00 F4 03 04 00 A2 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 1F 02 00 35 04 06 00 AA A7 FC C3 26 DC F5 00 83 BA DD 50 82 27 [09:47:14]CheckFolder [09:47:14]dirname=/storage/ofd_packets [09:47:14]CheckFolder done [09:47:14]ProducePacketName [09:47:14]name=ofd_packets/00139219 [09:47:14]NVStorageSaveData ofd_packets/00139219 [09:47:14]File name is /storage/ofd_packets/00139219 [09:47:14]Write 301 bytes [09:47:14]NVStorageSaveData done [09:47:14]OFDSenderStorePacket done [09:47:14]KKMCreateOFDPacket done [09:47:14]NVStorageSaveData kkm_last_timestamp [09:47:14]File name is /storage/kkm_last_timestamp [09:47:14]Write 4 bytes [09:47:14]NVStorageSaveData done [09:47:14]ExternCall_PrintAddStr [09:47:14]wPrintStart [09:47:14]Write to MH i2c: 01 00 00 30 11 41 [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: 01 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: 01 07 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: 01 07 00 30 11 00 00 00 00 00 FF 0F 56 [09:47:14]RasterBufferAndPrint [09:47:14]line Счет N : (1)593060 [09:47:14]line ИНН: 02508201610067 [09:47:14]line Контрольно-Кассовый Чек [09:47:14]line ПРОДАЖА [09:47:14]line ТРК (МРК, ГНК) : 42 [09:47:14]line Товар: 2710124130 [09:47:14]line Аи-92-К-5 [09:47:14]line 2.950 * 67.80 [09:47:14]line = 200.01 [09:47:14]line НДС 12% НСП 1% [09:47:14]line > о реализуемом товаре [09:47:14]line ОКРУГЛЕНИЕ: -0.01 [09:47:14]line ИТОГО: 200.00 [09:47:14]line Внесено: 200.00 [09:47:14]line СДАЧА: 0.00 [09:47:14]line НСП 1% : 1.77 [09:47:14]line НДС 12% : 21.24 [09:47:14]line Наличными: 200.00 [09:47:14]line Безнал.: 0.00 [09:47:14]line Место: АЗС № 136 "Партнер Нефть" [09:47:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:47:14]line СНО: Общий режим [09:47:14]line Чек 54 19.08.2024 09:47 [09:47:14]line Смена: 452 ФФД: 1.0 [09:47:14]line ЗНМ: 0300000067 [09:47:14]line РНМ: 0000000000092569 [09:47:14]line Версия ККМ: 001 [09:47:14]line ФМ: 0000000000871776 [09:47:14]line ФД: 139219 [09:47:14]line ФПД: 187638476908252 [09:47:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094714&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139219&fm=187638476908252&tin=02508201610067®Number=0000000000092569&sum=20000 [09:47:14]OFD Sender: Processing packet 139219 [packets to send 137, broken 136] [09:47:14]ProducePacketName [09:47:14]name=ofd_packets/00139219 [09:47:14]OFD Sender: To server: pG, [09:47:14]CommunicateWithHost lk.salyk.kg:30040 [09:47:14]ConnectInit lk.salyk.kg [09:47:14]written 0, free lines is 4095 [09:47:14]Connected sock=10 [09:47: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 37 36 0F 01 00 00 C7 78 07 01 C7 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 36 00 00 00 F4 03 04 00 A2 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 1F 02 00 35 04 06 00 AA A7 FC C3 26 DC F5 00 83 BA DD 50 82 27 [09:47: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 37 36 4F 00 00 00 29 AA 47 00 AD 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 37 36 10 04 04 00 D3 1F 02 00 F4 03 04 00 39 BB C2 66 B6 04 01 00 00 76 43 48 9A 96 F5 5F 3A [09:47:15]CommunicateWithHost err = 0 [09:47:15]CheckOFDResponse [09:47:15]1017 (14) - 77093643461234 [09:47:15]1041 (16) - 0000000000871776 [09:47:15]1040 (4) - 139219 [09:47:15]1012 (4) - 19.08.2024 03:25 [09:47:15]1206 (1) - 0 [09:47:15]OFD Sender: Remove packet 139219 [09:47:15]ProducePacketName [09:47:15]name=ofd_packets/00139219 [09:47:15]NVStorageDeleteData [09:47:15]Write to MH i2c: 01 00 00 5B 11 6C [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 07 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: 01 07 00 5B 11 00 00 00 00 00 D4 0C 53 [09:47:15]RasterBufferAndPrint [09:47:15]line [09:47:15]line [09:47:15]line [09:47:15]line [09:47:15]line [09:47:15]written 0, free lines is 3292 [09:47:15]MH_Cut [09:47:15]Write to MH i2c: D1 01 00 62 11 01 45 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: D1 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: D1 01 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: D1 01 00 62 11 00 44 [09:47:15]Write to MH i2c: 01 00 00 63 11 74 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]OFD Sender: No OFD packet to send [09:47:15]*** Cut start [09:47:15]*** Partial cut [09:47:15]*** CUTSNS_PIN = 1 [09:47:15]*** CUTSNS_PIN = 0 [09:47:16]*** Brake cut motor [09:47:16]Read from MH i2c: 01 [09:47:16]MH_I2C_Read... [09:47:16]*** Stop cut motor [09:47:16]*** Cut end [09:47:16]Read from MH i2c: 01 07 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: 01 07 00 63 11 00 00 00 00 00 FF 0F 89 [09:47:16]process_action close_receipt done [09:47:16]requested_data is exist [09:47:16]produce_requested_data [09:47:16]requested_item fm.sn is exist - process it [09:47:16]wFMCommunicate request_size=4 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 11 00 00 [09:47:16]Write to MH i2c: E2 08 00 64 11 80 11 00 00 00 00 00 00 EF [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 17 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 17 00 64 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 46 [09:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:16]wFMCommunicate OK [09:47:16]requested_item fd.num is exist - process it [09:47:16]SAM_PROTO_GetFieldsCounters [09:47:16]wFMCommunicate request_size=4 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 13 00 00 [09:47:16]Write to MH i2c: E2 08 00 65 11 80 13 00 00 00 00 00 00 F2 [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 62 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 62 00 65 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [09:47: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:16]wFMCommunicate OK [09:47:16]SAM_PROTO_GetFieldsCounters done [09:47:16]requested_item shift.num is exist - process it [09:47:16]requested_item shift.opened is exist - process it [09:47:16]req_shift_opened [09:47:16]FM_GetShiftState [09:47:16]SAM_PROTO_GetShiftState [09:47:16]wFMCommunicate request_size=4 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 13 01 00 [09:47:16]Write to MH i2c: E2 08 00 66 11 80 13 01 00 00 00 00 00 F4 [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 0E 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 0E 00 66 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AB [09:47:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:47:16]wFMCommunicate OK [09:47:16]SAM_PROTO_GetShiftState done [09:47:16]FM_GetShiftState done [09:47:16]req_shift_opened done [09:47:16]requested_item shift.open_date is exist - process it [09:47:16]req_shift_open_date [09:47:16]req_shift_open_date done [09:47:16]produce_requested_data done [09:47:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139219,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:47:16]process_action_free close_receipt [09:47:16]json_value_free [09:47:16]json_value_free done [09:47:16]process_json_proto returns [09:47:16]Send response to host [09:47:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139219,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:47:16]free response buf [09:47:16]execute_script done [09:47:16]execute_script returns [09:47:16]free content buf [09:47:16]Sock 9.Close socket [09:47:16]Sock 9.Thread stoped [09:47:17]accept exits with 7 [09:47:17]New connection [09:47:17]New thread 3067202916 created [09:47:17]Thread 3067059556 joined [09:47:17]Waiting for new connection... [09:47:17] Sock 7.Parse request [09:47:17]Sock 7.Check first char [09:47:17]Sock 7.First char is OK [09:47:17]request: POST /json_proto HTTP/1.0 [09:47:17]Method: POST [09:47:17]URL: /json_proto [09:47:17]Method is POST - this is cgi request [09:47:17]url: /json_proto [09:47:17]query_string will be loaded in cgi processing [09:47:17]execute_cgi json_proto POST (null) [09:47:17]execute_cgi path=json_proto method=POST [09:47:17]POST find Content-Length [09:47:17]Host: 172.17.45.67:8080 [09:47:17]Content-Length: 678 [09:47:17]Content-Type: application/json [09:47:17] [09:47:17]POST finish read [09:47:17]Found Content-Length = 678 [09:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.320, "sum" : 835.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 835.00, "total" : 835.00, "payments": [ { "type": 0, "sum" : 835.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:17]execute_script... [09:47:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.320, "sum" : 835.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 835.00, "total" : 835.00, "payments": [ { "type": 0, "sum" : 835.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:17]POST & json_proto [09:47:17]process_json_proto [09:47:17]json parsed OK: [09:47:17]protocol is kg_v1.0 [09:47:17]action value=close_receipt [09:47:17]process_action close_receipt [09:47:17]cmd_close_receipt [09:47:17]MH_GetDate [09:47:17]Write to MH i2c: F0 00 00 67 11 67 [09:47:17]Write i2c OK [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: F0 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: F0 09 00 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: F0 09 00 67 11 00 A7 14 C3 66 5F 7F 2B 66 C3 [09:47:17]GetLastDocTimeStamp 1724060834 [09:47:17]current date 1724060839 [09:47:17]FM_GetShiftState [09:47:17]SAM_PROTO_GetShiftState [09:47:17]wFMCommunicate request_size=4 [09:47:17]MH_SAM_APDU [09:47:17]CAPDU: 80 13 01 00 [09:47:17]Write to MH i2c: E2 08 00 68 11 80 13 01 00 00 00 00 00 F6 [09:47:17]Write i2c OK [09:47:17]MH_I2C_Read... [09:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:17]Read from MH i2c: E2 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 0E 00 [09:47:17]MH_I2C_Read... [09:47:17]Read from MH i2c: E2 0E 00 68 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AD [09:47:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:47:17]wFMCommunicate OK [09:47:17]SAM_PROTO_GetShiftState done [09:47:17]FM_GetShiftState done [09:47:17]opened in 1724027888 [09:47:17]opened+sec_in_day 1724114288 [09:47:17]quantity*price = 83529 [09:47:17]sum+1 = 83531 [09:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 835.00 Внесено: 835.00 СДАЧА: 0.00 НСП 1% : 7.39 НДС 12% : 88.70 Наличными: 835.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 55 19.08.2024 09:47 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139220 ФПД: 143988023266362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094719&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139220&fm=143988023266362&tin=02508201610067®Number=0000000000092569&sum=83500 [09:47:18]StoreToDocumentArchive [09:47:18]shift 452 fd 139220 [09:47:18]save to /storage/0452/doc_00139220 [09:47:18]save last doc name /storage/0452/doc_00139220 to /storage/kkm_last_doc_name [09:47:18]save OK [09:47:18]Clear old archive folders... [09:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:18]tlvbuf is 01DB5B00 [09:47:18]SAM_PROTO_ClearQueue [09:47:18]wFMCommunicate request_size=4 [09:47:18]MH_SAM_APDU [09:47:18]CAPDU: 80 09 00 00 [09:47:18]Write to MH i2c: E2 08 00 75 11 80 09 00 00 00 00 00 00 F8 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:18]Read from MH i2c: E2 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 75 11 00 90 00 FA [09:47:18]RAPDU: 90 00 [09:47:18]wFMCommunicate OK [09:47:18]SAM_PROTO_ClearQueue done [09:47:18]KKMCreateOFDPacket [09:47:18]OFDProtocolAddRootSTLVToBuf [09:47:18]FM_MakeSignedData [09:47:18]FM_MakeSignedData [09:47:18]SAM_PROTO_SignData [09:47:18]wFMCommunicate request_size=4 [09:47:18]MH_SAM_APDU [09:47:18]CAPDU: 80 0D 01 02 [09:47:18]Write to MH i2c: E2 08 00 76 11 80 0D 01 02 00 00 00 00 00 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:18]Read from MH i2c: E2 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 76 11 00 90 00 FB [09:47:18]RAPDU: 90 00 [09:47:18]wFMCommunicate OK [09:47:18]wFMCommunicate request_size=255 [09:47:18]MH_SAM_APDU [09:47: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 20 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 46 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 46 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 22 00 00 00 00 07 04 06 00 2C 46 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 A7 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 1F 02 00 35 04 06 00 82 [09:47:18]Write to MH i2c: E2 02 01 77 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 46 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 46 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 22 00 00 00 00 07 04 06 00 2C 46 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 A7 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 1F 02 00 35 04 06 00 82 00 00 75 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:18]Read from MH i2c: E2 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 03 00 77 11 00 90 00 FC [09:47:18]RAPDU: 90 00 [09:47:18]wFMCommunicate OK [09:47:18]wFMCommunicate request_size=10 [09:47:18]MH_SAM_APDU [09:47:18]CAPDU: 80 0D 02 02 05 F4 D2 FA 8C 3A [09:47:18]Write to MH i2c: E2 0D 00 78 11 80 0D 02 02 05 00 F4 D2 FA 8C 3A 00 00 93 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:19]Read from MH i2c: E2 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 03 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 03 00 78 11 00 90 00 FD [09:47:19]RAPDU: 90 00 [09:47:19]wFMCommunicate OK [09:47:19]wFMCommunicate request_size=4 [09:47:19]MH_SAM_APDU [09:47:19]CAPDU: 80 0D 03 02 [09:47:19]Write to MH i2c: E2 08 00 79 11 80 0D 03 02 00 00 00 00 05 [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:19]Read from MH i2c: E2 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 0B 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 0B 00 79 11 00 80 64 44 87 27 D5 7A 58 90 00 83 [09:47:19]RAPDU: 80 64 44 87 27 D5 7A 58 90 00 [09:47:19]wFMCommunicate OK [09:47:19]SAM_PROTO_SignData done [09:47:19]FM_MakeSignedData done [09:47:19]CreateOFDProtocolMessage [09:47:19]wFMCommunicate request_size=4 [09:47:19]MH_SAM_APDU [09:47:19]CAPDU: 80 11 00 00 [09:47:19]Write to MH i2c: E2 08 00 7A 11 80 11 00 00 00 00 00 00 05 [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:19]Read from MH i2c: E2 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 17 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 17 00 7A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5C [09:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:19]wFMCommunicate OK [09:47:19]CreateOFDProtocolMessage done [09:47:19]OFDSenderStorePacket 139220 [09:47:19]StoreOFDPacket docnum=139220 [09:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4A E4 07 01 D7 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 20 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 46 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 46 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 22 00 00 00 00 07 04 06 00 2C 46 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 A7 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 1F 02 00 35 04 06 00 82 F4 D2 FA 8C 3A 80 64 44 87 27 D5 7A 58 [09:47:19]CheckFolder [09:47:19]dirname=/storage/ofd_packets [09:47:19]CheckFolder done [09:47:19]ProducePacketName [09:47:19]name=ofd_packets/00139220 [09:47:19]NVStorageSaveData ofd_packets/00139220 [09:47:19]File name is /storage/ofd_packets/00139220 [09:47:19]Write 301 bytes [09:47:19]NVStorageSaveData done [09:47:19]OFDSenderStorePacket done [09:47:19]KKMCreateOFDPacket done [09:47:19]NVStorageSaveData kkm_last_timestamp [09:47:19]File name is /storage/kkm_last_timestamp [09:47:19]Write 4 bytes [09:47:19]NVStorageSaveData done [09:47:19]ExternCall_PrintAddStr [09:47:19]wPrintStart [09:47:19]Write to MH i2c: 01 00 00 7B 11 8C [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: 01 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: 01 07 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: 01 07 00 7B 11 00 00 00 00 00 FF 0F A1 [09:47:19]RasterBufferAndPrint [09:47:19]line Счет N : (1)593059 [09:47:19]line ИНН: 02508201610067 [09:47:19]line Контрольно-Кассовый Чек [09:47:19]line ПРОДАЖА [09:47:19]line ТРК (МРК, ГНК) : 32 [09:47:19]line Товар: 2710124130 [09:47:19]line Аи-92-К-5 [09:47:19]line 12.320 * 67.80 [09:47:19]line = 835.30 [09:47:19]line НДС 12% НСП 1% [09:47:19]line > о реализуемом товаре [09:47:19]line ОКРУГЛЕНИЕ: -0.30 [09:47:19]line ИТОГО: 835.00 [09:47:19]line Внесено: 835.00 [09:47:19]line СДАЧА: 0.00 [09:47:19]line НСП 1% : 7.39 [09:47:19]line НДС 12% : 88.70 [09:47:19]line Наличными: 835.00 [09:47:19]line Безнал.: 0.00 [09:47:19]line Место: АЗС № 136 "Партнер Нефть" [09:47:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:47:19]line СНО: Общий режим [09:47:19]line Чек 55 19.08.2024 09:47 [09:47:19]line Смена: 452 ФФД: 1.0 [09:47:19]line ЗНМ: 0300000067 [09:47:19]line РНМ: 0000000000092569 [09:47:19]line Версия ККМ: 001 [09:47:19]line ФМ: 0000000000871776 [09:47:19]line ФД: 139220 [09:47:19]line ФПД: 143988023266362 [09:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094719&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139220&fm=143988023266362&tin=02508201610067®Number=0000000000092569&sum=83500 [09:47:19]OFD Sender: Processing packet 139220 [packets to send 137, broken 136] [09:47:19]ProducePacketName [09:47:19]name=ofd_packets/00139220 [09:47:19]OFD Sender: To server: pG, [09:47:19]CommunicateWithHost lk.salyk.kg:30040 [09:47:19]ConnectInit lk.salyk.kg [09:47:19]written 0, free lines is 4095 [09:47:19]Connected sock=10 [09:47: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 37 36 0F 01 00 00 4A E4 07 01 D7 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 20 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 46 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 46 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 22 00 00 00 00 07 04 06 00 2C 46 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 A7 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 1F 02 00 35 04 06 00 82 F4 D2 FA 8C 3A 80 64 44 87 27 D5 7A 58 [09:47: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 37 36 4F 00 00 00 E8 B0 47 00 24 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 37 36 10 04 04 00 D4 1F 02 00 F4 03 04 00 3D BB C2 66 B6 04 01 00 00 E6 1F CB 75 23 89 34 62 [09:47:19]CommunicateWithHost err = 0 [09:47:19]CheckOFDResponse [09:47:19]1017 (14) - 77093643461234 [09:47:19]1041 (16) - 0000000000871776 [09:47:19]1040 (4) - 139220 [09:47:19]1012 (4) - 19.08.2024 03:25 [09:47:19]1206 (1) - 0 [09:47:19]OFD Sender: Remove packet 139220 [09:47:19]ProducePacketName [09:47:19]name=ofd_packets/00139220 [09:47:19]NVStorageDeleteData [09:47:19]Write to MH i2c: 01 00 00 A6 11 B7 [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: 01 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: 01 07 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: 01 07 00 A6 11 00 00 00 00 00 DF 0C A9 [09:47:19]RasterBufferAndPrint [09:47:19]line [09:47:19]line [09:47:19]line [09:47:19]line [09:47:19]line [09:47:19]written 0, free lines is 3304 [09:47:19]MH_Cut [09:47:19]Write to MH i2c: D1 01 00 AD 11 01 90 [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: D1 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: D1 01 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: D1 01 00 AD 11 00 8F [09:47:19]Write to MH i2c: 01 00 00 AE 11 BF [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:20]OFD Sender: No OFD packet to send [09:47:20]*** Cut start [09:47:20]*** Partial cut [09:47:20]*** CUTSNS_PIN = 1 [09:47:20]*** CUTSNS_PIN = 0 [09:47:20]*** Brake cut motor [09:47:21]Read from MH i2c: 01 [09:47:21]MH_I2C_Read... [09:47:21]*** Stop cut motor [09:47:21]*** Cut end [09:47:21]Read from MH i2c: 01 07 00 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: 01 07 00 AE 11 00 00 00 00 00 FF 0F D4 [09:47:21]process_action close_receipt done [09:47:21]requested_data is exist [09:47:21]produce_requested_data [09:47:21]requested_item fm.sn is exist - process it [09:47:21]wFMCommunicate request_size=4 [09:47:21]MH_SAM_APDU [09:47:21]CAPDU: 80 11 00 00 [09:47:21]Write to MH i2c: E2 08 00 AF 11 80 11 00 00 00 00 00 00 3A [09:47:21]Write i2c OK [09:47:21]MH_I2C_Read... [09:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:21]Read from MH i2c: E2 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: E2 17 00 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: E2 17 00 AF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 91 [09:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:21]wFMCommunicate OK [09:47:21]requested_item fd.num is exist - process it [09:47:21]SAM_PROTO_GetFieldsCounters [09:47:21]wFMCommunicate request_size=4 [09:47:21]MH_SAM_APDU [09:47:21]CAPDU: 80 13 00 00 [09:47:21]Write to MH i2c: E2 08 00 B0 11 80 13 00 00 00 00 00 00 3D [09:47:21]Write i2c OK [09:47:21]MH_I2C_Read... [09:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:21]Read from MH i2c: E2 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: E2 62 00 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: E2 62 00 B0 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [09:47: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:21]wFMCommunicate OK [09:47:21]SAM_PROTO_GetFieldsCounters done [09:47:21]requested_item shift.num is exist - process it [09:47:21]requested_item shift.opened is exist - process it [09:47:21]req_shift_opened [09:47:21]FM_GetShiftState [09:47:21]SAM_PROTO_GetShiftState [09:47:21]wFMCommunicate request_size=4 [09:47:21]MH_SAM_APDU [09:47:21]CAPDU: 80 13 01 00 [09:47:21]Write to MH i2c: E2 08 00 B1 11 80 13 01 00 00 00 00 00 3F [09:47:21]Write i2c OK [09:47:21]MH_I2C_Read... [09:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:21]Read from MH i2c: E2 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: E2 0E 00 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: E2 0E 00 B1 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F6 [09:47:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:47:21]wFMCommunicate OK [09:47:21]SAM_PROTO_GetShiftState done [09:47:21]FM_GetShiftState done [09:47:21]req_shift_opened done [09:47:21]requested_item shift.open_date is exist - process it [09:47:21]req_shift_open_date [09:47:21]req_shift_open_date done [09:47:21]produce_requested_data done [09:47:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139220,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:47:21]process_action_free close_receipt [09:47:21]json_value_free [09:47:21]json_value_free done [09:47:21]process_json_proto returns [09:47:21]Send response to host [09:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139220,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:47:21]free response buf [09:47:21]execute_script done [09:47:21]execute_script returns [09:47:21]free content buf [09:47:21]Sock 7.Close socket [09:47:21]Sock 7.Thread stoped [09:47:21]accept exits with 9 [09:47:21]New connection [09:47:21]New thread 3067059556 created [09:47:21]Thread 3067202916 joined [09:47:21]Waiting for new connection... [09:47:21] Sock 9.Parse request [09:47:21]Sock 9.Check first char [09:47:21]Sock 9.First char is OK [09:47:21]request: POST /json_proto HTTP/1.0 [09:47:21]Method: POST [09:47:21]URL: /json_proto [09:47:21]Method is POST - this is cgi request [09:47:21]url: /json_proto [09:47:21]query_string will be loaded in cgi processing [09:47:21]execute_cgi json_proto POST (null) [09:47:21]execute_cgi path=json_proto method=POST [09:47:21]POST find Content-Length [09:47:21]Host: 172.17.45.67:8080 [09:47:21]Content-Length: 677 [09:47:21]Content-Type: application/json [09:47:21] [09:47:21]POST finish read [09:47:21]Found Content-Length = 677 [09:47:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:47:21]execute_script... [09:47:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:47:21]POST & json_proto [09:47:21]process_json_proto [09:47:21]json parsed OK: [09:47:21]protocol is kg_v1.0 [09:47:21]action value=close_receipt [09:47:21]process_action close_receipt [09:47:21]cmd_close_receipt [09:47:21]MH_GetDate [09:47:21]Write to MH i2c: F0 00 00 B2 11 B2 [09:47:21]Write i2c OK [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: F0 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: F0 09 00 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: F0 09 00 B2 11 00 AC 14 C3 66 5F 7F 2B 66 13 [09:47:21]GetLastDocTimeStamp 1724060839 [09:47:21]current date 1724060844 [09:47:21]FM_GetShiftState [09:47:21]SAM_PROTO_GetShiftState [09:47:21]wFMCommunicate request_size=4 [09:47:21]MH_SAM_APDU [09:47:21]CAPDU: 80 13 01 00 [09:47:21]Write to MH i2c: E2 08 00 B3 11 80 13 01 00 00 00 00 00 41 [09:47:21]Write i2c OK [09:47:21]MH_I2C_Read... [09:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:21]Read from MH i2c: E2 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: E2 0E 00 [09:47:21]MH_I2C_Read... [09:47:21]Read from MH i2c: E2 0E 00 B3 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F8 [09:47:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:47:21]wFMCommunicate OK [09:47:21]SAM_PROTO_GetShiftState done [09:47:21]FM_GetShiftState done [09:47:21]opened in 1724027888 [09:47:21]opened+sec_in_day 1724114288 [09:47:21]quantity*price = 50036 [09:47:21]sum+1 = 50037 [09:47:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 56 19.08.2024 09:47 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139221 ФПД: 113005395293561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094724&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139221&fm=113005395293561&tin=02508201610067®Number=0000000000092569&sum=50000 [09:47:23]StoreToDocumentArchive [09:47:23]shift 452 fd 139221 [09:47:23]save to /storage/0452/doc_00139221 [09:47:23]save last doc name /storage/0452/doc_00139221 to /storage/kkm_last_doc_name [09:47:23]save OK [09:47:23]Clear old archive folders... [09:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:23]tlvbuf is 01E5C820 [09:47:23]SAM_PROTO_ClearQueue [09:47:23]wFMCommunicate request_size=4 [09:47:23]MH_SAM_APDU [09:47:23]CAPDU: 80 09 00 00 [09:47:23]Write to MH i2c: E2 08 00 C0 11 80 09 00 00 00 00 00 00 43 [09:47:23]Write i2c OK [09:47:23]MH_I2C_Read... [09:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:23]Read from MH i2c: E2 [09:47:23]MH_I2C_Read... [09:47:23]Read from MH i2c: E2 03 00 [09:47:23]MH_I2C_Read... [09:47:23]Read from MH i2c: E2 03 00 C0 11 00 90 00 45 [09:47:23]RAPDU: 90 00 [09:47:23]wFMCommunicate OK [09:47:23]SAM_PROTO_ClearQueue done [09:47:23]KKMCreateOFDPacket [09:47:23]OFDProtocolAddRootSTLVToBuf [09:47:23]FM_MakeSignedData [09:47:23]FM_MakeSignedData [09:47:23]SAM_PROTO_SignData [09:47:23]wFMCommunicate request_size=4 [09:47:23]MH_SAM_APDU [09:47:23]CAPDU: 80 0D 01 02 [09:47:23]Write to MH i2c: E2 08 00 C1 11 80 0D 01 02 00 00 00 00 4B [09:47:23]Write i2c OK [09:47:23]MH_I2C_Read... [09:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:23]Read from MH i2c: E2 [09:47:23]MH_I2C_Read... [09:47:23]Read from MH i2c: E2 03 00 [09:47:23]MH_I2C_Read... [09:47:23]Read from MH i2c: E2 03 00 C1 11 00 90 00 46 [09:47:23]RAPDU: 90 00 [09:47:23]wFMCommunicate OK [09:47:23]wFMCommunicate request_size=255 [09:47:23]MH_SAM_APDU [09: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 38 00 00 00 F4 03 04 00 AC 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 1F 02 00 35 04 06 00 66 [09:47:23]Write to MH i2c: E2 02 01 C2 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 38 00 00 00 F4 03 04 00 AC 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 1F 02 00 35 04 06 00 66 00 00 16 [09:47:23]Write i2c OK [09:47:23]MH_I2C_Read... [09:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:23]Read from MH i2c: E2 [09:47:23]MH_I2C_Read... [09:47:23]Read from MH i2c: E2 03 00 [09:47:23]MH_I2C_Read... [09:47:23]Read from MH i2c: E2 03 00 C2 11 00 90 00 47 [09:47:23]RAPDU: 90 00 [09:47:23]wFMCommunicate OK [09:47:23]wFMCommunicate request_size=10 [09:47:23]MH_SAM_APDU [09:47:23]CAPDU: 80 0D 02 02 05 C7 1E 71 B5 79 [09:47:23]Write to MH i2c: E2 0D 00 C3 11 80 0D 02 02 05 00 C7 1E 71 B5 79 00 00 DC [09:47:23]Write i2c OK [09:47:23]MH_I2C_Read... [09:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:24]Read from MH i2c: E2 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 03 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 03 00 C3 11 00 90 00 48 [09:47:24]RAPDU: 90 00 [09:47:24]wFMCommunicate OK [09:47:24]wFMCommunicate request_size=4 [09:47:24]MH_SAM_APDU [09:47:24]CAPDU: 80 0D 03 02 [09:47:24]Write to MH i2c: E2 08 00 C4 11 80 0D 03 02 00 00 00 00 50 [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:24]Read from MH i2c: E2 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 0B 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 0B 00 C4 11 00 C0 4D 12 78 10 C0 B8 20 90 00 90 [09:47:24]RAPDU: C0 4D 12 78 10 C0 B8 20 90 00 [09:47:24]wFMCommunicate OK [09:47:24]SAM_PROTO_SignData done [09:47:24]FM_MakeSignedData done [09:47:24]CreateOFDProtocolMessage [09:47:24]wFMCommunicate request_size=4 [09:47:24]MH_SAM_APDU [09:47:24]CAPDU: 80 11 00 00 [09:47:24]Write to MH i2c: E2 08 00 C5 11 80 11 00 00 00 00 00 00 50 [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:24]Read from MH i2c: E2 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 17 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 17 00 C5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A7 [09:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:24]wFMCommunicate OK [09:47:24]CreateOFDProtocolMessage done [09:47:24]OFDSenderStorePacket 139221 [09:47:24]StoreOFDPacket docnum=139221 [09:47:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 34 77 07 01 65 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 38 00 00 00 F4 03 04 00 AC 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 1F 02 00 35 04 06 00 66 C7 1E 71 B5 79 C0 4D 12 78 10 C0 B8 20 [09:47:24]CheckFolder [09:47:24]dirname=/storage/ofd_packets [09:47:24]CheckFolder done [09:47:24]ProducePacketName [09:47:24]name=ofd_packets/00139221 [09:47:24]NVStorageSaveData ofd_packets/00139221 [09:47:24]File name is /storage/ofd_packets/00139221 [09:47:24]Write 301 bytes [09:47:24]NVStorageSaveData done [09:47:24]OFDSenderStorePacket done [09:47:24]KKMCreateOFDPacket done [09:47:24]NVStorageSaveData kkm_last_timestamp [09:47:24]File name is /storage/kkm_last_timestamp [09:47:24]Write 4 bytes [09:47:24]NVStorageSaveData done [09:47:24]ExternCall_PrintAddStr [09:47:24]wPrintStart [09:47:24]Write to MH i2c: 01 00 00 C6 11 D7 [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: 01 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: 01 07 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: 01 07 00 C6 11 00 00 00 00 00 FF 0F EC [09:47:24]RasterBufferAndPrint [09:47:24]line Счет N : (1)593061 [09:47:24]line ИНН: 02508201610067 [09:47:24]line Контрольно-Кассовый Чек [09:47:24]line ПРОДАЖА [09:47:24]line ТРК (МРК, ГНК) : 52 [09:47:24]line Товар: 2710124130 [09:47:24]line Аи-92-К-5 [09:47:24]line 7.380 * 67.80 [09:47:24]line = 500.36 [09:47:24]line НДС 12% НСП 1% [09:47:24]line > о реализуемом товаре [09:47:24]line ОКРУГЛЕНИЕ: -0.36 [09:47:24]line ИТОГО: 500.00 [09:47:24]line Внесено: 500.00 [09:47:24]line СДАЧА: 0.00 [09:47:24]line НСП 1% : 4.43 [09:47:24]line НДС 12% : 53.14 [09:47:24]line Наличными: 500.00 [09:47:24]line Безнал.: 0.00 [09:47:24]line Место: АЗС № 136 "Партнер Нефть" [09:47:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:47:24]line СНО: Общий режим [09:47:24]line Чек 56 19.08.2024 09:47 [09:47:24]line Смена: 452 ФФД: 1.0 [09:47:24]line ЗНМ: 0300000067 [09:47:24]line РНМ: 0000000000092569 [09:47:24]line Версия ККМ: 001 [09:47:24]line ФМ: 0000000000871776 [09:47:24]line ФД: 139221 [09:47:24]line ФПД: 113005395293561 [09:47:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094724&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139221&fm=113005395293561&tin=02508201610067®Number=0000000000092569&sum=50000 [09:47:24]written 0, free lines is 4095 [09:47:24]OFD Sender: Processing packet 139221 [packets to send 137, broken 136] [09:47:24]ProducePacketName [09:47:24]name=ofd_packets/00139221 [09:47:24]OFD Sender: To server: pG, [09:47:24]CommunicateWithHost lk.salyk.kg:30040 [09:47:24]ConnectInit lk.salyk.kg [09:47:24]Connected sock=10 [09: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 37 36 0F 01 00 00 34 77 07 01 65 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 38 00 00 00 F4 03 04 00 AC 14 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 1F 02 00 35 04 06 00 66 C7 1E 71 B5 79 C0 4D 12 78 10 C0 B8 20 [09:47:24]Write to MH i2c: 01 00 00 F1 11 02 [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: 01 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: 01 07 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: 01 07 00 F1 11 00 00 00 00 00 D5 0C EA [09:47:24]RasterBufferAndPrint [09:47:24]line [09:47:24]line [09:47:24]line [09:47:24]line [09:47:24]line [09:47:24]written 0, free lines is 3301 [09:47:24]MH_Cut [09:47:24]Write to MH i2c: D1 01 00 F8 11 01 DB [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: D1 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: D1 01 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: D1 01 00 F8 11 00 DA [09:47:24]Write to MH i2c: 01 00 00 F9 11 0A [09: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 37 36 4F 00 00 00 B6 4E 47 00 B7 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 37 36 10 04 04 00 D5 1F 02 00 F4 03 04 00 42 BB C2 66 B6 04 01 00 00 27 32 F9 DB A0 47 A3 28 [09:47:24]CommunicateWithHost err = 0 [09:47:24]CheckOFDResponse [09:47:24]1017 (14) - 77093643461234 [09:47:24]1041 (16) - 0000000000871776 [09:47:24]1040 (4) - 139221 [09:47:24]1012 (4) - 19.08.2024 03:25 [09:47:24]1206 (1) - 0 [09:47:24]OFD Sender: Remove packet 139221 [09:47:24]ProducePacketName [09:47:24]name=ofd_packets/00139221 [09:47:24]NVStorageDeleteData [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:25]OFD Sender: No OFD packet to send [09:47:25]*** Cut start [09:47:25]*** Partial cut [09:47:25]*** CUTSNS_PIN = 1 [09:47:25]*** CUTSNS_PIN = 0 [09:47:25]*** Brake cut motor [09:47:25]Read from MH i2c: 01 [09:47:25]MH_I2C_Read... [09:47:25]*** Stop cut motor [09:47:25]*** Cut end [09:47:25]Read from MH i2c: 01 07 00 [09:47:25]MH_I2C_Read... [09:47:25]Read from MH i2c: 01 07 00 F9 11 00 00 00 00 00 FF 0F 1F [09:47:25]process_action close_receipt done [09:47:25]requested_data is exist [09:47:25]produce_requested_data [09:47:25]requested_item fm.sn is exist - process it [09:47:25]wFMCommunicate request_size=4 [09:47:25]MH_SAM_APDU [09:47:25]CAPDU: 80 11 00 00 [09:47:25]Write to MH i2c: E2 08 00 FA 11 80 11 00 00 00 00 00 00 85 [09:47:25]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 17 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 17 00 FA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DC [09:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:26]wFMCommunicate OK [09:47:26]requested_item fd.num is exist - process it [09:47:26]SAM_PROTO_GetFieldsCounters [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 13 00 00 [09:47:26]Write to MH i2c: E2 08 00 FB 11 80 13 00 00 00 00 00 00 88 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 62 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 62 00 FB 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [09:47: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:26]wFMCommunicate OK [09:47:26]SAM_PROTO_GetFieldsCounters done [09:47:26]requested_item shift.num is exist - process it [09:47:26]requested_item shift.opened is exist - process it [09:47:26]req_shift_opened [09:47:26]FM_GetShiftState [09:47:26]SAM_PROTO_GetShiftState [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 13 01 00 [09:47:26]Write to MH i2c: E2 08 00 FC 11 80 13 01 00 00 00 00 00 8A [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 0E 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 0E 00 FC 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 41 [09:47:26]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:47:26]wFMCommunicate OK [09:47:26]SAM_PROTO_GetShiftState done [09:47:26]FM_GetShiftState done [09:47:26]req_shift_opened done [09:47:26]requested_item shift.open_date is exist - process it [09:47:26]req_shift_open_date [09:47:26]req_shift_open_date done [09:47:26]produce_requested_data done [09:47:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139221,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:47:26]process_action_free close_receipt [09:47:26]json_value_free [09:47:26]json_value_free done [09:47:26]process_json_proto returns [09:47:26]Send response to host [09:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139221,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:47:26]free response buf [09:47:26]execute_script done [09:47:26]execute_script returns [09:47:26]free content buf [09:47:26]Sock 9.Close socket [09:47:26]Sock 9.Thread stoped [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:30]accept exits with 7 [09:49:30]New connection [09:49:30]New thread 3067202916 created [09:49:30]Thread 3067059556 joined [09:49:30]Waiting for new connection... [09:49:30] Sock 7.Parse request [09:49:30]Sock 7.Check first char [09:49:30]Sock 7.First char is OK [09:49:30]request: POST /json_proto HTTP/1.0 [09:49:30]Method: POST [09:49:30]URL: /json_proto [09:49:30]Method is POST - this is cgi request [09:49:30]url: /json_proto [09:49:30]query_string will be loaded in cgi processing [09:49:30]execute_cgi json_proto POST (null) [09:49:30]execute_cgi path=json_proto method=POST [09:49:30]POST find Content-Length [09:49:30]Host: 172.17.45.67:8080 [09:49:30]Content-Length: 677 [09:49:30]Content-Type: application/json [09:49:30] [09:49:30]POST finish read [09:49:30]Found Content-Length = 677 [09:49:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:30]execute_script... [09:49: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)593062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:30]POST & json_proto [09:49:30]process_json_proto [09:49:30]json parsed OK: [09:49:30]protocol is kg_v1.0 [09:49:30]action value=close_receipt [09:49:30]process_action close_receipt [09:49:30]cmd_close_receipt [09:49:30]MH_GetDate [09:49:30]Write to MH i2c: F0 00 00 FD 11 FD [09:49:30]Write i2c OK [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: F0 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: F0 09 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: F0 09 00 FD 11 00 2D 15 C3 66 5F 7F 2B 66 E0 [09:49:31]GetLastDocTimeStamp 1724060844 [09:49:31]current date 1724060973 [09:49:31]FM_GetShiftState [09:49:31]SAM_PROTO_GetShiftState [09:49:31]wFMCommunicate request_size=4 [09:49:31]MH_SAM_APDU [09:49:31]CAPDU: 80 13 01 00 [09:49:31]Write to MH i2c: E2 08 00 FE 11 80 13 01 00 00 00 00 00 8C [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:31]Read from MH i2c: E2 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 0E 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 0E 00 FE 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 43 [09:49:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:49:31]wFMCommunicate OK [09:49:31]SAM_PROTO_GetShiftState done [09:49:31]FM_GetShiftState done [09:49:31]opened in 1724027888 [09:49:31]opened+sec_in_day 1724114288 [09:49:31]quantity*price = 50036 [09:49:31]sum+1 = 50037 [09:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 57 19.08.2024 09:49 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139222 ФПД: 76772619800734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094933&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139222&fm=76772619800734&tin=02508201610067®Number=0000000000092569&sum=50000 [09:49:32]StoreToDocumentArchive [09:49:32]shift 452 fd 139222 [09:49:32]save to /storage/0452/doc_00139222 [09:49:32]save last doc name /storage/0452/doc_00139222 to /storage/kkm_last_doc_name [09:49:32]save OK [09:49:32]Clear old archive folders... [09:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:32]tlvbuf is 01D79CC0 [09:49:32]SAM_PROTO_ClearQueue [09:49:32]wFMCommunicate request_size=4 [09:49:32]MH_SAM_APDU [09:49:32]CAPDU: 80 09 00 00 [09:49:32]Write to MH i2c: E2 08 00 0B 12 80 09 00 00 00 00 00 00 8F [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:32]Read from MH i2c: E2 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 03 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [09:49:32]RAPDU: 90 00 [09:49:32]wFMCommunicate OK [09:49:32]SAM_PROTO_ClearQueue done [09:49:32]KKMCreateOFDPacket [09:49:32]OFDProtocolAddRootSTLVToBuf [09:49:32]FM_MakeSignedData [09:49:32]FM_MakeSignedData [09:49:32]SAM_PROTO_SignData [09:49:32]wFMCommunicate request_size=4 [09:49:32]MH_SAM_APDU [09:49:32]CAPDU: 80 0D 01 02 [09:49:32]Write to MH i2c: E2 08 00 0C 12 80 0D 01 02 00 00 00 00 97 [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:32]Read from MH i2c: E2 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 03 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [09:49:32]RAPDU: 90 00 [09:49:32]wFMCommunicate OK [09:49:32]wFMCommunicate request_size=255 [09:49:32]MH_SAM_APDU [09:49: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 00 00 00 F4 03 04 00 2D 15 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 1F 02 00 35 04 06 00 45 [09:49:32]Write to MH i2c: E2 02 01 0D 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 00 00 00 F4 03 04 00 2D 15 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 1F 02 00 35 04 06 00 45 00 00 C5 [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:32]Read from MH i2c: E2 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 03 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 03 00 0D 12 00 90 00 93 [09:49:32]RAPDU: 90 00 [09:49:32]wFMCommunicate OK [09:49:32]wFMCommunicate request_size=10 [09:49:32]MH_SAM_APDU [09:49:32]CAPDU: 80 0D 02 02 05 D3 04 BB 50 9E [09:49:32]Write to MH i2c: E2 0D 00 0E 12 80 0D 02 02 05 00 D3 04 BB 50 9E 00 00 24 [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:32]Read from MH i2c: E2 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 03 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 03 00 0E 12 00 90 00 94 [09:49:32]RAPDU: 90 00 [09:49:32]wFMCommunicate OK [09:49:32]wFMCommunicate request_size=4 [09:49:32]MH_SAM_APDU [09:49:32]CAPDU: 80 0D 03 02 [09:49:32]Write to MH i2c: E2 08 00 0F 12 80 0D 03 02 00 00 00 00 9C [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:32]Read from MH i2c: E2 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 0B 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 0B 00 0F 12 00 48 ED D4 F3 72 AB 49 08 90 00 07 [09:49:32]RAPDU: 48 ED D4 F3 72 AB 49 08 90 00 [09:49:32]wFMCommunicate OK [09:49:32]SAM_PROTO_SignData done [09:49:32]FM_MakeSignedData done [09:49:32]CreateOFDProtocolMessage [09:49:32]wFMCommunicate request_size=4 [09:49:32]MH_SAM_APDU [09:49:32]CAPDU: 80 11 00 00 [09:49:32]Write to MH i2c: E2 08 00 10 12 80 11 00 00 00 00 00 00 9C [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:32]Read from MH i2c: E2 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 17 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: E2 17 00 10 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F3 [09:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:49:32]wFMCommunicate OK [09:49:32]CreateOFDProtocolMessage done [09:49:32]OFDSenderStorePacket 139222 [09:49:32]StoreOFDPacket docnum=139222 [09:49:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A9 40 07 01 D5 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 00 00 00 F4 03 04 00 2D 15 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 1F 02 00 35 04 06 00 45 D3 04 BB 50 9E 48 ED D4 F3 72 AB 49 08 [09:49:32]CheckFolder [09:49:32]dirname=/storage/ofd_packets [09:49:32]CheckFolder done [09:49:32]ProducePacketName [09:49:32]name=ofd_packets/00139222 [09:49:32]NVStorageSaveData ofd_packets/00139222 [09:49:32]File name is /storage/ofd_packets/00139222 [09:49:32]Write 301 bytes [09:49:32]NVStorageSaveData done [09:49:32]OFDSenderStorePacket done [09:49:32]KKMCreateOFDPacket done [09:49:32]NVStorageSaveData kkm_last_timestamp [09:49:32]File name is /storage/kkm_last_timestamp [09:49:32]Write 4 bytes [09:49:32]NVStorageSaveData done [09:49:32]ExternCall_PrintAddStr [09:49:32]wPrintStart [09:49:32]Write to MH i2c: 01 00 00 11 12 23 [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: 01 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: 01 07 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: 01 07 00 11 12 00 00 00 00 00 FF 0F 38 [09:49:32]RasterBufferAndPrint [09:49:32]line Счет N : (1)593062 [09:49:32]line ИНН: 02508201610067 [09:49:32]line Контрольно-Кассовый Чек [09:49:32]line ПРОДАЖА [09:49:32]line ТРК (МРК, ГНК) : 32 [09:49:32]line Товар: 2710124130 [09:49:32]line Аи-92-К-5 [09:49:32]line 7.380 * 67.80 [09:49:32]line = 500.36 [09:49:32]line НДС 12% НСП 1% [09:49:32]line > о реализуемом товаре [09:49:32]line ОКРУГЛЕНИЕ: -0.36 [09:49:32]line ИТОГО: 500.00 [09:49:32]line Внесено: 500.00 [09:49:32]line СДАЧА: 0.00 [09:49:32]line НСП 1% : 4.43 [09:49:32]line НДС 12% : 53.14 [09:49:32]line Наличными: 500.00 [09:49:32]line Безнал.: 0.00 [09:49:32]line Место: АЗС № 136 "Партнер Нефть" [09:49:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:49:32]line СНО: Общий режим [09:49:32]line Чек 57 19.08.2024 09:49 [09:49:32]line Смена: 452 ФФД: 1.0 [09:49:32]line ЗНМ: 0300000067 [09:49:32]line РНМ: 0000000000092569 [09:49:32]line Версия ККМ: 001 [09:49:32]line ФМ: 0000000000871776 [09:49:32]line ФД: 139222 [09:49:32]line ФПД: 76772619800734 [09:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094933&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139222&fm=76772619800734&tin=02508201610067®Number=0000000000092569&sum=50000 [09:49:33]OFD Sender: Processing packet 139222 [packets to send 137, broken 136] [09:49:33]ProducePacketName [09:49:33]name=ofd_packets/00139222 [09:49:33]OFD Sender: To server: pG, [09:49:33]CommunicateWithHost lk.salyk.kg:30040 [09:49:33]ConnectInit lk.salyk.kg [09:49:33]written 0, free lines is 4095 [09:49:33]Write to MH i2c: 01 00 00 3C 12 4E [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: 01 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: 01 07 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: 01 07 00 3C 12 00 00 00 00 00 C2 0C 23 [09:49:33]RasterBufferAndPrint [09:49:33]line [09:49:33]line [09:49:33]line [09:49:33]line [09:49:33]line [09:49:33]written 0, free lines is 3272 [09:49:33]MH_Cut [09:49:33]Write to MH i2c: D1 01 00 43 12 01 27 [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: D1 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: D1 01 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: D1 01 00 43 12 00 26 [09:49:33]Write to MH i2c: 01 00 00 44 12 56 [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:34]*** Cut start [09:49:34]*** Partial cut [09:49:34]*** CUTSNS_PIN = 1 [09:49:34]*** CUTSNS_PIN = 0 [09:49:34]*** Brake cut motor [09:49:34]Read from MH i2c: 01 [09:49:34]MH_I2C_Read... [09:49:34]*** Stop cut motor [09:49:34]*** Cut end [09:49:34]Read from MH i2c: 01 07 00 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: 01 07 00 44 12 00 00 00 00 00 FF 0F 6B [09:49:34]process_action close_receipt done [09:49:34]requested_data is exist [09:49:34]produce_requested_data [09:49:34]requested_item fm.sn is exist - process it [09:49:34]wFMCommunicate request_size=4 [09:49:34]MH_SAM_APDU [09:49:34]CAPDU: 80 11 00 00 [09:49:34]Write to MH i2c: E2 08 00 45 12 80 11 00 00 00 00 00 00 D1 [09:49:34]Write i2c OK [09:49:34]MH_I2C_Read... [09:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:34]Read from MH i2c: E2 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 17 00 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 17 00 45 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 28 [09:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:49:34]wFMCommunicate OK [09:49:34]requested_item fd.num is exist - process it [09:49:34]SAM_PROTO_GetFieldsCounters [09:49:34]wFMCommunicate request_size=4 [09:49:34]MH_SAM_APDU [09:49:34]CAPDU: 80 13 00 00 [09:49:34]Write to MH i2c: E2 08 00 46 12 80 13 00 00 00 00 00 00 D4 [09:49:34]Write i2c OK [09:49:34]MH_I2C_Read... [09:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:34]Read from MH i2c: E2 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 62 00 [09:49:34]MH_I2C_Read... [09:49:34]Read from MH i2c: E2 62 00 46 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [09:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:34]wFMCommunicate OK [09:49:34]SAM_PROTO_GetFieldsCounters done [09:49:34]requested_item shift.num is exist - process it [09:49:34]requested_item shift.opened is exist - process it [09:49:34]req_shift_opened [09:49:34]FM_GetShiftState [09:49:34]SAM_PROTO_GetShiftState [09:49:34]wFMCommunicate request_size=4 [09:49:34]MH_SAM_APDU [09:49:34]CAPDU: 80 13 01 00 [09:49:34]Write to MH i2c: E2 08 00 47 12 80 13 01 00 00 00 00 00 D6 [09:49:34]Write i2c OK [09:49:34]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 0E 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 0E 00 47 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8D [09:49:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:49:35]wFMCommunicate OK [09:49:35]SAM_PROTO_GetShiftState done [09:49:35]FM_GetShiftState done [09:49:35]req_shift_opened done [09:49:35]requested_item shift.open_date is exist - process it [09:49:35]req_shift_open_date [09:49:35]req_shift_open_date done [09:49:35]produce_requested_data done [09:49:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139222,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:49:35]process_action_free close_receipt [09:49:35]json_value_free [09:49:35]json_value_free done [09:49:35]process_json_proto returns [09:49:35]Send response to host [09:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139222,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:49:35]free response buf [09:49:35]execute_script done [09:49:35]execute_script returns [09:49:35]free content buf [09:49:35]Sock 7.Close socket [09:49:35]Sock 7.Thread stoped [09:51:47]ConnectInit Can't connect to host [09:51:47]CommunicateWithHost connect error [09:51:47]CommunicateWithHost err = -1 [09:51:47]OFD Sender: Server communicate error [09:51:52]OFD Sender: Processing packet 139222 [packets to send 137, broken 136] [09:51:52]ProducePacketName [09:51:52]name=ofd_packets/00139222 [09:51:52]OFD Sender: To server: pG, [09:51:52]CommunicateWithHost lk.salyk.kg:30040 [09:51:52]ConnectInit lk.salyk.kg [09:51:52]Connected sock=7 [09:51: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 37 36 0F 01 00 00 A9 40 07 01 D5 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 00 00 00 F4 03 04 00 2D 15 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 1F 02 00 35 04 06 00 45 D3 04 BB 50 9E 48 ED D4 F3 72 AB 49 08 [09:51: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 37 36 4F 00 00 00 AD D4 47 00 68 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 37 36 10 04 04 00 D6 1F 02 00 F4 03 04 00 4E BC C2 66 B6 04 01 00 00 F8 64 0C 01 C4 28 61 EB [09:51:52]CommunicateWithHost err = 0 [09:51:52]CheckOFDResponse [09:51:52]1017 (14) - 77093643461234 [09:51:52]1041 (16) - 0000000000871776 [09:51:52]1040 (4) - 139222 [09:51:52]1012 (4) - 19.08.2024 03:30 [09:51:52]1206 (1) - 0 [09:51:52]OFD Sender: Remove packet 139222 [09:51:52]ProducePacketName [09:51:52]name=ofd_packets/00139222 [09:51:52]NVStorageDeleteData [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:47]accept exits with 9 [09:52:47]New connection [09:52:47]New thread 3067059556 created [09:52:47]Thread 3067202916 joined [09:52:47]Waiting for new connection... [09:52:47] Sock 9.Parse request [09:52:47]Sock 9.Check first char [09:52:47]Sock 9.First char is OK [09:52:47]request: POST /json_proto HTTP/1.0 [09:52:47]Method: POST [09:52:47]URL: /json_proto [09:52:47]Method is POST - this is cgi request [09:52:47]url: /json_proto [09:52:47]query_string will be loaded in cgi processing [09:52:47]execute_cgi json_proto POST (null) [09:52:47]execute_cgi path=json_proto method=POST [09:52:47]POST find Content-Length [09:52:47]Host: 172.17.45.67:8080 [09:52:47]Content-Length: 682 [09:52:47]Content-Type: application/json [09:52:47] [09:52:47]POST finish read [09:52:47]Found Content-Length = 682 [09:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:52:47]execute_script... [09: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)593063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:52:47]POST & json_proto [09:52:47]process_json_proto [09:52:47]json parsed OK: [09:52:47]protocol is kg_v1.0 [09:52:47]action value=close_receipt [09:52:47]process_action close_receipt [09:52:47]cmd_close_receipt [09:52:47]MH_GetDate [09:52:47]Write to MH i2c: F0 00 00 48 12 49 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: F0 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: F0 09 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: F0 09 00 48 12 00 F2 15 C3 66 5F 7F 2B 66 F1 [09:52:47]GetLastDocTimeStamp 1724060973 [09:52:47]current date 1724061170 [09:52:47]FM_GetShiftState [09:52:47]SAM_PROTO_GetShiftState [09:52:47]wFMCommunicate request_size=4 [09:52:47]MH_SAM_APDU [09:52:47]CAPDU: 80 13 01 00 [09:52:47]Write to MH i2c: E2 08 00 49 12 80 13 01 00 00 00 00 00 D8 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:47]Read from MH i2c: E2 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 0E 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 0E 00 49 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8F [09:52:47]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:52:47]wFMCommunicate OK [09:52:47]SAM_PROTO_GetShiftState done [09:52:47]FM_GetShiftState done [09:52:47]opened in 1724027888 [09:52:47]opened+sec_in_day 1724114288 [09:52:47]quantity*price = 100005 [09:52:47]sum+1 = 100006 [09:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 58 19.08.2024 09:52 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139223 ФПД: 276329539372245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095250&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139223&fm=276329539372245&tin=02508201610067®Number=0000000000092569&sum=100000 [09:52:48]StoreToDocumentArchive [09:52:48]shift 452 fd 139223 [09:52:48]save to /storage/0452/doc_00139223 [09:52:48]save last doc name /storage/0452/doc_00139223 to /storage/kkm_last_doc_name [09:52:48]save OK [09:52:48]Clear old archive folders... [09:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:48]tlvbuf is 01D79A10 [09:52:48]SAM_PROTO_ClearQueue [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 09 00 00 [09:52:48]Write to MH i2c: E2 08 00 56 12 80 09 00 00 00 00 00 00 DA [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:48]Read from MH i2c: E2 03 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [09:52:48]RAPDU: 90 00 [09:52:48]wFMCommunicate OK [09:52:48]SAM_PROTO_ClearQueue done [09:52:48]KKMCreateOFDPacket [09:52:48]OFDProtocolAddRootSTLVToBuf [09:52:48]FM_MakeSignedData [09:52:48]FM_MakeSignedData [09:52:48]SAM_PROTO_SignData [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 0D 01 02 [09:52:48]Write to MH i2c: E2 08 00 57 12 80 0D 01 02 00 00 00 00 E2 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 03 00 57 12 00 90 00 DD [09:52:48]RAPDU: 90 00 [09:52:48]wFMCommunicate OK [09:52:48]wFMCommunicate request_size=255 [09:52:48]MH_SAM_APDU [09: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F2 15 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 1F 02 00 35 04 06 00 FB [09:52:48]Write to MH i2c: E2 02 01 58 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F2 15 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 1F 02 00 35 04 06 00 FB 00 00 1C [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:49]Read from MH i2c: E2 03 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 58 12 00 90 00 DE [09:52:49]RAPDU: 90 00 [09:52:49]wFMCommunicate OK [09:52:49]wFMCommunicate request_size=10 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 0D 02 02 05 51 FC 09 04 D5 [09:52:49]Write to MH i2c: E2 0D 00 59 12 80 0D 02 02 05 00 51 FC 09 04 D5 00 00 1E [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 59 12 00 90 00 DF [09:52:49]RAPDU: 90 00 [09:52:49]wFMCommunicate OK [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 0D 03 02 [09:52:49]Write to MH i2c: E2 08 00 5A 12 80 0D 03 02 00 00 00 00 E7 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 0B 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 0B 00 5A 12 00 3C 20 12 CF 6F C9 7B 94 90 00 6C [09:52:49]RAPDU: 3C 20 12 CF 6F C9 7B 94 90 00 [09:52:49]wFMCommunicate OK [09:52:49]SAM_PROTO_SignData done [09:52:49]FM_MakeSignedData done [09:52:49]CreateOFDProtocolMessage [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 11 00 00 [09:52:49]Write to MH i2c: E2 08 00 5B 12 80 11 00 00 00 00 00 00 E7 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 17 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 17 00 5B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [09:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:52:49]wFMCommunicate OK [09:52:49]CreateOFDProtocolMessage done [09:52:49]OFDSenderStorePacket 139223 [09:52:49]StoreOFDPacket docnum=139223 [09:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 47 37 07 01 E6 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F2 15 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 1F 02 00 35 04 06 00 FB 51 FC 09 04 D5 3C 20 12 CF 6F C9 7B 94 [09:52:49]CheckFolder [09:52:49]dirname=/storage/ofd_packets [09:52:49]CheckFolder done [09:52:49]ProducePacketName [09:52:49]name=ofd_packets/00139223 [09:52:49]NVStorageSaveData ofd_packets/00139223 [09:52:49]File name is /storage/ofd_packets/00139223 [09:52:49]Write 301 bytes [09:52:49]NVStorageSaveData done [09:52:49]OFDSenderStorePacket done [09:52:49]KKMCreateOFDPacket done [09:52:49]NVStorageSaveData kkm_last_timestamp [09:52:49]File name is /storage/kkm_last_timestamp [09:52:49]Write 4 bytes [09:52:49]NVStorageSaveData done [09:52:49]ExternCall_PrintAddStr [09:52:49]wPrintStart [09:52:49]Write to MH i2c: 01 00 00 5C 12 6E [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 07 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: 01 07 00 5C 12 00 00 00 00 00 FF 0F 83 [09:52:49]RasterBufferAndPrint [09:52:49]line Счет N : (1)593063 [09:52:49]line ИНН: 02508201610067 [09:52:49]line Контрольно-Кассовый Чек [09:52:49]line ПРОДАЖА [09:52:49]line ТРК (МРК, ГНК) : 52 [09:52:49]line Товар: 2710124130 [09:52:49]line Аи-92-К-5 [09:52:49]line 14.750 * 67.80 [09:52:49]line = 1000.05 [09:52:49]line НДС 12% НСП 1% [09:52:49]line > о реализуемом товаре [09:52:49]line ОКРУГЛЕНИЕ: -0.05 [09:52:49]line ИТОГО: 1000.00 [09:52:49]line Внесено: 1000.00 [09:52:49]line СДАЧА: 0.00 [09:52:49]line НСП 1% : 8.85 [09:52:49]line НДС 12% : 106.20 [09:52:49]line Наличными: 1000.00 [09:52:49]line Безнал.: 0.00 [09:52:49]line Место: АЗС № 136 "Партнер Нефть" [09:52:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:52:49]line СНО: Общий режим [09:52:49]line Чек 58 19.08.2024 09:52 [09:52:49]line Смена: 452 ФФД: 1.0 [09:52:49]line ЗНМ: 0300000067 [09:52:49]line РНМ: 0000000000092569 [09:52:49]line Версия ККМ: 001 [09:52:49]line ФМ: 0000000000871776 [09:52:49]line ФД: 139223 [09:52:49]line ФПД: 276329539372245 [09:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095250&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139223&fm=276329539372245&tin=02508201610067®Number=0000000000092569&sum=100000 [09:52:49]OFD Sender: Processing packet 139223 [packets to send 137, broken 136] [09:52:49]ProducePacketName [09:52:49]name=ofd_packets/00139223 [09:52:49]OFD Sender: To server: pG, [09:52:49]CommunicateWithHost lk.salyk.kg:30040 [09:52:49]ConnectInit lk.salyk.kg [09:52:49]written 0, free lines is 4095 [09:52:49]Connected sock=10 [09: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 37 36 0F 01 00 00 47 37 07 01 E6 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F2 15 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 1F 02 00 35 04 06 00 FB 51 FC 09 04 D5 3C 20 12 CF 6F C9 7B 94 [09:52: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 37 36 4F 00 00 00 C2 4D 47 00 86 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 37 36 10 04 04 00 D7 1F 02 00 F4 03 04 00 88 BC C2 66 B6 04 01 00 00 DB FB D6 A5 76 CD F4 F4 [09:52:50]CommunicateWithHost err = 0 [09:52:50]CheckOFDResponse [09:52:50]1017 (14) - 77093643461234 [09:52:50]1041 (16) - 0000000000871776 [09:52:50]1040 (4) - 139223 [09:52:50]1012 (4) - 19.08.2024 03:31 [09:52:50]1206 (1) - 0 [09:52:50]OFD Sender: Remove packet 139223 [09:52:50]ProducePacketName [09:52:50]name=ofd_packets/00139223 [09:52:50]NVStorageDeleteData [09:52:50]Write to MH i2c: 01 00 00 87 12 99 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 07 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 07 00 87 12 00 00 00 00 00 CD 0C 79 [09:52:50]RasterBufferAndPrint [09:52:50]line [09:52:50]line [09:52:50]line [09:52:50]line [09:52:50]line [09:52:50]written 0, free lines is 3282 [09:52:50]MH_Cut [09:52:50]Write to MH i2c: D1 01 00 8E 12 01 72 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: D1 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: D1 01 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: D1 01 00 8E 12 00 71 [09:52:50]Write to MH i2c: 01 00 00 8F 12 A1 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]OFD Sender: No OFD packet to send [09:52:50]*** Cut start [09:52:50]*** Partial cut [09:52:50]*** CUTSNS_PIN = 1 [09:52:51]*** CUTSNS_PIN = 0 [09:52:51]*** Brake cut motor [09:52:51]Read from MH i2c: 01 [09:52:51]MH_I2C_Read... [09:52:51]*** Stop cut motor [09:52:51]*** Cut end [09:52:51]Read from MH i2c: 01 07 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: 01 07 00 8F 12 00 00 00 00 00 FF 0F B6 [09:52:51]process_action close_receipt done [09:52:51]requested_data is exist [09:52:51]produce_requested_data [09:52:51]requested_item fm.sn is exist - process it [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 11 00 00 [09:52:51]Write to MH i2c: E2 08 00 90 12 80 11 00 00 00 00 00 00 1C [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 17 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 17 00 90 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 73 [09:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:52:51]wFMCommunicate OK [09:52:51]requested_item fd.num is exist - process it [09:52:51]SAM_PROTO_GetFieldsCounters [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 13 00 00 [09:52:51]Write to MH i2c: E2 08 00 91 12 80 13 00 00 00 00 00 00 1F [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 62 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 62 00 91 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [09:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:51]wFMCommunicate OK [09:52:51]SAM_PROTO_GetFieldsCounters done [09:52:51]requested_item shift.num is exist - process it [09:52:51]requested_item shift.opened is exist - process it [09:52:51]req_shift_opened [09:52:51]FM_GetShiftState [09:52:51]SAM_PROTO_GetShiftState [09:52:51]wFMCommunicate request_size=4 [09:52:51]MH_SAM_APDU [09:52:51]CAPDU: 80 13 01 00 [09:52:51]Write to MH i2c: E2 08 00 92 12 80 13 01 00 00 00 00 00 21 [09:52:51]Write i2c OK [09:52:51]MH_I2C_Read... [09:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:51]Read from MH i2c: E2 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 0E 00 [09:52:51]MH_I2C_Read... [09:52:51]Read from MH i2c: E2 0E 00 92 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D8 [09:52:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:52:51]wFMCommunicate OK [09:52:51]SAM_PROTO_GetShiftState done [09:52:51]FM_GetShiftState done [09:52:51]req_shift_opened done [09:52:51]requested_item shift.open_date is exist - process it [09:52:51]req_shift_open_date [09:52:51]req_shift_open_date done [09:52:51]produce_requested_data done [09:52:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139223,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:52:51]process_action_free close_receipt [09:52:51]json_value_free [09:52:51]json_value_free done [09:52:51]process_json_proto returns [09:52:51]Send response to host [09:52:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139223,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:52:51]free response buf [09:52:51]execute_script done [09:52:51]execute_script returns [09:52:51]free content buf [09:52:51]Sock 9.Close socket [09:52:51]Sock 9.Thread stoped [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:01]accept exits with 7 [09:53:01]New connection [09:53:01]New thread 3067202916 created [09:53:01]Thread 3067059556 joined [09:53:01]Waiting for new connection... [09:53:01] Sock 7.Parse request [09:53:01]Sock 7.Check first char [09:53:01]Sock 7.First char is OK [09:53:01]request: POST /json_proto HTTP/1.0 [09:53:01]Method: POST [09:53:01]URL: /json_proto [09:53:01]Method is POST - this is cgi request [09:53:01]url: /json_proto [09:53:01]query_string will be loaded in cgi processing [09:53:01]execute_cgi json_proto POST (null) [09:53:01]execute_cgi path=json_proto method=POST [09:53:01]POST find Content-Length [09:53:01]Host: 172.17.45.67:8080 [09:53:01]Content-Length: 677 [09:53:01]Content-Type: application/json [09:53:01] [09:53:01]POST finish read [09:53:01]Found Content-Length = 677 [09:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:01]execute_script... [09:53:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:01]POST & json_proto [09:53:01]process_json_proto [09:53:01]json parsed OK: [09:53:01]protocol is kg_v1.0 [09:53:01]action value=close_receipt [09:53:01]process_action close_receipt [09:53:01]cmd_close_receipt [09:53:01]MH_GetDate [09:53:01]Write to MH i2c: F0 00 00 93 12 94 [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: F0 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: F0 09 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: F0 09 00 93 12 00 00 16 C3 66 5F 7F 2B 66 4B [09:53:01]GetLastDocTimeStamp 1724061170 [09:53:01]current date 1724061184 [09:53:01]FM_GetShiftState [09:53:01]SAM_PROTO_GetShiftState [09:53:01]wFMCommunicate request_size=4 [09:53:01]MH_SAM_APDU [09:53:01]CAPDU: 80 13 01 00 [09:53:01]Write to MH i2c: E2 08 00 94 12 80 13 01 00 00 00 00 00 23 [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:01]Read from MH i2c: E2 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 0E 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 0E 00 94 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DA [09:53:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:53:01]wFMCommunicate OK [09:53:01]SAM_PROTO_GetShiftState done [09:53:01]FM_GetShiftState done [09:53:01]opened in 1724027888 [09:53:01]opened+sec_in_day 1724114288 [09:53:01]quantity*price = 60027 [09:53:01]sum+1 = 60029 [09:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 59 19.08.2024 09:53 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139224 ФПД: 156116323857054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095304&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139224&fm=156116323857054&tin=02508201610067®Number=0000000000092569&sum=60000 [09:53:02]StoreToDocumentArchive [09:53:02]shift 452 fd 139224 [09:53:02]save to /storage/0452/doc_00139224 [09:53:02]save last doc name /storage/0452/doc_00139224 to /storage/kkm_last_doc_name [09:53:02]save OK [09:53:02]Clear old archive folders... [09:53:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:02]tlvbuf is 01D73D70 [09:53:02]SAM_PROTO_ClearQueue [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 09 00 00 [09:53:02]Write to MH i2c: E2 08 00 A1 12 80 09 00 00 00 00 00 00 25 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 03 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 03 00 A1 12 00 90 00 27 [09:53:03]RAPDU: 90 00 [09:53:03]wFMCommunicate OK [09:53:03]SAM_PROTO_ClearQueue done [09:53:03]KKMCreateOFDPacket [09:53:03]OFDProtocolAddRootSTLVToBuf [09:53:03]FM_MakeSignedData [09:53:03]FM_MakeSignedData [09:53:03]SAM_PROTO_SignData [09:53:03]wFMCommunicate request_size=4 [09:53:03]MH_SAM_APDU [09:53:03]CAPDU: 80 0D 01 02 [09:53:03]Write to MH i2c: E2 08 00 A2 12 80 0D 01 02 00 00 00 00 2D [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 03 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 03 00 A2 12 00 90 00 28 [09:53:03]RAPDU: 90 00 [09:53:03]wFMCommunicate OK [09:53:03]wFMCommunicate request_size=255 [09:53:03]MH_SAM_APDU [09:53:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 3B 00 00 00 F4 03 04 00 00 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 1F 02 00 35 04 06 00 8D [09:53:03]Write to MH i2c: E2 02 01 A3 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 3B 00 00 00 F4 03 04 00 00 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 1F 02 00 35 04 06 00 8D 00 00 E9 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 03 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 03 00 A3 12 00 90 00 29 [09:53:03]RAPDU: 90 00 [09:53:03]wFMCommunicate OK [09:53:03]wFMCommunicate request_size=10 [09:53:03]MH_SAM_APDU [09:53:03]CAPDU: 80 0D 02 02 05 FC AA 06 F2 9E [09:53:03]Write to MH i2c: E2 0D 00 A4 12 80 0D 02 02 05 00 FC AA 06 F2 9E 00 00 76 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 03 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [09:53:03]RAPDU: 90 00 [09:53:03]wFMCommunicate OK [09:53:03]wFMCommunicate request_size=4 [09:53:03]MH_SAM_APDU [09:53:03]CAPDU: 80 0D 03 02 [09:53:03]Write to MH i2c: E2 08 00 A5 12 80 0D 03 02 00 00 00 00 32 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 0B 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 0B 00 A5 12 00 27 D6 7F 69 C4 FD FC AE 90 00 83 [09:53:03]RAPDU: 27 D6 7F 69 C4 FD FC AE 90 00 [09:53:03]wFMCommunicate OK [09:53:03]SAM_PROTO_SignData done [09:53:03]FM_MakeSignedData done [09:53:03]CreateOFDProtocolMessage [09:53:03]wFMCommunicate request_size=4 [09:53:03]MH_SAM_APDU [09:53:03]CAPDU: 80 11 00 00 [09:53:03]Write to MH i2c: E2 08 00 A6 12 80 11 00 00 00 00 00 00 32 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 17 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 17 00 A6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 89 [09:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:53:03]wFMCommunicate OK [09:53:03]CreateOFDProtocolMessage done [09:53:03]OFDSenderStorePacket 139224 [09:53:03]StoreOFDPacket docnum=139224 [09:53:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0B 06 07 01 37 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 3B 00 00 00 F4 03 04 00 00 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 1F 02 00 35 04 06 00 8D FC AA 06 F2 9E 27 D6 7F 69 C4 FD FC AE [09:53:03]CheckFolder [09:53:03]dirname=/storage/ofd_packets [09:53:03]CheckFolder done [09:53:03]ProducePacketName [09:53:03]name=ofd_packets/00139224 [09:53:03]NVStorageSaveData ofd_packets/00139224 [09:53:03]File name is /storage/ofd_packets/00139224 [09:53:03]Write 301 bytes [09:53:03]NVStorageSaveData done [09:53:03]OFDSenderStorePacket done [09:53:03]KKMCreateOFDPacket done [09:53:03]NVStorageSaveData kkm_last_timestamp [09:53:03]File name is /storage/kkm_last_timestamp [09:53:03]Write 4 bytes [09:53:03]NVStorageSaveData done [09:53:03]ExternCall_PrintAddStr [09:53:03]wPrintStart [09:53:03]Write to MH i2c: 01 00 00 A7 12 B9 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: 01 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: 01 07 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: 01 07 00 A7 12 00 00 00 00 00 FF 0F CE [09:53:03]RasterBufferAndPrint [09:53:03]line Счет N : (1)593064 [09:53:03]line ИНН: 02508201610067 [09:53:03]line Контрольно-Кассовый Чек [09:53:03]line ПРОДАЖА [09:53:03]line ТРК (МРК, ГНК) : 41 [09:53:03]line Товар: 2710124500 [09:53:03]line Аи-95-К-5 [09:53:03]line 8.090 * 74.20 [09:53:03]line = 600.28 [09:53:03]line НДС 12% НСП 1% [09:53:03]line > о реализуемом товаре [09:53:03]line ОКРУГЛЕНИЕ: -0.28 [09:53:03]line ИТОГО: 600.00 [09:53:03]line Внесено: 600.00 [09:53:03]line СДАЧА: 0.00 [09:53:03]line НСП 1% : 5.31 [09:53:03]line НДС 12% : 63.75 [09:53:03]line Наличными: 600.00 [09:53:03]line Безнал.: 0.00 [09:53:03]line Место: АЗС № 136 "Партнер Нефть" [09:53:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:53:03]line СНО: Общий режим [09:53:03]line Чек 59 19.08.2024 09:53 [09:53:03]line Смена: 452 ФФД: 1.0 [09:53:03]line ЗНМ: 0300000067 [09:53:03]line РНМ: 0000000000092569 [09:53:03]line Версия ККМ: 001 [09:53:03]line ФМ: 0000000000871776 [09:53:03]line ФД: 139224 [09:53:03]line ФПД: 156116323857054 [09:53:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095304&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139224&fm=156116323857054&tin=02508201610067®Number=0000000000092569&sum=60000 [09:53:03]OFD Sender: Processing packet 139224 [packets to send 137, broken 136] [09:53:03]ProducePacketName [09:53:03]name=ofd_packets/00139224 [09:53:03]OFD Sender: To server: pG, [09:53:03]CommunicateWithHost lk.salyk.kg:30040 [09:53:03]ConnectInit lk.salyk.kg [09:53:03]written 0, free lines is 4095 [09:53:04]Connected sock=10 [09:53: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 37 36 0F 01 00 00 0B 06 07 01 37 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 3B 00 00 00 F4 03 04 00 00 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 1F 02 00 35 04 06 00 8D FC AA 06 F2 9E 27 D6 7F 69 C4 FD FC AE [09:53:04]Write to MH i2c: 01 00 00 D2 12 E4 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: 01 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: 01 07 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: 01 07 00 D2 12 00 00 00 00 00 C8 0C BF [09:53:04]RasterBufferAndPrint [09:53:04]line [09:53:04]line [09:53:04]line [09:53:04]line [09:53:04]line [09:53:04]written 0, free lines is 3279 [09:53:04]MH_Cut [09:53:04]Write to MH i2c: D1 01 00 D9 12 01 BD [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: D1 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: D1 01 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: D1 01 00 D9 12 00 BC [09:53:04]Write to MH i2c: 01 00 00 DA 12 EC [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53: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 37 36 4F 00 00 00 86 0C 47 00 BB 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 37 36 10 04 04 00 D8 1F 02 00 F4 03 04 00 96 BC C2 66 B6 04 01 00 00 C3 CD E8 A1 58 8B A6 F0 [09:53:04]CommunicateWithHost err = 0 [09:53:04]CheckOFDResponse [09:53:04]1017 (14) - 77093643461234 [09:53:04]1041 (16) - 0000000000871776 [09:53:04]1040 (4) - 139224 [09:53:04]1012 (4) - 19.08.2024 03:31 [09:53:04]1206 (1) - 0 [09:53:04]OFD Sender: Remove packet 139224 [09:53:04]ProducePacketName [09:53:04]name=ofd_packets/00139224 [09:53:04]NVStorageDeleteData [09:53:05]*** Cut start [09:53:05]*** Partial cut [09:53:05]*** CUTSNS_PIN = 1 [09:53:05]OFD Sender: No OFD packet to send [09:53:05]*** CUTSNS_PIN = 0 [09:53:05]*** Brake cut motor [09:53:05]Read from MH i2c: 01 [09:53:05]MH_I2C_Read... [09:53:05]*** Stop cut motor [09:53:05]*** Cut end [09:53:05]Read from MH i2c: 01 07 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 FF 0F 01 [09:53:05]process_action close_receipt done [09:53:05]requested_data is exist [09:53:05]produce_requested_data [09:53:05]requested_item fm.sn is exist - process it [09:53:05]wFMCommunicate request_size=4 [09:53:05]MH_SAM_APDU [09:53:05]CAPDU: 80 11 00 00 [09:53:05]Write to MH i2c: E2 08 00 DB 12 80 11 00 00 00 00 00 00 67 [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:05]Read from MH i2c: E2 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 17 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 17 00 DB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BE [09:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:53:05]wFMCommunicate OK [09:53:05]requested_item fd.num is exist - process it [09:53:05]SAM_PROTO_GetFieldsCounters [09:53:05]wFMCommunicate request_size=4 [09:53:05]MH_SAM_APDU [09:53:05]CAPDU: 80 13 00 00 [09:53:05]Write to MH i2c: E2 08 00 DC 12 80 13 00 00 00 00 00 00 6A [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:05]Read from MH i2c: E2 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 62 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 62 00 DC 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [09:53:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:05]wFMCommunicate OK [09:53:05]SAM_PROTO_GetFieldsCounters done [09:53:05]requested_item shift.num is exist - process it [09:53:05]requested_item shift.opened is exist - process it [09:53:05]req_shift_opened [09:53:05]FM_GetShiftState [09:53:05]SAM_PROTO_GetShiftState [09:53:05]wFMCommunicate request_size=4 [09:53:05]MH_SAM_APDU [09:53:05]CAPDU: 80 13 01 00 [09:53:05]Write to MH i2c: E2 08 00 DD 12 80 13 01 00 00 00 00 00 6C [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:05]Read from MH i2c: E2 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 0E 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 0E 00 DD 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 23 [09:53:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:53:05]wFMCommunicate OK [09:53:05]SAM_PROTO_GetShiftState done [09:53:05]FM_GetShiftState done [09:53:05]req_shift_opened done [09:53:05]requested_item shift.open_date is exist - process it [09:53:05]req_shift_open_date [09:53:05]req_shift_open_date done [09:53:05]produce_requested_data done [09:53:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139224,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:53:05]process_action_free close_receipt [09:53:05]json_value_free [09:53:05]json_value_free done [09:53:05]process_json_proto returns [09:53:05]Send response to host [09:53:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139224,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:53:05]free response buf [09:53:05]execute_script done [09:53:05]execute_script returns [09:53:05]free content buf [09:53:05]Sock 7.Close socket [09:53:05]Sock 7.Thread stoped [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:41]accept exits with 9 [09:54:41]New connection [09:54:41]New thread 3067059556 created [09:54:41]Thread 3067202916 joined [09:54:41]Waiting for new connection... [09:54:41] Sock 9.Parse request [09:54:41]Sock 9.Check first char [09:54:41]Sock 9.First char is OK [09:54:41]request: POST /json_proto HTTP/1.0 [09:54:41]Method: POST [09:54:41]URL: /json_proto [09:54:41]Method is POST - this is cgi request [09:54:41]url: /json_proto [09:54:41]query_string will be loaded in cgi processing [09:54:41]execute_cgi json_proto POST (null) [09:54:41]execute_cgi path=json_proto method=POST [09:54:41]POST find Content-Length [09:54:41]Host: 172.17.45.67:8080 [09:54:41]Content-Length: 677 [09:54:41]Content-Type: application/json [09:54:41] [09:54:41]POST finish read [09:54:41]Found Content-Length = 677 [09:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.230, "sum" : 490.19, "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" ] } } [09:54:41]execute_script... [09:54: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)593065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.230, "sum" : 490.19, "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" ] } } [09:54:41]POST & json_proto [09:54:41]process_json_proto [09:54:41]json parsed OK: [09:54:41]protocol is kg_v1.0 [09:54:41]action value=close_receipt [09:54:41]process_action close_receipt [09:54:41]cmd_close_receipt [09:54:41]MH_GetDate [09:54:41]Write to MH i2c: F0 00 00 DE 12 DF [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: F0 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: F0 09 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: F0 09 00 DE 12 00 63 16 C3 66 5F 7F 2B 66 F9 [09:54:41]GetLastDocTimeStamp 1724061184 [09:54:41]current date 1724061283 [09:54:41]FM_GetShiftState [09:54:41]SAM_PROTO_GetShiftState [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 13 01 00 [09:54:41]Write to MH i2c: E2 08 00 DF 12 80 13 01 00 00 00 00 00 6E [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:41]Read from MH i2c: E2 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 0E 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 0E 00 DF 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 25 [09:54:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:54:41]wFMCommunicate OK [09:54:41]SAM_PROTO_GetShiftState done [09:54:41]FM_GetShiftState done [09:54:41]opened in 1724027888 [09:54:41]opened+sec_in_day 1724114288 [09:54:41]quantity*price = 49019 [09:54:41]sum+1 = 49020 [09:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.06 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 60 19.08.2024 09:54 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139225 ФПД: 38743762162785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095443&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139225&fm=38743762162785&tin=02508201610067®Number=0000000000092569&sum=49000 [09:54:42]StoreToDocumentArchive [09:54:42]shift 452 fd 139225 [09:54:42]save to /storage/0452/doc_00139225 [09:54:42]save last doc name /storage/0452/doc_00139225 to /storage/kkm_last_doc_name [09:54:42]save OK [09:54:42]Clear old archive folders... [09:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:42]tlvbuf is 01D73560 [09:54:42]SAM_PROTO_ClearQueue [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 09 00 00 [09:54:42]Write to MH i2c: E2 08 00 EC 12 80 09 00 00 00 00 00 00 70 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 EC 12 00 90 00 72 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_ClearQueue done [09:54:42]KKMCreateOFDPacket [09:54:42]OFDProtocolAddRootSTLVToBuf [09:54:42]FM_MakeSignedData [09:54:42]FM_MakeSignedData [09:54:42]SAM_PROTO_SignData [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 01 02 [09:54:42]Write to MH i2c: E2 08 00 ED 12 80 0D 01 02 00 00 00 00 78 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 ED 12 00 90 00 73 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=255 [09:54:42]MH_SAM_APDU [09:54: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 3E 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7B 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 56 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 3C 00 00 00 F4 03 04 00 63 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 1F 02 00 35 04 06 00 23 [09:54:42]Write to MH i2c: E2 02 01 EE 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7B 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 56 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 3C 00 00 00 F4 03 04 00 63 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 1F 02 00 35 04 06 00 23 00 00 E1 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=10 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 02 02 05 3C BC 2E 54 61 [09:54:42]Write to MH i2c: E2 0D 00 EF 12 80 0D 02 02 05 00 3C BC 2E 54 61 00 00 60 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 03 02 [09:54:42]Write to MH i2c: E2 08 00 F0 12 80 0D 03 02 00 00 00 00 7D [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0B 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0B 00 F0 12 00 72 98 FE A9 FC 5A 7B 4C 90 00 4C [09:54:42]RAPDU: 72 98 FE A9 FC 5A 7B 4C 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_SignData done [09:54:42]FM_MakeSignedData done [09:54:42]CreateOFDProtocolMessage [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 11 00 00 [09:54:42]Write to MH i2c: E2 08 00 F1 12 80 11 00 00 00 00 00 00 7D [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 F1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [09:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:54:42]wFMCommunicate OK [09:54:42]CreateOFDProtocolMessage done [09:54:42]OFDSenderStorePacket 139225 [09:54:42]StoreOFDPacket docnum=139225 [09:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D7 3D 07 01 B4 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 3E 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7B 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 56 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 3C 00 00 00 F4 03 04 00 63 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 1F 02 00 35 04 06 00 23 3C BC 2E 54 61 72 98 FE A9 FC 5A 7B 4C [09:54:42]CheckFolder [09:54:42]dirname=/storage/ofd_packets [09:54:42]CheckFolder done [09:54:42]ProducePacketName [09:54:42]name=ofd_packets/00139225 [09:54:42]NVStorageSaveData ofd_packets/00139225 [09:54:42]File name is /storage/ofd_packets/00139225 [09:54:42]Write 301 bytes [09:54:42]NVStorageSaveData done [09:54:42]OFDSenderStorePacket done [09:54:42]KKMCreateOFDPacket done [09:54:42]NVStorageSaveData kkm_last_timestamp [09:54:42]File name is /storage/kkm_last_timestamp [09:54:42]Write 4 bytes [09:54:42]NVStorageSaveData done [09:54:42]ExternCall_PrintAddStr [09:54:42]wPrintStart [09:54:42]Write to MH i2c: 01 00 00 F2 12 04 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 F2 12 00 00 00 00 00 FF 0F 19 [09:54:42]RasterBufferAndPrint [09:54:42]line Счет N : (1)593065 [09:54:42]line ИНН: 02508201610067 [09:54:42]line Контрольно-Кассовый Чек [09:54:42]line ПРОДАЖА [09:54:42]line ТРК (МРК, ГНК) : 52 [09:54:42]line Товар: 2710124130 [09:54:42]line Аи-92-К-5 [09:54:42]line 7.230 * 67.80 [09:54:42]line = 490.19 [09:54:42]line НДС 12% НСП 1% [09:54:42]line > о реализуемом товаре [09:54:42]line ОКРУГЛЕНИЕ: -0.19 [09:54:42]line ИТОГО: 490.00 [09:54:42]line Внесено: 490.00 [09:54:42]line СДАЧА: 0.00 [09:54:42]line НСП 1% : 4.34 [09:54:42]line НДС 12% : 52.06 [09:54:42]line Наличными: 490.00 [09:54:42]line Безнал.: 0.00 [09:54:42]line Место: АЗС № 136 "Партнер Нефть" [09:54:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:54:42]line СНО: Общий режим [09:54:42]line Чек 60 19.08.2024 09:54 [09:54:42]line Смена: 452 ФФД: 1.0 [09:54:42]line ЗНМ: 0300000067 [09:54:42]line РНМ: 0000000000092569 [09:54:42]line Версия ККМ: 001 [09:54:42]line ФМ: 0000000000871776 [09:54:42]line ФД: 139225 [09:54:42]line ФПД: 38743762162785 [09:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095443&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139225&fm=38743762162785&tin=02508201610067®Number=0000000000092569&sum=49000 [09:54:42]OFD Sender: Processing packet 139225 [packets to send 137, broken 136] [09:54:42]ProducePacketName [09:54:42]name=ofd_packets/00139225 [09:54:43]OFD Sender: To server: pG, [09:54:43]CommunicateWithHost lk.salyk.kg:30040 [09:54:43]ConnectInit lk.salyk.kg [09:54:43]written 0, free lines is 4095 [09:54:43]Connected sock=10 [09:54: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 37 36 0F 01 00 00 D7 3D 07 01 B4 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 3E 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7B 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 56 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 3C 00 00 00 F4 03 04 00 63 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 1F 02 00 35 04 06 00 23 3C BC 2E 54 61 72 98 FE A9 FC 5A 7B 4C [09:54: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 37 36 4F 00 00 00 59 70 47 00 80 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 1F 02 00 F4 03 04 00 F9 BC C2 66 B6 04 01 00 00 8A C0 27 9E 4D 73 80 4A [09:54:43]CommunicateWithHost err = 0 [09:54:43]CheckOFDResponse [09:54:43]1017 (14) - 77093643461234 [09:54:43]1041 (16) - 0000000000871776 [09:54:43]1040 (4) - 139225 [09:54:43]1012 (4) - 19.08.2024 03:33 [09:54:43]1206 (1) - 0 [09:54:43]OFD Sender: Remove packet 139225 [09:54:43]ProducePacketName [09:54:43]name=ofd_packets/00139225 [09:54:43]NVStorageDeleteData [09:54:43]Write to MH i2c: 01 00 00 1D 13 30 [09:54:43]Write i2c OK [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: 01 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: 01 07 00 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: 01 07 00 1D 13 00 00 00 00 00 C4 0C 07 [09:54:43]RasterBufferAndPrint [09:54:43]line [09:54:43]line [09:54:43]line [09:54:43]line [09:54:43]line [09:54:43]written 0, free lines is 3274 [09:54:43]MH_Cut [09:54:43]Write to MH i2c: D1 01 00 24 13 01 09 [09:54:43]Write i2c OK [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: D1 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: D1 01 00 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: D1 01 00 24 13 00 08 [09:54:43]Write to MH i2c: 01 00 00 25 13 38 [09:54:43]Write i2c OK [09:54:43]MH_I2C_Read... [09:54:44]OFD Sender: No OFD packet to send [09:54:44]*** Cut start [09:54:44]*** Partial cut [09:54:44]*** CUTSNS_PIN = 1 [09:54:44]*** CUTSNS_PIN = 0 [09:54:44]*** Brake cut motor [09:54:44]Read from MH i2c: 01 [09:54:44]MH_I2C_Read... [09:54:44]*** Stop cut motor [09:54:44]*** Cut end [09:54:44]Read from MH i2c: 01 07 00 [09:54:44]MH_I2C_Read... [09:54:44]Read from MH i2c: 01 07 00 25 13 00 00 00 00 00 FF 0F 4D [09:54:44]process_action close_receipt done [09:54:44]requested_data is exist [09:54:44]produce_requested_data [09:54:44]requested_item fm.sn is exist - process it [09:54:44]wFMCommunicate request_size=4 [09:54:44]MH_SAM_APDU [09:54:44]CAPDU: 80 11 00 00 [09:54:44]Write to MH i2c: E2 08 00 26 13 80 11 00 00 00 00 00 00 B3 [09:54:44]Write i2c OK [09:54:44]MH_I2C_Read... [09:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:45]Read from MH i2c: E2 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 17 00 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 17 00 26 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [09:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:54:45]wFMCommunicate OK [09:54:45]requested_item fd.num is exist - process it [09:54:45]SAM_PROTO_GetFieldsCounters [09:54:45]wFMCommunicate request_size=4 [09:54:45]MH_SAM_APDU [09:54:45]CAPDU: 80 13 00 00 [09:54:45]Write to MH i2c: E2 08 00 27 13 80 13 00 00 00 00 00 00 B6 [09:54:45]Write i2c OK [09:54:45]MH_I2C_Read... [09:54:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:45]Read from MH i2c: E2 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 62 00 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 62 00 27 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [09:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:45]wFMCommunicate OK [09:54:45]SAM_PROTO_GetFieldsCounters done [09:54:45]requested_item shift.num is exist - process it [09:54:45]requested_item shift.opened is exist - process it [09:54:45]req_shift_opened [09:54:45]FM_GetShiftState [09:54:45]SAM_PROTO_GetShiftState [09:54:45]wFMCommunicate request_size=4 [09:54:45]MH_SAM_APDU [09:54:45]CAPDU: 80 13 01 00 [09:54:45]Write to MH i2c: E2 08 00 28 13 80 13 01 00 00 00 00 00 B8 [09:54:45]Write i2c OK [09:54:45]MH_I2C_Read... [09:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:45]Read from MH i2c: E2 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 0E 00 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 0E 00 28 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6F [09:54:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:54:45]wFMCommunicate OK [09:54:45]SAM_PROTO_GetShiftState done [09:54:45]FM_GetShiftState done [09:54:45]req_shift_opened done [09:54:45]requested_item shift.open_date is exist - process it [09:54:45]req_shift_open_date [09:54:45]req_shift_open_date done [09:54:45]produce_requested_data done [09:54:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139225,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:54:45]process_action_free close_receipt [09:54:45]json_value_free [09:54:45]json_value_free done [09:54:45]process_json_proto returns [09:54:45]Send response to host [09:54:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139225,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:54:45]free response buf [09:54:45]execute_script done [09:54:45]execute_script returns [09:54:45]free content buf [09:54:45]Sock 9.Close socket [09:54:45]Sock 9.Thread stoped [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:41]accept exits with 7 [09:55:41]New connection [09:55:41]New thread 3067202916 created [09:55:41]Thread 3067059556 joined [09:55:41]Waiting for new connection... [09:55:41] Sock 7.Parse request [09:55:41]Sock 7.Check first char [09:55:41]Sock 7.First char is OK [09:55:41]request: POST /json_proto HTTP/1.0 [09:55:41]Method: POST [09:55:41]URL: /json_proto [09:55:41]Method is POST - this is cgi request [09:55:41]url: /json_proto [09:55:41]query_string will be loaded in cgi processing [09:55:41]execute_cgi json_proto POST (null) [09:55:41]execute_cgi path=json_proto method=POST [09:55:41]POST find Content-Length [09:55:41]Host: 172.17.45.67:8080 [09:55:41]Content-Length: 677 [09:55:41]Content-Type: application/json [09:55:41] [09:55:41]POST finish read [09:55:41]Found Content-Length = 677 [09:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [09:55:41]execute_script... [09:55:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [09:55:41]POST & json_proto [09:55:41]process_json_proto [09:55:41]json parsed OK: [09:55:41]protocol is kg_v1.0 [09:55:41]action value=close_receipt [09:55:41]process_action close_receipt [09:55:41]cmd_close_receipt [09:55:41]MH_GetDate [09:55:41]Write to MH i2c: F0 00 00 29 13 2B [09:55:41]Write i2c OK [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: F0 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: F0 09 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: F0 09 00 29 13 00 9F 16 C3 66 5F 7F 2B 66 81 [09:55:41]GetLastDocTimeStamp 1724061283 [09:55:41]current date 1724061343 [09:55:41]FM_GetShiftState [09:55:41]SAM_PROTO_GetShiftState [09:55:41]wFMCommunicate request_size=4 [09:55:41]MH_SAM_APDU [09:55:41]CAPDU: 80 13 01 00 [09:55:41]Write to MH i2c: E2 08 00 2A 13 80 13 01 00 00 00 00 00 BA [09:55:41]Write i2c OK [09:55:41]MH_I2C_Read... [09:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:41]Read from MH i2c: E2 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 0E 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 0E 00 2A 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 71 [09:55:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:55:41]wFMCommunicate OK [09:55:41]SAM_PROTO_GetShiftState done [09:55:41]FM_GetShiftState done [09:55:41]opened in 1724027888 [09:55:41]opened+sec_in_day 1724114288 [09:55:41]quantity*price = 10034 [09:55:41]sum+1 = 10035 [09:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 61 19.08.2024 09:55 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139226 ФПД: 118746700897672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139226&fm=118746700897672&tin=02508201610067®Number=0000000000092569&sum=10000 [09:55:42]StoreToDocumentArchive [09:55:42]shift 452 fd 139226 [09:55:42]save to /storage/0452/doc_00139226 [09:55:42]save last doc name /storage/0452/doc_00139226 to /storage/kkm_last_doc_name [09:55:42]save OK [09:55:42]Clear old archive folders... [09:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:42]tlvbuf is 01D80AF0 [09:55:42]SAM_PROTO_ClearQueue [09:55:42]wFMCommunicate request_size=4 [09:55:42]MH_SAM_APDU [09:55:42]CAPDU: 80 09 00 00 [09:55:42]Write to MH i2c: E2 08 00 37 13 80 09 00 00 00 00 00 00 BC [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:42]Read from MH i2c: E2 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 37 13 00 90 00 BE [09:55:42]RAPDU: 90 00 [09:55:42]wFMCommunicate OK [09:55:42]SAM_PROTO_ClearQueue done [09:55:42]KKMCreateOFDPacket [09:55:42]OFDProtocolAddRootSTLVToBuf [09:55:42]FM_MakeSignedData [09:55:42]FM_MakeSignedData [09:55:42]SAM_PROTO_SignData [09:55:42]wFMCommunicate request_size=4 [09:55:42]MH_SAM_APDU [09:55:42]CAPDU: 80 0D 01 02 [09:55:42]Write to MH i2c: E2 08 00 38 13 80 0D 01 02 00 00 00 00 C4 [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:42]Read from MH i2c: E2 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [09:55:42]RAPDU: 90 00 [09:55:42]wFMCommunicate OK [09:55:42]wFMCommunicate request_size=255 [09:55:42]MH_SAM_APDU [09:55:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 3D 00 00 00 F4 03 04 00 9F 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 1F 02 00 35 04 06 00 6B [09:55:42]Write to MH i2c: E2 02 01 39 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 3D 00 00 00 F4 03 04 00 9F 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 1F 02 00 35 04 06 00 6B 00 00 CF [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:43]Read from MH i2c: E2 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 03 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [09:55:43]RAPDU: 90 00 [09:55:43]wFMCommunicate OK [09:55:43]wFMCommunicate request_size=10 [09:55:43]MH_SAM_APDU [09:55:43]CAPDU: 80 0D 02 02 05 FF DE EC DD 88 [09:55:43]Write to MH i2c: E2 0D 00 3A 13 80 0D 02 02 05 00 FF DE EC DD 88 00 00 FF [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:43]Read from MH i2c: E2 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 03 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [09:55:43]RAPDU: 90 00 [09:55:43]wFMCommunicate OK [09:55:43]wFMCommunicate request_size=4 [09:55:43]MH_SAM_APDU [09:55:43]CAPDU: 80 0D 03 02 [09:55:43]Write to MH i2c: E2 08 00 3B 13 80 0D 03 02 00 00 00 00 C9 [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:43]Read from MH i2c: E2 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 0B 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 0B 00 3B 13 00 91 25 6E FC DA A9 8D 82 90 00 7C [09:55:43]RAPDU: 91 25 6E FC DA A9 8D 82 90 00 [09:55:43]wFMCommunicate OK [09:55:43]SAM_PROTO_SignData done [09:55:43]FM_MakeSignedData done [09:55:43]CreateOFDProtocolMessage [09:55:43]wFMCommunicate request_size=4 [09:55:43]MH_SAM_APDU [09:55:43]CAPDU: 80 11 00 00 [09:55:43]Write to MH i2c: E2 08 00 3C 13 80 11 00 00 00 00 00 00 C9 [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:43]Read from MH i2c: E2 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 17 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 17 00 3C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 20 [09:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:55:43]wFMCommunicate OK [09:55:43]CreateOFDProtocolMessage done [09:55:43]OFDSenderStorePacket 139226 [09:55:43]StoreOFDPacket docnum=139226 [09:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C8 C3 07 01 89 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 3D 00 00 00 F4 03 04 00 9F 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 1F 02 00 35 04 06 00 6B FF DE EC DD 88 91 25 6E FC DA A9 8D 82 [09:55:43]CheckFolder [09:55:43]dirname=/storage/ofd_packets [09:55:43]CheckFolder done [09:55:43]ProducePacketName [09:55:43]name=ofd_packets/00139226 [09:55:43]NVStorageSaveData ofd_packets/00139226 [09:55:43]File name is /storage/ofd_packets/00139226 [09:55:43]Write 301 bytes [09:55:43]NVStorageSaveData done [09:55:43]OFDSenderStorePacket done [09:55:43]KKMCreateOFDPacket done [09:55:43]NVStorageSaveData kkm_last_timestamp [09:55:43]File name is /storage/kkm_last_timestamp [09:55:43]Write 4 bytes [09:55:43]NVStorageSaveData done [09:55:43]ExternCall_PrintAddStr [09:55:43]wPrintStart [09:55:43]Write to MH i2c: 01 00 00 3D 13 50 [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: 01 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: 01 07 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: 01 07 00 3D 13 00 00 00 00 00 FF 0F 65 [09:55:43]RasterBufferAndPrint [09:55:43]line Счет N : (1)593066 [09:55:43]line ИНН: 02508201610067 [09:55:43]line Контрольно-Кассовый Чек [09:55:43]line ПРОДАЖА [09:55:43]line ТРК (МРК, ГНК) : 32 [09:55:43]line Товар: 2710124130 [09:55:43]line Аи-92-К-5 [09:55:43]line 1.480 * 67.80 [09:55:43]line = 100.34 [09:55:43]line НДС 12% НСП 1% [09:55:43]line > о реализуемом товаре [09:55:43]line ОКРУГЛЕНИЕ: -0.34 [09:55:43]line ИТОГО: 100.00 [09:55:43]line Внесено: 100.00 [09:55:43]line СДАЧА: 0.00 [09:55:43]line НСП 1% : 0.89 [09:55:43]line НДС 12% : 10.66 [09:55:43]line Наличными: 100.00 [09:55:43]line Безнал.: 0.00 [09:55:43]line Место: АЗС № 136 "Партнер Нефть" [09:55:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:55:43]line СНО: Общий режим [09:55:43]line Чек 61 19.08.2024 09:55 [09:55:43]line Смена: 452 ФФД: 1.0 [09:55:43]line ЗНМ: 0300000067 [09:55:43]line РНМ: 0000000000092569 [09:55:43]line Версия ККМ: 001 [09:55:43]line ФМ: 0000000000871776 [09:55:43]line ФД: 139226 [09:55:43]line ФПД: 118746700897672 [09:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139226&fm=118746700897672&tin=02508201610067®Number=0000000000092569&sum=10000 [09:55:43]OFD Sender: Processing packet 139226 [packets to send 137, broken 136] [09:55:43]ProducePacketName [09:55:43]name=ofd_packets/00139226 [09:55:43]OFD Sender: To server: pG, [09:55:43]CommunicateWithHost lk.salyk.kg:30040 [09:55:43]ConnectInit lk.salyk.kg [09:55:43]written 0, free lines is 4095 [09:55:43]Connected sock=10 [09:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C8 C3 07 01 89 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 3D 00 00 00 F4 03 04 00 9F 16 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 1F 02 00 35 04 06 00 6B FF DE EC DD 88 91 25 6E FC DA A9 8D 82 [09:55: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 37 36 4F 00 00 00 D6 74 47 00 D3 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 37 36 10 04 04 00 DA 1F 02 00 F4 03 04 00 36 BD C2 66 B6 04 01 00 00 CF 87 22 62 98 C9 49 B2 [09:55:44]CommunicateWithHost err = 0 [09:55:44]CheckOFDResponse [09:55:44]1017 (14) - 77093643461234 [09:55:44]1041 (16) - 0000000000871776 [09:55:44]1040 (4) - 139226 [09:55:44]1012 (4) - 19.08.2024 03:34 [09:55:44]1206 (1) - 0 [09:55:44]OFD Sender: Remove packet 139226 [09:55:44]ProducePacketName [09:55:44]name=ofd_packets/00139226 [09:55:44]NVStorageDeleteData [09:55:44]Write to MH i2c: 01 00 00 68 13 7B [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: 01 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: 01 07 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: 01 07 00 68 13 00 00 00 00 00 C2 0C 50 [09:55:44]RasterBufferAndPrint [09:55:44]line [09:55:44]line [09:55:44]line [09:55:44]line [09:55:44]line [09:55:44]written 0, free lines is 3271 [09:55:44]MH_Cut [09:55:44]Write to MH i2c: D1 01 00 6F 13 01 54 [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: D1 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: D1 01 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: D1 01 00 6F 13 00 53 [09:55:44]Write to MH i2c: 01 00 00 70 13 83 [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]OFD Sender: No OFD packet to send [09:55:44]*** Cut start [09:55:44]*** Partial cut [09:55:44]*** CUTSNS_PIN = 1 [09:55:44]*** CUTSNS_PIN = 0 [09:55:45]*** Brake cut motor [09:55:45]Read from MH i2c: 01 [09:55:45]MH_I2C_Read... [09:55:45]*** Stop cut motor [09:55:45]*** Cut end [09:55:45]Read from MH i2c: 01 07 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 07 00 70 13 00 00 00 00 00 FF 0F 98 [09:55:45]process_action close_receipt done [09:55:45]requested_data is exist [09:55:45]produce_requested_data [09:55:45]requested_item fm.sn is exist - process it [09:55:45]wFMCommunicate request_size=4 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 11 00 00 [09:55:45]Write to MH i2c: E2 08 00 71 13 80 11 00 00 00 00 00 00 FE [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 17 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 17 00 71 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [09:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:55:45]wFMCommunicate OK [09:55:45]requested_item fd.num is exist - process it [09:55:45]SAM_PROTO_GetFieldsCounters [09:55:45]wFMCommunicate request_size=4 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 13 00 00 [09:55:45]Write to MH i2c: E2 08 00 72 13 80 13 00 00 00 00 00 00 01 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 62 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 62 00 72 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:45]wFMCommunicate OK [09:55:45]SAM_PROTO_GetFieldsCounters done [09:55:45]requested_item shift.num is exist - process it [09:55:45]requested_item shift.opened is exist - process it [09:55:45]req_shift_opened [09:55:45]FM_GetShiftState [09:55:45]SAM_PROTO_GetShiftState [09:55:45]wFMCommunicate request_size=4 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 13 01 00 [09:55:45]Write to MH i2c: E2 08 00 73 13 80 13 01 00 00 00 00 00 03 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 0E 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 0E 00 73 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BA [09:55:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:55:45]wFMCommunicate OK [09:55:45]SAM_PROTO_GetShiftState done [09:55:45]FM_GetShiftState done [09:55:45]req_shift_opened done [09:55:45]requested_item shift.open_date is exist - process it [09:55:45]req_shift_open_date [09:55:45]req_shift_open_date done [09:55:45]produce_requested_data done [09:55:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139226,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:55:45]process_action_free close_receipt [09:55:45]json_value_free [09:55:45]json_value_free done [09:55:45]process_json_proto returns [09:55:45]Send response to host [09:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139226,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:55:45]free response buf [09:55:45]execute_script done [09:55:45]execute_script returns [09:55:45]free content buf [09:55:45]Sock 7.Close socket [09:55:45]Sock 7.Thread stoped [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:37]accept exits with 9 [09:57:37]New connection [09:57:37]New thread 3067059556 created [09:57:37]Thread 3067202916 joined [09:57:37]Waiting for new connection... [09:57:37] Sock 9.Parse request [09:57:37]Sock 9.Check first char [09:57:37]Sock 9.First char is OK [09:57:37]request: POST /json_proto HTTP/1.0 [09:57:37]Method: POST [09:57:37]URL: /json_proto [09:57:37]Method is POST - this is cgi request [09:57:37]url: /json_proto [09:57:37]query_string will be loaded in cgi processing [09:57:37]execute_cgi json_proto POST (null) [09:57:37]execute_cgi path=json_proto method=POST [09:57:37]POST find Content-Length [09:57:37]Host: 172.17.45.67:8080 [09:57:37]Content-Length: 677 [09:57:37]Content-Type: application/json [09:57:37] [09:57:37]POST finish read [09:57:37]Found Content-Length = 677 [09:57:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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" ] } } [09:57:37]execute_script... [09:57: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)593067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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" ] } } [09:57:37]POST & json_proto [09:57:37]process_json_proto [09:57:37]json parsed OK: [09:57:37]protocol is kg_v1.0 [09:57:37]action value=close_receipt [09:57:37]process_action close_receipt [09:57:37]cmd_close_receipt [09:57:37]MH_GetDate [09:57:37]Write to MH i2c: F0 00 00 74 13 76 [09:57:37]Write i2c OK [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: F0 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: F0 09 00 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: F0 09 00 74 13 00 14 17 C3 66 5F 7F 2B 66 42 [09:57:37]GetLastDocTimeStamp 1724061343 [09:57:37]current date 1724061460 [09:57:37]FM_GetShiftState [09:57:37]SAM_PROTO_GetShiftState [09:57:37]wFMCommunicate request_size=4 [09:57:37]MH_SAM_APDU [09:57:37]CAPDU: 80 13 01 00 [09:57:37]Write to MH i2c: E2 08 00 75 13 80 13 01 00 00 00 00 00 05 [09:57:37]Write i2c OK [09:57:37]MH_I2C_Read... [09:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:37]Read from MH i2c: E2 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: E2 0E 00 [09:57:37]MH_I2C_Read... [09:57:37]Read from MH i2c: E2 0E 00 75 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BC [09:57:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:57:37]wFMCommunicate OK [09:57:37]SAM_PROTO_GetShiftState done [09:57:37]FM_GetShiftState done [09:57:37]opened in 1724027888 [09:57:37]opened+sec_in_day 1724114288 [09:57:37]quantity*price = 15051 [09:57:37]sum+1 = 15053 [09:57:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 62 19.08.2024 09:57 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139227 ФПД: 143046542427104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095740&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139227&fm=143046542427104&tin=02508201610067®Number=0000000000092569&sum=15000 [09:57:39]StoreToDocumentArchive [09:57:39]shift 452 fd 139227 [09:57:39]save to /storage/0452/doc_00139227 [09:57:39]save last doc name /storage/0452/doc_00139227 to /storage/kkm_last_doc_name [09:57:39]save OK [09:57:39]Clear old archive folders... [09:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:39]tlvbuf is 01D85520 [09:57:39]SAM_PROTO_ClearQueue [09:57:39]wFMCommunicate request_size=4 [09:57:39]MH_SAM_APDU [09:57:39]CAPDU: 80 09 00 00 [09:57:39]Write to MH i2c: E2 08 00 82 13 80 09 00 00 00 00 00 00 07 [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:39]Read from MH i2c: E2 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 82 13 00 90 00 09 [09:57:39]RAPDU: 90 00 [09:57:39]wFMCommunicate OK [09:57:39]SAM_PROTO_ClearQueue done [09:57:39]KKMCreateOFDPacket [09:57:39]OFDProtocolAddRootSTLVToBuf [09:57:39]FM_MakeSignedData [09:57:39]FM_MakeSignedData [09:57:39]SAM_PROTO_SignData [09:57:39]wFMCommunicate request_size=4 [09:57:39]MH_SAM_APDU [09:57:39]CAPDU: 80 0D 01 02 [09:57:39]Write to MH i2c: E2 08 00 83 13 80 0D 01 02 00 00 00 00 0F [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:39]Read from MH i2c: E2 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 83 13 00 90 00 0A [09:57:39]RAPDU: 90 00 [09:57:39]wFMCommunicate OK [09:57:39]wFMCommunicate request_size=255 [09:57:39]MH_SAM_APDU [09:57: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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 3E 00 00 00 F4 03 04 00 14 17 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 1F 02 00 35 04 06 00 82 [09:57:39]Write to MH i2c: E2 02 01 84 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 3E 00 00 00 F4 03 04 00 14 17 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 1F 02 00 35 04 06 00 82 00 00 B5 [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:39]Read from MH i2c: E2 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 84 13 00 90 00 0B [09:57:39]RAPDU: 90 00 [09:57:39]wFMCommunicate OK [09:57:39]wFMCommunicate request_size=10 [09:57:39]MH_SAM_APDU [09:57:39]CAPDU: 80 0D 02 02 05 19 9E 59 03 E0 [09:57:39]Write to MH i2c: E2 0D 00 85 13 80 0D 02 02 05 00 19 9E 59 03 E0 00 00 0F [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:39]Read from MH i2c: E2 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [09:57:39]RAPDU: 90 00 [09:57:39]wFMCommunicate OK [09:57:39]wFMCommunicate request_size=4 [09:57:39]MH_SAM_APDU [09:57:39]CAPDU: 80 0D 03 02 [09:57:39]Write to MH i2c: E2 08 00 86 13 80 0D 03 02 00 00 00 00 14 [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:39]Read from MH i2c: E2 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 0B 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 0B 00 86 13 00 8F BD 06 ED C2 A6 27 11 90 00 F4 [09:57:39]RAPDU: 8F BD 06 ED C2 A6 27 11 90 00 [09:57:39]wFMCommunicate OK [09:57:39]SAM_PROTO_SignData done [09:57:39]FM_MakeSignedData done [09:57:39]CreateOFDProtocolMessage [09:57:39]wFMCommunicate request_size=4 [09:57:39]MH_SAM_APDU [09:57:39]CAPDU: 80 11 00 00 [09:57:39]Write to MH i2c: E2 08 00 87 13 80 11 00 00 00 00 00 00 14 [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:39]Read from MH i2c: E2 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 17 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 17 00 87 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6B [09:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:57:39]wFMCommunicate OK [09:57:39]CreateOFDProtocolMessage done [09:57:39]OFDSenderStorePacket 139227 [09:57:39]StoreOFDPacket docnum=139227 [09:57:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 12 5D 07 01 AA 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 3E 00 00 00 F4 03 04 00 14 17 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 1F 02 00 35 04 06 00 82 19 9E 59 03 E0 8F BD 06 ED C2 A6 27 11 [09:57:39]CheckFolder [09:57:39]dirname=/storage/ofd_packets [09:57:39]CheckFolder done [09:57:39]ProducePacketName [09:57:39]name=ofd_packets/00139227 [09:57:39]NVStorageSaveData ofd_packets/00139227 [09:57:39]File name is /storage/ofd_packets/00139227 [09:57:39]Write 301 bytes [09:57:39]NVStorageSaveData done [09:57:39]OFDSenderStorePacket done [09:57:39]KKMCreateOFDPacket done [09:57:39]NVStorageSaveData kkm_last_timestamp [09:57:39]File name is /storage/kkm_last_timestamp [09:57:39]Write 4 bytes [09:57:39]NVStorageSaveData done [09:57:39]ExternCall_PrintAddStr [09:57:39]wPrintStart [09:57:39]Write to MH i2c: 01 00 00 88 13 9B [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: 01 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: 01 07 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: 01 07 00 88 13 00 00 00 00 00 FF 0F B0 [09:57:39]RasterBufferAndPrint [09:57:39]line Счет N : (1)593067 [09:57:39]line ИНН: 02508201610067 [09:57:39]line Контрольно-Кассовый Чек [09:57:39]line ПРОДАЖА [09:57:39]line ТРК (МРК, ГНК) : 42 [09:57:39]line Товар: 2710124130 [09:57:39]line Аи-92-К-5 [09:57:39]line 2.220 * 67.80 [09:57:39]line = 150.52 [09:57:39]line НДС 12% НСП 1% [09:57:39]line > о реализуемом товаре [09:57:39]line ОКРУГЛЕНИЕ: -0.52 [09:57:39]line ИТОГО: 150.00 [09:57:39]line Внесено: 150.00 [09:57:39]line СДАЧА: 0.00 [09:57:39]line НСП 1% : 1.33 [09:57:39]line НДС 12% : 15.98 [09:57:39]line Наличными: 150.00 [09:57:39]line Безнал.: 0.00 [09:57:39]line Место: АЗС № 136 "Партнер Нефть" [09:57:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:57:39]line СНО: Общий режим [09:57:39]line Чек 62 19.08.2024 09:57 [09:57:39]line Смена: 452 ФФД: 1.0 [09:57:39]line ЗНМ: 0300000067 [09:57:39]line РНМ: 0000000000092569 [09:57:39]line Версия ККМ: 001 [09:57:39]line ФМ: 0000000000871776 [09:57:39]line ФД: 139227 [09:57:39]line ФПД: 143046542427104 [09:57:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095740&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139227&fm=143046542427104&tin=02508201610067®Number=0000000000092569&sum=15000 [09:57:39]OFD Sender: Processing packet 139227 [packets to send 137, broken 136] [09:57:39]ProducePacketName [09:57:39]name=ofd_packets/00139227 [09:57:39]OFD Sender: To server: pG, [09:57:39]CommunicateWithHost lk.salyk.kg:30040 [09:57:39]ConnectInit lk.salyk.kg [09:57:39]written 0, free lines is 4095 [09:57:40]Connected sock=10 [09:57: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 37 36 0F 01 00 00 12 5D 07 01 AA 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 3E 00 00 00 F4 03 04 00 14 17 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 1F 02 00 35 04 06 00 82 19 9E 59 03 E0 8F BD 06 ED C2 A6 27 11 [09:57: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 37 36 4F 00 00 00 06 FB 47 00 B3 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 1F 02 00 F4 03 04 00 AA BD C2 66 B6 04 01 00 00 CF 31 1A 0E F7 F5 9C 5B [09:57:40]CommunicateWithHost err = 0 [09:57:40]CheckOFDResponse [09:57:40]1017 (14) - 77093643461234 [09:57:40]1041 (16) - 0000000000871776 [09:57:40]1040 (4) - 139227 [09:57:40]1012 (4) - 19.08.2024 03:36 [09:57:40]1206 (1) - 0 [09:57:40]OFD Sender: Remove packet 139227 [09:57:40]ProducePacketName [09:57:40]name=ofd_packets/00139227 [09:57:40]NVStorageDeleteData [09:57:40]Write to MH i2c: 01 00 00 B3 13 C6 [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: 01 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: 01 07 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: 01 07 00 B3 13 00 00 00 00 00 CC 0C A5 [09:57:40]RasterBufferAndPrint [09:57:40]line [09:57:40]line [09:57:40]line [09:57:40]line [09:57:40]line [09:57:40]written 0, free lines is 3283 [09:57:40]MH_Cut [09:57:40]Write to MH i2c: D1 01 00 BA 13 01 9F [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: D1 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: D1 01 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: D1 01 00 BA 13 00 9E [09:57:40]Write to MH i2c: 01 00 00 BB 13 CE [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]OFD Sender: No OFD packet to send [09:57:41]*** Cut start [09:57:41]*** Partial cut [09:57:41]*** CUTSNS_PIN = 1 [09:57:41]*** CUTSNS_PIN = 0 [09:57:41]*** Brake cut motor [09:57:41]Read from MH i2c: 01 [09:57:41]MH_I2C_Read... [09:57:41]*** Stop cut motor [09:57:41]*** Cut end [09:57:41]Read from MH i2c: 01 07 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 07 00 BB 13 00 00 00 00 00 FF 0F E3 [09:57:41]process_action close_receipt done [09:57:41]requested_data is exist [09:57:41]produce_requested_data [09:57:41]requested_item fm.sn is exist - process it [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 11 00 00 [09:57:41]Write to MH i2c: E2 08 00 BC 13 80 11 00 00 00 00 00 00 49 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 17 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 17 00 BC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [09:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:57:41]wFMCommunicate OK [09:57:41]requested_item fd.num is exist - process it [09:57:41]SAM_PROTO_GetFieldsCounters [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 13 00 00 [09:57:41]Write to MH i2c: E2 08 00 BD 13 80 13 00 00 00 00 00 00 4C [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 62 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 62 00 BD 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [09:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:41]wFMCommunicate OK [09:57:41]SAM_PROTO_GetFieldsCounters done [09:57:41]requested_item shift.num is exist - process it [09:57:41]requested_item shift.opened is exist - process it [09:57:41]req_shift_opened [09:57:41]FM_GetShiftState [09:57:41]SAM_PROTO_GetShiftState [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 13 01 00 [09:57:41]Write to MH i2c: E2 08 00 BE 13 80 13 01 00 00 00 00 00 4E [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 0E 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 0E 00 BE 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 05 [09:57:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [09:57:41]wFMCommunicate OK [09:57:41]SAM_PROTO_GetShiftState done [09:57:41]FM_GetShiftState done [09:57:41]req_shift_opened done [09:57:41]requested_item shift.open_date is exist - process it [09:57:41]req_shift_open_date [09:57:41]req_shift_open_date done [09:57:41]produce_requested_data done [09:57:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139227,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [09:57:41]process_action_free close_receipt [09:57:41]json_value_free [09:57:41]json_value_free done [09:57:41]process_json_proto returns [09:57:41]Send response to host [09:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139227,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [09:57:41]free response buf [09:57:41]execute_script done [09:57:41]execute_script returns [09:57:41]free content buf [09:57:41]Sock 9.Close socket [09:57:42]Sock 9.Thread stoped [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:54]accept exits with 7 [10:00:54]New connection [10:00:54]New thread 3067202916 created [10:00:54]Thread 3067059556 joined [10:00:54]Waiting for new connection... [10:00:54] Sock 7.Parse request [10:00:54]Sock 7.Check first char [10:00:54]Sock 7.First char is OK [10:00:54]request: POST /json_proto HTTP/1.0 [10:00:54]Method: POST [10:00:54]URL: /json_proto [10:00:54]Method is POST - this is cgi request [10:00:54]url: /json_proto [10:00:54]query_string will be loaded in cgi processing [10:00:54]execute_cgi json_proto POST (null) [10:00:54]execute_cgi path=json_proto method=POST [10:00:54]POST find Content-Length [10:00:54]Host: 172.17.45.67:8080 [10:00:54]Content-Length: 682 [10:00:54]Content-Type: application/json [10:00:54] [10:00:54]POST finish read [10:00:54]Found Content-Length = 682 [10:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [10:00:54]execute_script... [10: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)593068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [10:00:54]POST & json_proto [10:00:54]process_json_proto [10:00:54]json parsed OK: [10:00:54]protocol is kg_v1.0 [10:00:54]action value=close_receipt [10:00:54]process_action close_receipt [10:00:54]cmd_close_receipt [10:00:54]MH_GetDate [10:00:54]Write to MH i2c: F0 00 00 BF 13 C1 [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: F0 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: F0 09 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: F0 09 00 BF 13 00 D9 17 C3 66 5F 7F 2B 66 52 [10:00:54]GetLastDocTimeStamp 1724061460 [10:00:54]current date 1724061657 [10:00:54]FM_GetShiftState [10:00:54]SAM_PROTO_GetShiftState [10:00:54]wFMCommunicate request_size=4 [10:00:54]MH_SAM_APDU [10:00:54]CAPDU: 80 13 01 00 [10:00:54]Write to MH i2c: E2 08 00 C0 13 80 13 01 00 00 00 00 00 50 [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:54]Read from MH i2c: E2 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 0E 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 0E 00 C0 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 07 [10:00:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:00:54]wFMCommunicate OK [10:00:54]SAM_PROTO_GetShiftState done [10:00:54]FM_GetShiftState done [10:00:54]opened in 1724027888 [10:00:54]opened+sec_in_day 1724114288 [10:00:54]quantity*price = 150041 [10:00:54]sum+1 = 150042 [10:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 63 19.08.2024 10:00 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139228 ФПД: 206382460813916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100057&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139228&fm=206382460813916&tin=02508201610067®Number=0000000000092569&sum=150000 [10:00:55]StoreToDocumentArchive [10:00:55]shift 452 fd 139228 [10:00:55]save to /storage/0452/doc_00139228 [10:00:55]save last doc name /storage/0452/doc_00139228 to /storage/kkm_last_doc_name [10:00:55]save OK [10:00:55]Clear old archive folders... [10:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:55]tlvbuf is 01D85890 [10:00:55]SAM_PROTO_ClearQueue [10:00:55]wFMCommunicate request_size=4 [10:00:55]MH_SAM_APDU [10:00:55]CAPDU: 80 09 00 00 [10:00:55]Write to MH i2c: E2 08 00 CD 13 80 09 00 00 00 00 00 00 52 [10:00:55]Write i2c OK [10:00:55]MH_I2C_Read... [10:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:55]Read from MH i2c: E2 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 03 00 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 03 00 CD 13 00 90 00 54 [10:00:55]RAPDU: 90 00 [10:00:55]wFMCommunicate OK [10:00:55]SAM_PROTO_ClearQueue done [10:00:55]KKMCreateOFDPacket [10:00:55]OFDProtocolAddRootSTLVToBuf [10:00:55]FM_MakeSignedData [10:00:55]FM_MakeSignedData [10:00:55]SAM_PROTO_SignData [10:00:55]wFMCommunicate request_size=4 [10:00:55]MH_SAM_APDU [10:00:55]CAPDU: 80 0D 01 02 [10:00:55]Write to MH i2c: E2 08 00 CE 13 80 0D 01 02 00 00 00 00 5A [10:00:55]Write i2c OK [10:00:55]MH_I2C_Read... [10:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:55]Read from MH i2c: E2 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 03 00 [10:00:55]MH_I2C_Read... [10:00:55]Read from MH i2c: E2 03 00 CE 13 00 90 00 55 [10:00:55]RAPDU: 90 00 [10:00:55]wFMCommunicate OK [10:00:55]wFMCommunicate request_size=255 [10:00:55]MH_SAM_APDU [10: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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 3F 00 00 00 F4 03 04 00 D9 17 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 1F 02 00 35 04 06 00 BB [10:00:55]Write to MH i2c: E2 02 01 CF 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 3F 00 00 00 F4 03 04 00 D9 17 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 1F 02 00 35 04 06 00 BB 00 00 2D [10:00:55]Write i2c OK [10:00:55]MH_I2C_Read... [10:00:56]OFD Sender: No OFD packet to send [10:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:56]Read from MH i2c: E2 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 03 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 03 00 CF 13 00 90 00 56 [10:00:56]RAPDU: 90 00 [10:00:56]wFMCommunicate OK [10:00:56]wFMCommunicate request_size=10 [10:00:56]MH_SAM_APDU [10:00:56]CAPDU: 80 0D 02 02 05 B4 29 43 C2 5C [10:00:56]Write to MH i2c: E2 0D 00 D0 13 80 0D 02 02 05 00 B4 29 43 C2 5C 00 00 A5 [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:56]Read from MH i2c: E2 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 03 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 03 00 D0 13 00 90 00 57 [10:00:56]RAPDU: 90 00 [10:00:56]wFMCommunicate OK [10:00:56]wFMCommunicate request_size=4 [10:00:56]MH_SAM_APDU [10:00:56]CAPDU: 80 0D 03 02 [10:00:56]Write to MH i2c: E2 08 00 D1 13 80 0D 03 02 00 00 00 00 5F [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:56]Read from MH i2c: E2 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 0B 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 0B 00 D1 13 00 AD 29 3D 6F C2 B3 B5 60 90 00 6C [10:00:56]RAPDU: AD 29 3D 6F C2 B3 B5 60 90 00 [10:00:56]wFMCommunicate OK [10:00:56]SAM_PROTO_SignData done [10:00:56]FM_MakeSignedData done [10:00:56]CreateOFDProtocolMessage [10:00:56]wFMCommunicate request_size=4 [10:00:56]MH_SAM_APDU [10:00:56]CAPDU: 80 11 00 00 [10:00:56]Write to MH i2c: E2 08 00 D2 13 80 11 00 00 00 00 00 00 5F [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:56]Read from MH i2c: E2 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 17 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: E2 17 00 D2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B6 [10:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:00:56]wFMCommunicate OK [10:00:56]CreateOFDProtocolMessage done [10:00:56]OFDSenderStorePacket 139228 [10:00:56]StoreOFDPacket docnum=139228 [10:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EA BD 07 01 60 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 3F 00 00 00 F4 03 04 00 D9 17 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 1F 02 00 35 04 06 00 BB B4 29 43 C2 5C AD 29 3D 6F C2 B3 B5 60 [10:00:56]CheckFolder [10:00:56]dirname=/storage/ofd_packets [10:00:56]CheckFolder done [10:00:56]ProducePacketName [10:00:56]name=ofd_packets/00139228 [10:00:56]NVStorageSaveData ofd_packets/00139228 [10:00:56]File name is /storage/ofd_packets/00139228 [10:00:56]Write 301 bytes [10:00:56]NVStorageSaveData done [10:00:56]OFDSenderStorePacket done [10:00:56]KKMCreateOFDPacket done [10:00:56]NVStorageSaveData kkm_last_timestamp [10:00:56]File name is /storage/kkm_last_timestamp [10:00:56]Write 4 bytes [10:00:56]NVStorageSaveData done [10:00:56]ExternCall_PrintAddStr [10:00:56]wPrintStart [10:00:56]Write to MH i2c: 01 00 00 D3 13 E6 [10:00:56]Write i2c OK [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: 01 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: 01 07 00 [10:00:56]MH_I2C_Read... [10:00:56]Read from MH i2c: 01 07 00 D3 13 00 00 00 00 00 FF 0F FB [10:00:56]RasterBufferAndPrint [10:00:56]line Счет N : (1)593068 [10:00:56]line ИНН: 02508201610067 [10:00:56]line Контрольно-Кассовый Чек [10:00:56]line ПРОДАЖА [10:00:56]line ТРК (МРК, ГНК) : 62 [10:00:56]line Товар: 2710124130 [10:00:56]line Аи-92-К-5 [10:00:56]line 22.130 * 67.80 [10:00:56]line = 1500.41 [10:00:56]line НДС 12% НСП 1% [10:00:56]line > о реализуемом товаре [10:00:56]line ОКРУГЛЕНИЕ: -0.41 [10:00:56]line ИТОГО: 1500.00 [10:00:56]line Внесено: 1500.00 [10:00:56]line СДАЧА: 0.00 [10:00:56]line НСП 1% : 13.28 [10:00:56]line НДС 12% : 159.34 [10:00:56]line Наличными: 1500.00 [10:00:56]line Безнал.: 0.00 [10:00:56]line Место: АЗС № 136 "Партнер Нефть" [10:00:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:00:56]line СНО: Общий режим [10:00:56]line Чек 63 19.08.2024 10:00 [10:00:56]line Смена: 452 ФФД: 1.0 [10:00:56]line ЗНМ: 0300000067 [10:00:56]line РНМ: 0000000000092569 [10:00:56]line Версия ККМ: 001 [10:00:56]line ФМ: 0000000000871776 [10:00:56]line ФД: 139228 [10:00:56]line ФПД: 206382460813916 [10:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100057&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139228&fm=206382460813916&tin=02508201610067®Number=0000000000092569&sum=150000 [10:00:56]OFD Sender: Processing packet 139228 [packets to send 137, broken 136] [10:00:56]ProducePacketName [10:00:56]name=ofd_packets/00139228 [10:00:56]OFD Sender: To server: pG, [10:00:56]CommunicateWithHost lk.salyk.kg:30040 [10:00:56]ConnectInit lk.salyk.kg [10:00:56]written 0, free lines is 4095 [10:00:56]Connected sock=10 [10: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 37 36 0F 01 00 00 EA BD 07 01 60 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 3F 00 00 00 F4 03 04 00 D9 17 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 1F 02 00 35 04 06 00 BB B4 29 43 C2 5C AD 29 3D 6F C2 B3 B5 60 [10:00: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 37 36 4F 00 00 00 FA 76 47 00 4C 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 1F 02 00 F4 03 04 00 6F BE C2 66 B6 04 01 00 00 67 D9 0D E5 DC 5F B4 87 [10:00:57]CommunicateWithHost err = 0 [10:00:57]CheckOFDResponse [10:00:57]1017 (14) - 77093643461234 [10:00:57]1041 (16) - 0000000000871776 [10:00:57]1040 (4) - 139228 [10:00:57]1012 (4) - 19.08.2024 03:39 [10:00:57]1206 (1) - 0 [10:00:57]OFD Sender: Remove packet 139228 [10:00:57]ProducePacketName [10:00:57]name=ofd_packets/00139228 [10:00:57]NVStorageDeleteData [10:00:57]Write to MH i2c: 01 00 00 FE 13 11 [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: 01 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: 01 07 00 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: 01 07 00 FE 13 00 00 00 00 00 BF 0C E3 [10:00:57]RasterBufferAndPrint [10:00:57]line [10:00:57]line [10:00:57]line [10:00:57]line [10:00:57]line [10:00:57]written 0, free lines is 3270 [10:00:57]MH_Cut [10:00:57]Write to MH i2c: D1 01 00 05 14 01 EB [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: D1 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: D1 01 00 [10:00:57]MH_I2C_Read... [10:00:57]Read from MH i2c: D1 01 00 05 14 00 EA [10:00:57]Write to MH i2c: 01 00 00 06 14 1A [10:00:57]Write i2c OK [10:00:57]MH_I2C_Read... [10:00:57]OFD Sender: No OFD packet to send [10:00:57]*** Cut start [10:00:57]*** Partial cut [10:00:57]*** CUTSNS_PIN = 1 [10:00:57]*** CUTSNS_PIN = 0 [10:00:58]*** Brake cut motor [10:00:58]Read from MH i2c: 01 [10:00:58]MH_I2C_Read... [10:00:58]*** Stop cut motor [10:00:58]*** Cut end [10:00:58]Read from MH i2c: 01 07 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 FF 0F 2F [10:00:58]process_action close_receipt done [10:00:58]requested_data is exist [10:00:58]produce_requested_data [10:00:58]requested_item fm.sn is exist - process it [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 11 00 00 [10:00:58]Write to MH i2c: E2 08 00 07 14 80 11 00 00 00 00 00 00 95 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 17 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 17 00 07 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EC [10:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:00:58]wFMCommunicate OK [10:00:58]requested_item fd.num is exist - process it [10:00:58]SAM_PROTO_GetFieldsCounters [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 13 00 00 [10:00:58]Write to MH i2c: E2 08 00 08 14 80 13 00 00 00 00 00 00 98 [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 62 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 62 00 08 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:58]wFMCommunicate OK [10:00:58]SAM_PROTO_GetFieldsCounters done [10:00:58]requested_item shift.num is exist - process it [10:00:58]requested_item shift.opened is exist - process it [10:00:58]req_shift_opened [10:00:58]FM_GetShiftState [10:00:58]SAM_PROTO_GetShiftState [10:00:58]wFMCommunicate request_size=4 [10:00:58]MH_SAM_APDU [10:00:58]CAPDU: 80 13 01 00 [10:00:58]Write to MH i2c: E2 08 00 09 14 80 13 01 00 00 00 00 00 9A [10:00:58]Write i2c OK [10:00:58]MH_I2C_Read... [10:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:58]Read from MH i2c: E2 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 0E 00 [10:00:58]MH_I2C_Read... [10:00:58]Read from MH i2c: E2 0E 00 09 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 51 [10:00:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:00:58]wFMCommunicate OK [10:00:58]SAM_PROTO_GetShiftState done [10:00:58]FM_GetShiftState done [10:00:58]req_shift_opened done [10:00:58]requested_item shift.open_date is exist - process it [10:00:58]req_shift_open_date [10:00:58]req_shift_open_date done [10:00:58]produce_requested_data done [10:00:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139228,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:00:58]process_action_free close_receipt [10:00:58]json_value_free [10:00:58]json_value_free done [10:00:58]process_json_proto returns [10:00:58]Send response to host [10:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139228,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:00:58]free response buf [10:00:58]execute_script done [10:00:58]execute_script returns [10:00:58]free content buf [10:00:58]Sock 7.Close socket [10:00:58]Sock 7.Thread stoped [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:56]accept exits with 9 [10:03:56]New connection [10:03:56]New thread 3067059556 created [10:03:56]Thread 3067202916 joined [10:03:56]Waiting for new connection... [10:03:56] Sock 9.Parse request [10:03:56]Sock 9.Check first char [10:03:56]Sock 9.First char is OK [10:03:56]request: POST /json_proto HTTP/1.0 [10:03:56]Method: POST [10:03:56]URL: /json_proto [10:03:56]Method is POST - this is cgi request [10:03:56]url: /json_proto [10:03:56]query_string will be loaded in cgi processing [10:03:56]execute_cgi json_proto POST (null) [10:03:56]execute_cgi path=json_proto method=POST [10:03:56]POST find Content-Length [10:03:56]Host: 172.17.45.67:8080 [10:03:56]Content-Length: 677 [10:03:56]Content-Type: application/json [10:03:56] [10:03:56]POST finish read [10:03:56]Found Content-Length = 677 [10:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:03:56]execute_script... [10:03: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)593069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:03:56]POST & json_proto [10:03:56]process_json_proto [10:03:56]json parsed OK: [10:03:56]protocol is kg_v1.0 [10:03:56]action value=close_receipt [10:03:56]process_action close_receipt [10:03:56]cmd_close_receipt [10:03:56]MH_GetDate [10:03:56]Write to MH i2c: F0 00 00 0A 14 0D [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: F0 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: F0 09 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: F0 09 00 0A 14 00 8F 18 C3 66 5F 7F 2B 66 55 [10:03:56]GetLastDocTimeStamp 1724061657 [10:03:56]current date 1724061839 [10:03:56]FM_GetShiftState [10:03:56]SAM_PROTO_GetShiftState [10:03:56]wFMCommunicate request_size=4 [10:03:56]MH_SAM_APDU [10:03:56]CAPDU: 80 13 01 00 [10:03:56]Write to MH i2c: E2 08 00 0B 14 80 13 01 00 00 00 00 00 9C [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0E 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0E 00 0B 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 53 [10:03:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:03:56]wFMCommunicate OK [10:03:56]SAM_PROTO_GetShiftState done [10:03:56]FM_GetShiftState done [10:03:56]opened in 1724027888 [10:03:56]opened+sec_in_day 1724114288 [10:03:56]quantity*price = 50036 [10:03:56]sum+1 = 50037 [10:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 64 19.08.2024 10:03 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139229 ФПД: 57666907815617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100359&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139229&fm=57666907815617&tin=02508201610067®Number=0000000000092569&sum=50000 [10:03:57]StoreToDocumentArchive [10:03:57]shift 452 fd 139229 [10:03:57]save to /storage/0452/doc_00139229 [10:03:57]save last doc name /storage/0452/doc_00139229 to /storage/kkm_last_doc_name [10:03:57]save OK [10:03:57]Clear old archive folders... [10:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:57]tlvbuf is 01D73640 [10:03:57]SAM_PROTO_ClearQueue [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 09 00 00 [10:03:57]Write to MH i2c: E2 08 00 18 14 80 09 00 00 00 00 00 00 9E [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 03 00 18 14 00 90 00 A0 [10:03:57]RAPDU: 90 00 [10:03:57]wFMCommunicate OK [10:03:57]SAM_PROTO_ClearQueue done [10:03:57]KKMCreateOFDPacket [10:03:57]OFDProtocolAddRootSTLVToBuf [10:03:57]FM_MakeSignedData [10:03:57]FM_MakeSignedData [10:03:57]SAM_PROTO_SignData [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 0D 01 02 [10:03:57]Write to MH i2c: E2 08 00 19 14 80 0D 01 02 00 00 00 00 A6 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 19 14 00 90 00 A1 [10:03:58]RAPDU: 90 00 [10:03:58]wFMCommunicate OK [10:03:58]wFMCommunicate request_size=255 [10:03:58]MH_SAM_APDU [10:03: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 40 00 00 00 F4 03 04 00 8F 18 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 1F 02 00 35 04 06 00 34 [10:03:58]Write to MH i2c: E2 02 01 1A 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 40 00 00 00 F4 03 04 00 8F 18 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 1F 02 00 35 04 06 00 34 00 00 36 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 1A 14 00 90 00 A2 [10:03:58]RAPDU: 90 00 [10:03:58]wFMCommunicate OK [10:03:58]wFMCommunicate request_size=10 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 0D 02 02 05 72 9F 8E 3E C1 [10:03:58]Write to MH i2c: E2 0D 00 1B 14 80 0D 02 02 05 00 72 9F 8E 3E C1 00 00 51 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 03 00 1B 14 00 90 00 A3 [10:03:58]RAPDU: 90 00 [10:03:58]wFMCommunicate OK [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 0D 03 02 [10:03:58]Write to MH i2c: E2 08 00 1C 14 80 0D 03 02 00 00 00 00 AB [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0B 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0B 00 1C 14 00 A3 32 99 0E 84 ED E9 62 90 00 E4 [10:03:58]RAPDU: A3 32 99 0E 84 ED E9 62 90 00 [10:03:58]wFMCommunicate OK [10:03:58]SAM_PROTO_SignData done [10:03:58]FM_MakeSignedData done [10:03:58]CreateOFDProtocolMessage [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 11 00 00 [10:03:58]Write to MH i2c: E2 08 00 1D 14 80 11 00 00 00 00 00 00 AB [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 17 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 17 00 1D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 02 [10:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:03:58]wFMCommunicate OK [10:03:58]CreateOFDProtocolMessage done [10:03:58]OFDSenderStorePacket 139229 [10:03:58]StoreOFDPacket docnum=139229 [10:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AC 9B 07 01 D2 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 40 00 00 00 F4 03 04 00 8F 18 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 1F 02 00 35 04 06 00 34 72 9F 8E 3E C1 A3 32 99 0E 84 ED E9 62 [10:03:58]CheckFolder [10:03:58]dirname=/storage/ofd_packets [10:03:58]CheckFolder done [10:03:58]ProducePacketName [10:03:58]name=ofd_packets/00139229 [10:03:58]NVStorageSaveData ofd_packets/00139229 [10:03:58]File name is /storage/ofd_packets/00139229 [10:03:58]Write 301 bytes [10:03:58]NVStorageSaveData done [10:03:58]OFDSenderStorePacket done [10:03:58]KKMCreateOFDPacket done [10:03:58]NVStorageSaveData kkm_last_timestamp [10:03:58]File name is /storage/kkm_last_timestamp [10:03:58]Write 4 bytes [10:03:58]NVStorageSaveData done [10:03:58]ExternCall_PrintAddStr [10:03:58]wPrintStart [10:03:58]Write to MH i2c: 01 00 00 1E 14 32 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 07 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 07 00 1E 14 00 00 00 00 00 FF 0F 47 [10:03:58]RasterBufferAndPrint [10:03:58]line Счет N : (1)593069 [10:03:58]line ИНН: 02508201610067 [10:03:58]line Контрольно-Кассовый Чек [10:03:58]line ПРОДАЖА [10:03:58]line ТРК (МРК, ГНК) : 32 [10:03:58]line Товар: 2710124130 [10:03:58]line Аи-92-К-5 [10:03:58]line 7.380 * 67.80 [10:03:58]line = 500.36 [10:03:58]line НДС 12% НСП 1% [10:03:58]line > о реализуемом товаре [10:03:58]line ОКРУГЛЕНИЕ: -0.36 [10:03:58]line ИТОГО: 500.00 [10:03:58]line Внесено: 500.00 [10:03:58]line СДАЧА: 0.00 [10:03:58]line НСП 1% : 4.43 [10:03:58]line НДС 12% : 53.14 [10:03:58]line Наличными: 500.00 [10:03:58]line Безнал.: 0.00 [10:03:58]line Место: АЗС № 136 "Партнер Нефть" [10:03:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:03:58]line СНО: Общий режим [10:03:58]line Чек 64 19.08.2024 10:03 [10:03:58]line Смена: 452 ФФД: 1.0 [10:03:58]line ЗНМ: 0300000067 [10:03:58]line РНМ: 0000000000092569 [10:03:58]line Версия ККМ: 001 [10:03:58]line ФМ: 0000000000871776 [10:03:58]line ФД: 139229 [10:03:58]line ФПД: 57666907815617 [10:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100359&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139229&fm=57666907815617&tin=02508201610067®Number=0000000000092569&sum=50000 [10:03:58]written 0, free lines is 4095 [10:03:58]OFD Sender: Processing packet 139229 [packets to send 137, broken 136] [10:03:58]ProducePacketName [10:03:58]name=ofd_packets/00139229 [10:03:58]OFD Sender: To server: pG, [10:03:58]CommunicateWithHost lk.salyk.kg:30040 [10:03:58]ConnectInit lk.salyk.kg [10:03:58]Write to MH i2c: 01 00 00 49 14 5D [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 07 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 07 00 49 14 00 00 00 00 00 BF 0C 2F [10:03:58]RasterBufferAndPrint [10:03:58]line [10:03:58]line [10:03:58]line [10:03:58]line [10:03:58]line [10:03:58]written 0, free lines is 3269 [10:03:58]Connected sock=10 [10:03: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 37 36 0F 01 00 00 AC 9B 07 01 D2 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 40 00 00 00 F4 03 04 00 8F 18 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 1F 02 00 35 04 06 00 34 72 9F 8E 3E C1 A3 32 99 0E 84 ED E9 62 [10:03:58]MH_Cut [10:03:58]Write to MH i2c: D1 01 00 50 14 01 36 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: D1 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: D1 01 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: D1 01 00 50 14 00 35 [10:03:58]Write to MH i2c: 01 00 00 51 14 65 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03: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 37 36 4F 00 00 00 1D 32 47 00 6A 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 37 36 10 04 04 00 DD 1F 02 00 F4 03 04 00 25 BF C2 66 B6 04 01 00 00 6C FE 0E E6 8D B2 3A 97 [10:03:59]CommunicateWithHost err = 0 [10:03:59]CheckOFDResponse [10:03:59]1017 (14) - 77093643461234 [10:03:59]1041 (16) - 0000000000871776 [10:03:59]1040 (4) - 139229 [10:03:59]1012 (4) - 19.08.2024 03:42 [10:03:59]1206 (1) - 0 [10:03:59]OFD Sender: Remove packet 139229 [10:03:59]ProducePacketName [10:03:59]name=ofd_packets/00139229 [10:03:59]NVStorageDeleteData [10:03:59]*** Cut start [10:03:59]*** Partial cut [10:03:59]*** CUTSNS_PIN = 1 [10:03:59]OFD Sender: No OFD packet to send [10:03:59]*** CUTSNS_PIN = 0 [10:03:59]*** Brake cut motor [10:04:00]Read from MH i2c: 01 [10:04:00]MH_I2C_Read... [10:04:00]*** Stop cut motor [10:04:00]*** Cut end [10:04:00]Read from MH i2c: 01 07 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 51 14 00 00 00 00 00 FF 0F 7A [10:04:00]process_action close_receipt done [10:04:00]requested_data is exist [10:04:00]produce_requested_data [10:04:00]requested_item fm.sn is exist - process it [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 11 00 00 [10:04:00]Write to MH i2c: E2 08 00 52 14 80 11 00 00 00 00 00 00 E0 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 17 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 17 00 52 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 37 [10:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:04:00]wFMCommunicate OK [10:04:00]requested_item fd.num is exist - process it [10:04:00]SAM_PROTO_GetFieldsCounters [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 13 00 00 [10:04:00]Write to MH i2c: E2 08 00 53 14 80 13 00 00 00 00 00 00 E3 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 62 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 62 00 53 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [10:04: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_GetFieldsCounters done [10:04:00]requested_item shift.num is exist - process it [10:04:00]requested_item shift.opened is exist - process it [10:04:00]req_shift_opened [10:04:00]FM_GetShiftState [10:04:00]SAM_PROTO_GetShiftState [10:04:00]wFMCommunicate request_size=4 [10:04:00]MH_SAM_APDU [10:04:00]CAPDU: 80 13 01 00 [10:04:00]Write to MH i2c: E2 08 00 54 14 80 13 01 00 00 00 00 00 E5 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:00]Read from MH i2c: E2 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0E 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: E2 0E 00 54 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9C [10:04:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:04:00]wFMCommunicate OK [10:04:00]SAM_PROTO_GetShiftState done [10:04:00]FM_GetShiftState done [10:04:00]req_shift_opened done [10:04:00]requested_item shift.open_date is exist - process it [10:04:00]req_shift_open_date [10:04:00]req_shift_open_date done [10:04:00]produce_requested_data done [10:04:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139229,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:04:00]process_action_free close_receipt [10:04:00]json_value_free [10:04:00]json_value_free done [10:04:00]process_json_proto returns [10:04:00]Send response to host [10:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139229,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:04:00]free response buf [10:04:00]execute_script done [10:04:00]execute_script returns [10:04:00]free content buf [10:04:00]Sock 9.Close socket [10:04:00]Sock 9.Thread stoped [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [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]int [10:07:29]Write to MH i2c: 01 00 00 55 14 69 [10:07:29]*** FLAG_PRN_KEY set [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 07 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 07 00 55 14 00 08 00 00 00 FF 0F 86 [10:07:29]state=0 [10:07:29]Key pressed [10:07:29]Feed [10:07:29]Write to MH i2c: D8 00 00 56 14 41 [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: D8 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: D8 01 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: D8 01 00 56 14 00 42 [10:07:29]int [10:07:29]Write to MH i2c: 01 00 00 57 14 6B [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 07 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 07 00 57 14 00 48 00 00 00 3C 00 F6 [10:07:29]state=2 [10:07:29]Key pressed [10:07:29]int [10:07:29]Write to MH i2c: 01 00 00 58 14 6C [10:07:29]*** FLAG_PRN_KEY reset [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 07 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 07 00 58 14 00 00 00 00 00 F5 0F 77 [10:07:29]state=2 [10:07:29]Stop feed [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:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:15]accept exits with 7 [10:09:15]New connection [10:09:15]New thread 3067202916 created [10:09:15]Thread 3067059556 joined [10:09:15]Waiting for new connection... [10:09:15] Sock 7.Parse request [10:09:15]Sock 7.Check first char [10:09:15]Sock 7.First char is OK [10:09:15]request: POST /json_proto HTTP/1.0 [10:09:15]Method: POST [10:09:15]URL: /json_proto [10:09:15]Method is POST - this is cgi request [10:09:15]url: /json_proto [10:09:15]query_string will be loaded in cgi processing [10:09:15]execute_cgi json_proto POST (null) [10:09:15]execute_cgi path=json_proto method=POST [10:09:15]POST find Content-Length [10:09:15]Host: 172.17.45.67:8080 [10:09:15]Content-Length: 797 [10:09:15]Content-Type: application/json [10:09:15] [10:09:15]POST finish read [10:09:15]Found Content-Length = 797 [10:09:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 57.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:15]execute_script... [10:09: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)593070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 57.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:15]POST & json_proto [10:09:15]process_json_proto [10:09:15]json parsed OK: [10:09:15]protocol is kg_v1.0 [10:09:15]action value=close_receipt [10:09:15]process_action close_receipt [10:09:15]cmd_close_receipt [10:09:15]MH_GetDate [10:09:15]Write to MH i2c: F0 00 00 59 14 5C [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: F0 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: F0 09 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: F0 09 00 59 14 00 CE 19 C3 66 5F 7F 2B 66 E4 [10:09:15]GetLastDocTimeStamp 1724061839 [10:09:15]current date 1724062158 [10:09:15]FM_GetShiftState [10:09:15]SAM_PROTO_GetShiftState [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 13 01 00 [10:09:15]Write to MH i2c: E2 08 00 5A 14 80 13 01 00 00 00 00 00 EB [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 0E 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 0E 00 5A 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A2 [10:09:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:09:15]wFMCommunicate OK [10:09:15]SAM_PROTO_GetShiftState done [10:09:15]FM_GetShiftState done [10:09:15]opened in 1724027888 [10:09:15]opened+sec_in_day 1724114288 [10:09:15]quantity*price = 0 [10:09:15]sum+1 = 1 [10:09:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 65 19.08.2024 10:09 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139230 ФПД: 185330097159178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100918&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139230&fm=185330097159178&tin=02508201610067®Number=0000000000092569&sum=0 [10:09:17]StoreToDocumentArchive [10:09:17]shift 452 fd 139230 [10:09:17]save to /storage/0452/doc_00139230 [10:09:17]save last doc name /storage/0452/doc_00139230 to /storage/kkm_last_doc_name [10:09:17]save OK [10:09:17]Clear old archive folders... [10:09:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:09:17]tlvbuf is B6F952E0 [10:09:17]SAM_PROTO_ClearQueue [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 09 00 00 [10:09:17]Write to MH i2c: E2 08 00 67 14 80 09 00 00 00 00 00 00 ED [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [10:09:17]RAPDU: 90 00 [10:09:17]wFMCommunicate OK [10:09:17]SAM_PROTO_ClearQueue done [10:09:17]KKMCreateOFDPacket [10:09:17]OFDProtocolAddRootSTLVToBuf [10:09:17]FM_MakeSignedData [10:09:17]FM_MakeSignedData [10:09:17]SAM_PROTO_SignData [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 0D 01 02 [10:09:17]Write to MH i2c: E2 08 00 68 14 80 0D 01 02 00 00 00 00 F5 [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 68 14 00 90 00 F0 [10:09:17]RAPDU: 90 00 [10:09:17]wFMCommunicate OK [10:09:17]wFMCommunicate request_size=255 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 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 41 00 00 00 F4 03 04 00 CE 19 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 1F 02 00 35 04 06 00 [10:09:17]Write to MH i2c: E2 02 01 69 14 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 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 41 00 00 00 F4 03 04 00 CE 19 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 1F 02 00 35 04 06 00 00 00 DF [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 69 14 00 90 00 F1 [10:09:17]RAPDU: 90 00 [10:09:17]wFMCommunicate OK [10:09:17]wFMCommunicate request_size=11 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 0D 02 02 06 A8 8E 86 9B 7C 0A [10:09:17]Write to MH i2c: E2 0E 00 6A 14 80 0D 02 02 06 00 A8 8E 86 9B 7C 0A 00 00 E1 [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 6A 14 00 90 00 F2 [10:09:17]RAPDU: 90 00 [10:09:17]wFMCommunicate OK [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 0D 03 02 [10:09:17]Write to MH i2c: E2 08 00 6B 14 80 0D 03 02 00 00 00 00 FA [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 0B 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 0B 00 6B 14 00 88 1F 9D 51 A6 6C 1F 3B 90 00 FC [10:09:17]RAPDU: 88 1F 9D 51 A6 6C 1F 3B 90 00 [10:09:17]wFMCommunicate OK [10:09:17]SAM_PROTO_SignData done [10:09:17]FM_MakeSignedData done [10:09:17]CreateOFDProtocolMessage [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 11 00 00 [10:09:17]Write to MH i2c: E2 08 00 6C 14 80 11 00 00 00 00 00 00 FA [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 17 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 17 00 6C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 51 [10:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:09:17]wFMCommunicate OK [10:09:17]CreateOFDProtocolMessage done [10:09:17]OFDSenderStorePacket 139230 [10:09:17]StoreOFDPacket docnum=139230 [10:09:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B7 63 08 01 69 C8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 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 41 00 00 00 F4 03 04 00 CE 19 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 1F 02 00 35 04 06 00 A8 8E 86 9B 7C 0A 88 1F 9D 51 A6 6C 1F 3B [10:09:17]CheckFolder [10:09:17]dirname=/storage/ofd_packets [10:09:17]CheckFolder done [10:09:17]ProducePacketName [10:09:17]name=ofd_packets/00139230 [10:09:17]NVStorageSaveData ofd_packets/00139230 [10:09:17]File name is /storage/ofd_packets/00139230 [10:09:17]Write 302 bytes [10:09:17]NVStorageSaveData done [10:09:17]OFDSenderStorePacket done [10:09:17]KKMCreateOFDPacket done [10:09:17]NVStorageSaveData kkm_last_timestamp [10:09:17]File name is /storage/kkm_last_timestamp [10:09:17]Write 4 bytes [10:09:17]NVStorageSaveData done [10:09:17]ExternCall_PrintAddStr [10:09:17]wPrintStart [10:09:17]Write to MH i2c: 01 00 00 6D 14 81 [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: 01 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: 01 07 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: 01 07 00 6D 14 00 00 00 00 00 FF 0F 96 [10:09:17]RasterBufferAndPrint [10:09:17]line Счет N : (1)593070 [10:09:17]line ИНН: 02508201610067 [10:09:17]line Контрольно-Кассовый Чек [10:09:17]line ПРОДАЖА [10:09:17]line ТРК (МРК, ГНК) : 34 [10:09:17]line Товар: 2710194210 [10:09:17]line ДТ(л)-К-5 [10:09:17]line 57.000 * 0.00 [10:09:17]line = 0.00 [10:09:17]line НДС 12% НСП 1% [10:09:17]line > о реализуемом товаре [10:09:17]line ИТОГО: 0.00 [10:09:17]line НСП 1% : 0.00 [10:09:17]line НДС 12% : 0.00 [10:09:17]line Наличными: 0.00 [10:09:17]line Безнал.: 0.00 [10:09:17]line Место: АЗС № 136 "Партнер Нефть" [10:09:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:09:17]line СНО: Общий режим [10:09:17]line Чек 65 19.08.2024 10:09 [10:09:17]line Смена: 452 ФФД: 1.0 [10:09:17]line ЗНМ: 0300000067 [10:09:17]line РНМ: 0000000000092569 [10:09:17]line Версия ККМ: 001 [10:09:17]line Талоны: Топливная Карта [10:09:17]line 99761 [10:09:17]line ФМ: 0000000000871776 [10:09:17]line ФД: 139230 [10:09:17]line ФПД: 185330097159178 [10:09:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100918&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139230&fm=185330097159178&tin=02508201610067®Number=0000000000092569&sum=0 [10:09:17]written 0, free lines is 4095 [10:09:17]OFD Sender: Processing packet 139230 [packets to send 137, broken 136] [10:09:17]ProducePacketName [10:09:17]name=ofd_packets/00139230 [10:09:17]OFD Sender: To server: pG, [10:09:17]CommunicateWithHost lk.salyk.kg:30040 [10:09:17]ConnectInit lk.salyk.kg [10:09:17]Connected sock=10 [10:09: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 37 36 10 01 00 00 B7 63 08 01 69 C8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 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 41 00 00 00 F4 03 04 00 CE 19 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 1F 02 00 35 04 06 00 A8 8E 86 9B 7C 0A 88 1F 9D 51 A6 6C 1F 3B [10:09:18]Write to MH i2c: 01 00 00 97 14 AB [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: 01 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: 01 07 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: 01 07 00 97 14 00 00 00 00 00 DB 0C 99 [10:09:18]RasterBufferAndPrint [10:09:18]line [10:09:18]line [10:09:18]line [10:09:18]line [10:09:18]line [10:09:18]written 0, free lines is 3297 [10:09:18]MH_Cut [10:09:18]Write to MH i2c: D1 01 00 9E 14 01 84 [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: D1 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: D1 01 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: D1 01 00 9E 14 00 83 [10:09:18]Write to MH i2c: 01 00 00 9F 14 B3 [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09: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 37 36 4F 00 00 00 5C BC 47 00 C7 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 37 36 10 04 04 00 DE 1F 02 00 F4 03 04 00 64 C0 C2 66 B6 04 01 00 00 25 C9 F2 94 5C A8 40 2A [10:09:18]CommunicateWithHost err = 0 [10:09:18]CheckOFDResponse [10:09:18]1017 (14) - 77093643461234 [10:09:18]1041 (16) - 0000000000871776 [10:09:18]1040 (4) - 139230 [10:09:18]1012 (4) - 19.08.2024 03:47 [10:09:18]1206 (1) - 0 [10:09:18]OFD Sender: Remove packet 139230 [10:09:18]ProducePacketName [10:09:18]name=ofd_packets/00139230 [10:09:18]NVStorageDeleteData [10:09:18]OFD Sender: No OFD packet to send [10:09:18]*** Cut start [10:09:18]*** Partial cut [10:09:18]*** CUTSNS_PIN = 1 [10:09:18]*** CUTSNS_PIN = 0 [10:09:19]*** Brake cut motor [10:09:19]Read from MH i2c: 01 [10:09:19]MH_I2C_Read... [10:09:19]*** Stop cut motor [10:09:19]*** Cut end [10:09:19]Read from MH i2c: 01 07 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 FF 0F C8 [10:09:19]process_action close_receipt done [10:09:19]requested_data is exist [10:09:19]produce_requested_data [10:09:19]requested_item fm.sn is exist - process it [10:09:19]wFMCommunicate request_size=4 [10:09:19]MH_SAM_APDU [10:09:19]CAPDU: 80 11 00 00 [10:09:19]Write to MH i2c: E2 08 00 A0 14 80 11 00 00 00 00 00 00 2E [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 [10:09:19]MH_I2C_Read... [10:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:19]Read from MH i2c: E2 17 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 17 00 A0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [10:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:09:19]wFMCommunicate OK [10:09:19]requested_item fd.num is exist - process it [10:09:19]SAM_PROTO_GetFieldsCounters [10:09:19]wFMCommunicate request_size=4 [10:09:19]MH_SAM_APDU [10:09:19]CAPDU: 80 13 00 00 [10:09:19]Write to MH i2c: E2 08 00 A1 14 80 13 00 00 00 00 00 00 31 [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:19]Read from MH i2c: E2 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 62 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 62 00 A1 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [10:09:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:19]wFMCommunicate OK [10:09:19]SAM_PROTO_GetFieldsCounters done [10:09:19]requested_item shift.num is exist - process it [10:09:19]requested_item shift.opened is exist - process it [10:09:19]req_shift_opened [10:09:19]FM_GetShiftState [10:09:19]SAM_PROTO_GetShiftState [10:09:19]wFMCommunicate request_size=4 [10:09:19]MH_SAM_APDU [10:09:19]CAPDU: 80 13 01 00 [10:09:19]Write to MH i2c: E2 08 00 A2 14 80 13 01 00 00 00 00 00 33 [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:19]Read from MH i2c: E2 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 0E 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 0E 00 A2 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EA [10:09:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:09:19]wFMCommunicate OK [10:09:19]SAM_PROTO_GetShiftState done [10:09:19]FM_GetShiftState done [10:09:19]req_shift_opened done [10:09:19]requested_item shift.open_date is exist - process it [10:09:19]req_shift_open_date [10:09:19]req_shift_open_date done [10:09:19]produce_requested_data done [10:09:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139230,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:09:19]process_action_free close_receipt [10:09:19]json_value_free [10:09:19]json_value_free done [10:09:19]process_json_proto returns [10:09:19]Send response to host [10:09:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139230,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:09:19]free response buf [10:09:19]execute_script done [10:09:19]execute_script returns [10:09:19]free content buf [10:09:19]Sock 7.Close socket [10:09:19]Sock 7.Thread stoped [10:09:21]int [10:09:21]Write to MH i2c: 01 00 00 A3 14 B7 [10:09:21]*** FLAG_PRN_KEY set [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 07 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 07 00 A3 14 00 08 00 00 00 FF 0F D4 [10:09:21]state=0 [10:09:21]Key pressed [10:09:21]Feed [10:09:21]Write to MH i2c: D8 00 00 A4 14 8F [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: D8 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: D8 01 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: D8 01 00 A4 14 00 90 [10:09:21]int [10:09:21]Write to MH i2c: 01 00 00 A5 14 B9 [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 07 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 07 00 A5 14 00 48 00 00 00 3C 00 44 [10:09:21]state=2 [10:09:21]Key pressed [10:09:21]int [10:09:21]Write to MH i2c: 01 00 00 A6 14 BA [10:09:21]*** FLAG_PRN_KEY reset [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 07 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 07 00 A6 14 00 00 00 00 00 F9 0F C9 [10:09:21]state=2 [10:09:21]Stop feed [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:45]accept exits with 9 [10:09:45]New connection [10:09:45]New thread 3067059556 created [10:09:45]Thread 3067202916 joined [10:09:45]Waiting for new connection... [10:09:45] Sock 9.Parse request [10:09:45]Sock 9.Check first char [10:09:45]Sock 9.First char is OK [10:09:45]request: POST /json_proto HTTP/1.0 [10:09:45]Method: POST [10:09:45]URL: /json_proto [10:09:45]Method is POST - this is cgi request [10:09:45]url: /json_proto [10:09:45]query_string will be loaded in cgi processing [10:09:45]execute_cgi json_proto POST (null) [10:09:45]execute_cgi path=json_proto method=POST [10:09:45]POST find Content-Length [10:09:45]Host: 172.17.45.67:8080 [10:09:45]Content-Length: 677 [10:09:45]Content-Type: application/json [10:09:45] [10:09:45]POST finish read [10:09:45]Found Content-Length = 677 [10:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:09:45]execute_script... [10:09: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)593071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:09:45]POST & json_proto [10:09:45]process_json_proto [10:09:45]json parsed OK: [10:09:45]protocol is kg_v1.0 [10:09:45]action value=close_receipt [10:09:45]process_action close_receipt [10:09:45]cmd_close_receipt [10:09:45]MH_GetDate [10:09:45]Write to MH i2c: F0 00 00 A7 14 AA [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: F0 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: F0 09 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: F0 09 00 A7 14 00 EB 19 C3 66 5F 7F 2B 66 4F [10:09:45]GetLastDocTimeStamp 1724062158 [10:09:45]current date 1724062187 [10:09:45]FM_GetShiftState [10:09:45]SAM_PROTO_GetShiftState [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 13 01 00 [10:09:45]Write to MH i2c: E2 08 00 A8 14 80 13 01 00 00 00 00 00 39 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0E 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0E 00 A8 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F0 [10:09:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_GetShiftState done [10:09:45]FM_GetShiftState done [10:09:45]opened in 1724027888 [10:09:45]opened+sec_in_day 1724114288 [10:09:45]quantity*price = 40002 [10:09:45]sum+1 = 40003 [10:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 66 19.08.2024 10:09 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139231 ФПД: 188084135635341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139231&fm=188084135635341&tin=02508201610067®Number=0000000000092569&sum=40000 [10:09:46]StoreToDocumentArchive [10:09:46]shift 452 fd 139231 [10:09:46]save to /storage/0452/doc_00139231 [10:09:46]save last doc name /storage/0452/doc_00139231 to /storage/kkm_last_doc_name [10:09:46]save OK [10:09:46]Clear old archive folders... [10:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:46]tlvbuf is 01DC9E00 [10:09:46]SAM_PROTO_ClearQueue [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 09 00 00 [10:09:46]Write to MH i2c: E2 08 00 B5 14 80 09 00 00 00 00 00 00 3B [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [10:09:46]RAPDU: 90 00 [10:09:46]wFMCommunicate OK [10:09:46]SAM_PROTO_ClearQueue done [10:09:46]KKMCreateOFDPacket [10:09:46]OFDProtocolAddRootSTLVToBuf [10:09:46]FM_MakeSignedData [10:09:46]FM_MakeSignedData [10:09:46]SAM_PROTO_SignData [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 0D 01 02 [10:09:46]Write to MH i2c: E2 08 00 B6 14 80 0D 01 02 00 00 00 00 43 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [10:09:46]RAPDU: 90 00 [10:09:46]wFMCommunicate OK [10:09:46]wFMCommunicate request_size=255 [10:09:46]MH_SAM_APDU [10:09: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 42 00 00 00 F4 03 04 00 EB 19 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 1F 02 00 35 04 06 00 AB [10:09:46]Write to MH i2c: E2 02 01 B7 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 42 00 00 00 F4 03 04 00 EB 19 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 1F 02 00 35 04 06 00 AB 00 00 90 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [10:09:46]RAPDU: 90 00 [10:09:46]wFMCommunicate OK [10:09:46]wFMCommunicate request_size=10 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 0D 02 02 05 0F C0 17 A9 8D [10:09:46]Write to MH i2c: E2 0D 00 B8 14 80 0D 02 02 05 00 0F C0 17 A9 8D 00 00 6C [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [10:09:46]RAPDU: 90 00 [10:09:46]wFMCommunicate OK [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 0D 03 02 [10:09:46]Write to MH i2c: E2 08 00 B9 14 80 0D 03 02 00 00 00 00 48 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 0B 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 0B 00 B9 14 00 24 AA 06 D6 65 DF 69 CB 90 00 6B [10:09:46]RAPDU: 24 AA 06 D6 65 DF 69 CB 90 00 [10:09:46]wFMCommunicate OK [10:09:46]SAM_PROTO_SignData done [10:09:46]FM_MakeSignedData done [10:09:46]CreateOFDProtocolMessage [10:09:46]wFMCommunicate request_size=4 [10:09:46]MH_SAM_APDU [10:09:46]CAPDU: 80 11 00 00 [10:09:46]Write to MH i2c: E2 08 00 BA 14 80 11 00 00 00 00 00 00 48 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:46]Read from MH i2c: E2 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 17 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: E2 17 00 BA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9F [10:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:09:46]wFMCommunicate OK [10:09:46]CreateOFDProtocolMessage done [10:09:46]OFDSenderStorePacket 139231 [10:09:46]StoreOFDPacket docnum=139231 [10:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 03 7A 07 01 35 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 42 00 00 00 F4 03 04 00 EB 19 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 1F 02 00 35 04 06 00 AB 0F C0 17 A9 8D 24 AA 06 D6 65 DF 69 CB [10:09:46]CheckFolder [10:09:46]dirname=/storage/ofd_packets [10:09:46]CheckFolder done [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00139231 [10:09:46]NVStorageSaveData ofd_packets/00139231 [10:09:46]File name is /storage/ofd_packets/00139231 [10:09:46]Write 301 bytes [10:09:46]NVStorageSaveData done [10:09:46]OFDSenderStorePacket done [10:09:46]KKMCreateOFDPacket done [10:09:46]NVStorageSaveData kkm_last_timestamp [10:09:46]File name is /storage/kkm_last_timestamp [10:09:46]Write 4 bytes [10:09:46]NVStorageSaveData done [10:09:47]ExternCall_PrintAddStr [10:09:47]wPrintStart [10:09:47]Write to MH i2c: 01 00 00 BB 14 CF [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 BB 14 00 00 00 00 00 FF 0F E4 [10:09:47]RasterBufferAndPrint [10:09:47]line Счет N : (1)593071 [10:09:47]line ИНН: 02508201610067 [10:09:47]line Контрольно-Кассовый Чек [10:09:47]line ПРОДАЖА [10:09:47]line ТРК (МРК, ГНК) : 62 [10:09:47]line Товар: 2710124130 [10:09:47]line Аи-92-К-5 [10:09:47]line 5.900 * 67.80 [10:09:47]line = 400.02 [10:09:47]line НДС 12% НСП 1% [10:09:47]line > о реализуемом товаре [10:09:47]line ОКРУГЛЕНИЕ: -0.02 [10:09:47]line ИТОГО: 400.00 [10:09:47]line Внесено: 400.00 [10:09:47]line СДАЧА: 0.00 [10:09:47]line НСП 1% : 3.54 [10:09:47]line НДС 12% : 42.48 [10:09:47]line Наличными: 400.00 [10:09:47]line Безнал.: 0.00 [10:09:47]line Место: АЗС № 136 "Партнер Нефть" [10:09:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:09:47]line СНО: Общий режим [10:09:47]line Чек 66 19.08.2024 10:09 [10:09:47]line Смена: 452 ФФД: 1.0 [10:09:47]line ЗНМ: 0300000067 [10:09:47]line РНМ: 0000000000092569 [10:09:47]line Версия ККМ: 001 [10:09:47]line ФМ: 0000000000871776 [10:09:47]line ФД: 139231 [10:09:47]line ФПД: 188084135635341 [10:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139231&fm=188084135635341&tin=02508201610067®Number=0000000000092569&sum=40000 [10:09:47]OFD Sender: Processing packet 139231 [packets to send 137, broken 136] [10:09:47]ProducePacketName [10:09:47]name=ofd_packets/00139231 [10:09:47]OFD Sender: To server: pG, [10:09:47]CommunicateWithHost lk.salyk.kg:30040 [10:09:47]ConnectInit lk.salyk.kg [10:09:47]written 0, free lines is 4095 [10:09:47]Connected sock=10 [10:09: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 37 36 0F 01 00 00 03 7A 07 01 35 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 42 00 00 00 F4 03 04 00 EB 19 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 1F 02 00 35 04 06 00 AB 0F C0 17 A9 8D 24 AA 06 D6 65 DF 69 CB [10:09: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 37 36 4F 00 00 00 13 A0 47 00 9F 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 37 36 10 04 04 00 DF 1F 02 00 F4 03 04 00 81 C0 C2 66 B6 04 01 00 00 91 F3 7F 1D 6A D9 75 37 [10:09:47]CommunicateWithHost err = 0 [10:09:47]CheckOFDResponse [10:09:47]1017 (14) - 77093643461234 [10:09:47]1041 (16) - 0000000000871776 [10:09:47]1040 (4) - 139231 [10:09:47]1012 (4) - 19.08.2024 03:48 [10:09:47]1206 (1) - 0 [10:09:47]OFD Sender: Remove packet 139231 [10:09:47]ProducePacketName [10:09:47]name=ofd_packets/00139231 [10:09:47]NVStorageDeleteData [10:09:47]Write to MH i2c: 01 00 00 E6 14 FA [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 E6 14 00 00 00 00 00 D2 0C DF [10:09:47]RasterBufferAndPrint [10:09:47]line [10:09:47]line [10:09:47]line [10:09:47]line [10:09:47]line [10:09:47]written 0, free lines is 3289 [10:09:47]MH_Cut [10:09:47]Write to MH i2c: D1 01 00 ED 14 01 D3 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: D1 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: D1 01 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: D1 01 00 ED 14 00 D2 [10:09:47]Write to MH i2c: 01 00 00 EE 14 02 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:48]OFD Sender: No OFD packet to send [10:09:48]*** Cut start [10:09:48]*** Partial cut [10:09:48]*** CUTSNS_PIN = 1 [10:09:48]*** CUTSNS_PIN = 0 [10:09:48]*** Brake cut motor [10:09:49]Read from MH i2c: 01 [10:09:49]MH_I2C_Read... [10:09:49]*** Stop cut motor [10:09:49]*** Cut end [10:09:49]Read from MH i2c: 01 07 00 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: 01 07 00 EE 14 00 00 00 00 00 FF 0F 17 [10:09:49]process_action close_receipt done [10:09:49]requested_data is exist [10:09:49]produce_requested_data [10:09:49]requested_item fm.sn is exist - process it [10:09:49]wFMCommunicate request_size=4 [10:09:49]MH_SAM_APDU [10:09:49]CAPDU: 80 11 00 00 [10:09:49]Write to MH i2c: E2 08 00 EF 14 80 11 00 00 00 00 00 00 7D [10:09:49]Write i2c OK [10:09:49]MH_I2C_Read... [10:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:49]Read from MH i2c: E2 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: E2 17 00 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: E2 17 00 EF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [10:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:09:49]wFMCommunicate OK [10:09:49]requested_item fd.num is exist - process it [10:09:49]SAM_PROTO_GetFieldsCounters [10:09:49]wFMCommunicate request_size=4 [10:09:49]MH_SAM_APDU [10:09:49]CAPDU: 80 13 00 00 [10:09:49]Write to MH i2c: E2 08 00 F0 14 80 13 00 00 00 00 00 00 80 [10:09:49]Write i2c OK [10:09:49]MH_I2C_Read... [10:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:49]Read from MH i2c: E2 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: E2 62 00 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: E2 62 00 F0 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [10:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:49]wFMCommunicate OK [10:09:49]SAM_PROTO_GetFieldsCounters done [10:09:49]requested_item shift.num is exist - process it [10:09:49]requested_item shift.opened is exist - process it [10:09:49]req_shift_opened [10:09:49]FM_GetShiftState [10:09:49]SAM_PROTO_GetShiftState [10:09:49]wFMCommunicate request_size=4 [10:09:49]MH_SAM_APDU [10:09:49]CAPDU: 80 13 01 00 [10:09:49]Write to MH i2c: E2 08 00 F1 14 80 13 01 00 00 00 00 00 82 [10:09:49]Write i2c OK [10:09:49]MH_I2C_Read... [10:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:49]Read from MH i2c: E2 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: E2 0E 00 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: E2 0E 00 F1 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 39 [10:09:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:09:49]wFMCommunicate OK [10:09:49]SAM_PROTO_GetShiftState done [10:09:49]FM_GetShiftState done [10:09:49]req_shift_opened done [10:09:49]requested_item shift.open_date is exist - process it [10:09:49]req_shift_open_date [10:09:49]req_shift_open_date done [10:09:49]produce_requested_data done [10:09:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139231,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:09:49]process_action_free close_receipt [10:09:49]json_value_free [10:09:49]json_value_free done [10:09:49]process_json_proto returns [10:09:49]Send response to host [10:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139231,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:09:49]free response buf [10:09:49]execute_script done [10:09:49]execute_script returns [10:09:49]free content buf [10:09:49]Sock 9.Close socket [10:09:49]Sock 9.Thread stoped [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:44]accept exits with 7 [10:10:44]New connection [10:10:44]New thread 3067202916 created [10:10:44]Thread 3067059556 joined [10:10:44]Waiting for new connection... [10:10:44] Sock 7.Parse request [10:10:44]Sock 7.Check first char [10:10:44]Sock 7.First char is OK [10:10:44]request: POST /json_proto HTTP/1.0 [10:10:44]Method: POST [10:10:44]URL: /json_proto [10:10:44]Method is POST - this is cgi request [10:10:44]url: /json_proto [10:10:44]query_string will be loaded in cgi processing [10:10:44]execute_cgi json_proto POST (null) [10:10:44]execute_cgi path=json_proto method=POST [10:10:44]POST find Content-Length [10:10:44]Host: 172.17.45.67:8080 [10:10:44]Content-Length: 658 [10:10:44]Content-Type: application/json [10:10:44] [10:10:44]POST finish read [10:10:44]Found Content-Length = 658 [10:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "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:10:44]execute_script... [10: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)593072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "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:10:44]POST & json_proto [10:10:44]process_json_proto [10:10:44]json parsed OK: [10:10:44]protocol is kg_v1.0 [10:10:44]action value=close_receipt [10:10:44]process_action close_receipt [10:10:44]cmd_close_receipt [10:10:44]MH_GetDate [10:10:44]Write to MH i2c: F0 00 00 F2 14 F5 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: F0 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: F0 09 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: F0 09 00 F2 14 00 27 1A C3 66 5F 7F 2B 66 D7 [10:10:44]GetLastDocTimeStamp 1724062187 [10:10:44]current date 1724062247 [10:10:44]FM_GetShiftState [10:10:44]SAM_PROTO_GetShiftState [10:10:44]wFMCommunicate request_size=4 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 13 01 00 [10:10:44]Write to MH i2c: E2 08 00 F3 14 80 13 01 00 00 00 00 00 84 [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0E 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0E 00 F3 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3B [10:10:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:10:44]wFMCommunicate OK [10:10:44]SAM_PROTO_GetShiftState done [10:10:44]FM_GetShiftState done [10:10:44]opened in 1724027888 [10:10:44]opened+sec_in_day 1724114288 [10:10:44]quantity*price = 60062 [10:10:44]sum+1 = 60063 [10:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 67 19.08.2024 10:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139232 ФПД: 83209661704407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T101047&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139232&fm=83209661704407&tin=02508201610067®Number=0000000000092569&sum=60000 [10:10:46]StoreToDocumentArchive [10:10:46]shift 452 fd 139232 [10:10:46]save to /storage/0452/doc_00139232 [10:10:46]save last doc name /storage/0452/doc_00139232 to /storage/kkm_last_doc_name [10:10:46]save OK [10:10:46]Clear old archive folders... [10:10:46]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:10:46]tlvbuf is 01D731F0 [10:10:46]SAM_PROTO_ClearQueue [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 09 00 00 [10:10:46]Write to MH i2c: E2 08 00 00 15 80 09 00 00 00 00 00 00 87 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [10:10:46]RAPDU: 90 00 [10:10:46]wFMCommunicate OK [10:10:46]SAM_PROTO_ClearQueue done [10:10:46]KKMCreateOFDPacket [10:10:46]OFDProtocolAddRootSTLVToBuf [10:10:46]FM_MakeSignedData [10:10:46]FM_MakeSignedData [10:10:46]SAM_PROTO_SignData [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 0D 01 02 [10:10:46]Write to MH i2c: E2 08 00 01 15 80 0D 01 02 00 00 00 00 8F [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [10:10:46]RAPDU: 90 00 [10:10:46]wFMCommunicate OK [10:10:46]wFMCommunicate request_size=253 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 43 00 00 00 F4 03 04 00 27 1A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 1F 02 00 35 04 06 00 4B AD C2 53 E8 D7 [10:10:46]Write to MH i2c: E2 00 01 02 15 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 43 00 00 00 F4 03 04 00 27 1A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 1F 02 00 35 04 06 00 4B AD C2 53 E8 D7 00 00 F9 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 03 00 02 15 00 90 00 8B [10:10:46]RAPDU: 90 00 [10:10:46]wFMCommunicate OK [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 0D 03 02 [10:10:46]Write to MH i2c: E2 08 00 03 15 80 0D 03 02 00 00 00 00 93 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 0B 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 0B 00 03 15 00 7C 77 19 72 CA EB 91 5C 90 00 B4 [10:10:46]RAPDU: 7C 77 19 72 CA EB 91 5C 90 00 [10:10:46]wFMCommunicate OK [10:10:46]SAM_PROTO_SignData done [10:10:46]FM_MakeSignedData done [10:10:46]CreateOFDProtocolMessage [10:10:46]wFMCommunicate request_size=4 [10:10:46]MH_SAM_APDU [10:10:46]CAPDU: 80 11 00 00 [10:10:46]Write to MH i2c: E2 08 00 04 15 80 11 00 00 00 00 00 00 93 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:46]Read from MH i2c: E2 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 17 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: E2 17 00 04 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [10:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:46]wFMCommunicate OK [10:10:46]CreateOFDProtocolMessage done [10:10:46]OFDSenderStorePacket 139232 [10:10:46]StoreOFDPacket docnum=139232 [10:10:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 FA 6A 00 01 7A 22 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 43 00 00 00 F4 03 04 00 27 1A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 1F 02 00 35 04 06 00 4B AD C2 53 E8 D7 7C 77 19 72 CA EB 91 5C [10:10:46]CheckFolder [10:10:46]dirname=/storage/ofd_packets [10:10:46]CheckFolder done [10:10:46]ProducePacketName [10:10:46]name=ofd_packets/00139232 [10:10:46]NVStorageSaveData ofd_packets/00139232 [10:10:46]File name is /storage/ofd_packets/00139232 [10:10:46]Write 294 bytes [10:10:46]NVStorageSaveData done [10:10:46]OFDSenderStorePacket done [10:10:46]KKMCreateOFDPacket done [10:10:46]NVStorageSaveData kkm_last_timestamp [10:10:46]File name is /storage/kkm_last_timestamp [10:10:46]Write 4 bytes [10:10:46]NVStorageSaveData done [10:10:46]ExternCall_PrintAddStr [10:10:46]wPrintStart [10:10:46]Write to MH i2c: 01 00 00 05 15 1A [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 05 15 00 00 00 00 00 FF 0F 2F [10:10:46]RasterBufferAndPrint [10:10:46]line Счет N : (1)593072 [10:10:46]line ИНН: 02508201610067 [10:10:46]line Контрольно-Кассовый Чек [10:10:46]line ПРОДАЖА [10:10:46]line ТРК (МРК, ГНК) : 43 [10:10:46]line Товар: 2710124130 [10:10:46]line SU-92 [10:10:46]line 8.730 * 68.80 [10:10:46]line = 600.62 [10:10:46]line НДС 12% НСП 1% [10:10:46]line > о реализуемом товаре [10:10:46]line ОКРУГЛЕНИЕ: -0.62 [10:10:46]line ИТОГО: 600.00 [10:10:46]line Внесено: 600.00 [10:10:46]line СДАЧА: 0.00 [10:10:46]line НСП 1% : 5.31 [10:10:46]line НДС 12% : 63.78 [10:10:46]line Наличными: 600.00 [10:10:46]line Безнал.: 0.00 [10:10:46]line Место: АЗС № 136 "Партнер Нефть" [10:10:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:10:46]line СНО: Общий режим [10:10:46]line Чек 67 19.08.2024 10:10 [10:10:46]line Смена: 452 ФФД: 1.0 [10:10:46]line ЗНМ: 0300000067 [10:10:46]line РНМ: 0000000000092569 [10:10:46]line Версия ККМ: 001 [10:10:46]line ФМ: 0000000000871776 [10:10:46]line ФД: 139232 [10:10:46]line ФПД: 83209661704407 [10:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T101047&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139232&fm=83209661704407&tin=02508201610067®Number=0000000000092569&sum=60000 [10:10:46]OFD Sender: Processing packet 139232 [packets to send 137, broken 136] [10:10:46]ProducePacketName [10:10:46]name=ofd_packets/00139232 [10:10:46]OFD Sender: To server: pG, [10:10:46]CommunicateWithHost lk.salyk.kg:30040 [10:10:46]ConnectInit lk.salyk.kg [10:10:46]written 0, free lines is 4095 [10:10:47]Connected sock=10 [10:10: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 37 36 08 01 00 00 FA 6A 00 01 7A 22 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 43 00 00 00 F4 03 04 00 27 1A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 1F 02 00 35 04 06 00 4B AD C2 53 E8 D7 7C 77 19 72 CA EB 91 5C [10: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 37 36 4F 00 00 00 76 BB 47 00 69 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 37 36 10 04 04 00 E0 1F 02 00 F4 03 04 00 BD C0 C2 66 B6 04 01 00 00 39 0C 0B 8D F4 0F E1 54 [10:10:47]CommunicateWithHost err = 0 [10:10:47]CheckOFDResponse [10:10:47]1017 (14) - 77093643461234 [10:10:47]1041 (16) - 0000000000871776 [10:10:47]1040 (4) - 139232 [10:10:47]1012 (4) - 19.08.2024 03:49 [10:10:47]1206 (1) - 0 [10:10:47]OFD Sender: Remove packet 139232 [10:10:47]ProducePacketName [10:10:47]name=ofd_packets/00139232 [10:10:47]NVStorageDeleteData [10:10:47]Write to MH i2c: 01 00 00 30 15 45 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 30 15 00 00 00 00 00 C5 0C 1D [10:10:47]RasterBufferAndPrint [10:10:47]line [10:10:47]line [10:10:47]line [10:10:47]line [10:10:47]line [10:10:47]written 0, free lines is 3275 [10:10:47]MH_Cut [10:10:47]Write to MH i2c: D1 01 00 37 15 01 1E [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: D1 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: D1 01 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: D1 01 00 37 15 00 1D [10:10:47]Write to MH i2c: 01 00 00 38 15 4D [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]OFD Sender: No OFD packet to send [10:10:48]*** Cut start [10:10:48]*** Partial cut [10:10:48]*** CUTSNS_PIN = 1 [10:10:48]*** CUTSNS_PIN = 0 [10:10:48]*** Brake cut motor [10:10:48]Read from MH i2c: 01 [10:10:48]MH_I2C_Read... [10:10:48]*** Stop cut motor [10:10:48]*** Cut end [10:10:48]Read from MH i2c: 01 07 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: 01 07 00 38 15 00 00 00 00 00 FF 0F 62 [10:10:48]process_action close_receipt done [10:10:48]requested_data is exist [10:10:48]produce_requested_data [10:10:48]requested_item fm.sn is exist - process it [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 11 00 00 [10:10:48]Write to MH i2c: E2 08 00 39 15 80 11 00 00 00 00 00 00 C8 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 17 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 17 00 39 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [10:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:48]wFMCommunicate OK [10:10:48]requested_item fd.num is exist - process it [10:10:48]SAM_PROTO_GetFieldsCounters [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 13 00 00 [10:10:48]Write to MH i2c: E2 08 00 3A 15 80 13 00 00 00 00 00 00 CB [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 62 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 62 00 3A 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:48]wFMCommunicate OK [10:10:48]SAM_PROTO_GetFieldsCounters done [10:10:48]requested_item shift.num is exist - process it [10:10:48]requested_item shift.opened is exist - process it [10:10:48]req_shift_opened [10:10:48]FM_GetShiftState [10:10:48]SAM_PROTO_GetShiftState [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 13 01 00 [10:10:48]Write to MH i2c: E2 08 00 3B 15 80 13 01 00 00 00 00 00 CD [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 0E 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 0E 00 3B 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 84 [10:10:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:10:48]wFMCommunicate OK [10:10:48]SAM_PROTO_GetShiftState done [10:10:48]FM_GetShiftState done [10:10:48]req_shift_opened done [10:10:48]requested_item shift.open_date is exist - process it [10:10:48]req_shift_open_date [10:10:48]req_shift_open_date done [10:10:48]produce_requested_data done [10:10:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139232,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:10:48]process_action_free close_receipt [10:10:48]json_value_free [10:10:48]json_value_free done [10:10:48]process_json_proto returns [10:10:48]Send response to host [10:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139232,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:10:48]free response buf [10:10:48]execute_script done [10:10:48]execute_script returns [10:10:48]free content buf [10:10:48]Sock 7.Close socket [10:10:48]Sock 7.Thread stoped [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12: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:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:07]accept exits with 9 [10:20:07]New connection [10:20:07]New thread 3067059556 created [10:20:07]Thread 3067202916 joined [10:20:07]Waiting for new connection... [10:20:07] Sock 9.Parse request [10:20:07]Sock 9.Check first char [10:20:07]Sock 9.First char is OK [10:20:07]request: POST /json_proto HTTP/1.0 [10:20:07]Method: POST [10:20:07]URL: /json_proto [10:20:07]Method is POST - this is cgi request [10:20:07]url: /json_proto [10:20:07]query_string will be loaded in cgi processing [10:20:07]execute_cgi json_proto POST (null) [10:20:07]execute_cgi path=json_proto method=POST [10:20:07]POST find Content-Length [10:20:07]Host: 172.17.45.67:8080 [10:20:07]Content-Length: 677 [10:20:07]Content-Type: application/json [10:20:07] [10:20:07]POST finish read [10:20:07]Found Content-Length = 677 [10:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:20:07]execute_script... [10:20: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)593073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:20:07]POST & json_proto [10:20:07]process_json_proto [10:20:07]json parsed OK: [10:20:07]protocol is kg_v1.0 [10:20:07]action value=close_receipt [10:20:07]process_action close_receipt [10:20:07]cmd_close_receipt [10:20:07]MH_GetDate [10:20:07]Write to MH i2c: F0 00 00 3C 15 40 [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: F0 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: F0 09 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: F0 09 00 3C 15 00 59 1C C3 66 5F 7F 2B 66 56 [10:20:07]GetLastDocTimeStamp 1724062247 [10:20:07]current date 1724062809 [10:20:07]FM_GetShiftState [10:20:07]SAM_PROTO_GetShiftState [10:20:07]wFMCommunicate request_size=4 [10:20:07]MH_SAM_APDU [10:20:07]CAPDU: 80 13 01 00 [10:20:07]Write to MH i2c: E2 08 00 3D 15 80 13 01 00 00 00 00 00 CF [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:07]Read from MH i2c: E2 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 0E 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 0E 00 3D 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 86 [10:20:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:20:07]wFMCommunicate OK [10:20:07]SAM_PROTO_GetShiftState done [10:20:07]FM_GetShiftState done [10:20:07]opened in 1724027888 [10:20:07]opened+sec_in_day 1724114288 [10:20:07]quantity*price = 60003 [10:20:07]sum+1 = 60004 [10:20:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 68 19.08.2024 10:20 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139233 ФПД: 6719984106657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102009&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139233&fm=6719984106657&tin=02508201610067®Number=0000000000092569&sum=60000 [10:20:08]StoreToDocumentArchive [10:20:08]shift 452 fd 139233 [10:20:08]save to /storage/0452/doc_00139233 [10:20:08]save last doc name /storage/0452/doc_00139233 to /storage/kkm_last_doc_name [10:20:08]save OK [10:20:08]Clear old archive folders... [10:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:08]tlvbuf is 01D80F70 [10:20:08]SAM_PROTO_ClearQueue [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 09 00 00 [10:20:08]Write to MH i2c: E2 08 00 4A 15 80 09 00 00 00 00 00 00 D1 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 03 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [10:20:08]RAPDU: 90 00 [10:20:08]wFMCommunicate OK [10:20:08]SAM_PROTO_ClearQueue done [10:20:08]KKMCreateOFDPacket [10:20:08]OFDProtocolAddRootSTLVToBuf [10:20:08]FM_MakeSignedData [10:20:08]FM_MakeSignedData [10:20:08]SAM_PROTO_SignData [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 0D 01 02 [10:20:08]Write to MH i2c: E2 08 00 4B 15 80 0D 01 02 00 00 00 00 D9 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 03 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [10:20:08]RAPDU: 90 00 [10:20:08]wFMCommunicate OK [10:20:08]wFMCommunicate request_size=255 [10:20:08]MH_SAM_APDU [10:20: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 44 00 00 00 F4 03 04 00 59 1C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 1F 02 00 35 04 06 00 06 [10:20:08]Write to MH i2c: E2 02 01 4C 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 44 00 00 00 F4 03 04 00 59 1C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 1F 02 00 35 04 06 00 06 00 00 D8 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]OFD Sender: No OFD packet to send [10:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 03 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [10:20:08]RAPDU: 90 00 [10:20:08]wFMCommunicate OK [10:20:08]wFMCommunicate request_size=10 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 0D 02 02 05 1C 9E 43 FC A1 [10:20:08]Write to MH i2c: E2 0D 00 4D 15 80 0D 02 02 05 00 1C 9E 43 FC A1 00 00 80 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 03 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 03 00 4D 15 00 90 00 D6 [10:20:08]RAPDU: 90 00 [10:20:08]wFMCommunicate OK [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 0D 03 02 [10:20:08]Write to MH i2c: E2 08 00 4E 15 80 0D 03 02 00 00 00 00 DE [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 0B 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 0B 00 4E 15 00 E1 AC 46 A2 DD 94 2A D5 90 00 C4 [10:20:08]RAPDU: E1 AC 46 A2 DD 94 2A D5 90 00 [10:20:08]wFMCommunicate OK [10:20:08]SAM_PROTO_SignData done [10:20:08]FM_MakeSignedData done [10:20:08]CreateOFDProtocolMessage [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 11 00 00 [10:20:08]Write to MH i2c: E2 08 00 4F 15 80 11 00 00 00 00 00 00 DE [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 17 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 17 00 4F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [10:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:20:08]wFMCommunicate OK [10:20:08]CreateOFDProtocolMessage done [10:20:08]OFDSenderStorePacket 139233 [10:20:08]StoreOFDPacket docnum=139233 [10:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4A D2 07 01 99 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 44 00 00 00 F4 03 04 00 59 1C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 1F 02 00 35 04 06 00 06 1C 9E 43 FC A1 E1 AC 46 A2 DD 94 2A D5 [10:20:08]CheckFolder [10:20:08]dirname=/storage/ofd_packets [10:20:08]CheckFolder done [10:20:08]ProducePacketName [10:20:08]name=ofd_packets/00139233 [10:20:08]NVStorageSaveData ofd_packets/00139233 [10:20:08]File name is /storage/ofd_packets/00139233 [10:20:08]Write 301 bytes [10:20:08]NVStorageSaveData done [10:20:08]OFDSenderStorePacket done [10:20:08]KKMCreateOFDPacket done [10:20:08]NVStorageSaveData kkm_last_timestamp [10:20:08]File name is /storage/kkm_last_timestamp [10:20:08]Write 4 bytes [10:20:08]NVStorageSaveData done [10:20:08]ExternCall_PrintAddStr [10:20:08]wPrintStart [10:20:08]Write to MH i2c: 01 00 00 50 15 65 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 07 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 07 00 50 15 00 00 00 00 00 FF 0F 7A [10:20:08]RasterBufferAndPrint [10:20:08]line Счет N : (1)593073 [10:20:08]line ИНН: 02508201610067 [10:20:08]line Контрольно-Кассовый Чек [10:20:08]line ПРОДАЖА [10:20:08]line ТРК (МРК, ГНК) : 32 [10:20:08]line Товар: 2710124130 [10:20:08]line Аи-92-К-5 [10:20:08]line 8.850 * 67.80 [10:20:08]line = 600.03 [10:20:08]line НДС 12% НСП 1% [10:20:08]line > о реализуемом товаре [10:20:08]line ОКРУГЛЕНИЕ: -0.03 [10:20:08]line ИТОГО: 600.00 [10:20:08]line Внесено: 600.00 [10:20:08]line СДАЧА: 0.00 [10:20:08]line НСП 1% : 5.31 [10:20:08]line НДС 12% : 63.72 [10:20:08]line Наличными: 600.00 [10:20:08]line Безнал.: 0.00 [10:20:08]line Место: АЗС № 136 "Партнер Нефть" [10:20:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:20:08]line СНО: Общий режим [10:20:08]line Чек 68 19.08.2024 10:20 [10:20:08]line Смена: 452 ФФД: 1.0 [10:20:08]line ЗНМ: 0300000067 [10:20:08]line РНМ: 0000000000092569 [10:20:08]line Версия ККМ: 001 [10:20:08]line ФМ: 0000000000871776 [10:20:08]line ФД: 139233 [10:20:08]line ФПД: 6719984106657 [10:20:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102009&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139233&fm=6719984106657&tin=02508201610067®Number=0000000000092569&sum=60000 [10:20:09]OFD Sender: Processing packet 139233 [packets to send 137, broken 136] [10:20:09]ProducePacketName [10:20:09]name=ofd_packets/00139233 [10:20:09]OFD Sender: To server: pG, [10:20:09]CommunicateWithHost lk.salyk.kg:30040 [10:20:09]ConnectInit lk.salyk.kg [10:20:09]written 0, free lines is 4095 [10:20:09]Connected sock=10 [10:20: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 37 36 0F 01 00 00 4A D2 07 01 99 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 44 00 00 00 F4 03 04 00 59 1C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 1F 02 00 35 04 06 00 06 1C 9E 43 FC A1 E1 AC 46 A2 DD 94 2A D5 [10:20: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 37 36 4F 00 00 00 2C C3 47 00 BD 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 37 36 10 04 04 00 E1 1F 02 00 F4 03 04 00 EF C2 C2 66 B6 04 01 00 00 14 39 95 ED 45 01 E5 62 [10:20:09]CommunicateWithHost err = 0 [10:20:09]CheckOFDResponse [10:20:09]1017 (14) - 77093643461234 [10:20:09]1041 (16) - 0000000000871776 [10:20:09]1040 (4) - 139233 [10:20:09]1012 (4) - 19.08.2024 03:58 [10:20:09]1206 (1) - 0 [10:20:09]OFD Sender: Remove packet 139233 [10:20:09]ProducePacketName [10:20:09]name=ofd_packets/00139233 [10:20:09]NVStorageDeleteData [10:20:09]Write to MH i2c: 01 00 00 7B 15 90 [10:20:09]Write i2c OK [10:20:09]MH_I2C_Read... [10:20:09]Read from MH i2c: 01 [10:20:09]MH_I2C_Read... [10:20:09]Read from MH i2c: 01 07 00 [10:20:09]MH_I2C_Read... [10:20:09]Read from MH i2c: 01 07 00 7B 15 00 00 00 00 00 C9 0C 6C [10:20:09]RasterBufferAndPrint [10:20:09]line [10:20:09]line [10:20:09]line [10:20:09]line [10:20:09]line [10:20:09]written 0, free lines is 3279 [10:20:09]MH_Cut [10:20:09]Write to MH i2c: D1 01 00 82 15 01 69 [10:20:09]Write i2c OK [10:20:09]MH_I2C_Read... [10:20:09]Read from MH i2c: D1 [10:20:09]MH_I2C_Read... [10:20:09]Read from MH i2c: D1 01 00 [10:20:09]MH_I2C_Read... [10:20:09]Read from MH i2c: D1 01 00 82 15 00 68 [10:20:09]Write to MH i2c: 01 00 00 83 15 98 [10:20:09]Write i2c OK [10:20:09]MH_I2C_Read... [10:20:10]OFD Sender: No OFD packet to send [10:20:10]*** Cut start [10:20:10]*** Partial cut [10:20:10]*** CUTSNS_PIN = 1 [10:20:10]*** CUTSNS_PIN = 0 [10:20:10]*** Brake cut motor [10:20:11]Read from MH i2c: 01 [10:20:11]MH_I2C_Read... [10:20:11]*** Stop cut motor [10:20:11]*** Cut end [10:20:11]Read from MH i2c: 01 07 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: 01 07 00 83 15 00 00 00 00 00 FF 0F AD [10:20:11]process_action close_receipt done [10:20:11]requested_data is exist [10:20:11]produce_requested_data [10:20:11]requested_item fm.sn is exist - process it [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 11 00 00 [10:20:11]Write to MH i2c: E2 08 00 84 15 80 11 00 00 00 00 00 00 13 [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 17 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 17 00 84 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [10:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:20:11]wFMCommunicate OK [10:20:11]requested_item fd.num is exist - process it [10:20:11]SAM_PROTO_GetFieldsCounters [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 13 00 00 [10:20:11]Write to MH i2c: E2 08 00 85 15 80 13 00 00 00 00 00 00 16 [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 62 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 62 00 85 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [10:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:11]wFMCommunicate OK [10:20:11]SAM_PROTO_GetFieldsCounters done [10:20:11]requested_item shift.num is exist - process it [10:20:11]requested_item shift.opened is exist - process it [10:20:11]req_shift_opened [10:20:11]FM_GetShiftState [10:20:11]SAM_PROTO_GetShiftState [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 13 01 00 [10:20:11]Write to MH i2c: E2 08 00 86 15 80 13 01 00 00 00 00 00 18 [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 0E 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 0E 00 86 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CF [10:20:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:20:11]wFMCommunicate OK [10:20:11]SAM_PROTO_GetShiftState done [10:20:11]FM_GetShiftState done [10:20:11]req_shift_opened done [10:20:11]requested_item shift.open_date is exist - process it [10:20:11]req_shift_open_date [10:20:11]req_shift_open_date done [10:20:11]produce_requested_data done [10:20:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139233,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:20:11]process_action_free close_receipt [10:20:11]json_value_free [10:20:11]json_value_free done [10:20:11]process_json_proto returns [10:20:11]Send response to host [10:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139233,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:20:11]free response buf [10:20:11]execute_script done [10:20:11]execute_script returns [10:20:11]free content buf [10:20:11]Sock 9.Close socket [10:20:11]Sock 9.Thread stoped [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:03]accept exits with 7 [10:21:03]New connection [10:21:03]New thread 3067202916 created [10:21:03]Thread 3067059556 joined [10:21:03]Waiting for new connection... [10:21:03] Sock 7.Parse request [10:21:03]Sock 7.Check first char [10:21:03]Sock 7.First char is OK [10:21:03]request: POST /json_proto HTTP/1.0 [10:21:03]Method: POST [10:21:03]URL: /json_proto [10:21:03]Method is POST - this is cgi request [10:21:03]url: /json_proto [10:21:03]query_string will be loaded in cgi processing [10:21:03]execute_cgi json_proto POST (null) [10:21:03]execute_cgi path=json_proto method=POST [10:21:03]POST find Content-Length [10:21:03]Host: 172.17.45.67:8080 [10:21:03]Content-Length: 677 [10:21:03]Content-Type: application/json [10:21:03] [10:21:03]POST finish read [10:21:03]Found Content-Length = 677 [10:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:21:03]execute_script... [10:21: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)593074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:21:03]POST & json_proto [10:21:03]process_json_proto [10:21:03]json parsed OK: [10:21:03]protocol is kg_v1.0 [10:21:03]action value=close_receipt [10:21:03]process_action close_receipt [10:21:03]cmd_close_receipt [10:21:03]MH_GetDate [10:21:03]Write to MH i2c: F0 00 00 87 15 8B [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: F0 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: F0 09 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: F0 09 00 87 15 00 92 1C C3 66 5F 7F 2B 66 DA [10:21:03]GetLastDocTimeStamp 1724062809 [10:21:03]current date 1724062866 [10:21:03]FM_GetShiftState [10:21:03]SAM_PROTO_GetShiftState [10:21:03]wFMCommunicate request_size=4 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 13 01 00 [10:21:03]Write to MH i2c: E2 08 00 88 15 80 13 01 00 00 00 00 00 1A [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:04]Read from MH i2c: E2 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 0E 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: E2 0E 00 88 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D1 [10:21:04]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:21:04]wFMCommunicate OK [10:21:04]SAM_PROTO_GetShiftState done [10:21:04]FM_GetShiftState done [10:21:04]opened in 1724027888 [10:21:04]opened+sec_in_day 1724114288 [10:21:04]quantity*price = 50036 [10:21:04]sum+1 = 50037 [10:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 69 19.08.2024 10:21 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139234 ФПД: 242588402863235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102106&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139234&fm=242588402863235&tin=02508201610067®Number=0000000000092569&sum=50000 [10:21:05]StoreToDocumentArchive [10:21:05]shift 452 fd 139234 [10:21:05]save to /storage/0452/doc_00139234 [10:21:05]save last doc name /storage/0452/doc_00139234 to /storage/kkm_last_doc_name [10:21:05]save OK [10:21:05]Clear old archive folders... [10:21:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:05]tlvbuf is 01DBED70 [10:21:05]SAM_PROTO_ClearQueue [10:21:05]wFMCommunicate request_size=4 [10:21:05]MH_SAM_APDU [10:21:05]CAPDU: 80 09 00 00 [10:21:05]Write to MH i2c: E2 08 00 95 15 80 09 00 00 00 00 00 00 1C [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:05]Read from MH i2c: E2 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 03 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [10:21:05]RAPDU: 90 00 [10:21:05]wFMCommunicate OK [10:21:05]SAM_PROTO_ClearQueue done [10:21:05]KKMCreateOFDPacket [10:21:05]OFDProtocolAddRootSTLVToBuf [10:21:05]FM_MakeSignedData [10:21:05]FM_MakeSignedData [10:21:05]SAM_PROTO_SignData [10:21:05]wFMCommunicate request_size=4 [10:21:05]MH_SAM_APDU [10:21:05]CAPDU: 80 0D 01 02 [10:21:05]Write to MH i2c: E2 08 00 96 15 80 0D 01 02 00 00 00 00 24 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:05]Read from MH i2c: E2 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 03 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [10:21:05]RAPDU: 90 00 [10:21:05]wFMCommunicate OK [10:21:05]wFMCommunicate request_size=255 [10:21:05]MH_SAM_APDU [10:21: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 45 00 00 00 F4 03 04 00 92 1C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 1F 02 00 35 04 06 00 DC [10:21:05]Write to MH i2c: E2 02 01 97 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 45 00 00 00 F4 03 04 00 92 1C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 1F 02 00 35 04 06 00 DC 00 00 6D [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]OFD Sender: No OFD packet to send [10:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:05]Read from MH i2c: E2 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 03 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [10:21:05]RAPDU: 90 00 [10:21:05]wFMCommunicate OK [10:21:05]wFMCommunicate request_size=10 [10:21:05]MH_SAM_APDU [10:21:05]CAPDU: 80 0D 02 02 05 A2 03 94 4C 83 [10:21:05]Write to MH i2c: E2 0D 00 98 15 80 0D 02 02 05 00 A2 03 94 4C 83 00 00 39 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:05]Read from MH i2c: E2 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 03 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 03 00 98 15 00 90 00 21 [10:21:05]RAPDU: 90 00 [10:21:05]wFMCommunicate OK [10:21:05]wFMCommunicate request_size=4 [10:21:05]MH_SAM_APDU [10:21:05]CAPDU: 80 0D 03 02 [10:21:05]Write to MH i2c: E2 08 00 99 15 80 0D 03 02 00 00 00 00 29 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:05]Read from MH i2c: E2 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 0B 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 0B 00 99 15 00 65 11 78 D2 27 DB AC BD 90 00 55 [10:21:05]RAPDU: 65 11 78 D2 27 DB AC BD 90 00 [10:21:05]wFMCommunicate OK [10:21:05]SAM_PROTO_SignData done [10:21:05]FM_MakeSignedData done [10:21:05]CreateOFDProtocolMessage [10:21:05]wFMCommunicate request_size=4 [10:21:05]MH_SAM_APDU [10:21:05]CAPDU: 80 11 00 00 [10:21:05]Write to MH i2c: E2 08 00 9A 15 80 11 00 00 00 00 00 00 29 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:05]Read from MH i2c: E2 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 17 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 17 00 9A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [10:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:21:05]wFMCommunicate OK [10:21:05]CreateOFDProtocolMessage done [10:21:05]OFDSenderStorePacket 139234 [10:21:05]StoreOFDPacket docnum=139234 [10:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2E F8 07 01 4D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 45 00 00 00 F4 03 04 00 92 1C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 1F 02 00 35 04 06 00 DC A2 03 94 4C 83 65 11 78 D2 27 DB AC BD [10:21:05]CheckFolder [10:21:05]dirname=/storage/ofd_packets [10:21:05]CheckFolder done [10:21:05]ProducePacketName [10:21:05]name=ofd_packets/00139234 [10:21:05]NVStorageSaveData ofd_packets/00139234 [10:21:05]File name is /storage/ofd_packets/00139234 [10:21:05]Write 301 bytes [10:21:05]NVStorageSaveData done [10:21:05]OFDSenderStorePacket done [10:21:05]KKMCreateOFDPacket done [10:21:05]NVStorageSaveData kkm_last_timestamp [10:21:05]File name is /storage/kkm_last_timestamp [10:21:05]Write 4 bytes [10:21:05]NVStorageSaveData done [10:21:05]ExternCall_PrintAddStr [10:21:05]wPrintStart [10:21:05]Write to MH i2c: 01 00 00 9B 15 B0 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 07 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 07 00 9B 15 00 00 00 00 00 FF 0F C5 [10:21:05]RasterBufferAndPrint [10:21:05]line Счет N : (1)593074 [10:21:05]line ИНН: 02508201610067 [10:21:05]line Контрольно-Кассовый Чек [10:21:05]line ПРОДАЖА [10:21:05]line ТРК (МРК, ГНК) : 52 [10:21:05]line Товар: 2710124130 [10:21:05]line Аи-92-К-5 [10:21:05]line 7.380 * 67.80 [10:21:05]line = 500.36 [10:21:05]line НДС 12% НСП 1% [10:21:05]line > о реализуемом товаре [10:21:05]line ОКРУГЛЕНИЕ: -0.36 [10:21:05]line ИТОГО: 500.00 [10:21:05]line Внесено: 500.00 [10:21:05]line СДАЧА: 0.00 [10:21:05]line НСП 1% : 4.43 [10:21:05]line НДС 12% : 53.14 [10:21:05]line Наличными: 500.00 [10:21:05]line Безнал.: 0.00 [10:21:05]line Место: АЗС № 136 "Партнер Нефть" [10:21:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:21:05]line СНО: Общий режим [10:21:05]line Чек 69 19.08.2024 10:21 [10:21:05]line Смена: 452 ФФД: 1.0 [10:21:05]line ЗНМ: 0300000067 [10:21:05]line РНМ: 0000000000092569 [10:21:05]line Версия ККМ: 001 [10:21:05]line ФМ: 0000000000871776 [10:21:05]line ФД: 139234 [10:21:05]line ФПД: 242588402863235 [10:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102106&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139234&fm=242588402863235&tin=02508201610067®Number=0000000000092569&sum=50000 [10:21:05]OFD Sender: Processing packet 139234 [packets to send 137, broken 136] [10:21:05]ProducePacketName [10:21:05]name=ofd_packets/00139234 [10:21:05]OFD Sender: To server: pG, [10:21:05]CommunicateWithHost lk.salyk.kg:30040 [10:21:05]ConnectInit lk.salyk.kg [10:21:05]written 0, free lines is 4095 [10:21:06]Connected sock=11 [10:21: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 37 36 0F 01 00 00 2E F8 07 01 4D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 45 00 00 00 F4 03 04 00 92 1C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 1F 02 00 35 04 06 00 DC A2 03 94 4C 83 65 11 78 D2 27 DB AC BD [10:21: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 37 36 4F 00 00 00 3B 63 47 00 6C 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 37 36 10 04 04 00 E2 1F 02 00 F4 03 04 00 28 C3 C2 66 B6 04 01 00 00 1B DA 87 4B FE C1 F2 BF [10:21:06]CommunicateWithHost err = 0 [10:21:06]CheckOFDResponse [10:21:06]1017 (14) - 77093643461234 [10:21:06]1041 (16) - 0000000000871776 [10:21:06]1040 (4) - 139234 [10:21:06]1012 (4) - 19.08.2024 03:59 [10:21:06]1206 (1) - 0 [10:21:06]OFD Sender: Remove packet 139234 [10:21:06]ProducePacketName [10:21:06]name=ofd_packets/00139234 [10:21:06]NVStorageDeleteData [10:21:06]Write to MH i2c: 01 00 00 C6 15 DB [10:21:06]Write i2c OK [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: 01 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: 01 07 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: 01 07 00 C6 15 00 00 00 00 00 CB 0C B9 [10:21:06]RasterBufferAndPrint [10:21:06]line [10:21:06]line [10:21:06]line [10:21:06]line [10:21:06]line [10:21:06]written 0, free lines is 3282 [10:21:06]MH_Cut [10:21:06]Write to MH i2c: D1 01 00 CD 15 01 B4 [10:21:06]Write i2c OK [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: D1 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: D1 01 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: D1 01 00 CD 15 00 B3 [10:21:06]Write to MH i2c: 01 00 00 CE 15 E3 [10:21:06]Write i2c OK [10:21:06]MH_I2C_Read... [10:21:06]OFD Sender: No OFD packet to send [10:21:07]*** Cut start [10:21:07]*** Partial cut [10:21:07]*** CUTSNS_PIN = 1 [10:21:07]*** CUTSNS_PIN = 0 [10:21:07]*** Brake cut motor [10:21:07]Read from MH i2c: 01 [10:21:07]MH_I2C_Read... [10:21:07]*** Stop cut motor [10:21:07]*** Cut end [10:21:07]Read from MH i2c: 01 07 00 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: 01 07 00 CE 15 00 00 00 00 00 FF 0F F8 [10:21:07]process_action close_receipt done [10:21:07]requested_data is exist [10:21:07]produce_requested_data [10:21:07]requested_item fm.sn is exist - process it [10:21:07]wFMCommunicate request_size=4 [10:21:07]MH_SAM_APDU [10:21:07]CAPDU: 80 11 00 00 [10:21:07]Write to MH i2c: E2 08 00 CF 15 80 11 00 00 00 00 00 00 5E [10:21:07]Write i2c OK [10:21:07]MH_I2C_Read... [10:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:07]Read from MH i2c: E2 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 17 00 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 17 00 CF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [10:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:21:07]wFMCommunicate OK [10:21:07]requested_item fd.num is exist - process it [10:21:07]SAM_PROTO_GetFieldsCounters [10:21:07]wFMCommunicate request_size=4 [10:21:07]MH_SAM_APDU [10:21:07]CAPDU: 80 13 00 00 [10:21:07]Write to MH i2c: E2 08 00 D0 15 80 13 00 00 00 00 00 00 61 [10:21:07]Write i2c OK [10:21:07]MH_I2C_Read... [10:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:07]Read from MH i2c: E2 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 62 00 [10:21:07]MH_I2C_Read... [10:21:07]Read from MH i2c: E2 62 00 D0 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [10:21:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:07]wFMCommunicate OK [10:21:07]SAM_PROTO_GetFieldsCounters done [10:21:07]requested_item shift.num is exist - process it [10:21:07]requested_item shift.opened is exist - process it [10:21:07]req_shift_opened [10:21:07]FM_GetShiftState [10:21:07]SAM_PROTO_GetShiftState [10:21:07]wFMCommunicate request_size=4 [10:21:07]MH_SAM_APDU [10:21:07]CAPDU: 80 13 01 00 [10:21:07]Write to MH i2c: E2 08 00 D1 15 80 13 01 00 00 00 00 00 63 [10:21:07]Write i2c OK [10:21:07]MH_I2C_Read... [10:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:08]Read from MH i2c: E2 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 0E 00 [10:21:08]MH_I2C_Read... [10:21:08]Read from MH i2c: E2 0E 00 D1 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1A [10:21:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:21:08]wFMCommunicate OK [10:21:08]SAM_PROTO_GetShiftState done [10:21:08]FM_GetShiftState done [10:21:08]req_shift_opened done [10:21:08]requested_item shift.open_date is exist - process it [10:21:08]req_shift_open_date [10:21:08]req_shift_open_date done [10:21:08]produce_requested_data done [10:21:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139234,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:21:08]process_action_free close_receipt [10:21:08]json_value_free [10:21:08]json_value_free done [10:21:08]process_json_proto returns [10:21:08]Send response to host [10:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139234,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:21:08]free response buf [10:21:08]execute_script done [10:21:08]execute_script returns [10:21:08]free content buf [10:21:08]Sock 7.Close socket [10:21:08]Sock 7.Thread stoped [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]accept exits with 9 [10:23:36]New connection [10:23:36]New thread 3067059556 created [10:23:36]Thread 3067202916 joined [10:23:36]Waiting for new connection... [10:23:36] Sock 9.Parse request [10:23:36]Sock 9.Check first char [10:23:36]Sock 9.First char is OK [10:23:36]request: POST /json_proto HTTP/1.0 [10:23:36]Method: POST [10:23:36]URL: /json_proto [10:23:36]Method is POST - this is cgi request [10:23:36]url: /json_proto [10:23:36]query_string will be loaded in cgi processing [10:23:36]execute_cgi json_proto POST (null) [10:23:36]execute_cgi path=json_proto method=POST [10:23:36]POST find Content-Length [10:23:36]Host: 172.17.45.67:8080 [10:23:36]Content-Length: 677 [10:23:36]Content-Type: application/json [10:23:36] [10:23:36]POST finish read [10:23:36]Found Content-Length = 677 [10:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:36]execute_script... [10:23: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)593075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:36]POST & json_proto [10:23:36]process_json_proto [10:23:36]json parsed OK: [10:23:36]protocol is kg_v1.0 [10:23:36]action value=close_receipt [10:23:36]process_action close_receipt [10:23:36]cmd_close_receipt [10:23:36]MH_GetDate [10:23:36]Write to MH i2c: F0 00 00 D2 15 D6 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: F0 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: F0 09 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: F0 09 00 D2 15 00 2A 1D C3 66 5F 7F 2B 66 BE [10:23:36]GetLastDocTimeStamp 1724062866 [10:23:36]current date 1724063018 [10:23:36]FM_GetShiftState [10:23:36]SAM_PROTO_GetShiftState [10:23:36]wFMCommunicate request_size=4 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 13 01 00 [10:23:36]Write to MH i2c: E2 08 00 D3 15 80 13 01 00 00 00 00 00 65 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 0E 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 0E 00 D3 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1C [10:23:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:23:36]wFMCommunicate OK [10:23:36]SAM_PROTO_GetShiftState done [10:23:36]FM_GetShiftState done [10:23:36]opened in 1724027888 [10:23:36]opened+sec_in_day 1724114288 [10:23:36]quantity*price = 30035 [10:23:36]sum+1 = 30036 [10:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 70 19.08.2024 10:23 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139235 ФПД: 101180768278920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102338&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139235&fm=101180768278920&tin=02508201610067®Number=0000000000092569&sum=30000 [10:23:37]StoreToDocumentArchive [10:23:37]shift 452 fd 139235 [10:23:37]save to /storage/0452/doc_00139235 [10:23:37]save last doc name /storage/0452/doc_00139235 to /storage/kkm_last_doc_name [10:23:37]save OK [10:23:37]Clear old archive folders... [10:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:37]tlvbuf is 01D84D20 [10:23:37]SAM_PROTO_ClearQueue [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 09 00 00 [10:23:37]Write to MH i2c: E2 08 00 E0 15 80 09 00 00 00 00 00 00 67 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_ClearQueue done [10:23:37]KKMCreateOFDPacket [10:23:37]OFDProtocolAddRootSTLVToBuf [10:23:37]FM_MakeSignedData [10:23:37]FM_MakeSignedData [10:23:37]SAM_PROTO_SignData [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 0D 01 02 [10:23:37]Write to MH i2c: E2 08 00 E1 15 80 0D 01 02 00 00 00 00 6F [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]wFMCommunicate request_size=255 [10:23:37]MH_SAM_APDU [10:23: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2A 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 1F 02 00 35 04 06 00 5C [10:23:37]Write to MH i2c: E2 02 01 E2 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2A 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 1F 02 00 35 04 06 00 5C 00 00 F2 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 E2 15 00 90 00 6B [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]wFMCommunicate request_size=10 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 0D 02 02 05 05 FB C0 59 88 [10:23:37]Write to MH i2c: E2 0D 00 E3 15 80 0D 02 02 05 00 05 FB C0 59 88 00 00 1D [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 E3 15 00 90 00 6C [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 0D 03 02 [10:23:37]Write to MH i2c: E2 08 00 E4 15 80 0D 03 02 00 00 00 00 74 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0B 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0B 00 E4 15 00 01 D9 5D 3C 7E 23 2B BC 90 00 70 [10:23:37]RAPDU: 01 D9 5D 3C 7E 23 2B BC 90 00 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_SignData done [10:23:37]FM_MakeSignedData done [10:23:37]CreateOFDProtocolMessage [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 11 00 00 [10:23:37]Write to MH i2c: E2 08 00 E5 15 80 11 00 00 00 00 00 00 74 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 E5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [10:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:23:37]wFMCommunicate OK [10:23:37]CreateOFDProtocolMessage done [10:23:37]OFDSenderStorePacket 139235 [10:23:37]StoreOFDPacket docnum=139235 [10:23:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 D1 07 01 11 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2A 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 1F 02 00 35 04 06 00 5C 05 FB C0 59 88 01 D9 5D 3C 7E 23 2B BC [10:23:37]CheckFolder [10:23:37]dirname=/storage/ofd_packets [10:23:37]CheckFolder done [10:23:37]ProducePacketName [10:23:37]name=ofd_packets/00139235 [10:23:37]NVStorageSaveData ofd_packets/00139235 [10:23:37]File name is /storage/ofd_packets/00139235 [10:23:37]Write 301 bytes [10:23:37]NVStorageSaveData done [10:23:37]OFDSenderStorePacket done [10:23:37]KKMCreateOFDPacket done [10:23:37]NVStorageSaveData kkm_last_timestamp [10:23:37]File name is /storage/kkm_last_timestamp [10:23:37]Write 4 bytes [10:23:37]NVStorageSaveData done [10:23:37]ExternCall_PrintAddStr [10:23:37]wPrintStart [10:23:37]Write to MH i2c: 01 00 00 E6 15 FB [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 E6 15 00 00 00 00 00 FF 0F 10 [10:23:37]RasterBufferAndPrint [10:23:37]line Счет N : (1)593075 [10:23:37]line ИНН: 02508201610067 [10:23:37]line Контрольно-Кассовый Чек [10:23:37]line ПРОДАЖА [10:23:37]line ТРК (МРК, ГНК) : 52 [10:23:37]line Товар: 2710124130 [10:23:37]line Аи-92-К-5 [10:23:37]line 4.430 * 67.80 [10:23:37]line = 300.35 [10:23:37]line НДС 12% НСП 1% [10:23:37]line > о реализуемом товаре [10:23:37]line ОКРУГЛЕНИЕ: -0.35 [10:23:37]line ИТОГО: 300.00 [10:23:37]line Внесено: 300.00 [10:23:37]line СДАЧА: 0.00 [10:23:37]line НСП 1% : 2.66 [10:23:37]line НДС 12% : 31.90 [10:23:37]line Наличными: 300.00 [10:23:37]line Безнал.: 0.00 [10:23:37]line Место: АЗС № 136 "Партнер Нефть" [10:23:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:23:37]line СНО: Общий режим [10:23:37]line Чек 70 19.08.2024 10:23 [10:23:37]line Смена: 452 ФФД: 1.0 [10:23:37]line ЗНМ: 0300000067 [10:23:37]line РНМ: 0000000000092569 [10:23:37]line Версия ККМ: 001 [10:23:37]line ФМ: 0000000000871776 [10:23:37]line ФД: 139235 [10:23:37]line ФПД: 101180768278920 [10:23:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102338&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139235&fm=101180768278920&tin=02508201610067®Number=0000000000092569&sum=30000 [10:23:38]written 0, free lines is 4095 [10:23:38]OFD Sender: Processing packet 139235 [packets to send 137, broken 136] [10:23:38]ProducePacketName [10:23:38]name=ofd_packets/00139235 [10:23:38]OFD Sender: To server: pG, [10:23:38]CommunicateWithHost lk.salyk.kg:30040 [10:23:38]ConnectInit lk.salyk.kg [10:23:38]Connected sock=10 [10:23: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 37 36 0F 01 00 00 16 D1 07 01 11 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2A 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 1F 02 00 35 04 06 00 5C 05 FB C0 59 88 01 D9 5D 3C 7E 23 2B BC [10:23: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 37 36 4F 00 00 00 D1 BA 47 00 F4 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 1F 02 00 F4 03 04 00 C0 C3 C2 66 B6 04 01 00 00 06 23 BF 43 0E 6E A0 D1 [10:23:38]CommunicateWithHost err = 0 [10:23:38]CheckOFDResponse [10:23:38]1017 (14) - 77093643461234 [10:23:38]1041 (16) - 0000000000871776 [10:23:38]1040 (4) - 139235 [10:23:38]1012 (4) - 19.08.2024 04:02 [10:23:38]1206 (1) - 0 [10:23:38]OFD Sender: Remove packet 139235 [10:23:38]ProducePacketName [10:23:38]name=ofd_packets/00139235 [10:23:38]NVStorageDeleteData [10:23:38]Write to MH i2c: 01 00 00 11 16 27 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 07 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 07 00 11 16 00 00 00 00 00 BE 0C F8 [10:23:38]RasterBufferAndPrint [10:23:38]line [10:23:38]line [10:23:38]line [10:23:38]line [10:23:38]line [10:23:38]written 0, free lines is 3272 [10:23:38]MH_Cut [10:23:38]Write to MH i2c: D1 01 00 18 16 01 00 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: D1 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: D1 01 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: D1 01 00 18 16 00 FF [10:23:38]Write to MH i2c: 01 00 00 19 16 2F [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:39]OFD Sender: No OFD packet to send [10:23:39]*** Cut start [10:23:39]*** Partial cut [10:23:39]*** CUTSNS_PIN = 1 [10:23:39]*** CUTSNS_PIN = 0 [10:23:39]*** Brake cut motor [10:23:40]Read from MH i2c: 01 [10:23:40]MH_I2C_Read... [10:23:40]*** Stop cut motor [10:23:40]*** Cut end [10:23:40]Read from MH i2c: 01 07 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: 01 07 00 19 16 00 00 00 00 00 FF 0F 44 [10:23:40]process_action close_receipt done [10:23:40]requested_data is exist [10:23:40]produce_requested_data [10:23:40]requested_item fm.sn is exist - process it [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 11 00 00 [10:23:40]Write to MH i2c: E2 08 00 1A 16 80 11 00 00 00 00 00 00 AA [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 17 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 17 00 1A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [10:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:23:40]wFMCommunicate OK [10:23:40]requested_item fd.num is exist - process it [10:23:40]SAM_PROTO_GetFieldsCounters [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 13 00 00 [10:23:40]Write to MH i2c: E2 08 00 1B 16 80 13 00 00 00 00 00 00 AD [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 62 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 62 00 1B 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:40]wFMCommunicate OK [10:23:40]SAM_PROTO_GetFieldsCounters done [10:23:40]requested_item shift.num is exist - process it [10:23:40]requested_item shift.opened is exist - process it [10:23:40]req_shift_opened [10:23:40]FM_GetShiftState [10:23:40]SAM_PROTO_GetShiftState [10:23:40]wFMCommunicate request_size=4 [10:23:40]MH_SAM_APDU [10:23:40]CAPDU: 80 13 01 00 [10:23:40]Write to MH i2c: E2 08 00 1C 16 80 13 01 00 00 00 00 00 AF [10:23:40]Write i2c OK [10:23:40]MH_I2C_Read... [10:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:40]Read from MH i2c: E2 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 0E 00 [10:23:40]MH_I2C_Read... [10:23:40]Read from MH i2c: E2 0E 00 1C 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 66 [10:23:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:23:40]wFMCommunicate OK [10:23:40]SAM_PROTO_GetShiftState done [10:23:40]FM_GetShiftState done [10:23:40]req_shift_opened done [10:23:40]requested_item shift.open_date is exist - process it [10:23:40]req_shift_open_date [10:23:40]req_shift_open_date done [10:23:40]produce_requested_data done [10:23:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139235,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:23:40]process_action_free close_receipt [10:23:40]json_value_free [10:23:40]json_value_free done [10:23:40]process_json_proto returns [10:23:40]Send response to host [10:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139235,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:23:40]free response buf [10:23:40]execute_script done [10:23:40]execute_script returns [10:23:40]free content buf [10:23:40]Sock 9.Close socket [10:23:40]Sock 9.Thread stoped [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:01]accept exits with 7 [10:24:01]New connection [10:24:01]New thread 3067202916 created [10:24:01]Thread 3067059556 joined [10:24:01]Waiting for new connection... [10:24:01] Sock 7.Parse request [10:24:01]Sock 7.Check first char [10:24:01]Sock 7.First char is OK [10:24:01]request: POST /json_proto HTTP/1.0 [10:24:01]Method: POST [10:24:01]URL: /json_proto [10:24:01]Method is POST - this is cgi request [10:24:01]url: /json_proto [10:24:01]query_string will be loaded in cgi processing [10:24:01]execute_cgi json_proto POST (null) [10:24:01]execute_cgi path=json_proto method=POST [10:24:01]POST find Content-Length [10:24:01]Host: 172.17.45.67:8080 [10:24:01]Content-Length: 759 [10:24:01]Content-Type: application/json [10:24:01] [10:24:01]POST finish read [10:24:01]Found Content-Length = 759 [10:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:01]execute_script... [10:24: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)593076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:01]POST & json_proto [10:24:01]process_json_proto [10:24:01]json parsed OK: [10:24:01]protocol is kg_v1.0 [10:24:01]action value=close_receipt [10:24:01]process_action close_receipt [10:24:01]cmd_close_receipt [10:24:01]MH_GetDate [10:24:01]Write to MH i2c: F0 00 00 1D 16 22 [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: F0 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: F0 09 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: F0 09 00 1D 16 00 43 1D C3 66 5F 7F 2B 66 23 [10:24:01]GetLastDocTimeStamp 1724063018 [10:24:01]current date 1724063043 [10:24:01]FM_GetShiftState [10:24:01]SAM_PROTO_GetShiftState [10:24:01]wFMCommunicate request_size=4 [10:24:01]MH_SAM_APDU [10:24:01]CAPDU: 80 13 01 00 [10:24:01]Write to MH i2c: E2 08 00 1E 16 80 13 01 00 00 00 00 00 B1 [10:24:01]Write i2c OK [10:24:01]MH_I2C_Read... [10:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:01]Read from MH i2c: E2 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 0E 00 [10:24:01]MH_I2C_Read... [10:24:01]Read from MH i2c: E2 0E 00 1E 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 68 [10:24:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:24:01]wFMCommunicate OK [10:24:01]SAM_PROTO_GetShiftState done [10:24:01]FM_GetShiftState done [10:24:01]opened in 1724027888 [10:24:01]opened+sec_in_day 1724114288 [10:24:01]quantity*price = 0 [10:24:01]sum+1 = 1 [10:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 71 19.08.2024 10:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104832 ФМ: 0000000000871776 ФД: 139236 ФПД: 25025564184243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102403&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139236&fm=25025564184243&tin=02508201610067®Number=0000000000092569&sum=0 [10:24:02]StoreToDocumentArchive [10:24:02]shift 452 fd 139236 [10:24:02]save to /storage/0452/doc_00139236 [10:24:02]save last doc name /storage/0452/doc_00139236 to /storage/kkm_last_doc_name [10:24:02]save OK [10:24:02]Clear old archive folders... [10:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:24:02]tlvbuf is 01DBE050 [10:24:02]SAM_PROTO_ClearQueue [10:24:02]wFMCommunicate request_size=4 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 09 00 00 [10:24:02]Write to MH i2c: E2 08 00 2B 16 80 09 00 00 00 00 00 00 B3 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [10:24:02]RAPDU: 90 00 [10:24:02]wFMCommunicate OK [10:24:02]SAM_PROTO_ClearQueue done [10:24:02]KKMCreateOFDPacket [10:24:02]OFDProtocolAddRootSTLVToBuf [10:24:02]FM_MakeSignedData [10:24:02]FM_MakeSignedData [10:24:02]SAM_PROTO_SignData [10:24:02]wFMCommunicate request_size=4 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 0D 01 02 [10:24:02]Write to MH i2c: E2 08 00 2C 16 80 0D 01 02 00 00 00 00 BB [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 2C 16 00 90 00 B6 [10:24:02]RAPDU: 90 00 [10:24:02]wFMCommunicate OK [10:24:02]wFMCommunicate request_size=255 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 43 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 1F 02 00 35 04 06 00 [10:24:02]Write to MH i2c: E2 02 01 2D 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 43 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 1F 02 00 35 04 06 00 00 00 12 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 2D 16 00 90 00 B7 [10:24:02]RAPDU: 90 00 [10:24:02]wFMCommunicate OK [10:24:02]wFMCommunicate request_size=11 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 0D 02 02 06 16 C2 B7 DD 0E B3 [10:24:02]Write to MH i2c: E2 0E 00 2E 16 80 0D 02 02 06 00 16 C2 B7 DD 0E B3 00 00 F7 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 03 00 2E 16 00 90 00 B8 [10:24:02]RAPDU: 90 00 [10:24:02]wFMCommunicate OK [10:24:02]wFMCommunicate request_size=4 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 0D 03 02 [10:24:02]Write to MH i2c: E2 08 00 2F 16 80 0D 03 02 00 00 00 00 C0 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 0B 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 0B 00 2F 16 00 7D 81 E5 68 EA AD 5C 7A 90 00 79 [10:24:02]RAPDU: 7D 81 E5 68 EA AD 5C 7A 90 00 [10:24:02]wFMCommunicate OK [10:24:02]SAM_PROTO_SignData done [10:24:02]FM_MakeSignedData done [10:24:02]CreateOFDProtocolMessage [10:24:02]wFMCommunicate request_size=4 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 11 00 00 [10:24:02]Write to MH i2c: E2 08 00 30 16 80 11 00 00 00 00 00 00 C0 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 17 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 17 00 30 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [10:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:02]wFMCommunicate OK [10:24:02]CreateOFDProtocolMessage done [10:24:02]OFDSenderStorePacket 139236 [10:24:02]StoreOFDPacket docnum=139236 [10:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 82 A9 08 01 4B 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 47 00 00 00 F4 03 04 00 43 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 1F 02 00 35 04 06 00 16 C2 B7 DD 0E B3 7D 81 E5 68 EA AD 5C 7A [10:24:02]CheckFolder [10:24:02]dirname=/storage/ofd_packets [10:24:02]CheckFolder done [10:24:02]ProducePacketName [10:24:02]name=ofd_packets/00139236 [10:24:02]NVStorageSaveData ofd_packets/00139236 [10:24:02]File name is /storage/ofd_packets/00139236 [10:24:02]Write 302 bytes [10:24:02]NVStorageSaveData done [10:24:02]OFDSenderStorePacket done [10:24:02]KKMCreateOFDPacket done [10:24:02]NVStorageSaveData kkm_last_timestamp [10:24:02]File name is /storage/kkm_last_timestamp [10:24:02]Write 4 bytes [10:24:02]NVStorageSaveData done [10:24:02]ExternCall_PrintAddStr [10:24:02]wPrintStart [10:24:02]Write to MH i2c: 01 00 00 31 16 47 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: 01 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: 01 07 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: 01 07 00 31 16 00 00 00 00 00 FF 0F 5C [10:24:02]RasterBufferAndPrint [10:24:02]line Счет N : (1)593076 [10:24:02]line ИНН: 02508201610067 [10:24:02]line Контрольно-Кассовый Чек [10:24:02]line ПРОДАЖА [10:24:02]line ТРК (МРК, ГНК) : 34 [10:24:02]line Товар: 2710194210 [10:24:02]line ДТ(л)-К-5 [10:24:02]line 20.000 * 0.00 [10:24:02]line = 0.00 [10:24:02]line НДС 12% НСП 1% [10:24:02]line > о реализуемом товаре [10:24:02]line ИТОГО: 0.00 [10:24:02]line НСП 1% : 0.00 [10:24:02]line НДС 12% : 0.00 [10:24:02]line Наличными: 0.00 [10:24:02]line Безнал.: 0.00 [10:24:02]line Место: АЗС № 136 "Партнер Нефть" [10:24:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:24:02]line СНО: Общий режим [10:24:02]line Чек 71 19.08.2024 10:24 [10:24:02]line Смена: 452 ФФД: 1.0 [10:24:02]line ЗНМ: 0300000067 [10:24:02]line РНМ: 0000000000092569 [10:24:02]line Версия ККМ: 001 [10:24:02]line Талоны: ТК ГПНА Online [10:24:02]line 30104832 [10:24:02]line ФМ: 0000000000871776 [10:24:02]line ФД: 139236 [10:24:02]line ФПД: 25025564184243 [10:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102403&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139236&fm=25025564184243&tin=02508201610067®Number=0000000000092569&sum=0 [10:24:02]written 0, free lines is 4095 [10:24:02]OFD Sender: Processing packet 139236 [packets to send 137, broken 136] [10:24:02]ProducePacketName [10:24:02]name=ofd_packets/00139236 [10:24:02]OFD Sender: To server: pG, [10:24:02]CommunicateWithHost lk.salyk.kg:30040 [10:24:02]ConnectInit lk.salyk.kg [10:24:03]Connected sock=10 [10:24: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 37 36 10 01 00 00 82 A9 08 01 4B 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 47 00 00 00 F4 03 04 00 43 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 1F 02 00 35 04 06 00 16 C2 B7 DD 0E B3 7D 81 E5 68 EA AD 5C 7A [10:24:03]Write to MH i2c: 01 00 00 5B 16 71 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: 01 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: 01 07 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: 01 07 00 5B 16 00 00 00 00 00 D1 0C 55 [10:24:03]RasterBufferAndPrint [10:24:03]line [10:24:03]line [10:24:03]line [10:24:03]line [10:24:03]line [10:24:03]written 0, free lines is 3287 [10:24: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 37 36 4F 00 00 00 95 3D 47 00 B2 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 37 36 10 04 04 00 E4 1F 02 00 F4 03 04 00 D9 C3 C2 66 B6 04 01 00 00 AB 19 84 8E 62 B6 E6 F6 [10:24:03]CommunicateWithHost err = 0 [10:24:03]CheckOFDResponse [10:24:03]1017 (14) - 77093643461234 [10:24:03]1041 (16) - 0000000000871776 [10:24:03]1040 (4) - 139236 [10:24:03]1012 (4) - 19.08.2024 04:02 [10:24:03]1206 (1) - 0 [10:24:03]OFD Sender: Remove packet 139236 [10:24:03]ProducePacketName [10:24:03]name=ofd_packets/00139236 [10:24:03]NVStorageDeleteData [10:24:03]MH_Cut [10:24:03]Write to MH i2c: D1 01 00 62 16 01 4A [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: D1 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: D1 01 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: D1 01 00 62 16 00 49 [10:24:03]Write to MH i2c: 01 00 00 63 16 79 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]OFD Sender: No OFD packet to send [10:24:04]*** Cut start [10:24:04]*** Partial cut [10:24:04]*** CUTSNS_PIN = 1 [10:24:04]*** CUTSNS_PIN = 0 [10:24:04]*** Brake cut motor [10:24:04]Read from MH i2c: 01 [10:24:04]MH_I2C_Read... [10:24:04]*** Stop cut motor [10:24:04]*** Cut end [10:24:04]Read from MH i2c: 01 07 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: 01 07 00 63 16 00 00 00 00 00 FF 0F 8E [10:24:04]process_action close_receipt done [10:24:04]requested_data is exist [10:24:04]produce_requested_data [10:24:04]requested_item fm.sn is exist - process it [10:24:04]wFMCommunicate request_size=4 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 11 00 00 [10:24:04]Write to MH i2c: E2 08 00 64 16 80 11 00 00 00 00 00 00 F4 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 17 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 17 00 64 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [10:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:04]wFMCommunicate OK [10:24:04]requested_item fd.num is exist - process it [10:24:04]SAM_PROTO_GetFieldsCounters [10:24:04]wFMCommunicate request_size=4 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 13 00 00 [10:24:04]Write to MH i2c: E2 08 00 65 16 80 13 00 00 00 00 00 00 F7 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 62 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 62 00 65 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [10:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:04]wFMCommunicate OK [10:24:04]SAM_PROTO_GetFieldsCounters done [10:24:04]requested_item shift.num is exist - process it [10:24:04]requested_item shift.opened is exist - process it [10:24:04]req_shift_opened [10:24:04]FM_GetShiftState [10:24:04]SAM_PROTO_GetShiftState [10:24:04]wFMCommunicate request_size=4 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 13 01 00 [10:24:04]Write to MH i2c: E2 08 00 66 16 80 13 01 00 00 00 00 00 F9 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 0E 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 0E 00 66 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B0 [10:24:04]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:24:04]wFMCommunicate OK [10:24:04]SAM_PROTO_GetShiftState done [10:24:04]FM_GetShiftState done [10:24:04]req_shift_opened done [10:24:04]requested_item shift.open_date is exist - process it [10:24:04]req_shift_open_date [10:24:04]req_shift_open_date done [10:24:04]produce_requested_data done [10:24:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139236,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:24:04]process_action_free close_receipt [10:24:04]json_value_free [10:24:04]json_value_free done [10:24:04]process_json_proto returns [10:24:04]Send response to host [10:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139236,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:24:04]free response buf [10:24:04]execute_script done [10:24:04]execute_script returns [10:24:04]free content buf [10:24:04]Sock 7.Close socket [10:24:04]Sock 7.Thread stoped [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:24]accept exits with 9 [10:24:24]New connection [10:24:24]New thread 3067059556 created [10:24:24]Thread 3067202916 joined [10:24:24]Waiting for new connection... [10:24:24] Sock 9.Parse request [10:24:24]Sock 9.Check first char [10:24:24]Sock 9.First char is OK [10:24:24]request: POST /json_proto HTTP/1.0 [10:24:24]Method: POST [10:24:24]URL: /json_proto [10:24:24]Method is POST - this is cgi request [10:24:24]url: /json_proto [10:24:24]query_string will be loaded in cgi processing [10:24:24]execute_cgi json_proto POST (null) [10:24:24]execute_cgi path=json_proto method=POST [10:24:24]POST find Content-Length [10:24:24]Host: 172.17.45.67:8080 [10:24:24]Content-Length: 682 [10:24:24]Content-Type: application/json [10:24:24] [10:24:24]POST finish read [10:24:24]Found Content-Length = 682 [10:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:24:24]execute_script... [10:24: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)593078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:24:24]POST & json_proto [10:24:24]process_json_proto [10:24:24]json parsed OK: [10:24:24]protocol is kg_v1.0 [10:24:24]action value=close_receipt [10:24:24]process_action close_receipt [10:24:24]cmd_close_receipt [10:24:24]MH_GetDate [10:24:24]Write to MH i2c: F0 00 00 67 16 6C [10:24:24]Write i2c OK [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: F0 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: F0 09 00 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: F0 09 00 67 16 00 5B 1D C3 66 5F 7F 2B 66 85 [10:24:24]GetLastDocTimeStamp 1724063043 [10:24:24]current date 1724063067 [10:24:24]FM_GetShiftState [10:24:24]SAM_PROTO_GetShiftState [10:24:24]wFMCommunicate request_size=4 [10:24:24]MH_SAM_APDU [10:24:24]CAPDU: 80 13 01 00 [10:24:24]Write to MH i2c: E2 08 00 68 16 80 13 01 00 00 00 00 00 FB [10:24:24]Write i2c OK [10:24:24]MH_I2C_Read... [10:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:24]Read from MH i2c: E2 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 0E 00 [10:24:24]MH_I2C_Read... [10:24:24]Read from MH i2c: E2 0E 00 68 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B2 [10:24:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:24:24]wFMCommunicate OK [10:24:24]SAM_PROTO_GetShiftState done [10:24:24]FM_GetShiftState done [10:24:24]opened in 1724027888 [10:24:24]opened+sec_in_day 1724114288 [10:24:24]quantity*price = 100005 [10:24:24]sum+1 = 100006 [10:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 72 19.08.2024 10:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139237 ФПД: 251517218361615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102427&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139237&fm=251517218361615&tin=02508201610067®Number=0000000000092569&sum=100000 [10:24:25]StoreToDocumentArchive [10:24:25]shift 452 fd 139237 [10:24:25]save to /storage/0452/doc_00139237 [10:24:25]save last doc name /storage/0452/doc_00139237 to /storage/kkm_last_doc_name [10:24:25]save OK [10:24:25]Clear old archive folders... [10:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:25]tlvbuf is 01D72F30 [10:24:25]SAM_PROTO_ClearQueue [10:24:25]wFMCommunicate request_size=4 [10:24:25]MH_SAM_APDU [10:24:25]CAPDU: 80 09 00 00 [10:24:25]Write to MH i2c: E2 08 00 75 16 80 09 00 00 00 00 00 00 FD [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:25]Read from MH i2c: E2 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 75 16 00 90 00 FF [10:24:25]RAPDU: 90 00 [10:24:25]wFMCommunicate OK [10:24:25]SAM_PROTO_ClearQueue done [10:24:25]KKMCreateOFDPacket [10:24:25]OFDProtocolAddRootSTLVToBuf [10:24:25]FM_MakeSignedData [10:24:25]FM_MakeSignedData [10:24:25]SAM_PROTO_SignData [10:24:25]wFMCommunicate request_size=4 [10:24:25]MH_SAM_APDU [10:24:25]CAPDU: 80 0D 01 02 [10:24:25]Write to MH i2c: E2 08 00 76 16 80 0D 01 02 00 00 00 00 05 [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:25]Read from MH i2c: E2 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 [10:24:25]MH_I2C_Read... [10:24:25]Read from MH i2c: E2 03 00 76 16 00 90 00 00 [10:24:25]RAPDU: 90 00 [10:24:25]wFMCommunicate OK [10:24:25]wFMCommunicate request_size=255 [10:24:25]MH_SAM_APDU [10:24: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 5B 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 1F 02 00 35 04 06 00 E4 [10:24:25]Write to MH i2c: E2 02 01 77 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 5B 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 1F 02 00 35 04 06 00 E4 00 00 B5 [10:24:25]Write i2c OK [10:24:25]MH_I2C_Read... [10:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:26]Read from MH i2c: E2 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: E2 03 00 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: E2 03 00 77 16 00 90 00 01 [10:24:26]RAPDU: 90 00 [10:24:26]wFMCommunicate OK [10:24:26]wFMCommunicate request_size=10 [10:24:26]MH_SAM_APDU [10:24:26]CAPDU: 80 0D 02 02 05 C0 EA 74 91 0F [10:24:26]Write to MH i2c: E2 0D 00 78 16 80 0D 02 02 05 00 C0 EA 74 91 0F 00 00 D0 [10:24:26]Write i2c OK [10:24:26]MH_I2C_Read... [10:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:26]Read from MH i2c: E2 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: E2 03 00 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: E2 03 00 78 16 00 90 00 02 [10:24:26]RAPDU: 90 00 [10:24:26]wFMCommunicate OK [10:24:26]wFMCommunicate request_size=4 [10:24:26]MH_SAM_APDU [10:24:26]CAPDU: 80 0D 03 02 [10:24:26]Write to MH i2c: E2 08 00 79 16 80 0D 03 02 00 00 00 00 0A [10:24:26]Write i2c OK [10:24:26]MH_I2C_Read... [10:24:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:26]Read from MH i2c: E2 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: E2 0B 00 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: E2 0B 00 79 16 00 FD 41 E4 27 01 EA 85 2F 90 00 F3 [10:24:26]RAPDU: FD 41 E4 27 01 EA 85 2F 90 00 [10:24:26]wFMCommunicate OK [10:24:26]SAM_PROTO_SignData done [10:24:26]FM_MakeSignedData done [10:24:26]CreateOFDProtocolMessage [10:24:26]wFMCommunicate request_size=4 [10:24:26]MH_SAM_APDU [10:24:26]CAPDU: 80 11 00 00 [10:24:26]Write to MH i2c: E2 08 00 7A 16 80 11 00 00 00 00 00 00 0A [10:24:26]Write i2c OK [10:24:26]MH_I2C_Read... [10:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:26]Read from MH i2c: E2 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: E2 17 00 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: E2 17 00 7A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 61 [10:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:26]wFMCommunicate OK [10:24:26]CreateOFDProtocolMessage done [10:24:26]OFDSenderStorePacket 139237 [10:24:26]StoreOFDPacket docnum=139237 [10:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 1D 07 01 7B 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 5B 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 1F 02 00 35 04 06 00 E4 C0 EA 74 91 0F FD 41 E4 27 01 EA 85 2F [10:24:26]CheckFolder [10:24:26]dirname=/storage/ofd_packets [10:24:26]CheckFolder done [10:24:26]ProducePacketName [10:24:26]name=ofd_packets/00139237 [10:24:26]NVStorageSaveData ofd_packets/00139237 [10:24:26]File name is /storage/ofd_packets/00139237 [10:24:26]Write 301 bytes [10:24:26]NVStorageSaveData done [10:24:26]OFDSenderStorePacket done [10:24:26]KKMCreateOFDPacket done [10:24:26]NVStorageSaveData kkm_last_timestamp [10:24:26]File name is /storage/kkm_last_timestamp [10:24:26]Write 4 bytes [10:24:26]NVStorageSaveData done [10:24:26]ExternCall_PrintAddStr [10:24:26]wPrintStart [10:24:26]Write to MH i2c: 01 00 00 7B 16 91 [10:24:26]Write i2c OK [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: 01 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: 01 07 00 [10:24:26]MH_I2C_Read... [10:24:26]Read from MH i2c: 01 07 00 7B 16 00 00 00 00 00 FF 0F A6 [10:24:26]RasterBufferAndPrint [10:24:26]line Счет N : (1)593078 [10:24:26]line ИНН: 02508201610067 [10:24:26]line Контрольно-Кассовый Чек [10:24:26]line ПРОДАЖА [10:24:26]line ТРК (МРК, ГНК) : 42 [10:24:26]line Товар: 2710124130 [10:24:26]line Аи-92-К-5 [10:24:26]line 14.750 * 67.80 [10:24:26]line = 1000.05 [10:24:26]line НДС 12% НСП 1% [10:24:26]line > о реализуемом товаре [10:24:26]line ОКРУГЛЕНИЕ: -0.05 [10:24:26]line ИТОГО: 1000.00 [10:24:26]line Внесено: 1000.00 [10:24:26]line СДАЧА: 0.00 [10:24:26]line НСП 1% : 8.85 [10:24:26]line НДС 12% : 106.20 [10:24:26]line Наличными: 1000.00 [10:24:26]line Безнал.: 0.00 [10:24:26]line Место: АЗС № 136 "Партнер Нефть" [10:24:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:24:26]line СНО: Общий режим [10:24:26]line Чек 72 19.08.2024 10:24 [10:24:26]line Смена: 452 ФФД: 1.0 [10:24:26]line ЗНМ: 0300000067 [10:24:26]line РНМ: 0000000000092569 [10:24:26]line Версия ККМ: 001 [10:24:26]line ФМ: 0000000000871776 [10:24:26]line ФД: 139237 [10:24:26]line ФПД: 251517218361615 [10:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102427&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139237&fm=251517218361615&tin=02508201610067®Number=0000000000092569&sum=100000 [10:24:26]OFD Sender: Processing packet 139237 [packets to send 137, broken 136] [10:24:26]ProducePacketName [10:24:26]name=ofd_packets/00139237 [10:24:26]OFD Sender: To server: pG, [10:24:26]CommunicateWithHost lk.salyk.kg:30040 [10:24:26]ConnectInit lk.salyk.kg [10:24:26]written 0, free lines is 4095 [10:24:26]Connected sock=10 [10:24: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 37 36 0F 01 00 00 A1 1D 07 01 7B 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 5B 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 1F 02 00 35 04 06 00 E4 C0 EA 74 91 0F FD 41 E4 27 01 EA 85 2F [10: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 37 36 4F 00 00 00 B5 CF 47 00 26 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 37 36 10 04 04 00 E5 1F 02 00 F4 03 04 00 F1 C3 C2 66 B6 04 01 00 00 DA B1 7C 7E 69 DE 9B 2C [10:24:27]CommunicateWithHost err = 0 [10:24:27]CheckOFDResponse [10:24:27]1017 (14) - 77093643461234 [10:24:27]1041 (16) - 0000000000871776 [10:24:27]1040 (4) - 139237 [10:24:27]1012 (4) - 19.08.2024 04:02 [10:24:27]1206 (1) - 0 [10:24:27]OFD Sender: Remove packet 139237 [10:24:27]ProducePacketName [10:24:27]name=ofd_packets/00139237 [10:24:27]NVStorageDeleteData [10:24:27]Write to MH i2c: 01 00 00 A6 16 BC [10:24:27]Write i2c OK [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: 01 [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: 01 07 00 [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: 01 07 00 A6 16 00 00 00 00 00 C0 0C 8F [10:24:27]RasterBufferAndPrint [10:24:27]line [10:24:27]line [10:24:27]line [10:24:27]line [10:24:27]line [10:24:27]written 0, free lines is 3271 [10:24:27]MH_Cut [10:24:27]Write to MH i2c: D1 01 00 AD 16 01 95 [10:24:27]Write i2c OK [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: D1 [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: D1 01 00 [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: D1 01 00 AD 16 00 94 [10:24:27]Write to MH i2c: 01 00 00 AE 16 C4 [10:24:27]Write i2c OK [10:24:27]MH_I2C_Read... [10:24:27]OFD Sender: No OFD packet to send [10:24:27]*** Cut start [10:24:27]*** Partial cut [10:24:27]*** CUTSNS_PIN = 1 [10:24:27]*** CUTSNS_PIN = 0 [10:24:28]*** Brake cut motor [10:24:28]Read from MH i2c: 01 [10:24:28]MH_I2C_Read... [10:24:28]*** Stop cut motor [10:24:28]*** Cut end [10:24:28]Read from MH i2c: 01 07 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: 01 07 00 AE 16 00 00 00 00 00 FF 0F D9 [10:24:28]process_action close_receipt done [10:24:28]requested_data is exist [10:24:28]produce_requested_data [10:24:28]requested_item fm.sn is exist - process it [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 11 00 00 [10:24:28]Write to MH i2c: E2 08 00 AF 16 80 11 00 00 00 00 00 00 3F [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 17 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 17 00 AF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 96 [10:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:28]wFMCommunicate OK [10:24:28]requested_item fd.num is exist - process it [10:24:28]SAM_PROTO_GetFieldsCounters [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 13 00 00 [10:24:28]Write to MH i2c: E2 08 00 B0 16 80 13 00 00 00 00 00 00 42 [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 62 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 62 00 B0 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [10:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:28]wFMCommunicate OK [10:24:28]SAM_PROTO_GetFieldsCounters done [10:24:28]requested_item shift.num is exist - process it [10:24:28]requested_item shift.opened is exist - process it [10:24:28]req_shift_opened [10:24:28]FM_GetShiftState [10:24:28]SAM_PROTO_GetShiftState [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 13 01 00 [10:24:28]Write to MH i2c: E2 08 00 B1 16 80 13 01 00 00 00 00 00 44 [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 0E 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 0E 00 B1 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FB [10:24:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:24:28]wFMCommunicate OK [10:24:28]SAM_PROTO_GetShiftState done [10:24:28]FM_GetShiftState done [10:24:28]req_shift_opened done [10:24:28]requested_item shift.open_date is exist - process it [10:24:28]req_shift_open_date [10:24:28]req_shift_open_date done [10:24:28]produce_requested_data done [10:24:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139237,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:24:28]process_action_free close_receipt [10:24:28]json_value_free [10:24:28]json_value_free done [10:24:28]process_json_proto returns [10:24:28]Send response to host [10:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139237,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:24:28]free response buf [10:24:28]execute_script done [10:24:28]execute_script returns [10:24:28]free content buf [10:24:28]Sock 9.Close socket [10:24:28]Sock 9.Thread stoped [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:40]accept exits with 7 [10:24:40]New connection [10:24:40]New thread 3067202916 created [10:24:40]Thread 3067059556 joined [10:24:40]Waiting for new connection... [10:24:40] Sock 7.Parse request [10:24:40]Sock 7.Check first char [10:24:40]Sock 7.First char is OK [10:24:40]request: POST /json_proto HTTP/1.0 [10:24:40]Method: POST [10:24:40]URL: /json_proto [10:24:40]Method is POST - this is cgi request [10:24:40]url: /json_proto [10:24:40]query_string will be loaded in cgi processing [10:24:40]execute_cgi json_proto POST (null) [10:24:40]execute_cgi path=json_proto method=POST [10:24:40]POST find Content-Length [10:24:40]Host: 172.17.45.67:8080 [10:24:40]Content-Length: 682 [10:24:40]Content-Type: application/json [10:24:40] [10:24:40]POST finish read [10:24:40]Found Content-Length = 682 [10:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:24:40]execute_script... [10:24: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)593077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:24:40]POST & json_proto [10:24:40]process_json_proto [10:24:40]json parsed OK: [10:24:40]protocol is kg_v1.0 [10:24:40]action value=close_receipt [10:24:40]process_action close_receipt [10:24:40]cmd_close_receipt [10:24:40]MH_GetDate [10:24:40]Write to MH i2c: F0 00 00 B2 16 B7 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: F0 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: F0 09 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: F0 09 00 B2 16 00 6B 1D C3 66 5F 7F 2B 66 E0 [10:24:40]GetLastDocTimeStamp 1724063067 [10:24:40]current date 1724063083 [10:24:40]FM_GetShiftState [10:24:40]SAM_PROTO_GetShiftState [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 13 01 00 [10:24:40]Write to MH i2c: E2 08 00 B3 16 80 13 01 00 00 00 00 00 46 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 0E 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 0E 00 B3 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FD [10:24:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:24:40]wFMCommunicate OK [10:24:40]SAM_PROTO_GetShiftState done [10:24:40]FM_GetShiftState done [10:24:40]opened in 1724027888 [10:24:40]opened+sec_in_day 1724114288 [10:24:40]quantity*price = 100005 [10:24:40]sum+1 = 100006 [10:24:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 73 19.08.2024 10:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139238 ФПД: 90167916272389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102443&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139238&fm=90167916272389&tin=02508201610067®Number=0000000000092569&sum=100000 [10:24:41]StoreToDocumentArchive [10:24:41]shift 452 fd 139238 [10:24:41]save to /storage/0452/doc_00139238 [10:24:41]save last doc name /storage/0452/doc_00139238 to /storage/kkm_last_doc_name [10:24:41]save OK [10:24:41]Clear old archive folders... [10:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:41]tlvbuf is 01DC92E0 [10:24:41]SAM_PROTO_ClearQueue [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 09 00 00 [10:24:41]Write to MH i2c: E2 08 00 C0 16 80 09 00 00 00 00 00 00 48 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 C0 16 00 90 00 4A [10:24:41]RAPDU: 90 00 [10:24:41]wFMCommunicate OK [10:24:41]SAM_PROTO_ClearQueue done [10:24:41]KKMCreateOFDPacket [10:24:41]OFDProtocolAddRootSTLVToBuf [10:24:41]FM_MakeSignedData [10:24:41]FM_MakeSignedData [10:24:41]SAM_PROTO_SignData [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 0D 01 02 [10:24:41]Write to MH i2c: E2 08 00 C1 16 80 0D 01 02 00 00 00 00 50 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 C1 16 00 90 00 4B [10:24:41]RAPDU: 90 00 [10:24:41]wFMCommunicate OK [10:24:41]wFMCommunicate request_size=255 [10:24:41]MH_SAM_APDU [10:24: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 6B 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 1F 02 00 35 04 06 00 52 [10:24:41]Write to MH i2c: E2 02 01 C2 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 6B 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 1F 02 00 35 04 06 00 52 00 00 80 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:42]Read from MH i2c: E2 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: E2 03 00 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: E2 03 00 C2 16 00 90 00 4C [10:24:42]RAPDU: 90 00 [10:24:42]wFMCommunicate OK [10:24:42]wFMCommunicate request_size=10 [10:24:42]MH_SAM_APDU [10:24:42]CAPDU: 80 0D 02 02 05 01 DA 9E 9B 05 [10:24:42]Write to MH i2c: E2 0D 00 C3 16 80 0D 02 02 05 00 01 DA 9E 9B 05 00 00 76 [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:42]Read from MH i2c: E2 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: E2 03 00 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: E2 03 00 C3 16 00 90 00 4D [10:24:42]RAPDU: 90 00 [10:24:42]wFMCommunicate OK [10:24:42]wFMCommunicate request_size=4 [10:24:42]MH_SAM_APDU [10:24:42]CAPDU: 80 0D 03 02 [10:24:42]Write to MH i2c: E2 08 00 C4 16 80 0D 03 02 00 00 00 00 55 [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:42]Read from MH i2c: E2 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: E2 0B 00 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: E2 0B 00 C4 16 00 44 C5 19 A7 56 67 9E E3 90 00 5D [10:24:42]RAPDU: 44 C5 19 A7 56 67 9E E3 90 00 [10:24:42]wFMCommunicate OK [10:24:42]SAM_PROTO_SignData done [10:24:42]FM_MakeSignedData done [10:24:42]CreateOFDProtocolMessage [10:24:42]wFMCommunicate request_size=4 [10:24:42]MH_SAM_APDU [10:24:42]CAPDU: 80 11 00 00 [10:24:42]Write to MH i2c: E2 08 00 C5 16 80 11 00 00 00 00 00 00 55 [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:42]Read from MH i2c: E2 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: E2 17 00 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: E2 17 00 C5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [10:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:42]wFMCommunicate OK [10:24:42]CreateOFDProtocolMessage done [10:24:42]OFDSenderStorePacket 139238 [10:24:42]StoreOFDPacket docnum=139238 [10:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7F 71 07 01 38 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 6B 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 1F 02 00 35 04 06 00 52 01 DA 9E 9B 05 44 C5 19 A7 56 67 9E E3 [10:24:42]CheckFolder [10:24:42]dirname=/storage/ofd_packets [10:24:42]CheckFolder done [10:24:42]ProducePacketName [10:24:42]name=ofd_packets/00139238 [10:24:42]NVStorageSaveData ofd_packets/00139238 [10:24:42]File name is /storage/ofd_packets/00139238 [10:24:42]Write 301 bytes [10:24:42]NVStorageSaveData done [10:24:42]OFDSenderStorePacket done [10:24:42]KKMCreateOFDPacket done [10:24:42]NVStorageSaveData kkm_last_timestamp [10:24:42]File name is /storage/kkm_last_timestamp [10:24:42]Write 4 bytes [10:24:42]NVStorageSaveData done [10:24:42]ExternCall_PrintAddStr [10:24:42]wPrintStart [10:24:42]Write to MH i2c: 01 00 00 C6 16 DC [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: 01 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: 01 07 00 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: 01 07 00 C6 16 00 00 00 00 00 FF 0F F1 [10:24:42]RasterBufferAndPrint [10:24:42]line Счет N : (1)593077 [10:24:42]line ИНН: 02508201610067 [10:24:42]line Контрольно-Кассовый Чек [10:24:42]line ПРОДАЖА [10:24:42]line ТРК (МРК, ГНК) : 62 [10:24:42]line Товар: 2710124130 [10:24:42]line Аи-92-К-5 [10:24:42]line 14.750 * 67.80 [10:24:42]line = 1000.05 [10:24:42]line НДС 12% НСП 1% [10:24:42]line > о реализуемом товаре [10:24:42]line ОКРУГЛЕНИЕ: -0.05 [10:24:42]line ИТОГО: 1000.00 [10:24:42]line Внесено: 1000.00 [10:24:42]line СДАЧА: 0.00 [10:24:42]line НСП 1% : 8.85 [10:24:42]line НДС 12% : 106.20 [10:24:42]line Наличными: 1000.00 [10:24:42]line Безнал.: 0.00 [10:24:42]line Место: АЗС № 136 "Партнер Нефть" [10:24:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:24:42]line СНО: Общий режим [10:24:42]line Чек 73 19.08.2024 10:24 [10:24:42]line Смена: 452 ФФД: 1.0 [10:24:42]line ЗНМ: 0300000067 [10:24:42]line РНМ: 0000000000092569 [10:24:42]line Версия ККМ: 001 [10:24:42]line ФМ: 0000000000871776 [10:24:42]line ФД: 139238 [10:24:42]line ФПД: 90167916272389 [10:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102443&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139238&fm=90167916272389&tin=02508201610067®Number=0000000000092569&sum=100000 [10:24:42]written 0, free lines is 4095 [10:24:42]OFD Sender: Processing packet 139238 [packets to send 137, broken 136] [10:24:42]ProducePacketName [10:24:42]name=ofd_packets/00139238 [10:24:42]OFD Sender: To server: pG, [10:24:42]CommunicateWithHost lk.salyk.kg:30040 [10:24:42]ConnectInit lk.salyk.kg [10:24:42]Connected sock=10 [10:24: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 37 36 0F 01 00 00 7F 71 07 01 38 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 6B 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 1F 02 00 35 04 06 00 52 01 DA 9E 9B 05 44 C5 19 A7 56 67 9E E3 [10:24: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 37 36 4F 00 00 00 6C FE 47 00 CB 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 37 36 10 04 04 00 E6 1F 02 00 F4 03 04 00 01 C4 C2 66 B6 04 01 00 00 86 AB BA 76 8C 0C C0 29 [10:24:43]CommunicateWithHost err = 0 [10:24:43]CheckOFDResponse [10:24:43]1017 (14) - 77093643461234 [10:24:43]1041 (16) - 0000000000871776 [10:24:43]1040 (4) - 139238 [10:24:43]1012 (4) - 19.08.2024 04:03 [10:24:43]1206 (1) - 0 [10:24:43]OFD Sender: Remove packet 139238 [10:24:43]ProducePacketName [10:24:43]name=ofd_packets/00139238 [10:24:43]NVStorageDeleteData [10:24:43]Write to MH i2c: 01 00 00 F1 16 07 [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: 01 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: 01 07 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: 01 07 00 F1 16 00 00 00 00 00 C5 0C DF [10:24:43]RasterBufferAndPrint [10:24:43]line [10:24:43]line [10:24:43]line [10:24:43]line [10:24:43]line [10:24:43]written 0, free lines is 3275 [10:24:43]MH_Cut [10:24:43]Write to MH i2c: D1 01 00 F8 16 01 E0 [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: D1 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: D1 01 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: D1 01 00 F8 16 00 DF [10:24:43]Write to MH i2c: 01 00 00 F9 16 0F [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:43]OFD Sender: No OFD packet to send [10:24:43]*** Cut start [10:24:43]*** Partial cut [10:24:43]*** CUTSNS_PIN = 1 [10:24:43]*** CUTSNS_PIN = 0 [10:24:44]*** Brake cut motor [10:24:44]Read from MH i2c: 01 [10:24:44]MH_I2C_Read... [10:24:44]*** Stop cut motor [10:24:44]*** Cut end [10:24:44]Read from MH i2c: 01 07 00 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: 01 07 00 F9 16 00 00 00 00 00 FF 0F 24 [10:24:44]process_action close_receipt done [10:24:44]requested_data is exist [10:24:44]produce_requested_data [10:24:44]requested_item fm.sn is exist - process it [10:24:44]wFMCommunicate request_size=4 [10:24:44]MH_SAM_APDU [10:24:44]CAPDU: 80 11 00 00 [10:24:44]Write to MH i2c: E2 08 00 FA 16 80 11 00 00 00 00 00 00 8A [10:24:44]Write i2c OK [10:24:44]MH_I2C_Read... [10:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:44]Read from MH i2c: E2 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 17 00 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 17 00 FA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [10:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:44]wFMCommunicate OK [10:24:44]requested_item fd.num is exist - process it [10:24:44]SAM_PROTO_GetFieldsCounters [10:24:44]wFMCommunicate request_size=4 [10:24:44]MH_SAM_APDU [10:24:44]CAPDU: 80 13 00 00 [10:24:44]Write to MH i2c: E2 08 00 FB 16 80 13 00 00 00 00 00 00 8D [10:24:44]Write i2c OK [10:24:44]MH_I2C_Read... [10:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:44]Read from MH i2c: E2 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 62 00 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 62 00 FB 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [10:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:44]wFMCommunicate OK [10:24:44]SAM_PROTO_GetFieldsCounters done [10:24:44]requested_item shift.num is exist - process it [10:24:44]requested_item shift.opened is exist - process it [10:24:44]req_shift_opened [10:24:44]FM_GetShiftState [10:24:44]SAM_PROTO_GetShiftState [10:24:44]wFMCommunicate request_size=4 [10:24:44]MH_SAM_APDU [10:24:44]CAPDU: 80 13 01 00 [10:24:44]Write to MH i2c: E2 08 00 FC 16 80 13 01 00 00 00 00 00 8F [10:24:44]Write i2c OK [10:24:44]MH_I2C_Read... [10:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:44]Read from MH i2c: E2 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 0E 00 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 0E 00 FC 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 46 [10:24:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:24:44]wFMCommunicate OK [10:24:44]SAM_PROTO_GetShiftState done [10:24:44]FM_GetShiftState done [10:24:44]req_shift_opened done [10:24:44]requested_item shift.open_date is exist - process it [10:24:44]req_shift_open_date [10:24:44]req_shift_open_date done [10:24:44]produce_requested_data done [10:24:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139238,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:24:44]process_action_free close_receipt [10:24:44]json_value_free [10:24:44]json_value_free done [10:24:44]process_json_proto returns [10:24:44]Send response to host [10:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139238,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:24:44]free response buf [10:24:44]execute_script done [10:24:44]execute_script returns [10:24:44]free content buf [10:24:44]Sock 7.Close socket [10:24:44]Sock 7.Thread stoped [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:36]accept exits with 9 [10:25:36]New connection [10:25:36]New thread 3067059556 created [10:25:36]Thread 3067202916 joined [10:25:36]Waiting for new connection... [10:25:36] Sock 9.Parse request [10:25:36]Sock 9.Check first char [10:25:36]Sock 9.First char is OK [10:25:36]request: POST /json_proto HTTP/1.0 [10:25:36]Method: POST [10:25:36]URL: /json_proto [10:25:36]Method is POST - this is cgi request [10:25:36]url: /json_proto [10:25:36]query_string will be loaded in cgi processing [10:25:36]execute_cgi json_proto POST (null) [10:25:36]execute_cgi path=json_proto method=POST [10:25:36]POST find Content-Length [10:25:36]Host: 172.17.45.67:8080 [10:25:36]Content-Length: 677 [10:25:36]Content-Type: application/json [10:25:36] [10:25:36]POST finish read [10:25:36]Found Content-Length = 677 [10:25:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:25:36]execute_script... [10:25: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)593079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:25:36]POST & json_proto [10:25:36]process_json_proto [10:25:36]json parsed OK: [10:25:36]protocol is kg_v1.0 [10:25:36]action value=close_receipt [10:25:36]process_action close_receipt [10:25:36]cmd_close_receipt [10:25:36]MH_GetDate [10:25:36]Write to MH i2c: F0 00 00 FD 16 02 [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: F0 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: F0 09 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: F0 09 00 FD 16 00 A3 1D C3 66 5F 7F 2B 66 63 [10:25:36]GetLastDocTimeStamp 1724063083 [10:25:36]current date 1724063139 [10:25:36]FM_GetShiftState [10:25:36]SAM_PROTO_GetShiftState [10:25:36]wFMCommunicate request_size=4 [10:25:36]MH_SAM_APDU [10:25:36]CAPDU: 80 13 01 00 [10:25:36]Write to MH i2c: E2 08 00 FE 16 80 13 01 00 00 00 00 00 91 [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:36]Read from MH i2c: E2 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 0E 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 0E 00 FE 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 48 [10:25:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:25:36]wFMCommunicate OK [10:25:36]SAM_PROTO_GetShiftState done [10:25:36]FM_GetShiftState done [10:25:36]opened in 1724027888 [10:25:36]opened+sec_in_day 1724114288 [10:25:36]quantity*price = 50036 [10:25:36]sum+1 = 50037 [10:25:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 74 19.08.2024 10:25 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139239 ФПД: 8183770921395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102539&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139239&fm=8183770921395&tin=02508201610067®Number=0000000000092569&sum=50000 [10:25:37]StoreToDocumentArchive [10:25:37]shift 452 fd 139239 [10:25:37]save to /storage/0452/doc_00139239 [10:25:37]save last doc name /storage/0452/doc_00139239 to /storage/kkm_last_doc_name [10:25:37]save OK [10:25:37]Clear old archive folders... [10:25:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:37]tlvbuf is 01DBE0C0 [10:25:37]SAM_PROTO_ClearQueue [10:25:37]wFMCommunicate request_size=4 [10:25:37]MH_SAM_APDU [10:25:37]CAPDU: 80 09 00 00 [10:25:37]Write to MH i2c: E2 08 00 0B 17 80 09 00 00 00 00 00 00 94 [10:25:37]Write i2c OK [10:25:37]MH_I2C_Read... [10:25:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:37]Read from MH i2c: E2 [10:25:37]MH_I2C_Read... [10:25:37]Read from MH i2c: E2 03 00 [10:25:37]MH_I2C_Read... [10:25:37]Read from MH i2c: E2 03 00 0B 17 00 90 00 96 [10:25:37]RAPDU: 90 00 [10:25:37]wFMCommunicate OK [10:25:37]SAM_PROTO_ClearQueue done [10:25:37]KKMCreateOFDPacket [10:25:37]OFDProtocolAddRootSTLVToBuf [10:25:37]FM_MakeSignedData [10:25:37]FM_MakeSignedData [10:25:37]SAM_PROTO_SignData [10:25:37]wFMCommunicate request_size=4 [10:25:37]MH_SAM_APDU [10:25:37]CAPDU: 80 0D 01 02 [10:25:37]Write to MH i2c: E2 08 00 0C 17 80 0D 01 02 00 00 00 00 9C [10:25:37]Write i2c OK [10:25:37]MH_I2C_Read... [10:25:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:37]Read from MH i2c: E2 [10:25:37]MH_I2C_Read... [10:25:37]Read from MH i2c: E2 03 00 [10:25:37]MH_I2C_Read... [10:25:37]Read from MH i2c: E2 03 00 0C 17 00 90 00 97 [10:25:37]RAPDU: 90 00 [10:25:37]wFMCommunicate OK [10:25:37]wFMCommunicate request_size=255 [10:25:37]MH_SAM_APDU [10:25:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 4A 00 00 00 F4 03 04 00 A3 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 1F 02 00 35 04 06 00 07 [10:25:38]Write to MH i2c: E2 02 01 0D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 4A 00 00 00 F4 03 04 00 A3 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 1F 02 00 35 04 06 00 07 00 00 2C [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 03 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 03 00 0D 17 00 90 00 98 [10:25:38]RAPDU: 90 00 [10:25:38]wFMCommunicate OK [10:25:38]wFMCommunicate request_size=10 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 0D 02 02 05 71 6E C2 39 B3 [10:25:38]Write to MH i2c: E2 0D 00 0E 17 80 0D 02 02 05 00 71 6E C2 39 B3 00 00 36 [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 03 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 03 00 0E 17 00 90 00 99 [10:25:38]RAPDU: 90 00 [10:25:38]wFMCommunicate OK [10:25:38]wFMCommunicate request_size=4 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 0D 03 02 [10:25:38]Write to MH i2c: E2 08 00 0F 17 80 0D 03 02 00 00 00 00 A1 [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 0B 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 0B 00 0F 17 00 2C 41 6D EA BA 72 F7 EE 90 00 77 [10:25:38]RAPDU: 2C 41 6D EA BA 72 F7 EE 90 00 [10:25:38]wFMCommunicate OK [10:25:38]SAM_PROTO_SignData done [10:25:38]FM_MakeSignedData done [10:25:38]CreateOFDProtocolMessage [10:25:38]wFMCommunicate request_size=4 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 11 00 00 [10:25:38]Write to MH i2c: E2 08 00 10 17 80 11 00 00 00 00 00 00 A1 [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 17 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 17 00 10 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F8 [10:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:25:38]wFMCommunicate OK [10:25:38]CreateOFDProtocolMessage done [10:25:38]OFDSenderStorePacket 139239 [10:25:38]StoreOFDPacket docnum=139239 [10:25:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CF 46 07 01 BF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 4A 00 00 00 F4 03 04 00 A3 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 1F 02 00 35 04 06 00 07 71 6E C2 39 B3 2C 41 6D EA BA 72 F7 EE [10:25:38]CheckFolder [10:25:38]dirname=/storage/ofd_packets [10:25:38]CheckFolder done [10:25:38]ProducePacketName [10:25:38]name=ofd_packets/00139239 [10:25:38]NVStorageSaveData ofd_packets/00139239 [10:25:38]File name is /storage/ofd_packets/00139239 [10:25:38]Write 301 bytes [10:25:38]NVStorageSaveData done [10:25:38]OFDSenderStorePacket done [10:25:38]KKMCreateOFDPacket done [10:25:38]NVStorageSaveData kkm_last_timestamp [10:25:38]File name is /storage/kkm_last_timestamp [10:25:38]Write 4 bytes [10:25:38]NVStorageSaveData done [10:25:38]ExternCall_PrintAddStr [10:25:38]wPrintStart [10:25:38]Write to MH i2c: 01 00 00 11 17 28 [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: 01 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: 01 07 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: 01 07 00 11 17 00 00 00 00 00 FF 0F 3D [10:25:38]RasterBufferAndPrint [10:25:38]line Счет N : (1)593079 [10:25:38]line ИНН: 02508201610067 [10:25:38]line Контрольно-Кассовый Чек [10:25:38]line ПРОДАЖА [10:25:38]line ТРК (МРК, ГНК) : 52 [10:25:38]line Товар: 2710124130 [10:25:38]line Аи-92-К-5 [10:25:38]line 7.380 * 67.80 [10:25:38]line = 500.36 [10:25:38]line НДС 12% НСП 1% [10:25:38]line > о реализуемом товаре [10:25:38]line ОКРУГЛЕНИЕ: -0.36 [10:25:38]line ИТОГО: 500.00 [10:25:38]line Внесено: 500.00 [10:25:38]line СДАЧА: 0.00 [10:25:38]line НСП 1% : 4.43 [10:25:38]line НДС 12% : 53.14 [10:25:38]line Наличными: 500.00 [10:25:38]line Безнал.: 0.00 [10:25:38]line Место: АЗС № 136 "Партнер Нефть" [10:25:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:25:38]line СНО: Общий режим [10:25:38]line Чек 74 19.08.2024 10:25 [10:25:38]line Смена: 452 ФФД: 1.0 [10:25:38]line ЗНМ: 0300000067 [10:25:38]line РНМ: 0000000000092569 [10:25:38]line Версия ККМ: 001 [10:25:38]line ФМ: 0000000000871776 [10:25:38]line ФД: 139239 [10:25:38]line ФПД: 8183770921395 [10:25:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102539&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139239&fm=8183770921395&tin=02508201610067®Number=0000000000092569&sum=50000 [10:25:38]OFD Sender: Processing packet 139239 [packets to send 137, broken 136] [10:25:38]ProducePacketName [10:25:38]name=ofd_packets/00139239 [10:25:38]OFD Sender: To server: pG, [10:25:38]CommunicateWithHost lk.salyk.kg:30040 [10:25:38]ConnectInit lk.salyk.kg [10:25:38]written 0, free lines is 4095 [10:25:38]Connected sock=10 [10:25: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 37 36 0F 01 00 00 CF 46 07 01 BF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 4A 00 00 00 F4 03 04 00 A3 1D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 1F 02 00 35 04 06 00 07 71 6E C2 39 B3 2C 41 6D EA BA 72 F7 EE [10:25: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 37 36 4F 00 00 00 E0 78 47 00 DE 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 37 36 10 04 04 00 E7 1F 02 00 F4 03 04 00 39 C4 C2 66 B6 04 01 00 00 02 4C 19 73 16 D1 C7 29 [10:25:39]CommunicateWithHost err = 0 [10:25:39]CheckOFDResponse [10:25:39]1017 (14) - 77093643461234 [10:25:39]1041 (16) - 0000000000871776 [10:25:39]1040 (4) - 139239 [10:25:39]1012 (4) - 19.08.2024 04:04 [10:25:39]1206 (1) - 0 [10:25:39]OFD Sender: Remove packet 139239 [10:25:39]ProducePacketName [10:25:39]name=ofd_packets/00139239 [10:25:39]NVStorageDeleteData [10:25:39]Write to MH i2c: 01 00 00 3C 17 53 [10:25:39]Write i2c OK [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: 01 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: 01 07 00 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: 01 07 00 3C 17 00 00 00 00 00 D2 0C 38 [10:25:39]RasterBufferAndPrint [10:25:39]line [10:25:39]line [10:25:39]line [10:25:39]line [10:25:39]line [10:25:39]written 0, free lines is 3289 [10:25:39]MH_Cut [10:25:39]Write to MH i2c: D1 01 00 43 17 01 2C [10:25:39]Write i2c OK [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: D1 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: D1 01 00 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: D1 01 00 43 17 00 2B [10:25:39]Write to MH i2c: 01 00 00 44 17 5B [10:25:39]Write i2c OK [10:25:39]MH_I2C_Read... [10:25:39]OFD Sender: No OFD packet to send [10:25:39]*** Cut start [10:25:39]*** Partial cut [10:25:39]*** CUTSNS_PIN = 1 [10:25:40]*** CUTSNS_PIN = 0 [10:25:40]*** Brake cut motor [10:25:40]Read from MH i2c: 01 [10:25:40]MH_I2C_Read... [10:25:40]*** Stop cut motor [10:25:40]*** Cut end [10:25:40]Read from MH i2c: 01 07 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: 01 07 00 44 17 00 00 00 00 00 FF 0F 70 [10:25:40]process_action close_receipt done [10:25:40]requested_data is exist [10:25:40]produce_requested_data [10:25:40]requested_item fm.sn is exist - process it [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 11 00 00 [10:25:40]Write to MH i2c: E2 08 00 45 17 80 11 00 00 00 00 00 00 D6 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 17 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 17 00 45 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2D [10:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:25:40]wFMCommunicate OK [10:25:40]requested_item fd.num is exist - process it [10:25:40]SAM_PROTO_GetFieldsCounters [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 13 00 00 [10:25:40]Write to MH i2c: E2 08 00 46 17 80 13 00 00 00 00 00 00 D9 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 62 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 62 00 46 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [10:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:40]wFMCommunicate OK [10:25:40]SAM_PROTO_GetFieldsCounters done [10:25:40]requested_item shift.num is exist - process it [10:25:40]requested_item shift.opened is exist - process it [10:25:40]req_shift_opened [10:25:40]FM_GetShiftState [10:25:40]SAM_PROTO_GetShiftState [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 13 01 00 [10:25:40]Write to MH i2c: E2 08 00 47 17 80 13 01 00 00 00 00 00 DB [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0E 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0E 00 47 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 92 [10:25:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:25:40]wFMCommunicate OK [10:25:40]SAM_PROTO_GetShiftState done [10:25:40]FM_GetShiftState done [10:25:40]req_shift_opened done [10:25:40]requested_item shift.open_date is exist - process it [10:25:40]req_shift_open_date [10:25:40]req_shift_open_date done [10:25:40]produce_requested_data done [10:25:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139239,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:25:40]process_action_free close_receipt [10:25:40]json_value_free [10:25:40]json_value_free done [10:25:40]process_json_proto returns [10:25:40]Send response to host [10:25:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139239,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:25:40]free response buf [10:25:40]execute_script done [10:25:40]execute_script returns [10:25:40]free content buf [10:25:40]Sock 9.Close socket [10:25:40]Sock 9.Thread stoped [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]accept exits with 7 [10:28:49]New connection [10:28:49]New thread 3067202916 created [10:28:49]Thread 3067059556 joined [10:28:49]Waiting for new connection... [10:28:49] Sock 7.Parse request [10:28:49]Sock 7.Check first char [10:28:49]Sock 7.First char is OK [10:28:49]request: POST /json_proto HTTP/1.0 [10:28:49]Method: POST [10:28:49]URL: /json_proto [10:28:49]Method is POST - this is cgi request [10:28:49]url: /json_proto [10:28:49]query_string will be loaded in cgi processing [10:28:49]execute_cgi json_proto POST (null) [10:28:49]execute_cgi path=json_proto method=POST [10:28:49]POST find Content-Length [10:28:49]Host: 172.17.45.67:8080 [10:28:49]Content-Length: 834 [10:28:49]Content-Type: application/json [10:28:49] [10:28:49]POST finish read [10:28:49]Found Content-Length = 834 [10:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:49]execute_script... [10: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)593081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:49]POST & json_proto [10:28:49]process_json_proto [10:28:49]json parsed OK: [10:28:49]protocol is kg_v1.0 [10:28:49]action value=close_receipt [10:28:49]process_action close_receipt [10:28:49]cmd_close_receipt [10:28:49]MH_GetDate [10:28:49]Write to MH i2c: F0 00 00 48 17 4E [10:28:49]Write i2c OK [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: F0 [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: F0 09 00 [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: F0 09 00 48 17 00 63 1E C3 66 5F 7F 2B 66 70 [10:28:49]GetLastDocTimeStamp 1724063139 [10:28:49]current date 1724063331 [10:28:49]FM_GetShiftState [10:28:49]SAM_PROTO_GetShiftState [10:28:49]wFMCommunicate request_size=4 [10:28:49]MH_SAM_APDU [10:28:49]CAPDU: 80 13 01 00 [10:28:49]Write to MH i2c: E2 08 00 49 17 80 13 01 00 00 00 00 00 DD [10:28:49]Write i2c OK [10:28:49]MH_I2C_Read... [10:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:49]Read from MH i2c: E2 [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: E2 0E 00 [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: E2 0E 00 49 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 94 [10:28:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:28:49]wFMCommunicate OK [10:28:49]SAM_PROTO_GetShiftState done [10:28:49]FM_GetShiftState done [10:28:49]opened in 1724027888 [10:28:49]opened+sec_in_day 1724114288 [10:28:49]quantity*price = 40002 [10:28:49]sum+1 = 40003 [10:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 75 19.08.2024 10:28 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139240 ФПД: 104652083050194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102851&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139240&fm=104652083050194&tin=02508201610067®Number=0000000000092569&sum=40000 [10:28:50]StoreToDocumentArchive [10:28:50]shift 452 fd 139240 [10:28:50]save to /storage/0452/doc_00139240 [10:28:50]save last doc name /storage/0452/doc_00139240 to /storage/kkm_last_doc_name [10:28:50]save OK [10:28:50]Clear old archive folders... [10:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:50]tlvbuf is 01DBE0F0 [10:28:50]SAM_PROTO_ClearQueue [10:28:50]wFMCommunicate request_size=4 [10:28:50]MH_SAM_APDU [10:28:50]CAPDU: 80 09 00 00 [10:28:50]Write to MH i2c: E2 08 00 56 17 80 09 00 00 00 00 00 00 DF [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:50]Read from MH i2c: E2 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 03 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 03 00 56 17 00 90 00 E1 [10:28:50]RAPDU: 90 00 [10:28:50]wFMCommunicate OK [10:28:50]SAM_PROTO_ClearQueue done [10:28:50]KKMCreateOFDPacket [10:28:50]OFDProtocolAddRootSTLVToBuf [10:28:50]FM_MakeSignedData [10:28:50]FM_MakeSignedData [10:28:50]SAM_PROTO_SignData [10:28:50]wFMCommunicate request_size=4 [10:28:50]MH_SAM_APDU [10:28:50]CAPDU: 80 0D 01 02 [10:28:50]Write to MH i2c: E2 08 00 57 17 80 0D 01 02 00 00 00 00 E7 [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:50]Read from MH i2c: E2 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 03 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 03 00 57 17 00 90 00 E2 [10:28:50]RAPDU: 90 00 [10:28:50]wFMCommunicate OK [10:28:50]wFMCommunicate request_size=255 [10:28:50]MH_SAM_APDU [10:28:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 63 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 1F 02 00 35 04 06 00 5F [10:28:50]Write to MH i2c: E2 02 01 58 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 63 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 1F 02 00 35 04 06 00 5F 00 00 77 [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:50]Read from MH i2c: E2 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 03 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 03 00 58 17 00 90 00 E3 [10:28:50]RAPDU: 90 00 [10:28:50]wFMCommunicate OK [10:28:50]wFMCommunicate request_size=10 [10:28:50]MH_SAM_APDU [10:28:50]CAPDU: 80 0D 02 02 05 2E 36 3C 36 D2 [10:28:50]Write to MH i2c: E2 0D 00 59 17 80 0D 02 02 05 00 2E 36 3C 36 D2 00 00 9C [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:50]Read from MH i2c: E2 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 03 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 03 00 59 17 00 90 00 E4 [10:28:50]RAPDU: 90 00 [10:28:50]wFMCommunicate OK [10:28:50]wFMCommunicate request_size=4 [10:28:50]MH_SAM_APDU [10:28:50]CAPDU: 80 0D 03 02 [10:28:50]Write to MH i2c: E2 08 00 5A 17 80 0D 03 02 00 00 00 00 EC [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:50]Read from MH i2c: E2 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 0B 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 0B 00 5A 17 00 D5 A5 CD 03 DC D7 6E EC 90 00 44 [10:28:50]RAPDU: D5 A5 CD 03 DC D7 6E EC 90 00 [10:28:50]wFMCommunicate OK [10:28:50]SAM_PROTO_SignData done [10:28:50]FM_MakeSignedData done [10:28:50]CreateOFDProtocolMessage [10:28:50]wFMCommunicate request_size=4 [10:28:50]MH_SAM_APDU [10:28:50]CAPDU: 80 11 00 00 [10:28:50]Write to MH i2c: E2 08 00 5B 17 80 11 00 00 00 00 00 00 EC [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:50]Read from MH i2c: E2 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 17 00 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: E2 17 00 5B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [10:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:28:50]wFMCommunicate OK [10:28:50]CreateOFDProtocolMessage done [10:28:50]OFDSenderStorePacket 139240 [10:28:50]StoreOFDPacket docnum=139240 [10:28:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E9 5A 07 01 3E 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 63 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 1F 02 00 35 04 06 00 5F 2E 36 3C 36 D2 D5 A5 CD 03 DC D7 6E EC [10:28:50]CheckFolder [10:28:50]dirname=/storage/ofd_packets [10:28:50]CheckFolder done [10:28:50]ProducePacketName [10:28:50]name=ofd_packets/00139240 [10:28:50]NVStorageSaveData ofd_packets/00139240 [10:28:50]File name is /storage/ofd_packets/00139240 [10:28:50]Write 301 bytes [10:28:50]NVStorageSaveData done [10:28:50]OFDSenderStorePacket done [10:28:50]KKMCreateOFDPacket done [10:28:50]NVStorageSaveData kkm_last_timestamp [10:28:50]File name is /storage/kkm_last_timestamp [10:28:50]Write 4 bytes [10:28:50]NVStorageSaveData done [10:28:50]ExternCall_PrintAddStr [10:28:50]wPrintStart [10:28:50]Write to MH i2c: 01 00 00 5C 17 73 [10:28:50]Write i2c OK [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: 01 [10:28:50]MH_I2C_Read... [10:28:50]Read from MH i2c: 01 07 00 [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: 01 07 00 5C 17 00 00 00 00 00 FF 0F 88 [10:28:51]RasterBufferAndPrint [10:28:51]line Счет N : (1)593081 [10:28:51]line ИНН: 02508201610067 [10:28:51]line Контрольно-Кассовый Чек [10:28:51]line ПРОДАЖА [10:28:51]line ТРК (МРК, ГНК) : 42 [10:28:51]line Товар: 2710124130 [10:28:51]line Аи-92-К-5 [10:28:51]line 5.900 * 67.80 [10:28:51]line = 400.02 [10:28:51]line НДС 12% НСП 1% [10:28:51]line > о реализуемом товаре [10:28:51]line ОКРУГЛЕНИЕ: -0.02 [10:28:51]line ИТОГО: 400.00 [10:28:51]line НСП 1% : 3.54 [10:28:51]line НДС 12% : 42.48 [10:28:51]line Наличными: 0.00 [10:28:51]line Безнал.: 400.00 [10:28:51]line Место: АЗС № 136 "Партнер Нефть" [10:28:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:28:51]line СНО: Общий режим [10:28:51]line Чек 75 19.08.2024 10:28 [10:28:51]line Смена: 452 ФФД: 1.0 [10:28:51]line ЗНМ: 0300000067 [10:28:51]line РНМ: 0000000000092569 [10:28:51]line Версия ККМ: 001 [10:28:51]line Платежная система: Бакай Банк [10:28:51]line ФМ: 0000000000871776 [10:28:51]line ФД: 139240 [10:28:51]line ФПД: 104652083050194 [10:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102851&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139240&fm=104652083050194&tin=02508201610067®Number=0000000000092569&sum=40000 [10:28:51]written 0, free lines is 4095 [10:28:51]OFD Sender: Processing packet 139240 [packets to send 137, broken 136] [10:28:51]ProducePacketName [10:28:51]name=ofd_packets/00139240 [10:28:51]OFD Sender: To server: pG, [10:28:51]CommunicateWithHost lk.salyk.kg:30040 [10:28:51]ConnectInit lk.salyk.kg [10:28:51]Connected sock=10 [10:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E9 5A 07 01 3E 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 63 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 1F 02 00 35 04 06 00 5F 2E 36 3C 36 D2 D5 A5 CD 03 DC D7 6E EC [10:28: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 37 36 4F 00 00 00 3D 72 47 00 15 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 1F 02 00 F4 03 04 00 F9 C4 C2 66 B6 04 01 00 00 02 B8 6C 0C 00 52 D4 83 [10:28:51]CommunicateWithHost err = 0 [10:28:51]CheckOFDResponse [10:28:51]1017 (14) - 77093643461234 [10:28:51]1041 (16) - 0000000000871776 [10:28:51]1040 (4) - 139240 [10:28:51]1012 (4) - 19.08.2024 04:07 [10:28:51]1206 (1) - 0 [10:28:51]OFD Sender: Remove packet 139240 [10:28:51]ProducePacketName [10:28:51]name=ofd_packets/00139240 [10:28:51]NVStorageDeleteData [10:28:51]Write to MH i2c: 01 00 00 87 17 9E [10:28:51]Write i2c OK [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: 01 [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: 01 07 00 [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: 01 07 00 87 17 00 00 00 00 00 C8 0C 79 [10:28:51]RasterBufferAndPrint [10:28:51]line [10:28:51]line [10:28:51]line [10:28:51]line [10:28:51]line [10:28:51]written 0, free lines is 3279 [10:28:51]MH_Cut [10:28:51]Write to MH i2c: D1 01 00 8E 17 01 77 [10:28:51]Write i2c OK [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: D1 [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: D1 01 00 [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: D1 01 00 8E 17 00 76 [10:28:51]Write to MH i2c: 01 00 00 8F 17 A6 [10:28:51]Write i2c OK [10:28:51]MH_I2C_Read... [10:28:52]OFD Sender: No OFD packet to send [10:28:52]*** Cut start [10:28:52]*** Partial cut [10:28:52]*** CUTSNS_PIN = 1 [10:28:52]*** CUTSNS_PIN = 0 [10:28:52]*** Brake cut motor [10:28:53]Read from MH i2c: 01 [10:28:53]MH_I2C_Read... [10:28:53]*** Stop cut motor [10:28:53]*** Cut end [10:28:53]Read from MH i2c: 01 07 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: 01 07 00 8F 17 00 00 00 00 00 FF 0F BB [10:28:53]process_action close_receipt done [10:28:53]requested_data is exist [10:28:53]produce_requested_data [10:28:53]requested_item fm.sn is exist - process it [10:28:53]wFMCommunicate request_size=4 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 11 00 00 [10:28:53]Write to MH i2c: E2 08 00 90 17 80 11 00 00 00 00 00 00 21 [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 17 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 17 00 90 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 78 [10:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:28:53]wFMCommunicate OK [10:28:53]requested_item fd.num is exist - process it [10:28:53]SAM_PROTO_GetFieldsCounters [10:28:53]wFMCommunicate request_size=4 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 13 00 00 [10:28:53]Write to MH i2c: E2 08 00 91 17 80 13 00 00 00 00 00 00 24 [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 62 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 62 00 91 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [10:28:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:53]wFMCommunicate OK [10:28:53]SAM_PROTO_GetFieldsCounters done [10:28:53]requested_item shift.num is exist - process it [10:28:53]requested_item shift.opened is exist - process it [10:28:53]req_shift_opened [10:28:53]FM_GetShiftState [10:28:53]SAM_PROTO_GetShiftState [10:28:53]wFMCommunicate request_size=4 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 13 01 00 [10:28:53]Write to MH i2c: E2 08 00 92 17 80 13 01 00 00 00 00 00 26 [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 0E 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 0E 00 92 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DD [10:28:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:28:53]wFMCommunicate OK [10:28:53]SAM_PROTO_GetShiftState done [10:28:53]FM_GetShiftState done [10:28:53]req_shift_opened done [10:28:53]requested_item shift.open_date is exist - process it [10:28:53]req_shift_open_date [10:28:53]req_shift_open_date done [10:28:53]produce_requested_data done [10:28:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139240,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:28:53]process_action_free close_receipt [10:28:53]json_value_free [10:28:53]json_value_free done [10:28:53]process_json_proto returns [10:28:53]Send response to host [10:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139240,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:28:53]free response buf [10:28:53]execute_script done [10:28:53]execute_script returns [10:28:53]free content buf [10:28:53]Sock 7.Close socket [10:28:53]Sock 7.Thread stoped [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:08]accept exits with 9 [10:29:08]New connection [10:29:08]New thread 3067059556 created [10:29:08]Thread 3067202916 joined [10:29:08]Waiting for new connection... [10:29:08] Sock 9.Parse request [10:29:08]Sock 9.Check first char [10:29:08]Sock 9.First char is OK [10:29:08]request: POST /json_proto HTTP/1.0 [10:29:08]Method: POST [10:29:08]URL: /json_proto [10:29:08]Method is POST - this is cgi request [10:29:08]url: /json_proto [10:29:08]query_string will be loaded in cgi processing [10:29:08]execute_cgi json_proto POST (null) [10:29:08]execute_cgi path=json_proto method=POST [10:29:08]POST find Content-Length [10:29:08]Host: 172.17.45.67:8080 [10:29:08]Content-Length: 678 [10:29:08]Content-Type: application/json [10:29:08] [10:29:08]POST finish read [10:29:08]Found Content-Length = 678 [10:29:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:29:08]execute_script... [10:29: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)593080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:29:08]POST & json_proto [10:29:08]process_json_proto [10:29:08]json parsed OK: [10:29:08]protocol is kg_v1.0 [10:29:08]action value=close_receipt [10:29:08]process_action close_receipt [10:29:08]cmd_close_receipt [10:29:08]MH_GetDate [10:29:08]Write to MH i2c: F0 00 00 93 17 99 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: F0 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: F0 09 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: F0 09 00 93 17 00 77 1E C3 66 5F 7F 2B 66 CF [10:29:08]GetLastDocTimeStamp 1724063331 [10:29:08]current date 1724063351 [10:29:08]FM_GetShiftState [10:29:08]SAM_PROTO_GetShiftState [10:29:08]wFMCommunicate request_size=4 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 13 01 00 [10:29:08]Write to MH i2c: E2 08 00 94 17 80 13 01 00 00 00 00 00 28 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 0E 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 0E 00 94 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DF [10:29:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:29:08]wFMCommunicate OK [10:29:08]SAM_PROTO_GetShiftState done [10:29:08]FM_GetShiftState done [10:29:08]opened in 1724027888 [10:29:08]opened+sec_in_day 1724114288 [10:29:08]quantity*price = 70037 [10:29:08]sum+1 = 70038 [10:29:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 76 19.08.2024 10:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139241 ФПД: 208503692915960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102911&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139241&fm=208503692915960&tin=02508201610067®Number=0000000000092569&sum=70000 [10:29:09]StoreToDocumentArchive [10:29:09]shift 452 fd 139241 [10:29:09]save to /storage/0452/doc_00139241 [10:29:09]save last doc name /storage/0452/doc_00139241 to /storage/kkm_last_doc_name [10:29:09]save OK [10:29:09]Clear old archive folders... [10:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:09]tlvbuf is 01D850A0 [10:29:09]SAM_PROTO_ClearQueue [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 09 00 00 [10:29:09]Write to MH i2c: E2 08 00 A1 17 80 09 00 00 00 00 00 00 2A [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 A1 17 00 90 00 2C [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_ClearQueue done [10:29:10]KKMCreateOFDPacket [10:29:10]OFDProtocolAddRootSTLVToBuf [10:29:10]FM_MakeSignedData [10:29:10]FM_MakeSignedData [10:29:10]SAM_PROTO_SignData [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 01 02 [10:29:10]Write to MH i2c: E2 08 00 A2 17 80 0D 01 02 00 00 00 00 32 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 A2 17 00 90 00 2D [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=255 [10:29:10]MH_SAM_APDU [10:29: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 4C 00 00 00 F4 03 04 00 77 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 1F 02 00 35 04 06 00 BD [10:29:10]Write to MH i2c: E2 02 01 A3 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 4C 00 00 00 F4 03 04 00 77 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 1F 02 00 35 04 06 00 BD 00 00 38 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 A3 17 00 90 00 2E [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=10 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 02 02 05 A2 0C 8C F4 F8 [10:29:10]Write to MH i2c: E2 0D 00 A4 17 80 0D 02 02 05 00 A2 0C 8C F4 F8 00 00 65 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 A4 17 00 90 00 2F [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 03 02 [10:29:10]Write to MH i2c: E2 08 00 A5 17 80 0D 03 02 00 00 00 00 37 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0B 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0B 00 A5 17 00 81 7E FE D7 59 DC 5E 55 90 00 F4 [10:29:10]RAPDU: 81 7E FE D7 59 DC 5E 55 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_SignData done [10:29:10]FM_MakeSignedData done [10:29:10]CreateOFDProtocolMessage [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 11 00 00 [10:29:10]Write to MH i2c: E2 08 00 A6 17 80 11 00 00 00 00 00 00 37 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 17 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 17 00 A6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8E [10:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:29:10]wFMCommunicate OK [10:29:10]CreateOFDProtocolMessage done [10:29:10]OFDSenderStorePacket 139241 [10:29:10]StoreOFDPacket docnum=139241 [10:29:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3A 86 07 01 1D 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 4C 00 00 00 F4 03 04 00 77 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 1F 02 00 35 04 06 00 BD A2 0C 8C F4 F8 81 7E FE D7 59 DC 5E 55 [10:29:10]CheckFolder [10:29:10]dirname=/storage/ofd_packets [10:29:10]CheckFolder done [10:29:10]ProducePacketName [10:29:10]name=ofd_packets/00139241 [10:29:10]NVStorageSaveData ofd_packets/00139241 [10:29:10]File name is /storage/ofd_packets/00139241 [10:29:10]Write 301 bytes [10:29:10]NVStorageSaveData done [10:29:10]OFDSenderStorePacket done [10:29:10]KKMCreateOFDPacket done [10:29:10]NVStorageSaveData kkm_last_timestamp [10:29:10]File name is /storage/kkm_last_timestamp [10:29:10]Write 4 bytes [10:29:10]NVStorageSaveData done [10:29:10]ExternCall_PrintAddStr [10:29:10]wPrintStart [10:29:10]Write to MH i2c: 01 00 00 A7 17 BE [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 07 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 07 00 A7 17 00 00 00 00 00 FF 0F D3 [10:29:10]RasterBufferAndPrint [10:29:10]line Счет N : (1)593080 [10:29:10]line ИНН: 02508201610067 [10:29:10]line Контрольно-Кассовый Чек [10:29:10]line ПРОДАЖА [10:29:10]line ТРК (МРК, ГНК) : 32 [10:29:10]line Товар: 2710124130 [10:29:10]line Аи-92-К-5 [10:29:10]line 10.330 * 67.80 [10:29:10]line = 700.37 [10:29:10]line НДС 12% НСП 1% [10:29:10]line > о реализуемом товаре [10:29:10]line ОКРУГЛЕНИЕ: -0.37 [10:29:10]line ИТОГО: 700.00 [10:29:10]line Внесено: 700.00 [10:29:10]line СДАЧА: 0.00 [10:29:10]line НСП 1% : 6.20 [10:29:10]line НДС 12% : 74.38 [10:29:10]line Наличными: 700.00 [10:29:10]line Безнал.: 0.00 [10:29:10]line Место: АЗС № 136 "Партнер Нефть" [10:29:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:29:10]line СНО: Общий режим [10:29:10]line Чек 76 19.08.2024 10:29 [10:29:10]line Смена: 452 ФФД: 1.0 [10:29:10]line ЗНМ: 0300000067 [10:29:10]line РНМ: 0000000000092569 [10:29:10]line Версия ККМ: 001 [10:29:10]line ФМ: 0000000000871776 [10:29:10]line ФД: 139241 [10:29:10]line ФПД: 208503692915960 [10:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102911&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139241&fm=208503692915960&tin=02508201610067®Number=0000000000092569&sum=70000 [10:29:10]OFD Sender: Processing packet 139241 [packets to send 137, broken 136] [10:29:10]ProducePacketName [10:29:10]name=ofd_packets/00139241 [10:29:10]OFD Sender: To server: pG, [10:29:10]CommunicateWithHost lk.salyk.kg:30040 [10:29:10]ConnectInit lk.salyk.kg [10:29:10]written 0, free lines is 4095 [10:29:10]Connected sock=10 [10:29: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 37 36 0F 01 00 00 3A 86 07 01 1D 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 4C 00 00 00 F4 03 04 00 77 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 1F 02 00 35 04 06 00 BD A2 0C 8C F4 F8 81 7E FE D7 59 DC 5E 55 [10:29: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 37 36 4F 00 00 00 7A BD 47 00 33 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 37 36 10 04 04 00 E9 1F 02 00 F4 03 04 00 0D C5 C2 66 B6 04 01 00 00 26 49 31 F2 82 D1 22 75 [10:29:11]CommunicateWithHost err = 0 [10:29:11]CheckOFDResponse [10:29:11]1017 (14) - 77093643461234 [10:29:11]1041 (16) - 0000000000871776 [10:29:11]1040 (4) - 139241 [10:29:11]1012 (4) - 19.08.2024 04:07 [10:29:11]1206 (1) - 0 [10:29:11]OFD Sender: Remove packet 139241 [10:29:11]ProducePacketName [10:29:11]name=ofd_packets/00139241 [10:29:11]NVStorageDeleteData [10:29:11]Write to MH i2c: 01 00 00 D2 17 E9 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 07 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 C7 0C C3 [10:29:11]RasterBufferAndPrint [10:29:11]line [10:29:11]line [10:29:11]line [10:29:11]line [10:29:11]line [10:29:11]written 0, free lines is 3277 [10:29:11]MH_Cut [10:29:11]Write to MH i2c: D1 01 00 D9 17 01 C2 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: D1 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: D1 01 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: D1 01 00 D9 17 00 C1 [10:29:11]Write to MH i2c: 01 00 00 DA 17 F1 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]OFD Sender: No OFD packet to send [10:29:12]*** Cut start [10:29:12]*** Partial cut [10:29:12]*** CUTSNS_PIN = 1 [10:29:12]*** CUTSNS_PIN = 0 [10:29:12]*** Brake cut motor [10:29:12]Read from MH i2c: 01 [10:29:12]MH_I2C_Read... [10:29:12]*** Stop cut motor [10:29:12]*** Cut end [10:29:12]Read from MH i2c: 01 07 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 DA 17 00 00 00 00 00 FF 0F 06 [10:29:12]process_action close_receipt done [10:29:12]requested_data is exist [10:29:12]produce_requested_data [10:29:12]requested_item fm.sn is exist - process it [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 11 00 00 [10:29:12]Write to MH i2c: E2 08 00 DB 17 80 11 00 00 00 00 00 00 6C [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 DB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C3 [10:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:29:12]wFMCommunicate OK [10:29:12]requested_item fd.num is exist - process it [10:29:12]SAM_PROTO_GetFieldsCounters [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 13 00 00 [10:29:12]Write to MH i2c: E2 08 00 DC 17 80 13 00 00 00 00 00 00 6F [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 62 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 62 00 DC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:12]wFMCommunicate OK [10:29:12]SAM_PROTO_GetFieldsCounters done [10:29:12]requested_item shift.num is exist - process it [10:29:12]requested_item shift.opened is exist - process it [10:29:12]req_shift_opened [10:29:12]FM_GetShiftState [10:29:12]SAM_PROTO_GetShiftState [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 13 01 00 [10:29:12]Write to MH i2c: E2 08 00 DD 17 80 13 01 00 00 00 00 00 71 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:12]Read from MH i2c: E2 0E 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 0E 00 DD 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 28 [10:29:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:29:12]wFMCommunicate OK [10:29:12]SAM_PROTO_GetShiftState done [10:29:12]FM_GetShiftState done [10:29:12]req_shift_opened done [10:29:12]requested_item shift.open_date is exist - process it [10:29:12]req_shift_open_date [10:29:12]req_shift_open_date done [10:29:12]produce_requested_data done [10:29:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139241,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:29:12]process_action_free close_receipt [10:29:12]json_value_free [10:29:12]json_value_free done [10:29:12]process_json_proto returns [10:29:12]Send response to host [10:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139241,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:29:12]free response buf [10:29:12]execute_script done [10:29:12]execute_script returns [10:29:12]free content buf [10:29:12]Sock 9.Close socket [10:29:12]Sock 9.Thread stoped [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:35]accept exits with 7 [10:29:35]New connection [10:29:35]New thread 3067202916 created [10:29:35]Thread 3067059556 joined [10:29:35]Waiting for new connection... [10:29:35] Sock 7.Parse request [10:29:35]Sock 7.Check first char [10:29:35]Sock 7.First char is OK [10:29:35]request: POST /json_proto HTTP/1.0 [10:29:35]Method: POST [10:29:35]URL: /json_proto [10:29:35]Method is POST - this is cgi request [10:29:35]url: /json_proto [10:29:35]query_string will be loaded in cgi processing [10:29:35]execute_cgi json_proto POST (null) [10:29:35]execute_cgi path=json_proto method=POST [10:29:35]POST find Content-Length [10:29:35]Host: 172.17.45.67:8080 [10:29:35]Content-Length: 677 [10:29:35]Content-Type: application/json [10:29:35] [10:29:35]POST finish read [10:29:35]Found Content-Length = 677 [10:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:29:35]execute_script... [10:29: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)593082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:29:35]POST & json_proto [10:29:35]process_json_proto [10:29:35]json parsed OK: [10:29:35]protocol is kg_v1.0 [10:29:35]action value=close_receipt [10:29:35]process_action close_receipt [10:29:35]cmd_close_receipt [10:29:35]MH_GetDate [10:29:35]Write to MH i2c: F0 00 00 DE 17 E4 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: F0 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: F0 09 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: F0 09 00 DE 17 00 92 1E C3 66 5F 7F 2B 66 35 [10:29:35]GetLastDocTimeStamp 1724063351 [10:29:35]current date 1724063378 [10:29:35]FM_GetShiftState [10:29:35]SAM_PROTO_GetShiftState [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 13 01 00 [10:29:35]Write to MH i2c: E2 08 00 DF 17 80 13 01 00 00 00 00 00 73 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0E 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0E 00 DF 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2A [10:29:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:29:35]wFMCommunicate OK [10:29:35]SAM_PROTO_GetShiftState done [10:29:35]FM_GetShiftState done [10:29:35]opened in 1724027888 [10:29:35]opened+sec_in_day 1724114288 [10:29:35]quantity*price = 60003 [10:29:35]sum+1 = 60004 [10:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 77 19.08.2024 10:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139242 ФПД: 104488456656029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102938&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139242&fm=104488456656029&tin=02508201610067®Number=0000000000092569&sum=60000 [10:29:36]StoreToDocumentArchive [10:29:36]shift 452 fd 139242 [10:29:36]save to /storage/0452/doc_00139242 [10:29:36]save last doc name /storage/0452/doc_00139242 to /storage/kkm_last_doc_name [10:29:36]save OK [10:29:36]Clear old archive folders... [10:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:36]tlvbuf is 01E443E0 [10:29:36]SAM_PROTO_ClearQueue [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 09 00 00 [10:29:36]Write to MH i2c: E2 08 00 EC 17 80 09 00 00 00 00 00 00 75 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 EC 17 00 90 00 77 [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]SAM_PROTO_ClearQueue done [10:29:36]KKMCreateOFDPacket [10:29:36]OFDProtocolAddRootSTLVToBuf [10:29:36]FM_MakeSignedData [10:29:36]FM_MakeSignedData [10:29:36]SAM_PROTO_SignData [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 0D 01 02 [10:29:36]Write to MH i2c: E2 08 00 ED 17 80 0D 01 02 00 00 00 00 7D [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 ED 17 00 90 00 78 [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]wFMCommunicate request_size=255 [10:29:36]MH_SAM_APDU [10:29: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4D 00 00 00 F4 03 04 00 92 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 1F 02 00 35 04 06 00 5F [10:29:36]Write to MH i2c: E2 02 01 EE 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4D 00 00 00 F4 03 04 00 92 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 1F 02 00 35 04 06 00 5F 00 00 22 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:37]Read from MH i2c: E2 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 03 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 03 00 EE 17 00 90 00 79 [10:29:37]RAPDU: 90 00 [10:29:37]wFMCommunicate OK [10:29:37]wFMCommunicate request_size=10 [10:29:37]MH_SAM_APDU [10:29:37]CAPDU: 80 0D 02 02 05 08 1D 57 94 9D [10:29:37]Write to MH i2c: E2 0D 00 EF 17 80 0D 02 02 05 00 08 1D 57 94 9D 00 00 37 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:37]Read from MH i2c: E2 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 03 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 03 00 EF 17 00 90 00 7A [10:29:37]RAPDU: 90 00 [10:29:37]wFMCommunicate OK [10:29:37]wFMCommunicate request_size=4 [10:29:37]MH_SAM_APDU [10:29:37]CAPDU: 80 0D 03 02 [10:29:37]Write to MH i2c: E2 08 00 F0 17 80 0D 03 02 00 00 00 00 82 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:37]Read from MH i2c: E2 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 0B 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 0B 00 F0 17 00 43 FD 60 50 B4 44 2B A5 90 00 3B [10:29:37]RAPDU: 43 FD 60 50 B4 44 2B A5 90 00 [10:29:37]wFMCommunicate OK [10:29:37]SAM_PROTO_SignData done [10:29:37]FM_MakeSignedData done [10:29:37]CreateOFDProtocolMessage [10:29:37]wFMCommunicate request_size=4 [10:29:37]MH_SAM_APDU [10:29:37]CAPDU: 80 11 00 00 [10:29:37]Write to MH i2c: E2 08 00 F1 17 80 11 00 00 00 00 00 00 82 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:37]Read from MH i2c: E2 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 17 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 17 00 F1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D9 [10:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:29:37]wFMCommunicate OK [10:29:37]CreateOFDProtocolMessage done [10:29:37]OFDSenderStorePacket 139242 [10:29:37]StoreOFDPacket docnum=139242 [10:29:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DD 8C 07 01 91 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4D 00 00 00 F4 03 04 00 92 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 1F 02 00 35 04 06 00 5F 08 1D 57 94 9D 43 FD 60 50 B4 44 2B A5 [10:29:37]CheckFolder [10:29:37]dirname=/storage/ofd_packets [10:29:37]CheckFolder done [10:29:37]ProducePacketName [10:29:37]name=ofd_packets/00139242 [10:29:37]NVStorageSaveData ofd_packets/00139242 [10:29:37]File name is /storage/ofd_packets/00139242 [10:29:37]Write 301 bytes [10:29:37]NVStorageSaveData done [10:29:37]OFDSenderStorePacket done [10:29:37]KKMCreateOFDPacket done [10:29:37]NVStorageSaveData kkm_last_timestamp [10:29:37]File name is /storage/kkm_last_timestamp [10:29:37]Write 4 bytes [10:29:37]NVStorageSaveData done [10:29:37]ExternCall_PrintAddStr [10:29:37]wPrintStart [10:29:37]Write to MH i2c: 01 00 00 F2 17 09 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 07 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 07 00 F2 17 00 00 00 00 00 FF 0F 1E [10:29:37]RasterBufferAndPrint [10:29:37]line Счет N : (1)593082 [10:29:37]line ИНН: 02508201610067 [10:29:37]line Контрольно-Кассовый Чек [10:29:37]line ПРОДАЖА [10:29:37]line ТРК (МРК, ГНК) : 42 [10:29:37]line Товар: 2710124130 [10:29:37]line Аи-92-К-5 [10:29:37]line 8.850 * 67.80 [10:29:37]line = 600.03 [10:29:37]line НДС 12% НСП 1% [10:29:37]line > о реализуемом товаре [10:29:37]line ОКРУГЛЕНИЕ: -0.03 [10:29:37]line ИТОГО: 600.00 [10:29:37]line Внесено: 600.00 [10:29:37]line СДАЧА: 0.00 [10:29:37]line НСП 1% : 5.31 [10:29:37]line НДС 12% : 63.72 [10:29:37]line Наличными: 600.00 [10:29:37]line Безнал.: 0.00 [10:29:37]line Место: АЗС № 136 "Партнер Нефть" [10:29:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:29:37]line СНО: Общий режим [10:29:37]line Чек 77 19.08.2024 10:29 [10:29:37]line Смена: 452 ФФД: 1.0 [10:29:37]line ЗНМ: 0300000067 [10:29:37]line РНМ: 0000000000092569 [10:29:37]line Версия ККМ: 001 [10:29:37]line ФМ: 0000000000871776 [10:29:37]line ФД: 139242 [10:29:37]line ФПД: 104488456656029 [10:29:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102938&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139242&fm=104488456656029&tin=02508201610067®Number=0000000000092569&sum=60000 [10:29:37]written 0, free lines is 4095 [10:29:37]OFD Sender: Processing packet 139242 [packets to send 137, broken 136] [10:29:37]ProducePacketName [10:29:37]name=ofd_packets/00139242 [10:29:37]OFD Sender: To server: pG, [10:29:37]CommunicateWithHost lk.salyk.kg:30040 [10:29:37]ConnectInit lk.salyk.kg [10:29:37]Connected sock=10 [10:29: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 37 36 0F 01 00 00 DD 8C 07 01 91 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4D 00 00 00 F4 03 04 00 92 1E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 1F 02 00 35 04 06 00 5F 08 1D 57 94 9D 43 FD 60 50 B4 44 2B A5 [10:29: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 37 36 4F 00 00 00 8F 47 47 00 93 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 1F 02 00 F4 03 04 00 28 C5 C2 66 B6 04 01 00 00 6F 71 13 36 AC 48 46 1A [10:29:38]CommunicateWithHost err = 0 [10:29:38]CheckOFDResponse [10:29:38]1017 (14) - 77093643461234 [10:29:38]1041 (16) - 0000000000871776 [10:29:38]1040 (4) - 139242 [10:29:38]1012 (4) - 19.08.2024 04:08 [10:29:38]1206 (1) - 0 [10:29:38]OFD Sender: Remove packet 139242 [10:29:38]ProducePacketName [10:29:38]name=ofd_packets/00139242 [10:29:38]NVStorageDeleteData [10:29:38]Write to MH i2c: 01 00 00 1D 18 35 [10:29:38]Write i2c OK [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: 01 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: 01 07 00 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: 01 07 00 1D 18 00 00 00 00 00 C7 0C 0F [10:29:38]RasterBufferAndPrint [10:29:38]line [10:29:38]line [10:29:38]line [10:29:38]line [10:29:38]line [10:29:38]written 0, free lines is 3277 [10:29:38]MH_Cut [10:29:38]Write to MH i2c: D1 01 00 24 18 01 0E [10:29:38]Write i2c OK [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: D1 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: D1 01 00 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: D1 01 00 24 18 00 0D [10:29:38]Write to MH i2c: 01 00 00 25 18 3D [10:29:38]Write i2c OK [10:29:38]MH_I2C_Read... [10:29:38]OFD Sender: No OFD packet to send [10:29:38]*** Cut start [10:29:38]*** Partial cut [10:29:38]*** CUTSNS_PIN = 1 [10:29:38]*** CUTSNS_PIN = 0 [10:29:39]*** Brake cut motor [10:29:39]Read from MH i2c: 01 [10:29:39]MH_I2C_Read... [10:29:39]*** Stop cut motor [10:29:39]*** Cut end [10:29:39]Read from MH i2c: 01 07 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: 01 07 00 25 18 00 00 00 00 00 FF 0F 52 [10:29:39]process_action close_receipt done [10:29:39]requested_data is exist [10:29:39]produce_requested_data [10:29:39]requested_item fm.sn is exist - process it [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 11 00 00 [10:29:39]Write to MH i2c: E2 08 00 26 18 80 11 00 00 00 00 00 00 B8 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 17 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 17 00 26 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [10:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:29:39]wFMCommunicate OK [10:29:39]requested_item fd.num is exist - process it [10:29:39]SAM_PROTO_GetFieldsCounters [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 13 00 00 [10:29:39]Write to MH i2c: E2 08 00 27 18 80 13 00 00 00 00 00 00 BB [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 62 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 62 00 27 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [10:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:39]wFMCommunicate OK [10:29:39]SAM_PROTO_GetFieldsCounters done [10:29:39]requested_item shift.num is exist - process it [10:29:39]requested_item shift.opened is exist - process it [10:29:39]req_shift_opened [10:29:39]FM_GetShiftState [10:29:39]SAM_PROTO_GetShiftState [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 13 01 00 [10:29:39]Write to MH i2c: E2 08 00 28 18 80 13 01 00 00 00 00 00 BD [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:39]Read from MH i2c: E2 0E 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 0E 00 28 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 74 [10:29:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:29:39]wFMCommunicate OK [10:29:39]SAM_PROTO_GetShiftState done [10:29:39]FM_GetShiftState done [10:29:39]req_shift_opened done [10:29:39]requested_item shift.open_date is exist - process it [10:29:39]req_shift_open_date [10:29:39]req_shift_open_date done [10:29:39]produce_requested_data done [10:29:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139242,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:29:39]process_action_free close_receipt [10:29:39]json_value_free [10:29:39]json_value_free done [10:29:39]process_json_proto returns [10:29:39]Send response to host [10:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139242,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:29:39]free response buf [10:29:39]execute_script done [10:29:39]execute_script returns [10:29:39]free content buf [10:29:39]Sock 7.Close socket [10:29:39]Sock 7.Thread stoped [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:01]accept exits with 9 [10:32:01]New connection [10:32:01]New thread 3067059556 created [10:32:01]Thread 3067202916 joined [10:32:01]Waiting for new connection... [10:32:01] Sock 9.Parse request [10:32:01]Sock 9.Check first char [10:32:01]Sock 9.First char is OK [10:32:01]request: POST /json_proto HTTP/1.0 [10:32:01]Method: POST [10:32:01]URL: /json_proto [10:32:01]Method is POST - this is cgi request [10:32:01]url: /json_proto [10:32:01]query_string will be loaded in cgi processing [10:32:01]execute_cgi json_proto POST (null) [10:32:01]execute_cgi path=json_proto method=POST [10:32:01]POST find Content-Length [10:32:01]Host: 172.17.45.67:8080 [10:32:01]Content-Length: 677 [10:32:01]Content-Type: application/json [10:32:01] [10:32:01]POST finish read [10:32:01]Found Content-Length = 677 [10:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:32:01]execute_script... [10:32: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)593083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:32:01]POST & json_proto [10:32:01]process_json_proto [10:32:01]json parsed OK: [10:32:01]protocol is kg_v1.0 [10:32:01]action value=close_receipt [10:32:01]process_action close_receipt [10:32:01]cmd_close_receipt [10:32:01]MH_GetDate [10:32:01]Write to MH i2c: F0 00 00 29 18 30 [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: F0 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: F0 09 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: F0 09 00 29 18 00 23 1F C3 66 5F 7F 2B 66 13 [10:32:01]GetLastDocTimeStamp 1724063378 [10:32:01]current date 1724063523 [10:32:01]FM_GetShiftState [10:32:01]SAM_PROTO_GetShiftState [10:32:01]wFMCommunicate request_size=4 [10:32:01]MH_SAM_APDU [10:32:01]CAPDU: 80 13 01 00 [10:32:01]Write to MH i2c: E2 08 00 2A 18 80 13 01 00 00 00 00 00 BF [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:01]Read from MH i2c: E2 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 0E 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 0E 00 2A 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 76 [10:32:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:32:01]wFMCommunicate OK [10:32:01]SAM_PROTO_GetShiftState done [10:32:01]FM_GetShiftState done [10:32:01]opened in 1724027888 [10:32:01]opened+sec_in_day 1724114288 [10:32:01]quantity*price = 20001 [10:32:01]sum+1 = 20002 [10:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 78 19.08.2024 10:32 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139243 ФПД: 27844658993407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139243&fm=27844658993407&tin=02508201610067®Number=0000000000092569&sum=20000 [10:32:02]StoreToDocumentArchive [10:32:02]shift 452 fd 139243 [10:32:02]save to /storage/0452/doc_00139243 [10:32:02]save last doc name /storage/0452/doc_00139243 to /storage/kkm_last_doc_name [10:32:02]save OK [10:32:02]Clear old archive folders... [10:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:02]tlvbuf is 01D85260 [10:32:02]SAM_PROTO_ClearQueue [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 09 00 00 [10:32:02]Write to MH i2c: E2 08 00 37 18 80 09 00 00 00 00 00 00 C1 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 37 18 00 90 00 C3 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_ClearQueue done [10:32:02]KKMCreateOFDPacket [10:32:02]OFDProtocolAddRootSTLVToBuf [10:32:02]FM_MakeSignedData [10:32:02]FM_MakeSignedData [10:32:02]SAM_PROTO_SignData [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 01 02 [10:32:02]Write to MH i2c: E2 08 00 38 18 80 0D 01 02 00 00 00 00 C9 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 38 18 00 90 00 C4 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=255 [10:32:02]MH_SAM_APDU [10:32: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 4E 00 00 00 F4 03 04 00 23 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 1F 02 00 35 04 06 00 19 [10:32:02]Write to MH i2c: E2 02 01 39 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 4E 00 00 00 F4 03 04 00 23 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 1F 02 00 35 04 06 00 19 00 00 F7 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 39 18 00 90 00 C5 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=10 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 02 02 05 53 17 02 18 FF [10:32:02]Write to MH i2c: E2 0D 00 3A 18 80 0D 02 02 05 00 53 17 02 18 FF 00 00 59 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 3A 18 00 90 00 C6 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 03 02 [10:32:02]Write to MH i2c: E2 08 00 3B 18 80 0D 03 02 00 00 00 00 CE [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 0B 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 0B 00 3B 18 00 75 7B 28 54 BF B0 0D FF 90 00 B6 [10:32:03]RAPDU: 75 7B 28 54 BF B0 0D FF 90 00 [10:32:03]wFMCommunicate OK [10:32:03]SAM_PROTO_SignData done [10:32:03]FM_MakeSignedData done [10:32:03]CreateOFDProtocolMessage [10:32:03]wFMCommunicate request_size=4 [10:32:03]MH_SAM_APDU [10:32:03]CAPDU: 80 11 00 00 [10:32:03]Write to MH i2c: E2 08 00 3C 18 80 11 00 00 00 00 00 00 CE [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:03]Read from MH i2c: E2 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 17 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: E2 17 00 3C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 25 [10:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:32:03]wFMCommunicate OK [10:32:03]CreateOFDProtocolMessage done [10:32:03]OFDSenderStorePacket 139243 [10:32:03]StoreOFDPacket docnum=139243 [10:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B 80 07 01 C1 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 4E 00 00 00 F4 03 04 00 23 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 1F 02 00 35 04 06 00 19 53 17 02 18 FF 75 7B 28 54 BF B0 0D FF [10:32:03]CheckFolder [10:32:03]dirname=/storage/ofd_packets [10:32:03]CheckFolder done [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00139243 [10:32:03]NVStorageSaveData ofd_packets/00139243 [10:32:03]File name is /storage/ofd_packets/00139243 [10:32:03]Write 301 bytes [10:32:03]NVStorageSaveData done [10:32:03]OFDSenderStorePacket done [10:32:03]KKMCreateOFDPacket done [10:32:03]NVStorageSaveData kkm_last_timestamp [10:32:03]File name is /storage/kkm_last_timestamp [10:32:03]Write 4 bytes [10:32:03]NVStorageSaveData done [10:32:03]ExternCall_PrintAddStr [10:32:03]wPrintStart [10:32:03]Write to MH i2c: 01 00 00 3D 18 55 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 3D 18 00 00 00 00 00 FF 0F 6A [10:32:03]RasterBufferAndPrint [10:32:03]line Счет N : (1)593083 [10:32:03]line ИНН: 02508201610067 [10:32:03]line Контрольно-Кассовый Чек [10:32:03]line ПРОДАЖА [10:32:03]line ТРК (МРК, ГНК) : 52 [10:32:03]line Товар: 2710124130 [10:32:03]line Аи-92-К-5 [10:32:03]line 2.950 * 67.80 [10:32:03]line = 200.01 [10:32:03]line НДС 12% НСП 1% [10:32:03]line > о реализуемом товаре [10:32:03]line ОКРУГЛЕНИЕ: -0.01 [10:32:03]line ИТОГО: 200.00 [10:32:03]line Внесено: 200.00 [10:32:03]line СДАЧА: 0.00 [10:32:03]line НСП 1% : 1.77 [10:32:03]line НДС 12% : 21.24 [10:32:03]line Наличными: 200.00 [10:32:03]line Безнал.: 0.00 [10:32:03]line Место: АЗС № 136 "Партнер Нефть" [10:32:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:32:03]line СНО: Общий режим [10:32:03]line Чек 78 19.08.2024 10:32 [10:32:03]line Смена: 452 ФФД: 1.0 [10:32:03]line ЗНМ: 0300000067 [10:32:03]line РНМ: 0000000000092569 [10:32:03]line Версия ККМ: 001 [10:32:03]line ФМ: 0000000000871776 [10:32:03]line ФД: 139243 [10:32:03]line ФПД: 27844658993407 [10:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139243&fm=27844658993407&tin=02508201610067®Number=0000000000092569&sum=20000 [10:32:03]OFD Sender: Processing packet 139243 [packets to send 137, broken 136] [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00139243 [10:32:03]OFD Sender: To server: pG, [10:32:03]CommunicateWithHost lk.salyk.kg:30040 [10:32:03]ConnectInit lk.salyk.kg [10:32:03]written 0, free lines is 4095 [10:32:03]Connected sock=10 [10:32: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 37 36 0F 01 00 00 7B 80 07 01 C1 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 4E 00 00 00 F4 03 04 00 23 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 1F 02 00 35 04 06 00 19 53 17 02 18 FF 75 7B 28 54 BF B0 0D FF [10:32: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 37 36 4F 00 00 00 86 EE 47 00 A2 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 37 36 10 04 04 00 EB 1F 02 00 F4 03 04 00 BA C5 C2 66 B6 04 01 00 00 0F 98 29 DE B6 17 18 4C [10:32:03]CommunicateWithHost err = 0 [10:32:03]CheckOFDResponse [10:32:03]1017 (14) - 77093643461234 [10:32:03]1041 (16) - 0000000000871776 [10:32:03]1040 (4) - 139243 [10:32:03]1012 (4) - 19.08.2024 04:10 [10:32:03]1206 (1) - 0 [10:32:03]OFD Sender: Remove packet 139243 [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00139243 [10:32:03]NVStorageDeleteData [10:32:03]Write to MH i2c: 01 00 00 68 18 80 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 68 18 00 00 00 00 00 C7 0C 5A [10:32:03]RasterBufferAndPrint [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]written 0, free lines is 3277 [10:32:03]MH_Cut [10:32:03]Write to MH i2c: D1 01 00 6F 18 01 59 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 6F 18 00 58 [10:32:03]Write to MH i2c: 01 00 00 70 18 88 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:04]OFD Sender: No OFD packet to send [10:32:04]*** Cut start [10:32:04]*** Partial cut [10:32:04]*** CUTSNS_PIN = 1 [10:32:04]*** CUTSNS_PIN = 0 [10:32:04]*** Brake cut motor [10:32:05]Read from MH i2c: 01 [10:32:05]MH_I2C_Read... [10:32:05]*** Stop cut motor [10:32:05]*** Cut end [10:32:05]Read from MH i2c: 01 07 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 07 00 70 18 00 00 00 00 00 FF 0F 9D [10:32:05]process_action close_receipt done [10:32:05]requested_data is exist [10:32:05]produce_requested_data [10:32:05]requested_item fm.sn is exist - process it [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 11 00 00 [10:32:05]Write to MH i2c: E2 08 00 71 18 80 11 00 00 00 00 00 00 03 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 17 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 17 00 71 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [10:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:32:05]wFMCommunicate OK [10:32:05]requested_item fd.num is exist - process it [10:32:05]SAM_PROTO_GetFieldsCounters [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 13 00 00 [10:32:05]Write to MH i2c: E2 08 00 72 18 80 13 00 00 00 00 00 00 06 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 62 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 62 00 72 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [10:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_GetFieldsCounters done [10:32:05]requested_item shift.num is exist - process it [10:32:05]requested_item shift.opened is exist - process it [10:32:05]req_shift_opened [10:32:05]FM_GetShiftState [10:32:05]SAM_PROTO_GetShiftState [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 13 01 00 [10:32:05]Write to MH i2c: E2 08 00 73 18 80 13 01 00 00 00 00 00 08 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 73 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BF [10:32:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_GetShiftState done [10:32:05]FM_GetShiftState done [10:32:05]req_shift_opened done [10:32:05]requested_item shift.open_date is exist - process it [10:32:05]req_shift_open_date [10:32:05]req_shift_open_date done [10:32:05]produce_requested_data done [10:32:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139243,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:32:05]process_action_free close_receipt [10:32:05]json_value_free [10:32:05]json_value_free done [10:32:05]process_json_proto returns [10:32:05]Send response to host [10:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139243,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:32:05]free response buf [10:32:05]execute_script done [10:32:05]execute_script returns [10:32:05]free content buf [10:32:05]Sock 9.Close socket [10:32:05]Sock 9.Thread stoped [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:41]accept exits with 7 [10:32:41]New connection [10:32:41]New thread 3067202916 created [10:32:41]Thread 3067059556 joined [10:32:41]Waiting for new connection... [10:32:41] Sock 7.Parse request [10:32:41]Sock 7.Check first char [10:32:41]Sock 7.First char is OK [10:32:41]request: POST /json_proto HTTP/1.0 [10:32:41]Method: POST [10:32:41]URL: /json_proto [10:32:41]Method is POST - this is cgi request [10:32:41]url: /json_proto [10:32:41]query_string will be loaded in cgi processing [10:32:41]execute_cgi json_proto POST (null) [10:32:41]execute_cgi path=json_proto method=POST [10:32:41]POST find Content-Length [10:32:41]Host: 172.17.45.67:8080 [10:32:41]Content-Length: 683 [10:32:41]Content-Type: application/json [10:32:41] [10:32:41]POST finish read [10:32:41]Found Content-Length = 683 [10:32:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:32:41]execute_script... [10:32: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)593084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:32:41]POST & json_proto [10:32:41]process_json_proto [10:32:41]json parsed OK: [10:32:41]protocol is kg_v1.0 [10:32:41]action value=close_receipt [10:32:41]process_action close_receipt [10:32:41]cmd_close_receipt [10:32:41]MH_GetDate [10:32:41]Write to MH i2c: F0 00 00 74 18 7B [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: F0 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: F0 09 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: F0 09 00 74 18 00 4C 1F C3 66 5F 7F 2B 66 87 [10:32:41]GetLastDocTimeStamp 1724063523 [10:32:41]current date 1724063564 [10:32:41]FM_GetShiftState [10:32:41]SAM_PROTO_GetShiftState [10:32:41]wFMCommunicate request_size=4 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 13 01 00 [10:32:41]Write to MH i2c: E2 08 00 75 18 80 13 01 00 00 00 00 00 0A [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 0E 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 0E 00 75 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C1 [10:32:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:32:41]wFMCommunicate OK [10:32:41]SAM_PROTO_GetShiftState done [10:32:41]FM_GetShiftState done [10:32:41]opened in 1724027888 [10:32:41]opened+sec_in_day 1724114288 [10:32:41]quantity*price = 80010 [10:32:41]sum+1 = 80011 [10:32: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 79 19.08.2024 10:32 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139244 ФПД: 76625252962040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139244&fm=76625252962040&tin=02508201610067®Number=0000000000092569&sum=80000 [10:32:43]StoreToDocumentArchive [10:32:43]shift 452 fd 139244 [10:32:43]save to /storage/0452/doc_00139244 [10:32:43]save last doc name /storage/0452/doc_00139244 to /storage/kkm_last_doc_name [10:32:43]save OK [10:32:43]Clear old archive folders... [10:32:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:32:43]tlvbuf is 01D72BD0 [10:32:43]SAM_PROTO_ClearQueue [10:32:43]wFMCommunicate request_size=4 [10:32:43]MH_SAM_APDU [10:32:43]CAPDU: 80 09 00 00 [10:32:43]Write to MH i2c: E2 08 00 82 18 80 09 00 00 00 00 00 00 0C [10:32:43]Write i2c OK [10:32:43]MH_I2C_Read... [10:32:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:43]Read from MH i2c: E2 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 03 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 03 00 82 18 00 90 00 0E [10:32:43]RAPDU: 90 00 [10:32:43]wFMCommunicate OK [10:32:43]SAM_PROTO_ClearQueue done [10:32:43]KKMCreateOFDPacket [10:32:43]OFDProtocolAddRootSTLVToBuf [10:32:43]FM_MakeSignedData [10:32:43]FM_MakeSignedData [10:32:43]SAM_PROTO_SignData [10:32:43]wFMCommunicate request_size=4 [10:32:43]MH_SAM_APDU [10:32:43]CAPDU: 80 0D 01 02 [10:32:43]Write to MH i2c: E2 08 00 83 18 80 0D 01 02 00 00 00 00 14 [10:32:43]Write i2c OK [10:32:43]MH_I2C_Read... [10:32:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:43]Read from MH i2c: E2 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 03 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 03 00 83 18 00 90 00 0F [10:32:43]RAPDU: 90 00 [10:32:43]wFMCommunicate OK [10:32:43]wFMCommunicate request_size=255 [10:32:43]MH_SAM_APDU [10:32:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 4C 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 1F 02 00 35 04 06 00 [10:32:43]Write to MH i2c: E2 02 01 84 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 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 4F 00 00 00 F4 03 04 00 4C 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 1F 02 00 35 04 06 00 00 00 73 [10:32:43]Write i2c OK [10:32:43]MH_I2C_Read... [10:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:43]Read from MH i2c: E2 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 03 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 03 00 84 18 00 90 00 10 [10:32:43]RAPDU: 90 00 [10:32:43]wFMCommunicate OK [10:32:43]wFMCommunicate request_size=11 [10:32:43]MH_SAM_APDU [10:32:43]CAPDU: 80 0D 02 02 06 45 B0 B4 FB CE F8 [10:32:43]Write to MH i2c: E2 0E 00 85 18 80 0D 02 02 06 00 45 B0 B4 FB CE F8 00 00 8D [10:32:43]Write i2c OK [10:32:43]MH_I2C_Read... [10:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:43]Read from MH i2c: E2 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 03 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 03 00 85 18 00 90 00 11 [10:32:43]RAPDU: 90 00 [10:32:43]wFMCommunicate OK [10:32:43]wFMCommunicate request_size=4 [10:32:43]MH_SAM_APDU [10:32:43]CAPDU: 80 0D 03 02 [10:32:43]Write to MH i2c: E2 08 00 86 18 80 0D 03 02 00 00 00 00 19 [10:32:43]Write i2c OK [10:32:43]MH_I2C_Read... [10:32:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:43]Read from MH i2c: E2 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 0B 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 0B 00 86 18 00 B7 56 82 D1 7F 28 C7 B5 90 00 9D [10:32:43]RAPDU: B7 56 82 D1 7F 28 C7 B5 90 00 [10:32:43]wFMCommunicate OK [10:32:43]SAM_PROTO_SignData done [10:32:43]FM_MakeSignedData done [10:32:43]CreateOFDProtocolMessage [10:32:43]wFMCommunicate request_size=4 [10:32:43]MH_SAM_APDU [10:32:43]CAPDU: 80 11 00 00 [10:32:43]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [10:32:43]Write i2c OK [10:32:43]MH_I2C_Read... [10:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:43]Read from MH i2c: E2 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 17 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 17 00 87 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [10:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:32:43]wFMCommunicate OK [10:32:43]CreateOFDProtocolMessage done [10:32:43]OFDSenderStorePacket 139244 [10:32:43]StoreOFDPacket docnum=139244 [10:32:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B0 02 08 01 DA 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 4C 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 1F 02 00 35 04 06 00 45 B0 B4 FB CE F8 B7 56 82 D1 7F 28 C7 B5 [10:32:43]CheckFolder [10:32:43]dirname=/storage/ofd_packets [10:32:43]CheckFolder done [10:32:43]ProducePacketName [10:32:43]name=ofd_packets/00139244 [10:32:43]NVStorageSaveData ofd_packets/00139244 [10:32:43]File name is /storage/ofd_packets/00139244 [10:32:43]Write 302 bytes [10:32:43]NVStorageSaveData done [10:32:43]OFDSenderStorePacket done [10:32:43]KKMCreateOFDPacket done [10:32:43]NVStorageSaveData kkm_last_timestamp [10:32:43]File name is /storage/kkm_last_timestamp [10:32:43]Write 4 bytes [10:32:43]NVStorageSaveData done [10:32:43]ExternCall_PrintAddStr [10:32:43]wPrintStart [10:32:43]Write to MH i2c: 01 00 00 88 18 A0 [10:32:43]Write i2c OK [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: 01 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: 01 07 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: 01 07 00 88 18 00 00 00 00 00 FF 0F B5 [10:32:43]RasterBufferAndPrint [10:32:43]line Счет N : (1)593084 [10:32:43]line ИНН: 02508201610067 [10:32:43]line Контрольно-Кассовый Чек [10:32:43]line ПРОДАЖА [10:32:43]line ТРК (МРК, ГНК) : 44 [10:32:43]line Товар: 2710194210 [10:32:43]line ДТ(л)-К-5 [10:32:43]line 10.500 * 76.20 [10:32:43]line = 800.10 [10:32:43]line НДС 12% НСП 1% [10:32:43]line > о реализуемом товаре [10:32:43]line ОКРУГЛЕНИЕ: -0.10 [10:32:43]line ИТОГО: 800.00 [10:32:43]line Внесено: 800.00 [10:32:43]line СДАЧА: 0.00 [10:32:43]line НСП 1% : 7.08 [10:32:43]line НДС 12% : 84.97 [10:32:43]line Наличными: 800.00 [10:32:43]line Безнал.: 0.00 [10:32:43]line Место: АЗС № 136 "Партнер Нефть" [10:32:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:32:43]line СНО: Общий режим [10:32:43]line Чек 79 19.08.2024 10:32 [10:32:43]line Смена: 452 ФФД: 1.0 [10:32:43]line ЗНМ: 0300000067 [10:32:43]line РНМ: 0000000000092569 [10:32:43]line Версия ККМ: 001 [10:32:43]line ФМ: 0000000000871776 [10:32:43]line ФД: 139244 [10:32:43]line ФПД: 76625252962040 [10:32:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139244&fm=76625252962040&tin=02508201610067®Number=0000000000092569&sum=80000 [10:32:43]OFD Sender: Processing packet 139244 [packets to send 137, broken 136] [10:32:43]ProducePacketName [10:32:43]name=ofd_packets/00139244 [10:32:43]OFD Sender: To server: pG, [10:32:43]CommunicateWithHost lk.salyk.kg:30040 [10:32:43]ConnectInit lk.salyk.kg [10:32:43]written 0, free lines is 4095 [10:32:44]Connected sock=11 [10:32: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 37 36 10 01 00 00 B0 02 08 01 DA 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 4C 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 1F 02 00 35 04 06 00 45 B0 B4 FB CE F8 B7 56 82 D1 7F 28 C7 B5 [10:32:44]Write to MH i2c: 01 00 00 B3 18 CB [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: 01 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: 01 07 00 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: 01 07 00 B3 18 00 00 00 00 00 C6 0C A4 [10:32:44]RasterBufferAndPrint [10:32:44]line [10:32:44]line [10:32:44]line [10:32:44]line [10:32:44]line [10:32:44]written 0, free lines is 3276 [10:32:44]MH_Cut [10:32:44]Write to MH i2c: D1 01 00 BA 18 01 A4 [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: D1 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: D1 01 00 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: D1 01 00 BA 18 00 A3 [10:32:44]Write to MH i2c: 01 00 00 BB 18 D3 [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32: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 37 36 4F 00 00 00 AB 77 47 00 9F 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 37 36 10 04 04 00 EC 1F 02 00 F4 03 04 00 E2 C5 C2 66 B6 04 01 00 00 29 30 64 63 D9 78 73 49 [10:32:44]CommunicateWithHost err = 0 [10:32:44]CheckOFDResponse [10:32:44]1017 (14) - 77093643461234 [10:32:44]1041 (16) - 0000000000871776 [10:32:44]1040 (4) - 139244 [10:32:44]1012 (4) - 19.08.2024 04:11 [10:32:44]1206 (1) - 0 [10:32:44]OFD Sender: Remove packet 139244 [10:32:44]ProducePacketName [10:32:44]name=ofd_packets/00139244 [10:32:44]NVStorageDeleteData [10:32:44]OFD Sender: No OFD packet to send [10:32:45]*** Cut start [10:32:45]*** Partial cut [10:32:45]*** CUTSNS_PIN = 1 [10:32:45]*** CUTSNS_PIN = 0 [10:32:45]*** Brake cut motor [10:32:45]Read from MH i2c: 01 [10:32:45]MH_I2C_Read... [10:32:45]*** Stop cut motor [10:32:45]*** Cut end [10:32:45]Read from MH i2c: 01 07 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 FF 0F E8 [10:32:45]process_action close_receipt done [10:32:45]requested_data is exist [10:32:45]produce_requested_data [10:32:45]requested_item fm.sn is exist - process it [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 11 00 00 [10:32:45]Write to MH i2c: E2 08 00 BC 18 80 11 00 00 00 00 00 00 4E [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 17 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 17 00 BC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [10:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:32:45]wFMCommunicate OK [10:32:45]requested_item fd.num is exist - process it [10:32:45]SAM_PROTO_GetFieldsCounters [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 13 00 00 [10:32:45]Write to MH i2c: E2 08 00 BD 18 80 13 00 00 00 00 00 00 51 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 62 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 62 00 BD 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [10:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:45]wFMCommunicate OK [10:32:45]SAM_PROTO_GetFieldsCounters done [10:32:45]requested_item shift.num is exist - process it [10:32:45]requested_item shift.opened is exist - process it [10:32:45]req_shift_opened [10:32:45]FM_GetShiftState [10:32:45]SAM_PROTO_GetShiftState [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 13 01 00 [10:32:45]Write to MH i2c: E2 08 00 BE 18 80 13 01 00 00 00 00 00 53 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 0E 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 0E 00 BE 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0A [10:32:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:32:46]wFMCommunicate OK [10:32:46]SAM_PROTO_GetShiftState done [10:32:46]FM_GetShiftState done [10:32:46]req_shift_opened done [10:32:46]requested_item shift.open_date is exist - process it [10:32:46]req_shift_open_date [10:32:46]req_shift_open_date done [10:32:46]produce_requested_data done [10:32:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139244,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:32:46]process_action_free close_receipt [10:32:46]json_value_free [10:32:46]json_value_free done [10:32:46]process_json_proto returns [10:32:46]Send response to host [10:32:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139244,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:32:46]free response buf [10:32:46]execute_script done [10:32:46]execute_script returns [10:32:46]free content buf [10:32:46]Sock 7.Close socket [10:32:46]Sock 7.Thread stoped [10:32:49]OFD Sender: No OFD packet to send [10:32:54]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:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:33:58]accept exits with 9 [10:33:58]New connection [10:33:58]New thread 3067059556 created [10:33:58]Thread 3067202916 joined [10:33:58]Waiting for new connection... [10:33:58] Sock 9.Parse request [10:33:58]Sock 9.Check first char [10:33:58]Sock 9.First char is OK [10:33:58]request: POST /json_proto HTTP/1.0 [10:33:58]Method: POST [10:33:58]URL: /json_proto [10:33:58]Method is POST - this is cgi request [10:33:58]url: /json_proto [10:33:58]query_string will be loaded in cgi processing [10:33:58]execute_cgi json_proto POST (null) [10:33:58]execute_cgi path=json_proto method=POST [10:33:58]POST find Content-Length [10:33:58]Host: 172.17.45.67:8080 [10:33:58]Content-Length: 677 [10:33:58]Content-Type: application/json [10:33:58] [10:33:58]POST finish read [10:33:58]Found Content-Length = 677 [10:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:33:58]execute_script... [10:33: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)593085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:33:58]POST & json_proto [10:33:58]process_json_proto [10:33:58]json parsed OK: [10:33:58]protocol is kg_v1.0 [10:33:58]action value=close_receipt [10:33:58]process_action close_receipt [10:33:58]cmd_close_receipt [10:33:58]MH_GetDate [10:33:58]Write to MH i2c: F0 00 00 BF 18 C6 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: F0 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: F0 09 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: F0 09 00 BF 18 00 99 1F C3 66 5F 7F 2B 66 1F [10:33:58]GetLastDocTimeStamp 1724063564 [10:33:58]current date 1724063641 [10:33:58]FM_GetShiftState [10:33:58]SAM_PROTO_GetShiftState [10:33:58]wFMCommunicate request_size=4 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 13 01 00 [10:33:58]Write to MH i2c: E2 08 00 C0 18 80 13 01 00 00 00 00 00 55 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 0E 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 0E 00 C0 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0C [10:33:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:33:58]wFMCommunicate OK [10:33:58]SAM_PROTO_GetShiftState done [10:33:58]FM_GetShiftState done [10:33:58]opened in 1724027888 [10:33:58]opened+sec_in_day 1724114288 [10:33:58]quantity*price = 20001 [10:33:58]sum+1 = 20002 [10:33:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 80 19.08.2024 10:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139245 ФПД: 83159605436026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103401&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139245&fm=83159605436026&tin=02508201610067®Number=0000000000092569&sum=20000 [10:33:59]StoreToDocumentArchive [10:33:59]shift 452 fd 139245 [10:33:59]save to /storage/0452/doc_00139245 [10:33:59]save last doc name /storage/0452/doc_00139245 to /storage/kkm_last_doc_name [10:33:59]save OK [10:33:59]Clear old archive folders... [10:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:59]tlvbuf is 01DBE830 [10:33:59]SAM_PROTO_ClearQueue [10:33:59]wFMCommunicate request_size=4 [10:33:59]MH_SAM_APDU [10:33:59]CAPDU: 80 09 00 00 [10:33:59]Write to MH i2c: E2 08 00 CD 18 80 09 00 00 00 00 00 00 57 [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 CD 18 00 90 00 59 [10:34:00]RAPDU: 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_ClearQueue done [10:34:00]KKMCreateOFDPacket [10:34:00]OFDProtocolAddRootSTLVToBuf [10:34:00]FM_MakeSignedData [10:34:00]FM_MakeSignedData [10:34:00]SAM_PROTO_SignData [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 0D 01 02 [10:34:00]Write to MH i2c: E2 08 00 CE 18 80 0D 01 02 00 00 00 00 5F [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 CE 18 00 90 00 5A [10:34:00]RAPDU: 90 00 [10:34:00]wFMCommunicate OK [10:34:00]wFMCommunicate request_size=255 [10:34:00]MH_SAM_APDU [10:34: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 99 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 1F 02 00 35 04 06 00 4B [10:34:00]Write to MH i2c: E2 02 01 CF 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 99 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 1F 02 00 35 04 06 00 4B 00 00 39 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]OFD Sender: No OFD packet to send [10:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [10:34:00]RAPDU: 90 00 [10:34:00]wFMCommunicate OK [10:34:00]wFMCommunicate request_size=10 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 0D 02 02 05 A2 1A BD DE 7A [10:34:00]Write to MH i2c: E2 0D 00 D0 18 80 0D 02 02 05 00 A2 1A BD DE 7A 00 00 3D [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [10:34:00]RAPDU: 90 00 [10:34:00]wFMCommunicate OK [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 0D 03 02 [10:34:00]Write to MH i2c: E2 08 00 D1 18 80 0D 03 02 00 00 00 00 64 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 0B 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 0B 00 D1 18 00 EC 22 91 6E 53 37 BB 06 90 00 BD [10:34:00]RAPDU: EC 22 91 6E 53 37 BB 06 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_SignData done [10:34:00]FM_MakeSignedData done [10:34:00]CreateOFDProtocolMessage [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 11 00 00 [10:34:00]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 D2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [10:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:34:00]wFMCommunicate OK [10:34:00]CreateOFDProtocolMessage done [10:34:00]OFDSenderStorePacket 139245 [10:34:00]StoreOFDPacket docnum=139245 [10:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 67 07 01 22 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 99 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 1F 02 00 35 04 06 00 4B A2 1A BD DE 7A EC 22 91 6E 53 37 BB 06 [10:34:00]CheckFolder [10:34:00]dirname=/storage/ofd_packets [10:34:00]CheckFolder done [10:34:00]ProducePacketName [10:34:00]name=ofd_packets/00139245 [10:34:00]NVStorageSaveData ofd_packets/00139245 [10:34:00]File name is /storage/ofd_packets/00139245 [10:34:00]Write 301 bytes [10:34:00]NVStorageSaveData done [10:34:00]OFDSenderStorePacket done [10:34:00]KKMCreateOFDPacket done [10:34:00]NVStorageSaveData kkm_last_timestamp [10:34:00]File name is /storage/kkm_last_timestamp [10:34:00]Write 4 bytes [10:34:00]NVStorageSaveData done [10:34:00]ExternCall_PrintAddStr [10:34:00]wPrintStart [10:34:00]Write to MH i2c: 01 00 00 D3 18 EB [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: 01 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: 01 07 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: 01 07 00 D3 18 00 00 00 00 00 FF 0F 00 [10:34:00]RasterBufferAndPrint [10:34:00]line Счет N : (1)593085 [10:34:00]line ИНН: 02508201610067 [10:34:00]line Контрольно-Кассовый Чек [10:34:00]line ПРОДАЖА [10:34:00]line ТРК (МРК, ГНК) : 32 [10:34:00]line Товар: 2710124130 [10:34:00]line Аи-92-К-5 [10:34:00]line 2.950 * 67.80 [10:34:00]line = 200.01 [10:34:00]line НДС 12% НСП 1% [10:34:00]line > о реализуемом товаре [10:34:00]line ОКРУГЛЕНИЕ: -0.01 [10:34:00]line ИТОГО: 200.00 [10:34:00]line Внесено: 200.00 [10:34:00]line СДАЧА: 0.00 [10:34:00]line НСП 1% : 1.77 [10:34:00]line НДС 12% : 21.24 [10:34:00]line Наличными: 200.00 [10:34:00]line Безнал.: 0.00 [10:34:00]line Место: АЗС № 136 "Партнер Нефть" [10:34:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:34:00]line СНО: Общий режим [10:34:00]line Чек 80 19.08.2024 10:34 [10:34:00]line Смена: 452 ФФД: 1.0 [10:34:00]line ЗНМ: 0300000067 [10:34:00]line РНМ: 0000000000092569 [10:34:00]line Версия ККМ: 001 [10:34:00]line ФМ: 0000000000871776 [10:34:00]line ФД: 139245 [10:34:00]line ФПД: 83159605436026 [10:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103401&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139245&fm=83159605436026&tin=02508201610067®Number=0000000000092569&sum=20000 [10:34:00]OFD Sender: Processing packet 139245 [packets to send 137, broken 136] [10:34:00]ProducePacketName [10:34:00]name=ofd_packets/00139245 [10:34:00]OFD Sender: To server: pG, [10:34:00]CommunicateWithHost lk.salyk.kg:30040 [10:34:00]ConnectInit lk.salyk.kg [10:34:00]written 0, free lines is 4095 [10:34:00]Connected sock=7 [10:34: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 37 36 0F 01 00 00 E8 67 07 01 22 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 99 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 1F 02 00 35 04 06 00 4B A2 1A BD DE 7A EC 22 91 6E 53 37 BB 06 [10:34: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 37 36 4F 00 00 00 3C 64 47 00 99 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 37 36 10 04 04 00 ED 1F 02 00 F4 03 04 00 2F C6 C2 66 B6 04 01 00 00 38 1D EB 56 1F 56 FF 28 [10:34:01]CommunicateWithHost err = 0 [10:34:01]CheckOFDResponse [10:34:01]1017 (14) - 77093643461234 [10:34:01]1041 (16) - 0000000000871776 [10:34:01]1040 (4) - 139245 [10:34:01]1012 (4) - 19.08.2024 04:12 [10:34:01]1206 (1) - 0 [10:34:01]OFD Sender: Remove packet 139245 [10:34:01]ProducePacketName [10:34:01]name=ofd_packets/00139245 [10:34:01]NVStorageDeleteData [10:34:01]Write to MH i2c: 01 00 00 FE 18 16 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 07 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 07 00 FE 18 00 00 00 00 00 DA 0C 03 [10:34:01]RasterBufferAndPrint [10:34:01]line [10:34:01]line [10:34:01]line [10:34:01]line [10:34:01]line [10:34:01]written 0, free lines is 3297 [10:34:01]MH_Cut [10:34:01]Write to MH i2c: D1 01 00 05 19 01 F0 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: D1 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: D1 01 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: D1 01 00 05 19 00 EF [10:34:01]Write to MH i2c: 01 00 00 06 19 1F [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]OFD Sender: No OFD packet to send [10:34:02]*** Cut start [10:34:02]*** Partial cut [10:34:02]*** CUTSNS_PIN = 1 [10:34:02]*** CUTSNS_PIN = 0 [10:34:02]*** Brake cut motor [10:34:02]Read from MH i2c: 01 [10:34:02]MH_I2C_Read... [10:34:02]*** Stop cut motor [10:34:02]*** Cut end [10:34:02]Read from MH i2c: 01 07 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 FF 0F 34 [10:34:02]process_action close_receipt done [10:34:02]requested_data is exist [10:34:02]produce_requested_data [10:34:02]requested_item fm.sn is exist - process it [10:34:02]wFMCommunicate request_size=4 [10:34:02]MH_SAM_APDU [10:34:02]CAPDU: 80 11 00 00 [10:34:02]Write to MH i2c: E2 08 00 07 19 80 11 00 00 00 00 00 00 9A [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:02]Read from MH i2c: E2 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 17 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 17 00 07 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [10:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:34:02]wFMCommunicate OK [10:34:02]requested_item fd.num is exist - process it [10:34:02]SAM_PROTO_GetFieldsCounters [10:34:02]wFMCommunicate request_size=4 [10:34:02]MH_SAM_APDU [10:34:02]CAPDU: 80 13 00 00 [10:34:02]Write to MH i2c: E2 08 00 08 19 80 13 00 00 00 00 00 00 9D [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:02]Read from MH i2c: E2 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 62 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 62 00 08 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:02]wFMCommunicate OK [10:34:02]SAM_PROTO_GetFieldsCounters done [10:34:02]requested_item shift.num is exist - process it [10:34:02]requested_item shift.opened is exist - process it [10:34:02]req_shift_opened [10:34:02]FM_GetShiftState [10:34:02]SAM_PROTO_GetShiftState [10:34:02]wFMCommunicate request_size=4 [10:34:02]MH_SAM_APDU [10:34:02]CAPDU: 80 13 01 00 [10:34:02]Write to MH i2c: E2 08 00 09 19 80 13 01 00 00 00 00 00 9F [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:02]Read from MH i2c: E2 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 0E 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 0E 00 09 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 56 [10:34:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:34:02]wFMCommunicate OK [10:34:02]SAM_PROTO_GetShiftState done [10:34:02]FM_GetShiftState done [10:34:02]req_shift_opened done [10:34:02]requested_item shift.open_date is exist - process it [10:34:02]req_shift_open_date [10:34:02]req_shift_open_date done [10:34:02]produce_requested_data done [10:34:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139245,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:34:02]process_action_free close_receipt [10:34:02]json_value_free [10:34:02]json_value_free done [10:34:02]process_json_proto returns [10:34:02]Send response to host [10:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139245,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:34:02]free response buf [10:34:02]execute_script done [10:34:02]execute_script returns [10:34:02]free content buf [10:34:02]Sock 9.Close socket [10:34:02]Sock 9.Thread stoped [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]accept exits with 10 [10:35:06]New connection [10:35:06]New thread 3067202916 created [10:35:06]Thread 3067059556 joined [10:35:06]Waiting for new connection... [10:35:06] Sock 10.Parse request [10:35:06]Sock 10.Check first char [10:35:06]Sock 10.First char is OK [10:35:06]request: POST /json_proto HTTP/1.0 [10:35:06]Method: POST [10:35:06]URL: /json_proto [10:35:06]Method is POST - this is cgi request [10:35:06]url: /json_proto [10:35:06]query_string will be loaded in cgi processing [10:35:06]execute_cgi json_proto POST (null) [10:35:06]execute_cgi path=json_proto method=POST [10:35:06]POST find Content-Length [10:35:06]Host: 172.17.45.67:8080 [10:35:06]Content-Length: 677 [10:35:06]Content-Type: application/json [10:35:06] [10:35:06]POST finish read [10:35:06]Found Content-Length = 677 [10:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:06]execute_script... [10:35: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)593087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:06]POST & json_proto [10:35:06]process_json_proto [10:35:06]json parsed OK: [10:35:06]protocol is kg_v1.0 [10:35:06]action value=close_receipt [10:35:06]process_action close_receipt [10:35:06]cmd_close_receipt [10:35:06]MH_GetDate [10:35:06]Write to MH i2c: F0 00 00 0A 19 12 [10:35:06]Write i2c OK [10:35:06]MH_I2C_Read... [10:35:06]Read from MH i2c: F0 [10:35:06]MH_I2C_Read... [10:35:06]Read from MH i2c: F0 09 00 [10:35:06]MH_I2C_Read... [10:35:06]Read from MH i2c: F0 09 00 0A 19 00 DD 1F C3 66 5F 7F 2B 66 AF [10:35:06]GetLastDocTimeStamp 1724063641 [10:35:06]current date 1724063709 [10:35:06]FM_GetShiftState [10:35:06]SAM_PROTO_GetShiftState [10:35:06]wFMCommunicate request_size=4 [10:35:06]MH_SAM_APDU [10:35:06]CAPDU: 80 13 01 00 [10:35:06]Write to MH i2c: E2 08 00 0B 19 80 13 01 00 00 00 00 00 A1 [10:35:06]Write i2c OK [10:35:06]MH_I2C_Read... [10:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:06]Read from MH i2c: E2 [10:35:06]MH_I2C_Read... [10:35:06]Read from MH i2c: E2 0E 00 [10:35:06]MH_I2C_Read... [10:35:06]Read from MH i2c: E2 0E 00 0B 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 58 [10:35:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:35:06]wFMCommunicate OK [10:35:06]SAM_PROTO_GetShiftState done [10:35:06]FM_GetShiftState done [10:35:06]opened in 1724027888 [10:35:06]opened+sec_in_day 1724114288 [10:35:06]quantity*price = 30035 [10:35:06]sum+1 = 30036 [10:35:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 81 19.08.2024 10:35 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139246 ФПД: 242792330108609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139246&fm=242792330108609&tin=02508201610067®Number=0000000000092569&sum=30000 [10:35:07]StoreToDocumentArchive [10:35:07]shift 452 fd 139246 [10:35:07]save to /storage/0452/doc_00139246 [10:35:07]save last doc name /storage/0452/doc_00139246 to /storage/kkm_last_doc_name [10:35:07]save OK [10:35:07]Clear old archive folders... [10:35:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:07]tlvbuf is 01DA2DB0 [10:35:07]SAM_PROTO_ClearQueue [10:35:07]wFMCommunicate request_size=4 [10:35:07]MH_SAM_APDU [10:35:07]CAPDU: 80 09 00 00 [10:35:07]Write to MH i2c: E2 08 00 18 19 80 09 00 00 00 00 00 00 A3 [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:07]Read from MH i2c: E2 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 03 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 03 00 18 19 00 90 00 A5 [10:35:07]RAPDU: 90 00 [10:35:07]wFMCommunicate OK [10:35:07]SAM_PROTO_ClearQueue done [10:35:07]KKMCreateOFDPacket [10:35:07]OFDProtocolAddRootSTLVToBuf [10:35:07]FM_MakeSignedData [10:35:07]FM_MakeSignedData [10:35:07]SAM_PROTO_SignData [10:35:07]wFMCommunicate request_size=4 [10:35:07]MH_SAM_APDU [10:35:07]CAPDU: 80 0D 01 02 [10:35:07]Write to MH i2c: E2 08 00 19 19 80 0D 01 02 00 00 00 00 AB [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:07]Read from MH i2c: E2 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 03 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 03 00 19 19 00 90 00 A6 [10:35:07]RAPDU: 90 00 [10:35:07]wFMCommunicate OK [10:35:07]wFMCommunicate request_size=255 [10:35:07]MH_SAM_APDU [10:35: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DD 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 1F 02 00 35 04 06 00 DC [10:35:07]Write to MH i2c: E2 02 01 1A 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DD 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 1F 02 00 35 04 06 00 DC 00 00 79 [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 1A 19 00 90 00 A7 [10:35:08]RAPDU: 90 00 [10:35:08]wFMCommunicate OK [10:35:08]wFMCommunicate request_size=10 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 0D 02 02 05 D1 7E 97 1E C1 [10:35:08]Write to MH i2c: E2 0D 00 1B 19 80 0D 02 02 05 00 D1 7E 97 1E C1 00 00 7D [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 03 00 1B 19 00 90 00 A8 [10:35:08]RAPDU: 90 00 [10:35:08]wFMCommunicate OK [10:35:08]wFMCommunicate request_size=4 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 0D 03 02 [10:35:08]Write to MH i2c: E2 08 00 1C 19 80 0D 03 02 00 00 00 00 B0 [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0B 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0B 00 1C 19 00 6B AF 5C 99 62 FA 71 16 90 00 A3 [10:35:08]RAPDU: 6B AF 5C 99 62 FA 71 16 90 00 [10:35:08]wFMCommunicate OK [10:35:08]SAM_PROTO_SignData done [10:35:08]FM_MakeSignedData done [10:35:08]CreateOFDProtocolMessage [10:35:08]wFMCommunicate request_size=4 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 11 00 00 [10:35:08]Write to MH i2c: E2 08 00 1D 19 80 11 00 00 00 00 00 00 B0 [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 17 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 17 00 1D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 07 [10:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:35:08]wFMCommunicate OK [10:35:08]CreateOFDProtocolMessage done [10:35:08]OFDSenderStorePacket 139246 [10:35:08]StoreOFDPacket docnum=139246 [10:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 12 94 07 01 6E 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DD 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 1F 02 00 35 04 06 00 DC D1 7E 97 1E C1 6B AF 5C 99 62 FA 71 16 [10:35:08]CheckFolder [10:35:08]dirname=/storage/ofd_packets [10:35:08]CheckFolder done [10:35:08]ProducePacketName [10:35:08]name=ofd_packets/00139246 [10:35:08]NVStorageSaveData ofd_packets/00139246 [10:35:08]File name is /storage/ofd_packets/00139246 [10:35:08]Write 301 bytes [10:35:08]NVStorageSaveData done [10:35:08]OFDSenderStorePacket done [10:35:08]KKMCreateOFDPacket done [10:35:08]NVStorageSaveData kkm_last_timestamp [10:35:08]File name is /storage/kkm_last_timestamp [10:35:08]Write 4 bytes [10:35:08]NVStorageSaveData done [10:35:08]ExternCall_PrintAddStr [10:35:08]wPrintStart [10:35:08]Write to MH i2c: 01 00 00 1E 19 37 [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: 01 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: 01 07 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: 01 07 00 1E 19 00 00 00 00 00 FF 0F 4C [10:35:08]RasterBufferAndPrint [10:35:08]line Счет N : (1)593087 [10:35:08]line ИНН: 02508201610067 [10:35:08]line Контрольно-Кассовый Чек [10:35:08]line ПРОДАЖА [10:35:08]line ТРК (МРК, ГНК) : 32 [10:35:08]line Товар: 2710124130 [10:35:08]line Аи-92-К-5 [10:35:08]line 4.430 * 67.80 [10:35:08]line = 300.35 [10:35:08]line НДС 12% НСП 1% [10:35:08]line > о реализуемом товаре [10:35:08]line ОКРУГЛЕНИЕ: -0.35 [10:35:08]line ИТОГО: 300.00 [10:35:08]line Внесено: 300.00 [10:35:08]line СДАЧА: 0.00 [10:35:08]line НСП 1% : 2.66 [10:35:08]line НДС 12% : 31.90 [10:35:08]line Наличными: 300.00 [10:35:08]line Безнал.: 0.00 [10:35:08]line Место: АЗС № 136 "Партнер Нефть" [10:35:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:35:08]line СНО: Общий режим [10:35:08]line Чек 81 19.08.2024 10:35 [10:35:08]line Смена: 452 ФФД: 1.0 [10:35:08]line ЗНМ: 0300000067 [10:35:08]line РНМ: 0000000000092569 [10:35:08]line Версия ККМ: 001 [10:35:08]line ФМ: 0000000000871776 [10:35:08]line ФД: 139246 [10:35:08]line ФПД: 242792330108609 [10:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139246&fm=242792330108609&tin=02508201610067®Number=0000000000092569&sum=30000 [10:35:08]OFD Sender: Processing packet 139246 [packets to send 137, broken 136] [10:35:08]ProducePacketName [10:35:08]name=ofd_packets/00139246 [10:35:08]OFD Sender: To server: pG, [10:35:08]CommunicateWithHost lk.salyk.kg:30040 [10:35:08]ConnectInit lk.salyk.kg [10:35:08]written 0, free lines is 4095 [10:35:08]Connected sock=11 [10:35: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 37 36 0F 01 00 00 12 94 07 01 6E 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DD 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 1F 02 00 35 04 06 00 DC D1 7E 97 1E C1 6B AF 5C 99 62 FA 71 16 [10:35: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 37 36 4F 00 00 00 1B 68 47 00 65 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 37 36 10 04 04 00 EE 1F 02 00 F4 03 04 00 73 C6 C2 66 B6 04 01 00 00 A0 24 0B EA 4F C1 C9 50 [10:35:09]CommunicateWithHost err = 0 [10:35:09]CheckOFDResponse [10:35:09]1017 (14) - 77093643461234 [10:35:09]1041 (16) - 0000000000871776 [10:35:09]1040 (4) - 139246 [10:35:09]1012 (4) - 19.08.2024 04:13 [10:35:09]1206 (1) - 0 [10:35:09]OFD Sender: Remove packet 139246 [10:35:09]ProducePacketName [10:35:09]name=ofd_packets/00139246 [10:35:09]NVStorageDeleteData [10:35:09]Write to MH i2c: 01 00 00 49 19 62 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 07 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 07 00 49 19 00 00 00 00 00 D1 0C 46 [10:35:09]RasterBufferAndPrint [10:35:09]line [10:35:09]line [10:35:09]line [10:35:09]line [10:35:09]line [10:35:09]written 0, free lines is 3289 [10:35:09]MH_Cut [10:35:09]Write to MH i2c: D1 01 00 50 19 01 3B [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: D1 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: D1 01 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: D1 01 00 50 19 00 3A [10:35:09]Write to MH i2c: 01 00 00 51 19 6A [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]OFD Sender: No OFD packet to send [10:35:09]*** Cut start [10:35:09]*** Partial cut [10:35:09]*** CUTSNS_PIN = 1 [10:35:09]*** CUTSNS_PIN = 0 [10:35:10]*** Brake cut motor [10:35:10]Read from MH i2c: 01 [10:35:10]MH_I2C_Read... [10:35:10]*** Stop cut motor [10:35:10]*** Cut end [10:35:10]Read from MH i2c: 01 07 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 51 19 00 00 00 00 00 FF 0F 7F [10:35:10]process_action close_receipt done [10:35:10]requested_data is exist [10:35:10]produce_requested_data [10:35:10]requested_item fm.sn is exist - process it [10:35:10]wFMCommunicate request_size=4 [10:35:10]MH_SAM_APDU [10:35:10]CAPDU: 80 11 00 00 [10:35:10]Write to MH i2c: E2 08 00 52 19 80 11 00 00 00 00 00 00 E5 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:10]Read from MH i2c: E2 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 17 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 17 00 52 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [10:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:35:10]wFMCommunicate OK [10:35:10]requested_item fd.num is exist - process it [10:35:10]SAM_PROTO_GetFieldsCounters [10:35:10]wFMCommunicate request_size=4 [10:35:10]MH_SAM_APDU [10:35:10]CAPDU: 80 13 00 00 [10:35:10]Write to MH i2c: E2 08 00 53 19 80 13 00 00 00 00 00 00 E8 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:10]Read from MH i2c: E2 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 62 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 62 00 53 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:10]wFMCommunicate OK [10:35:10]SAM_PROTO_GetFieldsCounters done [10:35:10]requested_item shift.num is exist - process it [10:35:10]requested_item shift.opened is exist - process it [10:35:10]req_shift_opened [10:35:10]FM_GetShiftState [10:35:10]SAM_PROTO_GetShiftState [10:35:10]wFMCommunicate request_size=4 [10:35:10]MH_SAM_APDU [10:35:10]CAPDU: 80 13 01 00 [10:35:10]Write to MH i2c: E2 08 00 54 19 80 13 01 00 00 00 00 00 EA [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:10]Read from MH i2c: E2 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 0E 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 0E 00 54 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A1 [10:35:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:35:10]wFMCommunicate OK [10:35:10]SAM_PROTO_GetShiftState done [10:35:10]FM_GetShiftState done [10:35:10]req_shift_opened done [10:35:10]requested_item shift.open_date is exist - process it [10:35:10]req_shift_open_date [10:35:10]req_shift_open_date done [10:35:10]produce_requested_data done [10:35:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139246,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:35:10]process_action_free close_receipt [10:35:10]json_value_free [10:35:10]json_value_free done [10:35:10]process_json_proto returns [10:35:10]Send response to host [10:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139246,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:35:10]free response buf [10:35:10]execute_script done [10:35:10]execute_script returns [10:35:10]free content buf [10:35:10]Sock 10.Close socket [10:35:10]Sock 10.Thread stoped [10:35:14]OFD Sender: No OFD packet to send [10:35:14]accept exits with 7 [10:35:14]New connection [10:35:14]New thread 3067059556 created [10:35:14]Thread 3067202916 joined [10:35:14]Waiting for new connection... [10:35:14] Sock 7.Parse request [10:35:14]Sock 7.Check first char [10:35:14]Sock 7.First char is OK [10:35:14]request: POST /json_proto HTTP/1.0 [10:35:14]Method: POST [10:35:14]URL: /json_proto [10:35:14]Method is POST - this is cgi request [10:35:14]url: /json_proto [10:35:14]query_string will be loaded in cgi processing [10:35:14]execute_cgi json_proto POST (null) [10:35:14]execute_cgi path=json_proto method=POST [10:35:14]POST find Content-Length [10:35:14]Host: 172.17.45.67:8080 [10:35:14]Content-Length: 677 [10:35:14]Content-Type: application/json [10:35:14] [10:35:14]POST finish read [10:35:14]Found Content-Length = 677 [10:35:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:35:14]execute_script... [10:35: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)593086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:35:14]POST & json_proto [10:35:14]process_json_proto [10:35:14]json parsed OK: [10:35:14]protocol is kg_v1.0 [10:35:14]action value=close_receipt [10:35:14]process_action close_receipt [10:35:14]cmd_close_receipt [10:35:14]MH_GetDate [10:35:14]Write to MH i2c: F0 00 00 55 19 5D [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: F0 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: F0 09 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: F0 09 00 55 19 00 E5 1F C3 66 5F 7F 2B 66 02 [10:35:14]GetLastDocTimeStamp 1724063709 [10:35:14]current date 1724063717 [10:35:14]FM_GetShiftState [10:35:14]SAM_PROTO_GetShiftState [10:35:14]wFMCommunicate request_size=4 [10:35:14]MH_SAM_APDU [10:35:14]CAPDU: 80 13 01 00 [10:35:14]Write to MH i2c: E2 08 00 56 19 80 13 01 00 00 00 00 00 EC [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:14]Read from MH i2c: E2 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 0E 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 0E 00 56 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A3 [10:35:14]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:35:14]wFMCommunicate OK [10:35:14]SAM_PROTO_GetShiftState done [10:35:14]FM_GetShiftState done [10:35:14]opened in 1724027888 [10:35:14]opened+sec_in_day 1724114288 [10:35:14]quantity*price = 50036 [10:35:14]sum+1 = 50037 [10:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 82 19.08.2024 10:35 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139247 ФПД: 204849255340280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139247&fm=204849255340280&tin=02508201610067®Number=0000000000092569&sum=50000 [10:35:15]StoreToDocumentArchive [10:35:15]shift 452 fd 139247 [10:35:15]save to /storage/0452/doc_00139247 [10:35:15]save last doc name /storage/0452/doc_00139247 to /storage/kkm_last_doc_name [10:35:15]save OK [10:35:15]Clear old archive folders... [10:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:15]tlvbuf is 01DCCCE0 [10:35:15]SAM_PROTO_ClearQueue [10:35:15]wFMCommunicate request_size=4 [10:35:15]MH_SAM_APDU [10:35:15]CAPDU: 80 09 00 00 [10:35:15]Write to MH i2c: E2 08 00 63 19 80 09 00 00 00 00 00 00 EE [10:35:15]Write i2c OK [10:35:15]MH_I2C_Read... [10:35:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:16]Read from MH i2c: E2 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 03 00 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 03 00 63 19 00 90 00 F0 [10:35:16]RAPDU: 90 00 [10:35:16]wFMCommunicate OK [10:35:16]SAM_PROTO_ClearQueue done [10:35:16]KKMCreateOFDPacket [10:35:16]OFDProtocolAddRootSTLVToBuf [10:35:16]FM_MakeSignedData [10:35:16]FM_MakeSignedData [10:35:16]SAM_PROTO_SignData [10:35:16]wFMCommunicate request_size=4 [10:35:16]MH_SAM_APDU [10:35:16]CAPDU: 80 0D 01 02 [10:35:16]Write to MH i2c: E2 08 00 64 19 80 0D 01 02 00 00 00 00 F6 [10:35:16]Write i2c OK [10:35:16]MH_I2C_Read... [10:35:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:16]Read from MH i2c: E2 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 03 00 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 03 00 64 19 00 90 00 F1 [10:35:16]RAPDU: 90 00 [10:35:16]wFMCommunicate OK [10:35:16]wFMCommunicate request_size=255 [10:35:16]MH_SAM_APDU [10:35:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 52 00 00 00 F4 03 04 00 E5 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 1F 02 00 35 04 06 00 BA [10:35:16]Write to MH i2c: E2 02 01 65 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 52 00 00 00 F4 03 04 00 E5 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 1F 02 00 35 04 06 00 BA 00 00 8D [10:35:16]Write i2c OK [10:35:16]MH_I2C_Read... [10:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:16]Read from MH i2c: E2 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 03 00 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 03 00 65 19 00 90 00 F2 [10:35:16]RAPDU: 90 00 [10:35:16]wFMCommunicate OK [10:35:16]wFMCommunicate request_size=10 [10:35:16]MH_SAM_APDU [10:35:16]CAPDU: 80 0D 02 02 05 4F 2F 18 D8 F8 [10:35:16]Write to MH i2c: E2 0D 00 66 19 80 0D 02 02 05 00 4F 2F 18 D8 F8 00 00 69 [10:35:16]Write i2c OK [10:35:16]MH_I2C_Read... [10:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:16]Read from MH i2c: E2 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 03 00 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 03 00 66 19 00 90 00 F3 [10:35:16]RAPDU: 90 00 [10:35:16]wFMCommunicate OK [10:35:16]wFMCommunicate request_size=4 [10:35:16]MH_SAM_APDU [10:35:16]CAPDU: 80 0D 03 02 [10:35:16]Write to MH i2c: E2 08 00 67 19 80 0D 03 02 00 00 00 00 FB [10:35:16]Write i2c OK [10:35:16]MH_I2C_Read... [10:35:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:16]Read from MH i2c: E2 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 0B 00 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 0B 00 67 19 00 24 62 F0 19 61 C6 50 04 90 00 06 [10:35:16]RAPDU: 24 62 F0 19 61 C6 50 04 90 00 [10:35:16]wFMCommunicate OK [10:35:16]SAM_PROTO_SignData done [10:35:16]FM_MakeSignedData done [10:35:16]CreateOFDProtocolMessage [10:35:16]wFMCommunicate request_size=4 [10:35:16]MH_SAM_APDU [10:35:16]CAPDU: 80 11 00 00 [10:35:16]Write to MH i2c: E2 08 00 68 19 80 11 00 00 00 00 00 00 FB [10:35:16]Write i2c OK [10:35:16]MH_I2C_Read... [10:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:16]Read from MH i2c: E2 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 17 00 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: E2 17 00 68 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 52 [10:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:35:16]wFMCommunicate OK [10:35:16]CreateOFDProtocolMessage done [10:35:16]OFDSenderStorePacket 139247 [10:35:16]StoreOFDPacket docnum=139247 [10:35:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 28 15 07 01 78 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 52 00 00 00 F4 03 04 00 E5 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 1F 02 00 35 04 06 00 BA 4F 2F 18 D8 F8 24 62 F0 19 61 C6 50 04 [10:35:16]CheckFolder [10:35:16]dirname=/storage/ofd_packets [10:35:16]CheckFolder done [10:35:16]ProducePacketName [10:35:16]name=ofd_packets/00139247 [10:35:16]NVStorageSaveData ofd_packets/00139247 [10:35:16]File name is /storage/ofd_packets/00139247 [10:35:16]Write 301 bytes [10:35:16]NVStorageSaveData done [10:35:16]OFDSenderStorePacket done [10:35:16]KKMCreateOFDPacket done [10:35:16]NVStorageSaveData kkm_last_timestamp [10:35:16]File name is /storage/kkm_last_timestamp [10:35:16]Write 4 bytes [10:35:16]NVStorageSaveData done [10:35:16]ExternCall_PrintAddStr [10:35:16]wPrintStart [10:35:16]Write to MH i2c: 01 00 00 69 19 82 [10:35:16]Write i2c OK [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: 01 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: 01 07 00 [10:35:16]MH_I2C_Read... [10:35:16]Read from MH i2c: 01 07 00 69 19 00 00 00 00 00 FF 0F 97 [10:35:16]RasterBufferAndPrint [10:35:16]line Счет N : (1)593086 [10:35:16]line ИНН: 02508201610067 [10:35:16]line Контрольно-Кассовый Чек [10:35:16]line ПРОДАЖА [10:35:16]line ТРК (МРК, ГНК) : 62 [10:35:16]line Товар: 2710124130 [10:35:16]line Аи-92-К-5 [10:35:16]line 7.380 * 67.80 [10:35:16]line = 500.36 [10:35:16]line НДС 12% НСП 1% [10:35:16]line > о реализуемом товаре [10:35:16]line ОКРУГЛЕНИЕ: -0.36 [10:35:16]line ИТОГО: 500.00 [10:35:16]line Внесено: 500.00 [10:35:16]line СДАЧА: 0.00 [10:35:16]line НСП 1% : 4.43 [10:35:16]line НДС 12% : 53.14 [10:35:16]line Наличными: 500.00 [10:35:16]line Безнал.: 0.00 [10:35:16]line Место: АЗС № 136 "Партнер Нефть" [10:35:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:35:16]line СНО: Общий режим [10:35:16]line Чек 82 19.08.2024 10:35 [10:35:16]line Смена: 452 ФФД: 1.0 [10:35:16]line ЗНМ: 0300000067 [10:35:16]line РНМ: 0000000000092569 [10:35:16]line Версия ККМ: 001 [10:35:16]line ФМ: 0000000000871776 [10:35:16]line ФД: 139247 [10:35:16]line ФПД: 204849255340280 [10:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139247&fm=204849255340280&tin=02508201610067®Number=0000000000092569&sum=50000 [10:35:16]written 0, free lines is 4095 [10:35:16]OFD Sender: Processing packet 139247 [packets to send 137, broken 136] [10:35:16]ProducePacketName [10:35:16]name=ofd_packets/00139247 [10:35:16]OFD Sender: To server: pG, [10:35:16]CommunicateWithHost lk.salyk.kg:30040 [10:35:16]ConnectInit lk.salyk.kg [10:35:16]Connected sock=10 [10: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 37 36 0F 01 00 00 28 15 07 01 78 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 52 00 00 00 F4 03 04 00 E5 1F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 1F 02 00 35 04 06 00 BA 4F 2F 18 D8 F8 24 62 F0 19 61 C6 50 04 [10:35:17]Write to MH i2c: 01 00 00 94 19 AD [10:35:17]Write i2c OK [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: 01 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: 01 07 00 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 E1 0C A1 [10:35:17]RasterBufferAndPrint [10:35:17]line [10:35:17]line [10:35:17]line [10:35:17]line [10:35:17]line [10:35:17]written 0, free lines is 3308 [10:35:17]MH_Cut [10:35:17]Write to MH i2c: D1 01 00 9B 19 01 86 [10:35: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 37 36 4F 00 00 00 74 57 47 00 28 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 37 36 10 04 04 00 EF 1F 02 00 F4 03 04 00 7B C6 C2 66 B6 04 01 00 00 D5 3E 92 91 2C 46 CF 06 [10:35:17]CommunicateWithHost err = 0 [10:35:17]CheckOFDResponse [10:35:17]1017 (14) - 77093643461234 [10:35:17]1041 (16) - 0000000000871776 [10:35:17]1040 (4) - 139247 [10:35:17]1012 (4) - 19.08.2024 04:13 [10:35:17]1206 (1) - 0 [10:35:17]OFD Sender: Remove packet 139247 [10:35:17]ProducePacketName [10:35:17]name=ofd_packets/00139247 [10:35:17]NVStorageDeleteData [10:35:17]Write i2c OK [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: D1 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: D1 01 00 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: D1 01 00 9B 19 00 85 [10:35:17]Write to MH i2c: 01 00 00 9C 19 B5 [10:35:17]Write i2c OK [10:35:17]MH_I2C_Read... [10:35:17]OFD Sender: No OFD packet to send [10:35:17]*** Cut start [10:35:17]*** Partial cut [10:35:17]*** CUTSNS_PIN = 1 [10:35:17]*** CUTSNS_PIN = 0 [10:35:17]*** Brake cut motor [10:35:18]Read from MH i2c: 01 [10:35:18]MH_I2C_Read... [10:35:18]*** Stop cut motor [10:35:18]*** Cut end [10:35:18]Read from MH i2c: 01 07 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: 01 07 00 9C 19 00 00 00 00 00 FF 0F CA [10:35:18]process_action close_receipt done [10:35:18]requested_data is exist [10:35:18]produce_requested_data [10:35:18]requested_item fm.sn is exist - process it [10:35:18]wFMCommunicate request_size=4 [10:35:18]MH_SAM_APDU [10:35:18]CAPDU: 80 11 00 00 [10:35:18]Write to MH i2c: E2 08 00 9D 19 80 11 00 00 00 00 00 00 30 [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:18]Read from MH i2c: E2 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 17 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 17 00 9D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 87 [10:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:35:18]wFMCommunicate OK [10:35:18]requested_item fd.num is exist - process it [10:35:18]SAM_PROTO_GetFieldsCounters [10:35:18]wFMCommunicate request_size=4 [10:35:18]MH_SAM_APDU [10:35:18]CAPDU: 80 13 00 00 [10:35:18]Write to MH i2c: E2 08 00 9E 19 80 13 00 00 00 00 00 00 33 [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:18]Read from MH i2c: E2 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 62 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 62 00 9E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [10:35: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:18]wFMCommunicate OK [10:35:18]SAM_PROTO_GetFieldsCounters done [10:35:18]requested_item shift.num is exist - process it [10:35:18]requested_item shift.opened is exist - process it [10:35:18]req_shift_opened [10:35:18]FM_GetShiftState [10:35:18]SAM_PROTO_GetShiftState [10:35:18]wFMCommunicate request_size=4 [10:35:18]MH_SAM_APDU [10:35:18]CAPDU: 80 13 01 00 [10:35:18]Write to MH i2c: E2 08 00 9F 19 80 13 01 00 00 00 00 00 35 [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:18]Read from MH i2c: E2 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 0E 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: E2 0E 00 9F 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EC [10:35:18]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:35:18]wFMCommunicate OK [10:35:18]SAM_PROTO_GetShiftState done [10:35:18]FM_GetShiftState done [10:35:18]req_shift_opened done [10:35:18]requested_item shift.open_date is exist - process it [10:35:18]req_shift_open_date [10:35:18]req_shift_open_date done [10:35:18]produce_requested_data done [10:35:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139247,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:35:18]process_action_free close_receipt [10:35:18]json_value_free [10:35:18]json_value_free done [10:35:18]process_json_proto returns [10:35:18]Send response to host [10:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139247,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:35:18]free response buf [10:35:18]execute_script done [10:35:18]execute_script returns [10:35:18]free content buf [10:35:18]Sock 7.Close socket [10:35:18]Sock 7.Thread stoped [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:18]accept exits with 9 [10:36:18]New connection [10:36:18]New thread 3067202916 created [10:36:18]Thread 3067059556 joined [10:36:18]Waiting for new connection... [10:36:18] Sock 9.Parse request [10:36:18]Sock 9.Check first char [10:36:18]Sock 9.First char is OK [10:36:18]request: POST /json_proto HTTP/1.0 [10:36:18]Method: POST [10:36:18]URL: /json_proto [10:36:18]Method is POST - this is cgi request [10:36:18]url: /json_proto [10:36:18]query_string will be loaded in cgi processing [10:36:18]execute_cgi json_proto POST (null) [10:36:18]execute_cgi path=json_proto method=POST [10:36:18]POST find Content-Length [10:36:18]Host: 172.17.45.67:8080 [10:36:18]Content-Length: 682 [10:36:18]Content-Type: application/json [10:36:18] [10:36:18]POST finish read [10:36:18]Found Content-Length = 682 [10:36:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:18]execute_script... [10:36: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)593088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:18]POST & json_proto [10:36:18]process_json_proto [10:36:18]json parsed OK: [10:36:18]protocol is kg_v1.0 [10:36:18]action value=close_receipt [10:36:18]process_action close_receipt [10:36:18]cmd_close_receipt [10:36:18]MH_GetDate [10:36:18]Write to MH i2c: F0 00 00 A0 19 A8 [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: F0 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: F0 09 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: F0 09 00 A0 19 00 25 20 C3 66 5F 7F 2B 66 8E [10:36:18]GetLastDocTimeStamp 1724063717 [10:36:18]current date 1724063781 [10:36:18]FM_GetShiftState [10:36:18]SAM_PROTO_GetShiftState [10:36:18]wFMCommunicate request_size=4 [10:36:18]MH_SAM_APDU [10:36:18]CAPDU: 80 13 01 00 [10:36:18]Write to MH i2c: E2 08 00 A1 19 80 13 01 00 00 00 00 00 37 [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:18]Read from MH i2c: E2 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 0E 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 0E 00 A1 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EE [10:36:18]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:36:18]wFMCommunicate OK [10:36:18]SAM_PROTO_GetShiftState done [10:36:18]FM_GetShiftState done [10:36:18]opened in 1724027888 [10:36:18]opened+sec_in_day 1724114288 [10:36:18]quantity*price = 100005 [10:36:18]sum+1 = 100006 [10:36:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 83 19.08.2024 10:36 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139248 ФПД: 81083358118445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103621&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139248&fm=81083358118445&tin=02508201610067®Number=0000000000092569&sum=100000 [10:36:19]StoreToDocumentArchive [10:36:19]shift 452 fd 139248 [10:36:19]save to /storage/0452/doc_00139248 [10:36:19]save last doc name /storage/0452/doc_00139248 to /storage/kkm_last_doc_name [10:36:19]save OK [10:36:19]Clear old archive folders... [10:36:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:19]tlvbuf is B6EFE6C0 [10:36:19]SAM_PROTO_ClearQueue [10:36:19]wFMCommunicate request_size=4 [10:36:19]MH_SAM_APDU [10:36:19]CAPDU: 80 09 00 00 [10:36:19]Write to MH i2c: E2 08 00 AE 19 80 09 00 00 00 00 00 00 39 [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 AE 19 00 90 00 3B [10:36:20]RAPDU: 90 00 [10:36:20]wFMCommunicate OK [10:36:20]SAM_PROTO_ClearQueue done [10:36:20]KKMCreateOFDPacket [10:36:20]OFDProtocolAddRootSTLVToBuf [10:36:20]FM_MakeSignedData [10:36:20]FM_MakeSignedData [10:36:20]SAM_PROTO_SignData [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 0D 01 02 [10:36:20]Write to MH i2c: E2 08 00 AF 19 80 0D 01 02 00 00 00 00 41 [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 AF 19 00 90 00 3C [10:36:20]RAPDU: 90 00 [10:36:20]wFMCommunicate OK [10:36:20]wFMCommunicate request_size=255 [10:36:20]MH_SAM_APDU [10: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 25 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 1F 02 00 35 04 06 00 49 [10:36:20]Write to MH i2c: E2 02 01 B0 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 25 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 1F 02 00 35 04 06 00 49 00 00 39 [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 B0 19 00 90 00 3D [10:36:20]RAPDU: 90 00 [10:36:20]wFMCommunicate OK [10:36:20]wFMCommunicate request_size=10 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 0D 02 02 05 BE B0 C2 02 2D [10:36:20]Write to MH i2c: E2 0D 00 B1 19 80 0D 02 02 05 00 BE B0 C2 02 2D 00 00 AD [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 B1 19 00 90 00 3E [10:36:20]RAPDU: 90 00 [10:36:20]wFMCommunicate OK [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 0D 03 02 [10:36:20]Write to MH i2c: E2 08 00 B2 19 80 0D 03 02 00 00 00 00 46 [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 0B 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 0B 00 B2 19 00 D1 E2 63 7B 08 F0 38 73 90 00 7B [10:36:20]RAPDU: D1 E2 63 7B 08 F0 38 73 90 00 [10:36:20]wFMCommunicate OK [10:36:20]SAM_PROTO_SignData done [10:36:20]FM_MakeSignedData done [10:36:20]CreateOFDProtocolMessage [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 11 00 00 [10:36:20]Write to MH i2c: E2 08 00 B3 19 80 11 00 00 00 00 00 00 46 [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 17 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 17 00 B3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9D [10:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:36:20]wFMCommunicate OK [10:36:20]CreateOFDProtocolMessage done [10:36:20]OFDSenderStorePacket 139248 [10:36:20]StoreOFDPacket docnum=139248 [10:36:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E5 18 07 01 3D 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 25 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 1F 02 00 35 04 06 00 49 BE B0 C2 02 2D D1 E2 63 7B 08 F0 38 73 [10:36:20]CheckFolder [10:36:20]dirname=/storage/ofd_packets [10:36:20]CheckFolder done [10:36:20]ProducePacketName [10:36:20]name=ofd_packets/00139248 [10:36:20]NVStorageSaveData ofd_packets/00139248 [10:36:20]File name is /storage/ofd_packets/00139248 [10:36:20]Write 301 bytes [10:36:20]NVStorageSaveData done [10:36:20]OFDSenderStorePacket done [10:36:20]KKMCreateOFDPacket done [10:36:20]NVStorageSaveData kkm_last_timestamp [10:36:20]File name is /storage/kkm_last_timestamp [10:36:20]Write 4 bytes [10:36:20]NVStorageSaveData done [10:36:20]ExternCall_PrintAddStr [10:36:20]wPrintStart [10:36:20]Write to MH i2c: 01 00 00 B4 19 CD [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: 01 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: 01 07 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: 01 07 00 B4 19 00 00 00 00 00 FF 0F E2 [10:36:20]RasterBufferAndPrint [10:36:20]line Счет N : (1)593088 [10:36:20]line ИНН: 02508201610067 [10:36:20]line Контрольно-Кассовый Чек [10:36:20]line ПРОДАЖА [10:36:20]line ТРК (МРК, ГНК) : 42 [10:36:20]line Товар: 2710124130 [10:36:20]line Аи-92-К-5 [10:36:20]line 14.750 * 67.80 [10:36:20]line = 1000.05 [10:36:20]line НДС 12% НСП 1% [10:36:20]line > о реализуемом товаре [10:36:20]line ОКРУГЛЕНИЕ: -0.05 [10:36:20]line ИТОГО: 1000.00 [10:36:20]line Внесено: 1000.00 [10:36:20]line СДАЧА: 0.00 [10:36:20]line НСП 1% : 8.85 [10:36:20]line НДС 12% : 106.20 [10:36:20]line Наличными: 1000.00 [10:36:20]line Безнал.: 0.00 [10:36:20]line Место: АЗС № 136 "Партнер Нефть" [10:36:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:36:20]line СНО: Общий режим [10:36:20]line Чек 83 19.08.2024 10:36 [10:36:20]line Смена: 452 ФФД: 1.0 [10:36:20]line ЗНМ: 0300000067 [10:36:20]line РНМ: 0000000000092569 [10:36:20]line Версия ККМ: 001 [10:36:20]line ФМ: 0000000000871776 [10:36:20]line ФД: 139248 [10:36:20]line ФПД: 81083358118445 [10:36:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103621&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139248&fm=81083358118445&tin=02508201610067®Number=0000000000092569&sum=100000 [10:36:20]OFD Sender: Processing packet 139248 [packets to send 137, broken 136] [10:36:20]ProducePacketName [10:36:20]name=ofd_packets/00139248 [10:36:20]OFD Sender: To server: pG, [10:36:20]CommunicateWithHost lk.salyk.kg:30040 [10:36:20]ConnectInit lk.salyk.kg [10:36:20]written 0, free lines is 4095 [10:36:21]Connected sock=10 [10: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 37 36 0F 01 00 00 E5 18 07 01 3D 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 25 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 1F 02 00 35 04 06 00 49 BE B0 C2 02 2D D1 E2 63 7B 08 F0 38 73 [10: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 37 36 4F 00 00 00 05 BC 47 00 3C 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 37 36 10 04 04 00 F0 1F 02 00 F4 03 04 00 BB C6 C2 66 B6 04 01 00 00 5D A8 1D BA A7 F9 A0 3F [10:36:21]CommunicateWithHost err = 0 [10:36:21]CheckOFDResponse [10:36:21]1017 (14) - 77093643461234 [10:36:21]1041 (16) - 0000000000871776 [10:36:21]1040 (4) - 139248 [10:36:21]1012 (4) - 19.08.2024 04:14 [10:36:21]1206 (1) - 0 [10:36:21]OFD Sender: Remove packet 139248 [10:36:21]ProducePacketName [10:36:21]name=ofd_packets/00139248 [10:36:21]NVStorageDeleteData [10:36:21]Write to MH i2c: 01 00 00 DF 19 F8 [10:36:21]Write i2c OK [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: 01 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: 01 07 00 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: 01 07 00 DF 19 00 00 00 00 00 CC 0C D7 [10:36:21]RasterBufferAndPrint [10:36:21]line [10:36:21]line [10:36:21]line [10:36:21]line [10:36:21]line [10:36:21]written 0, free lines is 3282 [10:36:21]MH_Cut [10:36:21]Write to MH i2c: D1 01 00 E6 19 01 D1 [10:36:21]Write i2c OK [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: D1 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: D1 01 00 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: D1 01 00 E6 19 00 D0 [10:36:21]Write to MH i2c: 01 00 00 E7 19 00 [10:36:21]Write i2c OK [10:36:21]MH_I2C_Read... [10:36:21]OFD Sender: No OFD packet to send [10:36:22]*** Cut start [10:36:22]*** Partial cut [10:36:22]*** CUTSNS_PIN = 1 [10:36:22]*** CUTSNS_PIN = 0 [10:36:22]*** Brake cut motor [10:36:22]Read from MH i2c: 01 [10:36:22]MH_I2C_Read... [10:36:22]*** Stop cut motor [10:36:22]*** Cut end [10:36:22]Read from MH i2c: 01 07 00 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: 01 07 00 E7 19 00 00 00 00 00 FF 0F 15 [10:36:22]process_action close_receipt done [10:36:22]requested_data is exist [10:36:22]produce_requested_data [10:36:22]requested_item fm.sn is exist - process it [10:36:22]wFMCommunicate request_size=4 [10:36:22]MH_SAM_APDU [10:36:22]CAPDU: 80 11 00 00 [10:36:22]Write to MH i2c: E2 08 00 E8 19 80 11 00 00 00 00 00 00 7B [10:36:22]Write i2c OK [10:36:22]MH_I2C_Read... [10:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:22]Read from MH i2c: E2 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: E2 17 00 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: E2 17 00 E8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [10:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:36:22]wFMCommunicate OK [10:36:22]requested_item fd.num is exist - process it [10:36:22]SAM_PROTO_GetFieldsCounters [10:36:22]wFMCommunicate request_size=4 [10:36:22]MH_SAM_APDU [10:36:22]CAPDU: 80 13 00 00 [10:36:22]Write to MH i2c: E2 08 00 E9 19 80 13 00 00 00 00 00 00 7E [10:36:22]Write i2c OK [10:36:22]MH_I2C_Read... [10:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:22]Read from MH i2c: E2 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: E2 62 00 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: E2 62 00 E9 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:22]wFMCommunicate OK [10:36:22]SAM_PROTO_GetFieldsCounters done [10:36:22]requested_item shift.num is exist - process it [10:36:22]requested_item shift.opened is exist - process it [10:36:22]req_shift_opened [10:36:22]FM_GetShiftState [10:36:22]SAM_PROTO_GetShiftState [10:36:22]wFMCommunicate request_size=4 [10:36:22]MH_SAM_APDU [10:36:22]CAPDU: 80 13 01 00 [10:36:22]Write to MH i2c: E2 08 00 EA 19 80 13 01 00 00 00 00 00 80 [10:36:22]Write i2c OK [10:36:22]MH_I2C_Read... [10:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:22]Read from MH i2c: E2 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: E2 0E 00 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: E2 0E 00 EA 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 37 [10:36:22]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:36:22]wFMCommunicate OK [10:36:22]SAM_PROTO_GetShiftState done [10:36:22]FM_GetShiftState done [10:36:22]req_shift_opened done [10:36:22]requested_item shift.open_date is exist - process it [10:36:22]req_shift_open_date [10:36:22]req_shift_open_date done [10:36:22]produce_requested_data done [10:36:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139248,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:36:22]process_action_free close_receipt [10:36:22]json_value_free [10:36:22]json_value_free done [10:36:22]process_json_proto returns [10:36:22]Send response to host [10:36:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139248,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:36:22]free response buf [10:36:22]execute_script done [10:36:22]execute_script returns [10:36:22]free content buf [10:36:22]Sock 9.Close socket [10:36:22]Sock 9.Thread stoped [10:36:25]accept exits with 7 [10:36:25]New connection [10:36:25]New thread 3067059556 created [10:36:25]Thread 3067202916 joined [10:36:25]Waiting for new connection... [10:36:25] Sock 7.Parse request [10:36:25]Sock 7.Check first char [10:36:25]Sock 7.First char is OK [10:36:25]request: POST /json_proto HTTP/1.0 [10:36:25]Method: POST [10:36:25]URL: /json_proto [10:36:25]Method is POST - this is cgi request [10:36:25]url: /json_proto [10:36:25]query_string will be loaded in cgi processing [10:36:25]execute_cgi json_proto POST (null) [10:36:25]execute_cgi path=json_proto method=POST [10:36:25]POST find Content-Length [10:36:25]Host: 172.17.45.67:8080 [10:36:25]Content-Length: 677 [10:36:25]Content-Type: application/json [10:36:25] [10:36:25]POST finish read [10:36:25]Found Content-Length = 677 [10:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:36:25]execute_script... [10:36: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)593089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:36:25]POST & json_proto [10:36:25]process_json_proto [10:36:25]json parsed OK: [10:36:25]protocol is kg_v1.0 [10:36:25]action value=close_receipt [10:36:25]process_action close_receipt [10:36:25]cmd_close_receipt [10:36:25]MH_GetDate [10:36:25]Write to MH i2c: F0 00 00 EB 19 F3 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: F0 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: F0 09 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: F0 09 00 EB 19 00 2B 20 C3 66 5F 7F 2B 66 DF [10:36:25]GetLastDocTimeStamp 1724063781 [10:36:25]current date 1724063787 [10:36:25]FM_GetShiftState [10:36:25]SAM_PROTO_GetShiftState [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 13 01 00 [10:36:25]Write to MH i2c: E2 08 00 EC 19 80 13 01 00 00 00 00 00 82 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 0E 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 0E 00 EC 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 39 [10:36:25]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:36:25]wFMCommunicate OK [10:36:25]SAM_PROTO_GetShiftState done [10:36:25]FM_GetShiftState done [10:36:25]opened in 1724027888 [10:36:25]opened+sec_in_day 1724114288 [10:36:25]quantity*price = 60027 [10:36:25]sum+1 = 60029 [10:36:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 84 19.08.2024 10:36 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139249 ФПД: 69186082367964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103627&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139249&fm=69186082367964&tin=02508201610067®Number=0000000000092569&sum=60000 [10:36:26]StoreToDocumentArchive [10:36:26]shift 452 fd 139249 [10:36:26]save to /storage/0452/doc_00139249 [10:36:26]save last doc name /storage/0452/doc_00139249 to /storage/kkm_last_doc_name [10:36:26]save OK [10:36:26]Clear old archive folders... [10:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:26]tlvbuf is 01E65E10 [10:36:26]SAM_PROTO_ClearQueue [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 09 00 00 [10:36:26]Write to MH i2c: E2 08 00 F9 19 80 09 00 00 00 00 00 00 84 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 F9 19 00 90 00 86 [10:36:26]RAPDU: 90 00 [10:36:26]wFMCommunicate OK [10:36:26]SAM_PROTO_ClearQueue done [10:36:26]KKMCreateOFDPacket [10:36:26]OFDProtocolAddRootSTLVToBuf [10:36:26]FM_MakeSignedData [10:36:26]FM_MakeSignedData [10:36:26]SAM_PROTO_SignData [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 0D 01 02 [10:36:26]Write to MH i2c: E2 08 00 FA 19 80 0D 01 02 00 00 00 00 8C [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 03 00 FA 19 00 90 00 87 [10:36:26]RAPDU: 90 00 [10:36:26]wFMCommunicate OK [10:36:26]wFMCommunicate request_size=255 [10:36:26]MH_SAM_APDU [10:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 54 00 00 00 F4 03 04 00 2B 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 1F 02 00 35 04 06 00 3E [10:36:26]Write to MH i2c: E2 02 01 FB 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 54 00 00 00 F4 03 04 00 2B 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 1F 02 00 35 04 06 00 3E 00 00 60 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]OFD Sender: No OFD packet to send [10:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 03 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 03 00 FB 19 00 90 00 88 [10:36:27]RAPDU: 90 00 [10:36:27]wFMCommunicate OK [10:36:27]wFMCommunicate request_size=10 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 0D 02 02 05 EC A3 DC E9 DC [10:36:27]Write to MH i2c: E2 0D 00 FC 19 80 0D 02 02 05 00 EC A3 DC E9 DC 00 00 C9 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 03 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 03 00 FC 19 00 90 00 89 [10:36:27]RAPDU: 90 00 [10:36:27]wFMCommunicate OK [10:36:27]wFMCommunicate request_size=4 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 0D 03 02 [10:36:27]Write to MH i2c: E2 08 00 FD 19 80 0D 03 02 00 00 00 00 91 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 0B 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 0B 00 FD 19 00 89 5A 6A A9 55 00 05 87 90 00 69 [10:36:27]RAPDU: 89 5A 6A A9 55 00 05 87 90 00 [10:36:27]wFMCommunicate OK [10:36:27]SAM_PROTO_SignData done [10:36:27]FM_MakeSignedData done [10:36:27]CreateOFDProtocolMessage [10:36:27]wFMCommunicate request_size=4 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 11 00 00 [10:36:27]Write to MH i2c: E2 08 00 FE 19 80 11 00 00 00 00 00 00 91 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 17 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 17 00 FE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [10:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:36:27]wFMCommunicate OK [10:36:27]CreateOFDProtocolMessage done [10:36:27]OFDSenderStorePacket 139249 [10:36:27]StoreOFDPacket docnum=139249 [10:36:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 12 7F 07 01 9F 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 54 00 00 00 F4 03 04 00 2B 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 1F 02 00 35 04 06 00 3E EC A3 DC E9 DC 89 5A 6A A9 55 00 05 87 [10:36:27]CheckFolder [10:36:27]dirname=/storage/ofd_packets [10:36:27]CheckFolder done [10:36:27]ProducePacketName [10:36:27]name=ofd_packets/00139249 [10:36:27]NVStorageSaveData ofd_packets/00139249 [10:36:27]File name is /storage/ofd_packets/00139249 [10:36:27]Write 301 bytes [10:36:27]NVStorageSaveData done [10:36:27]OFDSenderStorePacket done [10:36:27]KKMCreateOFDPacket done [10:36:27]NVStorageSaveData kkm_last_timestamp [10:36:27]File name is /storage/kkm_last_timestamp [10:36:27]Write 4 bytes [10:36:27]NVStorageSaveData done [10:36:27]ExternCall_PrintAddStr [10:36:27]wPrintStart [10:36:27]Write to MH i2c: 01 00 00 FF 19 18 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 07 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 07 00 FF 19 00 00 00 00 00 FF 0F 2D [10:36:27]RasterBufferAndPrint [10:36:27]line Счет N : (1)593089 [10:36:27]line ИНН: 02508201610067 [10:36:27]line Контрольно-Кассовый Чек [10:36:27]line ПРОДАЖА [10:36:27]line ТРК (МРК, ГНК) : 51 [10:36:27]line Товар: 2710124500 [10:36:27]line Аи-95-К-5 [10:36:27]line 8.090 * 74.20 [10:36:27]line = 600.28 [10:36:27]line НДС 12% НСП 1% [10:36:27]line > о реализуемом товаре [10:36:27]line ОКРУГЛЕНИЕ: -0.28 [10:36:27]line ИТОГО: 600.00 [10:36:27]line Внесено: 600.00 [10:36:27]line СДАЧА: 0.00 [10:36:27]line НСП 1% : 5.31 [10:36:27]line НДС 12% : 63.75 [10:36:27]line Наличными: 600.00 [10:36:27]line Безнал.: 0.00 [10:36:27]line Место: АЗС № 136 "Партнер Нефть" [10:36:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:36:27]line СНО: Общий режим [10:36:27]line Чек 84 19.08.2024 10:36 [10:36:27]line Смена: 452 ФФД: 1.0 [10:36:27]line ЗНМ: 0300000067 [10:36:27]line РНМ: 0000000000092569 [10:36:27]line Версия ККМ: 001 [10:36:27]line ФМ: 0000000000871776 [10:36:27]line ФД: 139249 [10:36:27]line ФПД: 69186082367964 [10:36:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103627&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139249&fm=69186082367964&tin=02508201610067®Number=0000000000092569&sum=60000 [10:36:27]OFD Sender: Processing packet 139249 [packets to send 137, broken 136] [10:36:27]ProducePacketName [10:36:27]name=ofd_packets/00139249 [10:36:27]OFD Sender: To server: pG, [10:36:27]CommunicateWithHost lk.salyk.kg:30040 [10:36:27]ConnectInit lk.salyk.kg [10:36:27]written 0, free lines is 4095 [10:36:27]Connected sock=10 [10:36: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 37 36 0F 01 00 00 12 7F 07 01 9F 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 54 00 00 00 F4 03 04 00 2B 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 1F 02 00 35 04 06 00 3E EC A3 DC E9 DC 89 5A 6A A9 55 00 05 87 [10:36: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 37 36 4F 00 00 00 3E 2E 47 00 3D 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 37 36 10 04 04 00 F1 1F 02 00 F4 03 04 00 C1 C6 C2 66 B6 04 01 00 00 A8 48 A0 64 81 69 5E 69 [10:36:27]CommunicateWithHost err = 0 [10:36:27]CheckOFDResponse [10:36:27]1017 (14) - 77093643461234 [10:36:27]1041 (16) - 0000000000871776 [10:36:27]1040 (4) - 139249 [10:36:27]1012 (4) - 19.08.2024 04:14 [10:36:27]1206 (1) - 0 [10:36:27]OFD Sender: Remove packet 139249 [10:36:27]ProducePacketName [10:36:27]name=ofd_packets/00139249 [10:36:27]NVStorageDeleteData [10:36:27]Write to MH i2c: 01 00 00 2A 1A 44 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 07 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 07 00 2A 1A 00 00 00 00 00 E8 0C 3F [10:36:27]RasterBufferAndPrint [10:36:27]line [10:36:27]line [10:36:27]line [10:36:27]line [10:36:27]line [10:36:27]written 0, free lines is 3319 [10:36:27]MH_Cut [10:36:27]Write to MH i2c: D1 01 00 31 1A 01 1D [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: D1 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: D1 01 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: D1 01 00 31 1A 00 1C [10:36:27]Write to MH i2c: 01 00 00 32 1A 4C [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:28]OFD Sender: No OFD packet to send [10:36:28]*** Cut start [10:36:28]*** Partial cut [10:36:28]*** CUTSNS_PIN = 1 [10:36:28]*** CUTSNS_PIN = 0 [10:36:28]*** Brake cut motor [10:36:28]Read from MH i2c: 01 [10:36:28]MH_I2C_Read... [10:36:28]*** Stop cut motor [10:36:28]*** Cut end [10:36:28]Read from MH i2c: 01 07 00 [10:36:28]MH_I2C_Read... [10:36:28]Read from MH i2c: 01 07 00 32 1A 00 00 00 00 00 FF 0F 61 [10:36:28]process_action close_receipt done [10:36:28]requested_data is exist [10:36:28]produce_requested_data [10:36:28]requested_item fm.sn is exist - process it [10:36:28]wFMCommunicate request_size=4 [10:36:28]MH_SAM_APDU [10:36:28]CAPDU: 80 11 00 00 [10:36:28]Write to MH i2c: E2 08 00 33 1A 80 11 00 00 00 00 00 00 C7 [10:36:28]Write i2c OK [10:36:28]MH_I2C_Read... [10:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:29]Read from MH i2c: E2 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 17 00 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 17 00 33 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [10:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:36:29]wFMCommunicate OK [10:36:29]requested_item fd.num is exist - process it [10:36:29]SAM_PROTO_GetFieldsCounters [10:36:29]wFMCommunicate request_size=4 [10:36:29]MH_SAM_APDU [10:36:29]CAPDU: 80 13 00 00 [10:36:29]Write to MH i2c: E2 08 00 34 1A 80 13 00 00 00 00 00 00 CA [10:36:29]Write i2c OK [10:36:29]MH_I2C_Read... [10:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:29]Read from MH i2c: E2 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 62 00 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 62 00 34 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [10:36: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F1 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:29]wFMCommunicate OK [10:36:29]SAM_PROTO_GetFieldsCounters done [10:36:29]requested_item shift.num is exist - process it [10:36:29]requested_item shift.opened is exist - process it [10:36:29]req_shift_opened [10:36:29]FM_GetShiftState [10:36:29]SAM_PROTO_GetShiftState [10:36:29]wFMCommunicate request_size=4 [10:36:29]MH_SAM_APDU [10:36:29]CAPDU: 80 13 01 00 [10:36:29]Write to MH i2c: E2 08 00 35 1A 80 13 01 00 00 00 00 00 CC [10:36:29]Write i2c OK [10:36:29]MH_I2C_Read... [10:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:29]Read from MH i2c: E2 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 0E 00 [10:36:29]MH_I2C_Read... [10:36:29]Read from MH i2c: E2 0E 00 35 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 83 [10:36:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:36:29]wFMCommunicate OK [10:36:29]SAM_PROTO_GetShiftState done [10:36:29]FM_GetShiftState done [10:36:29]req_shift_opened done [10:36:29]requested_item shift.open_date is exist - process it [10:36:29]req_shift_open_date [10:36:29]req_shift_open_date done [10:36:29]produce_requested_data done [10:36:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139249,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:36:29]process_action_free close_receipt [10:36:29]json_value_free [10:36:29]json_value_free done [10:36:29]process_json_proto returns [10:36:29]Send response to host [10:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139249,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:36:29]free response buf [10:36:29]execute_script done [10:36:29]execute_script returns [10:36:29]free content buf [10:36:29]Sock 7.Close socket [10:36:29]Sock 7.Thread stoped [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:29]accept exits with 9 [10:37:29]New connection [10:37:29]New thread 3067202916 created [10:37:29]Thread 3067059556 joined [10:37:29]Waiting for new connection... [10:37:29] Sock 9.Parse request [10:37:29]Sock 9.Check first char [10:37:29]Sock 9.First char is OK [10:37:29]request: POST /json_proto HTTP/1.0 [10:37:29]Method: POST [10:37:29]URL: /json_proto [10:37:29]Method is POST - this is cgi request [10:37:29]url: /json_proto [10:37:29]query_string will be loaded in cgi processing [10:37:29]execute_cgi json_proto POST (null) [10:37:29]execute_cgi path=json_proto method=POST [10:37:29]POST find Content-Length [10:37:29]Host: 172.17.45.67:8080 [10:37:29]Content-Length: 677 [10:37:29]Content-Type: application/json [10:37:29] [10:37:29]POST finish read [10:37:29]Found Content-Length = 677 [10:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:37:29]execute_script... [10:37: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)593090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:37:29]POST & json_proto [10:37:29]process_json_proto [10:37:29]json parsed OK: [10:37:29]protocol is kg_v1.0 [10:37:29]action value=close_receipt [10:37:29]process_action close_receipt [10:37:29]cmd_close_receipt [10:37:29]MH_GetDate [10:37:29]Write to MH i2c: F0 00 00 36 1A 3F [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: F0 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: F0 09 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: F0 09 00 36 1A 00 6C 20 C3 66 5F 7F 2B 66 6C [10:37:29]GetLastDocTimeStamp 1724063787 [10:37:29]current date 1724063852 [10:37:29]FM_GetShiftState [10:37:29]SAM_PROTO_GetShiftState [10:37:29]wFMCommunicate request_size=4 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 13 01 00 [10:37:29]Write to MH i2c: E2 08 00 37 1A 80 13 01 00 00 00 00 00 CE [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 0E 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 0E 00 37 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 85 [10:37:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:37:29]wFMCommunicate OK [10:37:29]SAM_PROTO_GetShiftState done [10:37:29]FM_GetShiftState done [10:37:29]opened in 1724027888 [10:37:29]opened+sec_in_day 1724114288 [10:37:29]quantity*price = 40068 [10:37:29]sum+1 = 40069 [10:37:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 85 19.08.2024 10:37 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139250 ФПД: 258640864616234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103732&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139250&fm=258640864616234&tin=02508201610067®Number=0000000000092569&sum=40000 [10:37:30]StoreToDocumentArchive [10:37:30]shift 452 fd 139250 [10:37:30]save to /storage/0452/doc_00139250 [10:37:30]save last doc name /storage/0452/doc_00139250 to /storage/kkm_last_doc_name [10:37:30]save OK [10:37:30]Clear old archive folders... [10:37:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:30]tlvbuf is 01D857A0 [10:37:30]SAM_PROTO_ClearQueue [10:37:30]wFMCommunicate request_size=4 [10:37:30]MH_SAM_APDU [10:37:30]CAPDU: 80 09 00 00 [10:37:30]Write to MH i2c: E2 08 00 44 1A 80 09 00 00 00 00 00 00 D0 [10:37:30]Write i2c OK [10:37:30]MH_I2C_Read... [10:37:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:30]Read from MH i2c: E2 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 03 00 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 03 00 44 1A 00 90 00 D2 [10:37:30]RAPDU: 90 00 [10:37:30]wFMCommunicate OK [10:37:30]SAM_PROTO_ClearQueue done [10:37:30]KKMCreateOFDPacket [10:37:30]OFDProtocolAddRootSTLVToBuf [10:37:30]FM_MakeSignedData [10:37:30]FM_MakeSignedData [10:37:30]SAM_PROTO_SignData [10:37:30]wFMCommunicate request_size=4 [10:37:30]MH_SAM_APDU [10:37:30]CAPDU: 80 0D 01 02 [10:37:30]Write to MH i2c: E2 08 00 45 1A 80 0D 01 02 00 00 00 00 D8 [10:37:30]Write i2c OK [10:37:30]MH_I2C_Read... [10:37:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:30]Read from MH i2c: E2 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 03 00 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: E2 03 00 45 1A 00 90 00 D3 [10:37:30]RAPDU: 90 00 [10:37:30]wFMCommunicate OK [10:37:30]wFMCommunicate request_size=255 [10:37:30]MH_SAM_APDU [10:37:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 55 00 00 00 F4 03 04 00 6C 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 1F 02 00 35 04 06 00 EB [10:37:30]Write to MH i2c: E2 02 01 46 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 55 00 00 00 F4 03 04 00 6C 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 1F 02 00 35 04 06 00 EB 00 00 ED [10:37:30]Write i2c OK [10:37:30]MH_I2C_Read... [10:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:31]Read from MH i2c: E2 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 03 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 03 00 46 1A 00 90 00 D4 [10:37:31]RAPDU: 90 00 [10:37:31]wFMCommunicate OK [10:37:31]wFMCommunicate request_size=10 [10:37:31]MH_SAM_APDU [10:37:31]CAPDU: 80 0D 02 02 05 3B 84 DC 1F 2A [10:37:31]Write to MH i2c: E2 0D 00 47 1A 80 0D 02 02 05 00 3B 84 DC 1F 2A 00 00 C9 [10:37:31]Write i2c OK [10:37:31]MH_I2C_Read... [10:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:31]Read from MH i2c: E2 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 03 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 03 00 47 1A 00 90 00 D5 [10:37:31]RAPDU: 90 00 [10:37:31]wFMCommunicate OK [10:37:31]wFMCommunicate request_size=4 [10:37:31]MH_SAM_APDU [10:37:31]CAPDU: 80 0D 03 02 [10:37:31]Write to MH i2c: E2 08 00 48 1A 80 0D 03 02 00 00 00 00 DD [10:37:31]Write i2c OK [10:37:31]MH_I2C_Read... [10:37:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:31]Read from MH i2c: E2 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 0B 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 0B 00 48 1A 00 B6 61 54 AC FE D5 9B 18 90 00 7B [10:37:31]RAPDU: B6 61 54 AC FE D5 9B 18 90 00 [10:37:31]wFMCommunicate OK [10:37:31]SAM_PROTO_SignData done [10:37:31]FM_MakeSignedData done [10:37:31]CreateOFDProtocolMessage [10:37:31]wFMCommunicate request_size=4 [10:37:31]MH_SAM_APDU [10:37:31]CAPDU: 80 11 00 00 [10:37:31]Write to MH i2c: E2 08 00 49 1A 80 11 00 00 00 00 00 00 DD [10:37:31]Write i2c OK [10:37:31]MH_I2C_Read... [10:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:31]Read from MH i2c: E2 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 17 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 17 00 49 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 34 [10:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:37:31]wFMCommunicate OK [10:37:31]CreateOFDProtocolMessage done [10:37:31]OFDSenderStorePacket 139250 [10:37:31]StoreOFDPacket docnum=139250 [10:37:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6B 96 07 01 16 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 55 00 00 00 F4 03 04 00 6C 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 1F 02 00 35 04 06 00 EB 3B 84 DC 1F 2A B6 61 54 AC FE D5 9B 18 [10:37:31]CheckFolder [10:37:31]dirname=/storage/ofd_packets [10:37:31]CheckFolder done [10:37:31]ProducePacketName [10:37:31]name=ofd_packets/00139250 [10:37:31]NVStorageSaveData ofd_packets/00139250 [10:37:31]File name is /storage/ofd_packets/00139250 [10:37:31]Write 301 bytes [10:37:31]NVStorageSaveData done [10:37:31]OFDSenderStorePacket done [10:37:31]KKMCreateOFDPacket done [10:37:31]NVStorageSaveData kkm_last_timestamp [10:37:31]File name is /storage/kkm_last_timestamp [10:37:31]Write 4 bytes [10:37:31]NVStorageSaveData done [10:37:31]OFD Sender: Processing packet 139250 [packets to send 137, broken 136] [10:37:31]ProducePacketName [10:37:31]name=ofd_packets/00139250 [10:37:31]OFD Sender: To server: pG, [10:37:31]CommunicateWithHost lk.salyk.kg:30040 [10:37:31]ConnectInit lk.salyk.kg [10:37:31]ExternCall_PrintAddStr [10:37:31]wPrintStart [10:37:31]Write to MH i2c: 01 00 00 4A 1A 64 [10:37:31]Write i2c OK [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: 01 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: 01 07 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: 01 07 00 4A 1A 00 00 00 00 00 FF 0F 79 [10:37:31]RasterBufferAndPrint [10:37:31]line Счет N : (1)593090 [10:37:31]line ИНН: 02508201610067 [10:37:31]line Контрольно-Кассовый Чек [10:37:31]line ПРОДАЖА [10:37:31]line ТРК (МРК, ГНК) : 61 [10:37:31]line Товар: 2710124500 [10:37:31]line Аи-95-К-5 [10:37:31]line 5.400 * 74.20 [10:37:31]line = 400.68 [10:37:31]line НДС 12% НСП 1% [10:37:31]line > о реализуемом товаре [10:37:31]line ОКРУГЛЕНИЕ: -0.68 [10:37:31]line ИТОГО: 400.00 [10:37:31]line Внесено: 400.00 [10:37:31]line СДАЧА: 0.00 [10:37:31]line НСП 1% : 3.55 [10:37:31]line НДС 12% : 42.55 [10:37:31]line Наличными: 400.00 [10:37:31]line Безнал.: 0.00 [10:37:31]line Место: АЗС № 136 "Партнер Нефть" [10:37:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:37:31]line СНО: Общий режим [10:37:31]line Чек 85 19.08.2024 10:37 [10:37:31]line Смена: 452 ФФД: 1.0 [10:37:31]line ЗНМ: 0300000067 [10:37:31]line РНМ: 0000000000092569 [10:37:31]line Версия ККМ: 001 [10:37:31]line ФМ: 0000000000871776 [10:37:31]line ФД: 139250 [10:37:31]line ФПД: 258640864616234 [10:37:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103732&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139250&fm=258640864616234&tin=02508201610067®Number=0000000000092569&sum=40000 [10:37:31]Connected sock=11 [10:37: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 37 36 0F 01 00 00 6B 96 07 01 16 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 55 00 00 00 F4 03 04 00 6C 20 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 1F 02 00 35 04 06 00 EB 3B 84 DC 1F 2A B6 61 54 AC FE D5 9B 18 [10:37:31]written 0, free lines is 4095 [10:37: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 37 36 4F 00 00 00 E7 AE 47 00 EC 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 37 36 10 04 04 00 F2 1F 02 00 F4 03 04 00 02 C7 C2 66 B6 04 01 00 00 90 37 B4 65 6F 39 EB FF [10:37:31]CommunicateWithHost err = 0 [10:37:31]CheckOFDResponse [10:37:31]1017 (14) - 77093643461234 [10:37:31]1041 (16) - 0000000000871776 [10:37:31]1040 (4) - 139250 [10:37:31]1012 (4) - 19.08.2024 04:16 [10:37:31]1206 (1) - 0 [10:37:31]OFD Sender: Remove packet 139250 [10:37:31]ProducePacketName [10:37:31]name=ofd_packets/00139250 [10:37:31]NVStorageDeleteData [10:37:32]Write to MH i2c: 01 00 00 75 1A 8F [10:37:32]Write i2c OK [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: 01 [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: 01 07 00 [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: 01 07 00 75 1A 00 00 00 00 00 CC 0C 6E [10:37:32]RasterBufferAndPrint [10:37:32]line [10:37:32]line [10:37:32]line [10:37:32]line [10:37:32]line [10:37:32]written 0, free lines is 3282 [10:37:32]MH_Cut [10:37:32]Write to MH i2c: D1 01 00 7C 1A 01 68 [10:37:32]Write i2c OK [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: D1 [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: D1 01 00 [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: D1 01 00 7C 1A 00 67 [10:37:32]Write to MH i2c: 01 00 00 7D 1A 97 [10:37:32]Write i2c OK [10:37:32]MH_I2C_Read... [10:37:32]OFD Sender: No OFD packet to send [10:37:32]*** Cut start [10:37:32]*** Partial cut [10:37:32]*** CUTSNS_PIN = 1 [10:37:32]*** CUTSNS_PIN = 0 [10:37:33]*** Brake cut motor [10:37:33]Read from MH i2c: 01 [10:37:33]MH_I2C_Read... [10:37:33]*** Stop cut motor [10:37:33]*** Cut end [10:37:33]Read from MH i2c: 01 07 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: 01 07 00 7D 1A 00 00 00 00 00 FF 0F AC [10:37:33]process_action close_receipt done [10:37:33]requested_data is exist [10:37:33]produce_requested_data [10:37:33]requested_item fm.sn is exist - process it [10:37:33]wFMCommunicate request_size=4 [10:37:33]MH_SAM_APDU [10:37:33]CAPDU: 80 11 00 00 [10:37:33]Write to MH i2c: E2 08 00 7E 1A 80 11 00 00 00 00 00 00 12 [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:33]Read from MH i2c: E2 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 17 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 17 00 7E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [10:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:37:33]wFMCommunicate OK [10:37:33]requested_item fd.num is exist - process it [10:37:33]SAM_PROTO_GetFieldsCounters [10:37:33]wFMCommunicate request_size=4 [10:37:33]MH_SAM_APDU [10:37:33]CAPDU: 80 13 00 00 [10:37:33]Write to MH i2c: E2 08 00 7F 1A 80 13 00 00 00 00 00 00 15 [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:33]Read from MH i2c: E2 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 62 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 62 00 7F 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:33]wFMCommunicate OK [10:37:33]SAM_PROTO_GetFieldsCounters done [10:37:33]requested_item shift.num is exist - process it [10:37:33]requested_item shift.opened is exist - process it [10:37:33]req_shift_opened [10:37:33]FM_GetShiftState [10:37:33]SAM_PROTO_GetShiftState [10:37:33]wFMCommunicate request_size=4 [10:37:33]MH_SAM_APDU [10:37:33]CAPDU: 80 13 01 00 [10:37:33]Write to MH i2c: E2 08 00 80 1A 80 13 01 00 00 00 00 00 17 [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:33]Read from MH i2c: E2 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 0E 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 0E 00 80 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CE [10:37:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:37:33]wFMCommunicate OK [10:37:33]SAM_PROTO_GetShiftState done [10:37:33]FM_GetShiftState done [10:37:33]req_shift_opened done [10:37:33]requested_item shift.open_date is exist - process it [10:37:33]req_shift_open_date [10:37:33]req_shift_open_date done [10:37:33]produce_requested_data done [10:37:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139250,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:37:33]process_action_free close_receipt [10:37:33]json_value_free [10:37:33]json_value_free done [10:37:33]process_json_proto returns [10:37:33]Send response to host [10:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139250,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:37:33]free response buf [10:37:33]execute_script done [10:37:33]execute_script returns [10:37:33]free content buf [10:37:33]Sock 9.Close socket [10:37:33]Sock 9.Thread stoped [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]accept exits with 7 [10:40:17]New connection [10:40:17]New thread 3067059556 created [10:40:17]Thread 3067202916 joined [10:40:17]Waiting for new connection... [10:40:17] Sock 7.Parse request [10:40:17]Sock 7.Check first char [10:40:17]Sock 7.First char is OK [10:40:17]request: POST /json_proto HTTP/1.0 [10:40:17]Method: POST [10:40:17]URL: /json_proto [10:40:17]Method is POST - this is cgi request [10:40:17]url: /json_proto [10:40:17]query_string will be loaded in cgi processing [10:40:17]execute_cgi json_proto POST (null) [10:40:17]execute_cgi path=json_proto method=POST [10:40:17]POST find Content-Length [10:40:17]Host: 172.17.45.67:8080 [10:40:17]Content-Length: 677 [10:40:17]Content-Type: application/json [10:40:17] [10:40:17]POST finish read [10:40:17]Found Content-Length = 677 [10:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:40:17]execute_script... [10:40: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)593092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:40:17]POST & json_proto [10:40:17]process_json_proto [10:40:17]json parsed OK: [10:40:17]protocol is kg_v1.0 [10:40:17]action value=close_receipt [10:40:17]process_action close_receipt [10:40:17]cmd_close_receipt [10:40:17]MH_GetDate [10:40:17]Write to MH i2c: F0 00 00 81 1A 8A [10:40:17]OFD Sender: No OFD packet to send [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: F0 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: F0 09 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: F0 09 00 81 1A 00 14 21 C3 66 5F 7F 2B 66 60 [10:40:17]GetLastDocTimeStamp 1724063852 [10:40:17]current date 1724064020 [10:40:17]FM_GetShiftState [10:40:17]SAM_PROTO_GetShiftState [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 13 01 00 [10:40:17]Write to MH i2c: E2 08 00 82 1A 80 13 01 00 00 00 00 00 19 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 0E 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 0E 00 82 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D0 [10:40:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:40:17]wFMCommunicate OK [10:40:17]SAM_PROTO_GetShiftState done [10:40:17]FM_GetShiftState done [10:40:17]opened in 1724027888 [10:40:17]opened+sec_in_day 1724114288 [10:40:17]quantity*price = 40002 [10:40:17]sum+1 = 40003 [10:40:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 86 19.08.2024 10:40 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139251 ФПД: 226543662011253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104020&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139251&fm=226543662011253&tin=02508201610067®Number=0000000000092569&sum=40000 [10:40:18]StoreToDocumentArchive [10:40:18]shift 452 fd 139251 [10:40:18]save to /storage/0452/doc_00139251 [10:40:18]save last doc name /storage/0452/doc_00139251 to /storage/kkm_last_doc_name [10:40:18]save OK [10:40:18]Clear old archive folders... [10:40:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:18]tlvbuf is B6EFE460 [10:40:18]SAM_PROTO_ClearQueue [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 09 00 00 [10:40:18]Write to MH i2c: E2 08 00 8F 1A 80 09 00 00 00 00 00 00 1B [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 8F 1A 00 90 00 1D [10:40:18]RAPDU: 90 00 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_ClearQueue done [10:40:18]KKMCreateOFDPacket [10:40:18]OFDProtocolAddRootSTLVToBuf [10:40:18]FM_MakeSignedData [10:40:18]FM_MakeSignedData [10:40:18]SAM_PROTO_SignData [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 0D 01 02 [10:40:18]Write to MH i2c: E2 08 00 90 1A 80 0D 01 02 00 00 00 00 23 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 90 1A 00 90 00 1E [10:40:18]RAPDU: 90 00 [10:40:18]wFMCommunicate OK [10:40:18]wFMCommunicate request_size=255 [10:40:18]MH_SAM_APDU [10:40: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 56 00 00 00 F4 03 04 00 14 21 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 1F 02 00 35 04 06 00 CE [10:40:18]Write to MH i2c: E2 02 01 91 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 56 00 00 00 F4 03 04 00 14 21 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 1F 02 00 35 04 06 00 CE 00 00 EC [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 91 1A 00 90 00 1F [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]wFMCommunicate request_size=10 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 0D 02 02 05 0A 4E 80 13 75 [10:40:19]Write to MH i2c: E2 0D 00 92 1A 80 0D 02 02 05 00 0A 4E 80 13 75 00 00 90 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 92 1A 00 90 00 20 [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 0D 03 02 [10:40:19]Write to MH i2c: E2 08 00 93 1A 80 0D 03 02 00 00 00 00 28 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0B 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0B 00 93 1A 00 BF BB 20 06 15 36 7F A8 90 00 3B [10:40:19]RAPDU: BF BB 20 06 15 36 7F A8 90 00 [10:40:19]wFMCommunicate OK [10:40:19]SAM_PROTO_SignData done [10:40:19]FM_MakeSignedData done [10:40:19]CreateOFDProtocolMessage [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 11 00 00 [10:40:19]Write to MH i2c: E2 08 00 94 1A 80 11 00 00 00 00 00 00 28 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 17 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 17 00 94 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [10:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:40:19]wFMCommunicate OK [10:40:19]CreateOFDProtocolMessage done [10:40:19]OFDSenderStorePacket 139251 [10:40:19]StoreOFDPacket docnum=139251 [10:40:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 04 07 01 61 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 56 00 00 00 F4 03 04 00 14 21 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 1F 02 00 35 04 06 00 CE 0A 4E 80 13 75 BF BB 20 06 15 36 7F A8 [10:40:19]CheckFolder [10:40:19]dirname=/storage/ofd_packets [10:40:19]CheckFolder done [10:40:19]ProducePacketName [10:40:19]name=ofd_packets/00139251 [10:40:19]NVStorageSaveData ofd_packets/00139251 [10:40:19]File name is /storage/ofd_packets/00139251 [10:40:19]Write 301 bytes [10:40:19]NVStorageSaveData done [10:40:19]OFDSenderStorePacket done [10:40:19]KKMCreateOFDPacket done [10:40:19]NVStorageSaveData kkm_last_timestamp [10:40:19]File name is /storage/kkm_last_timestamp [10:40:19]Write 4 bytes [10:40:19]NVStorageSaveData done [10:40:19]ExternCall_PrintAddStr [10:40:19]wPrintStart [10:40:19]Write to MH i2c: 01 00 00 95 1A AF [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 95 1A 00 00 00 00 00 FF 0F C4 [10:40:19]RasterBufferAndPrint [10:40:19]line Счет N : (1)593092 [10:40:19]line ИНН: 02508201610067 [10:40:19]line Контрольно-Кассовый Чек [10:40:19]line ПРОДАЖА [10:40:19]line ТРК (МРК, ГНК) : 42 [10:40:19]line Товар: 2710124130 [10:40:19]line Аи-92-К-5 [10:40:19]line 5.900 * 67.80 [10:40:19]line = 400.02 [10:40:19]line НДС 12% НСП 1% [10:40:19]line > о реализуемом товаре [10:40:19]line ОКРУГЛЕНИЕ: -0.02 [10:40:19]line ИТОГО: 400.00 [10:40:19]line Внесено: 400.00 [10:40:19]line СДАЧА: 0.00 [10:40:19]line НСП 1% : 3.54 [10:40:19]line НДС 12% : 42.48 [10:40:19]line Наличными: 400.00 [10:40:19]line Безнал.: 0.00 [10:40:19]line Место: АЗС № 136 "Партнер Нефть" [10:40:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:40:19]line СНО: Общий режим [10:40:19]line Чек 86 19.08.2024 10:40 [10:40:19]line Смена: 452 ФФД: 1.0 [10:40:19]line ЗНМ: 0300000067 [10:40:19]line РНМ: 0000000000092569 [10:40:19]line Версия ККМ: 001 [10:40:19]line ФМ: 0000000000871776 [10:40:19]line ФД: 139251 [10:40:19]line ФПД: 226543662011253 [10:40:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104020&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139251&fm=226543662011253&tin=02508201610067®Number=0000000000092569&sum=40000 [10:40:19]OFD Sender: Processing packet 139251 [packets to send 137, broken 136] [10:40:19]ProducePacketName [10:40:19]name=ofd_packets/00139251 [10:40:19]OFD Sender: To server: pG, [10:40:19]CommunicateWithHost lk.salyk.kg:30040 [10:40:19]ConnectInit lk.salyk.kg [10:40:19]written 0, free lines is 4095 [10:40:19]Connected sock=11 [10:40: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 37 36 0F 01 00 00 B1 04 07 01 61 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 56 00 00 00 F4 03 04 00 14 21 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 1F 02 00 35 04 06 00 CE 0A 4E 80 13 75 BF BB 20 06 15 36 7F A8 [10:40:20]Write to MH i2c: 01 00 00 C0 1A DA [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 C0 1A 00 00 00 00 00 D1 0C BE [10:40:20]RasterBufferAndPrint [10:40:20]line [10:40:20]line [10:40:20]line [10:40:20]line [10:40:20]line [10:40:20]written 0, free lines is 3284 [10:40:20]MH_Cut [10:40:20]Write to MH i2c: D1 01 00 C7 1A 01 B3 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: D1 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: D1 01 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: D1 01 00 C7 1A 00 B2 [10:40:20]Write to MH i2c: 01 00 00 C8 1A E2 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F8 60 47 00 22 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 1F 02 00 F4 03 04 00 AA C7 C2 66 B6 04 01 00 00 66 79 D7 9F 87 34 17 AC [10:40:20]CommunicateWithHost err = 0 [10:40:20]CheckOFDResponse [10:40:20]1017 (14) - 77093643461234 [10:40:20]1041 (16) - 0000000000871776 [10:40:20]1040 (4) - 139251 [10:40:20]1012 (4) - 19.08.2024 04:18 [10:40:20]1206 (1) - 0 [10:40:20]OFD Sender: Remove packet 139251 [10:40:20]ProducePacketName [10:40:20]name=ofd_packets/00139251 [10:40:20]NVStorageDeleteData [10:40:20]OFD Sender: No OFD packet to send [10:40:20]*** Cut start [10:40:20]*** Partial cut [10:40:20]*** CUTSNS_PIN = 1 [10:40:20]*** CUTSNS_PIN = 0 [10:40:21]*** Brake cut motor [10:40:21]Read from MH i2c: 01 [10:40:21]MH_I2C_Read... [10:40:21]*** Stop cut motor [10:40:21]*** Cut end [10:40:21]Read from MH i2c: 01 07 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 C8 1A 00 00 00 00 00 FF 0F F7 [10:40:21]process_action close_receipt done [10:40:21]requested_data is exist [10:40:21]produce_requested_data [10:40:21]requested_item fm.sn is exist - process it [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 11 00 00 [10:40:21]Write to MH i2c: E2 08 00 C9 1A 80 11 00 00 00 00 00 00 5D [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 C9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [10:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:40:21]wFMCommunicate OK [10:40:21]requested_item fd.num is exist - process it [10:40:21]SAM_PROTO_GetFieldsCounters [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 13 00 00 [10:40:21]Write to MH i2c: E2 08 00 CA 1A 80 13 00 00 00 00 00 00 60 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 62 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 62 00 CA 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [10:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_GetFieldsCounters done [10:40:21]requested_item shift.num is exist - process it [10:40:21]requested_item shift.opened is exist - process it [10:40:21]req_shift_opened [10:40:21]FM_GetShiftState [10:40:21]SAM_PROTO_GetShiftState [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 13 01 00 [10:40:21]Write to MH i2c: E2 08 00 CB 1A 80 13 01 00 00 00 00 00 62 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0E 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0E 00 CB 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 19 [10:40:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_GetShiftState done [10:40:21]FM_GetShiftState done [10:40:21]req_shift_opened done [10:40:21]requested_item shift.open_date is exist - process it [10:40:21]req_shift_open_date [10:40:21]req_shift_open_date done [10:40:21]produce_requested_data done [10:40:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139251,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:40:21]process_action_free close_receipt [10:40:21]json_value_free [10:40:21]json_value_free done [10:40:21]process_json_proto returns [10:40:21]Send response to host [10:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139251,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:40:21]free response buf [10:40:21]execute_script done [10:40:21]execute_script returns [10:40:21]free content buf [10:40:21]Sock 7.Close socket [10:40:21]Sock 7.Thread stoped [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:27]accept exits with 9 [10:48:27]New connection [10:48:27]New thread 3067202916 created [10:48:27]Thread 3067059556 joined [10:48:27]Waiting for new connection... [10:48:27] Sock 9.Parse request [10:48:27]Sock 9.Check first char [10:48:27]Sock 9.First char is OK [10:48:27]request: POST /json_proto HTTP/1.0 [10:48:27]Method: POST [10:48:27]URL: /json_proto [10:48:27]Method is POST - this is cgi request [10:48:27]url: /json_proto [10:48:27]query_string will be loaded in cgi processing [10:48:27]execute_cgi json_proto POST (null) [10:48:27]execute_cgi path=json_proto method=POST [10:48:27]POST find Content-Length [10:48:27]Host: 172.17.45.67:8080 [10:48:27]Content-Length: 677 [10:48:27]Content-Type: application/json [10:48:27] [10:48:27]POST finish read [10:48:27]Found Content-Length = 677 [10:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:48:27]execute_script... [10:48:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:48:27]POST & json_proto [10:48:27]process_json_proto [10:48:27]json parsed OK: [10:48:27]protocol is kg_v1.0 [10:48:27]action value=close_receipt [10:48:27]process_action close_receipt [10:48:27]cmd_close_receipt [10:48:27]MH_GetDate [10:48:27]Write to MH i2c: F0 00 00 CC 1A D5 [10:48:27]Write i2c OK [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: F0 [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: F0 09 00 [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: F0 09 00 CC 1A 00 FE 22 C3 66 5F 7F 2B 66 96 [10:48:27]GetLastDocTimeStamp 1724064020 [10:48:27]current date 1724064510 [10:48:27]FM_GetShiftState [10:48:27]SAM_PROTO_GetShiftState [10:48:27]wFMCommunicate request_size=4 [10:48:27]MH_SAM_APDU [10:48:27]CAPDU: 80 13 01 00 [10:48:27]Write to MH i2c: E2 08 00 CD 1A 80 13 01 00 00 00 00 00 64 [10:48:27]Write i2c OK [10:48:27]MH_I2C_Read... [10:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:27]Read from MH i2c: E2 [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: E2 0E 00 [10:48:27]MH_I2C_Read... [10:48:27]Read from MH i2c: E2 0E 00 CD 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1B [10:48:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:48:27]wFMCommunicate OK [10:48:27]SAM_PROTO_GetShiftState done [10:48:27]FM_GetShiftState done [10:48:27]opened in 1724027888 [10:48:27]opened+sec_in_day 1724114288 [10:48:27]quantity*price = 50010 [10:48:27]sum+1 = 50012 [10:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 87 19.08.2024 10:48 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139252 ФПД: 66150740144135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104830&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139252&fm=66150740144135&tin=02508201610067®Number=0000000000092569&sum=50000 [10:48:29]StoreToDocumentArchive [10:48:29]shift 452 fd 139252 [10:48:29]save to /storage/0452/doc_00139252 [10:48:29]save last doc name /storage/0452/doc_00139252 to /storage/kkm_last_doc_name [10:48:29]save OK [10:48:29]Clear old archive folders... [10:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:29]tlvbuf is 01E5EA70 [10:48:29]SAM_PROTO_ClearQueue [10:48:29]wFMCommunicate request_size=4 [10:48:29]MH_SAM_APDU [10:48:29]CAPDU: 80 09 00 00 [10:48:29]Write to MH i2c: E2 08 00 DA 1A 80 09 00 00 00 00 00 00 66 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:29]Read from MH i2c: E2 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 DA 1A 00 90 00 68 [10:48:29]RAPDU: 90 00 [10:48:29]wFMCommunicate OK [10:48:29]SAM_PROTO_ClearQueue done [10:48:29]KKMCreateOFDPacket [10:48:29]OFDProtocolAddRootSTLVToBuf [10:48:29]FM_MakeSignedData [10:48:29]FM_MakeSignedData [10:48:29]SAM_PROTO_SignData [10:48:29]wFMCommunicate request_size=4 [10:48:29]MH_SAM_APDU [10:48:29]CAPDU: 80 0D 01 02 [10:48:29]Write to MH i2c: E2 08 00 DB 1A 80 0D 01 02 00 00 00 00 6E [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:29]Read from MH i2c: E2 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 DB 1A 00 90 00 69 [10:48:29]RAPDU: 90 00 [10:48:29]wFMCommunicate OK [10:48:29]wFMCommunicate request_size=255 [10:48:29]MH_SAM_APDU [10:48:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FE 22 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 1F 02 00 35 04 06 00 3C [10:48:29]Write to MH i2c: E2 02 01 DC 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FE 22 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 1F 02 00 35 04 06 00 3C 00 00 95 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:29]Read from MH i2c: E2 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 DC 1A 00 90 00 6A [10:48:29]RAPDU: 90 00 [10:48:29]wFMCommunicate OK [10:48:29]wFMCommunicate request_size=10 [10:48:29]MH_SAM_APDU [10:48:29]CAPDU: 80 0D 02 02 05 29 EB 5E 30 07 [10:48:29]Write to MH i2c: E2 0D 00 DD 1A 80 0D 02 02 05 00 29 EB 5E 30 07 00 00 24 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:29]Read from MH i2c: E2 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 DD 1A 00 90 00 6B [10:48:29]RAPDU: 90 00 [10:48:29]wFMCommunicate OK [10:48:29]wFMCommunicate request_size=4 [10:48:29]MH_SAM_APDU [10:48:29]CAPDU: 80 0D 03 02 [10:48:29]Write to MH i2c: E2 08 00 DE 1A 80 0D 03 02 00 00 00 00 73 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:29]Read from MH i2c: E2 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 0B 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 0B 00 DE 1A 00 86 8D 68 0B DA 1E 63 3F 90 00 94 [10:48:29]RAPDU: 86 8D 68 0B DA 1E 63 3F 90 00 [10:48:29]wFMCommunicate OK [10:48:29]SAM_PROTO_SignData done [10:48:29]FM_MakeSignedData done [10:48:29]CreateOFDProtocolMessage [10:48:29]wFMCommunicate request_size=4 [10:48:29]MH_SAM_APDU [10:48:29]CAPDU: 80 11 00 00 [10:48:29]Write to MH i2c: E2 08 00 DF 1A 80 11 00 00 00 00 00 00 73 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:29]Read from MH i2c: E2 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 17 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 17 00 DF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CA [10:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:48:29]wFMCommunicate OK [10:48:29]CreateOFDProtocolMessage done [10:48:29]OFDSenderStorePacket 139252 [10:48:29]StoreOFDPacket docnum=139252 [10:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 12 07 01 7F 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FE 22 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 1F 02 00 35 04 06 00 3C 29 EB 5E 30 07 86 8D 68 0B DA 1E 63 3F [10:48:29]CheckFolder [10:48:29]dirname=/storage/ofd_packets [10:48:29]CheckFolder done [10:48:29]ProducePacketName [10:48:29]name=ofd_packets/00139252 [10:48:29]NVStorageSaveData ofd_packets/00139252 [10:48:29]File name is /storage/ofd_packets/00139252 [10:48:29]Write 301 bytes [10:48:29]NVStorageSaveData done [10:48:29]OFDSenderStorePacket done [10:48:29]KKMCreateOFDPacket done [10:48:29]NVStorageSaveData kkm_last_timestamp [10:48:29]File name is /storage/kkm_last_timestamp [10:48:29]Write 4 bytes [10:48:29]NVStorageSaveData done [10:48:29]ExternCall_PrintAddStr [10:48:29]wPrintStart [10:48:29]Write to MH i2c: 01 00 00 E0 1A FA [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: 01 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: 01 07 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: 01 07 00 E0 1A 00 00 00 00 00 FF 0F 0F [10:48:29]RasterBufferAndPrint [10:48:29]line Счет N : (1)593093 [10:48:29]line ИНН: 02508201610067 [10:48:29]line Контрольно-Кассовый Чек [10:48:29]line ПРОДАЖА [10:48:29]line ТРК (МРК, ГНК) : 51 [10:48:29]line Товар: 2710124500 [10:48:29]line Аи-95-К-5 [10:48:29]line 6.740 * 74.20 [10:48:29]line = 500.11 [10:48:29]line НДС 12% НСП 1% [10:48:29]line > о реализуемом товаре [10:48:29]line ОКРУГЛЕНИЕ: -0.11 [10:48:29]line ИТОГО: 500.00 [10:48:29]line Внесено: 500.00 [10:48:29]line СДАЧА: 0.00 [10:48:29]line НСП 1% : 4.43 [10:48:29]line НДС 12% : 53.11 [10:48:29]line Наличными: 500.00 [10:48:29]line Безнал.: 0.00 [10:48:29]line Место: АЗС № 136 "Партнер Нефть" [10:48:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:48:29]line СНО: Общий режим [10:48:29]line Чек 87 19.08.2024 10:48 [10:48:29]line Смена: 452 ФФД: 1.0 [10:48:29]line ЗНМ: 0300000067 [10:48:29]line РНМ: 0000000000092569 [10:48:29]line Версия ККМ: 001 [10:48:29]line ФМ: 0000000000871776 [10:48:29]line ФД: 139252 [10:48:29]line ФПД: 66150740144135 [10:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104830&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139252&fm=66150740144135&tin=02508201610067®Number=0000000000092569&sum=50000 [10:48:29]OFD Sender: Processing packet 139252 [packets to send 137, broken 136] [10:48:29]ProducePacketName [10:48:29]name=ofd_packets/00139252 [10:48:29]OFD Sender: To server: pG, [10:48:29]CommunicateWithHost lk.salyk.kg:30040 [10:48:29]ConnectInit lk.salyk.kg [10:48:29]written 0, free lines is 4095 [10:48:30]Connected sock=10 [10:48: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 37 36 0F 01 00 00 80 12 07 01 7F 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FE 22 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 1F 02 00 35 04 06 00 3C 29 EB 5E 30 07 86 8D 68 0B DA 1E 63 3F [10:48: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 37 36 4F 00 00 00 C5 BF 47 00 D6 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 37 36 10 04 04 00 F4 1F 02 00 F4 03 04 00 94 C9 C2 66 B6 04 01 00 00 66 2C F5 E7 B0 E7 0A 64 [10:48:30]CommunicateWithHost err = 0 [10:48:30]CheckOFDResponse [10:48:30]1017 (14) - 77093643461234 [10:48:30]1041 (16) - 0000000000871776 [10:48:30]1040 (4) - 139252 [10:48:30]1012 (4) - 19.08.2024 04:27 [10:48:30]1206 (1) - 0 [10:48:30]OFD Sender: Remove packet 139252 [10:48:30]ProducePacketName [10:48:30]name=ofd_packets/00139252 [10:48:30]NVStorageDeleteData [10:48:30]Write to MH i2c: 01 00 00 0B 1B 26 [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: 01 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: 01 07 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: 01 07 00 0B 1B 00 00 00 00 00 CB 0C 04 [10:48:30]RasterBufferAndPrint [10:48:30]line [10:48:30]line [10:48:30]line [10:48:30]line [10:48:30]line [10:48:30]written 0, free lines is 3281 [10:48:30]MH_Cut [10:48:30]Write to MH i2c: D1 01 00 12 1B 01 FF [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: D1 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: D1 01 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: D1 01 00 12 1B 00 FE [10:48:30]Write to MH i2c: 01 00 00 13 1B 2E [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]OFD Sender: No OFD packet to send [10:48:31]*** Cut start [10:48:31]*** Partial cut [10:48:31]*** CUTSNS_PIN = 1 [10:48:31]*** CUTSNS_PIN = 0 [10:48:31]*** Brake cut motor [10:48:31]Read from MH i2c: 01 [10:48:31]MH_I2C_Read... [10:48:31]*** Stop cut motor [10:48:31]*** Cut end [10:48:31]Read from MH i2c: 01 07 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: 01 07 00 13 1B 00 00 00 00 00 FF 0F 43 [10:48:31]process_action close_receipt done [10:48:31]requested_data is exist [10:48:31]produce_requested_data [10:48:31]requested_item fm.sn is exist - process it [10:48:31]wFMCommunicate request_size=4 [10:48:31]MH_SAM_APDU [10:48:31]CAPDU: 80 11 00 00 [10:48:31]Write to MH i2c: E2 08 00 14 1B 80 11 00 00 00 00 00 00 A9 [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:31]Read from MH i2c: E2 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 17 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 17 00 14 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 00 [10:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:48:31]wFMCommunicate OK [10:48:31]requested_item fd.num is exist - process it [10:48:31]SAM_PROTO_GetFieldsCounters [10:48:31]wFMCommunicate request_size=4 [10:48:31]MH_SAM_APDU [10:48:31]CAPDU: 80 13 00 00 [10:48:31]Write to MH i2c: E2 08 00 15 1B 80 13 00 00 00 00 00 00 AC [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:31]Read from MH i2c: E2 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 62 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 62 00 15 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [10:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:31]wFMCommunicate OK [10:48:31]SAM_PROTO_GetFieldsCounters done [10:48:31]requested_item shift.num is exist - process it [10:48:31]requested_item shift.opened is exist - process it [10:48:31]req_shift_opened [10:48:31]FM_GetShiftState [10:48:31]SAM_PROTO_GetShiftState [10:48:31]wFMCommunicate request_size=4 [10:48:31]MH_SAM_APDU [10:48:31]CAPDU: 80 13 01 00 [10:48:31]Write to MH i2c: E2 08 00 16 1B 80 13 01 00 00 00 00 00 AE [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:31]Read from MH i2c: E2 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 0E 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: E2 0E 00 16 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 65 [10:48:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:48:32]wFMCommunicate OK [10:48:32]SAM_PROTO_GetShiftState done [10:48:32]FM_GetShiftState done [10:48:32]req_shift_opened done [10:48:32]requested_item shift.open_date is exist - process it [10:48:32]req_shift_open_date [10:48:32]req_shift_open_date done [10:48:32]produce_requested_data done [10:48:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139252,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:48:32]process_action_free close_receipt [10:48:32]json_value_free [10:48:32]json_value_free done [10:48:32]process_json_proto returns [10:48:32]Send response to host [10:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139252,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:48:32]free response buf [10:48:32]execute_script done [10:48:32]execute_script returns [10:48:32]free content buf [10:48:32]Sock 9.Close socket [10:48:32]Sock 9.Thread stoped [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:53]accept exits with 7 [10:48:53]New connection [10:48:53]New thread 3067059556 created [10:48:53]Thread 3067202916 joined [10:48:53]Waiting for new connection... [10:48:53] Sock 7.Parse request [10:48:53]Sock 7.Check first char [10:48:53]Sock 7.First char is OK [10:48:53]request: POST /json_proto HTTP/1.0 [10:48:53]Method: POST [10:48:53]URL: /json_proto [10:48:53]Method is POST - this is cgi request [10:48:53]url: /json_proto [10:48:53]query_string will be loaded in cgi processing [10:48:53]execute_cgi json_proto POST (null) [10:48:53]execute_cgi path=json_proto method=POST [10:48:53]POST find Content-Length [10:48:53]Host: 172.17.45.67:8080 [10:48:53]Content-Length: 677 [10:48:53]Content-Type: application/json [10:48:53] [10:48:53]POST finish read [10:48:53]Found Content-Length = 677 [10:48:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.020, "sum" : 340.36, "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" ] } } [10:48:53]execute_script... [10:48: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)593094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.020, "sum" : 340.36, "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" ] } } [10:48:53]POST & json_proto [10:48:53]process_json_proto [10:48:53]json parsed OK: [10:48:53]protocol is kg_v1.0 [10:48:53]action value=close_receipt [10:48:53]process_action close_receipt [10:48:53]cmd_close_receipt [10:48:53]MH_GetDate [10:48:53]Write to MH i2c: F0 00 00 17 1B 21 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: F0 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: F0 09 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: F0 09 00 17 1B 00 18 23 C3 66 5F 7F 2B 66 FD [10:48:53]GetLastDocTimeStamp 1724064510 [10:48:53]current date 1724064536 [10:48:53]FM_GetShiftState [10:48:53]SAM_PROTO_GetShiftState [10:48:53]wFMCommunicate request_size=4 [10:48:53]MH_SAM_APDU [10:48:53]CAPDU: 80 13 01 00 [10:48:53]Write to MH i2c: E2 08 00 18 1B 80 13 01 00 00 00 00 00 B0 [10:48:53]Write i2c OK [10:48:53]MH_I2C_Read... [10:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:53]Read from MH i2c: E2 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 0E 00 [10:48:53]MH_I2C_Read... [10:48:53]Read from MH i2c: E2 0E 00 18 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 67 [10:48:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:48:53]wFMCommunicate OK [10:48:53]SAM_PROTO_GetShiftState done [10:48:53]FM_GetShiftState done [10:48:53]opened in 1724027888 [10:48:53]opened+sec_in_day 1724114288 [10:48:53]quantity*price = 34035 [10:48:53]sum+1 = 34037 [10:48:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.14 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 88 19.08.2024 10:48 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139253 ФПД: 44618841420935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104856&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139253&fm=44618841420935&tin=02508201610067®Number=0000000000092569&sum=34000 [10:48:54]StoreToDocumentArchive [10:48:54]shift 452 fd 139253 [10:48:54]save to /storage/0452/doc_00139253 [10:48:54]save last doc name /storage/0452/doc_00139253 to /storage/kkm_last_doc_name [10:48:54]save OK [10:48:54]Clear old archive folders... [10:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:54]tlvbuf is 01D84D20 [10:48:54]SAM_PROTO_ClearQueue [10:48:54]wFMCommunicate request_size=4 [10:48:54]MH_SAM_APDU [10:48:54]CAPDU: 80 09 00 00 [10:48:54]Write to MH i2c: E2 08 00 25 1B 80 09 00 00 00 00 00 00 B2 [10:48:54]Write i2c OK [10:48:54]MH_I2C_Read... [10:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:54]Read from MH i2c: E2 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: E2 03 00 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: E2 03 00 25 1B 00 90 00 B4 [10:48:54]RAPDU: 90 00 [10:48:54]wFMCommunicate OK [10:48:54]SAM_PROTO_ClearQueue done [10:48:54]KKMCreateOFDPacket [10:48:54]OFDProtocolAddRootSTLVToBuf [10:48:54]FM_MakeSignedData [10:48:54]FM_MakeSignedData [10:48:54]SAM_PROTO_SignData [10:48:54]wFMCommunicate request_size=4 [10:48:54]MH_SAM_APDU [10:48:54]CAPDU: 80 0D 01 02 [10:48:54]Write to MH i2c: E2 08 00 26 1B 80 0D 01 02 00 00 00 00 BA [10:48:54]Write i2c OK [10:48:54]MH_I2C_Read... [10:48:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:54]Read from MH i2c: E2 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: E2 03 00 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: E2 03 00 26 1B 00 90 00 B5 [10:48:54]RAPDU: 90 00 [10:48:54]wFMCommunicate OK [10:48:54]wFMCommunicate request_size=255 [10:48:54]MH_SAM_APDU [10:48: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 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 58 00 00 00 F4 03 04 00 18 23 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 1F 02 00 35 04 06 00 28 [10:48:54]Write to MH i2c: E2 02 01 27 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 58 00 00 00 F4 03 04 00 18 23 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 1F 02 00 35 04 06 00 28 00 00 4C [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 03 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 03 00 27 1B 00 90 00 B6 [10:48:55]RAPDU: 90 00 [10:48:55]wFMCommunicate OK [10:48:55]wFMCommunicate request_size=10 [10:48:55]MH_SAM_APDU [10:48:55]CAPDU: 80 0D 02 02 05 94 A2 31 74 87 [10:48:55]Write to MH i2c: E2 0D 00 28 1B 80 0D 02 02 05 00 94 A2 31 74 87 00 00 29 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 03 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 03 00 28 1B 00 90 00 B7 [10:48:55]RAPDU: 90 00 [10:48:55]wFMCommunicate OK [10:48:55]wFMCommunicate request_size=4 [10:48:55]MH_SAM_APDU [10:48:55]CAPDU: 80 0D 03 02 [10:48:55]Write to MH i2c: E2 08 00 29 1B 80 0D 03 02 00 00 00 00 BF [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 0B 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 0B 00 29 1B 00 DB 8B 30 DF C0 5B 9A A7 90 00 91 [10:48:55]RAPDU: DB 8B 30 DF C0 5B 9A A7 90 00 [10:48:55]wFMCommunicate OK [10:48:55]SAM_PROTO_SignData done [10:48:55]FM_MakeSignedData done [10:48:55]CreateOFDProtocolMessage [10:48:55]wFMCommunicate request_size=4 [10:48:55]MH_SAM_APDU [10:48:55]CAPDU: 80 11 00 00 [10:48:55]Write to MH i2c: E2 08 00 2A 1B 80 11 00 00 00 00 00 00 BF [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 17 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 17 00 2A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 16 [10:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:48:55]wFMCommunicate OK [10:48:55]CreateOFDProtocolMessage done [10:48:55]OFDSenderStorePacket 139253 [10:48:55]StoreOFDPacket docnum=139253 [10:48:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B2 A2 07 01 5B 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 58 00 00 00 F4 03 04 00 18 23 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 1F 02 00 35 04 06 00 28 94 A2 31 74 87 DB 8B 30 DF C0 5B 9A A7 [10:48:55]CheckFolder [10:48:55]dirname=/storage/ofd_packets [10:48:55]CheckFolder done [10:48:55]ProducePacketName [10:48:55]name=ofd_packets/00139253 [10:48:55]NVStorageSaveData ofd_packets/00139253 [10:48:55]File name is /storage/ofd_packets/00139253 [10:48:55]Write 301 bytes [10:48:55]NVStorageSaveData done [10:48:55]OFDSenderStorePacket done [10:48:55]KKMCreateOFDPacket done [10:48:55]NVStorageSaveData kkm_last_timestamp [10:48:55]File name is /storage/kkm_last_timestamp [10:48:55]Write 4 bytes [10:48:55]NVStorageSaveData done [10:48:55]ExternCall_PrintAddStr [10:48:55]wPrintStart [10:48:55]Write to MH i2c: 01 00 00 2B 1B 46 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: 01 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: 01 07 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: 01 07 00 2B 1B 00 00 00 00 00 FF 0F 5B [10:48:55]RasterBufferAndPrint [10:48:55]line Счет N : (1)593094 [10:48:55]line ИНН: 02508201610067 [10:48:55]line Контрольно-Кассовый Чек [10:48:55]line ПРОДАЖА [10:48:55]line ТРК (МРК, ГНК) : 32 [10:48:55]line Товар: 2710124130 [10:48:55]line Аи-92-К-5 [10:48:55]line 5.020 * 67.80 [10:48:55]line = 340.36 [10:48:55]line НДС 12% НСП 1% [10:48:55]line > о реализуемом товаре [10:48:55]line ОКРУГЛЕНИЕ: -0.36 [10:48:55]line ИТОГО: 340.00 [10:48:55]line Внесено: 340.00 [10:48:55]line СДАЧА: 0.00 [10:48:55]line НСП 1% : 3.01 [10:48:55]line НДС 12% : 36.14 [10:48:55]line Наличными: 340.00 [10:48:55]line Безнал.: 0.00 [10:48:55]line Место: АЗС № 136 "Партнер Нефть" [10:48:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:48:55]line СНО: Общий режим [10:48:55]line Чек 88 19.08.2024 10:48 [10:48:55]line Смена: 452 ФФД: 1.0 [10:48:55]line ЗНМ: 0300000067 [10:48:55]line РНМ: 0000000000092569 [10:48:55]line Версия ККМ: 001 [10:48:55]line ФМ: 0000000000871776 [10:48:55]line ФД: 139253 [10:48:55]line ФПД: 44618841420935 [10:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104856&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139253&fm=44618841420935&tin=02508201610067®Number=0000000000092569&sum=34000 [10:48:55]written 0, free lines is 4095 [10:48:55]OFD Sender: Processing packet 139253 [packets to send 137, broken 136] [10:48:55]ProducePacketName [10:48:55]name=ofd_packets/00139253 [10:48:55]OFD Sender: To server: pG, [10:48:55]CommunicateWithHost lk.salyk.kg:30040 [10:48:55]ConnectInit lk.salyk.kg [10:48:55]Connected sock=10 [10:48: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 37 36 0F 01 00 00 B2 A2 07 01 5B 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 58 00 00 00 F4 03 04 00 18 23 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 1F 02 00 35 04 06 00 28 94 A2 31 74 87 DB 8B 30 DF C0 5B 9A A7 [10:48:55]Write to MH i2c: 01 00 00 56 1B 71 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: 01 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: 01 07 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: 01 07 00 56 1B 00 00 00 00 00 CD 0C 51 [10:48:55]RasterBufferAndPrint [10:48:55]line [10:48:55]line [10:48:55]line [10:48:55]line [10:48:55]line [10:48:55]written 0, free lines is 3285 [10:48:55]MH_Cut [10:48:55]Write to MH i2c: D1 01 00 5D 1B 01 4A [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: D1 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: D1 01 00 [10:48:55]MH_I2C_Read... [10:48: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 37 36 4F 00 00 00 25 42 47 00 B3 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 37 36 10 04 04 00 F5 1F 02 00 F4 03 04 00 AE C9 C2 66 B6 04 01 00 00 74 EA C0 B8 E9 29 9A 32 [10:48:55]CommunicateWithHost err = 0 [10:48:55]CheckOFDResponse [10:48:55]1017 (14) - 77093643461234 [10:48:55]1041 (16) - 0000000000871776 [10:48:55]1040 (4) - 139253 [10:48:55]1012 (4) - 19.08.2024 04:27 [10:48:55]1206 (1) - 0 [10:48:55]OFD Sender: Remove packet 139253 [10:48:55]ProducePacketName [10:48:55]name=ofd_packets/00139253 [10:48:55]NVStorageDeleteData [10:48:55]Read from MH i2c: D1 01 00 5D 1B 00 49 [10:48:55]Write to MH i2c: 01 00 00 5E 1B 79 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:56]OFD Sender: No OFD packet to send [10:48:56]*** Cut start [10:48:56]*** Partial cut [10:48:56]*** CUTSNS_PIN = 1 [10:48:56]*** CUTSNS_PIN = 0 [10:48:56]*** Brake cut motor [10:48:57]Read from MH i2c: 01 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: 01 07 00 [10:48:57]MH_I2C_Read... [10:48:57]*** Stop cut motor [10:48:57]*** Cut end [10:48:57]Read from MH i2c: 01 07 00 5E 1B 00 00 00 00 00 FF 0F 8E [10:48:57]process_action close_receipt done [10:48:57]requested_data is exist [10:48:57]produce_requested_data [10:48:57]requested_item fm.sn is exist - process it [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 11 00 00 [10:48:57]Write to MH i2c: E2 08 00 5F 1B 80 11 00 00 00 00 00 00 F4 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:57]Read from MH i2c: E2 17 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 17 00 5F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [10:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:48:57]wFMCommunicate OK [10:48:57]requested_item fd.num is exist - process it [10:48:57]SAM_PROTO_GetFieldsCounters [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 13 00 00 [10:48:57]Write to MH i2c: E2 08 00 60 1B 80 13 00 00 00 00 00 00 F7 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 62 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 62 00 60 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:57]wFMCommunicate OK [10:48:57]SAM_PROTO_GetFieldsCounters done [10:48:57]requested_item shift.num is exist - process it [10:48:57]requested_item shift.opened is exist - process it [10:48:57]req_shift_opened [10:48:57]FM_GetShiftState [10:48:57]SAM_PROTO_GetShiftState [10:48:57]wFMCommunicate request_size=4 [10:48:57]MH_SAM_APDU [10:48:57]CAPDU: 80 13 01 00 [10:48:57]Write to MH i2c: E2 08 00 61 1B 80 13 01 00 00 00 00 00 F9 [10:48:57]Write i2c OK [10:48:57]MH_I2C_Read... [10:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:57]Read from MH i2c: E2 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 0E 00 [10:48:57]MH_I2C_Read... [10:48:57]Read from MH i2c: E2 0E 00 61 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B0 [10:48:57]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:48:57]wFMCommunicate OK [10:48:57]SAM_PROTO_GetShiftState done [10:48:57]FM_GetShiftState done [10:48:57]req_shift_opened done [10:48:57]requested_item shift.open_date is exist - process it [10:48:57]req_shift_open_date [10:48:57]req_shift_open_date done [10:48:57]produce_requested_data done [10:48:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139253,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:48:57]process_action_free close_receipt [10:48:57]json_value_free [10:48:57]json_value_free done [10:48:57]process_json_proto returns [10:48:57]Send response to host [10:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139253,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:48:57]free response buf [10:48:57]execute_script done [10:48:57]execute_script returns [10:48:57]free content buf [10:48:57]Sock 7.Close socket [10:48:57]Sock 7.Thread stoped [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:28]accept exits with 9 [10:52:28]New connection [10:52:28]New thread 3067202916 created [10:52:28]Thread 3067059556 joined [10:52:28]Waiting for new connection... [10:52:28] Sock 9.Parse request [10:52:28]Sock 9.Check first char [10:52:28]Sock 9.First char is OK [10:52:28]request: POST /json_proto HTTP/1.0 [10:52:28]Method: POST [10:52:28]URL: /json_proto [10:52:28]Method is POST - this is cgi request [10:52:28]url: /json_proto [10:52:28]query_string will be loaded in cgi processing [10:52:28]execute_cgi json_proto POST (null) [10:52:28]execute_cgi path=json_proto method=POST [10:52:28]POST find Content-Length [10:52:28]Host: 172.17.45.67:8080 [10:52:28]Content-Length: 658 [10:52:28]Content-Type: application/json [10:52:28] [10:52:28]POST finish read [10:52:28]Found Content-Length = 658 [10:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:52:28]execute_script... [10:52: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)593095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:52:28]POST & json_proto [10:52:28]process_json_proto [10:52:28]json parsed OK: [10:52:28]protocol is kg_v1.0 [10:52:28]action value=close_receipt [10:52:28]process_action close_receipt [10:52:28]cmd_close_receipt [10:52:28]MH_GetDate [10:52:28]Write to MH i2c: F0 00 00 62 1B 6C [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: F0 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: F0 09 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: F0 09 00 62 1B 00 EF 23 C3 66 5F 7F 2B 66 1F [10:52:28]GetLastDocTimeStamp 1724064536 [10:52:28]current date 1724064751 [10:52:28]FM_GetShiftState [10:52:28]SAM_PROTO_GetShiftState [10:52:28]wFMCommunicate request_size=4 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 13 01 00 [10:52:28]Write to MH i2c: E2 08 00 63 1B 80 13 01 00 00 00 00 00 FB [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 0E 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 0E 00 63 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B2 [10:52:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:52:28]wFMCommunicate OK [10:52:28]SAM_PROTO_GetShiftState done [10:52:28]FM_GetShiftState done [10:52:28]opened in 1724027888 [10:52:28]opened+sec_in_day 1724114288 [10:52:28]quantity*price = 40041 [10:52:28]sum+1 = 40043 [10:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 89 19.08.2024 10:52 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139254 ФПД: 191653496755653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105231&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139254&fm=191653496755653&tin=02508201610067®Number=0000000000092569&sum=40000 [10:52:29]StoreToDocumentArchive [10:52:29]shift 452 fd 139254 [10:52:29]save to /storage/0452/doc_00139254 [10:52:29]save last doc name /storage/0452/doc_00139254 to /storage/kkm_last_doc_name [10:52:29]save OK [10:52:29]Clear old archive folders... [10:52:29]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:52:29]tlvbuf is 01D670E0 [10:52:29]SAM_PROTO_ClearQueue [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 09 00 00 [10:52:29]Write to MH i2c: E2 08 00 70 1B 80 09 00 00 00 00 00 00 FD [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 70 1B 00 90 00 FF [10:52:29]RAPDU: 90 00 [10:52:29]wFMCommunicate OK [10:52:29]SAM_PROTO_ClearQueue done [10:52:29]KKMCreateOFDPacket [10:52:29]OFDProtocolAddRootSTLVToBuf [10:52:29]FM_MakeSignedData [10:52:29]FM_MakeSignedData [10:52:29]SAM_PROTO_SignData [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 0D 01 02 [10:52:29]Write to MH i2c: E2 08 00 71 1B 80 0D 01 02 00 00 00 00 05 [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 71 1B 00 90 00 00 [10:52:29]RAPDU: 90 00 [10:52:29]wFMCommunicate OK [10:52:29]wFMCommunicate request_size=253 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 EF 23 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 1F 02 00 35 04 06 00 AE 4E CE 98 15 C5 [10:52:29]Write to MH i2c: E2 00 01 72 1B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 EF 23 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 1F 02 00 35 04 06 00 AE 4E CE 98 15 C5 00 00 0C [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [10:52:30]RAPDU: 90 00 [10:52:30]wFMCommunicate OK [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 0D 03 02 [10:52:30]Write to MH i2c: E2 08 00 73 1B 80 0D 03 02 00 00 00 00 09 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 0B 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 0B 00 73 1B 00 16 DD EB 1A B0 36 7A 4A 90 00 AC [10:52:30]RAPDU: 16 DD EB 1A B0 36 7A 4A 90 00 [10:52:30]wFMCommunicate OK [10:52:30]SAM_PROTO_SignData done [10:52:30]FM_MakeSignedData done [10:52:30]CreateOFDProtocolMessage [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 11 00 00 [10:52:30]Write to MH i2c: E2 08 00 74 1B 80 11 00 00 00 00 00 00 09 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 17 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 17 00 74 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 60 [10:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:52:30]wFMCommunicate OK [10:52:30]CreateOFDProtocolMessage done [10:52:30]OFDSenderStorePacket 139254 [10:52:30]StoreOFDPacket docnum=139254 [10:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 D6 29 00 01 60 E6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 EF 23 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 1F 02 00 35 04 06 00 AE 4E CE 98 15 C5 16 DD EB 1A B0 36 7A 4A [10:52:30]CheckFolder [10:52:30]dirname=/storage/ofd_packets [10:52:30]CheckFolder done [10:52:30]ProducePacketName [10:52:30]name=ofd_packets/00139254 [10:52:30]NVStorageSaveData ofd_packets/00139254 [10:52:30]File name is /storage/ofd_packets/00139254 [10:52:30]Write 294 bytes [10:52:30]NVStorageSaveData done [10:52:30]OFDSenderStorePacket done [10:52:30]KKMCreateOFDPacket done [10:52:30]NVStorageSaveData kkm_last_timestamp [10:52:30]File name is /storage/kkm_last_timestamp [10:52:30]Write 4 bytes [10:52:30]NVStorageSaveData done [10:52:30]ExternCall_PrintAddStr [10:52:30]wPrintStart [10:52:30]Write to MH i2c: 01 00 00 75 1B 90 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 75 1B 00 00 00 00 00 FF 0F A5 [10:52:30]RasterBufferAndPrint [10:52:30]line Счет N : (1)593095 [10:52:30]line ИНН: 02508201610067 [10:52:30]line Контрольно-Кассовый Чек [10:52:30]line ПРОДАЖА [10:52:30]line ТРК (МРК, ГНК) : 53 [10:52:30]line Товар: 2710124130 [10:52:30]line SU-92 [10:52:30]line 5.820 * 68.80 [10:52:30]line = 400.42 [10:52:30]line НДС 12% НСП 1% [10:52:30]line > о реализуемом товаре [10:52:30]line ОКРУГЛЕНИЕ: -0.42 [10:52:30]line ИТОГО: 400.00 [10:52:30]line Внесено: 400.00 [10:52:30]line СДАЧА: 0.00 [10:52:30]line НСП 1% : 3.54 [10:52:30]line НДС 12% : 42.52 [10:52:30]line Наличными: 400.00 [10:52:30]line Безнал.: 0.00 [10:52:30]line Место: АЗС № 136 "Партнер Нефть" [10:52:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:52:30]line СНО: Общий режим [10:52:30]line Чек 89 19.08.2024 10:52 [10:52:30]line Смена: 452 ФФД: 1.0 [10:52:30]line ЗНМ: 0300000067 [10:52:30]line РНМ: 0000000000092569 [10:52:30]line Версия ККМ: 001 [10:52:30]line ФМ: 0000000000871776 [10:52:30]line ФД: 139254 [10:52:30]line ФПД: 191653496755653 [10:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105231&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139254&fm=191653496755653&tin=02508201610067®Number=0000000000092569&sum=40000 [10:52:30]OFD Sender: Processing packet 139254 [packets to send 137, broken 136] [10:52:30]ProducePacketName [10:52:30]name=ofd_packets/00139254 [10:52:30]OFD Sender: To server: pG, [10:52:30]CommunicateWithHost lk.salyk.kg:30040 [10:52:30]ConnectInit lk.salyk.kg [10:52:30]written 0, free lines is 4095 [10:52:30]Connected sock=11 [10:52: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 37 36 08 01 00 00 D6 29 00 01 60 E6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 EF 23 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 1F 02 00 35 04 06 00 AE 4E CE 98 15 C5 16 DD EB 1A B0 36 7A 4A [10:52: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 37 36 4F 00 00 00 11 38 47 00 6D 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 37 36 10 04 04 00 F6 1F 02 00 F4 03 04 00 85 CA C2 66 B6 04 01 00 00 4A 74 CF E4 76 3B 8D 01 [10:52:30]CommunicateWithHost err = 0 [10:52:30]CheckOFDResponse [10:52:30]1017 (14) - 77093643461234 [10:52:30]1041 (16) - 0000000000871776 [10:52:30]1040 (4) - 139254 [10:52:30]1012 (4) - 19.08.2024 04:31 [10:52:30]1206 (1) - 0 [10:52:30]OFD Sender: Remove packet 139254 [10:52:30]ProducePacketName [10:52:30]name=ofd_packets/00139254 [10:52:30]NVStorageDeleteData [10:52:30]Write to MH i2c: 01 00 00 A0 1B BB [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 A0 1B 00 00 00 00 00 D2 0C A0 [10:52:30]RasterBufferAndPrint [10:52:30]line [10:52:30]line [10:52:30]line [10:52:30]line [10:52:30]line [10:52:30]written 0, free lines is 3288 [10:52:30]MH_Cut [10:52:30]Write to MH i2c: D1 01 00 A7 1B 01 94 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: D1 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: D1 01 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: D1 01 00 A7 1B 00 93 [10:52:30]Write to MH i2c: 01 00 00 A8 1B C3 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:31]OFD Sender: No OFD packet to send [10:52:31]*** Cut start [10:52:31]*** Partial cut [10:52:31]*** CUTSNS_PIN = 1 [10:52:31]*** CUTSNS_PIN = 0 [10:52:31]*** Brake cut motor [10:52:32]Read from MH i2c: 01 [10:52:32]*** Stop cut motor [10:52:32]*** Cut end [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: 01 07 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: 01 07 00 A8 1B 00 00 00 00 00 FF 0F D8 [10:52:32]process_action close_receipt done [10:52:32]requested_data is exist [10:52:32]produce_requested_data [10:52:32]requested_item fm.sn is exist - process it [10:52:32]wFMCommunicate request_size=4 [10:52:32]MH_SAM_APDU [10:52:32]CAPDU: 80 11 00 00 [10:52:32]Write to MH i2c: E2 08 00 A9 1B 80 11 00 00 00 00 00 00 3E [10:52:32]Write i2c OK [10:52:32]MH_I2C_Read... [10:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:32]Read from MH i2c: E2 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 17 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 17 00 A9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 95 [10:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:52:32]wFMCommunicate OK [10:52:32]requested_item fd.num is exist - process it [10:52:32]SAM_PROTO_GetFieldsCounters [10:52:32]wFMCommunicate request_size=4 [10:52:32]MH_SAM_APDU [10:52:32]CAPDU: 80 13 00 00 [10:52:32]Write to MH i2c: E2 08 00 AA 1B 80 13 00 00 00 00 00 00 41 [10:52:32]Write i2c OK [10:52:32]MH_I2C_Read... [10:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:32]Read from MH i2c: E2 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 62 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 62 00 AA 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [10:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:32]wFMCommunicate OK [10:52:32]SAM_PROTO_GetFieldsCounters done [10:52:32]requested_item shift.num is exist - process it [10:52:32]requested_item shift.opened is exist - process it [10:52:32]req_shift_opened [10:52:32]FM_GetShiftState [10:52:32]SAM_PROTO_GetShiftState [10:52:32]wFMCommunicate request_size=4 [10:52:32]MH_SAM_APDU [10:52:32]CAPDU: 80 13 01 00 [10:52:32]Write to MH i2c: E2 08 00 AB 1B 80 13 01 00 00 00 00 00 43 [10:52:32]Write i2c OK [10:52:32]MH_I2C_Read... [10:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:32]Read from MH i2c: E2 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 0E 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 0E 00 AB 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FA [10:52:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:52:32]wFMCommunicate OK [10:52:32]SAM_PROTO_GetShiftState done [10:52:32]FM_GetShiftState done [10:52:32]req_shift_opened done [10:52:32]requested_item shift.open_date is exist - process it [10:52:32]req_shift_open_date [10:52:32]req_shift_open_date done [10:52:32]produce_requested_data done [10:52:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139254,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:52:32]process_action_free close_receipt [10:52:32]json_value_free [10:52:32]json_value_free done [10:52:32]process_json_proto returns [10:52:32]Send response to host [10:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139254,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:52:32]free response buf [10:52:32]execute_script done [10:52:32]execute_script returns [10:52:32]free content buf [10:52:32]Sock 9.Close socket [10:52:32]Sock 9.Thread stoped [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]accept exits with 7 [10:56:21]New connection [10:56:21]New thread 3067059556 created [10:56:21]Thread 3067202916 joined [10:56:21]Waiting for new connection... [10:56:21] Sock 7.Parse request [10:56:21]Sock 7.Check first char [10:56:21]Sock 7.First char is OK [10:56:21]request: POST /json_proto HTTP/1.0 [10:56:21]Method: POST [10:56:21]URL: /json_proto [10:56:21]Method is POST - this is cgi request [10:56:21]url: /json_proto [10:56:21]query_string will be loaded in cgi processing [10:56:21]execute_cgi json_proto POST (null) [10:56:21]execute_cgi path=json_proto method=POST [10:56:21]POST find Content-Length [10:56:21]Host: 172.17.45.67:8080 [10:56:21]Content-Length: 792 [10:56:21]Content-Type: application/json [10:56:21] [10:56:21]POST finish read [10:56:21]Found Content-Length = 792 [10:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:21]execute_script... [10:56: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)593096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:21]POST & json_proto [10:56:21]process_json_proto [10:56:21]json parsed OK: [10:56:21]protocol is kg_v1.0 [10:56:21]action value=close_receipt [10:56:21]process_action close_receipt [10:56:21]cmd_close_receipt [10:56:21]MH_GetDate [10:56:21]Write to MH i2c: F0 00 00 AC 1B B6 [10:56:21]Write i2c OK [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: F0 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: F0 09 00 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: F0 09 00 AC 1B 00 D8 24 C3 66 5F 7F 2B 66 53 [10:56:21]GetLastDocTimeStamp 1724064751 [10:56:21]current date 1724064984 [10:56:21]FM_GetShiftState [10:56:21]SAM_PROTO_GetShiftState [10:56:21]wFMCommunicate request_size=4 [10:56:21]MH_SAM_APDU [10:56:21]CAPDU: 80 13 01 00 [10:56:21]Write to MH i2c: E2 08 00 AD 1B 80 13 01 00 00 00 00 00 45 [10:56:21]Write i2c OK [10:56:21]MH_I2C_Read... [10:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:21]Read from MH i2c: E2 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: E2 0E 00 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: E2 0E 00 AD 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FC [10:56:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:56:21]wFMCommunicate OK [10:56:21]SAM_PROTO_GetShiftState done [10:56:21]FM_GetShiftState done [10:56:21]opened in 1724027888 [10:56:21]opened+sec_in_day 1724114288 [10:56:21]quantity*price = 0 [10:56:21]sum+1 = 1 [10:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 90 19.08.2024 10:56 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 139255 ФПД: 236121117206041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105624&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139255&fm=236121117206041&tin=02508201610067®Number=0000000000092569&sum=0 [10:56:22]StoreToDocumentArchive [10:56:22]shift 452 fd 139255 [10:56:22]save to /storage/0452/doc_00139255 [10:56:22]save last doc name /storage/0452/doc_00139255 to /storage/kkm_last_doc_name [10:56:22]save OK [10:56:22]Clear old archive folders... [10:56:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:22]tlvbuf is 01E7A160 [10:56:22]SAM_PROTO_ClearQueue [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 09 00 00 [10:56:22]Write to MH i2c: E2 08 00 BA 1B 80 09 00 00 00 00 00 00 47 [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 BA 1B 00 90 00 49 [10:56:22]RAPDU: 90 00 [10:56:22]wFMCommunicate OK [10:56:22]SAM_PROTO_ClearQueue done [10:56:22]KKMCreateOFDPacket [10:56:22]OFDProtocolAddRootSTLVToBuf [10:56:22]FM_MakeSignedData [10:56:22]FM_MakeSignedData [10:56:22]SAM_PROTO_SignData [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 0D 01 02 [10:56:22]Write to MH i2c: E2 08 00 BB 1B 80 0D 01 02 00 00 00 00 4F [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 03 00 BB 1B 00 90 00 4A [10:56:22]RAPDU: 90 00 [10:56:22]wFMCommunicate OK [10:56:22]wFMCommunicate request_size=255 [10:56:22]MH_SAM_APDU [10:56: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 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 5A 00 00 00 F4 03 04 00 D8 24 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 1F 02 00 35 04 06 00 D6 [10:56:22]Write to MH i2c: E2 02 01 BC 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5A 00 00 00 F4 03 04 00 D8 24 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 1F 02 00 35 04 06 00 D6 00 00 CC [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 BC 1B 00 90 00 4B [10:56:23]RAPDU: 90 00 [10:56:23]wFMCommunicate OK [10:56:23]wFMCommunicate request_size=10 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 0D 02 02 05 C0 3B 50 A6 19 [10:56:23]Write to MH i2c: E2 0D 00 BD 1B 80 0D 02 02 05 00 C0 3B 50 A6 19 00 00 66 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [10:56:23]RAPDU: 90 00 [10:56:23]wFMCommunicate OK [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 0D 03 02 [10:56:23]Write to MH i2c: E2 08 00 BE 1B 80 0D 03 02 00 00 00 00 54 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 0B 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 0B 00 BE 1B 00 60 44 F6 03 D1 0E 54 B3 90 00 D8 [10:56:23]RAPDU: 60 44 F6 03 D1 0E 54 B3 90 00 [10:56:23]wFMCommunicate OK [10:56:23]SAM_PROTO_SignData done [10:56:23]FM_MakeSignedData done [10:56:23]CreateOFDProtocolMessage [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 11 00 00 [10:56:23]Write to MH i2c: E2 08 00 BF 1B 80 11 00 00 00 00 00 00 54 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 17 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 17 00 BF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AB [10:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:56:23]wFMCommunicate OK [10:56:23]CreateOFDProtocolMessage done [10:56:23]OFDSenderStorePacket 139255 [10:56:23]StoreOFDPacket docnum=139255 [10:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DA A5 07 01 89 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 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 5A 00 00 00 F4 03 04 00 D8 24 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 1F 02 00 35 04 06 00 D6 C0 3B 50 A6 19 60 44 F6 03 D1 0E 54 B3 [10:56:23]CheckFolder [10:56:23]dirname=/storage/ofd_packets [10:56:23]CheckFolder done [10:56:23]ProducePacketName [10:56:23]name=ofd_packets/00139255 [10:56:23]NVStorageSaveData ofd_packets/00139255 [10:56:23]File name is /storage/ofd_packets/00139255 [10:56:23]Write 301 bytes [10:56:23]NVStorageSaveData done [10:56:23]OFDSenderStorePacket done [10:56:23]KKMCreateOFDPacket done [10:56:23]NVStorageSaveData kkm_last_timestamp [10:56:23]File name is /storage/kkm_last_timestamp [10:56:23]Write 4 bytes [10:56:23]NVStorageSaveData done [10:56:23]ExternCall_PrintAddStr [10:56:23]wPrintStart [10:56:23]Write to MH i2c: 01 00 00 C0 1B DB [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 07 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 07 00 C0 1B 00 00 00 00 00 FF 0F F0 [10:56:23]RasterBufferAndPrint [10:56:23]line Счет N : (1)593096 [10:56:23]line ИНН: 02508201610067 [10:56:23]line Контрольно-Кассовый Чек [10:56:23]line ПРОДАЖА [10:56:23]line ТРК (МРК, ГНК) : 52 [10:56:23]line Товар: 2710124130 [10:56:23]line Аи-92-К-5 [10:56:23]line 10.000 * 0.00 [10:56:23]line = 0.00 [10:56:23]line НДС 12% НСП 1% [10:56:23]line > о реализуемом товаре [10:56:23]line ИТОГО: 0.00 [10:56:23]line НСП 1% : 0.00 [10:56:23]line НДС 12% : 0.00 [10:56:23]line Наличными: 0.00 [10:56:23]line Безнал.: 0.00 [10:56:23]line Место: АЗС № 136 "Партнер Нефть" [10:56:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:56:23]line СНО: Общий режим [10:56:23]line Чек 90 19.08.2024 10:56 [10:56:23]line Смена: 452 ФФД: 1.0 [10:56:23]line ЗНМ: 0300000067 [10:56:23]line РНМ: 0000000000092569 [10:56:23]line Версия ККМ: 001 [10:56:23]line Талоны: Топливная Карта [10:56:23]line 03824 [10:56:23]line ФМ: 0000000000871776 [10:56:23]line ФД: 139255 [10:56:23]line ФПД: 236121117206041 [10:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105624&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139255&fm=236121117206041&tin=02508201610067®Number=0000000000092569&sum=0 [10:56:23]written 0, free lines is 4095 [10:56:23]OFD Sender: Processing packet 139255 [packets to send 137, broken 136] [10:56:23]ProducePacketName [10:56:23]name=ofd_packets/00139255 [10:56:23]OFD Sender: To server: pG, [10:56:23]CommunicateWithHost lk.salyk.kg:30040 [10:56:23]ConnectInit lk.salyk.kg [10:56:23]Connected sock=10 [10:56: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 37 36 0F 01 00 00 DA A5 07 01 89 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 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 5A 00 00 00 F4 03 04 00 D8 24 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 1F 02 00 35 04 06 00 D6 C0 3B 50 A6 19 60 44 F6 03 D1 0E 54 B3 [10:56:23]Write to MH i2c: 01 00 00 EA 1B 05 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 07 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 DD 0C F5 [10:56:23]RasterBufferAndPrint [10:56:23]line [10:56:23]line [10:56:23]line [10:56:23]line [10:56:23]line [10:56:23]written 0, free lines is 3300 [10:56: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 37 36 4F 00 00 00 45 F9 47 00 A4 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 1F 02 00 F4 03 04 00 6E CB C2 66 B6 04 01 00 00 58 CC D1 F3 69 72 97 0F [10:56:23]CommunicateWithHost err = 0 [10:56:23]CheckOFDResponse [10:56:23]1017 (14) - 77093643461234 [10:56:23]1041 (16) - 0000000000871776 [10:56:23]1040 (4) - 139255 [10:56:23]1012 (4) - 19.08.2024 04:34 [10:56:23]1206 (1) - 0 [10:56:23]OFD Sender: Remove packet 139255 [10:56:23]ProducePacketName [10:56:23]name=ofd_packets/00139255 [10:56:23]NVStorageDeleteData [10:56:23]MH_Cut [10:56:23]Write to MH i2c: D1 01 00 F1 1B 01 DE [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: D1 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: D1 01 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: D1 01 00 F1 1B 00 DD [10:56:23]Write to MH i2c: 01 00 00 F2 1B 0D [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:24]OFD Sender: No OFD packet to send [10:56:24]*** Cut start [10:56:24]*** Partial cut [10:56:24]*** CUTSNS_PIN = 1 [10:56:24]*** CUTSNS_PIN = 0 [10:56:24]*** Brake cut motor [10:56:25]Read from MH i2c: 01 [10:56:25]MH_I2C_Read... [10:56:25]*** Stop cut motor [10:56:25]*** Cut end [10:56:25]Read from MH i2c: 01 07 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 F2 1B 00 00 00 00 00 FF 0F 22 [10:56:25]process_action close_receipt done [10:56:25]requested_data is exist [10:56:25]produce_requested_data [10:56:25]requested_item fm.sn is exist - process it [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 11 00 00 [10:56:25]Write to MH i2c: E2 08 00 F3 1B 80 11 00 00 00 00 00 00 88 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 F3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [10:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:56:25]wFMCommunicate OK [10:56:25]requested_item fd.num is exist - process it [10:56:25]SAM_PROTO_GetFieldsCounters [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 13 00 00 [10:56:25]Write to MH i2c: E2 08 00 F4 1B 80 13 00 00 00 00 00 00 8B [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 62 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 62 00 F4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [10:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:25]wFMCommunicate OK [10:56:25]SAM_PROTO_GetFieldsCounters done [10:56:25]requested_item shift.num is exist - process it [10:56:25]requested_item shift.opened is exist - process it [10:56:25]req_shift_opened [10:56:25]FM_GetShiftState [10:56:25]SAM_PROTO_GetShiftState [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 13 01 00 [10:56:25]Write to MH i2c: E2 08 00 F5 1B 80 13 01 00 00 00 00 00 8D [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 0E 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 0E 00 F5 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 44 [10:56:25]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:56:25]wFMCommunicate OK [10:56:25]SAM_PROTO_GetShiftState done [10:56:25]FM_GetShiftState done [10:56:25]req_shift_opened done [10:56:25]requested_item shift.open_date is exist - process it [10:56:25]req_shift_open_date [10:56:25]req_shift_open_date done [10:56:25]produce_requested_data done [10:56:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139255,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:56:25]process_action_free close_receipt [10:56:25]json_value_free [10:56:25]json_value_free done [10:56:25]process_json_proto returns [10:56:25]Send response to host [10:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139255,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:56:25]free response buf [10:56:25]execute_script done [10:56:25]execute_script returns [10:56:25]free content buf [10:56:25]Sock 7.Close socket [10:56:25]Sock 7.Thread stoped [10:56:25]int [10:56:25]Write to MH i2c: 01 00 00 F6 1B 11 [10:56:25]*** FLAG_PRN_KEY set [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 F6 1B 00 08 00 00 00 FF 0F 2E [10:56:25]state=0 [10:56:25]Key pressed [10:56:25]Feed [10:56:25]Write to MH i2c: D8 00 00 F7 1B E9 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: D8 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: D8 01 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: D8 01 00 F7 1B 00 EA [10:56:25]int [10:56:25]Write to MH i2c: 01 00 00 F8 1B 13 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 F8 1B 00 48 00 00 00 3C 00 9E [10:56:25]state=2 [10:56:25]Key pressed [10:56:25]int [10:56:25]Write to MH i2c: 01 00 00 F9 1B 14 [10:56:25]*** FLAG_PRN_KEY reset [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 F9 1B 00 00 00 00 00 F8 0F 22 [10:56:25]state=2 [10:56:25]Stop feed [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]accept exits with 9 [10:56:49]New connection [10:56:49]New thread 3067202916 created [10:56:49]Thread 3067059556 joined [10:56:49]Waiting for new connection... [10:56:49] Sock 9.Parse request [10:56:49]Sock 9.Check first char [10:56:49]Sock 9.First char is OK [10:56:49]request: POST /json_proto HTTP/1.0 [10:56:49]Method: POST [10:56:49]URL: /json_proto [10:56:49]Method is POST - this is cgi request [10:56:49]url: /json_proto [10:56:49]query_string will be loaded in cgi processing [10:56:49]execute_cgi json_proto POST (null) [10:56:49]execute_cgi path=json_proto method=POST [10:56:49]POST find Content-Length [10:56:49]Host: 172.17.45.67:8080 [10:56:49]Content-Length: 682 [10:56:49]Content-Type: application/json [10:56:49] [10:56:49]POST finish read [10:56:49]Found Content-Length = 682 [10:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:56:49]execute_script... [10:56: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)593097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:56:49]POST & json_proto [10:56:49]process_json_proto [10:56:49]json parsed OK: [10:56:49]protocol is kg_v1.0 [10:56:49]action value=close_receipt [10:56:49]process_action close_receipt [10:56:49]cmd_close_receipt [10:56:49]MH_GetDate [10:56:49]Write to MH i2c: F0 00 00 FA 1B 04 [10:56:49]Write i2c OK [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: F0 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: F0 09 00 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: F0 09 00 FA 1B 00 F3 24 C3 66 5F 7F 2B 66 BC [10:56:49]GetLastDocTimeStamp 1724064984 [10:56:49]current date 1724065011 [10:56:49]FM_GetShiftState [10:56:49]SAM_PROTO_GetShiftState [10:56:49]wFMCommunicate request_size=4 [10:56:49]MH_SAM_APDU [10:56:49]CAPDU: 80 13 01 00 [10:56:49]Write to MH i2c: E2 08 00 FB 1B 80 13 01 00 00 00 00 00 93 [10:56:49]Write i2c OK [10:56:49]MH_I2C_Read... [10:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:49]Read from MH i2c: E2 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: E2 0E 00 [10:56:49]MH_I2C_Read... [10:56:49]Read from MH i2c: E2 0E 00 FB 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4A [10:56:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:56:49]wFMCommunicate OK [10:56:49]SAM_PROTO_GetShiftState done [10:56:49]FM_GetShiftState done [10:56:49]opened in 1724027888 [10:56:49]opened+sec_in_day 1724114288 [10:56:49]quantity*price = 100021 [10:56:49]sum+1 = 100023 [10:56:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 91 19.08.2024 10:56 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139256 ФПД: 36715832090344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105651&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139256&fm=36715832090344&tin=02508201610067®Number=0000000000092569&sum=100000 [10:56:50]StoreToDocumentArchive [10:56:50]shift 452 fd 139256 [10:56:50]save to /storage/0452/doc_00139256 [10:56:50]save last doc name /storage/0452/doc_00139256 to /storage/kkm_last_doc_name [10:56:50]save OK [10:56:50]Clear old archive folders... [10:56:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:50]tlvbuf is B6F926D0 [10:56:50]SAM_PROTO_ClearQueue [10:56:50]wFMCommunicate request_size=4 [10:56:50]MH_SAM_APDU [10:56:50]CAPDU: 80 09 00 00 [10:56:50]Write to MH i2c: E2 08 00 08 1C 80 09 00 00 00 00 00 00 96 [10:56:50]Write i2c OK [10:56:50]MH_I2C_Read... [10:56:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:50]Read from MH i2c: E2 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 03 00 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 03 00 08 1C 00 90 00 98 [10:56:50]RAPDU: 90 00 [10:56:50]wFMCommunicate OK [10:56:50]SAM_PROTO_ClearQueue done [10:56:50]KKMCreateOFDPacket [10:56:50]OFDProtocolAddRootSTLVToBuf [10:56:50]FM_MakeSignedData [10:56:50]FM_MakeSignedData [10:56:50]SAM_PROTO_SignData [10:56:50]wFMCommunicate request_size=4 [10:56:50]MH_SAM_APDU [10:56:50]CAPDU: 80 0D 01 02 [10:56:50]Write to MH i2c: E2 08 00 09 1C 80 0D 01 02 00 00 00 00 9E [10:56:50]Write i2c OK [10:56:50]MH_I2C_Read... [10:56:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:50]Read from MH i2c: E2 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 03 00 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 03 00 09 1C 00 90 00 99 [10:56:50]RAPDU: 90 00 [10:56:50]wFMCommunicate OK [10:56:50]wFMCommunicate request_size=255 [10:56:50]MH_SAM_APDU [10:56: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F3 24 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 1F 02 00 35 04 06 00 21 [10:56:50]Write to MH i2c: E2 02 01 0A 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F3 24 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 1F 02 00 35 04 06 00 21 00 00 EE [10:56:50]Write i2c OK [10:56:50]MH_I2C_Read... [10:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:50]Read from MH i2c: E2 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 03 00 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 03 00 0A 1C 00 90 00 9A [10:56:50]RAPDU: 90 00 [10:56:50]wFMCommunicate OK [10:56:50]wFMCommunicate request_size=10 [10:56:50]MH_SAM_APDU [10:56:50]CAPDU: 80 0D 02 02 05 64 92 21 1E E8 [10:56:50]Write to MH i2c: E2 0D 00 0B 1C 80 0D 02 02 05 00 64 92 21 1E E8 00 00 C8 [10:56:50]Write i2c OK [10:56:50]MH_I2C_Read... [10:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:50]Read from MH i2c: E2 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 03 00 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 03 00 0B 1C 00 90 00 9B [10:56:50]RAPDU: 90 00 [10:56:50]wFMCommunicate OK [10:56:50]wFMCommunicate request_size=4 [10:56:50]MH_SAM_APDU [10:56:50]CAPDU: 80 0D 03 02 [10:56:50]Write to MH i2c: E2 08 00 0C 1C 80 0D 03 02 00 00 00 00 A3 [10:56:50]Write i2c OK [10:56:50]MH_I2C_Read... [10:56:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:50]Read from MH i2c: E2 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 0B 00 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 0B 00 0C 1C 00 18 7E D7 2F 11 59 B7 80 90 00 E1 [10:56:50]RAPDU: 18 7E D7 2F 11 59 B7 80 90 00 [10:56:50]wFMCommunicate OK [10:56:50]SAM_PROTO_SignData done [10:56:50]FM_MakeSignedData done [10:56:50]CreateOFDProtocolMessage [10:56:50]wFMCommunicate request_size=4 [10:56:50]MH_SAM_APDU [10:56:50]CAPDU: 80 11 00 00 [10:56:50]Write to MH i2c: E2 08 00 0D 1C 80 11 00 00 00 00 00 00 A3 [10:56:50]Write i2c OK [10:56:50]MH_I2C_Read... [10:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:50]Read from MH i2c: E2 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 17 00 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: E2 17 00 0D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [10:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:56:50]wFMCommunicate OK [10:56:50]CreateOFDProtocolMessage done [10:56:50]OFDSenderStorePacket 139256 [10:56:50]StoreOFDPacket docnum=139256 [10:56:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0C A1 07 01 B3 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F3 24 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 1F 02 00 35 04 06 00 21 64 92 21 1E E8 18 7E D7 2F 11 59 B7 80 [10:56:50]CheckFolder [10:56:50]dirname=/storage/ofd_packets [10:56:50]CheckFolder done [10:56:50]ProducePacketName [10:56:50]name=ofd_packets/00139256 [10:56:50]NVStorageSaveData ofd_packets/00139256 [10:56:50]File name is /storage/ofd_packets/00139256 [10:56:50]Write 301 bytes [10:56:50]NVStorageSaveData done [10:56:50]OFDSenderStorePacket done [10:56:50]KKMCreateOFDPacket done [10:56:50]NVStorageSaveData kkm_last_timestamp [10:56:50]File name is /storage/kkm_last_timestamp [10:56:50]Write 4 bytes [10:56:50]NVStorageSaveData done [10:56:50]ExternCall_PrintAddStr [10:56:50]wPrintStart [10:56:50]Write to MH i2c: 01 00 00 0E 1C 2A [10:56:50]Write i2c OK [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: 01 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: 01 07 00 [10:56:50]MH_I2C_Read... [10:56:50]Read from MH i2c: 01 07 00 0E 1C 00 00 00 00 00 FF 0F 3F [10:56:50]RasterBufferAndPrint [10:56:50]line Счет N : (1)593097 [10:56:50]line ИНН: 02508201610067 [10:56:50]line Контрольно-Кассовый Чек [10:56:50]line ПРОДАЖА [10:56:50]line ТРК (МРК, ГНК) : 61 [10:56:50]line Товар: 2710124500 [10:56:50]line Аи-95-К-5 [10:56:50]line 13.480 * 74.20 [10:56:50]line = 1000.22 [10:56:50]line НДС 12% НСП 1% [10:56:50]line > о реализуемом товаре [10:56:50]line ОКРУГЛЕНИЕ: -0.22 [10:56:50]line ИТОГО: 1000.00 [10:56:50]line Внесено: 1000.00 [10:56:50]line СДАЧА: 0.00 [10:56:50]line НСП 1% : 8.85 [10:56:50]line НДС 12% : 106.22 [10:56:50]line Наличными: 1000.00 [10:56:50]line Безнал.: 0.00 [10:56:50]line Место: АЗС № 136 "Партнер Нефть" [10:56:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:56:50]line СНО: Общий режим [10:56:50]line Чек 91 19.08.2024 10:56 [10:56:50]line Смена: 452 ФФД: 1.0 [10:56:50]line ЗНМ: 0300000067 [10:56:50]line РНМ: 0000000000092569 [10:56:50]line Версия ККМ: 001 [10:56:50]line ФМ: 0000000000871776 [10:56:50]line ФД: 139256 [10:56:50]line ФПД: 36715832090344 [10:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105651&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139256&fm=36715832090344&tin=02508201610067®Number=0000000000092569&sum=100000 [10:56:51]OFD Sender: Processing packet 139256 [packets to send 137, broken 136] [10:56:51]ProducePacketName [10:56:51]name=ofd_packets/00139256 [10:56:51]OFD Sender: To server: pG, [10:56:51]CommunicateWithHost lk.salyk.kg:30040 [10:56:51]ConnectInit lk.salyk.kg [10:56:51]written 0, free lines is 4095 [10:56:51]Connected sock=10 [10:56: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 37 36 0F 01 00 00 0C A1 07 01 B3 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F3 24 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 1F 02 00 35 04 06 00 21 64 92 21 1E E8 18 7E D7 2F 11 59 B7 80 [10:56: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 37 36 4F 00 00 00 83 05 47 00 16 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 37 36 10 04 04 00 F8 1F 02 00 F4 03 04 00 89 CB C2 66 B6 04 01 00 00 9A CE 0B 51 2C 35 A4 FA [10:56:51]CommunicateWithHost err = 0 [10:56:51]CheckOFDResponse [10:56:51]1017 (14) - 77093643461234 [10:56:51]1041 (16) - 0000000000871776 [10:56:51]1040 (4) - 139256 [10:56:51]1012 (4) - 19.08.2024 04:35 [10:56:51]1206 (1) - 0 [10:56:51]OFD Sender: Remove packet 139256 [10:56:51]ProducePacketName [10:56:51]name=ofd_packets/00139256 [10:56:51]NVStorageDeleteData [10:56:51]Write to MH i2c: 01 00 00 39 1C 55 [10:56:51]Write i2c OK [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: 01 [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: 01 07 00 [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: 01 07 00 39 1C 00 00 00 00 00 D7 0C 3F [10:56:51]RasterBufferAndPrint [10:56:51]line [10:56:51]line [10:56:51]line [10:56:51]line [10:56:51]line [10:56:51]written 0, free lines is 3295 [10:56:51]MH_Cut [10:56:51]Write to MH i2c: D1 01 00 40 1C 01 2E [10:56:51]Write i2c OK [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: D1 [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: D1 01 00 [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: D1 01 00 40 1C 00 2D [10:56:51]Write to MH i2c: 01 00 00 41 1C 5D [10:56:51]Write i2c OK [10:56:51]MH_I2C_Read... [10:56:52]OFD Sender: No OFD packet to send [10:56:52]*** Cut start [10:56:52]*** Partial cut [10:56:52]*** CUTSNS_PIN = 1 [10:56:52]*** CUTSNS_PIN = 0 [10:56:52]*** Brake cut motor [10:56:52]Read from MH i2c: 01 [10:56:52]MH_I2C_Read... [10:56:52]*** Stop cut motor [10:56:52]*** Cut end [10:56:52]Read from MH i2c: 01 07 00 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: 01 07 00 41 1C 00 00 00 00 00 FF 0F 72 [10:56:52]process_action close_receipt done [10:56:52]requested_data is exist [10:56:52]produce_requested_data [10:56:52]requested_item fm.sn is exist - process it [10:56:52]wFMCommunicate request_size=4 [10:56:52]MH_SAM_APDU [10:56:52]CAPDU: 80 11 00 00 [10:56:52]Write to MH i2c: E2 08 00 42 1C 80 11 00 00 00 00 00 00 D8 [10:56:52]Write i2c OK [10:56:52]MH_I2C_Read... [10:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:52]Read from MH i2c: E2 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: E2 17 00 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: E2 17 00 42 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [10:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:56:52]wFMCommunicate OK [10:56:52]requested_item fd.num is exist - process it [10:56:52]SAM_PROTO_GetFieldsCounters [10:56:52]wFMCommunicate request_size=4 [10:56:52]MH_SAM_APDU [10:56:52]CAPDU: 80 13 00 00 [10:56:52]Write to MH i2c: E2 08 00 43 1C 80 13 00 00 00 00 00 00 DB [10:56:52]Write i2c OK [10:56:52]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 62 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 62 00 43 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [10:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:53]wFMCommunicate OK [10:56:53]SAM_PROTO_GetFieldsCounters done [10:56:53]requested_item shift.num is exist - process it [10:56:53]requested_item shift.opened is exist - process it [10:56:53]req_shift_opened [10:56:53]FM_GetShiftState [10:56:53]SAM_PROTO_GetShiftState [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 13 01 00 [10:56:53]Write to MH i2c: E2 08 00 44 1C 80 13 01 00 00 00 00 00 DD [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 0E 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 0E 00 44 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 94 [10:56:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:56:53]wFMCommunicate OK [10:56:53]SAM_PROTO_GetShiftState done [10:56:53]FM_GetShiftState done [10:56:53]req_shift_opened done [10:56:53]requested_item shift.open_date is exist - process it [10:56:53]req_shift_open_date [10:56:53]req_shift_open_date done [10:56:53]produce_requested_data done [10:56:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139256,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:56:53]process_action_free close_receipt [10:56:53]json_value_free [10:56:53]json_value_free done [10:56:53]process_json_proto returns [10:56:53]Send response to host [10:56:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139256,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:56:53]free response buf [10:56:53]execute_script done [10:56:53]execute_script returns [10:56:53]free content buf [10:56:53]Sock 9.Close socket [10:56:53]Sock 9.Thread stoped [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:46]accept exits with 7 [10:57:46]New connection [10:57:46]New thread 3067059556 created [10:57:46]Thread 3067202916 joined [10:57:46]Waiting for new connection... [10:57:46] Sock 7.Parse request [10:57:46]Sock 7.Check first char [10:57:46]Sock 7.First char is OK [10:57:46]request: POST /json_proto HTTP/1.0 [10:57:46]Method: POST [10:57:46]URL: /json_proto [10:57:46]Method is POST - this is cgi request [10:57:46]url: /json_proto [10:57:46]query_string will be loaded in cgi processing [10:57:46]execute_cgi json_proto POST (null) [10:57:46]execute_cgi path=json_proto method=POST [10:57:46]POST find Content-Length [10:57:46]Host: 172.17.45.67:8080 [10:57:46]Content-Length: 658 [10:57:46]Content-Type: application/json [10:57:46] [10:57:46]POST finish read [10:57:46]Found Content-Length = 658 [10:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 6.550, "sum" : 450.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:46]execute_script... [10:57: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)593098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 6.550, "sum" : 450.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:46]POST & json_proto [10:57:46]process_json_proto [10:57:46]json parsed OK: [10:57:46]protocol is kg_v1.0 [10:57:46]action value=close_receipt [10:57:46]process_action close_receipt [10:57:46]cmd_close_receipt [10:57:46]MH_GetDate [10:57:46]Write to MH i2c: F0 00 00 45 1C 50 [10:57:46]Write i2c OK [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: F0 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: F0 09 00 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: F0 09 00 45 1C 00 2D 25 C3 66 5F 7F 2B 66 43 [10:57:46]GetLastDocTimeStamp 1724065011 [10:57:46]current date 1724065069 [10:57:46]FM_GetShiftState [10:57:46]SAM_PROTO_GetShiftState [10:57:46]wFMCommunicate request_size=4 [10:57:46]MH_SAM_APDU [10:57:46]CAPDU: 80 13 01 00 [10:57:46]Write to MH i2c: E2 08 00 46 1C 80 13 01 00 00 00 00 00 DF [10:57:46]Write i2c OK [10:57:46]MH_I2C_Read... [10:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:46]Read from MH i2c: E2 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: E2 0E 00 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: E2 0E 00 46 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 96 [10:57:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:57:46]wFMCommunicate OK [10:57:46]SAM_PROTO_GetShiftState done [10:57:46]FM_GetShiftState done [10:57:46]opened in 1724027888 [10:57:46]opened+sec_in_day 1724114288 [10:57:46]quantity*price = 45064 [10:57:46]sum+1 = 45065 [10:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.99 НДС 12% : 47.86 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 92 19.08.2024 10:57 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139257 ФПД: 42324034714826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139257&fm=42324034714826&tin=02508201610067®Number=0000000000092569&sum=45000 [10:57:48]StoreToDocumentArchive [10:57:48]shift 452 fd 139257 [10:57:48]save to /storage/0452/doc_00139257 [10:57:48]save last doc name /storage/0452/doc_00139257 to /storage/kkm_last_doc_name [10:57:48]save OK [10:57:48]Clear old archive folders... [10:57:48]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:57:48]tlvbuf is B6EFE9A0 [10:57:48]SAM_PROTO_ClearQueue [10:57:48]wFMCommunicate request_size=4 [10:57:48]MH_SAM_APDU [10:57:48]CAPDU: 80 09 00 00 [10:57:48]Write to MH i2c: E2 08 00 53 1C 80 09 00 00 00 00 00 00 E1 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:48]Read from MH i2c: E2 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 03 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 03 00 53 1C 00 90 00 E3 [10:57:48]RAPDU: 90 00 [10:57:48]wFMCommunicate OK [10:57:48]SAM_PROTO_ClearQueue done [10:57:48]KKMCreateOFDPacket [10:57:48]OFDProtocolAddRootSTLVToBuf [10:57:48]FM_MakeSignedData [10:57:48]FM_MakeSignedData [10:57:48]SAM_PROTO_SignData [10:57:48]wFMCommunicate request_size=4 [10:57:48]MH_SAM_APDU [10:57:48]CAPDU: 80 0D 01 02 [10:57:48]Write to MH i2c: E2 08 00 54 1C 80 0D 01 02 00 00 00 00 E9 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:48]Read from MH i2c: E2 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 03 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 03 00 54 1C 00 90 00 E4 [10:57:48]RAPDU: 90 00 [10:57:48]wFMCommunicate OK [10:57:48]wFMCommunicate request_size=253 [10:57:48]MH_SAM_APDU [10:57:48]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 08 B0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2D 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 1F 02 00 35 04 06 00 26 7E 55 0D FC CA [10:57:48]Write to MH i2c: E2 00 01 55 1C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 08 B0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2D 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 1F 02 00 35 04 06 00 26 7E 55 0D FC CA 00 00 D0 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:48]Read from MH i2c: E2 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 03 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 03 00 55 1C 00 90 00 E5 [10:57:48]RAPDU: 90 00 [10:57:48]wFMCommunicate OK [10:57:48]wFMCommunicate request_size=4 [10:57:48]MH_SAM_APDU [10:57:48]CAPDU: 80 0D 03 02 [10:57:48]Write to MH i2c: E2 08 00 56 1C 80 0D 03 02 00 00 00 00 ED [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:48]Read from MH i2c: E2 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 0B 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 0B 00 56 1C 00 97 BE 35 2B 1E CF A9 37 90 00 70 [10:57:48]RAPDU: 97 BE 35 2B 1E CF A9 37 90 00 [10:57:48]wFMCommunicate OK [10:57:48]SAM_PROTO_SignData done [10:57:48]FM_MakeSignedData done [10:57:48]CreateOFDProtocolMessage [10:57:48]wFMCommunicate request_size=4 [10:57:48]MH_SAM_APDU [10:57:48]CAPDU: 80 11 00 00 [10:57:48]Write to MH i2c: E2 08 00 57 1C 80 11 00 00 00 00 00 00 ED [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:48]Read from MH i2c: E2 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 17 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: E2 17 00 57 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [10:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:57:48]wFMCommunicate OK [10:57:48]CreateOFDProtocolMessage done [10:57:48]OFDSenderStorePacket 139257 [10:57:48]StoreOFDPacket docnum=139257 [10:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 4E 6A 00 01 25 C5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 08 B0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2D 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 1F 02 00 35 04 06 00 26 7E 55 0D FC CA 97 BE 35 2B 1E CF A9 37 [10:57:48]CheckFolder [10:57:48]dirname=/storage/ofd_packets [10:57:48]CheckFolder done [10:57:48]ProducePacketName [10:57:48]name=ofd_packets/00139257 [10:57:48]NVStorageSaveData ofd_packets/00139257 [10:57:48]File name is /storage/ofd_packets/00139257 [10:57:48]Write 294 bytes [10:57:48]NVStorageSaveData done [10:57:48]OFDSenderStorePacket done [10:57:48]KKMCreateOFDPacket done [10:57:48]NVStorageSaveData kkm_last_timestamp [10:57:48]File name is /storage/kkm_last_timestamp [10:57:48]Write 4 bytes [10:57:48]NVStorageSaveData done [10:57:48]ExternCall_PrintAddStr [10:57:48]wPrintStart [10:57:48]Write to MH i2c: 01 00 00 58 1C 74 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: 01 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: 01 07 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: 01 07 00 58 1C 00 00 00 00 00 FF 0F 89 [10:57:48]RasterBufferAndPrint [10:57:48]line Счет N : (1)593098 [10:57:48]line ИНН: 02508201610067 [10:57:48]line Контрольно-Кассовый Чек [10:57:48]line ПРОДАЖА [10:57:48]line ТРК (МРК, ГНК) : 33 [10:57:48]line Товар: 2710124130 [10:57:48]line SU-92 [10:57:48]line 6.550 * 68.80 [10:57:48]line = 450.64 [10:57:48]line НДС 12% НСП 1% [10:57:48]line > о реализуемом товаре [10:57:48]line ОКРУГЛЕНИЕ: -0.64 [10:57:48]line ИТОГО: 450.00 [10:57:48]line Внесено: 450.00 [10:57:48]line СДАЧА: 0.00 [10:57:48]line НСП 1% : 3.99 [10:57:48]line НДС 12% : 47.86 [10:57:48]line Наличными: 450.00 [10:57:48]line Безнал.: 0.00 [10:57:48]line Место: АЗС № 136 "Партнер Нефть" [10:57:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:57:48]line СНО: Общий режим [10:57:48]line Чек 92 19.08.2024 10:57 [10:57:48]line Смена: 452 ФФД: 1.0 [10:57:48]line ЗНМ: 0300000067 [10:57:48]line РНМ: 0000000000092569 [10:57:48]line Версия ККМ: 001 [10:57:48]line ФМ: 0000000000871776 [10:57:48]line ФД: 139257 [10:57:48]line ФПД: 42324034714826 [10:57:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139257&fm=42324034714826&tin=02508201610067®Number=0000000000092569&sum=45000 [10:57:48]written 0, free lines is 4095 [10:57:48]OFD Sender: Processing packet 139257 [packets to send 137, broken 136] [10:57:48]ProducePacketName [10:57:48]name=ofd_packets/00139257 [10:57:48]OFD Sender: To server: pG, [10:57:48]CommunicateWithHost lk.salyk.kg:30040 [10:57:48]ConnectInit lk.salyk.kg [10:57:48]Connected sock=9 [10:57: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 37 36 08 01 00 00 4E 6A 00 01 25 C5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 08 B0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2D 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 1F 02 00 35 04 06 00 26 7E 55 0D FC CA 97 BE 35 2B 1E CF A9 37 [10:57:48]Write to MH i2c: 01 00 00 83 1C 9F [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: 01 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: 01 07 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: 01 07 00 83 1C 00 00 00 00 00 CF 0C 81 [10:57:48]RasterBufferAndPrint [10:57:48]line [10:57:48]line [10:57:48]line [10:57:48]line [10:57:48]line [10:57:48]written 0, free lines is 3286 [10:57: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 37 36 4F 00 00 00 0E FA 47 00 9B 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 1F 02 00 F4 03 04 00 C3 CB C2 66 B6 04 01 00 00 8F 13 DC 73 E6 E3 2E 7F [10:57:48]CommunicateWithHost err = 0 [10:57:48]CheckOFDResponse [10:57:48]1017 (14) - 77093643461234 [10:57:48]1041 (16) - 0000000000871776 [10:57:48]1040 (4) - 139257 [10:57:48]1012 (4) - 19.08.2024 04:36 [10:57:48]1206 (1) - 0 [10:57:48]OFD Sender: Remove packet 139257 [10:57:48]ProducePacketName [10:57:48]name=ofd_packets/00139257 [10:57:48]NVStorageDeleteData [10:57:48]MH_Cut [10:57:48]Write to MH i2c: D1 01 00 8A 1C 01 78 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: D1 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: D1 01 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: D1 01 00 8A 1C 00 77 [10:57:48]Write to MH i2c: 01 00 00 8B 1C A7 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:49]OFD Sender: No OFD packet to send [10:57:49]*** Cut start [10:57:49]*** Partial cut [10:57:49]*** CUTSNS_PIN = 1 [10:57:49]*** CUTSNS_PIN = 0 [10:57:49]*** Brake cut motor [10:57:50]Read from MH i2c: 01 [10:57:50]MH_I2C_Read... [10:57:50]*** Stop cut motor [10:57:50]*** Cut end [10:57:50]Read from MH i2c: 01 07 00 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: 01 07 00 8B 1C 00 00 00 00 00 FF 0F BC [10:57:50]process_action close_receipt done [10:57:50]requested_data is exist [10:57:50]produce_requested_data [10:57:50]requested_item fm.sn is exist - process it [10:57:50]wFMCommunicate request_size=4 [10:57:50]MH_SAM_APDU [10:57:50]CAPDU: 80 11 00 00 [10:57:50]Write to MH i2c: E2 08 00 8C 1C 80 11 00 00 00 00 00 00 22 [10:57:50]Write i2c OK [10:57:50]MH_I2C_Read... [10:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:50]Read from MH i2c: E2 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 17 00 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 17 00 8C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [10:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:57:50]wFMCommunicate OK [10:57:50]requested_item fd.num is exist - process it [10:57:50]SAM_PROTO_GetFieldsCounters [10:57:50]wFMCommunicate request_size=4 [10:57:50]MH_SAM_APDU [10:57:50]CAPDU: 80 13 00 00 [10:57:50]Write to MH i2c: E2 08 00 8D 1C 80 13 00 00 00 00 00 00 25 [10:57:50]Write i2c OK [10:57:50]MH_I2C_Read... [10:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:50]Read from MH i2c: E2 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 62 00 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 62 00 8D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [10:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:50]wFMCommunicate OK [10:57:50]SAM_PROTO_GetFieldsCounters done [10:57:50]requested_item shift.num is exist - process it [10:57:50]requested_item shift.opened is exist - process it [10:57:50]req_shift_opened [10:57:50]FM_GetShiftState [10:57:50]SAM_PROTO_GetShiftState [10:57:50]wFMCommunicate request_size=4 [10:57:50]MH_SAM_APDU [10:57:50]CAPDU: 80 13 01 00 [10:57:50]Write to MH i2c: E2 08 00 8E 1C 80 13 01 00 00 00 00 00 27 [10:57:50]Write i2c OK [10:57:50]MH_I2C_Read... [10:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:50]Read from MH i2c: E2 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 0E 00 [10:57:50]MH_I2C_Read... [10:57:50]Read from MH i2c: E2 0E 00 8E 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DE [10:57:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:57:50]wFMCommunicate OK [10:57:50]SAM_PROTO_GetShiftState done [10:57:50]FM_GetShiftState done [10:57:50]req_shift_opened done [10:57:50]requested_item shift.open_date is exist - process it [10:57:50]req_shift_open_date [10:57:50]req_shift_open_date done [10:57:50]produce_requested_data done [10:57:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139257,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:57:50]process_action_free close_receipt [10:57:50]json_value_free [10:57:50]json_value_free done [10:57:50]process_json_proto returns [10:57:50]Send response to host [10:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139257,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:57:50]free response buf [10:57:50]execute_script done [10:57:50]execute_script returns [10:57:50]free content buf [10:57:50]Sock 7.Close socket [10:57:50]Sock 7.Thread stoped [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:36]accept exits with 10 [10:58:36]New connection [10:58:36]New thread 3067202916 created [10:58:36]Thread 3067059556 joined [10:58:36]Waiting for new connection... [10:58:36] Sock 10.Parse request [10:58:36]Sock 10.Check first char [10:58:36]Sock 10.First char is OK [10:58:36]request: POST /json_proto HTTP/1.0 [10:58:36]Method: POST [10:58:36]URL: /json_proto [10:58:36]Method is POST - this is cgi request [10:58:36]url: /json_proto [10:58:36]query_string will be loaded in cgi processing [10:58:36]execute_cgi json_proto POST (null) [10:58:36]execute_cgi path=json_proto method=POST [10:58:36]POST find Content-Length [10:58:36]Host: 172.17.45.67:8080 [10:58:36]Content-Length: 682 [10:58:36]Content-Type: application/json [10:58:36] [10:58:36]POST finish read [10:58:36]Found Content-Length = 682 [10:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:58:36]execute_script... [10:58: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)593099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:58:36]POST & json_proto [10:58:36]process_json_proto [10:58:36]json parsed OK: [10:58:36]protocol is kg_v1.0 [10:58:36]action value=close_receipt [10:58:36]process_action close_receipt [10:58:36]cmd_close_receipt [10:58:36]MH_GetDate [10:58:36]Write to MH i2c: F0 00 00 8F 1C 9A [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: F0 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: F0 09 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: F0 09 00 8F 1C 00 5F 25 C3 66 5F 7F 2B 66 BF [10:58:36]GetLastDocTimeStamp 1724065069 [10:58:36]current date 1724065119 [10:58:36]FM_GetShiftState [10:58:36]SAM_PROTO_GetShiftState [10:58:36]wFMCommunicate request_size=4 [10:58:36]MH_SAM_APDU [10:58:36]CAPDU: 80 13 01 00 [10:58:36]Write to MH i2c: E2 08 00 90 1C 80 13 01 00 00 00 00 00 29 [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:36]Read from MH i2c: E2 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 0E 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 0E 00 90 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E0 [10:58:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:58:36]wFMCommunicate OK [10:58:36]SAM_PROTO_GetShiftState done [10:58:36]FM_GetShiftState done [10:58:36]opened in 1724027888 [10:58:36]opened+sec_in_day 1724114288 [10:58:36]quantity*price = 50063 [10:58:36]sum+1 = 50064 [10:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 93 19.08.2024 10:58 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139258 ФПД: 187576933402343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105839&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139258&fm=187576933402343&tin=02508201610067®Number=0000000000092569&sum=50000 [10:58:37]StoreToDocumentArchive [10:58:37]shift 452 fd 139258 [10:58:37]save to /storage/0452/doc_00139258 [10:58:37]save last doc name /storage/0452/doc_00139258 to /storage/kkm_last_doc_name [10:58:37]save OK [10:58:37]Clear old archive folders... [10:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:58:37]tlvbuf is B6F929C0 [10:58:37]SAM_PROTO_ClearQueue [10:58:37]wFMCommunicate request_size=4 [10:58:37]MH_SAM_APDU [10:58:37]CAPDU: 80 09 00 00 [10:58:37]Write to MH i2c: E2 08 00 9D 1C 80 09 00 00 00 00 00 00 2B [10:58:37]Write i2c OK [10:58:37]MH_I2C_Read... [10:58:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:38]Read from MH i2c: E2 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 03 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 03 00 9D 1C 00 90 00 2D [10:58:38]RAPDU: 90 00 [10:58:38]wFMCommunicate OK [10:58:38]SAM_PROTO_ClearQueue done [10:58:38]KKMCreateOFDPacket [10:58:38]OFDProtocolAddRootSTLVToBuf [10:58:38]FM_MakeSignedData [10:58:38]FM_MakeSignedData [10:58:38]SAM_PROTO_SignData [10:58:38]wFMCommunicate request_size=4 [10:58:38]MH_SAM_APDU [10:58:38]CAPDU: 80 0D 01 02 [10:58:38]Write to MH i2c: E2 08 00 9E 1C 80 0D 01 02 00 00 00 00 33 [10:58:38]Write i2c OK [10:58:38]MH_I2C_Read... [10:58:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:38]Read from MH i2c: E2 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 03 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 03 00 9E 1C 00 90 00 2E [10:58:38]RAPDU: 90 00 [10:58:38]wFMCommunicate OK [10:58:38]wFMCommunicate request_size=255 [10:58:38]MH_SAM_APDU [10:58:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 5D 00 00 00 F4 03 04 00 5F 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 1F 02 00 35 04 06 00 [10:58:38]Write to MH i2c: E2 02 01 9F 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 5D 00 00 00 F4 03 04 00 5F 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 1F 02 00 35 04 06 00 00 00 1C [10:58:38]Write i2c OK [10:58:38]MH_I2C_Read... [10:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:38]Read from MH i2c: E2 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 03 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 03 00 9F 1C 00 90 00 2F [10:58:38]RAPDU: 90 00 [10:58:38]wFMCommunicate OK [10:58:38]wFMCommunicate request_size=11 [10:58:38]MH_SAM_APDU [10:58:38]CAPDU: 80 0D 02 02 06 AA 99 A8 7B C6 E7 [10:58:38]Write to MH i2c: E2 0E 00 A0 1C 80 0D 02 02 06 00 AA 99 A8 7B C6 E7 00 00 55 [10:58:38]Write i2c OK [10:58:38]MH_I2C_Read... [10:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:38]Read from MH i2c: E2 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 03 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [10:58:38]RAPDU: 90 00 [10:58:38]wFMCommunicate OK [10:58:38]wFMCommunicate request_size=4 [10:58:38]MH_SAM_APDU [10:58:38]CAPDU: 80 0D 03 02 [10:58:38]Write to MH i2c: E2 08 00 A1 1C 80 0D 03 02 00 00 00 00 38 [10:58:38]Write i2c OK [10:58:38]MH_I2C_Read... [10:58:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:38]Read from MH i2c: E2 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 0B 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 0B 00 A1 1C 00 EE C6 E5 3A 4E 32 C0 BB 90 00 07 [10:58:38]RAPDU: EE C6 E5 3A 4E 32 C0 BB 90 00 [10:58:38]wFMCommunicate OK [10:58:38]SAM_PROTO_SignData done [10:58:38]FM_MakeSignedData done [10:58:38]CreateOFDProtocolMessage [10:58:38]wFMCommunicate request_size=4 [10:58:38]MH_SAM_APDU [10:58:38]CAPDU: 80 11 00 00 [10:58:38]Write to MH i2c: E2 08 00 A2 1C 80 11 00 00 00 00 00 00 38 [10:58:38]Write i2c OK [10:58:38]MH_I2C_Read... [10:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:38]Read from MH i2c: E2 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 17 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: E2 17 00 A2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [10:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:58:38]wFMCommunicate OK [10:58:38]CreateOFDProtocolMessage done [10:58:38]OFDSenderStorePacket 139258 [10:58:38]StoreOFDPacket docnum=139258 [10:58:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 4E B4 08 01 D5 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 5D 00 00 00 F4 03 04 00 5F 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 1F 02 00 35 04 06 00 AA 99 A8 7B C6 E7 EE C6 E5 3A 4E 32 C0 BB [10:58:38]CheckFolder [10:58:38]dirname=/storage/ofd_packets [10:58:38]CheckFolder done [10:58:38]ProducePacketName [10:58:38]name=ofd_packets/00139258 [10:58:38]NVStorageSaveData ofd_packets/00139258 [10:58:38]File name is /storage/ofd_packets/00139258 [10:58:38]Write 302 bytes [10:58:38]NVStorageSaveData done [10:58:38]OFDSenderStorePacket done [10:58:38]KKMCreateOFDPacket done [10:58:38]NVStorageSaveData kkm_last_timestamp [10:58:38]File name is /storage/kkm_last_timestamp [10:58:38]Write 4 bytes [10:58:38]NVStorageSaveData done [10:58:38]ExternCall_PrintAddStr [10:58:38]wPrintStart [10:58:38]Write to MH i2c: 01 00 00 A3 1C BF [10:58:38]Write i2c OK [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: 01 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: 01 07 00 [10:58:38]MH_I2C_Read... [10:58:38]Read from MH i2c: 01 07 00 A3 1C 00 00 00 00 00 FF 0F D4 [10:58:38]RasterBufferAndPrint [10:58:38]line Счет N : (1)593099 [10:58:38]line ИНН: 02508201610067 [10:58:38]line Контрольно-Кассовый Чек [10:58:38]line ПРОДАЖА [10:58:38]line ТРК (МРК, ГНК) : 44 [10:58:38]line Товар: 2710194210 [10:58:38]line ДТ(л)-К-5 [10:58:38]line 6.570 * 76.20 [10:58:38]line = 500.63 [10:58:38]line НДС 12% НСП 1% [10:58:38]line > о реализуемом товаре [10:58:38]line ОКРУГЛЕНИЕ: -0.63 [10:58:38]line ИТОГО: 500.00 [10:58:38]line Внесено: 500.00 [10:58:38]line СДАЧА: 0.00 [10:58:38]line НСП 1% : 4.43 [10:58:38]line НДС 12% : 53.16 [10:58:38]line Наличными: 500.00 [10:58:38]line Безнал.: 0.00 [10:58:38]line Место: АЗС № 136 "Партнер Нефть" [10:58:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:58:38]line СНО: Общий режим [10:58:38]line Чек 93 19.08.2024 10:58 [10:58:38]line Смена: 452 ФФД: 1.0 [10:58:38]line ЗНМ: 0300000067 [10:58:38]line РНМ: 0000000000092569 [10:58:38]line Версия ККМ: 001 [10:58:38]line ФМ: 0000000000871776 [10:58:38]line ФД: 139258 [10:58:38]line ФПД: 187576933402343 [10:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105839&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139258&fm=187576933402343&tin=02508201610067®Number=0000000000092569&sum=50000 [10:58:38]OFD Sender: Processing packet 139258 [packets to send 137, broken 136] [10:58:38]ProducePacketName [10:58:38]name=ofd_packets/00139258 [10:58:38]OFD Sender: To server: pG, [10:58:38]CommunicateWithHost lk.salyk.kg:30040 [10:58:38]ConnectInit lk.salyk.kg [10:58:38]written 0, free lines is 4095 [10:58:38]Connected sock=9 [10:58: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 37 36 10 01 00 00 4E B4 08 01 D5 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 5D 00 00 00 F4 03 04 00 5F 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 1F 02 00 35 04 06 00 AA 99 A8 7B C6 E7 EE C6 E5 3A 4E 32 C0 BB [10:58: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 37 36 4F 00 00 00 F6 B6 47 00 08 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 37 36 10 04 04 00 FA 1F 02 00 F4 03 04 00 F5 CB C2 66 B6 04 01 00 00 47 0B 9F AF C1 2A FD C1 [10:58:39]CommunicateWithHost err = 0 [10:58:39]CheckOFDResponse [10:58:39]1017 (14) - 77093643461234 [10:58:39]1041 (16) - 0000000000871776 [10:58:39]1040 (4) - 139258 [10:58:39]1012 (4) - 19.08.2024 04:37 [10:58:39]1206 (1) - 0 [10:58:39]OFD Sender: Remove packet 139258 [10:58:39]ProducePacketName [10:58:39]name=ofd_packets/00139258 [10:58:39]NVStorageDeleteData [10:58:39]Write to MH i2c: 01 00 00 CE 1C EA [10:58:39]Write i2c OK [10:58:39]MH_I2C_Read... [10:58:39]Read from MH i2c: 01 [10:58:39]MH_I2C_Read... [10:58:39]Read from MH i2c: 01 07 00 [10:58:39]MH_I2C_Read... [10:58:39]Read from MH i2c: 01 07 00 CE 1C 00 00 00 00 00 D4 0C D1 [10:58:39]RasterBufferAndPrint [10:58:39]line [10:58:39]line [10:58:39]line [10:58:39]line [10:58:39]line [10:58:39]written 0, free lines is 3293 [10:58:39]MH_Cut [10:58:39]Write to MH i2c: D1 01 00 D5 1C 01 C3 [10:58:39]Write i2c OK [10:58:39]MH_I2C_Read... [10:58:39]Read from MH i2c: D1 [10:58:39]MH_I2C_Read... [10:58:39]Read from MH i2c: D1 01 00 [10:58:39]MH_I2C_Read... [10:58:39]Read from MH i2c: D1 01 00 D5 1C 00 C2 [10:58:39]Write to MH i2c: 01 00 00 D6 1C F2 [10:58:39]Write i2c OK [10:58:39]MH_I2C_Read... [10:58:39]OFD Sender: No OFD packet to send [10:58:40]*** Cut start [10:58:40]*** Partial cut [10:58:40]*** CUTSNS_PIN = 1 [10:58:40]*** CUTSNS_PIN = 0 [10:58:40]*** Brake cut motor [10:58:40]Read from MH i2c: 01 [10:58:40]MH_I2C_Read... [10:58:40]*** Stop cut motor [10:58:40]*** Cut end [10:58:40]Read from MH i2c: 01 07 00 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: 01 07 00 D6 1C 00 00 00 00 00 FF 0F 07 [10:58:40]process_action close_receipt done [10:58:40]requested_data is exist [10:58:40]produce_requested_data [10:58:40]requested_item fm.sn is exist - process it [10:58:40]wFMCommunicate request_size=4 [10:58:40]MH_SAM_APDU [10:58:40]CAPDU: 80 11 00 00 [10:58:40]Write to MH i2c: E2 08 00 D7 1C 80 11 00 00 00 00 00 00 6D [10:58:40]Write i2c OK [10:58:40]MH_I2C_Read... [10:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:40]Read from MH i2c: E2 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: E2 17 00 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: E2 17 00 D7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [10:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:58:40]wFMCommunicate OK [10:58:40]requested_item fd.num is exist - process it [10:58:40]SAM_PROTO_GetFieldsCounters [10:58:40]wFMCommunicate request_size=4 [10:58:40]MH_SAM_APDU [10:58:40]CAPDU: 80 13 00 00 [10:58:40]Write to MH i2c: E2 08 00 D8 1C 80 13 00 00 00 00 00 00 70 [10:58:40]Write i2c OK [10:58:40]MH_I2C_Read... [10:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:40]Read from MH i2c: E2 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: E2 62 00 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: E2 62 00 D8 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [10:58: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:40]wFMCommunicate OK [10:58:40]SAM_PROTO_GetFieldsCounters done [10:58:40]requested_item shift.num is exist - process it [10:58:40]requested_item shift.opened is exist - process it [10:58:40]req_shift_opened [10:58:40]FM_GetShiftState [10:58:40]SAM_PROTO_GetShiftState [10:58:40]wFMCommunicate request_size=4 [10:58:40]MH_SAM_APDU [10:58:40]CAPDU: 80 13 01 00 [10:58:40]Write to MH i2c: E2 08 00 D9 1C 80 13 01 00 00 00 00 00 72 [10:58:40]Write i2c OK [10:58:40]MH_I2C_Read... [10:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:40]Read from MH i2c: E2 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: E2 0E 00 [10:58:40]MH_I2C_Read... [10:58:40]Read from MH i2c: E2 0E 00 D9 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 29 [10:58:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [10:58:40]wFMCommunicate OK [10:58:40]SAM_PROTO_GetShiftState done [10:58:40]FM_GetShiftState done [10:58:40]req_shift_opened done [10:58:40]requested_item shift.open_date is exist - process it [10:58:40]req_shift_open_date [10:58:40]req_shift_open_date done [10:58:40]produce_requested_data done [10:58:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139258,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [10:58:40]process_action_free close_receipt [10:58:40]json_value_free [10:58:40]json_value_free done [10:58:40]process_json_proto returns [10:58:40]Send response to host [10:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139258,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [10:58:40]free response buf [10:58:40]execute_script done [10:58:40]execute_script returns [10:58:40]free content buf [10:58:40]Sock 10.Close socket [10:58:40]Sock 10.Thread stoped [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:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:15]accept exits with 7 [11:01:15]New connection [11:01:15]New thread 3067059556 created [11:01:15]Thread 3067202916 joined [11:01:15]Waiting for new connection... [11:01:15] Sock 7.Parse request [11:01:15]Sock 7.Check first char [11:01:15]Sock 7.First char is OK [11:01:15]request: POST /json_proto HTTP/1.0 [11:01:15]Method: POST [11:01:15]URL: /json_proto [11:01:15]Method is POST - this is cgi request [11:01:15]url: /json_proto [11:01:15]query_string will be loaded in cgi processing [11:01:15]execute_cgi json_proto POST (null) [11:01:15]execute_cgi path=json_proto method=POST [11:01:15]POST find Content-Length [11:01:15]Host: 172.17.45.67:8080 [11:01:15]Content-Length: 679 [11:01:15]Content-Type: application/json [11:01:15] [11:01:15]POST finish read [11:01:15]Found Content-Length = 679 [11:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.610, "sum" : 719.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 719.00, "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:15]execute_script... [11:01: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)593100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.610, "sum" : 719.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 719.00, "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:15]POST & json_proto [11:01:15]process_json_proto [11:01:15]json parsed OK: [11:01:15]protocol is kg_v1.0 [11:01:15]action value=close_receipt [11:01:15]process_action close_receipt [11:01:15]cmd_close_receipt [11:01:15]MH_GetDate [11:01:15]Write to MH i2c: F0 00 00 DA 1C E5 [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: F0 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: F0 09 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: F0 09 00 DA 1C 00 FD 25 C3 66 5F 7F 2B 66 A8 [11:01:15]GetLastDocTimeStamp 1724065119 [11:01:15]current date 1724065277 [11:01:15]FM_GetShiftState [11:01:15]SAM_PROTO_GetShiftState [11:01:15]wFMCommunicate request_size=4 [11:01:15]MH_SAM_APDU [11:01:15]CAPDU: 80 13 01 00 [11:01:15]Write to MH i2c: E2 08 00 DB 1C 80 13 01 00 00 00 00 00 74 [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:15]Read from MH i2c: E2 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 0E 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 0E 00 DB 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2B [11:01:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:01:15]wFMCommunicate OK [11:01:15]SAM_PROTO_GetShiftState done [11:01:15]FM_GetShiftState done [11:01:15]opened in 1724027888 [11:01:15]opened+sec_in_day 1724114288 [11:01:15]quantity*price = 71935 [11:01:15]sum+1 = 71937 [11:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 719.00 Внесено: 1000.00 СДАЧА: 281.00 НСП 1% : 6.37 НДС 12% : 76.39 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 94 19.08.2024 11:01 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139259 ФПД: 217715551753863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110117&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139259&fm=217715551753863&tin=02508201610067®Number=0000000000092569&sum=71900 [11:01:16]StoreToDocumentArchive [11:01:16]shift 452 fd 139259 [11:01:16]save to /storage/0452/doc_00139259 [11:01:16]save last doc name /storage/0452/doc_00139259 to /storage/kkm_last_doc_name [11:01:16]save OK [11:01:16]Clear old archive folders... [11:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:16]tlvbuf is 01D66DE0 [11:01:16]SAM_PROTO_ClearQueue [11:01:16]wFMCommunicate request_size=4 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 09 00 00 [11:01:16]Write to MH i2c: E2 08 00 E8 1C 80 09 00 00 00 00 00 00 76 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 E8 1C 00 90 00 78 [11:01:16]RAPDU: 90 00 [11:01:16]wFMCommunicate OK [11:01:16]SAM_PROTO_ClearQueue done [11:01:16]KKMCreateOFDPacket [11:01:16]OFDProtocolAddRootSTLVToBuf [11:01:16]FM_MakeSignedData [11:01:16]FM_MakeSignedData [11:01:16]SAM_PROTO_SignData [11:01:16]wFMCommunicate request_size=4 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 0D 01 02 [11:01:16]Write to MH i2c: E2 08 00 E9 1C 80 0D 01 02 00 00 00 00 7E [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 E9 1C 00 90 00 79 [11:01:16]RAPDU: 90 00 [11:01:16]wFMCommunicate OK [11:01:16]wFMCommunicate request_size=255 [11:01:16]MH_SAM_APDU [11:01: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 72 29 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 00 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FD 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 1F 02 00 35 04 06 00 C6 [11:01:16]Write to MH i2c: E2 02 01 EA 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 29 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 00 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FD 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 1F 02 00 35 04 06 00 C6 00 00 8A [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [11:01:16]RAPDU: 90 00 [11:01:16]wFMCommunicate OK [11:01:16]wFMCommunicate request_size=10 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 0D 02 02 05 02 DA 1F D6 87 [11:01:16]Write to MH i2c: E2 0D 00 EB 1C 80 0D 02 02 05 00 02 DA 1F D6 87 00 00 E3 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [11:01:16]RAPDU: 90 00 [11:01:16]wFMCommunicate OK [11:01:16]wFMCommunicate request_size=4 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 0D 03 02 [11:01:16]Write to MH i2c: E2 08 00 EC 1C 80 0D 03 02 00 00 00 00 83 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 0B 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 0B 00 EC 1C 00 D2 C9 FE 20 8B 85 B0 24 90 00 21 [11:01:16]RAPDU: D2 C9 FE 20 8B 85 B0 24 90 00 [11:01:16]wFMCommunicate OK [11:01:16]SAM_PROTO_SignData done [11:01:16]FM_MakeSignedData done [11:01:16]CreateOFDProtocolMessage [11:01:16]wFMCommunicate request_size=4 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 11 00 00 [11:01:16]Write to MH i2c: E2 08 00 ED 1C 80 11 00 00 00 00 00 00 83 [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 17 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 17 00 ED 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DA [11:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:01:16]wFMCommunicate OK [11:01:16]CreateOFDProtocolMessage done [11:01:16]OFDSenderStorePacket 139259 [11:01:16]StoreOFDPacket docnum=139259 [11:01:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 A3 07 01 95 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 29 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 00 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FD 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 1F 02 00 35 04 06 00 C6 02 DA 1F D6 87 D2 C9 FE 20 8B 85 B0 24 [11:01:16]CheckFolder [11:01:16]dirname=/storage/ofd_packets [11:01:16]CheckFolder done [11:01:16]ProducePacketName [11:01:16]name=ofd_packets/00139259 [11:01:16]NVStorageSaveData ofd_packets/00139259 [11:01:16]File name is /storage/ofd_packets/00139259 [11:01:16]Write 301 bytes [11:01:16]NVStorageSaveData done [11:01:16]OFDSenderStorePacket done [11:01:16]KKMCreateOFDPacket done [11:01:16]NVStorageSaveData kkm_last_timestamp [11:01:16]File name is /storage/kkm_last_timestamp [11:01:16]Write 4 bytes [11:01:16]NVStorageSaveData done [11:01:16]ExternCall_PrintAddStr [11:01:16]wPrintStart [11:01:16]Write to MH i2c: 01 00 00 EE 1C 0A [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 07 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: 01 07 00 EE 1C 00 00 00 00 00 FF 0F 1F [11:01:16]RasterBufferAndPrint [11:01:16]line Счет N : (1)593100 [11:01:16]line ИНН: 02508201610067 [11:01:16]line Контрольно-Кассовый Чек [11:01:16]line ПРОДАЖА [11:01:16]line ТРК (МРК, ГНК) : 62 [11:01:16]line Товар: 2710124130 [11:01:16]line Аи-92-К-5 [11:01:16]line 10.610 * 67.80 [11:01:16]line = 719.36 [11:01:16]line НДС 12% НСП 1% [11:01:16]line > о реализуемом товаре [11:01:16]line ОКРУГЛЕНИЕ: -0.36 [11:01:16]line ИТОГО: 719.00 [11:01:16]line Внесено: 1000.00 [11:01:16]line СДАЧА: 281.00 [11:01:16]line НСП 1% : 6.37 [11:01:16]line НДС 12% : 76.39 [11:01:16]line Наличными: 719.00 [11:01:16]line Безнал.: 0.00 [11:01:16]line Место: АЗС № 136 "Партнер Нефть" [11:01:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:01:16]line СНО: Общий режим [11:01:16]line Чек 94 19.08.2024 11:01 [11:01:16]line Смена: 452 ФФД: 1.0 [11:01:16]line ЗНМ: 0300000067 [11:01:16]line РНМ: 0000000000092569 [11:01:16]line Версия ККМ: 001 [11:01:16]line ФМ: 0000000000871776 [11:01:16]line ФД: 139259 [11:01:17]line ФПД: 217715551753863 [11:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110117&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139259&fm=217715551753863&tin=02508201610067®Number=0000000000092569&sum=71900 [11:01:17]OFD Sender: Processing packet 139259 [packets to send 137, broken 136] [11:01:17]ProducePacketName [11:01:17]name=ofd_packets/00139259 [11:01:17]OFD Sender: To server: pG, [11:01:17]CommunicateWithHost lk.salyk.kg:30040 [11:01:17]ConnectInit lk.salyk.kg [11:01:17]written 0, free lines is 4095 [11:01:17]Connected sock=10 [11:01: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 37 36 0F 01 00 00 A1 A3 07 01 95 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 29 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 00 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FD 25 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 1F 02 00 35 04 06 00 C6 02 DA 1F D6 87 D2 C9 FE 20 8B 85 B0 24 [11:01: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 37 36 4F 00 00 00 61 82 47 00 FD AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 1F 02 00 F4 03 04 00 93 CC C2 66 B6 04 01 00 00 6C 5F 8B A6 B1 67 15 26 [11:01:17]CommunicateWithHost err = 0 [11:01:17]CheckOFDResponse [11:01:17]1017 (14) - 77093643461234 [11:01:17]1041 (16) - 0000000000871776 [11:01:17]1040 (4) - 139259 [11:01:17]1012 (4) - 19.08.2024 04:39 [11:01:17]1206 (1) - 0 [11:01:17]OFD Sender: Remove packet 139259 [11:01:17]ProducePacketName [11:01:17]name=ofd_packets/00139259 [11:01:17]NVStorageDeleteData [11:01:17]Write to MH i2c: 01 00 00 19 1D 36 [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: 01 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: 01 07 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: 01 07 00 19 1D 00 00 00 00 00 CF 0C 18 [11:01:17]RasterBufferAndPrint [11:01:17]line [11:01:17]line [11:01:17]line [11:01:17]line [11:01:17]line [11:01:17]written 0, free lines is 3284 [11:01:17]MH_Cut [11:01:17]Write to MH i2c: D1 01 00 20 1D 01 0F [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: D1 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: D1 01 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: D1 01 00 20 1D 00 0E [11:01:17]Write to MH i2c: 01 00 00 21 1D 3E [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:18]OFD Sender: No OFD packet to send [11:01:18]*** Cut start [11:01:18]*** Partial cut [11:01:18]*** CUTSNS_PIN = 1 [11:01:18]*** CUTSNS_PIN = 0 [11:01:18]*** Brake cut motor [11:01:18]Read from MH i2c: 01 [11:01:18]MH_I2C_Read... [11:01:18]*** Stop cut motor [11:01:18]*** Cut end [11:01:18]Read from MH i2c: 01 07 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 07 00 21 1D 00 00 00 00 00 FF 0F 53 [11:01:18]process_action close_receipt done [11:01:18]requested_data is exist [11:01:18]produce_requested_data [11:01:18]requested_item fm.sn is exist - process it [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 11 00 00 [11:01:18]Write to MH i2c: E2 08 00 22 1D 80 11 00 00 00 00 00 00 B9 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:19]Read from MH i2c: E2 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 17 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 17 00 22 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [11:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:01:19]wFMCommunicate OK [11:01:19]requested_item fd.num is exist - process it [11:01:19]SAM_PROTO_GetFieldsCounters [11:01:19]wFMCommunicate request_size=4 [11:01:19]MH_SAM_APDU [11:01:19]CAPDU: 80 13 00 00 [11:01:19]Write to MH i2c: E2 08 00 23 1D 80 13 00 00 00 00 00 00 BC [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:19]Read from MH i2c: E2 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 62 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 62 00 23 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:19]wFMCommunicate OK [11:01:19]SAM_PROTO_GetFieldsCounters done [11:01:19]requested_item shift.num is exist - process it [11:01:19]requested_item shift.opened is exist - process it [11:01:19]req_shift_opened [11:01:19]FM_GetShiftState [11:01:19]SAM_PROTO_GetShiftState [11:01:19]wFMCommunicate request_size=4 [11:01:19]MH_SAM_APDU [11:01:19]CAPDU: 80 13 01 00 [11:01:19]Write to MH i2c: E2 08 00 24 1D 80 13 01 00 00 00 00 00 BE [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:19]Read from MH i2c: E2 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 0E 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 0E 00 24 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 75 [11:01:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:01:19]wFMCommunicate OK [11:01:19]SAM_PROTO_GetShiftState done [11:01:19]FM_GetShiftState done [11:01:19]req_shift_opened done [11:01:19]requested_item shift.open_date is exist - process it [11:01:19]req_shift_open_date [11:01:19]req_shift_open_date done [11:01:19]produce_requested_data done [11:01:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139259,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:01:19]process_action_free close_receipt [11:01:19]json_value_free [11:01:19]json_value_free done [11:01:19]process_json_proto returns [11:01:19]Send response to host [11:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139259,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:01:19]free response buf [11:01:19]execute_script done [11:01:19]execute_script returns [11:01:19]free content buf [11:01:19]Sock 7.Close socket [11:01:19]Sock 7.Thread stoped [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:45]int [11:01:45]Write to MH i2c: 01 00 00 25 1D 42 [11:01:45]*** FLAG_PRN_KEY set [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 25 1D 00 08 00 00 00 FF 0F 5F [11:01:45]state=0 [11:01:45]Key pressed [11:01:45]Feed [11:01:45]Write to MH i2c: D8 00 00 26 1D 1A [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: D8 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: D8 01 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: D8 01 00 26 1D 00 1B [11:01:45]int [11:01:45]Write to MH i2c: 01 00 00 27 1D 44 [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 27 1D 00 48 00 00 00 3C 00 CF [11:01:45]state=2 [11:01:45]Key pressed [11:01:45]int [11:01:45]Write to MH i2c: 01 00 00 28 1D 45 [11:01:45]*** FLAG_PRN_KEY reset [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 28 1D 00 00 00 00 00 F5 0F 50 [11:01:45]state=2 [11:01:45]Stop feed [11:01:48]OFD Sender: No OFD packet to send [11:01:49]accept exits with 9 [11:01:49]New connection [11:01:49]New thread 3067202916 created [11:01:49]Thread 3067059556 joined [11:01:49]Waiting for new connection... [11:01:49] Sock 9.Parse request [11:01:49]Sock 9.Check first char [11:01:49]Sock 9.First char is OK [11:01:49]request: POST /json_proto HTTP/1.0 [11:01:49]Method: POST [11:01:49]URL: /json_proto [11:01:49]Method is POST - this is cgi request [11:01:49]url: /json_proto [11:01:49]query_string will be loaded in cgi processing [11:01:49]execute_cgi json_proto POST (null) [11:01:49]execute_cgi path=json_proto method=POST [11:01:49]POST find Content-Length [11:01:49]Host: 172.17.45.67:8080 [11:01:49]Content-Length: 677 [11:01:49]Content-Type: application/json [11:01:49] [11:01:49]POST finish read [11:01:49]Found Content-Length = 677 [11:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:01:49]execute_script... [11:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:01:49]POST & json_proto [11:01:49]process_json_proto [11:01:49]json parsed OK: [11:01:49]protocol is kg_v1.0 [11:01:49]action value=close_receipt [11:01:49]process_action close_receipt [11:01:49]cmd_close_receipt [11:01:49]MH_GetDate [11:01:49]Write to MH i2c: F0 00 00 29 1D 35 [11:01:49]Write i2c OK [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: F0 [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: F0 09 00 [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: F0 09 00 29 1D 00 1F 26 C3 66 5F 7F 2B 66 1B [11:01:49]GetLastDocTimeStamp 1724065277 [11:01:49]current date 1724065311 [11:01:49]FM_GetShiftState [11:01:49]SAM_PROTO_GetShiftState [11:01:49]wFMCommunicate request_size=4 [11:01:49]MH_SAM_APDU [11:01:49]CAPDU: 80 13 01 00 [11:01:49]Write to MH i2c: E2 08 00 2A 1D 80 13 01 00 00 00 00 00 C4 [11:01:49]Write i2c OK [11:01:49]MH_I2C_Read... [11:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:49]Read from MH i2c: E2 [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: E2 0E 00 [11:01:49]MH_I2C_Read... [11:01:49]Read from MH i2c: E2 0E 00 2A 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7B [11:01:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:01:49]wFMCommunicate OK [11:01:49]SAM_PROTO_GetShiftState done [11:01:49]FM_GetShiftState done [11:01:49]opened in 1724027888 [11:01:49]opened+sec_in_day 1724114288 [11:01:49]quantity*price = 50010 [11:01:49]sum+1 = 50012 [11:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 95 19.08.2024 11:01 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139260 ФПД: 228931513791828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110151&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139260&fm=228931513791828&tin=02508201610067®Number=0000000000092569&sum=50000 [11:01:50]StoreToDocumentArchive [11:01:50]shift 452 fd 139260 [11:01:50]save to /storage/0452/doc_00139260 [11:01:50]save last doc name /storage/0452/doc_00139260 to /storage/kkm_last_doc_name [11:01:50]save OK [11:01:50]Clear old archive folders... [11:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:50]tlvbuf is B6EE5AE0 [11:01:50]SAM_PROTO_ClearQueue [11:01:50]wFMCommunicate request_size=4 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 09 00 00 [11:01:50]Write to MH i2c: E2 08 00 37 1D 80 09 00 00 00 00 00 00 C6 [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 03 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [11:01:50]RAPDU: 90 00 [11:01:50]wFMCommunicate OK [11:01:50]SAM_PROTO_ClearQueue done [11:01:50]KKMCreateOFDPacket [11:01:50]OFDProtocolAddRootSTLVToBuf [11:01:50]FM_MakeSignedData [11:01:50]FM_MakeSignedData [11:01:50]SAM_PROTO_SignData [11:01:50]wFMCommunicate request_size=4 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 0D 01 02 [11:01:50]Write to MH i2c: E2 08 00 38 1D 80 0D 01 02 00 00 00 00 CE [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 03 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 03 00 38 1D 00 90 00 C9 [11:01:50]RAPDU: 90 00 [11:01:50]wFMCommunicate OK [11:01:50]wFMCommunicate request_size=255 [11:01:50]MH_SAM_APDU [11:01: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1F 26 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 1F 02 00 35 04 06 00 D0 [11:01:50]Write to MH i2c: E2 02 01 39 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1F 26 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 1F 02 00 35 04 06 00 D0 00 00 BE [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 03 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 03 00 39 1D 00 90 00 CA [11:01:50]RAPDU: 90 00 [11:01:50]wFMCommunicate OK [11:01:50]wFMCommunicate request_size=10 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 0D 02 02 05 36 45 8E B5 54 [11:01:50]Write to MH i2c: E2 0D 00 3A 1D 80 0D 02 02 05 00 36 45 8E B5 54 00 00 ED [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:50]Read from MH i2c: E2 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 03 00 [11:01:50]MH_I2C_Read... [11:01:50]Read from MH i2c: E2 03 00 3A 1D 00 90 00 CB [11:01:50]RAPDU: 90 00 [11:01:50]wFMCommunicate OK [11:01:50]wFMCommunicate request_size=4 [11:01:50]MH_SAM_APDU [11:01:50]CAPDU: 80 0D 03 02 [11:01:50]Write to MH i2c: E2 08 00 3B 1D 80 0D 03 02 00 00 00 00 D3 [11:01:50]Write i2c OK [11:01:50]MH_I2C_Read... [11:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:51]Read from MH i2c: E2 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: E2 0B 00 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: E2 0B 00 3B 1D 00 DA 82 36 5D 8D EF C5 A6 90 00 AA [11:01:51]RAPDU: DA 82 36 5D 8D EF C5 A6 90 00 [11:01:51]wFMCommunicate OK [11:01:51]SAM_PROTO_SignData done [11:01:51]FM_MakeSignedData done [11:01:51]CreateOFDProtocolMessage [11:01:51]wFMCommunicate request_size=4 [11:01:51]MH_SAM_APDU [11:01:51]CAPDU: 80 11 00 00 [11:01:51]Write to MH i2c: E2 08 00 3C 1D 80 11 00 00 00 00 00 00 D3 [11:01:51]Write i2c OK [11:01:51]MH_I2C_Read... [11:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:51]Read from MH i2c: E2 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: E2 17 00 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: E2 17 00 3C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [11:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:01:51]wFMCommunicate OK [11:01:51]CreateOFDProtocolMessage done [11:01:51]OFDSenderStorePacket 139260 [11:01:51]StoreOFDPacket docnum=139260 [11:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C3 CB 07 01 C3 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1F 26 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 1F 02 00 35 04 06 00 D0 36 45 8E B5 54 DA 82 36 5D 8D EF C5 A6 [11:01:51]CheckFolder [11:01:51]dirname=/storage/ofd_packets [11:01:51]CheckFolder done [11:01:51]ProducePacketName [11:01:51]name=ofd_packets/00139260 [11:01:51]NVStorageSaveData ofd_packets/00139260 [11:01:51]File name is /storage/ofd_packets/00139260 [11:01:51]Write 301 bytes [11:01:51]NVStorageSaveData done [11:01:51]OFDSenderStorePacket done [11:01:51]KKMCreateOFDPacket done [11:01:51]NVStorageSaveData kkm_last_timestamp [11:01:51]File name is /storage/kkm_last_timestamp [11:01:51]Write 4 bytes [11:01:51]NVStorageSaveData done [11:01:51]ExternCall_PrintAddStr [11:01:51]wPrintStart [11:01:51]Write to MH i2c: 01 00 00 3D 1D 5A [11:01:51]Write i2c OK [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: 01 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: 01 07 00 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: 01 07 00 3D 1D 00 00 00 00 00 FF 0F 6F [11:01:51]RasterBufferAndPrint [11:01:51]line Счет N : (1)593101 [11:01:51]line ИНН: 02508201610067 [11:01:51]line Контрольно-Кассовый Чек [11:01:51]line ПРОДАЖА [11:01:51]line ТРК (МРК, ГНК) : 41 [11:01:51]line Товар: 2710124500 [11:01:51]line Аи-95-К-5 [11:01:51]line 6.740 * 74.20 [11:01:51]line = 500.11 [11:01:51]line НДС 12% НСП 1% [11:01:51]line > о реализуемом товаре [11:01:51]line ОКРУГЛЕНИЕ: -0.11 [11:01:51]line ИТОГО: 500.00 [11:01:51]line Внесено: 500.00 [11:01:51]line СДАЧА: 0.00 [11:01:51]line НСП 1% : 4.43 [11:01:51]line НДС 12% : 53.11 [11:01:51]line Наличными: 500.00 [11:01:51]line Безнал.: 0.00 [11:01:51]line Место: АЗС № 136 "Партнер Нефть" [11:01:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:01:51]line СНО: Общий режим [11:01:51]line Чек 95 19.08.2024 11:01 [11:01:51]line Смена: 452 ФФД: 1.0 [11:01:51]line ЗНМ: 0300000067 [11:01:51]line РНМ: 0000000000092569 [11:01:51]line Версия ККМ: 001 [11:01:51]line ФМ: 0000000000871776 [11:01:51]line ФД: 139260 [11:01:51]line ФПД: 228931513791828 [11:01:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110151&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139260&fm=228931513791828&tin=02508201610067®Number=0000000000092569&sum=50000 [11:01:51]OFD Sender: Processing packet 139260 [packets to send 137, broken 136] [11:01:51]ProducePacketName [11:01:51]name=ofd_packets/00139260 [11:01:51]OFD Sender: To server: pG, [11:01:51]CommunicateWithHost lk.salyk.kg:30040 [11:01:51]ConnectInit lk.salyk.kg [11:01:51]written 0, free lines is 4095 [11:01:51]Connected sock=10 [11:01: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 37 36 0F 01 00 00 C3 CB 07 01 C3 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1F 26 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 1F 02 00 35 04 06 00 D0 36 45 8E B5 54 DA 82 36 5D 8D EF C5 A6 [11:01: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 37 36 4F 00 00 00 C4 E2 47 00 2C 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 37 36 10 04 04 00 FC 1F 02 00 F4 03 04 00 B6 CC C2 66 B6 04 01 00 00 08 C7 24 7A 5A 98 1D F8 [11:01:51]CommunicateWithHost err = 0 [11:01:51]CheckOFDResponse [11:01:51]1017 (14) - 77093643461234 [11:01:51]1041 (16) - 0000000000871776 [11:01:51]1040 (4) - 139260 [11:01:51]1012 (4) - 19.08.2024 04:40 [11:01:51]1206 (1) - 0 [11:01:51]OFD Sender: Remove packet 139260 [11:01:51]ProducePacketName [11:01:51]name=ofd_packets/00139260 [11:01:51]NVStorageDeleteData [11:01:51]Write to MH i2c: 01 00 00 68 1D 85 [11:01:51]Write i2c OK [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: 01 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: 01 07 00 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: 01 07 00 68 1D 00 00 00 00 00 DD 0C 75 [11:01:51]RasterBufferAndPrint [11:01:51]line [11:01:51]line [11:01:51]line [11:01:51]line [11:01:51]line [11:01:51]written 0, free lines is 3299 [11:01:51]MH_Cut [11:01:51]Write to MH i2c: D1 01 00 6F 1D 01 5E [11:01:51]Write i2c OK [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: D1 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: D1 01 00 [11:01:51]MH_I2C_Read... [11:01:51]Read from MH i2c: D1 01 00 6F 1D 00 5D [11:01:51]Write to MH i2c: 01 00 00 70 1D 8D [11:01:51]Write i2c OK [11:01:51]MH_I2C_Read... [11:01:52]OFD Sender: No OFD packet to send [11:01:52]*** Cut start [11:01:52]*** Partial cut [11:01:52]*** CUTSNS_PIN = 1 [11:01:52]*** CUTSNS_PIN = 0 [11:01:52]*** Brake cut motor [11:01:53]Read from MH i2c: 01 [11:01:53]MH_I2C_Read... [11:01:53]*** Stop cut motor [11:01:53]*** Cut end [11:01:53]Read from MH i2c: 01 07 00 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: 01 07 00 70 1D 00 00 00 00 00 FF 0F A2 [11:01:53]process_action close_receipt done [11:01:53]requested_data is exist [11:01:53]produce_requested_data [11:01:53]requested_item fm.sn is exist - process it [11:01:53]wFMCommunicate request_size=4 [11:01:53]MH_SAM_APDU [11:01:53]CAPDU: 80 11 00 00 [11:01:53]Write to MH i2c: E2 08 00 71 1D 80 11 00 00 00 00 00 00 08 [11:01:53]Write i2c OK [11:01:53]MH_I2C_Read... [11:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:53]Read from MH i2c: E2 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: E2 17 00 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: E2 17 00 71 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [11:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:01:53]wFMCommunicate OK [11:01:53]requested_item fd.num is exist - process it [11:01:53]SAM_PROTO_GetFieldsCounters [11:01:53]wFMCommunicate request_size=4 [11:01:53]MH_SAM_APDU [11:01:53]CAPDU: 80 13 00 00 [11:01:53]Write to MH i2c: E2 08 00 72 1D 80 13 00 00 00 00 00 00 0B [11:01:53]Write i2c OK [11:01:53]MH_I2C_Read... [11:01:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:53]Read from MH i2c: E2 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: E2 62 00 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: E2 62 00 72 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [11:01: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:53]wFMCommunicate OK [11:01:53]SAM_PROTO_GetFieldsCounters done [11:01:53]requested_item shift.num is exist - process it [11:01:53]requested_item shift.opened is exist - process it [11:01:53]req_shift_opened [11:01:53]FM_GetShiftState [11:01:53]SAM_PROTO_GetShiftState [11:01:53]wFMCommunicate request_size=4 [11:01:53]MH_SAM_APDU [11:01:53]CAPDU: 80 13 01 00 [11:01:53]Write to MH i2c: E2 08 00 73 1D 80 13 01 00 00 00 00 00 0D [11:01:53]Write i2c OK [11:01:53]MH_I2C_Read... [11:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:53]Read from MH i2c: E2 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: E2 0E 00 [11:01:53]MH_I2C_Read... [11:01:53]Read from MH i2c: E2 0E 00 73 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C4 [11:01:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:01:53]wFMCommunicate OK [11:01:53]SAM_PROTO_GetShiftState done [11:01:53]FM_GetShiftState done [11:01:53]req_shift_opened done [11:01:53]requested_item shift.open_date is exist - process it [11:01:53]req_shift_open_date [11:01:53]req_shift_open_date done [11:01:53]produce_requested_data done [11:01:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139260,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:01:53]process_action_free close_receipt [11:01:53]json_value_free [11:01:53]json_value_free done [11:01:53]process_json_proto returns [11:01:53]Send response to host [11:01:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139260,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:01:53]free response buf [11:01:53]execute_script done [11:01:53]execute_script returns [11:01:53]free content buf [11:01:53]Sock 9.Close socket [11:01:53]Sock 9.Thread stoped [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]accept exits with 7 [11:05:17]New connection [11:05:17]New thread 3067059556 created [11:05:17]Thread 3067202916 joined [11:05:17]Waiting for new connection... [11:05:17] Sock 7.Parse request [11:05:17]Sock 7.Check first char [11:05:17]Sock 7.First char is OK [11:05:17]request: POST /json_proto HTTP/1.0 [11:05:17]Method: POST [11:05:17]URL: /json_proto [11:05:17]Method is POST - this is cgi request [11:05:17]url: /json_proto [11:05:17]query_string will be loaded in cgi processing [11:05:17]execute_cgi json_proto POST (null) [11:05:17]execute_cgi path=json_proto method=POST [11:05:17]POST find Content-Length [11:05:17]Host: 172.17.45.67:8080 [11:05:17]Content-Length: 677 [11:05:17]Content-Type: application/json [11:05:17] [11:05:17]POST finish read [11:05:17]Found Content-Length = 677 [11:05:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:05:17]execute_script... [11:05: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)593102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:05:17]POST & json_proto [11:05:17]process_json_proto [11:05:17]json parsed OK: [11:05:17]protocol is kg_v1.0 [11:05:17]action value=close_receipt [11:05:17]process_action close_receipt [11:05:17]cmd_close_receipt [11:05:17]MH_GetDate [11:05:17]Write to MH i2c: F0 00 00 74 1D 80 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: F0 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: F0 09 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: F0 09 00 74 1D 00 F0 26 C3 66 5F 7F 2B 66 37 [11:05:17]GetLastDocTimeStamp 1724065311 [11:05:17]current date 1724065520 [11:05:17]FM_GetShiftState [11:05:17]SAM_PROTO_GetShiftState [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 13 01 00 [11:05:17]Write to MH i2c: E2 08 00 75 1D 80 13 01 00 00 00 00 00 0F [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0E 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0E 00 75 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C6 [11:05:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:05:17]wFMCommunicate OK [11:05:17]SAM_PROTO_GetShiftState done [11:05:17]FM_GetShiftState done [11:05:17]opened in 1724027888 [11:05:17]opened+sec_in_day 1724114288 [11:05:17]quantity*price = 20001 [11:05:17]sum+1 = 20002 [11:05:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 96 19.08.2024 11:05 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139261 ФПД: 65657269801069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110520&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139261&fm=65657269801069&tin=02508201610067®Number=0000000000092569&sum=20000 [11:05:18]StoreToDocumentArchive [11:05:18]shift 452 fd 139261 [11:05:18]save to /storage/0452/doc_00139261 [11:05:18]save last doc name /storage/0452/doc_00139261 to /storage/kkm_last_doc_name [11:05:18]save OK [11:05:18]Clear old archive folders... [11:05:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:18]tlvbuf is 01D7DA00 [11:05:18]SAM_PROTO_ClearQueue [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 09 00 00 [11:05:18]Write to MH i2c: E2 08 00 82 1D 80 09 00 00 00 00 00 00 11 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_ClearQueue done [11:05:18]KKMCreateOFDPacket [11:05:18]OFDProtocolAddRootSTLVToBuf [11:05:18]FM_MakeSignedData [11:05:18]FM_MakeSignedData [11:05:18]SAM_PROTO_SignData [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 01 02 [11:05:18]Write to MH i2c: E2 08 00 83 1D 80 0D 01 02 00 00 00 00 19 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=255 [11:05:18]MH_SAM_APDU [11:05: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 60 00 00 00 F4 03 04 00 F0 26 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 1F 02 00 35 04 06 00 3B [11:05:18]Write to MH i2c: E2 02 01 84 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 60 00 00 00 F4 03 04 00 F0 26 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 1F 02 00 35 04 06 00 3B 00 00 61 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 84 1D 00 90 00 15 [11:05:19]RAPDU: 90 00 [11:05:19]wFMCommunicate OK [11:05:19]wFMCommunicate request_size=10 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 0D 02 02 05 B7 06 3E 50 6D [11:05:19]Write to MH i2c: E2 0D 00 85 1D 80 0D 02 02 05 00 B7 06 3E 50 6D 00 00 DE [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 85 1D 00 90 00 16 [11:05:19]RAPDU: 90 00 [11:05:19]wFMCommunicate OK [11:05:19]wFMCommunicate request_size=4 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 0D 03 02 [11:05:19]Write to MH i2c: E2 08 00 86 1D 80 0D 03 02 00 00 00 00 1E [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 0B 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 0B 00 86 1D 00 E3 F8 05 31 2B 1A CF F0 90 00 34 [11:05:19]RAPDU: E3 F8 05 31 2B 1A CF F0 90 00 [11:05:19]wFMCommunicate OK [11:05:19]SAM_PROTO_SignData done [11:05:19]FM_MakeSignedData done [11:05:19]CreateOFDProtocolMessage [11:05:19]wFMCommunicate request_size=4 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 11 00 00 [11:05:19]Write to MH i2c: E2 08 00 87 1D 80 11 00 00 00 00 00 00 1E [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 17 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 17 00 87 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [11:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:05:19]wFMCommunicate OK [11:05:19]CreateOFDProtocolMessage done [11:05:19]OFDSenderStorePacket 139261 [11:05:19]StoreOFDPacket docnum=139261 [11:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 20 95 07 01 69 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 60 00 00 00 F4 03 04 00 F0 26 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 1F 02 00 35 04 06 00 3B B7 06 3E 50 6D E3 F8 05 31 2B 1A CF F0 [11:05:19]CheckFolder [11:05:19]dirname=/storage/ofd_packets [11:05:19]CheckFolder done [11:05:19]ProducePacketName [11:05:19]name=ofd_packets/00139261 [11:05:19]NVStorageSaveData ofd_packets/00139261 [11:05:19]File name is /storage/ofd_packets/00139261 [11:05:19]Write 301 bytes [11:05:19]NVStorageSaveData done [11:05:19]OFDSenderStorePacket done [11:05:19]KKMCreateOFDPacket done [11:05:19]NVStorageSaveData kkm_last_timestamp [11:05:19]File name is /storage/kkm_last_timestamp [11:05:19]Write 4 bytes [11:05:19]NVStorageSaveData done [11:05:19]ExternCall_PrintAddStr [11:05:19]wPrintStart [11:05:19]Write to MH i2c: 01 00 00 88 1D A5 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 88 1D 00 00 00 00 00 FF 0F BA [11:05:19]RasterBufferAndPrint [11:05:19]line Счет N : (1)593102 [11:05:19]line ИНН: 02508201610067 [11:05:19]line Контрольно-Кассовый Чек [11:05:19]line ПРОДАЖА [11:05:19]line ТРК (МРК, ГНК) : 42 [11:05:19]line Товар: 2710124130 [11:05:19]line Аи-92-К-5 [11:05:19]line 2.950 * 67.80 [11:05:19]line = 200.01 [11:05:19]line НДС 12% НСП 1% [11:05:19]line > о реализуемом товаре [11:05:19]line ОКРУГЛЕНИЕ: -0.01 [11:05:19]line ИТОГО: 200.00 [11:05:19]line Внесено: 200.00 [11:05:19]line СДАЧА: 0.00 [11:05:19]line НСП 1% : 1.77 [11:05:19]line НДС 12% : 21.24 [11:05:19]line Наличными: 200.00 [11:05:19]line Безнал.: 0.00 [11:05:19]line Место: АЗС № 136 "Партнер Нефть" [11:05:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:05:19]line СНО: Общий режим [11:05:19]line Чек 96 19.08.2024 11:05 [11:05:19]line Смена: 452 ФФД: 1.0 [11:05:19]line ЗНМ: 0300000067 [11:05:19]line РНМ: 0000000000092569 [11:05:19]line Версия ККМ: 001 [11:05:19]line ФМ: 0000000000871776 [11:05:19]line ФД: 139261 [11:05:19]line ФПД: 65657269801069 [11:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110520&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139261&fm=65657269801069&tin=02508201610067®Number=0000000000092569&sum=20000 [11:05:19]written 0, free lines is 4095 [11:05:19]OFD Sender: Processing packet 139261 [packets to send 137, broken 136] [11:05:19]ProducePacketName [11:05:19]name=ofd_packets/00139261 [11:05:19]OFD Sender: To server: pG, [11:05:19]CommunicateWithHost lk.salyk.kg:30040 [11:05:19]ConnectInit lk.salyk.kg [11:05:19]Connected sock=10 [11:05: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 37 36 0F 01 00 00 20 95 07 01 69 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 60 00 00 00 F4 03 04 00 F0 26 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 1F 02 00 35 04 06 00 3B B7 06 3E 50 6D E3 F8 05 31 2B 1A CF F0 [11:05: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 37 36 4F 00 00 00 77 08 47 00 D7 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 37 36 10 04 04 00 FD 1F 02 00 F4 03 04 00 86 CD C2 66 B6 04 01 00 00 A6 A3 AF B7 DA 2C 0E B7 [11:05:19]CommunicateWithHost err = 0 [11:05:19]CheckOFDResponse [11:05:19]1017 (14) - 77093643461234 [11:05:19]1041 (16) - 0000000000871776 [11:05:19]1040 (4) - 139261 [11:05:19]1012 (4) - 19.08.2024 04:43 [11:05:19]1206 (1) - 0 [11:05:19]OFD Sender: Remove packet 139261 [11:05:19]ProducePacketName [11:05:19]name=ofd_packets/00139261 [11:05:19]NVStorageDeleteData [11:05:19]Write to MH i2c: 01 00 00 B3 1D D0 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 B3 1D 00 00 00 00 00 C7 0C AA [11:05:19]RasterBufferAndPrint [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]written 0, free lines is 3277 [11:05:19]MH_Cut [11:05:19]Write to MH i2c: D1 01 00 BA 1D 01 A9 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 BA 1D 00 A8 [11:05:19]Write to MH i2c: 01 00 00 BB 1D D8 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:20]OFD Sender: No OFD packet to send [11:05:20]*** Cut start [11:05:20]*** Partial cut [11:05:20]*** CUTSNS_PIN = 1 [11:05:20]*** CUTSNS_PIN = 0 [11:05:20]*** Brake cut motor [11:05:21]Read from MH i2c: 01 [11:05:21]MH_I2C_Read... [11:05:21]*** Stop cut motor [11:05:21]*** Cut end [11:05:21]Read from MH i2c: 01 07 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: 01 07 00 BB 1D 00 00 00 00 00 FF 0F ED [11:05:21]process_action close_receipt done [11:05:21]requested_data is exist [11:05:21]produce_requested_data [11:05:21]requested_item fm.sn is exist - process it [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 11 00 00 [11:05:21]Write to MH i2c: E2 08 00 BC 1D 80 11 00 00 00 00 00 00 53 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 17 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 17 00 BC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [11:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:05:21]wFMCommunicate OK [11:05:21]requested_item fd.num is exist - process it [11:05:21]SAM_PROTO_GetFieldsCounters [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 00 00 [11:05:21]Write to MH i2c: E2 08 00 BD 1D 80 13 00 00 00 00 00 00 56 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 BD 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [11:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetFieldsCounters done [11:05:21]requested_item shift.num is exist - process it [11:05:21]requested_item shift.opened is exist - process it [11:05:21]req_shift_opened [11:05:21]FM_GetShiftState [11:05:21]SAM_PROTO_GetShiftState [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 01 00 [11:05:21]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0F [11:05:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetShiftState done [11:05:21]FM_GetShiftState done [11:05:21]req_shift_opened done [11:05:21]requested_item shift.open_date is exist - process it [11:05:21]req_shift_open_date [11:05:21]req_shift_open_date done [11:05:21]produce_requested_data done [11:05:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139261,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:05:21]process_action_free close_receipt [11:05:21]json_value_free [11:05:21]json_value_free done [11:05:21]process_json_proto returns [11:05:21]Send response to host [11:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139261,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:05:21]free response buf [11:05:21]execute_script done [11:05:21]execute_script returns [11:05:21]free content buf [11:05:21]Sock 7.Close socket [11:05:21]Sock 7.Thread stoped [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:54]accept exits with 9 [11:05:54]New connection [11:05:54]New thread 3067202916 created [11:05:54]Thread 3067059556 joined [11:05:54]Waiting for new connection... [11:05:54] Sock 9.Parse request [11:05:54]Sock 9.Check first char [11:05:54]Sock 9.First char is OK [11:05:54]request: POST /json_proto HTTP/1.0 [11:05:54]Method: POST [11:05:54]URL: /json_proto [11:05:54]Method is POST - this is cgi request [11:05:54]url: /json_proto [11:05:54]query_string will be loaded in cgi processing [11:05:54]execute_cgi json_proto POST (null) [11:05:54]execute_cgi path=json_proto method=POST [11:05:54]POST find Content-Length [11:05:54]Host: 172.17.45.67:8080 [11:05:54]Content-Length: 682 [11:05:54]Content-Type: application/json [11:05:54] [11:05:54]POST finish read [11:05:54]Found Content-Length = 682 [11:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:05:54]execute_script... [11: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)593103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:05:54]POST & json_proto [11:05:54]process_json_proto [11:05:54]json parsed OK: [11:05:54]protocol is kg_v1.0 [11:05:54]action value=close_receipt [11:05:54]process_action close_receipt [11:05:54]cmd_close_receipt [11:05:54]MH_GetDate [11:05:54]Write to MH i2c: F0 00 00 BF 1D CB [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: F0 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: F0 09 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: F0 09 00 BF 1D 00 14 27 C3 66 5F 7F 2B 66 A7 [11:05:54]GetLastDocTimeStamp 1724065520 [11:05:54]current date 1724065556 [11:05:54]FM_GetShiftState [11:05:54]SAM_PROTO_GetShiftState [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 13 01 00 [11:05:54]Write to MH i2c: E2 08 00 C0 1D 80 13 01 00 00 00 00 00 5A [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 0E 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 0E 00 C0 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 11 [11:05:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:05:54]wFMCommunicate OK [11:05:54]SAM_PROTO_GetShiftState done [11:05:54]FM_GetShiftState done [11:05:54]opened in 1724027888 [11:05:54]opened+sec_in_day 1724114288 [11:05:54]quantity*price = 100021 [11:05:54]sum+1 = 100023 [11:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 97 19.08.2024 11:05 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139262 ФПД: 211976770812042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110557&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139262&fm=211976770812042&tin=02508201610067®Number=0000000000092569&sum=100000 [11:05:55]StoreToDocumentArchive [11:05:55]shift 452 fd 139262 [11:05:55]save to /storage/0452/doc_00139262 [11:05:55]save last doc name /storage/0452/doc_00139262 to /storage/kkm_last_doc_name [11:05:55]save OK [11:05:55]Clear old archive folders... [11:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:55]tlvbuf is 01DACD40 [11:05:55]SAM_PROTO_ClearQueue [11:05:55]wFMCommunicate request_size=4 [11:05:55]MH_SAM_APDU [11:05:55]CAPDU: 80 09 00 00 [11:05:55]Write to MH i2c: E2 08 00 CD 1D 80 09 00 00 00 00 00 00 5C [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:55]Read from MH i2c: E2 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 03 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [11:05:55]RAPDU: 90 00 [11:05:55]wFMCommunicate OK [11:05:55]SAM_PROTO_ClearQueue done [11:05:55]KKMCreateOFDPacket [11:05:55]OFDProtocolAddRootSTLVToBuf [11:05:55]FM_MakeSignedData [11:05:55]FM_MakeSignedData [11:05:55]SAM_PROTO_SignData [11:05:55]wFMCommunicate request_size=4 [11:05:55]MH_SAM_APDU [11:05:55]CAPDU: 80 0D 01 02 [11:05:55]Write to MH i2c: E2 08 00 CE 1D 80 0D 01 02 00 00 00 00 64 [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:55]Read from MH i2c: E2 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 03 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [11:05:55]RAPDU: 90 00 [11:05:55]wFMCommunicate OK [11:05:55]wFMCommunicate request_size=255 [11:05:55]MH_SAM_APDU [11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 15 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 1F 02 00 35 04 06 00 C0 [11:05:55]Write to MH i2c: E2 02 01 CF 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 15 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 1F 02 00 35 04 06 00 C0 00 00 84 [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:55]Read from MH i2c: E2 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 03 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: E2 03 00 CF 1D 00 90 00 60 [11:05:55]RAPDU: 90 00 [11:05:55]wFMCommunicate OK [11:05:55]wFMCommunicate request_size=10 [11:05:55]MH_SAM_APDU [11:05:55]CAPDU: 80 0D 02 02 05 CA B0 1F F8 8A [11:05:55]Write to MH i2c: E2 0D 00 D0 1D 80 0D 02 02 05 00 CA B0 1F F8 8A 00 00 8C [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:56]Read from MH i2c: E2 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 03 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 03 00 D0 1D 00 90 00 61 [11:05:56]RAPDU: 90 00 [11:05:56]wFMCommunicate OK [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 0D 03 02 [11:05:56]Write to MH i2c: E2 08 00 D1 1D 80 0D 03 02 00 00 00 00 69 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:56]Read from MH i2c: E2 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 0B 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 0B 00 D1 1D 00 AC 15 19 0C C3 1D 68 F1 90 00 89 [11:05:56]RAPDU: AC 15 19 0C C3 1D 68 F1 90 00 [11:05:56]wFMCommunicate OK [11:05:56]SAM_PROTO_SignData done [11:05:56]FM_MakeSignedData done [11:05:56]CreateOFDProtocolMessage [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 11 00 00 [11:05:56]Write to MH i2c: E2 08 00 D2 1D 80 11 00 00 00 00 00 00 69 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:56]Read from MH i2c: E2 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 17 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 17 00 D2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [11:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:05:56]wFMCommunicate OK [11:05:56]CreateOFDProtocolMessage done [11:05:56]OFDSenderStorePacket 139262 [11:05:56]StoreOFDPacket docnum=139262 [11:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AE 30 07 01 01 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 15 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 1F 02 00 35 04 06 00 C0 CA B0 1F F8 8A AC 15 19 0C C3 1D 68 F1 [11:05:56]CheckFolder [11:05:56]dirname=/storage/ofd_packets [11:05:56]CheckFolder done [11:05:56]ProducePacketName [11:05:56]name=ofd_packets/00139262 [11:05:56]NVStorageSaveData ofd_packets/00139262 [11:05:56]File name is /storage/ofd_packets/00139262 [11:05:56]Write 301 bytes [11:05:56]NVStorageSaveData done [11:05:56]OFDSenderStorePacket done [11:05:56]KKMCreateOFDPacket done [11:05:56]NVStorageSaveData kkm_last_timestamp [11:05:56]File name is /storage/kkm_last_timestamp [11:05:56]Write 4 bytes [11:05:56]NVStorageSaveData done [11:05:56]ExternCall_PrintAddStr [11:05:56]wPrintStart [11:05:56]Write to MH i2c: 01 00 00 D3 1D F0 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: 01 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: 01 07 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: 01 07 00 D3 1D 00 00 00 00 00 FF 0F 05 [11:05:56]RasterBufferAndPrint [11:05:56]line Счет N : (1)593103 [11:05:56]line ИНН: 02508201610067 [11:05:56]line Контрольно-Кассовый Чек [11:05:56]line ПРОДАЖА [11:05:56]line ТРК (МРК, ГНК) : 51 [11:05:56]line Товар: 2710124500 [11:05:56]line Аи-95-К-5 [11:05:56]line 13.480 * 74.20 [11:05:56]line = 1000.22 [11:05:56]line НДС 12% НСП 1% [11:05:56]line > о реализуемом товаре [11:05:56]line ОКРУГЛЕНИЕ: -0.22 [11:05:56]line ИТОГО: 1000.00 [11:05:56]line Внесено: 1000.00 [11:05:56]line СДАЧА: 0.00 [11:05:56]line НСП 1% : 8.85 [11:05:56]line НДС 12% : 106.22 [11:05:56]line Наличными: 1000.00 [11:05:56]line Безнал.: 0.00 [11:05:56]line Место: АЗС № 136 "Партнер Нефть" [11:05:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:05:56]line СНО: Общий режим [11:05:56]line Чек 97 19.08.2024 11:05 [11:05:56]line Смена: 452 ФФД: 1.0 [11:05:56]line ЗНМ: 0300000067 [11:05:56]line РНМ: 0000000000092569 [11:05:56]line Версия ККМ: 001 [11:05:56]line ФМ: 0000000000871776 [11:05:56]line ФД: 139262 [11:05:56]line ФПД: 211976770812042 [11:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110557&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139262&fm=211976770812042&tin=02508201610067®Number=0000000000092569&sum=100000 [11:05:56]written 0, free lines is 4095 [11:05:56]OFD Sender: Processing packet 139262 [packets to send 137, broken 136] [11:05:56]ProducePacketName [11:05:56]name=ofd_packets/00139262 [11:05:56]OFD Sender: To server: pG, [11:05:56]CommunicateWithHost lk.salyk.kg:30040 [11:05:56]ConnectInit lk.salyk.kg [11:05:56]Connected sock=10 [11: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 37 36 0F 01 00 00 AE 30 07 01 01 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 15 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 1F 02 00 35 04 06 00 C0 CA B0 1F F8 8A AC 15 19 0C C3 1D 68 F1 [11: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 37 36 4F 00 00 00 A8 60 47 00 A4 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 37 36 10 04 04 00 FE 1F 02 00 F4 03 04 00 AB CD C2 66 B6 04 01 00 00 2A 3A 7C CB A4 29 DF CF [11:05:56]CommunicateWithHost err = 0 [11:05:56]CheckOFDResponse [11:05:56]1017 (14) - 77093643461234 [11:05:56]1041 (16) - 0000000000871776 [11:05:56]1040 (4) - 139262 [11:05:56]1012 (4) - 19.08.2024 04:44 [11:05:56]1206 (1) - 0 [11:05:56]OFD Sender: Remove packet 139262 [11:05:56]ProducePacketName [11:05:56]name=ofd_packets/00139262 [11:05:56]NVStorageDeleteData [11:05:56]Write to MH i2c: 01 00 00 FE 1D 1B [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: 01 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: 01 07 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: 01 07 00 FE 1D 00 00 00 00 00 C7 0C F5 [11:05:56]RasterBufferAndPrint [11:05:56]line [11:05:56]line [11:05:56]line [11:05:56]line [11:05:56]line [11:05:56]written 0, free lines is 3276 [11:05:56]MH_Cut [11:05:56]Write to MH i2c: D1 01 00 05 1E 01 F5 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: D1 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: D1 01 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: D1 01 00 05 1E 00 F4 [11:05:56]Write to MH i2c: 01 00 00 06 1E 24 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:57]OFD Sender: No OFD packet to send [11:05:57]*** Cut start [11:05:57]*** Partial cut [11:05:57]*** CUTSNS_PIN = 1 [11:05:57]*** CUTSNS_PIN = 0 [11:05:57]*** Brake cut motor [11:05:58]Read from MH i2c: 01 [11:05:58]MH_I2C_Read... [11:05:58]*** Stop cut motor [11:05:58]*** Cut end [11:05:58]Read from MH i2c: 01 07 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: 01 07 00 06 1E 00 00 00 00 00 FF 0F 39 [11:05:58]process_action close_receipt done [11:05:58]requested_data is exist [11:05:58]produce_requested_data [11:05:58]requested_item fm.sn is exist - process it [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 11 00 00 [11:05:58]Write to MH i2c: E2 08 00 07 1E 80 11 00 00 00 00 00 00 9F [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 17 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 17 00 07 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [11:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:05:58]wFMCommunicate OK [11:05:58]requested_item fd.num is exist - process it [11:05:58]SAM_PROTO_GetFieldsCounters [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 13 00 00 [11:05:58]Write to MH i2c: E2 08 00 08 1E 80 13 00 00 00 00 00 00 A2 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 62 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 62 00 08 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [11:05: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:58]wFMCommunicate OK [11:05:58]SAM_PROTO_GetFieldsCounters done [11:05:58]requested_item shift.num is exist - process it [11:05:58]requested_item shift.opened is exist - process it [11:05:58]req_shift_opened [11:05:58]FM_GetShiftState [11:05:58]SAM_PROTO_GetShiftState [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 13 01 00 [11:05:58]Write to MH i2c: E2 08 00 09 1E 80 13 01 00 00 00 00 00 A4 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:58]Read from MH i2c: E2 0E 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 0E 00 09 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5B [11:05:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:05:58]wFMCommunicate OK [11:05:58]SAM_PROTO_GetShiftState done [11:05:58]FM_GetShiftState done [11:05:58]req_shift_opened done [11:05:58]requested_item shift.open_date is exist - process it [11:05:58]req_shift_open_date [11:05:58]req_shift_open_date done [11:05:58]produce_requested_data done [11:05:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139262,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:05:58]process_action_free close_receipt [11:05:58]json_value_free [11:05:58]json_value_free done [11:05:58]process_json_proto returns [11:05:58]Send response to host [11:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139262,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:05:58]free response buf [11:05:58]execute_script done [11:05:58]execute_script returns [11:05:58]free content buf [11:05:58]Sock 9.Close socket [11:05:58]Sock 9.Thread stoped [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:33]accept exits with 7 [11:08:33]New connection [11:08:33]New thread 3067059556 created [11:08:33]Thread 3067202916 joined [11:08:33]Waiting for new connection... [11:08:33] Sock 7.Parse request [11:08:33]Sock 7.Check first char [11:08:33]Sock 7.First char is OK [11:08:33]request: POST /json_proto HTTP/1.0 [11:08:33]Method: POST [11:08:33]URL: /json_proto [11:08:33]Method is POST - this is cgi request [11:08:33]url: /json_proto [11:08:33]query_string will be loaded in cgi processing [11:08:33]execute_cgi json_proto POST (null) [11:08:33]execute_cgi path=json_proto method=POST [11:08:33]POST find Content-Length [11:08:33]Host: 172.17.45.67:8080 [11:08:33]Content-Length: 677 [11:08:33]Content-Type: application/json [11:08:33] [11:08:33]POST finish read [11:08:33]Found Content-Length = 677 [11:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:08:33]execute_script... [11:08:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:08:33]POST & json_proto [11:08:33]process_json_proto [11:08:33]json parsed OK: [11:08:33]protocol is kg_v1.0 [11:08:33]action value=close_receipt [11:08:33]process_action close_receipt [11:08:33]cmd_close_receipt [11:08:33]MH_GetDate [11:08:33]Write to MH i2c: F0 00 00 0A 1E 17 [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: F0 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: F0 09 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: F0 09 00 0A 1E 00 B4 27 C3 66 5F 7F 2B 66 93 [11:08:33]GetLastDocTimeStamp 1724065557 [11:08:33]current date 1724065716 [11:08:33]FM_GetShiftState [11:08:33]SAM_PROTO_GetShiftState [11:08:33]wFMCommunicate request_size=4 [11:08:33]MH_SAM_APDU [11:08:33]CAPDU: 80 13 01 00 [11:08:33]Write to MH i2c: E2 08 00 0B 1E 80 13 01 00 00 00 00 00 A6 [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:33]Read from MH i2c: E2 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 0E 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 0E 00 0B 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5D [11:08:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:08:33]wFMCommunicate OK [11:08:33]SAM_PROTO_GetShiftState done [11:08:33]FM_GetShiftState done [11:08:33]opened in 1724027888 [11:08:33]opened+sec_in_day 1724114288 [11:08:33]quantity*price = 50036 [11:08:33]sum+1 = 50037 [11:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 98 19.08.2024 11:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139263 ФПД: 151087501895113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110836&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139263&fm=151087501895113&tin=02508201610067®Number=0000000000092569&sum=50000 [11:08:34]StoreToDocumentArchive [11:08:34]shift 452 fd 139263 [11:08:34]save to /storage/0452/doc_00139263 [11:08:34]save last doc name /storage/0452/doc_00139263 to /storage/kkm_last_doc_name [11:08:34]save OK [11:08:34]Clear old archive folders... [11:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:34]tlvbuf is B6EE5B50 [11:08:34]SAM_PROTO_ClearQueue [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 09 00 00 [11:08:34]Write to MH i2c: E2 08 00 18 1E 80 09 00 00 00 00 00 00 A8 [11:08:34]Write i2c OK [11:08:34]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 18 1E 00 90 00 AA [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 19 1E 80 0D 01 02 00 00 00 00 B0 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [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 19 1E 00 90 00 AB [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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B4 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 1F 02 00 35 04 06 00 89 [11:08:35]Write to MH i2c: E2 02 01 1A 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B4 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 1F 02 00 35 04 06 00 89 00 00 0D [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 1A 1E 00 90 00 AC [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 69 CC E1 65 C9 [11:08:35]Write to MH i2c: E2 0D 00 1B 1E 80 0D 02 02 05 00 69 CC E1 65 C9 00 00 01 [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 1B 1E 00 90 00 AD [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 0D 03 02 [11:08:35]Write to MH i2c: E2 08 00 1C 1E 80 0D 03 02 00 00 00 00 B5 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 0B 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 0B 00 1C 1E 00 30 51 B8 3D 45 43 D4 CA 90 00 52 [11:08:35]RAPDU: 30 51 B8 3D 45 43 D4 CA 90 00 [11:08:35]wFMCommunicate OK [11:08:35]SAM_PROTO_SignData done [11:08:35]FM_MakeSignedData done [11:08:35]CreateOFDProtocolMessage [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 11 00 00 [11:08:35]Write to MH i2c: E2 08 00 1D 1E 80 11 00 00 00 00 00 00 B5 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 17 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 17 00 1D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [11:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:08:35]wFMCommunicate OK [11:08:35]CreateOFDProtocolMessage done [11:08:35]OFDSenderStorePacket 139263 [11:08:35]StoreOFDPacket docnum=139263 [11:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B C4 07 01 87 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B4 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 1F 02 00 35 04 06 00 89 69 CC E1 65 C9 30 51 B8 3D 45 43 D4 CA [11:08:35]CheckFolder [11:08:35]dirname=/storage/ofd_packets [11:08:35]CheckFolder done [11:08:35]ProducePacketName [11:08:35]name=ofd_packets/00139263 [11:08:35]NVStorageSaveData ofd_packets/00139263 [11:08:35]File name is /storage/ofd_packets/00139263 [11:08:35]Write 301 bytes [11:08:35]NVStorageSaveData done [11:08:35]OFDSenderStorePacket done [11:08:35]KKMCreateOFDPacket done [11:08:35]NVStorageSaveData kkm_last_timestamp [11:08:35]File name is /storage/kkm_last_timestamp [11:08:35]Write 4 bytes [11:08:35]NVStorageSaveData done [11:08:35]ExternCall_PrintAddStr [11:08:35]wPrintStart [11:08:35]Write to MH i2c: 01 00 00 1E 1E 3C [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 07 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: 01 07 00 1E 1E 00 00 00 00 00 FF 0F 51 [11:08:35]RasterBufferAndPrint [11:08:35]line Счет N : (1)593105 [11:08:35]line ИНН: 02508201610067 [11:08:35]line Контрольно-Кассовый Чек [11:08:35]line ПРОДАЖА [11:08:35]line ТРК (МРК, ГНК) : 52 [11:08:35]line Товар: 2710124130 [11:08:35]line Аи-92-К-5 [11:08:35]line 7.380 * 67.80 [11:08:35]line = 500.36 [11:08:35]line НДС 12% НСП 1% [11:08:35]line > о реализуемом товаре [11:08:35]line ОКРУГЛЕНИЕ: -0.36 [11:08:35]line ИТОГО: 500.00 [11:08:35]line Внесено: 500.00 [11:08:35]line СДАЧА: 0.00 [11:08:35]line НСП 1% : 4.43 [11:08:35]line НДС 12% : 53.14 [11:08:35]line Наличными: 500.00 [11:08:35]line Безнал.: 0.00 [11:08:35]line Место: АЗС № 136 "Партнер Нефть" [11:08:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:08:35]line СНО: Общий режим [11:08:35]line Чек 98 19.08.2024 11:08 [11:08:35]line Смена: 452 ФФД: 1.0 [11:08:35]line ЗНМ: 0300000067 [11:08:35]line РНМ: 0000000000092569 [11:08:35]line Версия ККМ: 001 [11:08:35]line ФМ: 0000000000871776 [11:08:35]line ФД: 139263 [11:08:35]line ФПД: 151087501895113 [11:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110836&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139263&fm=151087501895113&tin=02508201610067®Number=0000000000092569&sum=50000 [11:08:35]written 0, free lines is 4095 [11:08:35]OFD Sender: Processing packet 139263 [packets to send 137, broken 136] [11:08:35]ProducePacketName [11:08:35]name=ofd_packets/00139263 [11:08:35]OFD Sender: To server: pG, [11:08:35]CommunicateWithHost lk.salyk.kg:30040 [11:08:35]ConnectInit lk.salyk.kg [11:08:36]Connected sock=11 [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 37 36 0F 01 00 00 7B C4 07 01 87 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B4 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 1F 02 00 35 04 06 00 89 69 CC E1 65 C9 30 51 B8 3D 45 43 D4 CA [11:08:36]Write to MH i2c: 01 00 00 49 1E 67 [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 49 1E 00 00 00 00 00 CB 0C 45 [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]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 12 F2 47 00 8A 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 37 36 10 04 04 00 FF 1F 02 00 F4 03 04 00 4A CE C2 66 B6 04 01 00 00 EB 3A 8B 16 5F 9A 92 57 [11:08:36]CommunicateWithHost err = 0 [11:08:36]CheckOFDResponse [11:08:36]1017 (14) - 77093643461234 [11:08:36]1041 (16) - 0000000000871776 [11:08:36]1040 (4) - 139263 [11:08:36]1012 (4) - 19.08.2024 04:47 [11:08:36]1206 (1) - 0 [11:08:36]OFD Sender: Remove packet 139263 [11:08:36]ProducePacketName [11:08:36]name=ofd_packets/00139263 [11:08:36]NVStorageDeleteData [11:08:36]written 0, free lines is 3282 [11:08:36]MH_Cut [11:08:36]Write to MH i2c: D1 01 00 50 1E 01 40 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: D1 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: D1 01 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: D1 01 00 50 1E 00 3F [11:08:36]Write to MH i2c: 01 00 00 51 1E 6F [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]OFD Sender: No OFD packet to send [11:08:37]*** Cut start [11:08:37]*** Partial cut [11:08:37]*** CUTSNS_PIN = 1 [11:08:37]*** CUTSNS_PIN = 0 [11:08:37]*** Brake cut motor [11:08:37]Read from MH i2c: 01 [11:08:37]MH_I2C_Read... [11:08:37]*** Stop cut motor [11:08:37]*** Cut end [11:08:37]Read from MH i2c: 01 07 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: 01 07 00 51 1E 00 00 00 00 00 FF 0F 84 [11:08:37]process_action close_receipt done [11:08:37]requested_data is exist [11:08:37]produce_requested_data [11:08:37]requested_item fm.sn is exist - process it [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 11 00 00 [11:08:37]Write to MH i2c: E2 08 00 52 1E 80 11 00 00 00 00 00 00 EA [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** 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 52 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 41 [11:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 53 1E 80 13 00 00 00 00 00 00 ED [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 53 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 1F 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 54 1E 80 13 01 00 00 00 00 00 EF [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 54 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A6 [11:08:37]RAPDU: 09 00 01 F0 93 C2 66 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":"0000000000871776","fd.num":139263,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [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":"0000000000871776","fd.num":139263,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [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 7.Close socket [11:08:37]Sock 7.Thread stoped [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:51]accept exits with 9 [11:08:51]New connection [11:08:51]New thread 3067202916 created [11:08:51]Thread 3067059556 joined [11:08:51]Waiting for new connection... [11:08:51] Sock 9.Parse request [11:08:51]Sock 9.Check first char [11:08:51]Sock 9.First char is OK [11:08:51]request: POST /json_proto HTTP/1.0 [11:08:51]Method: POST [11:08:51]URL: /json_proto [11:08:51]Method is POST - this is cgi request [11:08:51]url: /json_proto [11:08:51]query_string will be loaded in cgi processing [11:08:51]execute_cgi json_proto POST (null) [11:08:51]execute_cgi path=json_proto method=POST [11:08:51]POST find Content-Length [11:08:51]Host: 172.17.45.67:8080 [11:08:51]Content-Length: 682 [11:08:51]Content-Type: application/json [11:08:51] [11:08:51]POST finish read [11:08:51]Found Content-Length = 682 [11:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:51]execute_script... [11:08: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)593104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:51]POST & json_proto [11:08:51]process_json_proto [11:08:51]json parsed OK: [11:08:51]protocol is kg_v1.0 [11:08:51]action value=close_receipt [11:08:51]process_action close_receipt [11:08:51]cmd_close_receipt [11:08:51]MH_GetDate [11:08:51]Write to MH i2c: F0 00 00 55 1E 62 [11:08:51]Write i2c OK [11:08:51]MH_I2C_Read... [11:08:51]Read from MH i2c: F0 [11:08:51]MH_I2C_Read... [11:08:51]Read from MH i2c: F0 09 00 [11:08:51]MH_I2C_Read... [11:08:51]Read from MH i2c: F0 09 00 55 1E 00 C6 27 C3 66 5F 7F 2B 66 F0 [11:08:51]GetLastDocTimeStamp 1724065716 [11:08:51]current date 1724065734 [11:08:51]FM_GetShiftState [11:08:51]SAM_PROTO_GetShiftState [11:08:51]wFMCommunicate request_size=4 [11:08:51]MH_SAM_APDU [11:08:51]CAPDU: 80 13 01 00 [11:08:51]Write to MH i2c: E2 08 00 56 1E 80 13 01 00 00 00 00 00 F1 [11:08:51]Write i2c OK [11:08:51]MH_I2C_Read... [11:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:51]Read from MH i2c: E2 [11:08:51]MH_I2C_Read... [11:08:51]Read from MH i2c: E2 0E 00 [11:08:51]MH_I2C_Read... [11:08:51]Read from MH i2c: E2 0E 00 56 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A8 [11:08:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:08:51]wFMCommunicate OK [11:08:51]SAM_PROTO_GetShiftState done [11:08:51]FM_GetShiftState done [11:08:51]opened in 1724027888 [11:08:51]opened+sec_in_day 1724114288 [11:08:51]quantity*price = 150032 [11:08:51]sum+1 = 150033 [11:08:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 99 19.08.2024 11:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139264 ФПД: 136891288520572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110854&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139264&fm=136891288520572&tin=02508201610067®Number=0000000000092569&sum=150000 [11:08:53]StoreToDocumentArchive [11:08:53]shift 452 fd 139264 [11:08:53]save to /storage/0452/doc_00139264 [11:08:53]save last doc name /storage/0452/doc_00139264 to /storage/kkm_last_doc_name [11:08:53]save OK [11:08:53]Clear old archive folders... [11:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:53]tlvbuf is 01DAC6C0 [11:08:53]SAM_PROTO_ClearQueue [11:08:53]wFMCommunicate request_size=4 [11:08:53]MH_SAM_APDU [11:08:53]CAPDU: 80 09 00 00 [11:08:53]Write to MH i2c: E2 08 00 63 1E 80 09 00 00 00 00 00 00 F3 [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:53]Read from MH i2c: E2 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 03 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 03 00 63 1E 00 90 00 F5 [11:08:53]RAPDU: 90 00 [11:08:53]wFMCommunicate OK [11:08:53]SAM_PROTO_ClearQueue done [11:08:53]KKMCreateOFDPacket [11:08:53]OFDProtocolAddRootSTLVToBuf [11:08:53]FM_MakeSignedData [11:08:53]FM_MakeSignedData [11:08:53]SAM_PROTO_SignData [11:08:53]wFMCommunicate request_size=4 [11:08:53]MH_SAM_APDU [11:08:53]CAPDU: 80 0D 01 02 [11:08:53]Write to MH i2c: E2 08 00 64 1E 80 0D 01 02 00 00 00 00 FB [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:53]Read from MH i2c: E2 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 03 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 03 00 64 1E 00 90 00 F6 [11:08:53]RAPDU: 90 00 [11:08:53]wFMCommunicate OK [11:08:53]wFMCommunicate request_size=255 [11:08:53]MH_SAM_APDU [11:08:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C6 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 20 02 00 35 04 06 00 7C [11:08:53]Write to MH i2c: E2 02 01 65 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C6 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 20 02 00 35 04 06 00 7C 00 00 D3 [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:53]Read from MH i2c: E2 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 03 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 03 00 65 1E 00 90 00 F7 [11:08:53]RAPDU: 90 00 [11:08:53]wFMCommunicate OK [11:08:53]wFMCommunicate request_size=10 [11:08:53]MH_SAM_APDU [11:08:53]CAPDU: 80 0D 02 02 05 80 7C A0 07 7C [11:08:53]Write to MH i2c: E2 0D 00 66 1E 80 0D 02 02 05 00 80 7C A0 07 7C 00 00 27 [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:53]Read from MH i2c: E2 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 03 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 03 00 66 1E 00 90 00 F8 [11:08:53]RAPDU: 90 00 [11:08:53]wFMCommunicate OK [11:08:53]wFMCommunicate request_size=4 [11:08:53]MH_SAM_APDU [11:08:53]CAPDU: 80 0D 03 02 [11:08:53]Write to MH i2c: E2 08 00 67 1E 80 0D 03 02 00 00 00 00 00 [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:53]Read from MH i2c: E2 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 0B 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 0B 00 67 1E 00 E2 EF 0C EB F1 2D BE B4 90 00 59 [11:08:53]RAPDU: E2 EF 0C EB F1 2D BE B4 90 00 [11:08:53]wFMCommunicate OK [11:08:53]SAM_PROTO_SignData done [11:08:53]FM_MakeSignedData done [11:08:53]CreateOFDProtocolMessage [11:08:53]wFMCommunicate request_size=4 [11:08:53]MH_SAM_APDU [11:08:53]CAPDU: 80 11 00 00 [11:08:53]Write to MH i2c: E2 08 00 68 1E 80 11 00 00 00 00 00 00 00 [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:53]Read from MH i2c: E2 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 17 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 17 00 68 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 57 [11:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:08:53]wFMCommunicate OK [11:08:53]CreateOFDProtocolMessage done [11:08:53]OFDSenderStorePacket 139264 [11:08:53]StoreOFDPacket docnum=139264 [11:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1A 09 07 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C6 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 20 02 00 35 04 06 00 7C 80 7C A0 07 7C E2 EF 0C EB F1 2D BE B4 [11:08:53]CheckFolder [11:08:53]dirname=/storage/ofd_packets [11:08:53]CheckFolder done [11:08:53]ProducePacketName [11:08:53]name=ofd_packets/00139264 [11:08:53]NVStorageSaveData ofd_packets/00139264 [11:08:53]File name is /storage/ofd_packets/00139264 [11:08:53]Write 301 bytes [11:08:53]NVStorageSaveData done [11:08:53]OFDSenderStorePacket done [11:08:53]KKMCreateOFDPacket done [11:08:53]NVStorageSaveData kkm_last_timestamp [11:08:53]File name is /storage/kkm_last_timestamp [11:08:53]Write 4 bytes [11:08:53]NVStorageSaveData done [11:08:53]ExternCall_PrintAddStr [11:08:53]wPrintStart [11:08:53]Write to MH i2c: 01 00 00 69 1E 87 [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: 01 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: 01 07 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: 01 07 00 69 1E 00 00 00 00 00 FF 0F 9C [11:08:53]RasterBufferAndPrint [11:08:53]line Счет N : (1)593104 [11:08:53]line ИНН: 02508201610067 [11:08:53]line Контрольно-Кассовый Чек [11:08:53]line ПРОДАЖА [11:08:53]line ТРК (МРК, ГНК) : 41 [11:08:53]line Товар: 2710124500 [11:08:53]line Аи-95-К-5 [11:08:53]line 20.220 * 74.20 [11:08:53]line = 1500.32 [11:08:53]line НДС 12% НСП 1% [11:08:53]line > о реализуемом товаре [11:08:53]line ОКРУГЛЕНИЕ: -0.32 [11:08:53]line ИТОГО: 1500.00 [11:08:53]line Внесено: 1500.00 [11:08:53]line СДАЧА: 0.00 [11:08:53]line НСП 1% : 13.28 [11:08:53]line НДС 12% : 159.33 [11:08:53]line Наличными: 1500.00 [11:08:53]line Безнал.: 0.00 [11:08:53]line Место: АЗС № 136 "Партнер Нефть" [11:08:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:08:53]line СНО: Общий режим [11:08:53]line Чек 99 19.08.2024 11:08 [11:08:53]line Смена: 452 ФФД: 1.0 [11:08:53]line ЗНМ: 0300000067 [11:08:53]line РНМ: 0000000000092569 [11:08:53]line Версия ККМ: 001 [11:08:53]line ФМ: 0000000000871776 [11:08:53]line ФД: 139264 [11:08:53]line ФПД: 136891288520572 [11:08:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110854&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139264&fm=136891288520572&tin=02508201610067®Number=0000000000092569&sum=150000 [11:08:53]OFD Sender: Processing packet 139264 [packets to send 137, broken 136] [11:08:53]ProducePacketName [11:08:53]name=ofd_packets/00139264 [11:08:53]OFD Sender: To server: pG, [11:08:53]CommunicateWithHost lk.salyk.kg:30040 [11:08:53]ConnectInit lk.salyk.kg [11:08:53]written 0, free lines is 4095 [11:08:54]Connected sock=7 [11:08: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 37 36 0F 01 00 00 1A 09 07 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C6 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 20 02 00 35 04 06 00 7C 80 7C A0 07 7C E2 EF 0C EB F1 2D BE B4 [11:08: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 37 36 4F 00 00 00 4D C7 47 00 49 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 37 36 10 04 04 00 00 20 02 00 F4 03 04 00 5C CE C2 66 B6 04 01 00 00 D6 1B C1 6A 17 35 7C 9C [11:08:54]CommunicateWithHost err = 0 [11:08:54]CheckOFDResponse [11:08:54]1017 (14) - 77093643461234 [11:08:54]1041 (16) - 0000000000871776 [11:08:54]1040 (4) - 139264 [11:08:54]1012 (4) - 19.08.2024 04:47 [11:08:54]1206 (1) - 0 [11:08:54]OFD Sender: Remove packet 139264 [11:08:54]ProducePacketName [11:08:54]name=ofd_packets/00139264 [11:08:54]NVStorageDeleteData [11:08:54]Write to MH i2c: 01 00 00 94 1E B2 [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: 01 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: 01 07 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: 01 07 00 94 1E 00 00 00 00 00 D8 0C 9D [11:08:54]RasterBufferAndPrint [11:08:54]line [11:08:54]line [11:08:54]line [11:08:54]line [11:08:54]line [11:08:54]written 0, free lines is 3295 [11:08:54]MH_Cut [11:08:54]Write to MH i2c: D1 01 00 9B 1E 01 8B [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: D1 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: D1 01 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: D1 01 00 9B 1E 00 8A [11:08:54]Write to MH i2c: 01 00 00 9C 1E BA [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]OFD Sender: No OFD packet to send [11:08:55]*** Cut start [11:08:55]*** Partial cut [11:08:55]*** CUTSNS_PIN = 1 [11:08:55]*** CUTSNS_PIN = 0 [11:08:55]*** Brake cut motor [11:08:55]Read from MH i2c: 01 [11:08:55]MH_I2C_Read... [11:08:55]*** Stop cut motor [11:08:55]*** Cut end [11:08:55]Read from MH i2c: 01 07 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 07 00 9C 1E 00 00 00 00 00 FF 0F CF [11:08:55]process_action close_receipt done [11:08:55]requested_data is exist [11:08:55]produce_requested_data [11:08:55]requested_item fm.sn is exist - process it [11:08:55]wFMCommunicate request_size=4 [11:08:55]MH_SAM_APDU [11:08:55]CAPDU: 80 11 00 00 [11:08:55]Write to MH i2c: E2 08 00 9D 1E 80 11 00 00 00 00 00 00 35 [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:55]Read from MH i2c: E2 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 17 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 17 00 9D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [11:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:08:55]wFMCommunicate OK [11:08:55]requested_item fd.num is exist - process it [11:08:55]SAM_PROTO_GetFieldsCounters [11:08:55]wFMCommunicate request_size=4 [11:08:55]MH_SAM_APDU [11:08:55]CAPDU: 80 13 00 00 [11:08:55]Write to MH i2c: E2 08 00 9E 1E 80 13 00 00 00 00 00 00 38 [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:55]Read from MH i2c: E2 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 62 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 62 00 9E 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [11:08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:55]wFMCommunicate OK [11:08:55]SAM_PROTO_GetFieldsCounters done [11:08:55]requested_item shift.num is exist - process it [11:08:55]requested_item shift.opened is exist - process it [11:08:55]req_shift_opened [11:08:55]FM_GetShiftState [11:08:55]SAM_PROTO_GetShiftState [11:08:55]wFMCommunicate request_size=4 [11:08:55]MH_SAM_APDU [11:08:55]CAPDU: 80 13 01 00 [11:08:55]Write to MH i2c: E2 08 00 9F 1E 80 13 01 00 00 00 00 00 3A [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:55]Read from MH i2c: E2 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 0E 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: E2 0E 00 9F 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F1 [11:08:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:08:55]wFMCommunicate OK [11:08:55]SAM_PROTO_GetShiftState done [11:08:55]FM_GetShiftState done [11:08:55]req_shift_opened done [11:08:55]requested_item shift.open_date is exist - process it [11:08:55]req_shift_open_date [11:08:55]req_shift_open_date done [11:08:55]produce_requested_data done [11:08:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139264,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:08:55]process_action_free close_receipt [11:08:55]json_value_free [11:08:55]json_value_free done [11:08:55]process_json_proto returns [11:08:55]Send response to host [11:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139264,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:08:55]free response buf [11:08:55]execute_script done [11:08:55]execute_script returns [11:08:55]free content buf [11:08:55]Sock 9.Close socket [11:08:55]Sock 9.Thread stoped [11:08:58]accept exits with 10 [11:08:58]New connection [11:08:58]New thread 3067059556 created [11:08:58]Thread 3067202916 joined [11:08:58]Waiting for new connection... [11:08:58] Sock 10.Parse request [11:08:58]Sock 10.Check first char [11:08:58]Sock 10.First char is OK [11:08:58]request: POST /json_proto HTTP/1.0 [11:08:58]Method: POST [11:08:58]URL: /json_proto [11:08:58]Method is POST - this is cgi request [11:08:58]url: /json_proto [11:08:58]query_string will be loaded in cgi processing [11:08:58]execute_cgi json_proto POST (null) [11:08:58]execute_cgi path=json_proto method=POST [11:08:58]POST find Content-Length [11:08:58]Host: 172.17.45.67:8080 [11:08:58]Content-Length: 658 [11:08:58]Content-Type: application/json [11:08:58] [11:08:58]POST finish read [11:08:58]Found Content-Length = 658 [11:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:58]execute_script... [11:08: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)593106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:58]POST & json_proto [11:08:58]process_json_proto [11:08:58]json parsed OK: [11:08:58]protocol is kg_v1.0 [11:08:58]action value=close_receipt [11:08:58]process_action close_receipt [11:08:58]cmd_close_receipt [11:08:58]MH_GetDate [11:08:58]Write to MH i2c: F0 00 00 A0 1E AD [11:08:58]Write i2c OK [11:08:58]MH_I2C_Read... [11:08:58]Read from MH i2c: F0 [11:08:58]MH_I2C_Read... [11:08:58]Read from MH i2c: F0 09 00 [11:08:58]MH_I2C_Read... [11:08:58]Read from MH i2c: F0 09 00 A0 1E 00 CD 27 C3 66 5F 7F 2B 66 42 [11:08:58]GetLastDocTimeStamp 1724065734 [11:08:58]current date 1724065741 [11:08:58]FM_GetShiftState [11:08:58]SAM_PROTO_GetShiftState [11:08:58]wFMCommunicate request_size=4 [11:08:58]MH_SAM_APDU [11:08:58]CAPDU: 80 13 01 00 [11:08:58]Write to MH i2c: E2 08 00 A1 1E 80 13 01 00 00 00 00 00 3C [11:08:58]Write i2c OK [11:08:58]MH_I2C_Read... [11:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:58]Read from MH i2c: E2 [11:08:58]MH_I2C_Read... [11:08:58]Read from MH i2c: E2 0E 00 [11:08:58]MH_I2C_Read... [11:08:58]Read from MH i2c: E2 0E 00 A1 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F3 [11:08:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:08:58]wFMCommunicate OK [11:08:58]SAM_PROTO_GetShiftState done [11:08:58]FM_GetShiftState done [11:08:58]opened in 1724027888 [11:08:58]opened+sec_in_day 1724114288 [11:08:58]quantity*price = 50017 [11:08:58]sum+1 = 50019 [11:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 100 19.08.2024 11:09 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139265 ФПД: 253401441858056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110901&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139265&fm=253401441858056&tin=02508201610067®Number=0000000000092569&sum=50000 [11:08:59]StoreToDocumentArchive [11:08:59]shift 452 fd 139265 [11:08:59]save to /storage/0452/doc_00139265 [11:08:59]save last doc name /storage/0452/doc_00139265 to /storage/kkm_last_doc_name [11:08:59]save OK [11:08:59]Clear old archive folders... [11:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:08:59]tlvbuf is 01E86A50 [11:08:59]SAM_PROTO_ClearQueue [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 09 00 00 [11:08:59]Write to MH i2c: E2 08 00 AE 1E 80 09 00 00 00 00 00 00 3E [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]OFD Sender: No OFD packet to send [11:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 AE 1E 00 90 00 40 [11:08:59]RAPDU: 90 00 [11:08:59]wFMCommunicate OK [11:08:59]SAM_PROTO_ClearQueue done [11:08:59]KKMCreateOFDPacket [11:08:59]OFDProtocolAddRootSTLVToBuf [11:08:59]FM_MakeSignedData [11:08:59]FM_MakeSignedData [11:08:59]SAM_PROTO_SignData [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 0D 01 02 [11:08:59]Write to MH i2c: E2 08 00 AF 1E 80 0D 01 02 00 00 00 00 46 [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 AF 1E 00 90 00 41 [11:08:59]RAPDU: 90 00 [11:08:59]wFMCommunicate OK [11:08:59]wFMCommunicate request_size=253 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CD 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 20 02 00 35 04 06 00 E6 77 9E ED 72 08 [11:08:59]Write to MH i2c: E2 00 01 B0 1E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CD 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 20 02 00 35 04 06 00 E6 77 9E ED 72 08 00 00 2A [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:00]Read from MH i2c: E2 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: E2 03 00 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: E2 03 00 B0 1E 00 90 00 42 [11:09:00]RAPDU: 90 00 [11:09:00]wFMCommunicate OK [11:09:00]wFMCommunicate request_size=4 [11:09:00]MH_SAM_APDU [11:09:00]CAPDU: 80 0D 03 02 [11:09:00]Write to MH i2c: E2 08 00 B1 1E 80 0D 03 02 00 00 00 00 4A [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:00]Read from MH i2c: E2 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: E2 0B 00 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: E2 0B 00 B1 1E 00 30 3A 9E F0 3E 49 95 DD 90 00 3C [11:09:00]RAPDU: 30 3A 9E F0 3E 49 95 DD 90 00 [11:09:00]wFMCommunicate OK [11:09:00]SAM_PROTO_SignData done [11:09:00]FM_MakeSignedData done [11:09:00]CreateOFDProtocolMessage [11:09:00]wFMCommunicate request_size=4 [11:09:00]MH_SAM_APDU [11:09:00]CAPDU: 80 11 00 00 [11:09:00]Write to MH i2c: E2 08 00 B2 1E 80 11 00 00 00 00 00 00 4A [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:00]Read from MH i2c: E2 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: E2 17 00 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: E2 17 00 B2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [11:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:09:00]wFMCommunicate OK [11:09:00]CreateOFDProtocolMessage done [11:09:00]OFDSenderStorePacket 139265 [11:09:00]StoreOFDPacket docnum=139265 [11:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 19 E5 00 01 6B 6A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CD 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 20 02 00 35 04 06 00 E6 77 9E ED 72 08 30 3A 9E F0 3E 49 95 DD [11:09:00]CheckFolder [11:09:00]dirname=/storage/ofd_packets [11:09:00]CheckFolder done [11:09:00]ProducePacketName [11:09:00]name=ofd_packets/00139265 [11:09:00]NVStorageSaveData ofd_packets/00139265 [11:09:00]File name is /storage/ofd_packets/00139265 [11:09:00]Write 294 bytes [11:09:00]NVStorageSaveData done [11:09:00]OFDSenderStorePacket done [11:09:00]KKMCreateOFDPacket done [11:09:00]NVStorageSaveData kkm_last_timestamp [11:09:00]File name is /storage/kkm_last_timestamp [11:09:00]Write 4 bytes [11:09:00]NVStorageSaveData done [11:09:00]ExternCall_PrintAddStr [11:09:00]wPrintStart [11:09:00]Write to MH i2c: 01 00 00 B3 1E D1 [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: 01 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: 01 07 00 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: 01 07 00 B3 1E 00 00 00 00 00 FF 0F E6 [11:09:00]RasterBufferAndPrint [11:09:00]line Счет N : (1)593106 [11:09:00]line ИНН: 02508201610067 [11:09:00]line Контрольно-Кассовый Чек [11:09:00]line ПРОДАЖА [11:09:00]line ТРК (МРК, ГНК) : 33 [11:09:00]line Товар: 2710124130 [11:09:00]line SU-92 [11:09:00]line 7.270 * 68.80 [11:09:00]line = 500.18 [11:09:00]line НДС 12% НСП 1% [11:09:00]line > о реализуемом товаре [11:09:00]line ОКРУГЛЕНИЕ: -0.18 [11:09:00]line ИТОГО: 500.00 [11:09:00]line Внесено: 500.00 [11:09:00]line СДАЧА: 0.00 [11:09:00]line НСП 1% : 4.43 [11:09:00]line НДС 12% : 53.12 [11:09:00]line Наличными: 500.00 [11:09:00]line Безнал.: 0.00 [11:09:00]line Место: АЗС № 136 "Партнер Нефть" [11:09:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:09:00]line СНО: Общий режим [11:09:00]line Чек 100 19.08.2024 11:09 [11:09:00]line Смена: 452 ФФД: 1.0 [11:09:00]line ЗНМ: 0300000067 [11:09:00]line РНМ: 0000000000092569 [11:09:00]line Версия ККМ: 001 [11:09:00]line ФМ: 0000000000871776 [11:09:00]line ФД: 139265 [11:09:00]line ФПД: 253401441858056 [11:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110901&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139265&fm=253401441858056&tin=02508201610067®Number=0000000000092569&sum=50000 [11:09:00]written 0, free lines is 4095 [11:09:00]OFD Sender: Processing packet 139265 [packets to send 137, broken 136] [11:09:00]ProducePacketName [11:09:00]name=ofd_packets/00139265 [11:09:00]OFD Sender: To server: pG, [11:09:00]CommunicateWithHost lk.salyk.kg:30040 [11:09:00]ConnectInit lk.salyk.kg [11:09:00]Connected sock=9 [11:09: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 37 36 08 01 00 00 19 E5 00 01 6B 6A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CD 27 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 20 02 00 35 04 06 00 E6 77 9E ED 72 08 30 3A 9E F0 3E 49 95 DD [11:09:00]Write to MH i2c: 01 00 00 DE 1E FC [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: 01 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: 01 07 00 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: 01 07 00 DE 1E 00 00 00 00 00 D6 0C E5 [11:09:00]RasterBufferAndPrint [11:09:00]line [11:09:00]line [11:09:00]line [11:09:00]line [11:09:00]line [11:09:00]written 0, free lines is 3300 [11:09:00]MH_Cut [11:09:00]Write to MH i2c: D1 01 00 E5 1E 01 D5 [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: D1 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: D1 01 00 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: D1 01 00 E5 1E 00 D4 [11:09:00]Write to MH i2c: 01 00 00 E6 1E 04 [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09: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 37 36 4F 00 00 00 E6 11 47 00 49 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 37 36 10 04 04 00 01 20 02 00 F4 03 04 00 63 CE C2 66 B6 04 01 00 00 96 BC 01 DD F8 57 42 E6 [11:09:00]CommunicateWithHost err = 0 [11:09:00]CheckOFDResponse [11:09:00]1017 (14) - 77093643461234 [11:09:00]1041 (16) - 0000000000871776 [11:09:00]1040 (4) - 139265 [11:09:00]1012 (4) - 19.08.2024 04:47 [11:09:00]1206 (1) - 0 [11:09:00]OFD Sender: Remove packet 139265 [11:09:00]ProducePacketName [11:09:00]name=ofd_packets/00139265 [11:09:00]NVStorageDeleteData [11:09:01]OFD Sender: No OFD packet to send [11:09:01]*** Cut start [11:09:01]*** Partial cut [11:09:01]*** CUTSNS_PIN = 1 [11:09:01]*** CUTSNS_PIN = 0 [11:09:01]*** Brake cut motor [11:09:02]Read from MH i2c: 01 [11:09:02]MH_I2C_Read... [11:09:02]*** Stop cut motor [11:09:02]*** Cut end [11:09:02]Read from MH i2c: 01 07 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: 01 07 00 E6 1E 00 00 00 00 00 FF 0F 19 [11:09:02]process_action close_receipt done [11:09:02]requested_data is exist [11:09:02]produce_requested_data [11:09:02]requested_item fm.sn is exist - process it [11:09:02]wFMCommunicate request_size=4 [11:09:02]MH_SAM_APDU [11:09:02]CAPDU: 80 11 00 00 [11:09:02]Write to MH i2c: E2 08 00 E7 1E 80 11 00 00 00 00 00 00 7F [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:02]Read from MH i2c: E2 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 17 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 17 00 E7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [11:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:09:02]wFMCommunicate OK [11:09:02]requested_item fd.num is exist - process it [11:09:02]SAM_PROTO_GetFieldsCounters [11:09:02]wFMCommunicate request_size=4 [11:09:02]MH_SAM_APDU [11:09:02]CAPDU: 80 13 00 00 [11:09:02]Write to MH i2c: E2 08 00 E8 1E 80 13 00 00 00 00 00 00 82 [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:02]Read from MH i2c: E2 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 62 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 62 00 E8 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [11:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:02]wFMCommunicate OK [11:09:02]SAM_PROTO_GetFieldsCounters done [11:09:02]requested_item shift.num is exist - process it [11:09:02]requested_item shift.opened is exist - process it [11:09:02]req_shift_opened [11:09:02]FM_GetShiftState [11:09:02]SAM_PROTO_GetShiftState [11:09:02]wFMCommunicate request_size=4 [11:09:02]MH_SAM_APDU [11:09:02]CAPDU: 80 13 01 00 [11:09:02]Write to MH i2c: E2 08 00 E9 1E 80 13 01 00 00 00 00 00 84 [11:09:02]Write i2c OK [11:09:02]MH_I2C_Read... [11:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:02]Read from MH i2c: E2 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 0E 00 [11:09:02]MH_I2C_Read... [11:09:02]Read from MH i2c: E2 0E 00 E9 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3B [11:09:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:09:02]wFMCommunicate OK [11:09:02]SAM_PROTO_GetShiftState done [11:09:02]FM_GetShiftState done [11:09:02]req_shift_opened done [11:09:02]requested_item shift.open_date is exist - process it [11:09:02]req_shift_open_date [11:09:02]req_shift_open_date done [11:09:02]produce_requested_data done [11:09:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139265,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:09:02]process_action_free close_receipt [11:09:02]json_value_free [11:09:02]json_value_free done [11:09:02]process_json_proto returns [11:09:02]Send response to host [11:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139265,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:09:02]free response buf [11:09:02]execute_script done [11:09:02]execute_script returns [11:09:02]free content buf [11:09:02]Sock 10.Close socket [11:09:02]Sock 10.Thread stoped [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:17]accept exits with 7 [11:10:17]New connection [11:10:17]New thread 3067202916 created [11:10:17]Thread 3067059556 joined [11:10:17]Waiting for new connection... [11:10:17] Sock 7.Parse request [11:10:17]Sock 7.Check first char [11:10:17]Sock 7.First char is OK [11:10:17]request: POST /json_proto HTTP/1.0 [11:10:17]Method: POST [11:10:17]URL: /json_proto [11:10:17]Method is POST - this is cgi request [11:10:17]url: /json_proto [11:10:17]query_string will be loaded in cgi processing [11:10:17]execute_cgi json_proto POST (null) [11:10:17]execute_cgi path=json_proto method=POST [11:10:17]POST find Content-Length [11:10:17]Host: 172.17.45.67:8080 [11:10:17]Content-Length: 682 [11:10:17]Content-Type: application/json [11:10:17] [11:10:17]POST finish read [11:10:17]Found Content-Length = 682 [11:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:17]execute_script... [11:10: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)593107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:17]POST & json_proto [11:10:17]process_json_proto [11:10:17]json parsed OK: [11:10:17]protocol is kg_v1.0 [11:10:17]action value=close_receipt [11:10:17]process_action close_receipt [11:10:17]cmd_close_receipt [11:10:17]MH_GetDate [11:10:17]Write to MH i2c: F0 00 00 EA 1E F7 [11:10:17]Write i2c OK [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: F0 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: F0 09 00 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: F0 09 00 EA 1E 00 1B 28 C3 66 5F 7F 2B 66 DB [11:10:17]GetLastDocTimeStamp 1724065741 [11:10:17]current date 1724065819 [11:10:17]FM_GetShiftState [11:10:17]SAM_PROTO_GetShiftState [11:10:17]wFMCommunicate request_size=4 [11:10:17]MH_SAM_APDU [11:10:17]CAPDU: 80 13 01 00 [11:10:17]Write to MH i2c: E2 08 00 EB 1E 80 13 01 00 00 00 00 00 86 [11:10:17]Write i2c OK [11:10:17]MH_I2C_Read... [11:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:17]Read from MH i2c: E2 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 0E 00 [11:10:17]MH_I2C_Read... [11:10:17]Read from MH i2c: E2 0E 00 EB 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3D [11:10:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:10:17]wFMCommunicate OK [11:10:17]SAM_PROTO_GetShiftState done [11:10:17]FM_GetShiftState done [11:10:17]opened in 1724027888 [11:10:17]opened+sec_in_day 1724114288 [11:10:17]quantity*price = 110039 [11:10:17]sum+1 = 110040 [11:10:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 101 19.08.2024 11:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139266 ФПД: 28328013476944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111019&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139266&fm=28328013476944&tin=02508201610067®Number=0000000000092569&sum=110000 [11:10:18]StoreToDocumentArchive [11:10:18]shift 452 fd 139266 [11:10:18]save to /storage/0452/doc_00139266 [11:10:18]save last doc name /storage/0452/doc_00139266 to /storage/kkm_last_doc_name [11:10:18]save OK [11:10:18]Clear old archive folders... [11:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:18]tlvbuf is 01E77680 [11:10:18]SAM_PROTO_ClearQueue [11:10:18]wFMCommunicate request_size=4 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 09 00 00 [11:10:18]Write to MH i2c: E2 08 00 F8 1E 80 09 00 00 00 00 00 00 88 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 F8 1E 00 90 00 8A [11:10:18]RAPDU: 90 00 [11:10:18]wFMCommunicate OK [11:10:18]SAM_PROTO_ClearQueue done [11:10:18]KKMCreateOFDPacket [11:10:18]OFDProtocolAddRootSTLVToBuf [11:10:18]FM_MakeSignedData [11:10:18]FM_MakeSignedData [11:10:18]SAM_PROTO_SignData [11:10:18]wFMCommunicate request_size=4 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 0D 01 02 [11:10:18]Write to MH i2c: E2 08 00 F9 1E 80 0D 01 02 00 00 00 00 90 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 F9 1E 00 90 00 8B [11:10:18]RAPDU: 90 00 [11:10:18]wFMCommunicate OK [11:10:18]wFMCommunicate request_size=255 [11:10:18]MH_SAM_APDU [11:10: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 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1B 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 20 02 00 35 04 06 00 19 [11:10:18]Write to MH i2c: E2 02 01 FA 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1B 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 20 02 00 35 04 06 00 19 00 00 97 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 FA 1E 00 90 00 8C [11:10:18]RAPDU: 90 00 [11:10:18]wFMCommunicate OK [11:10:18]wFMCommunicate request_size=10 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 0D 02 02 05 C3 A1 2E 34 50 [11:10:18]Write to MH i2c: E2 0D 00 FB 1E 80 0D 02 02 05 00 C3 A1 2E 34 50 00 00 B3 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 03 00 FB 1E 00 90 00 8D [11:10:18]RAPDU: 90 00 [11:10:18]wFMCommunicate OK [11:10:18]wFMCommunicate request_size=4 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 0D 03 02 [11:10:18]Write to MH i2c: E2 08 00 FC 1E 80 0D 03 02 00 00 00 00 95 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 0B 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 0B 00 FC 1E 00 4C 91 9F 7B 0C 45 C5 B5 90 00 58 [11:10:18]RAPDU: 4C 91 9F 7B 0C 45 C5 B5 90 00 [11:10:18]wFMCommunicate OK [11:10:18]SAM_PROTO_SignData done [11:10:18]FM_MakeSignedData done [11:10:18]CreateOFDProtocolMessage [11:10:18]wFMCommunicate request_size=4 [11:10:18]MH_SAM_APDU [11:10:18]CAPDU: 80 11 00 00 [11:10:18]Write to MH i2c: E2 08 00 FD 1E 80 11 00 00 00 00 00 00 95 [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:18]Read from MH i2c: E2 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 17 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: E2 17 00 FD 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EC [11:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:10:18]wFMCommunicate OK [11:10:18]CreateOFDProtocolMessage done [11:10:18]OFDSenderStorePacket 139266 [11:10:18]StoreOFDPacket docnum=139266 [11:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D6 44 07 01 69 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 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1B 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 20 02 00 35 04 06 00 19 C3 A1 2E 34 50 4C 91 9F 7B 0C 45 C5 B5 [11:10:18]CheckFolder [11:10:18]dirname=/storage/ofd_packets [11:10:18]CheckFolder done [11:10:18]ProducePacketName [11:10:18]name=ofd_packets/00139266 [11:10:18]NVStorageSaveData ofd_packets/00139266 [11:10:18]File name is /storage/ofd_packets/00139266 [11:10:18]Write 301 bytes [11:10:18]NVStorageSaveData done [11:10:18]OFDSenderStorePacket done [11:10:18]KKMCreateOFDPacket done [11:10:18]NVStorageSaveData kkm_last_timestamp [11:10:18]File name is /storage/kkm_last_timestamp [11:10:18]Write 4 bytes [11:10:18]NVStorageSaveData done [11:10:18]ExternCall_PrintAddStr [11:10:18]wPrintStart [11:10:18]Write to MH i2c: 01 00 00 FE 1E 1C [11:10:18]Write i2c OK [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 07 00 [11:10:18]MH_I2C_Read... [11:10:18]Read from MH i2c: 01 07 00 FE 1E 00 00 00 00 00 FF 0F 31 [11:10:18]RasterBufferAndPrint [11:10:18]line Счет N : (1)593107 [11:10:18]line ИНН: 02508201610067 [11:10:18]line Контрольно-Кассовый Чек [11:10:18]line ПРОДАЖА [11:10:18]line ТРК (МРК, ГНК) : 62 [11:10:18]line Товар: 2710124130 [11:10:18]line Аи-92-К-5 [11:10:18]line 16.230 * 67.80 [11:10:18]line = 1100.39 [11:10:18]line НДС 12% НСП 1% [11:10:18]line > о реализуемом товаре [11:10:18]line ОКРУГЛЕНИЕ: -0.39 [11:10:18]line ИТОГО: 1100.00 [11:10:18]line Внесено: 1100.00 [11:10:18]line СДАЧА: 0.00 [11:10:18]line НСП 1% : 9.74 [11:10:18]line НДС 12% : 116.86 [11:10:18]line Наличными: 1100.00 [11:10:18]line Безнал.: 0.00 [11:10:18]line Место: АЗС № 136 "Партнер Нефть" [11:10:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:10:18]line СНО: Общий режим [11:10:18]line Чек 101 19.08.2024 11:10 [11:10:18]line Смена: 452 ФФД: 1.0 [11:10:18]line ЗНМ: 0300000067 [11:10:18]line РНМ: 0000000000092569 [11:10:18]line Версия ККМ: 001 [11:10:18]line ФМ: 0000000000871776 [11:10:18]line ФД: 139266 [11:10:18]line ФПД: 28328013476944 [11:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111019&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139266&fm=28328013476944&tin=02508201610067®Number=0000000000092569&sum=110000 [11:10:19]OFD Sender: Processing packet 139266 [packets to send 137, broken 136] [11:10:19]ProducePacketName [11:10:19]name=ofd_packets/00139266 [11:10:19]OFD Sender: To server: pG, [11:10:19]CommunicateWithHost lk.salyk.kg:30040 [11:10:19]ConnectInit lk.salyk.kg [11:10:19]written 0, free lines is 4095 [11:10:19]Connected sock=10 [11:10: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 37 36 0F 01 00 00 D6 44 07 01 69 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 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 1B 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 20 02 00 35 04 06 00 19 C3 A1 2E 34 50 4C 91 9F 7B 0C 45 C5 B5 [11:10: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 37 36 4F 00 00 00 74 C2 47 00 30 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 37 36 10 04 04 00 02 20 02 00 F4 03 04 00 B1 CE C2 66 B6 04 01 00 00 D9 DA BC 45 4B AB 87 B5 [11:10:19]CommunicateWithHost err = 0 [11:10:19]CheckOFDResponse [11:10:19]1017 (14) - 77093643461234 [11:10:19]1041 (16) - 0000000000871776 [11:10:19]1040 (4) - 139266 [11:10:19]1012 (4) - 19.08.2024 04:48 [11:10:19]1206 (1) - 0 [11:10:19]OFD Sender: Remove packet 139266 [11:10:19]ProducePacketName [11:10:19]name=ofd_packets/00139266 [11:10:19]NVStorageDeleteData [11:10:19]Write to MH i2c: 01 00 00 29 1F 48 [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: 01 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: 01 07 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: 01 07 00 29 1F 00 00 00 00 00 CF 0C 2A [11:10:19]RasterBufferAndPrint [11:10:19]line [11:10:19]line [11:10:19]line [11:10:19]line [11:10:19]line [11:10:19]written 0, free lines is 3285 [11:10:19]MH_Cut [11:10:19]Write to MH i2c: D1 01 00 30 1F 01 21 [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: D1 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: D1 01 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: D1 01 00 30 1F 00 20 [11:10:19]Write to MH i2c: 01 00 00 31 1F 50 [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:20]OFD Sender: No OFD packet to send [11:10:20]*** Cut start [11:10:20]*** Partial cut [11:10:20]*** CUTSNS_PIN = 1 [11:10:20]*** CUTSNS_PIN = 0 [11:10:20]*** Brake cut motor [11:10:20]Read from MH i2c: 01 [11:10:20]MH_I2C_Read... [11:10:20]*** Stop cut motor [11:10:20]*** Cut end [11:10:20]Read from MH i2c: 01 07 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: 01 07 00 31 1F 00 00 00 00 00 FF 0F 65 [11:10:20]process_action close_receipt done [11:10:20]requested_data is exist [11:10:20]produce_requested_data [11:10:20]requested_item fm.sn is exist - process it [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 11 00 00 [11:10:20]Write to MH i2c: E2 08 00 32 1F 80 11 00 00 00 00 00 00 CB [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:20]Read from MH i2c: E2 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 17 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 17 00 32 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 22 [11:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:10:20]wFMCommunicate OK [11:10:20]requested_item fd.num is exist - process it [11:10:20]SAM_PROTO_GetFieldsCounters [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 13 00 00 [11:10:20]Write to MH i2c: E2 08 00 33 1F 80 13 00 00 00 00 00 00 CE [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 62 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 62 00 33 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [11:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:21]wFMCommunicate OK [11:10:21]SAM_PROTO_GetFieldsCounters done [11:10:21]requested_item shift.num is exist - process it [11:10:21]requested_item shift.opened is exist - process it [11:10:21]req_shift_opened [11:10:21]FM_GetShiftState [11:10:21]SAM_PROTO_GetShiftState [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 13 01 00 [11:10:21]Write to MH i2c: E2 08 00 34 1F 80 13 01 00 00 00 00 00 D0 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 0E 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 0E 00 34 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 87 [11:10:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:10:21]wFMCommunicate OK [11:10:21]SAM_PROTO_GetShiftState done [11:10:21]FM_GetShiftState done [11:10:21]req_shift_opened done [11:10:21]requested_item shift.open_date is exist - process it [11:10:21]req_shift_open_date [11:10:21]req_shift_open_date done [11:10:21]produce_requested_data done [11:10:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139266,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:10:21]process_action_free close_receipt [11:10:21]json_value_free [11:10:21]json_value_free done [11:10:21]process_json_proto returns [11:10:21]Send response to host [11:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139266,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:10:21]free response buf [11:10:21]execute_script done [11:10:21]execute_script returns [11:10:21]free content buf [11:10:21]Sock 7.Close socket [11:10:21]Sock 7.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:41]accept exits with 9 [11:11:41]New connection [11:11:41]New thread 3067059556 created [11:11:41]Thread 3067202916 joined [11:11:41]Waiting for new connection... [11:11:41] Sock 9.Parse request [11:11:41]Sock 9.Check first char [11:11:41]Sock 9.First char is OK [11:11:41]request: POST /json_proto HTTP/1.0 [11:11:41]Method: POST [11:11:41]URL: /json_proto [11:11:41]Method is POST - this is cgi request [11:11:41]url: /json_proto [11:11:41]query_string will be loaded in cgi processing [11:11:41]execute_cgi json_proto POST (null) [11:11:41]execute_cgi path=json_proto method=POST [11:11:41]POST find Content-Length [11:11:41]Host: 172.17.45.67:8080 [11:11:41]Content-Length: 677 [11:11:41]Content-Type: application/json [11:11:41] [11:11:41]POST finish read [11:11:41]Found Content-Length = 677 [11:11:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:11:41]execute_script... [11:11: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)593108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:11:41]POST & json_proto [11:11:41]process_json_proto [11:11:41]json parsed OK: [11:11:41]protocol is kg_v1.0 [11:11:41]action value=close_receipt [11:11:41]process_action close_receipt [11:11:41]cmd_close_receipt [11:11:41]MH_GetDate [11:11:41]Write to MH i2c: F0 00 00 35 1F 43 [11:11:41]Write i2c OK [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: F0 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: F0 09 00 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: F0 09 00 35 1F 00 6F 28 C3 66 5F 7F 2B 66 7B [11:11:41]GetLastDocTimeStamp 1724065819 [11:11:41]current date 1724065903 [11:11:41]FM_GetShiftState [11:11:41]SAM_PROTO_GetShiftState [11:11:41]wFMCommunicate request_size=4 [11:11:41]MH_SAM_APDU [11:11:41]CAPDU: 80 13 01 00 [11:11:41]Write to MH i2c: E2 08 00 36 1F 80 13 01 00 00 00 00 00 D2 [11:11:41]Write i2c OK [11:11:41]MH_I2C_Read... [11:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:41]Read from MH i2c: E2 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 0E 00 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 0E 00 36 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 89 [11:11:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:11:41]wFMCommunicate OK [11:11:41]SAM_PROTO_GetShiftState done [11:11:41]FM_GetShiftState done [11:11:41]opened in 1724027888 [11:11:41]opened+sec_in_day 1724114288 [11:11:41]quantity*price = 50036 [11:11:41]sum+1 = 50037 [11:11:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 102 19.08.2024 11:11 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139267 ФПД: 51089995216094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111143&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139267&fm=51089995216094&tin=02508201610067®Number=0000000000092569&sum=50000 [11:11:42]StoreToDocumentArchive [11:11:42]shift 452 fd 139267 [11:11:42]save to /storage/0452/doc_00139267 [11:11:42]save last doc name /storage/0452/doc_00139267 to /storage/kkm_last_doc_name [11:11:42]save OK [11:11:42]Clear old archive folders... [11:11:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:42]tlvbuf is B6EFE230 [11:11:42]SAM_PROTO_ClearQueue [11:11:42]wFMCommunicate request_size=4 [11:11:42]MH_SAM_APDU [11:11:42]CAPDU: 80 09 00 00 [11:11:42]Write to MH i2c: E2 08 00 43 1F 80 09 00 00 00 00 00 00 D4 [11:11:42]Write i2c OK [11:11:42]MH_I2C_Read... [11:11:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:42]Read from MH i2c: E2 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 03 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 03 00 43 1F 00 90 00 D6 [11:11:42]RAPDU: 90 00 [11:11:42]wFMCommunicate OK [11:11:42]SAM_PROTO_ClearQueue done [11:11:42]KKMCreateOFDPacket [11:11:42]OFDProtocolAddRootSTLVToBuf [11:11:42]FM_MakeSignedData [11:11:42]FM_MakeSignedData [11:11:42]SAM_PROTO_SignData [11:11:42]wFMCommunicate request_size=4 [11:11:42]MH_SAM_APDU [11:11:42]CAPDU: 80 0D 01 02 [11:11:42]Write to MH i2c: E2 08 00 44 1F 80 0D 01 02 00 00 00 00 DC [11:11:42]Write i2c OK [11:11:42]MH_I2C_Read... [11:11:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:42]Read from MH i2c: E2 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 03 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 03 00 44 1F 00 90 00 D7 [11:11:42]RAPDU: 90 00 [11:11:42]wFMCommunicate OK [11:11:42]wFMCommunicate request_size=255 [11:11:42]MH_SAM_APDU [11:11: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 66 00 00 00 F4 03 04 00 6F 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 20 02 00 35 04 06 00 2E [11:11:42]Write to MH i2c: E2 02 01 45 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 66 00 00 00 F4 03 04 00 6F 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 20 02 00 35 04 06 00 2E 00 00 A3 [11:11:42]Write i2c OK [11:11:42]MH_I2C_Read... [11:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:42]Read from MH i2c: E2 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 03 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 03 00 45 1F 00 90 00 D8 [11:11:42]RAPDU: 90 00 [11:11:42]wFMCommunicate OK [11:11:42]wFMCommunicate request_size=10 [11:11:42]MH_SAM_APDU [11:11:42]CAPDU: 80 0D 02 02 05 77 51 04 34 DE [11:11:42]Write to MH i2c: E2 0D 00 46 1F 80 0D 02 02 05 00 77 51 04 34 DE 00 00 C7 [11:11:42]Write i2c OK [11:11:42]MH_I2C_Read... [11:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:42]Read from MH i2c: E2 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 03 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 03 00 46 1F 00 90 00 D9 [11:11:42]RAPDU: 90 00 [11:11:42]wFMCommunicate OK [11:11:42]wFMCommunicate request_size=4 [11:11:42]MH_SAM_APDU [11:11:42]CAPDU: 80 0D 03 02 [11:11:42]Write to MH i2c: E2 08 00 47 1F 80 0D 03 02 00 00 00 00 E1 [11:11:42]Write i2c OK [11:11:42]MH_I2C_Read... [11:11:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:42]Read from MH i2c: E2 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 0B 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 0B 00 47 1F 00 61 09 FC CB BA 56 0E CF 90 00 00 [11:11:42]RAPDU: 61 09 FC CB BA 56 0E CF 90 00 [11:11:42]wFMCommunicate OK [11:11:42]SAM_PROTO_SignData done [11:11:42]FM_MakeSignedData done [11:11:42]CreateOFDProtocolMessage [11:11:42]wFMCommunicate request_size=4 [11:11:42]MH_SAM_APDU [11:11:42]CAPDU: 80 11 00 00 [11:11:42]Write to MH i2c: E2 08 00 48 1F 80 11 00 00 00 00 00 00 E1 [11:11:42]Write i2c OK [11:11:42]MH_I2C_Read... [11:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:42]Read from MH i2c: E2 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 17 00 [11:11:42]MH_I2C_Read... [11:11:42]Read from MH i2c: E2 17 00 48 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 38 [11:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:11:42]wFMCommunicate OK [11:11:42]CreateOFDProtocolMessage done [11:11:42]OFDSenderStorePacket 139267 [11:11:42]StoreOFDPacket docnum=139267 [11:11:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 37 4E 07 01 1D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 66 00 00 00 F4 03 04 00 6F 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 20 02 00 35 04 06 00 2E 77 51 04 34 DE 61 09 FC CB BA 56 0E CF [11:11:42]CheckFolder [11:11:42]dirname=/storage/ofd_packets [11:11:42]CheckFolder done [11:11:42]ProducePacketName [11:11:42]name=ofd_packets/00139267 [11:11:42]NVStorageSaveData ofd_packets/00139267 [11:11:42]File name is /storage/ofd_packets/00139267 [11:11:42]Write 301 bytes [11:11:43]NVStorageSaveData done [11:11:43]OFDSenderStorePacket done [11:11:43]KKMCreateOFDPacket done [11:11:43]NVStorageSaveData kkm_last_timestamp [11:11:43]File name is /storage/kkm_last_timestamp [11:11:43]Write 4 bytes [11:11:43]NVStorageSaveData done [11:11:43]ExternCall_PrintAddStr [11:11:43]wPrintStart [11:11:43]Write to MH i2c: 01 00 00 49 1F 68 [11:11:43]Write i2c OK [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: 01 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: 01 07 00 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: 01 07 00 49 1F 00 00 00 00 00 FF 0F 7D [11:11:43]RasterBufferAndPrint [11:11:43]line Счет N : (1)593108 [11:11:43]line ИНН: 02508201610067 [11:11:43]line Контрольно-Кассовый Чек [11:11:43]line ПРОДАЖА [11:11:43]line ТРК (МРК, ГНК) : 32 [11:11:43]line Товар: 2710124130 [11:11:43]line Аи-92-К-5 [11:11:43]line 7.380 * 67.80 [11:11:43]line = 500.36 [11:11:43]line НДС 12% НСП 1% [11:11:43]line > о реализуемом товаре [11:11:43]line ОКРУГЛЕНИЕ: -0.36 [11:11:43]line ИТОГО: 500.00 [11:11:43]line Внесено: 500.00 [11:11:43]line СДАЧА: 0.00 [11:11:43]line НСП 1% : 4.43 [11:11:43]line НДС 12% : 53.14 [11:11:43]line Наличными: 500.00 [11:11:43]line Безнал.: 0.00 [11:11:43]line Место: АЗС № 136 "Партнер Нефть" [11:11:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:11:43]line СНО: Общий режим [11:11:43]line Чек 102 19.08.2024 11:11 [11:11:43]line Смена: 452 ФФД: 1.0 [11:11:43]line ЗНМ: 0300000067 [11:11:43]line РНМ: 0000000000092569 [11:11:43]line Версия ККМ: 001 [11:11:43]line ФМ: 0000000000871776 [11:11:43]line ФД: 139267 [11:11:43]line ФПД: 51089995216094 [11:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111143&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139267&fm=51089995216094&tin=02508201610067®Number=0000000000092569&sum=50000 [11:11:43]OFD Sender: Processing packet 139267 [packets to send 137, broken 136] [11:11:43]ProducePacketName [11:11:43]name=ofd_packets/00139267 [11:11:43]OFD Sender: To server: pG, [11:11:43]CommunicateWithHost lk.salyk.kg:30040 [11:11:43]ConnectInit lk.salyk.kg [11:11:43]written 0, free lines is 4095 [11:11:43]Connected sock=10 [11:11: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 37 36 0F 01 00 00 37 4E 07 01 1D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 66 00 00 00 F4 03 04 00 6F 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 20 02 00 35 04 06 00 2E 77 51 04 34 DE 61 09 FC CB BA 56 0E CF [11:11: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 37 36 4F 00 00 00 82 4C 47 00 87 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 37 36 10 04 04 00 03 20 02 00 F4 03 04 00 06 CF C2 66 B6 04 01 00 00 CF E2 ED 95 E4 ED 9C 4D [11:11:43]CommunicateWithHost err = 0 [11:11:43]CheckOFDResponse [11:11:43]1017 (14) - 77093643461234 [11:11:43]1041 (16) - 0000000000871776 [11:11:43]1040 (4) - 139267 [11:11:43]1012 (4) - 19.08.2024 04:50 [11:11:43]1206 (1) - 0 [11:11:43]OFD Sender: Remove packet 139267 [11:11:43]ProducePacketName [11:11:43]name=ofd_packets/00139267 [11:11:43]NVStorageDeleteData [11:11:43]Write to MH i2c: 01 00 00 74 1F 93 [11:11:43]Write i2c OK [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: 01 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: 01 07 00 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: 01 07 00 74 1F 00 00 00 00 00 E0 0C 86 [11:11:43]RasterBufferAndPrint [11:11:43]line [11:11:43]line [11:11:43]line [11:11:43]line [11:11:43]line [11:11:43]written 0, free lines is 3302 [11:11:43]MH_Cut [11:11:43]Write to MH i2c: D1 01 00 7B 1F 01 6C [11:11:43]Write i2c OK [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: D1 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: D1 01 00 [11:11:43]MH_I2C_Read... [11:11:43]Read from MH i2c: D1 01 00 7B 1F 00 6B [11:11:43]Write to MH i2c: 01 00 00 7C 1F 9B [11:11:43]Write i2c OK [11:11:43]MH_I2C_Read... [11:11:44]OFD Sender: No OFD packet to send [11:11:44]*** Cut start [11:11:44]*** Partial cut [11:11:44]*** CUTSNS_PIN = 1 [11:11:44]*** CUTSNS_PIN = 0 [11:11:44]*** Brake cut motor [11:11:45]Read from MH i2c: 01 [11:11:45]MH_I2C_Read... [11:11:45]*** Stop cut motor [11:11:45]*** Cut end [11:11:45]Read from MH i2c: 01 07 00 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: 01 07 00 7C 1F 00 00 00 00 00 FF 0F B0 [11:11:45]process_action close_receipt done [11:11:45]requested_data is exist [11:11:45]produce_requested_data [11:11:45]requested_item fm.sn is exist - process it [11:11:45]wFMCommunicate request_size=4 [11:11:45]MH_SAM_APDU [11:11:45]CAPDU: 80 11 00 00 [11:11:45]Write to MH i2c: E2 08 00 7D 1F 80 11 00 00 00 00 00 00 16 [11:11:45]Write i2c OK [11:11:45]MH_I2C_Read... [11:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:45]Read from MH i2c: E2 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: E2 17 00 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: E2 17 00 7D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [11:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:11:45]wFMCommunicate OK [11:11:45]requested_item fd.num is exist - process it [11:11:45]SAM_PROTO_GetFieldsCounters [11:11:45]wFMCommunicate request_size=4 [11:11:45]MH_SAM_APDU [11:11:45]CAPDU: 80 13 00 00 [11:11:45]Write to MH i2c: E2 08 00 7E 1F 80 13 00 00 00 00 00 00 19 [11:11:45]Write i2c OK [11:11:45]MH_I2C_Read... [11:11:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:45]Read from MH i2c: E2 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: E2 62 00 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: E2 62 00 7E 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [11:11: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:45]wFMCommunicate OK [11:11:45]SAM_PROTO_GetFieldsCounters done [11:11:45]requested_item shift.num is exist - process it [11:11:45]requested_item shift.opened is exist - process it [11:11:45]req_shift_opened [11:11:45]FM_GetShiftState [11:11:45]SAM_PROTO_GetShiftState [11:11:45]wFMCommunicate request_size=4 [11:11:45]MH_SAM_APDU [11:11:45]CAPDU: 80 13 01 00 [11:11:45]Write to MH i2c: E2 08 00 7F 1F 80 13 01 00 00 00 00 00 1B [11:11:45]Write i2c OK [11:11:45]MH_I2C_Read... [11:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:45]Read from MH i2c: E2 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: E2 0E 00 [11:11:45]MH_I2C_Read... [11:11:45]Read from MH i2c: E2 0E 00 7F 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D2 [11:11:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:11:45]wFMCommunicate OK [11:11:45]SAM_PROTO_GetShiftState done [11:11:45]FM_GetShiftState done [11:11:45]req_shift_opened done [11:11:45]requested_item shift.open_date is exist - process it [11:11:45]req_shift_open_date [11:11:45]req_shift_open_date done [11:11:45]produce_requested_data done [11:11:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139267,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:11:45]process_action_free close_receipt [11:11:45]json_value_free [11:11:45]json_value_free done [11:11:45]process_json_proto returns [11:11:45]Send response to host [11:11:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139267,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:11:45]free response buf [11:11:45]execute_script done [11:11:45]execute_script returns [11:11:45]free content buf [11:11:45]Sock 9.Close socket [11:11:45]Sock 9.Thread stoped [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:15]accept exits with 7 [11:12:15]New connection [11:12:15]New thread 3067202916 created [11:12:15]Thread 3067059556 joined [11:12:15]Waiting for new connection... [11:12:15] Sock 7.Parse request [11:12:15]Sock 7.Check first char [11:12:15]Sock 7.First char is OK [11:12:15]request: POST /json_proto HTTP/1.0 [11:12:15]Method: POST [11:12:15]URL: /json_proto [11:12:15]Method is POST - this is cgi request [11:12:15]url: /json_proto [11:12:15]query_string will be loaded in cgi processing [11:12:15]execute_cgi json_proto POST (null) [11:12:15]execute_cgi path=json_proto method=POST [11:12:15]POST find Content-Length [11:12:15]Host: 172.17.45.67:8080 [11:12:15]Content-Length: 677 [11:12:15]Content-Type: application/json [11:12:15] [11:12:15]POST finish read [11:12:15]Found Content-Length = 677 [11:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:15]execute_script... [11:12: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)593109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:15]POST & json_proto [11:12:15]process_json_proto [11:12:15]json parsed OK: [11:12:15]protocol is kg_v1.0 [11:12:15]action value=close_receipt [11:12:15]process_action close_receipt [11:12:15]cmd_close_receipt [11:12:15]MH_GetDate [11:12:15]Write to MH i2c: F0 00 00 80 1F 8E [11:12:15]Write i2c OK [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: F0 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: F0 09 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: F0 09 00 80 1F 00 91 28 C3 66 5F 7F 2B 66 E8 [11:12:15]GetLastDocTimeStamp 1724065903 [11:12:15]current date 1724065937 [11:12:15]FM_GetShiftState [11:12:15]SAM_PROTO_GetShiftState [11:12:15]wFMCommunicate request_size=4 [11:12:15]MH_SAM_APDU [11:12:15]CAPDU: 80 13 01 00 [11:12:15]Write to MH i2c: E2 08 00 81 1F 80 13 01 00 00 00 00 00 1D [11:12:15]Write i2c OK [11:12:15]MH_I2C_Read... [11:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:15]Read from MH i2c: E2 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 0E 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 0E 00 81 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D4 [11:12:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:12:15]wFMCommunicate OK [11:12:15]SAM_PROTO_GetShiftState done [11:12:15]FM_GetShiftState done [11:12:15]opened in 1724027888 [11:12:15]opened+sec_in_day 1724114288 [11:12:15]quantity*price = 50036 [11:12:15]sum+1 = 50037 [11:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 103 19.08.2024 11:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139268 ФПД: 151276027166321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111217&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139268&fm=151276027166321&tin=02508201610067®Number=0000000000092569&sum=50000 [11:12:16]StoreToDocumentArchive [11:12:16]shift 452 fd 139268 [11:12:16]save to /storage/0452/doc_00139268 [11:12:16]save last doc name /storage/0452/doc_00139268 to /storage/kkm_last_doc_name [11:12:16]save OK [11:12:16]Clear old archive folders... [11:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:16]tlvbuf is 01E95110 [11:12:16]SAM_PROTO_ClearQueue [11:12:16]wFMCommunicate request_size=4 [11:12:16]MH_SAM_APDU [11:12:16]CAPDU: 80 09 00 00 [11:12:16]Write to MH i2c: E2 08 00 8E 1F 80 09 00 00 00 00 00 00 1F [11:12:16]Write i2c OK [11:12:16]MH_I2C_Read... [11:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:16]Read from MH i2c: E2 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 03 00 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 03 00 8E 1F 00 90 00 21 [11:12:16]RAPDU: 90 00 [11:12:16]wFMCommunicate OK [11:12:16]SAM_PROTO_ClearQueue done [11:12:16]KKMCreateOFDPacket [11:12:16]OFDProtocolAddRootSTLVToBuf [11:12:16]FM_MakeSignedData [11:12:16]FM_MakeSignedData [11:12:16]SAM_PROTO_SignData [11:12:16]wFMCommunicate request_size=4 [11:12:16]MH_SAM_APDU [11:12:16]CAPDU: 80 0D 01 02 [11:12:16]Write to MH i2c: E2 08 00 8F 1F 80 0D 01 02 00 00 00 00 27 [11:12:16]Write i2c OK [11:12:16]MH_I2C_Read... [11:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:16]Read from MH i2c: E2 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 03 00 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 03 00 8F 1F 00 90 00 22 [11:12:16]RAPDU: 90 00 [11:12:16]wFMCommunicate OK [11:12:16]wFMCommunicate request_size=255 [11:12:16]MH_SAM_APDU [11:12: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 67 00 00 00 F4 03 04 00 91 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 20 02 00 35 04 06 00 89 [11:12:16]Write to MH i2c: E2 02 01 90 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 67 00 00 00 F4 03 04 00 91 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 20 02 00 35 04 06 00 89 00 00 6D [11:12:16]Write i2c OK [11:12:16]MH_I2C_Read... [11:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:16]Read from MH i2c: E2 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 03 00 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 03 00 90 1F 00 90 00 23 [11:12:16]RAPDU: 90 00 [11:12:16]wFMCommunicate OK [11:12:16]wFMCommunicate request_size=10 [11:12:16]MH_SAM_APDU [11:12:16]CAPDU: 80 0D 02 02 05 95 B1 DC BE 71 [11:12:16]Write to MH i2c: E2 0D 00 91 1F 80 0D 02 02 05 00 95 B1 DC BE 71 00 00 85 [11:12:16]Write i2c OK [11:12:16]MH_I2C_Read... [11:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:16]Read from MH i2c: E2 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 03 00 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 03 00 91 1F 00 90 00 24 [11:12:16]RAPDU: 90 00 [11:12:16]wFMCommunicate OK [11:12:16]wFMCommunicate request_size=4 [11:12:16]MH_SAM_APDU [11:12:16]CAPDU: 80 0D 03 02 [11:12:16]Write to MH i2c: E2 08 00 92 1F 80 0D 03 02 00 00 00 00 2C [11:12:16]Write i2c OK [11:12:16]MH_I2C_Read... [11:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:16]Read from MH i2c: E2 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 0B 00 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 0B 00 92 1F 00 84 7D A6 43 CC 22 AE 11 90 00 C4 [11:12:16]RAPDU: 84 7D A6 43 CC 22 AE 11 90 00 [11:12:16]wFMCommunicate OK [11:12:16]SAM_PROTO_SignData done [11:12:16]FM_MakeSignedData done [11:12:16]CreateOFDProtocolMessage [11:12:16]wFMCommunicate request_size=4 [11:12:16]MH_SAM_APDU [11:12:16]CAPDU: 80 11 00 00 [11:12:16]Write to MH i2c: E2 08 00 93 1F 80 11 00 00 00 00 00 00 2C [11:12:16]Write i2c OK [11:12:16]MH_I2C_Read... [11:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:16]Read from MH i2c: E2 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 17 00 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: E2 17 00 93 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 83 [11:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:12:16]wFMCommunicate OK [11:12:16]CreateOFDProtocolMessage done [11:12:16]OFDSenderStorePacket 139268 [11:12:16]StoreOFDPacket docnum=139268 [11:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F6 AB 07 01 CE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 67 00 00 00 F4 03 04 00 91 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 20 02 00 35 04 06 00 89 95 B1 DC BE 71 84 7D A6 43 CC 22 AE 11 [11:12:16]CheckFolder [11:12:16]dirname=/storage/ofd_packets [11:12:16]CheckFolder done [11:12:16]ProducePacketName [11:12:16]name=ofd_packets/00139268 [11:12:16]NVStorageSaveData ofd_packets/00139268 [11:12:16]File name is /storage/ofd_packets/00139268 [11:12:16]Write 301 bytes [11:12:16]NVStorageSaveData done [11:12:16]OFDSenderStorePacket done [11:12:16]KKMCreateOFDPacket done [11:12:16]NVStorageSaveData kkm_last_timestamp [11:12:16]File name is /storage/kkm_last_timestamp [11:12:16]Write 4 bytes [11:12:16]NVStorageSaveData done [11:12:16]ExternCall_PrintAddStr [11:12:16]wPrintStart [11:12:16]Write to MH i2c: 01 00 00 94 1F B3 [11:12:16]Write i2c OK [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: 01 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: 01 07 00 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: 01 07 00 94 1F 00 00 00 00 00 FF 0F C8 [11:12:16]RasterBufferAndPrint [11:12:16]line Счет N : (1)593109 [11:12:16]line ИНН: 02508201610067 [11:12:16]line Контрольно-Кассовый Чек [11:12:16]line ПРОДАЖА [11:12:16]line ТРК (МРК, ГНК) : 62 [11:12:16]line Товар: 2710124130 [11:12:16]line Аи-92-К-5 [11:12:16]line 7.380 * 67.80 [11:12:16]line = 500.36 [11:12:16]line НДС 12% НСП 1% [11:12:16]line > о реализуемом товаре [11:12:16]line ОКРУГЛЕНИЕ: -0.36 [11:12:16]line ИТОГО: 500.00 [11:12:16]line Внесено: 500.00 [11:12:16]line СДАЧА: 0.00 [11:12:16]line НСП 1% : 4.43 [11:12:16]line НДС 12% : 53.14 [11:12:16]line Наличными: 500.00 [11:12:16]line Безнал.: 0.00 [11:12:16]line Место: АЗС № 136 "Партнер Нефть" [11:12:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:12:16]line СНО: Общий режим [11:12:16]line Чек 103 19.08.2024 11:12 [11:12:16]line Смена: 452 ФФД: 1.0 [11:12:16]line ЗНМ: 0300000067 [11:12:16]line РНМ: 0000000000092569 [11:12:16]line Версия ККМ: 001 [11:12:16]line ФМ: 0000000000871776 [11:12:16]line ФД: 139268 [11:12:16]line ФПД: 151276027166321 [11:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111217&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139268&fm=151276027166321&tin=02508201610067®Number=0000000000092569&sum=50000 [11:12:17]OFD Sender: Processing packet 139268 [packets to send 137, broken 136] [11:12:17]ProducePacketName [11:12:17]name=ofd_packets/00139268 [11:12:17]OFD Sender: To server: pG, [11:12:17]CommunicateWithHost lk.salyk.kg:30040 [11:12:17]ConnectInit lk.salyk.kg [11:12:17]written 0, free lines is 4095 [11:12:17]Connected sock=10 [11:12: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 37 36 0F 01 00 00 F6 AB 07 01 CE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 67 00 00 00 F4 03 04 00 91 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 20 02 00 35 04 06 00 89 95 B1 DC BE 71 84 7D A6 43 CC 22 AE 11 [11:12: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 37 36 4F 00 00 00 43 3A 47 00 8B 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 37 36 10 04 04 00 04 20 02 00 F4 03 04 00 27 CF C2 66 B6 04 01 00 00 F0 C3 63 D7 80 84 14 89 [11:12:17]CommunicateWithHost err = 0 [11:12:17]CheckOFDResponse [11:12:17]1017 (14) - 77093643461234 [11:12:17]1041 (16) - 0000000000871776 [11:12:17]1040 (4) - 139268 [11:12:17]1012 (4) - 19.08.2024 04:50 [11:12:17]1206 (1) - 0 [11:12:17]OFD Sender: Remove packet 139268 [11:12:17]ProducePacketName [11:12:17]name=ofd_packets/00139268 [11:12:17]NVStorageDeleteData [11:12:17]Write to MH i2c: 01 00 00 BF 1F DE [11:12:17]Write i2c OK [11:12:17]MH_I2C_Read... [11:12:17]Read from MH i2c: 01 [11:12:17]MH_I2C_Read... [11:12:17]Read from MH i2c: 01 07 00 [11:12:17]MH_I2C_Read... [11:12:17]Read from MH i2c: 01 07 00 BF 1F 00 00 00 00 00 DA 0C CB [11:12:17]RasterBufferAndPrint [11:12:17]line [11:12:17]line [11:12:17]line [11:12:17]line [11:12:17]line [11:12:17]written 0, free lines is 3297 [11:12:17]MH_Cut [11:12:17]Write to MH i2c: D1 01 00 C6 1F 01 B7 [11:12:17]Write i2c OK [11:12:17]MH_I2C_Read... [11:12:17]Read from MH i2c: D1 [11:12:17]MH_I2C_Read... [11:12:17]Read from MH i2c: D1 01 00 [11:12:17]MH_I2C_Read... [11:12:17]Read from MH i2c: D1 01 00 C6 1F 00 B6 [11:12:17]Write to MH i2c: 01 00 00 C7 1F E6 [11:12:17]Write i2c OK [11:12:17]MH_I2C_Read... [11:12:18]OFD Sender: No OFD packet to send [11:12:18]*** Cut start [11:12:18]*** Partial cut [11:12:18]*** CUTSNS_PIN = 1 [11:12:18]*** CUTSNS_PIN = 0 [11:12:18]*** Brake cut motor [11:12:18]Read from MH i2c: 01 [11:12:18]MH_I2C_Read... [11:12:18]*** Stop cut motor [11:12:18]*** Cut end [11:12:18]Read from MH i2c: 01 07 00 [11:12:18]MH_I2C_Read... [11:12:18]Read from MH i2c: 01 07 00 C7 1F 00 00 00 00 00 FF 0F FB [11:12:18]process_action close_receipt done [11:12:18]requested_data is exist [11:12:18]produce_requested_data [11:12:18]requested_item fm.sn is exist - process it [11:12:18]wFMCommunicate request_size=4 [11:12:18]MH_SAM_APDU [11:12:18]CAPDU: 80 11 00 00 [11:12:18]Write to MH i2c: E2 08 00 C8 1F 80 11 00 00 00 00 00 00 61 [11:12:18]Write i2c OK [11:12:18]MH_I2C_Read... [11:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:18]Read from MH i2c: E2 [11:12:18]MH_I2C_Read... [11:12:18]Read from MH i2c: E2 17 00 [11:12:18]MH_I2C_Read... [11:12:18]Read from MH i2c: E2 17 00 C8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [11:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:12:18]wFMCommunicate OK [11:12:18]requested_item fd.num is exist - process it [11:12:18]SAM_PROTO_GetFieldsCounters [11:12:18]wFMCommunicate request_size=4 [11:12:18]MH_SAM_APDU [11:12:18]CAPDU: 80 13 00 00 [11:12:18]Write to MH i2c: E2 08 00 C9 1F 80 13 00 00 00 00 00 00 64 [11:12:18]Write i2c OK [11:12:18]MH_I2C_Read... [11:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:19]Read from MH i2c: E2 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: E2 62 00 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: E2 62 00 C9 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [11:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:19]wFMCommunicate OK [11:12:19]SAM_PROTO_GetFieldsCounters done [11:12:19]requested_item shift.num is exist - process it [11:12:19]requested_item shift.opened is exist - process it [11:12:19]req_shift_opened [11:12:19]FM_GetShiftState [11:12:19]SAM_PROTO_GetShiftState [11:12:19]wFMCommunicate request_size=4 [11:12:19]MH_SAM_APDU [11:12:19]CAPDU: 80 13 01 00 [11:12:19]Write to MH i2c: E2 08 00 CA 1F 80 13 01 00 00 00 00 00 66 [11:12:19]Write i2c OK [11:12:19]MH_I2C_Read... [11:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:19]Read from MH i2c: E2 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: E2 0E 00 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: E2 0E 00 CA 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1D [11:12:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:12:19]wFMCommunicate OK [11:12:19]SAM_PROTO_GetShiftState done [11:12:19]FM_GetShiftState done [11:12:19]req_shift_opened done [11:12:19]requested_item shift.open_date is exist - process it [11:12:19]req_shift_open_date [11:12:19]req_shift_open_date done [11:12:19]produce_requested_data done [11:12:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139268,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:12:19]process_action_free close_receipt [11:12:19]json_value_free [11:12:19]json_value_free done [11:12:19]process_json_proto returns [11:12:19]Send response to host [11:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139268,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:12:19]free response buf [11:12:19]execute_script done [11:12:19]execute_script returns [11:12:19]free content buf [11:12:19]Sock 7.Close socket [11:12:19]Sock 7.Thread stoped [11:12:19]accept exits with 9 [11:12:19]New connection [11:12:19]New thread 3067059556 created [11:12:19]Thread 3067202916 joined [11:12:19]Waiting for new connection... [11:12:19] Sock 9.Parse request [11:12:19]Sock 9.Check first char [11:12:19]Sock 9.First char is OK [11:12:19]request: POST /json_proto HTTP/1.0 [11:12:19]Method: POST [11:12:19]URL: /json_proto [11:12:19]Method is POST - this is cgi request [11:12:19]url: /json_proto [11:12:19]query_string will be loaded in cgi processing [11:12:19]execute_cgi json_proto POST (null) [11:12:19]execute_cgi path=json_proto method=POST [11:12:19]POST find Content-Length [11:12:19]Host: 172.17.45.67:8080 [11:12:19]Content-Length: 677 [11:12:19]Content-Type: application/json [11:12:19] [11:12:19]POST finish read [11:12:19]Found Content-Length = 677 [11:12:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:19]execute_script... [11:12: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)593110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:19]POST & json_proto [11:12:19]process_json_proto [11:12:19]json parsed OK: [11:12:19]protocol is kg_v1.0 [11:12:19]action value=close_receipt [11:12:19]process_action close_receipt [11:12:19]cmd_close_receipt [11:12:19]MH_GetDate [11:12:19]Write to MH i2c: F0 00 00 CB 1F D9 [11:12:19]Write i2c OK [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: F0 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: F0 09 00 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: F0 09 00 CB 1F 00 96 28 C3 66 5F 7F 2B 66 38 [11:12:19]GetLastDocTimeStamp 1724065937 [11:12:19]current date 1724065942 [11:12:19]FM_GetShiftState [11:12:19]SAM_PROTO_GetShiftState [11:12:19]wFMCommunicate request_size=4 [11:12:19]MH_SAM_APDU [11:12:19]CAPDU: 80 13 01 00 [11:12:19]Write to MH i2c: E2 08 00 CC 1F 80 13 01 00 00 00 00 00 68 [11:12:19]Write i2c OK [11:12:19]MH_I2C_Read... [11:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:19]Read from MH i2c: E2 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: E2 0E 00 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: E2 0E 00 CC 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1F [11:12:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:12:19]wFMCommunicate OK [11:12:19]SAM_PROTO_GetShiftState done [11:12:19]FM_GetShiftState done [11:12:19]opened in 1724027888 [11:12:19]opened+sec_in_day 1724114288 [11:12:19]quantity*price = 40002 [11:12:19]sum+1 = 40003 [11:12:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 104 19.08.2024 11:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139269 ФПД: 181439928398993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111222&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139269&fm=181439928398993&tin=02508201610067®Number=0000000000092569&sum=40000 [11:12:21]StoreToDocumentArchive [11:12:21]shift 452 fd 139269 [11:12:21]save to /storage/0452/doc_00139269 [11:12:21]save last doc name /storage/0452/doc_00139269 to /storage/kkm_last_doc_name [11:12:21]save OK [11:12:21]Clear old archive folders... [11:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:21]tlvbuf is 01E8B560 [11:12:21]SAM_PROTO_ClearQueue [11:12:21]wFMCommunicate request_size=4 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 09 00 00 [11:12:21]Write to MH i2c: E2 08 00 D9 1F 80 09 00 00 00 00 00 00 6A [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 D9 1F 00 90 00 6C [11:12:21]RAPDU: 90 00 [11:12:21]wFMCommunicate OK [11:12:21]SAM_PROTO_ClearQueue done [11:12:21]KKMCreateOFDPacket [11:12:21]OFDProtocolAddRootSTLVToBuf [11:12:21]FM_MakeSignedData [11:12:21]FM_MakeSignedData [11:12:21]SAM_PROTO_SignData [11:12:21]wFMCommunicate request_size=4 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 0D 01 02 [11:12:21]Write to MH i2c: E2 08 00 DA 1F 80 0D 01 02 00 00 00 00 72 [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 DA 1F 00 90 00 6D [11:12:21]RAPDU: 90 00 [11:12:21]wFMCommunicate OK [11:12:21]wFMCommunicate request_size=255 [11:12:21]MH_SAM_APDU [11:12: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 68 00 00 00 F4 03 04 00 96 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 20 02 00 35 04 06 00 A5 [11:12:21]Write to MH i2c: E2 02 01 DB 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 68 00 00 00 F4 03 04 00 96 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 20 02 00 35 04 06 00 A5 00 00 C0 [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 DB 1F 00 90 00 6E [11:12:21]RAPDU: 90 00 [11:12:21]wFMCommunicate OK [11:12:21]wFMCommunicate request_size=10 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 0D 02 02 05 04 C6 7A F4 91 [11:12:21]Write to MH i2c: E2 0D 00 DC 1F 80 0D 02 02 05 00 04 C6 7A F4 91 00 00 48 [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 DC 1F 00 90 00 6F [11:12:21]RAPDU: 90 00 [11:12:21]wFMCommunicate OK [11:12:21]wFMCommunicate request_size=4 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 0D 03 02 [11:12:21]Write to MH i2c: E2 08 00 DD 1F 80 0D 03 02 00 00 00 00 77 [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 0B 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 0B 00 DD 1F 00 EC 7F 5C AA AC E0 7C D4 90 00 C5 [11:12:21]RAPDU: EC 7F 5C AA AC E0 7C D4 90 00 [11:12:21]wFMCommunicate OK [11:12:21]SAM_PROTO_SignData done [11:12:21]FM_MakeSignedData done [11:12:21]CreateOFDProtocolMessage [11:12:21]wFMCommunicate request_size=4 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 11 00 00 [11:12:21]Write to MH i2c: E2 08 00 DE 1F 80 11 00 00 00 00 00 00 77 [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 17 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 17 00 DE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CE [11:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:12:21]wFMCommunicate OK [11:12:21]CreateOFDProtocolMessage done [11:12:21]OFDSenderStorePacket 139269 [11:12:21]StoreOFDPacket docnum=139269 [11:12:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 50 98 07 01 A6 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 68 00 00 00 F4 03 04 00 96 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 20 02 00 35 04 06 00 A5 04 C6 7A F4 91 EC 7F 5C AA AC E0 7C D4 [11:12:21]CheckFolder [11:12:21]dirname=/storage/ofd_packets [11:12:21]CheckFolder done [11:12:21]ProducePacketName [11:12:21]name=ofd_packets/00139269 [11:12:21]NVStorageSaveData ofd_packets/00139269 [11:12:21]File name is /storage/ofd_packets/00139269 [11:12:21]Write 301 bytes [11:12:21]NVStorageSaveData done [11:12:21]OFDSenderStorePacket done [11:12:21]KKMCreateOFDPacket done [11:12:21]NVStorageSaveData kkm_last_timestamp [11:12:21]File name is /storage/kkm_last_timestamp [11:12:21]Write 4 bytes [11:12:21]NVStorageSaveData done [11:12:21]ExternCall_PrintAddStr [11:12:21]wPrintStart [11:12:21]Write to MH i2c: 01 00 00 DF 1F FE [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: 01 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: 01 07 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: 01 07 00 DF 1F 00 00 00 00 00 FF 0F 13 [11:12:21]RasterBufferAndPrint [11:12:21]line Счет N : (1)593110 [11:12:21]line ИНН: 02508201610067 [11:12:21]line Контрольно-Кассовый Чек [11:12:21]line ПРОДАЖА [11:12:21]line ТРК (МРК, ГНК) : 42 [11:12:21]line Товар: 2710124130 [11:12:21]line Аи-92-К-5 [11:12:21]line 5.900 * 67.80 [11:12:21]line = 400.02 [11:12:21]line НДС 12% НСП 1% [11:12:21]line > о реализуемом товаре [11:12:21]line ОКРУГЛЕНИЕ: -0.02 [11:12:21]line ИТОГО: 400.00 [11:12:21]line Внесено: 400.00 [11:12:21]line СДАЧА: 0.00 [11:12:21]line НСП 1% : 3.54 [11:12:21]line НДС 12% : 42.48 [11:12:21]line Наличными: 400.00 [11:12:21]line Безнал.: 0.00 [11:12:21]line Место: АЗС № 136 "Партнер Нефть" [11:12:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:12:21]line СНО: Общий режим [11:12:21]line Чек 104 19.08.2024 11:12 [11:12:21]line Смена: 452 ФФД: 1.0 [11:12:21]line ЗНМ: 0300000067 [11:12:21]line РНМ: 0000000000092569 [11:12:21]line Версия ККМ: 001 [11:12:21]line ФМ: 0000000000871776 [11:12:22]line ФД: 139269 [11:12:22]line ФПД: 181439928398993 [11:12:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111222&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139269&fm=181439928398993&tin=02508201610067®Number=0000000000092569&sum=40000 [11:12:22]OFD Sender: Processing packet 139269 [packets to send 137, broken 136] [11:12:22]ProducePacketName [11:12:22]name=ofd_packets/00139269 [11:12:22]OFD Sender: To server: pG, [11:12:22]CommunicateWithHost lk.salyk.kg:30040 [11:12:22]ConnectInit lk.salyk.kg [11:12:22]written 0, free lines is 4095 [11:12:22]Connected sock=10 [11:12: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 37 36 0F 01 00 00 50 98 07 01 A6 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 68 00 00 00 F4 03 04 00 96 28 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 20 02 00 35 04 06 00 A5 04 C6 7A F4 91 EC 7F 5C AA AC E0 7C D4 [11:12: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 37 36 4F 00 00 00 A9 80 47 00 5A 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 37 36 10 04 04 00 05 20 02 00 F4 03 04 00 2C CF C2 66 B6 04 01 00 00 0B EF 39 05 B3 71 87 36 [11:12:22]CommunicateWithHost err = 0 [11:12:22]CheckOFDResponse [11:12:22]1017 (14) - 77093643461234 [11:12:22]1041 (16) - 0000000000871776 [11:12:22]1040 (4) - 139269 [11:12:22]1012 (4) - 19.08.2024 04:50 [11:12:22]1206 (1) - 0 [11:12:22]OFD Sender: Remove packet 139269 [11:12:22]ProducePacketName [11:12:22]name=ofd_packets/00139269 [11:12:22]NVStorageDeleteData [11:12:22]Write to MH i2c: 01 00 00 0A 20 2A [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: 01 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: 01 07 00 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: 01 07 00 0A 20 00 00 00 00 00 E2 0C 1F [11:12:22]RasterBufferAndPrint [11:12:22]line [11:12:22]line [11:12:22]line [11:12:22]line [11:12:22]line [11:12:22]written 0, free lines is 3307 [11:12:22]MH_Cut [11:12:22]Write to MH i2c: D1 01 00 11 20 01 03 [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: D1 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: D1 01 00 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: D1 01 00 11 20 00 02 [11:12:22]Write to MH i2c: 01 00 00 12 20 32 [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]OFD Sender: No OFD packet to send [11:12:23]*** Cut start [11:12:23]*** Partial cut [11:12:23]*** CUTSNS_PIN = 1 [11:12:23]*** CUTSNS_PIN = 0 [11:12:23]*** Brake cut motor [11:12:23]Read from MH i2c: 01 [11:12:23]MH_I2C_Read... [11:12:23]*** Stop cut motor [11:12:23]*** Cut end [11:12:23]Read from MH i2c: 01 07 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: 01 07 00 12 20 00 00 00 00 00 FF 0F 47 [11:12:23]process_action close_receipt done [11:12:23]requested_data is exist [11:12:23]produce_requested_data [11:12:23]requested_item fm.sn is exist - process it [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 11 00 00 [11:12:23]Write to MH i2c: E2 08 00 13 20 80 11 00 00 00 00 00 00 AD [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 17 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 17 00 13 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [11:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:12:23]wFMCommunicate OK [11:12:23]requested_item fd.num is exist - process it [11:12:23]SAM_PROTO_GetFieldsCounters [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 13 00 00 [11:12:23]Write to MH i2c: E2 08 00 14 20 80 13 00 00 00 00 00 00 B0 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 62 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: E2 62 00 14 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [11:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:24]wFMCommunicate OK [11:12:24]SAM_PROTO_GetFieldsCounters done [11:12:24]requested_item shift.num is exist - process it [11:12:24]requested_item shift.opened is exist - process it [11:12:24]req_shift_opened [11:12:24]FM_GetShiftState [11:12:24]SAM_PROTO_GetShiftState [11:12:24]wFMCommunicate request_size=4 [11:12:24]MH_SAM_APDU [11:12:24]CAPDU: 80 13 01 00 [11:12:24]Write to MH i2c: E2 08 00 15 20 80 13 01 00 00 00 00 00 B2 [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:24]Read from MH i2c: E2 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: E2 0E 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: E2 0E 00 15 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 69 [11:12:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:12:24]wFMCommunicate OK [11:12:24]SAM_PROTO_GetShiftState done [11:12:24]FM_GetShiftState done [11:12:24]req_shift_opened done [11:12:24]requested_item shift.open_date is exist - process it [11:12:24]req_shift_open_date [11:12:24]req_shift_open_date done [11:12:24]produce_requested_data done [11:12:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139269,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:12:24]process_action_free close_receipt [11:12:24]json_value_free [11:12:24]json_value_free done [11:12:24]process_json_proto returns [11:12:24]Send response to host [11:12:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139269,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:12:24]free response buf [11:12:24]execute_script done [11:12:24]execute_script returns [11:12:24]free content buf [11:12:24]Sock 9.Close socket [11:12:24]Sock 9.Thread stoped [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:09]accept exits with 7 [11:14:09]New connection [11:14:09]New thread 3067202916 created [11:14:09]Thread 3067059556 joined [11:14:09]Waiting for new connection... [11:14:09] Sock 7.Parse request [11:14:09]Sock 7.Check first char [11:14:09]Sock 7.First char is OK [11:14:09]request: POST /json_proto HTTP/1.0 [11:14:09]Method: POST [11:14:09]URL: /json_proto [11:14:09]Method is POST - this is cgi request [11:14:09]url: /json_proto [11:14:09]query_string will be loaded in cgi processing [11:14:09]execute_cgi json_proto POST (null) [11:14:09]execute_cgi path=json_proto method=POST [11:14:09]POST find Content-Length [11:14:09]Host: 172.17.45.67:8080 [11:14:09]Content-Length: 677 [11:14:09]Content-Type: application/json [11:14:09] [11:14:09]POST finish read [11:14:09]Found Content-Length = 677 [11:14:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:14:09]execute_script... [11:14: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)593111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:14:09]POST & json_proto [11:14:09]process_json_proto [11:14:09]json parsed OK: [11:14:09]protocol is kg_v1.0 [11:14:09]action value=close_receipt [11:14:09]process_action close_receipt [11:14:09]cmd_close_receipt [11:14:09]MH_GetDate [11:14:09]Write to MH i2c: F0 00 00 16 20 25 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: F0 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: F0 09 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: F0 09 00 16 20 00 03 29 C3 66 5F 7F 2B 66 F2 [11:14:09]GetLastDocTimeStamp 1724065942 [11:14:09]current date 1724066051 [11:14:09]FM_GetShiftState [11:14:09]SAM_PROTO_GetShiftState [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 13 01 00 [11:14:09]Write to MH i2c: E2 08 00 17 20 80 13 01 00 00 00 00 00 B4 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0E 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0E 00 17 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6B [11:14:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:14:09]wFMCommunicate OK [11:14:09]SAM_PROTO_GetShiftState done [11:14:09]FM_GetShiftState done [11:14:09]opened in 1724027888 [11:14:09]opened+sec_in_day 1724114288 [11:14:09]quantity*price = 20001 [11:14:09]sum+1 = 20002 [11:14:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 105 19.08.2024 11:14 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139270 ФПД: 130419872289786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139270&fm=130419872289786&tin=02508201610067®Number=0000000000092569&sum=20000 [11:14:10]StoreToDocumentArchive [11:14:10]shift 452 fd 139270 [11:14:10]save to /storage/0452/doc_00139270 [11:14:10]save last doc name /storage/0452/doc_00139270 to /storage/kkm_last_doc_name [11:14:10]save OK [11:14:10]Clear old archive folders... [11:14:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:10]tlvbuf is B6EE58F0 [11:14:10]SAM_PROTO_ClearQueue [11:14:10]wFMCommunicate request_size=4 [11:14:10]MH_SAM_APDU [11:14:10]CAPDU: 80 09 00 00 [11:14:10]Write to MH i2c: E2 08 00 24 20 80 09 00 00 00 00 00 00 B6 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:10]Read from MH i2c: E2 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 03 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 03 00 24 20 00 90 00 B8 [11:14:10]RAPDU: 90 00 [11:14:10]wFMCommunicate OK [11:14:10]SAM_PROTO_ClearQueue done [11:14:10]KKMCreateOFDPacket [11:14:10]OFDProtocolAddRootSTLVToBuf [11:14:10]FM_MakeSignedData [11:14:10]FM_MakeSignedData [11:14:10]SAM_PROTO_SignData [11:14:10]wFMCommunicate request_size=4 [11:14:10]MH_SAM_APDU [11:14:10]CAPDU: 80 0D 01 02 [11:14:10]Write to MH i2c: E2 08 00 25 20 80 0D 01 02 00 00 00 00 BE [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:10]Read from MH i2c: E2 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 03 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 03 00 25 20 00 90 00 B9 [11:14:10]RAPDU: 90 00 [11:14:10]wFMCommunicate OK [11:14:10]wFMCommunicate request_size=255 [11:14:10]MH_SAM_APDU [11:14: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 03 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 20 02 00 35 04 06 00 76 [11:14:10]Write to MH i2c: E2 02 01 26 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 03 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 20 02 00 35 04 06 00 76 00 00 6A [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:10]Read from MH i2c: E2 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 03 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 03 00 26 20 00 90 00 BA [11:14:10]RAPDU: 90 00 [11:14:10]wFMCommunicate OK [11:14:10]wFMCommunicate request_size=10 [11:14:10]MH_SAM_APDU [11:14:10]CAPDU: 80 0D 02 02 05 9D BE 28 D3 FA [11:14:10]Write to MH i2c: E2 0D 00 27 20 80 0D 02 02 05 00 9D BE 28 D3 FA 00 00 1B [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:10]Read from MH i2c: E2 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 03 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 03 00 27 20 00 90 00 BB [11:14:10]RAPDU: 90 00 [11:14:10]wFMCommunicate OK [11:14:10]wFMCommunicate request_size=4 [11:14:10]MH_SAM_APDU [11:14:10]CAPDU: 80 0D 03 02 [11:14:10]Write to MH i2c: E2 08 00 28 20 80 0D 03 02 00 00 00 00 C3 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:11]Read from MH i2c: E2 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 0B 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 0B 00 28 20 00 79 C1 BB D2 94 E1 B3 B5 90 00 68 [11:14:11]RAPDU: 79 C1 BB D2 94 E1 B3 B5 90 00 [11:14:11]wFMCommunicate OK [11:14:11]SAM_PROTO_SignData done [11:14:11]FM_MakeSignedData done [11:14:11]CreateOFDProtocolMessage [11:14:11]wFMCommunicate request_size=4 [11:14:11]MH_SAM_APDU [11:14:11]CAPDU: 80 11 00 00 [11:14:11]Write to MH i2c: E2 08 00 29 20 80 11 00 00 00 00 00 00 C3 [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:11]Read from MH i2c: E2 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 17 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 17 00 29 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1A [11:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:14:11]wFMCommunicate OK [11:14:11]CreateOFDProtocolMessage done [11:14:11]OFDSenderStorePacket 139270 [11:14:11]StoreOFDPacket docnum=139270 [11:14:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 FA 07 01 59 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 03 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 20 02 00 35 04 06 00 76 9D BE 28 D3 FA 79 C1 BB D2 94 E1 B3 B5 [11:14:11]CheckFolder [11:14:11]dirname=/storage/ofd_packets [11:14:11]CheckFolder done [11:14:11]ProducePacketName [11:14:11]name=ofd_packets/00139270 [11:14:11]NVStorageSaveData ofd_packets/00139270 [11:14:11]File name is /storage/ofd_packets/00139270 [11:14:11]Write 301 bytes [11:14:11]NVStorageSaveData done [11:14:11]OFDSenderStorePacket done [11:14:11]KKMCreateOFDPacket done [11:14:11]NVStorageSaveData kkm_last_timestamp [11:14:11]File name is /storage/kkm_last_timestamp [11:14:11]Write 4 bytes [11:14:11]NVStorageSaveData done [11:14:11]ExternCall_PrintAddStr [11:14:11]wPrintStart [11:14:11]Write to MH i2c: 01 00 00 2A 20 4A [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: 01 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: 01 07 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: 01 07 00 2A 20 00 00 00 00 00 FF 0F 5F [11:14:11]RasterBufferAndPrint [11:14:11]line Счет N : (1)593111 [11:14:11]line ИНН: 02508201610067 [11:14:11]line Контрольно-Кассовый Чек [11:14:11]line ПРОДАЖА [11:14:11]line ТРК (МРК, ГНК) : 32 [11:14:11]line Товар: 2710124130 [11:14:11]line Аи-92-К-5 [11:14:11]line 2.950 * 67.80 [11:14:11]line = 200.01 [11:14:11]line НДС 12% НСП 1% [11:14:11]line > о реализуемом товаре [11:14:11]line ОКРУГЛЕНИЕ: -0.01 [11:14:11]line ИТОГО: 200.00 [11:14:11]line Внесено: 200.00 [11:14:11]line СДАЧА: 0.00 [11:14:11]line НСП 1% : 1.77 [11:14:11]line НДС 12% : 21.24 [11:14:11]line Наличными: 200.00 [11:14:11]line Безнал.: 0.00 [11:14:11]line Место: АЗС № 136 "Партнер Нефть" [11:14:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:14:11]line СНО: Общий режим [11:14:11]line Чек 105 19.08.2024 11:14 [11:14:11]line Смена: 452 ФФД: 1.0 [11:14:11]line ЗНМ: 0300000067 [11:14:11]line РНМ: 0000000000092569 [11:14:11]line Версия ККМ: 001 [11:14:11]line ФМ: 0000000000871776 [11:14:11]line ФД: 139270 [11:14:11]line ФПД: 130419872289786 [11:14:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139270&fm=130419872289786&tin=02508201610067®Number=0000000000092569&sum=20000 [11:14:11]OFD Sender: Processing packet 139270 [packets to send 137, broken 136] [11:14:11]ProducePacketName [11:14:11]name=ofd_packets/00139270 [11:14:11]OFD Sender: To server: pG, [11:14:11]CommunicateWithHost lk.salyk.kg:30040 [11:14:11]ConnectInit lk.salyk.kg [11:14:11]written 0, free lines is 4095 [11:14:11]Connected sock=9 [11:14:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 FA 07 01 59 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 03 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 20 02 00 35 04 06 00 76 9D BE 28 D3 FA 79 C1 BB D2 94 E1 B3 B5 [11:14:11]Write to MH i2c: 01 00 00 55 20 75 [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: 01 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: 01 07 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: 01 07 00 55 20 00 00 00 00 00 D2 0C 5A [11:14:11]RasterBufferAndPrint [11:14:11]line [11:14:11]line [11:14:11]line [11:14:11]line [11:14:11]line [11:14:11]written 0, free lines is 3289 [11:14: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 37 36 4F 00 00 00 7F 2E 47 00 4A B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 20 02 00 F4 03 04 00 9A CF C2 66 B6 04 01 00 00 26 A3 69 DE 3A FC 40 F4 [11:14:11]CommunicateWithHost err = 0 [11:14:11]CheckOFDResponse [11:14:11]1017 (14) - 77093643461234 [11:14:11]1041 (16) - 0000000000871776 [11:14:11]1040 (4) - 139270 [11:14:11]1012 (4) - 19.08.2024 04:52 [11:14:11]1206 (1) - 0 [11:14:11]OFD Sender: Remove packet 139270 [11:14:11]ProducePacketName [11:14:11]name=ofd_packets/00139270 [11:14:11]NVStorageDeleteData [11:14:11]MH_Cut [11:14:11]Write to MH i2c: D1 01 00 5C 20 01 4E [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: D1 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: D1 01 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: D1 01 00 5C 20 00 4D [11:14:11]Write to MH i2c: 01 00 00 5D 20 7D [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:12]OFD Sender: No OFD packet to send [11:14:12]*** Cut start [11:14:12]*** Partial cut [11:14:12]*** CUTSNS_PIN = 1 [11:14:12]*** CUTSNS_PIN = 0 [11:14:12]*** Brake cut motor [11:14:13]Read from MH i2c: 01 [11:14:13]MH_I2C_Read... [11:14:13]*** Stop cut motor [11:14:13]*** Cut end [11:14:13]Read from MH i2c: 01 07 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: 01 07 00 5D 20 00 00 00 00 00 FF 0F 92 [11:14:13]process_action close_receipt done [11:14:13]requested_data is exist [11:14:13]produce_requested_data [11:14:13]requested_item fm.sn is exist - process it [11:14:13]wFMCommunicate request_size=4 [11:14:13]MH_SAM_APDU [11:14:13]CAPDU: 80 11 00 00 [11:14:13]Write to MH i2c: E2 08 00 5E 20 80 11 00 00 00 00 00 00 F8 [11:14:13]Write i2c OK [11:14:13]MH_I2C_Read... [11:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:13]Read from MH i2c: E2 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 17 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 17 00 5E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [11:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:14:13]wFMCommunicate OK [11:14:13]requested_item fd.num is exist - process it [11:14:13]SAM_PROTO_GetFieldsCounters [11:14:13]wFMCommunicate request_size=4 [11:14:13]MH_SAM_APDU [11:14:13]CAPDU: 80 13 00 00 [11:14:13]Write to MH i2c: E2 08 00 5F 20 80 13 00 00 00 00 00 00 FB [11:14:13]Write i2c OK [11:14:13]MH_I2C_Read... [11:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:13]Read from MH i2c: E2 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 62 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 62 00 5F 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [11:14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:13]wFMCommunicate OK [11:14:13]SAM_PROTO_GetFieldsCounters done [11:14:13]requested_item shift.num is exist - process it [11:14:13]requested_item shift.opened is exist - process it [11:14:13]req_shift_opened [11:14:13]FM_GetShiftState [11:14:13]SAM_PROTO_GetShiftState [11:14:13]wFMCommunicate request_size=4 [11:14:13]MH_SAM_APDU [11:14:13]CAPDU: 80 13 01 00 [11:14:13]Write to MH i2c: E2 08 00 60 20 80 13 01 00 00 00 00 00 FD [11:14:13]Write i2c OK [11:14:13]MH_I2C_Read... [11:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:13]Read from MH i2c: E2 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 0E 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 0E 00 60 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B4 [11:14:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:14:13]wFMCommunicate OK [11:14:13]SAM_PROTO_GetShiftState done [11:14:13]FM_GetShiftState done [11:14:13]req_shift_opened done [11:14:13]requested_item shift.open_date is exist - process it [11:14:13]req_shift_open_date [11:14:13]req_shift_open_date done [11:14:13]produce_requested_data done [11:14:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139270,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:14:13]process_action_free close_receipt [11:14:13]json_value_free [11:14:13]json_value_free done [11:14:13]process_json_proto returns [11:14:13]Send response to host [11:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139270,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:14:13]free response buf [11:14:13]execute_script done [11:14:13]execute_script returns [11:14:13]free content buf [11:14:13]Sock 7.Close socket [11:14:13]Sock 7.Thread stoped [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:23]accept exits with 10 [11:15:23]New connection [11:15:23]New thread 3067059556 created [11:15:23]Thread 3067202916 joined [11:15:23]Waiting for new connection... [11:15:23] Sock 10.Parse request [11:15:23]Sock 10.Check first char [11:15:23]Sock 10.First char is OK [11:15:23]request: POST /json_proto HTTP/1.0 [11:15:23]Method: POST [11:15:23]URL: /json_proto [11:15:23]Method is POST - this is cgi request [11:15:23]url: /json_proto [11:15:23]query_string will be loaded in cgi processing [11:15:23]execute_cgi json_proto POST (null) [11:15:23]execute_cgi path=json_proto method=POST [11:15:23]POST find Content-Length [11:15:23]Host: 172.17.45.67:8080 [11:15:23]Content-Length: 682 [11:15:23]Content-Type: application/json [11:15:23] [11:15:23]POST finish read [11:15:23]Found Content-Length = 682 [11:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:15:23]execute_script... [11:15: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)593112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:15:23]POST & json_proto [11:15:23]process_json_proto [11:15:23]json parsed OK: [11:15:23]protocol is kg_v1.0 [11:15:23]action value=close_receipt [11:15:23]process_action close_receipt [11:15:23]cmd_close_receipt [11:15:23]MH_GetDate [11:15:23]Write to MH i2c: F0 00 00 61 20 70 [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: F0 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: F0 09 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: F0 09 00 61 20 00 4E 29 C3 66 5F 7F 2B 66 88 [11:15:23]GetLastDocTimeStamp 1724066051 [11:15:23]current date 1724066126 [11:15:23]FM_GetShiftState [11:15:23]SAM_PROTO_GetShiftState [11:15:23]wFMCommunicate request_size=4 [11:15:23]MH_SAM_APDU [11:15:23]CAPDU: 80 13 01 00 [11:15:23]Write to MH i2c: E2 08 00 62 20 80 13 01 00 00 00 00 00 FF [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:23]Read from MH i2c: E2 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 0E 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 0E 00 62 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B6 [11:15:23]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:15:23]wFMCommunicate OK [11:15:23]SAM_PROTO_GetShiftState done [11:15:23]FM_GetShiftState done [11:15:23]opened in 1724027888 [11:15:23]opened+sec_in_day 1724114288 [11:15:23]quantity*price = 100005 [11:15:23]sum+1 = 100006 [11:15:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 106 19.08.2024 11:15 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139271 ФПД: 60933269003696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111526&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139271&fm=60933269003696&tin=02508201610067®Number=0000000000092569&sum=100000 [11:15:24]StoreToDocumentArchive [11:15:24]shift 452 fd 139271 [11:15:24]save to /storage/0452/doc_00139271 [11:15:24]save last doc name /storage/0452/doc_00139271 to /storage/kkm_last_doc_name [11:15:24]save OK [11:15:24]Clear old archive folders... [11:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:24]tlvbuf is 01DC5290 [11:15:24]SAM_PROTO_ClearQueue [11:15:24]wFMCommunicate request_size=4 [11:15:24]MH_SAM_APDU [11:15:24]CAPDU: 80 09 00 00 [11:15:24]Write to MH i2c: E2 08 00 6F 20 80 09 00 00 00 00 00 00 01 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 6F 20 00 90 00 03 [11:15:24]RAPDU: 90 00 [11:15:24]wFMCommunicate OK [11:15:24]SAM_PROTO_ClearQueue done [11:15:24]KKMCreateOFDPacket [11:15:24]OFDProtocolAddRootSTLVToBuf [11:15:24]FM_MakeSignedData [11:15:24]FM_MakeSignedData [11:15:24]SAM_PROTO_SignData [11:15:24]wFMCommunicate request_size=4 [11:15:24]MH_SAM_APDU [11:15:24]CAPDU: 80 0D 01 02 [11:15:24]Write to MH i2c: E2 08 00 70 20 80 0D 01 02 00 00 00 00 09 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 70 20 00 90 00 04 [11:15:24]RAPDU: 90 00 [11:15:24]wFMCommunicate OK [11:15:24]wFMCommunicate request_size=255 [11:15:24]MH_SAM_APDU [11:15: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4E 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 20 02 00 35 04 06 00 37 [11:15:24]Write to MH i2c: E2 02 01 71 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4E 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 20 02 00 35 04 06 00 37 00 00 50 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 03 00 71 20 00 90 00 05 [11:15:24]RAPDU: 90 00 [11:15:24]wFMCommunicate OK [11:15:24]wFMCommunicate request_size=10 [11:15:24]MH_SAM_APDU [11:15:24]CAPDU: 80 0D 02 02 05 6B 21 DA 9D B0 [11:15:24]Write to MH i2c: E2 0D 00 72 20 80 0D 02 02 05 00 6B 21 DA 9D B0 00 00 C9 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:25]Read from MH i2c: E2 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 03 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 03 00 72 20 00 90 00 06 [11:15:25]RAPDU: 90 00 [11:15:25]wFMCommunicate OK [11:15:25]wFMCommunicate request_size=4 [11:15:25]MH_SAM_APDU [11:15:25]CAPDU: 80 0D 03 02 [11:15:25]Write to MH i2c: E2 08 00 73 20 80 0D 03 02 00 00 00 00 0E [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:25]Read from MH i2c: E2 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 0B 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 0B 00 73 20 00 AB 2A 5E B9 96 18 55 8B 90 00 89 [11:15:25]RAPDU: AB 2A 5E B9 96 18 55 8B 90 00 [11:15:25]wFMCommunicate OK [11:15:25]SAM_PROTO_SignData done [11:15:25]FM_MakeSignedData done [11:15:25]CreateOFDProtocolMessage [11:15:25]wFMCommunicate request_size=4 [11:15:25]MH_SAM_APDU [11:15:25]CAPDU: 80 11 00 00 [11:15:25]Write to MH i2c: E2 08 00 74 20 80 11 00 00 00 00 00 00 0E [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:25]Read from MH i2c: E2 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 17 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: E2 17 00 74 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 65 [11:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:15:25]wFMCommunicate OK [11:15:25]CreateOFDProtocolMessage done [11:15:25]OFDSenderStorePacket 139271 [11:15:25]StoreOFDPacket docnum=139271 [11:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 B1 07 01 9C 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4E 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 20 02 00 35 04 06 00 37 6B 21 DA 9D B0 AB 2A 5E B9 96 18 55 8B [11:15:25]CheckFolder [11:15:25]dirname=/storage/ofd_packets [11:15:25]CheckFolder done [11:15:25]ProducePacketName [11:15:25]name=ofd_packets/00139271 [11:15:25]NVStorageSaveData ofd_packets/00139271 [11:15:25]File name is /storage/ofd_packets/00139271 [11:15:25]Write 301 bytes [11:15:25]NVStorageSaveData done [11:15:25]OFDSenderStorePacket done [11:15:25]KKMCreateOFDPacket done [11:15:25]NVStorageSaveData kkm_last_timestamp [11:15:25]File name is /storage/kkm_last_timestamp [11:15:25]Write 4 bytes [11:15:25]NVStorageSaveData done [11:15:25]ExternCall_PrintAddStr [11:15:25]wPrintStart [11:15:25]Write to MH i2c: 01 00 00 75 20 95 [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 07 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 07 00 75 20 00 00 00 00 00 FF 0F AA [11:15:25]RasterBufferAndPrint [11:15:25]line Счет N : (1)593112 [11:15:25]line ИНН: 02508201610067 [11:15:25]line Контрольно-Кассовый Чек [11:15:25]line ПРОДАЖА [11:15:25]line ТРК (МРК, ГНК) : 62 [11:15:25]line Товар: 2710124130 [11:15:25]line Аи-92-К-5 [11:15:25]line 14.750 * 67.80 [11:15:25]line = 1000.05 [11:15:25]line НДС 12% НСП 1% [11:15:25]line > о реализуемом товаре [11:15:25]line ОКРУГЛЕНИЕ: -0.05 [11:15:25]line ИТОГО: 1000.00 [11:15:25]line Внесено: 1000.00 [11:15:25]line СДАЧА: 0.00 [11:15:25]line НСП 1% : 8.85 [11:15:25]line НДС 12% : 106.20 [11:15:25]line Наличными: 1000.00 [11:15:25]line Безнал.: 0.00 [11:15:25]line Место: АЗС № 136 "Партнер Нефть" [11:15:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:15:25]line СНО: Общий режим [11:15:25]line Чек 106 19.08.2024 11:15 [11:15:25]line Смена: 452 ФФД: 1.0 [11:15:25]line ЗНМ: 0300000067 [11:15:25]line РНМ: 0000000000092569 [11:15:25]line Версия ККМ: 001 [11:15:25]line ФМ: 0000000000871776 [11:15:25]line ФД: 139271 [11:15:25]line ФПД: 60933269003696 [11:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111526&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139271&fm=60933269003696&tin=02508201610067®Number=0000000000092569&sum=100000 [11:15:25]OFD Sender: Processing packet 139271 [packets to send 137, broken 136] [11:15:25]ProducePacketName [11:15:25]name=ofd_packets/00139271 [11:15:25]OFD Sender: To server: pG, [11:15:25]CommunicateWithHost lk.salyk.kg:30040 [11:15:25]ConnectInit lk.salyk.kg [11:15:25]written 0, free lines is 4095 [11:15:25]Connected sock=9 [11:15: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 37 36 0F 01 00 00 80 B1 07 01 9C 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4E 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 20 02 00 35 04 06 00 37 6B 21 DA 9D B0 AB 2A 5E B9 96 18 55 8B [11:15: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 37 36 4F 00 00 00 68 18 47 00 31 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 37 36 10 04 04 00 07 20 02 00 F4 03 04 00 E4 CF C2 66 B6 04 01 00 00 15 BC 68 22 25 62 2E 1C [11:15:25]CommunicateWithHost err = 0 [11:15:25]CheckOFDResponse [11:15:25]1017 (14) - 77093643461234 [11:15:25]1041 (16) - 0000000000871776 [11:15:25]1040 (4) - 139271 [11:15:25]1012 (4) - 19.08.2024 04:53 [11:15:25]1206 (1) - 0 [11:15:25]OFD Sender: Remove packet 139271 [11:15:25]ProducePacketName [11:15:25]name=ofd_packets/00139271 [11:15:25]NVStorageDeleteData [11:15:25]Write to MH i2c: 01 00 00 A0 20 C0 [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 07 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 07 00 A0 20 00 00 00 00 00 DC 0C AF [11:15:25]RasterBufferAndPrint [11:15:25]line [11:15:25]line [11:15:25]line [11:15:25]line [11:15:25]line [11:15:25]written 0, free lines is 3296 [11:15:25]MH_Cut [11:15:25]Write to MH i2c: D1 01 00 A7 20 01 99 [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: D1 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: D1 01 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: D1 01 00 A7 20 00 98 [11:15:25]Write to MH i2c: 01 00 00 A8 20 C8 [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:26]OFD Sender: No OFD packet to send [11:15:26]*** Cut start [11:15:26]*** Partial cut [11:15:26]*** CUTSNS_PIN = 1 [11:15:26]*** CUTSNS_PIN = 0 [11:15:26]*** Brake cut motor [11:15:27]Read from MH i2c: 01 [11:15:27]MH_I2C_Read... [11:15:27]*** Stop cut motor [11:15:27]*** Cut end [11:15:27]Read from MH i2c: 01 07 00 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: 01 07 00 A8 20 00 00 00 00 00 FF 0F DD [11:15:27]process_action close_receipt done [11:15:27]requested_data is exist [11:15:27]produce_requested_data [11:15:27]requested_item fm.sn is exist - process it [11:15:27]wFMCommunicate request_size=4 [11:15:27]MH_SAM_APDU [11:15:27]CAPDU: 80 11 00 00 [11:15:27]Write to MH i2c: E2 08 00 A9 20 80 11 00 00 00 00 00 00 43 [11:15:27]Write i2c OK [11:15:27]MH_I2C_Read... [11:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:27]Read from MH i2c: E2 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 17 00 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 17 00 A9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [11:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:15:27]wFMCommunicate OK [11:15:27]requested_item fd.num is exist - process it [11:15:27]SAM_PROTO_GetFieldsCounters [11:15:27]wFMCommunicate request_size=4 [11:15:27]MH_SAM_APDU [11:15:27]CAPDU: 80 13 00 00 [11:15:27]Write to MH i2c: E2 08 00 AA 20 80 13 00 00 00 00 00 00 46 [11:15:27]Write i2c OK [11:15:27]MH_I2C_Read... [11:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:27]Read from MH i2c: E2 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 62 00 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 62 00 AA 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [11:15:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:27]wFMCommunicate OK [11:15:27]SAM_PROTO_GetFieldsCounters done [11:15:27]requested_item shift.num is exist - process it [11:15:27]requested_item shift.opened is exist - process it [11:15:27]req_shift_opened [11:15:27]FM_GetShiftState [11:15:27]SAM_PROTO_GetShiftState [11:15:27]wFMCommunicate request_size=4 [11:15:27]MH_SAM_APDU [11:15:27]CAPDU: 80 13 01 00 [11:15:27]Write to MH i2c: E2 08 00 AB 20 80 13 01 00 00 00 00 00 48 [11:15:27]Write i2c OK [11:15:27]MH_I2C_Read... [11:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:27]Read from MH i2c: E2 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 0E 00 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 0E 00 AB 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FF [11:15:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:15:27]wFMCommunicate OK [11:15:27]SAM_PROTO_GetShiftState done [11:15:27]FM_GetShiftState done [11:15:27]req_shift_opened done [11:15:27]requested_item shift.open_date is exist - process it [11:15:27]req_shift_open_date [11:15:27]req_shift_open_date done [11:15:27]produce_requested_data done [11:15:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139271,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:15:27]process_action_free close_receipt [11:15:27]json_value_free [11:15:27]json_value_free done [11:15:27]process_json_proto returns [11:15:27]Send response to host [11:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139271,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:15:27]free response buf [11:15:27]execute_script done [11:15:27]execute_script returns [11:15:27]free content buf [11:15:27]Sock 10.Close socket [11:15:27]Sock 10.Thread stoped [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [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:42]accept exits with 7 [11:17:42]New connection [11:17:42]New thread 3067202916 created [11:17:42]Thread 3067059556 joined [11:17:42]Waiting for new connection... [11:17:42] Sock 7.Parse request [11:17:42]Sock 7.Check first char [11:17:42]Sock 7.First char is OK [11:17:42]request: POST /json_proto HTTP/1.0 [11:17:42]Method: POST [11:17:42]URL: /json_proto [11:17:42]Method is POST - this is cgi request [11:17:42]url: /json_proto [11:17:42]query_string will be loaded in cgi processing [11:17:42]execute_cgi json_proto POST (null) [11:17:42]execute_cgi path=json_proto method=POST [11:17:42]POST find Content-Length [11:17:42]Host: 172.17.45.67:8080 [11:17:42]Content-Length: 677 [11:17:42]Content-Type: application/json [11:17:42] [11:17:42]POST finish read [11:17:42]Found Content-Length = 677 [11:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [11:17:42]execute_script... [11:17: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)593113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [11:17:42]POST & json_proto [11:17:42]process_json_proto [11:17:42]json parsed OK: [11:17:42]protocol is kg_v1.0 [11:17:42]action value=close_receipt [11:17:42]process_action close_receipt [11:17:42]cmd_close_receipt [11:17:42]MH_GetDate [11:17:42]Write to MH i2c: F0 00 00 AC 20 BB [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: F0 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: F0 09 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: F0 09 00 AC 20 00 D8 29 C3 66 5F 7F 2B 66 5D [11:17:42]GetLastDocTimeStamp 1724066126 [11:17:42]current date 1724066264 [11:17:42]FM_GetShiftState [11:17:42]SAM_PROTO_GetShiftState [11:17:42]wFMCommunicate request_size=4 [11:17:42]MH_SAM_APDU [11:17:42]CAPDU: 80 13 01 00 [11:17:42]Write to MH i2c: E2 08 00 AD 20 80 13 01 00 00 00 00 00 4A [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:42]Read from MH i2c: E2 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 0E 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 0E 00 AD 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 01 [11:17:42]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:17:42]wFMCommunicate OK [11:17:42]SAM_PROTO_GetShiftState done [11:17:42]FM_GetShiftState done [11:17:42]opened in 1724027888 [11:17:42]opened+sec_in_day 1724114288 [11:17:42]quantity*price = 60003 [11:17:42]sum+1 = 60004 [11:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 107 19.08.2024 11:17 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139272 ФПД: 52515520684762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111744&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139272&fm=52515520684762&tin=02508201610067®Number=0000000000092569&sum=60000 [11:17:43]StoreToDocumentArchive [11:17:43]shift 452 fd 139272 [11:17:43]save to /storage/0452/doc_00139272 [11:17:43]save last doc name /storage/0452/doc_00139272 to /storage/kkm_last_doc_name [11:17:43]save OK [11:17:43]Clear old archive folders... [11:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:43]tlvbuf is B6EE51D0 [11:17:43]SAM_PROTO_ClearQueue [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 09 00 00 [11:17:43]Write to MH i2c: E2 08 00 BA 20 80 09 00 00 00 00 00 00 4C [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 BA 20 00 90 00 4E [11:17:43]RAPDU: 90 00 [11:17:43]wFMCommunicate OK [11:17:43]SAM_PROTO_ClearQueue done [11:17:43]KKMCreateOFDPacket [11:17:43]OFDProtocolAddRootSTLVToBuf [11:17:43]FM_MakeSignedData [11:17:43]FM_MakeSignedData [11:17:43]SAM_PROTO_SignData [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 0D 01 02 [11:17:43]Write to MH i2c: E2 08 00 BB 20 80 0D 01 02 00 00 00 00 54 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 BB 20 00 90 00 4F [11:17:43]RAPDU: 90 00 [11:17:43]wFMCommunicate OK [11:17:43]wFMCommunicate request_size=255 [11:17:43]MH_SAM_APDU [11:17: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6B 00 00 00 F4 03 04 00 D8 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 20 02 00 35 04 06 00 2F [11:17:43]Write to MH i2c: E2 02 01 BC 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6B 00 00 00 F4 03 04 00 D8 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 20 02 00 35 04 06 00 2F 00 00 57 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 BC 20 00 90 00 50 [11:17:43]RAPDU: 90 00 [11:17:43]wFMCommunicate OK [11:17:43]wFMCommunicate request_size=10 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 0D 02 02 05 C3 38 F4 A2 DA [11:17:43]Write to MH i2c: E2 0D 00 BD 20 80 0D 02 02 05 00 C3 38 F4 A2 DA 00 00 CC [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 03 00 BD 20 00 90 00 51 [11:17:43]RAPDU: 90 00 [11:17:43]wFMCommunicate OK [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 0D 03 02 [11:17:43]Write to MH i2c: E2 08 00 BE 20 80 0D 03 02 00 00 00 00 59 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 0B 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 0B 00 BE 20 00 2C 3F 1D B0 16 84 4B AF 90 00 26 [11:17:43]RAPDU: 2C 3F 1D B0 16 84 4B AF 90 00 [11:17:43]wFMCommunicate OK [11:17:43]SAM_PROTO_SignData done [11:17:43]FM_MakeSignedData done [11:17:43]CreateOFDProtocolMessage [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 11 00 00 [11:17:43]Write to MH i2c: E2 08 00 BF 20 80 11 00 00 00 00 00 00 59 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 17 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 17 00 BF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B0 [11:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:17:43]wFMCommunicate OK [11:17:43]CreateOFDProtocolMessage done [11:17:43]OFDSenderStorePacket 139272 [11:17:43]StoreOFDPacket docnum=139272 [11:17:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 75 C6 07 01 21 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6B 00 00 00 F4 03 04 00 D8 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 20 02 00 35 04 06 00 2F C3 38 F4 A2 DA 2C 3F 1D B0 16 84 4B AF [11:17:43]CheckFolder [11:17:43]dirname=/storage/ofd_packets [11:17:43]CheckFolder done [11:17:43]ProducePacketName [11:17:43]name=ofd_packets/00139272 [11:17:43]NVStorageSaveData ofd_packets/00139272 [11:17:43]File name is /storage/ofd_packets/00139272 [11:17:43]Write 301 bytes [11:17:43]NVStorageSaveData done [11:17:43]OFDSenderStorePacket done [11:17:43]KKMCreateOFDPacket done [11:17:43]NVStorageSaveData kkm_last_timestamp [11:17:43]File name is /storage/kkm_last_timestamp [11:17:43]Write 4 bytes [11:17:43]NVStorageSaveData done [11:17:43]ExternCall_PrintAddStr [11:17:43]wPrintStart [11:17:43]Write to MH i2c: 01 00 00 C0 20 E0 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 07 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 07 00 C0 20 00 00 00 00 00 FF 0F F5 [11:17:43]RasterBufferAndPrint [11:17:43]line Счет N : (1)593113 [11:17:43]line ИНН: 02508201610067 [11:17:43]line Контрольно-Кассовый Чек [11:17:43]line ПРОДАЖА [11:17:43]line ТРК (МРК, ГНК) : 52 [11:17:43]line Товар: 2710124130 [11:17:43]line Аи-92-К-5 [11:17:43]line 8.850 * 67.80 [11:17:43]line = 600.03 [11:17:43]line НДС 12% НСП 1% [11:17:43]line > о реализуемом товаре [11:17:43]line ОКРУГЛЕНИЕ: -0.03 [11:17:43]line ИТОГО: 600.00 [11:17:43]line Внесено: 600.00 [11:17:43]line СДАЧА: 0.00 [11:17:43]line НСП 1% : 5.31 [11:17:43]line НДС 12% : 63.72 [11:17:43]line Наличными: 600.00 [11:17:43]line Безнал.: 0.00 [11:17:43]line Место: АЗС № 136 "Партнер Нефть" [11:17:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:17:43]line СНО: Общий режим [11:17:43]line Чек 107 19.08.2024 11:17 [11:17:43]line Смена: 452 ФФД: 1.0 [11:17:43]line ЗНМ: 0300000067 [11:17:43]line РНМ: 0000000000092569 [11:17:43]line Версия ККМ: 001 [11:17:43]line ФМ: 0000000000871776 [11:17:43]line ФД: 139272 [11:17:43]line ФПД: 52515520684762 [11:17:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111744&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139272&fm=52515520684762&tin=02508201610067®Number=0000000000092569&sum=60000 [11:17:43]written 0, free lines is 4095 [11:17:44]OFD Sender: Processing packet 139272 [packets to send 137, broken 136] [11:17:44]ProducePacketName [11:17:44]name=ofd_packets/00139272 [11:17:44]OFD Sender: To server: pG, [11:17:44]CommunicateWithHost lk.salyk.kg:30040 [11:17:44]ConnectInit lk.salyk.kg [11:17:44]Connected sock=11 [11:17: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 37 36 0F 01 00 00 75 C6 07 01 21 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 6B 00 00 00 F4 03 04 00 D8 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 20 02 00 35 04 06 00 2F C3 38 F4 A2 DA 2C 3F 1D B0 16 84 4B AF [11:17:44]Write to MH i2c: 01 00 00 EB 20 0B [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: 01 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: 01 07 00 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: 01 07 00 EB 20 00 00 00 00 00 D0 0C EE [11:17:44]RasterBufferAndPrint [11:17:44]line [11:17:44]line [11:17:44]line [11:17:44]line [11:17:44]line [11:17:44]written 0, free lines is 3287 [11:17:44]MH_Cut [11:17:44]Write to MH i2c: D1 01 00 F2 20 01 E4 [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: D1 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: D1 01 00 [11:17:44]MH_I2C_Read... [11:17:44]Read from MH i2c: D1 01 00 F2 20 00 E3 [11:17:44]Write to MH i2c: 01 00 00 F3 20 13 [11:17:44]Write i2c OK [11:17:44]MH_I2C_Read... [11:17: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 37 36 4F 00 00 00 90 7C 47 00 DB 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 37 36 10 04 04 00 08 20 02 00 F4 03 04 00 6E D0 C2 66 B6 04 01 00 00 1D 4C 94 F3 00 9C 85 E8 [11:17:44]CommunicateWithHost err = 0 [11:17:44]CheckOFDResponse [11:17:44]1017 (14) - 77093643461234 [11:17:44]1041 (16) - 0000000000871776 [11:17:44]1040 (4) - 139272 [11:17:44]1012 (4) - 19.08.2024 04:56 [11:17:44]1206 (1) - 0 [11:17:44]OFD Sender: Remove packet 139272 [11:17:44]ProducePacketName [11:17:44]name=ofd_packets/00139272 [11:17:44]NVStorageDeleteData [11:17:44]OFD Sender: No OFD packet to send [11:17:45]*** Cut start [11:17:45]*** Partial cut [11:17:45]*** CUTSNS_PIN = 1 [11:17:45]*** CUTSNS_PIN = 0 [11:17:45]*** Brake cut motor [11:17:45]Read from MH i2c: 01 [11:17:45]MH_I2C_Read... [11:17:45]*** Stop cut motor [11:17:45]*** Cut end [11:17:45]Read from MH i2c: 01 07 00 [11:17:45]MH_I2C_Read... [11:17:45]Read from MH i2c: 01 07 00 F3 20 00 00 00 00 00 FF 0F 28 [11:17:45]process_action close_receipt done [11:17:45]requested_data is exist [11:17:45]produce_requested_data [11:17:45]requested_item fm.sn is exist - process it [11:17:45]wFMCommunicate request_size=4 [11:17:45]MH_SAM_APDU [11:17:45]CAPDU: 80 11 00 00 [11:17:45]Write to MH i2c: E2 08 00 F4 20 80 11 00 00 00 00 00 00 8E [11:17:45]Write i2c OK [11:17:45]MH_I2C_Read... [11:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:45]Read from MH i2c: E2 [11:17:45]MH_I2C_Read... [11:17:45]Read from MH i2c: E2 17 00 [11:17:45]MH_I2C_Read... [11:17:45]Read from MH i2c: E2 17 00 F4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E5 [11:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:17:45]wFMCommunicate OK [11:17:45]requested_item fd.num is exist - process it [11:17:45]SAM_PROTO_GetFieldsCounters [11:17:45]wFMCommunicate request_size=4 [11:17:45]MH_SAM_APDU [11:17:45]CAPDU: 80 13 00 00 [11:17:45]Write to MH i2c: E2 08 00 F5 20 80 13 00 00 00 00 00 00 91 [11:17:45]Write i2c OK [11:17:45]MH_I2C_Read... [11:17:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:45]Read from MH i2c: E2 [11:17:45]MH_I2C_Read... [11:17:45]Read from MH i2c: E2 62 00 [11:17:45]MH_I2C_Read... [11:17:45]Read from MH i2c: E2 62 00 F5 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [11:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:45]wFMCommunicate OK [11:17:45]SAM_PROTO_GetFieldsCounters done [11:17:45]requested_item shift.num is exist - process it [11:17:45]requested_item shift.opened is exist - process it [11:17:45]req_shift_opened [11:17:45]FM_GetShiftState [11:17:45]SAM_PROTO_GetShiftState [11:17:45]wFMCommunicate request_size=4 [11:17:45]MH_SAM_APDU [11:17:45]CAPDU: 80 13 01 00 [11:17:45]Write to MH i2c: E2 08 00 F6 20 80 13 01 00 00 00 00 00 93 [11:17:45]Write i2c OK [11:17:45]MH_I2C_Read... [11:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:46]Read from MH i2c: E2 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 0E 00 [11:17:46]MH_I2C_Read... [11:17:46]Read from MH i2c: E2 0E 00 F6 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4A [11:17:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:17:46]wFMCommunicate OK [11:17:46]SAM_PROTO_GetShiftState done [11:17:46]FM_GetShiftState done [11:17:46]req_shift_opened done [11:17:46]requested_item shift.open_date is exist - process it [11:17:46]req_shift_open_date [11:17:46]req_shift_open_date done [11:17:46]produce_requested_data done [11:17:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139272,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:17:46]process_action_free close_receipt [11:17:46]json_value_free [11:17:46]json_value_free done [11:17:46]process_json_proto returns [11:17:46]Send response to host [11:17:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139272,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:17:46]free response buf [11:17:46]execute_script done [11:17:46]execute_script returns [11:17:46]free content buf [11:17:46]Sock 7.Close socket [11:17:46]Sock 7.Thread stoped [11:17:50]OFD Sender: No OFD packet to send [11:17:52]accept exits with 9 [11:17:52]New connection [11:17:52]New thread 3067059556 created [11:17:52]Thread 3067202916 joined [11:17:52]Waiting for new connection... [11:17:52] Sock 9.Parse request [11:17:52]Sock 9.Check first char [11:17:52]Sock 9.First char is OK [11:17:52]request: POST /json_proto HTTP/1.0 [11:17:52]Method: POST [11:17:52]URL: /json_proto [11:17:52]Method is POST - this is cgi request [11:17:52]url: /json_proto [11:17:52]query_string will be loaded in cgi processing [11:17:52]execute_cgi json_proto POST (null) [11:17:52]execute_cgi path=json_proto method=POST [11:17:52]POST find Content-Length [11:17:52]Host: 172.17.45.67:8080 [11:17:52]Content-Length: 759 [11:17:52]Content-Type: application/json [11:17:52] [11:17:52]POST finish read [11:17:52]Found Content-Length = 759 [11:17:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:52]execute_script... [11:17: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)593114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:52]POST & json_proto [11:17:52]process_json_proto [11:17:52]json parsed OK: [11:17:52]protocol is kg_v1.0 [11:17:52]action value=close_receipt [11:17:52]process_action close_receipt [11:17:52]cmd_close_receipt [11:17:52]MH_GetDate [11:17:52]Write to MH i2c: F0 00 00 F7 20 06 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: F0 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: F0 09 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: F0 09 00 F7 20 00 E3 29 C3 66 5F 7F 2B 66 B3 [11:17:52]GetLastDocTimeStamp 1724066264 [11:17:52]current date 1724066275 [11:17:52]FM_GetShiftState [11:17:52]SAM_PROTO_GetShiftState [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 13 01 00 [11:17:52]Write to MH i2c: E2 08 00 F8 20 80 13 01 00 00 00 00 00 95 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 0E 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 0E 00 F8 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4C [11:17:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:17:52]wFMCommunicate OK [11:17:52]SAM_PROTO_GetShiftState done [11:17:52]FM_GetShiftState done [11:17:52]opened in 1724027888 [11:17:52]opened+sec_in_day 1724114288 [11:17:52]quantity*price = 0 [11:17:52]sum+1 = 1 [11:17:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 108 19.08.2024 11:17 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104832 ФМ: 0000000000871776 ФД: 139273 ФПД: 143277695844906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111755&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139273&fm=143277695844906&tin=02508201610067®Number=0000000000092569&sum=0 [11:17:53]StoreToDocumentArchive [11:17:53]shift 452 fd 139273 [11:17:53]save to /storage/0452/doc_00139273 [11:17:53]save last doc name /storage/0452/doc_00139273 to /storage/kkm_last_doc_name [11:17:53]save OK [11:17:53]Clear old archive folders... [11:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:17:53]tlvbuf is 01E55D50 [11:17:53]SAM_PROTO_ClearQueue [11:17:53]wFMCommunicate request_size=4 [11:17:53]MH_SAM_APDU [11:17:53]CAPDU: 80 09 00 00 [11:17:53]Write to MH i2c: E2 08 00 05 21 80 09 00 00 00 00 00 00 98 [11:17:53]Write i2c OK [11:17:53]MH_I2C_Read... [11:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:53]Read from MH i2c: E2 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 03 00 [11:17:53]MH_I2C_Read... [11:17:53]Read from MH i2c: E2 03 00 05 21 00 90 00 9A [11:17:53]RAPDU: 90 00 [11:17:53]wFMCommunicate OK [11:17:53]SAM_PROTO_ClearQueue done [11:17:53]KKMCreateOFDPacket [11:17:53]OFDProtocolAddRootSTLVToBuf [11:17:53]FM_MakeSignedData [11:17:53]FM_MakeSignedData [11:17:53]SAM_PROTO_SignData [11:17:53]wFMCommunicate request_size=4 [11:17:53]MH_SAM_APDU [11:17:53]CAPDU: 80 0D 01 02 [11:17:53]Write to MH i2c: E2 08 00 06 21 80 0D 01 02 00 00 00 00 A0 [11:17:53]Write i2c OK [11:17:53]MH_I2C_Read... [11:17:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:54]Read from MH i2c: E2 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 03 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 03 00 06 21 00 90 00 9B [11:17:54]RAPDU: 90 00 [11:17:54]wFMCommunicate OK [11:17:54]wFMCommunicate request_size=255 [11:17:54]MH_SAM_APDU [11:17:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 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 6C 00 00 00 F4 03 04 00 E3 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 20 02 00 35 04 06 00 [11:17:54]Write to MH i2c: E2 02 01 07 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 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 6C 00 00 00 F4 03 04 00 E3 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 20 02 00 35 04 06 00 00 00 25 [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:54]Read from MH i2c: E2 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 03 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 03 00 07 21 00 90 00 9C [11:17:54]RAPDU: 90 00 [11:17:54]wFMCommunicate OK [11:17:54]wFMCommunicate request_size=11 [11:17:54]MH_SAM_APDU [11:17:54]CAPDU: 80 0D 02 02 06 82 4F 70 2A 42 2A [11:17:54]Write to MH i2c: E2 0E 00 08 21 80 0D 02 02 06 00 82 4F 70 2A 42 2A 00 00 86 [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:54]Read from MH i2c: E2 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 03 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 03 00 08 21 00 90 00 9D [11:17:54]RAPDU: 90 00 [11:17:54]wFMCommunicate OK [11:17:54]wFMCommunicate request_size=4 [11:17:54]MH_SAM_APDU [11:17:54]CAPDU: 80 0D 03 02 [11:17:54]Write to MH i2c: E2 08 00 09 21 80 0D 03 02 00 00 00 00 A5 [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:54]Read from MH i2c: E2 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 0B 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 0B 00 09 21 00 2B B4 EF 8B 19 B6 0C BD 90 00 97 [11:17:54]RAPDU: 2B B4 EF 8B 19 B6 0C BD 90 00 [11:17:54]wFMCommunicate OK [11:17:54]SAM_PROTO_SignData done [11:17:54]FM_MakeSignedData done [11:17:54]CreateOFDProtocolMessage [11:17:54]wFMCommunicate request_size=4 [11:17:54]MH_SAM_APDU [11:17:54]CAPDU: 80 11 00 00 [11:17:54]Write to MH i2c: E2 08 00 0A 21 80 11 00 00 00 00 00 00 A5 [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:54]Read from MH i2c: E2 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 17 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: E2 17 00 0A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FC [11:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:17:54]wFMCommunicate OK [11:17:54]CreateOFDProtocolMessage done [11:17:54]OFDSenderStorePacket 139273 [11:17:54]StoreOFDPacket docnum=139273 [11:17:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 3A 3F 08 01 22 85 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 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 6C 00 00 00 F4 03 04 00 E3 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 20 02 00 35 04 06 00 82 4F 70 2A 42 2A 2B B4 EF 8B 19 B6 0C BD [11:17:54]CheckFolder [11:17:54]dirname=/storage/ofd_packets [11:17:54]CheckFolder done [11:17:54]ProducePacketName [11:17:54]name=ofd_packets/00139273 [11:17:54]NVStorageSaveData ofd_packets/00139273 [11:17:54]File name is /storage/ofd_packets/00139273 [11:17:54]Write 302 bytes [11:17:54]NVStorageSaveData done [11:17:54]OFDSenderStorePacket done [11:17:54]KKMCreateOFDPacket done [11:17:54]NVStorageSaveData kkm_last_timestamp [11:17:54]File name is /storage/kkm_last_timestamp [11:17:54]Write 4 bytes [11:17:54]NVStorageSaveData done [11:17:54]ExternCall_PrintAddStr [11:17:54]wPrintStart [11:17:54]Write to MH i2c: 01 00 00 0B 21 2C [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: 01 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: 01 07 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: 01 07 00 0B 21 00 00 00 00 00 FF 0F 41 [11:17:54]RasterBufferAndPrint [11:17:54]line Счет N : (1)593114 [11:17:54]line ИНН: 02508201610067 [11:17:54]line Контрольно-Кассовый Чек [11:17:54]line ПРОДАЖА [11:17:54]line ТРК (МРК, ГНК) : 34 [11:17:54]line Товар: 2710194210 [11:17:54]line ДТ(л)-К-5 [11:17:54]line 30.000 * 0.00 [11:17:54]line = 0.00 [11:17:54]line НДС 12% НСП 1% [11:17:54]line > о реализуемом товаре [11:17:54]line ИТОГО: 0.00 [11:17:54]line НСП 1% : 0.00 [11:17:54]line НДС 12% : 0.00 [11:17:54]line Наличными: 0.00 [11:17:54]line Безнал.: 0.00 [11:17:54]line Место: АЗС № 136 "Партнер Нефть" [11:17:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:17:54]line СНО: Общий режим [11:17:54]line Чек 108 19.08.2024 11:17 [11:17:54]line Смена: 452 ФФД: 1.0 [11:17:54]line ЗНМ: 0300000067 [11:17:54]line РНМ: 0000000000092569 [11:17:54]line Версия ККМ: 001 [11:17:54]line Талоны: ТК ГПНА Online [11:17:54]line 30104832 [11:17:54]line ФМ: 0000000000871776 [11:17:54]line ФД: 139273 [11:17:54]line ФПД: 143277695844906 [11:17:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111755&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139273&fm=143277695844906&tin=02508201610067®Number=0000000000092569&sum=0 [11:17:54]written 0, free lines is 4095 [11:17:54]OFD Sender: Processing packet 139273 [packets to send 137, broken 136] [11:17:54]ProducePacketName [11:17:54]name=ofd_packets/00139273 [11:17:54]OFD Sender: To server: pG, [11:17:54]CommunicateWithHost lk.salyk.kg:30040 [11:17:54]ConnectInit lk.salyk.kg [11:17:54]Connected sock=10 [11:17: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 37 36 10 01 00 00 3A 3F 08 01 22 85 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 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 6C 00 00 00 F4 03 04 00 E3 29 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 20 02 00 35 04 06 00 82 4F 70 2A 42 2A 2B B4 EF 8B 19 B6 0C BD [11:17:54]Write to MH i2c: 01 00 00 35 21 56 [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: 01 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: 01 07 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: 01 07 00 35 21 00 00 00 00 00 F3 0C 5C [11:17:54]RasterBufferAndPrint [11:17:54]line [11:17:54]line [11:17:54]line [11:17:54]line [11:17:54]line [11:17: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 37 36 4F 00 00 00 97 6F 47 00 03 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 37 36 10 04 04 00 09 20 02 00 F4 03 04 00 79 D0 C2 66 B6 04 01 00 00 1A 0C 21 D5 F6 BD 8F EA [11:17:54]CommunicateWithHost err = 0 [11:17:54]CheckOFDResponse [11:17:54]1017 (14) - 77093643461234 [11:17:54]1041 (16) - 0000000000871776 [11:17:54]1040 (4) - 139273 [11:17:54]1012 (4) - 19.08.2024 04:56 [11:17:54]1206 (1) - 0 [11:17:54]OFD Sender: Remove packet 139273 [11:17:54]ProducePacketName [11:17:54]name=ofd_packets/00139273 [11:17:54]NVStorageDeleteData [11:17:54]written 0, free lines is 3340 [11:17:54]MH_Cut [11:17:54]Write to MH i2c: D1 01 00 3C 21 01 2F [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: D1 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: D1 01 00 [11:17:54]MH_I2C_Read... [11:17:54]Read from MH i2c: D1 01 00 3C 21 00 2E [11:17:54]Write to MH i2c: 01 00 00 3D 21 5E [11:17:54]Write i2c OK [11:17:54]MH_I2C_Read... [11:17:55]OFD Sender: No OFD packet to send [11:17:55]*** Cut start [11:17:55]*** Partial cut [11:17:55]*** CUTSNS_PIN = 1 [11:17:55]*** CUTSNS_PIN = 0 [11:17:55]*** Brake cut motor [11:17:56]Read from MH i2c: 01 [11:17:56]MH_I2C_Read... [11:17:56]*** Stop cut motor [11:17:56]*** Cut end [11:17:56]Read from MH i2c: 01 07 00 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: 01 07 00 3D 21 00 00 00 00 00 FF 0F 73 [11:17:56]process_action close_receipt done [11:17:56]requested_data is exist [11:17:56]produce_requested_data [11:17:56]requested_item fm.sn is exist - process it [11:17:56]wFMCommunicate request_size=4 [11:17:56]MH_SAM_APDU [11:17:56]CAPDU: 80 11 00 00 [11:17:56]Write to MH i2c: E2 08 00 3E 21 80 11 00 00 00 00 00 00 D9 [11:17:56]Write i2c OK [11:17:56]MH_I2C_Read... [11:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:56]Read from MH i2c: E2 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 17 00 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 17 00 3E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 30 [11:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:17:56]wFMCommunicate OK [11:17:56]requested_item fd.num is exist - process it [11:17:56]SAM_PROTO_GetFieldsCounters [11:17:56]wFMCommunicate request_size=4 [11:17:56]MH_SAM_APDU [11:17:56]CAPDU: 80 13 00 00 [11:17:56]Write to MH i2c: E2 08 00 3F 21 80 13 00 00 00 00 00 00 DC [11:17:56]Write i2c OK [11:17:56]MH_I2C_Read... [11:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:56]Read from MH i2c: E2 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 62 00 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 62 00 3F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [11:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:56]wFMCommunicate OK [11:17:56]SAM_PROTO_GetFieldsCounters done [11:17:56]requested_item shift.num is exist - process it [11:17:56]requested_item shift.opened is exist - process it [11:17:56]req_shift_opened [11:17:56]FM_GetShiftState [11:17:56]SAM_PROTO_GetShiftState [11:17:56]wFMCommunicate request_size=4 [11:17:56]MH_SAM_APDU [11:17:56]CAPDU: 80 13 01 00 [11:17:56]Write to MH i2c: E2 08 00 40 21 80 13 01 00 00 00 00 00 DE [11:17:56]Write i2c OK [11:17:56]MH_I2C_Read... [11:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:56]Read from MH i2c: E2 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 0E 00 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 0E 00 40 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 95 [11:17:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:17:56]wFMCommunicate OK [11:17:56]SAM_PROTO_GetShiftState done [11:17:56]FM_GetShiftState done [11:17:56]req_shift_opened done [11:17:56]requested_item shift.open_date is exist - process it [11:17:56]req_shift_open_date [11:17:56]req_shift_open_date done [11:17:56]produce_requested_data done [11:17:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139273,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:17:56]process_action_free close_receipt [11:17:56]json_value_free [11:17:56]json_value_free done [11:17:56]process_json_proto returns [11:17:56]Send response to host [11:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139273,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:17:56]free response buf [11:17:56]execute_script done [11:17:56]execute_script returns [11:17:56]free content buf [11:17:56]Sock 9.Close socket [11:17:56]Sock 9.Thread stoped [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:16]accept exits with 7 [11:19:16]New connection [11:19:16]New thread 3067202916 created [11:19:16] Sock 7.Parse request [11:19:16]Thread 3067059556 joined [11:19:16]Sock 7.Check first char [11:19:16]Waiting for new connection... [11:19:16]Sock 7.First char is OK [11:19:16]request: POST /json_proto HTTP/1.0 [11:19:16]Method: POST [11:19:16]URL: /json_proto [11:19:16]Method is POST - this is cgi request [11:19:16]url: /json_proto [11:19:16]query_string will be loaded in cgi processing [11:19:16]execute_cgi json_proto POST (null) [11:19:16]execute_cgi path=json_proto method=POST [11:19:16]POST find Content-Length [11:19:16]Host: 172.17.45.67:8080 [11:19:16]Content-Length: 682 [11:19:16]Content-Type: application/json [11:19:16] [11:19:16]POST finish read [11:19:16]Found Content-Length = 682 [11:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:16]execute_script... [11:19: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)593115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:16]POST & json_proto [11:19:16]process_json_proto [11:19:16]json parsed OK: [11:19:16]protocol is kg_v1.0 [11:19:16]action value=close_receipt [11:19:16]process_action close_receipt [11:19:16]cmd_close_receipt [11:19:16]MH_GetDate [11:19:16]Write to MH i2c: F0 00 00 41 21 51 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: F0 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: F0 09 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: F0 09 00 41 21 00 37 2A C3 66 5F 7F 2B 66 53 [11:19:16]GetLastDocTimeStamp 1724066275 [11:19:16]current date 1724066359 [11:19:16]FM_GetShiftState [11:19:16]SAM_PROTO_GetShiftState [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 13 01 00 [11:19:16]Write to MH i2c: E2 08 00 42 21 80 13 01 00 00 00 00 00 E0 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 0E 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 0E 00 42 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 97 [11:19:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:19:16]wFMCommunicate OK [11:19:16]SAM_PROTO_GetShiftState done [11:19:16]FM_GetShiftState done [11:19:16]opened in 1724027888 [11:19:16]opened+sec_in_day 1724114288 [11:19:16]quantity*price = 100021 [11:19:16]sum+1 = 100023 [11:19:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 109 19.08.2024 11:19 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139274 ФПД: 60799204717864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111919&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139274&fm=60799204717864&tin=02508201610067®Number=0000000000092569&sum=100000 [11:19:17]StoreToDocumentArchive [11:19:17]shift 452 fd 139274 [11:19:17]save to /storage/0452/doc_00139274 [11:19:17]save last doc name /storage/0452/doc_00139274 to /storage/kkm_last_doc_name [11:19:17]save OK [11:19:17]Clear old archive folders... [11:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:17]tlvbuf is 01DACCD0 [11:19:17]SAM_PROTO_ClearQueue [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 09 00 00 [11:19:17]Write to MH i2c: E2 08 00 4F 21 80 09 00 00 00 00 00 00 E2 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 4F 21 00 90 00 E4 [11:19:17]RAPDU: 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_ClearQueue done [11:19:17]KKMCreateOFDPacket [11:19:17]OFDProtocolAddRootSTLVToBuf [11:19:17]FM_MakeSignedData [11:19:17]FM_MakeSignedData [11:19:17]SAM_PROTO_SignData [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 0D 01 02 [11:19:17]Write to MH i2c: E2 08 00 50 21 80 0D 01 02 00 00 00 00 EA [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:18]Read from MH i2c: E2 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 03 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 03 00 50 21 00 90 00 E5 [11:19:18]RAPDU: 90 00 [11:19:18]wFMCommunicate OK [11:19:18]wFMCommunicate request_size=255 [11:19:18]MH_SAM_APDU [11:19:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 37 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 20 02 00 35 04 06 00 37 [11:19:18]Write to MH i2c: E2 02 01 51 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 37 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 20 02 00 35 04 06 00 37 00 00 BF [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:18]Read from MH i2c: E2 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 03 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 03 00 51 21 00 90 00 E6 [11:19:18]RAPDU: 90 00 [11:19:18]wFMCommunicate OK [11:19:18]wFMCommunicate request_size=10 [11:19:18]MH_SAM_APDU [11:19:18]CAPDU: 80 0D 02 02 05 4B EA FF F5 28 [11:19:18]Write to MH i2c: E2 0D 00 52 21 80 0D 02 02 05 00 4B EA FF F5 28 00 00 48 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:18]Read from MH i2c: E2 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 03 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 03 00 52 21 00 90 00 E7 [11:19:18]RAPDU: 90 00 [11:19:18]wFMCommunicate OK [11:19:18]wFMCommunicate request_size=4 [11:19:18]MH_SAM_APDU [11:19:18]CAPDU: 80 0D 03 02 [11:19:18]Write to MH i2c: E2 08 00 53 21 80 0D 03 02 00 00 00 00 EF [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:18]Read from MH i2c: E2 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 0B 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 0B 00 53 21 00 6F 1F 94 FE 17 6E 4C 4F 90 00 30 [11:19:18]RAPDU: 6F 1F 94 FE 17 6E 4C 4F 90 00 [11:19:18]wFMCommunicate OK [11:19:18]SAM_PROTO_SignData done [11:19:18]FM_MakeSignedData done [11:19:18]CreateOFDProtocolMessage [11:19:18]wFMCommunicate request_size=4 [11:19:18]MH_SAM_APDU [11:19:18]CAPDU: 80 11 00 00 [11:19:18]Write to MH i2c: E2 08 00 54 21 80 11 00 00 00 00 00 00 EF [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:18]Read from MH i2c: E2 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 17 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 17 00 54 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 46 [11:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:19:18]wFMCommunicate OK [11:19:18]CreateOFDProtocolMessage done [11:19:18]OFDSenderStorePacket 139274 [11:19:18]StoreOFDPacket docnum=139274 [11:19:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C2 21 07 01 08 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 37 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 20 02 00 35 04 06 00 37 4B EA FF F5 28 6F 1F 94 FE 17 6E 4C 4F [11:19:18]CheckFolder [11:19:18]dirname=/storage/ofd_packets [11:19:18]CheckFolder done [11:19:18]ProducePacketName [11:19:18]name=ofd_packets/00139274 [11:19:18]NVStorageSaveData ofd_packets/00139274 [11:19:18]File name is /storage/ofd_packets/00139274 [11:19:18]Write 301 bytes [11:19:18]NVStorageSaveData done [11:19:18]OFDSenderStorePacket done [11:19:18]KKMCreateOFDPacket done [11:19:18]NVStorageSaveData kkm_last_timestamp [11:19:18]File name is /storage/kkm_last_timestamp [11:19:18]Write 4 bytes [11:19:18]NVStorageSaveData done [11:19:18]ExternCall_PrintAddStr [11:19:18]wPrintStart [11:19:18]Write to MH i2c: 01 00 00 55 21 76 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 07 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 07 00 55 21 00 00 00 00 00 FF 0F 8B [11:19:18]RasterBufferAndPrint [11:19:18]line Счет N : (1)593115 [11:19:18]line ИНН: 02508201610067 [11:19:18]line Контрольно-Кассовый Чек [11:19:18]line ПРОДАЖА [11:19:18]line ТРК (МРК, ГНК) : 41 [11:19:18]line Товар: 2710124500 [11:19:18]line Аи-95-К-5 [11:19:18]line 13.480 * 74.20 [11:19:18]line = 1000.22 [11:19:18]line НДС 12% НСП 1% [11:19:18]line > о реализуемом товаре [11:19:18]line ОКРУГЛЕНИЕ: -0.22 [11:19:18]line ИТОГО: 1000.00 [11:19:18]line Внесено: 1000.00 [11:19:18]line СДАЧА: 0.00 [11:19:18]line НСП 1% : 8.85 [11:19:18]line НДС 12% : 106.22 [11:19:18]line Наличными: 1000.00 [11:19:18]line Безнал.: 0.00 [11:19:18]line Место: АЗС № 136 "Партнер Нефть" [11:19:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:19:18]line СНО: Общий режим [11:19:18]line Чек 109 19.08.2024 11:19 [11:19:18]line Смена: 452 ФФД: 1.0 [11:19:18]line ЗНМ: 0300000067 [11:19:18]line РНМ: 0000000000092569 [11:19:18]line Версия ККМ: 001 [11:19:18]line ФМ: 0000000000871776 [11:19:18]line ФД: 139274 [11:19:18]line ФПД: 60799204717864 [11:19:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111919&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139274&fm=60799204717864&tin=02508201610067®Number=0000000000092569&sum=100000 [11:19:18]OFD Sender: Processing packet 139274 [packets to send 137, broken 136] [11:19:18]ProducePacketName [11:19:18]name=ofd_packets/00139274 [11:19:18]OFD Sender: To server: pG, [11:19:18]CommunicateWithHost lk.salyk.kg:30040 [11:19:18]ConnectInit lk.salyk.kg [11:19:18]written 0, free lines is 4095 [11:19:18]Connected sock=10 [11:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C2 21 07 01 08 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 37 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 20 02 00 35 04 06 00 37 4B EA FF F5 28 6F 1F 94 FE 17 6E 4C 4F [11:19: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 37 36 4F 00 00 00 FB 8E 47 00 A7 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 37 36 10 04 04 00 0A 20 02 00 F4 03 04 00 CD D0 C2 66 B6 04 01 00 00 C5 11 6B 03 E4 5F 70 7A [11:19:19]CommunicateWithHost err = 0 [11:19:19]CheckOFDResponse [11:19:19]1017 (14) - 77093643461234 [11:19:19]1041 (16) - 0000000000871776 [11:19:19]1040 (4) - 139274 [11:19:19]1012 (4) - 19.08.2024 04:57 [11:19:19]1206 (1) - 0 [11:19:19]OFD Sender: Remove packet 139274 [11:19:19]ProducePacketName [11:19:19]name=ofd_packets/00139274 [11:19:19]NVStorageDeleteData [11:19:19]Write to MH i2c: 01 00 00 80 21 A1 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: 01 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: 01 07 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: 01 07 00 80 21 00 00 00 00 00 CE 0C 82 [11:19:19]RasterBufferAndPrint [11:19:19]line [11:19:19]line [11:19:19]line [11:19:19]line [11:19:19]line [11:19:19]written 0, free lines is 3285 [11:19:19]MH_Cut [11:19:19]Write to MH i2c: D1 01 00 87 21 01 7A [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: D1 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: D1 01 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: D1 01 00 87 21 00 79 [11:19:19]Write to MH i2c: 01 00 00 88 21 A9 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]OFD Sender: No OFD packet to send [11:19:19]*** Cut start [11:19:19]*** Partial cut [11:19:19]*** CUTSNS_PIN = 1 [11:19:20]*** CUTSNS_PIN = 0 [11:19:20]*** Brake cut motor [11:19:20]Read from MH i2c: 01 [11:19:20]MH_I2C_Read... [11:19:20]*** Stop cut motor [11:19:20]*** Cut end [11:19:20]Read from MH i2c: 01 07 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: 01 07 00 88 21 00 00 00 00 00 FF 0F BE [11:19:20]process_action close_receipt done [11:19:20]requested_data is exist [11:19:20]produce_requested_data [11:19:20]requested_item fm.sn is exist - process it [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 11 00 00 [11:19:20]Write to MH i2c: E2 08 00 89 21 80 11 00 00 00 00 00 00 24 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 17 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 17 00 89 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7B [11:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:19:20]wFMCommunicate OK [11:19:20]requested_item fd.num is exist - process it [11:19:20]SAM_PROTO_GetFieldsCounters [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 13 00 00 [11:19:20]Write to MH i2c: E2 08 00 8A 21 80 13 00 00 00 00 00 00 27 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 62 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 62 00 8A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [11:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_GetFieldsCounters done [11:19:20]requested_item shift.num is exist - process it [11:19:20]requested_item shift.opened is exist - process it [11:19:20]req_shift_opened [11:19:20]FM_GetShiftState [11:19:20]SAM_PROTO_GetShiftState [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 13 01 00 [11:19:20]Write to MH i2c: E2 08 00 8B 21 80 13 01 00 00 00 00 00 29 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0E 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0E 00 8B 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E0 [11:19:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_GetShiftState done [11:19:20]FM_GetShiftState done [11:19:20]req_shift_opened done [11:19:20]requested_item shift.open_date is exist - process it [11:19:20]req_shift_open_date [11:19:20]req_shift_open_date done [11:19:20]produce_requested_data done [11:19:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139274,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:19:20]process_action_free close_receipt [11:19:20]json_value_free [11:19:20]json_value_free done [11:19:20]process_json_proto returns [11:19:20]Send response to host [11:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139274,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:19:20]free response buf [11:19:20]execute_script done [11:19:20]execute_script returns [11:19:20]free content buf [11:19:20]Sock 7.Close socket [11:19:20]Sock 7.Thread stoped [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:48]accept exits with 9 [11:19:48]New connection [11:19:48]New thread 3067059556 created [11:19:48]Thread 3067202916 joined [11:19:48]Waiting for new connection... [11:19:48] Sock 9.Parse request [11:19:48]Sock 9.Check first char [11:19:48]Sock 9.First char is OK [11:19:48]request: POST /json_proto HTTP/1.0 [11:19:48]Method: POST [11:19:48]URL: /json_proto [11:19:48]Method is POST - this is cgi request [11:19:48]url: /json_proto [11:19:48]query_string will be loaded in cgi processing [11:19:48]execute_cgi json_proto POST (null) [11:19:48]execute_cgi path=json_proto method=POST [11:19:48]POST find Content-Length [11:19:48]Host: 172.17.45.67:8080 [11:19:48]Content-Length: 658 [11:19:48]Content-Type: application/json [11:19:48] [11:19:48]POST finish read [11:19:48]Found Content-Length = 658 [11:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "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" ] } } [11:19:48]execute_script... [11:19: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)593116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "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" ] } } [11:19:48]POST & json_proto [11:19:48]process_json_proto [11:19:48]json parsed OK: [11:19:48]protocol is kg_v1.0 [11:19:48]action value=close_receipt [11:19:48]process_action close_receipt [11:19:48]cmd_close_receipt [11:19:48]MH_GetDate [11:19:48]Write to MH i2c: F0 00 00 8C 21 9C [11:19:48]Write i2c OK [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: F0 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: F0 09 00 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: F0 09 00 8C 21 00 56 2A C3 66 5F 7F 2B 66 BD [11:19:48]GetLastDocTimeStamp 1724066359 [11:19:48]current date 1724066390 [11:19:48]FM_GetShiftState [11:19:48]SAM_PROTO_GetShiftState [11:19:48]wFMCommunicate request_size=4 [11:19:48]MH_SAM_APDU [11:19:48]CAPDU: 80 13 01 00 [11:19:48]Write to MH i2c: E2 08 00 8D 21 80 13 01 00 00 00 00 00 2B [11:19:48]Write i2c OK [11:19:48]MH_I2C_Read... [11:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:48]Read from MH i2c: E2 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: E2 0E 00 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: E2 0E 00 8D 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E2 [11:19:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:19:48]wFMCommunicate OK [11:19:48]SAM_PROTO_GetShiftState done [11:19:48]FM_GetShiftState done [11:19:48]opened in 1724027888 [11:19:48]opened+sec_in_day 1724114288 [11:19:48]quantity*price = 60062 [11:19:48]sum+1 = 60063 [11:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 110 19.08.2024 11:19 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139275 ФПД: 261163553181004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111950&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139275&fm=261163553181004&tin=02508201610067®Number=0000000000092569&sum=60000 [11:19:49]StoreToDocumentArchive [11:19:49]shift 452 fd 139275 [11:19:49]save to /storage/0452/doc_00139275 [11:19:49]save last doc name /storage/0452/doc_00139275 to /storage/kkm_last_doc_name [11:19:49]save OK [11:19:49]Clear old archive folders... [11:19:49]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:19:49]tlvbuf is 01D8AFA0 [11:19:49]SAM_PROTO_ClearQueue [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 09 00 00 [11:19:49]Write to MH i2c: E2 08 00 9A 21 80 09 00 00 00 00 00 00 2D [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 03 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 03 00 9A 21 00 90 00 2F [11:19:49]RAPDU: 90 00 [11:19:49]wFMCommunicate OK [11:19:49]SAM_PROTO_ClearQueue done [11:19:49]KKMCreateOFDPacket [11:19:49]OFDProtocolAddRootSTLVToBuf [11:19:49]FM_MakeSignedData [11:19:49]FM_MakeSignedData [11:19:49]SAM_PROTO_SignData [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 0D 01 02 [11:19:49]Write to MH i2c: E2 08 00 9B 21 80 0D 01 02 00 00 00 00 35 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 03 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 03 00 9B 21 00 90 00 30 [11:19:49]RAPDU: 90 00 [11:19:49]wFMCommunicate OK [11:19:49]wFMCommunicate request_size=253 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 6E 00 00 00 F4 03 04 00 56 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 20 02 00 35 04 06 00 ED 86 E0 D0 CD 4C [11:19:49]Write to MH i2c: E2 00 01 9C 21 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 6E 00 00 00 F4 03 04 00 56 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 20 02 00 35 04 06 00 ED 86 E0 D0 CD 4C 00 00 A5 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 03 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 03 00 9C 21 00 90 00 31 [11:19:49]RAPDU: 90 00 [11:19:49]wFMCommunicate OK [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 0D 03 02 [11:19:49]Write to MH i2c: E2 08 00 9D 21 80 0D 03 02 00 00 00 00 39 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0B 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0B 00 9D 21 00 80 20 5A BB E9 2E BF 6C 90 00 31 [11:19:49]RAPDU: 80 20 5A BB E9 2E BF 6C 90 00 [11:19:49]wFMCommunicate OK [11:19:49]SAM_PROTO_SignData done [11:19:49]FM_MakeSignedData done [11:19:49]CreateOFDProtocolMessage [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 11 00 00 [11:19:49]Write to MH i2c: E2 08 00 9E 21 80 11 00 00 00 00 00 00 39 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 17 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 17 00 9E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [11:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:19:49]wFMCommunicate OK [11:19:49]CreateOFDProtocolMessage done [11:19:49]OFDSenderStorePacket 139275 [11:19:49]StoreOFDPacket docnum=139275 [11:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 92 75 00 01 AF 85 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 6E 00 00 00 F4 03 04 00 56 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 20 02 00 35 04 06 00 ED 86 E0 D0 CD 4C 80 20 5A BB E9 2E BF 6C [11:19:49]CheckFolder [11:19:49]dirname=/storage/ofd_packets [11:19:49]CheckFolder done [11:19:49]ProducePacketName [11:19:49]name=ofd_packets/00139275 [11:19:49]NVStorageSaveData ofd_packets/00139275 [11:19:49]File name is /storage/ofd_packets/00139275 [11:19:49]Write 294 bytes [11:19:49]NVStorageSaveData done [11:19:49]OFDSenderStorePacket done [11:19:49]KKMCreateOFDPacket done [11:19:49]NVStorageSaveData kkm_last_timestamp [11:19:49]File name is /storage/kkm_last_timestamp [11:19:49]Write 4 bytes [11:19:49]NVStorageSaveData done [11:19:49]ExternCall_PrintAddStr [11:19:49]wPrintStart [11:19:49]Write to MH i2c: 01 00 00 9F 21 C0 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: 01 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: 01 07 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: 01 07 00 9F 21 00 00 00 00 00 FF 0F D5 [11:19:49]RasterBufferAndPrint [11:19:49]line Счет N : (1)593116 [11:19:49]line ИНН: 02508201610067 [11:19:49]line Контрольно-Кассовый Чек [11:19:49]line ПРОДАЖА [11:19:49]line ТРК (МРК, ГНК) : 53 [11:19:49]line Товар: 2710124130 [11:19:49]line SU-92 [11:19:49]line 8.730 * 68.80 [11:19:49]line = 600.62 [11:19:49]line НДС 12% НСП 1% [11:19:49]line > о реализуемом товаре [11:19:49]line ОКРУГЛЕНИЕ: -0.62 [11:19:49]line ИТОГО: 600.00 [11:19:49]line Внесено: 600.00 [11:19:49]line СДАЧА: 0.00 [11:19:49]line НСП 1% : 5.31 [11:19:49]line НДС 12% : 63.78 [11:19:49]line Наличными: 600.00 [11:19:49]line Безнал.: 0.00 [11:19:49]line Место: АЗС № 136 "Партнер Нефть" [11:19:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:19:49]line СНО: Общий режим [11:19:49]line Чек 110 19.08.2024 11:19 [11:19:49]line Смена: 452 ФФД: 1.0 [11:19:49]line ЗНМ: 0300000067 [11:19:49]line РНМ: 0000000000092569 [11:19:49]line Версия ККМ: 001 [11:19:49]line ФМ: 0000000000871776 [11:19:49]line ФД: 139275 [11:19:49]line ФПД: 261163553181004 [11:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111950&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139275&fm=261163553181004&tin=02508201610067®Number=0000000000092569&sum=60000 [11:19:50]OFD Sender: Processing packet 139275 [packets to send 137, broken 136] [11:19:50]ProducePacketName [11:19:50]name=ofd_packets/00139275 [11:19:50]OFD Sender: To server: pG, [11:19:50]CommunicateWithHost lk.salyk.kg:30040 [11:19:50]ConnectInit lk.salyk.kg [11:19:50]written 0, free lines is 4095 [11:19:50]Connected sock=7 [11:19: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 37 36 08 01 00 00 92 75 00 01 AF 85 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 6E 00 00 00 F4 03 04 00 56 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 20 02 00 35 04 06 00 ED 86 E0 D0 CD 4C 80 20 5A BB E9 2E BF 6C [11:19:50]Write to MH i2c: 01 00 00 CA 21 EB [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: 01 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: 01 07 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: 01 07 00 CA 21 00 00 00 00 00 DD 0C DB [11:19:50]RasterBufferAndPrint [11:19:50]line [11:19:50]line [11:19:50]line [11:19:50]line [11:19:50]line [11:19:50]written 0, free lines is 3299 [11:19:50]MH_Cut [11:19:50]Write to MH i2c: D1 01 00 D1 21 01 C4 [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: D1 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: D1 01 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: D1 01 00 D1 21 00 C3 [11:19:50]Write to MH i2c: 01 00 00 D2 21 F3 [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19: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 37 36 4F 00 00 00 37 D8 47 00 57 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 37 36 10 04 04 00 0B 20 02 00 F4 03 04 00 EC D0 C2 66 B6 04 01 00 00 9B 6E 1B 28 03 3A 6F 02 [11:19:50]CommunicateWithHost err = 0 [11:19:50]CheckOFDResponse [11:19:50]1017 (14) - 77093643461234 [11:19:50]1041 (16) - 0000000000871776 [11:19:50]1040 (4) - 139275 [11:19:50]1012 (4) - 19.08.2024 04:58 [11:19:50]1206 (1) - 0 [11:19:50]OFD Sender: Remove packet 139275 [11:19:50]ProducePacketName [11:19:50]name=ofd_packets/00139275 [11:19:50]NVStorageDeleteData [11:19:51]OFD Sender: No OFD packet to send [11:19:51]*** Cut start [11:19:51]*** Partial cut [11:19:51]*** CUTSNS_PIN = 1 [11:19:51]*** CUTSNS_PIN = 0 [11:19:51]*** Brake cut motor [11:19:51]Read from MH i2c: 01 [11:19:51]MH_I2C_Read... [11:19:51]*** Stop cut motor [11:19:51]*** Cut end [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 D2 21 00 00 00 00 00 FF 0F 08 [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 D3 21 80 11 00 00 00 00 00 00 6E [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 D3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C5 [11:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 D4 21 80 13 00 00 00 00 00 00 71 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 62 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 62 00 D4 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:51]wFMCommunicate OK [11:19:51]SAM_PROTO_GetFieldsCounters done [11:19:51]requested_item shift.num is exist - process it [11:19:51]requested_item shift.opened is exist - process it [11:19:51]req_shift_opened [11:19:51]FM_GetShiftState [11:19:51]SAM_PROTO_GetShiftState [11:19:51]wFMCommunicate request_size=4 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 13 01 00 [11:19:51]Write to MH i2c: E2 08 00 D5 21 80 13 01 00 00 00 00 00 73 [11:19:51]Write i2c OK [11:19:51]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 D5 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2A [11:19:52]RAPDU: 09 00 01 F0 93 C2 66 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":"0000000000871776","fd.num":139275,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [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":"0000000000871776","fd.num":139275,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [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 9.Close socket [11:19:52]Sock 9.Thread stoped [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:35]accept exits with 10 [11:20:35]New connection [11:20:35]New thread 3067202916 created [11:20:35]Thread 3067059556 joined [11:20:35]Waiting for new connection... [11:20:35] Sock 10.Parse request [11:20:35]Sock 10.Check first char [11:20:35]Sock 10.First char is OK [11:20:35]request: POST /json_proto HTTP/1.0 [11:20:35]Method: POST [11:20:35]URL: /json_proto [11:20:35]Method is POST - this is cgi request [11:20:35]url: /json_proto [11:20:35]query_string will be loaded in cgi processing [11:20:35]execute_cgi json_proto POST (null) [11:20:35]execute_cgi path=json_proto method=POST [11:20:35]POST find Content-Length [11:20:35]Host: 172.17.45.67:8080 [11:20:35]Content-Length: 677 [11:20:35]Content-Type: application/json [11:20:35] [11:20:35]POST finish read [11:20:35]Found Content-Length = 677 [11:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [11:20:35]execute_script... [11:20: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)593117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [11:20:35]POST & json_proto [11:20:35]process_json_proto [11:20:35]json parsed OK: [11:20:35]protocol is kg_v1.0 [11:20:35]action value=close_receipt [11:20:35]process_action close_receipt [11:20:35]cmd_close_receipt [11:20:35]MH_GetDate [11:20:35]Write to MH i2c: F0 00 00 D6 21 E6 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: F0 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: F0 09 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: F0 09 00 D6 21 00 85 2A C3 66 5F 7F 2B 66 36 [11:20:35]GetLastDocTimeStamp 1724066390 [11:20:35]current date 1724066437 [11:20:35]FM_GetShiftState [11:20:35]SAM_PROTO_GetShiftState [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 13 01 00 [11:20:35]Write to MH i2c: E2 08 00 D7 21 80 13 01 00 00 00 00 00 75 [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 0E 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 0E 00 D7 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2C [11:20:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:20:35]wFMCommunicate OK [11:20:35]SAM_PROTO_GetShiftState done [11:20:35]FM_GetShiftState done [11:20:35]opened in 1724027888 [11:20:35]opened+sec_in_day 1724114288 [11:20:35]quantity*price = 35052 [11:20:35]sum+1 = 35054 [11:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 111 19.08.2024 11:20 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139276 ФПД: 133139994604793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112037&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139276&fm=133139994604793&tin=02508201610067®Number=0000000000092569&sum=35000 [11:20:36]StoreToDocumentArchive [11:20:36]shift 452 fd 139276 [11:20:36]save to /storage/0452/doc_00139276 [11:20:36]save last doc name /storage/0452/doc_00139276 to /storage/kkm_last_doc_name [11:20:36]save OK [11:20:36]Clear old archive folders... [11:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:36]tlvbuf is 01E51C20 [11:20:36]SAM_PROTO_ClearQueue [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 09 00 00 [11:20:36]Write to MH i2c: E2 08 00 E4 21 80 09 00 00 00 00 00 00 77 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 E4 21 00 90 00 79 [11:20:36]RAPDU: 90 00 [11:20:36]wFMCommunicate OK [11:20:36]SAM_PROTO_ClearQueue done [11:20:36]KKMCreateOFDPacket [11:20:36]OFDProtocolAddRootSTLVToBuf [11:20:36]FM_MakeSignedData [11:20:36]FM_MakeSignedData [11:20:36]SAM_PROTO_SignData [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 0D 01 02 [11:20:36]Write to MH i2c: E2 08 00 E5 21 80 0D 01 02 00 00 00 00 7F [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 E5 21 00 90 00 7A [11:20:36]RAPDU: 90 00 [11:20:36]wFMCommunicate OK [11:20:36]wFMCommunicate request_size=255 [11:20:36]MH_SAM_APDU [11:20: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 6F 00 00 00 F4 03 04 00 85 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 20 02 00 35 04 06 00 79 [11:20:36]Write to MH i2c: E2 02 01 E6 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 6F 00 00 00 F4 03 04 00 85 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 20 02 00 35 04 06 00 79 00 00 E6 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:36]Read from MH i2c: E2 03 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 E6 21 00 90 00 7B [11:20:36]RAPDU: 90 00 [11:20:36]wFMCommunicate OK [11:20:36]wFMCommunicate request_size=10 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 0D 02 02 05 17 12 15 74 F9 [11:20:36]Write to MH i2c: E2 0D 00 E7 21 80 0D 02 02 05 00 17 12 15 74 F9 00 00 37 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 E7 21 00 90 00 7C [11:20:36]RAPDU: 90 00 [11:20:36]wFMCommunicate OK [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 0D 03 02 [11:20:36]Write to MH i2c: E2 08 00 E8 21 80 0D 03 02 00 00 00 00 84 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 0B 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 0B 00 E8 21 00 AF 2E 47 D6 D8 8B 10 8C 90 00 7E [11:20:36]RAPDU: AF 2E 47 D6 D8 8B 10 8C 90 00 [11:20:36]wFMCommunicate OK [11:20:36]SAM_PROTO_SignData done [11:20:36]FM_MakeSignedData done [11:20:36]CreateOFDProtocolMessage [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 11 00 00 [11:20:36]Write to MH i2c: E2 08 00 E9 21 80 11 00 00 00 00 00 00 84 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 E9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [11:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:20:36]wFMCommunicate OK [11:20:36]CreateOFDProtocolMessage done [11:20:36]OFDSenderStorePacket 139276 [11:20:36]StoreOFDPacket docnum=139276 [11:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 09 80 07 01 1C 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 6F 00 00 00 F4 03 04 00 85 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 20 02 00 35 04 06 00 79 17 12 15 74 F9 AF 2E 47 D6 D8 8B 10 8C [11:20:36]CheckFolder [11:20:36]dirname=/storage/ofd_packets [11:20:36]CheckFolder done [11:20:36]ProducePacketName [11:20:36]name=ofd_packets/00139276 [11:20:36]NVStorageSaveData ofd_packets/00139276 [11:20:36]File name is /storage/ofd_packets/00139276 [11:20:36]Write 301 bytes [11:20:36]NVStorageSaveData done [11:20:36]OFDSenderStorePacket done [11:20:36]KKMCreateOFDPacket done [11:20:36]NVStorageSaveData kkm_last_timestamp [11:20:36]File name is /storage/kkm_last_timestamp [11:20:36]Write 4 bytes [11:20:36]NVStorageSaveData done [11:20:36]ExternCall_PrintAddStr [11:20:36]wPrintStart [11:20:36]Write to MH i2c: 01 00 00 EA 21 0B [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 EA 21 00 00 00 00 00 FF 0F 20 [11:20:36]RasterBufferAndPrint [11:20:36]line Счет N : (1)593117 [11:20:36]line ИНН: 02508201610067 [11:20:36]line Контрольно-Кассовый Чек [11:20:36]line ПРОДАЖА [11:20:36]line ТРК (МРК, ГНК) : 32 [11:20:36]line Товар: 2710124130 [11:20:36]line Аи-92-К-5 [11:20:36]line 5.170 * 67.80 [11:20:36]line = 350.53 [11:20:36]line НДС 12% НСП 1% [11:20:36]line > о реализуемом товаре [11:20:36]line ОКРУГЛЕНИЕ: -0.53 [11:20:36]line ИТОГО: 350.00 [11:20:36]line Внесено: 350.00 [11:20:36]line СДАЧА: 0.00 [11:20:36]line НСП 1% : 3.10 [11:20:36]line НДС 12% : 37.22 [11:20:36]line Наличными: 350.00 [11:20:36]line Безнал.: 0.00 [11:20:36]line Место: АЗС № 136 "Партнер Нефть" [11:20:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:20:36]line СНО: Общий режим [11:20:36]line Чек 111 19.08.2024 11:20 [11:20:36]line Смена: 452 ФФД: 1.0 [11:20:36]line ЗНМ: 0300000067 [11:20:36]line РНМ: 0000000000092569 [11:20:36]line Версия ККМ: 001 [11:20:36]line ФМ: 0000000000871776 [11:20:36]line ФД: 139276 [11:20:36]line ФПД: 133139994604793 [11:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112037&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139276&fm=133139994604793&tin=02508201610067®Number=0000000000092569&sum=35000 [11:20:37]OFD Sender: Processing packet 139276 [packets to send 137, broken 136] [11:20:37]ProducePacketName [11:20:37]name=ofd_packets/00139276 [11:20:37]OFD Sender: To server: pG, [11:20:37]CommunicateWithHost lk.salyk.kg:30040 [11:20:37]ConnectInit lk.salyk.kg [11:20:37]written 0, free lines is 4095 [11:20:37]Connected sock=9 [11:20: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 37 36 0F 01 00 00 09 80 07 01 1C 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 6F 00 00 00 F4 03 04 00 85 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 20 02 00 35 04 06 00 79 17 12 15 74 F9 AF 2E 47 D6 D8 8B 10 8C [11:20: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 37 36 4F 00 00 00 94 18 47 00 C3 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 37 36 10 04 04 00 0C 20 02 00 F4 03 04 00 1B D1 C2 66 B6 04 01 00 00 AF A2 48 3E 40 64 19 28 [11:20:37]CommunicateWithHost err = 0 [11:20:37]CheckOFDResponse [11:20:37]1017 (14) - 77093643461234 [11:20:37]1041 (16) - 0000000000871776 [11:20:37]1040 (4) - 139276 [11:20:37]1012 (4) - 19.08.2024 04:59 [11:20:37]1206 (1) - 0 [11:20:37]OFD Sender: Remove packet 139276 [11:20:37]ProducePacketName [11:20:37]name=ofd_packets/00139276 [11:20:37]NVStorageDeleteData [11:20:37]Write to MH i2c: 01 00 00 15 22 37 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: 01 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: 01 07 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: 01 07 00 15 22 00 00 00 00 00 D9 0C 23 [11:20:37]RasterBufferAndPrint [11:20:37]line [11:20:37]line [11:20:37]line [11:20:37]line [11:20:37]line [11:20:37]written 0, free lines is 3296 [11:20:37]MH_Cut [11:20:37]Write to MH i2c: D1 01 00 1C 22 01 10 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: D1 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: D1 01 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: D1 01 00 1C 22 00 0F [11:20:37]Write to MH i2c: 01 00 00 1D 22 3F [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:38]OFD Sender: No OFD packet to send [11:20:38]*** Cut start [11:20:38]*** Partial cut [11:20:38]*** CUTSNS_PIN = 1 [11:20:38]*** CUTSNS_PIN = 0 [11:20:38]*** Brake cut motor [11:20:38]Read from MH i2c: 01 [11:20:38]MH_I2C_Read... [11:20:38]*** Stop cut motor [11:20:38]*** Cut end [11:20:38]Read from MH i2c: 01 07 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: 01 07 00 1D 22 00 00 00 00 00 FF 0F 54 [11:20:38]process_action close_receipt done [11:20:38]requested_data is exist [11:20:38]produce_requested_data [11:20:38]requested_item fm.sn is exist - process it [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 11 00 00 [11:20:38]Write to MH i2c: E2 08 00 1E 22 80 11 00 00 00 00 00 00 BA [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:38]Read from MH i2c: E2 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 17 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 17 00 1E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 11 [11:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:20:38]wFMCommunicate OK [11:20:38]requested_item fd.num is exist - process it [11:20:38]SAM_PROTO_GetFieldsCounters [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 13 00 00 [11:20:38]Write to MH i2c: E2 08 00 1F 22 80 13 00 00 00 00 00 00 BD [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 62 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 62 00 1F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [11:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:39]wFMCommunicate OK [11:20:39]SAM_PROTO_GetFieldsCounters done [11:20:39]requested_item shift.num is exist - process it [11:20:39]requested_item shift.opened is exist - process it [11:20:39]req_shift_opened [11:20:39]FM_GetShiftState [11:20:39]SAM_PROTO_GetShiftState [11:20:39]wFMCommunicate request_size=4 [11:20:39]MH_SAM_APDU [11:20:39]CAPDU: 80 13 01 00 [11:20:39]Write to MH i2c: E2 08 00 20 22 80 13 01 00 00 00 00 00 BF [11:20:39]Write i2c OK [11:20:39]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 0E 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 0E 00 20 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 76 [11:20:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:20:39]wFMCommunicate OK [11:20:39]SAM_PROTO_GetShiftState done [11:20:39]FM_GetShiftState done [11:20:39]req_shift_opened done [11:20:39]requested_item shift.open_date is exist - process it [11:20:39]req_shift_open_date [11:20:39]req_shift_open_date done [11:20:39]produce_requested_data done [11:20:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139276,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:20:39]process_action_free close_receipt [11:20:39]json_value_free [11:20:39]json_value_free done [11:20:39]process_json_proto returns [11:20:39]Send response to host [11:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139276,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:20:39]free response buf [11:20:39]execute_script done [11:20:39]execute_script returns [11:20:39]free content buf [11:20:39]Sock 10.Close socket [11:20:39]Sock 10.Thread stoped [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:02]accept exits with 7 [11:21:02]New connection [11:21:02]New thread 3067059556 created [11:21:02]Thread 3067202916 joined [11:21:02]Waiting for new connection... [11:21:02] Sock 7.Parse request [11:21:02]Sock 7.Check first char [11:21:02]Sock 7.First char is OK [11:21:02]request: POST /json_proto HTTP/1.0 [11:21:02]Method: POST [11:21:02]URL: /json_proto [11:21:02]Method is POST - this is cgi request [11:21:02]url: /json_proto [11:21:02]query_string will be loaded in cgi processing [11:21:02]execute_cgi json_proto POST (null) [11:21:02]execute_cgi path=json_proto method=POST [11:21:02]POST find Content-Length [11:21:02]Host: 172.17.45.67:8080 [11:21:02]Content-Length: 677 [11:21:02]Content-Type: application/json [11:21:02] [11:21:02]POST finish read [11:21:02]Found Content-Length = 677 [11:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:02]execute_script... [11:21: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)593118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:02]POST & json_proto [11:21:02]process_json_proto [11:21:02]json parsed OK: [11:21:02]protocol is kg_v1.0 [11:21:02]action value=close_receipt [11:21:02]process_action close_receipt [11:21:02]cmd_close_receipt [11:21:02]MH_GetDate [11:21:02]Write to MH i2c: F0 00 00 21 22 32 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: F0 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: F0 09 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: F0 09 00 21 22 00 A1 2A C3 66 5F 7F 2B 66 9E [11:21:02]GetLastDocTimeStamp 1724066437 [11:21:02]current date 1724066465 [11:21:02]FM_GetShiftState [11:21:02]SAM_PROTO_GetShiftState [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 13 01 00 [11:21:02]Write to MH i2c: E2 08 00 22 22 80 13 01 00 00 00 00 00 C1 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 0E 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 0E 00 22 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 78 [11:21:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:21:02]wFMCommunicate OK [11:21:02]SAM_PROTO_GetShiftState done [11:21:02]FM_GetShiftState done [11:21:02]opened in 1724027888 [11:21:02]opened+sec_in_day 1724114288 [11:21:02]quantity*price = 30035 [11:21:02]sum+1 = 30036 [11:21:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 112 19.08.2024 11:21 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139277 ФПД: 147396317515580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112105&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139277&fm=147396317515580&tin=02508201610067®Number=0000000000092569&sum=30000 [11:21:03]StoreToDocumentArchive [11:21:03]shift 452 fd 139277 [11:21:03]save to /storage/0452/doc_00139277 [11:21:03]save last doc name /storage/0452/doc_00139277 to /storage/kkm_last_doc_name [11:21:03]save OK [11:21:03]Clear old archive folders... [11:21:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:03]tlvbuf is 01D7DA40 [11:21:03]SAM_PROTO_ClearQueue [11:21:03]wFMCommunicate request_size=4 [11:21:03]MH_SAM_APDU [11:21:03]CAPDU: 80 09 00 00 [11:21:03]Write to MH i2c: E2 08 00 2F 22 80 09 00 00 00 00 00 00 C3 [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 [11:21:03]MH_I2C_Read... [11:21:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:04]Read from MH i2c: E2 03 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 2F 22 00 90 00 C5 [11:21:04]RAPDU: 90 00 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_ClearQueue done [11:21:04]KKMCreateOFDPacket [11:21:04]OFDProtocolAddRootSTLVToBuf [11:21:04]FM_MakeSignedData [11:21:04]FM_MakeSignedData [11:21:04]SAM_PROTO_SignData [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 0D 01 02 [11:21:04]Write to MH i2c: E2 08 00 30 22 80 0D 01 02 00 00 00 00 CB [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 30 22 00 90 00 C6 [11:21:04]RAPDU: 90 00 [11:21:04]wFMCommunicate OK [11:21:04]wFMCommunicate request_size=255 [11:21:04]MH_SAM_APDU [11:21: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A1 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 20 02 00 35 04 06 00 86 [11:21:04]Write to MH i2c: E2 02 01 31 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A1 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 20 02 00 35 04 06 00 86 00 00 51 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 31 22 00 90 00 C7 [11:21:04]RAPDU: 90 00 [11:21:04]wFMCommunicate OK [11:21:04]wFMCommunicate request_size=10 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 0D 02 02 05 0E 61 25 8F 3C [11:21:04]Write to MH i2c: E2 0D 00 32 22 80 0D 02 02 05 00 0E 61 25 8F 3C 00 00 37 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 32 22 00 90 00 C8 [11:21:04]RAPDU: 90 00 [11:21:04]wFMCommunicate OK [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 0D 03 02 [11:21:04]Write to MH i2c: E2 08 00 33 22 80 0D 03 02 00 00 00 00 D0 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0B 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0B 00 33 22 00 B6 33 3D 1F 67 D4 B6 D9 90 00 E0 [11:21:04]RAPDU: B6 33 3D 1F 67 D4 B6 D9 90 00 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_SignData done [11:21:04]FM_MakeSignedData done [11:21:04]CreateOFDProtocolMessage [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 11 00 00 [11:21:04]Write to MH i2c: E2 08 00 34 22 80 11 00 00 00 00 00 00 D0 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 34 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [11:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:21:04]wFMCommunicate OK [11:21:04]CreateOFDProtocolMessage done [11:21:04]OFDSenderStorePacket 139277 [11:21:04]StoreOFDPacket docnum=139277 [11:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BD 43 07 01 C7 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A1 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 20 02 00 35 04 06 00 86 0E 61 25 8F 3C B6 33 3D 1F 67 D4 B6 D9 [11:21:04]CheckFolder [11:21:04]dirname=/storage/ofd_packets [11:21:04]CheckFolder done [11:21:04]ProducePacketName [11:21:04]name=ofd_packets/00139277 [11:21:04]NVStorageSaveData ofd_packets/00139277 [11:21:04]File name is /storage/ofd_packets/00139277 [11:21:04]Write 301 bytes [11:21:04]NVStorageSaveData done [11:21:04]OFDSenderStorePacket done [11:21:04]KKMCreateOFDPacket done [11:21:04]NVStorageSaveData kkm_last_timestamp [11:21:04]File name is /storage/kkm_last_timestamp [11:21:04]Write 4 bytes [11:21:04]NVStorageSaveData done [11:21:04]ExternCall_PrintAddStr [11:21:04]wPrintStart [11:21:04]Write to MH i2c: 01 00 00 35 22 57 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 07 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 07 00 35 22 00 00 00 00 00 FF 0F 6C [11:21:04]RasterBufferAndPrint [11:21:04]line Счет N : (1)593118 [11:21:04]line ИНН: 02508201610067 [11:21:04]line Контрольно-Кассовый Чек [11:21:04]line ПРОДАЖА [11:21:04]line ТРК (МРК, ГНК) : 62 [11:21:04]line Товар: 2710124130 [11:21:04]line Аи-92-К-5 [11:21:04]line 4.430 * 67.80 [11:21:04]line = 300.35 [11:21:04]line НДС 12% НСП 1% [11:21:04]line > о реализуемом товаре [11:21:04]line ОКРУГЛЕНИЕ: -0.35 [11:21:04]line ИТОГО: 300.00 [11:21:04]line Внесено: 300.00 [11:21:04]line СДАЧА: 0.00 [11:21:04]line НСП 1% : 2.66 [11:21:04]line НДС 12% : 31.90 [11:21:04]line Наличными: 300.00 [11:21:04]line Безнал.: 0.00 [11:21:04]line Место: АЗС № 136 "Партнер Нефть" [11:21:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:21:04]line СНО: Общий режим [11:21:04]line Чек 112 19.08.2024 11:21 [11:21:04]line Смена: 452 ФФД: 1.0 [11:21:04]line ЗНМ: 0300000067 [11:21:04]line РНМ: 0000000000092569 [11:21:04]line Версия ККМ: 001 [11:21:04]line ФМ: 0000000000871776 [11:21:04]line ФД: 139277 [11:21:04]line ФПД: 147396317515580 [11:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112105&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139277&fm=147396317515580&tin=02508201610067®Number=0000000000092569&sum=30000 [11:21:04]OFD Sender: Processing packet 139277 [packets to send 137, broken 136] [11:21:04]ProducePacketName [11:21:04]name=ofd_packets/00139277 [11:21:04]OFD Sender: To server: pG, [11:21:04]CommunicateWithHost lk.salyk.kg:30040 [11:21:04]ConnectInit lk.salyk.kg [11:21:04]written 0, free lines is 4095 [11:21:04]Connected sock=10 [11:21: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 37 36 0F 01 00 00 BD 43 07 01 C7 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A1 2A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 20 02 00 35 04 06 00 86 0E 61 25 8F 3C B6 33 3D 1F 67 D4 B6 D9 [11:21: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 37 36 4F 00 00 00 1B A2 47 00 43 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 37 36 10 04 04 00 0D 20 02 00 F4 03 04 00 37 D1 C2 66 B6 04 01 00 00 6A A6 52 89 18 35 2E 27 [11:21:05]CommunicateWithHost err = 0 [11:21:05]CheckOFDResponse [11:21:05]1017 (14) - 77093643461234 [11:21:05]1041 (16) - 0000000000871776 [11:21:05]1040 (4) - 139277 [11:21:05]1012 (4) - 19.08.2024 04:59 [11:21:05]1206 (1) - 0 [11:21:05]OFD Sender: Remove packet 139277 [11:21:05]ProducePacketName [11:21:05]name=ofd_packets/00139277 [11:21:05]NVStorageDeleteData [11:21:05]Write to MH i2c: 01 00 00 60 22 82 [11:21:05]Write i2c OK [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: 01 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: 01 07 00 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: 01 07 00 60 22 00 00 00 00 00 E0 0C 75 [11:21:05]RasterBufferAndPrint [11:21:05]line [11:21:05]line [11:21:05]line [11:21:05]line [11:21:05]line [11:21:05]written 0, free lines is 3305 [11:21:05]MH_Cut [11:21:05]Write to MH i2c: D1 01 00 67 22 01 5B [11:21:05]Write i2c OK [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: D1 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: D1 01 00 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: D1 01 00 67 22 00 5A [11:21:05]Write to MH i2c: 01 00 00 68 22 8A [11:21:05]Write i2c OK [11:21:05]MH_I2C_Read... [11:21:05]OFD Sender: No OFD packet to send [11:21:06]*** Cut start [11:21:06]*** Partial cut [11:21:06]*** CUTSNS_PIN = 1 [11:21:06]*** CUTSNS_PIN = 0 [11:21:06]*** Brake cut motor [11:21:06]Read from MH i2c: 01 [11:21:06]MH_I2C_Read... [11:21:06]*** Stop cut motor [11:21:06]*** Cut end [11:21:06]Read from MH i2c: 01 07 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: 01 07 00 68 22 00 00 00 00 00 FF 0F 9F [11:21:06]process_action close_receipt done [11:21:06]requested_data is exist [11:21:06]produce_requested_data [11:21:06]requested_item fm.sn is exist - process it [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 11 00 00 [11:21:06]Write to MH i2c: E2 08 00 69 22 80 11 00 00 00 00 00 00 05 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 17 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 17 00 69 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5C [11:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:21:06]wFMCommunicate OK [11:21:06]requested_item fd.num is exist - process it [11:21:06]SAM_PROTO_GetFieldsCounters [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 13 00 00 [11:21:06]Write to MH i2c: E2 08 00 6A 22 80 13 00 00 00 00 00 00 08 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 62 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 62 00 6A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [11:21: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:06]wFMCommunicate OK [11:21:06]SAM_PROTO_GetFieldsCounters done [11:21:06]requested_item shift.num is exist - process it [11:21:06]requested_item shift.opened is exist - process it [11:21:06]req_shift_opened [11:21:06]FM_GetShiftState [11:21:06]SAM_PROTO_GetShiftState [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 13 01 00 [11:21:06]Write to MH i2c: E2 08 00 6B 22 80 13 01 00 00 00 00 00 0A [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 0E 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 0E 00 6B 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C1 [11:21:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:21:06]wFMCommunicate OK [11:21:06]SAM_PROTO_GetShiftState done [11:21:06]FM_GetShiftState done [11:21:06]req_shift_opened done [11:21:06]requested_item shift.open_date is exist - process it [11:21:06]req_shift_open_date [11:21:06]req_shift_open_date done [11:21:06]produce_requested_data done [11:21:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139277,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:21:06]process_action_free close_receipt [11:21:06]json_value_free [11:21:06]json_value_free done [11:21:06]process_json_proto returns [11:21:06]Send response to host [11:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139277,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:21:06]free response buf [11:21:06]execute_script done [11:21:06]execute_script returns [11:21:06]free content buf [11:21:06]Sock 7.Close socket [11:21:06]Sock 7.Thread stoped [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:47]accept exits with 9 [11:23:47]New connection [11:23:47]New thread 3067202916 created [11:23:47]Thread 3067059556 joined [11:23:47]Waiting for new connection... [11:23:47] Sock 9.Parse request [11:23:47]Sock 9.Check first char [11:23:47]Sock 9.First char is OK [11:23:47]request: POST /json_proto HTTP/1.0 [11:23:47]Method: POST [11:23:47]URL: /json_proto [11:23:47]Method is POST - this is cgi request [11:23:47]url: /json_proto [11:23:47]query_string will be loaded in cgi processing [11:23:47]execute_cgi json_proto POST (null) [11:23:47]execute_cgi path=json_proto method=POST [11:23:47]POST find Content-Length [11:23:47]Host: 172.17.45.67:8080 [11:23:47]Content-Length: 677 [11:23:47]Content-Type: application/json [11:23:47] [11:23:47]POST finish read [11:23:47]Found Content-Length = 677 [11:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:47]execute_script... [11:23: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)593119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:47]POST & json_proto [11:23:47]process_json_proto [11:23:47]json parsed OK: [11:23:47]protocol is kg_v1.0 [11:23:47]action value=close_receipt [11:23:47]process_action close_receipt [11:23:47]cmd_close_receipt [11:23:47]MH_GetDate [11:23:47]Write to MH i2c: F0 00 00 6C 22 7D [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: F0 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: F0 09 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: F0 09 00 6C 22 00 45 2B C3 66 5F 7F 2B 66 8E [11:23:47]GetLastDocTimeStamp 1724066465 [11:23:47]current date 1724066629 [11:23:47]FM_GetShiftState [11:23:47]SAM_PROTO_GetShiftState [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 13 01 00 [11:23:47]Write to MH i2c: E2 08 00 6D 22 80 13 01 00 00 00 00 00 0C [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 0E 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 0E 00 6D 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C3 [11:23:47]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:23:47]wFMCommunicate OK [11:23:47]SAM_PROTO_GetShiftState done [11:23:47]FM_GetShiftState done [11:23:47]opened in 1724027888 [11:23:47]opened+sec_in_day 1724114288 [11:23:47]quantity*price = 40002 [11:23:47]sum+1 = 40003 [11:23:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 113 19.08.2024 11:23 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139278 ФПД: 133655653805757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112349&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139278&fm=133655653805757&tin=02508201610067®Number=0000000000092569&sum=40000 [11:23:48]StoreToDocumentArchive [11:23:48]shift 452 fd 139278 [11:23:48]save to /storage/0452/doc_00139278 [11:23:48]save last doc name /storage/0452/doc_00139278 to /storage/kkm_last_doc_name [11:23:48]save OK [11:23:48]Clear old archive folders... [11:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:48]tlvbuf is B6EFE420 [11:23:48]SAM_PROTO_ClearQueue [11:23:48]wFMCommunicate request_size=4 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 09 00 00 [11:23:48]Write to MH i2c: E2 08 00 7A 22 80 09 00 00 00 00 00 00 0E [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 03 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 03 00 7A 22 00 90 00 10 [11:23:48]RAPDU: 90 00 [11:23:48]wFMCommunicate OK [11:23:48]SAM_PROTO_ClearQueue done [11:23:48]KKMCreateOFDPacket [11:23:48]OFDProtocolAddRootSTLVToBuf [11:23:48]FM_MakeSignedData [11:23:48]FM_MakeSignedData [11:23:48]SAM_PROTO_SignData [11:23:48]wFMCommunicate request_size=4 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 0D 01 02 [11:23:48]Write to MH i2c: E2 08 00 7B 22 80 0D 01 02 00 00 00 00 16 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 03 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 03 00 7B 22 00 90 00 11 [11:23:48]RAPDU: 90 00 [11:23:48]wFMCommunicate OK [11:23:48]wFMCommunicate request_size=255 [11:23:48]MH_SAM_APDU [11:23: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 71 00 00 00 F4 03 04 00 45 2B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 20 02 00 35 04 06 00 79 [11:23:48]Write to MH i2c: E2 02 01 7C 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 71 00 00 00 F4 03 04 00 45 2B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 20 02 00 35 04 06 00 79 00 00 FC [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 03 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 03 00 7C 22 00 90 00 12 [11:23:48]RAPDU: 90 00 [11:23:48]wFMCommunicate OK [11:23:48]wFMCommunicate request_size=10 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 0D 02 02 05 8F 21 C4 6E BD [11:23:48]Write to MH i2c: E2 0D 00 7D 22 80 0D 02 02 05 00 8F 21 C4 6E BD 00 00 C2 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 03 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 03 00 7D 22 00 90 00 13 [11:23:48]RAPDU: 90 00 [11:23:48]wFMCommunicate OK [11:23:48]wFMCommunicate request_size=4 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 0D 03 02 [11:23:48]Write to MH i2c: E2 08 00 7E 22 80 0D 03 02 00 00 00 00 1B [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0B 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0B 00 7E 22 00 A1 D4 6D 5F A1 2E 68 51 90 00 E5 [11:23:48]RAPDU: A1 D4 6D 5F A1 2E 68 51 90 00 [11:23:48]wFMCommunicate OK [11:23:48]SAM_PROTO_SignData done [11:23:48]FM_MakeSignedData done [11:23:48]CreateOFDProtocolMessage [11:23:48]wFMCommunicate request_size=4 [11:23:48]MH_SAM_APDU [11:23:48]CAPDU: 80 11 00 00 [11:23:48]Write to MH i2c: E2 08 00 7F 22 80 11 00 00 00 00 00 00 1B [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 17 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 17 00 7F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [11:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:23:48]wFMCommunicate OK [11:23:48]CreateOFDProtocolMessage done [11:23:48]OFDSenderStorePacket 139278 [11:23:48]StoreOFDPacket docnum=139278 [11:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 57 35 07 01 CD 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 71 00 00 00 F4 03 04 00 45 2B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 20 02 00 35 04 06 00 79 8F 21 C4 6E BD A1 D4 6D 5F A1 2E 68 51 [11:23:48]CheckFolder [11:23:48]dirname=/storage/ofd_packets [11:23:48]CheckFolder done [11:23:48]ProducePacketName [11:23:48]name=ofd_packets/00139278 [11:23:48]NVStorageSaveData ofd_packets/00139278 [11:23:48]File name is /storage/ofd_packets/00139278 [11:23:48]Write 301 bytes [11:23:48]NVStorageSaveData done [11:23:48]OFDSenderStorePacket done [11:23:48]KKMCreateOFDPacket done [11:23:48]NVStorageSaveData kkm_last_timestamp [11:23:48]File name is /storage/kkm_last_timestamp [11:23:48]Write 4 bytes [11:23:48]NVStorageSaveData done [11:23:48]ExternCall_PrintAddStr [11:23:48]wPrintStart [11:23:48]Write to MH i2c: 01 00 00 80 22 A2 [11:23:48]Write i2c OK [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 07 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: 01 07 00 80 22 00 00 00 00 00 FF 0F B7 [11:23:48]RasterBufferAndPrint [11:23:48]line Счет N : (1)593119 [11:23:48]line ИНН: 02508201610067 [11:23:48]line Контрольно-Кассовый Чек [11:23:48]line ПРОДАЖА [11:23:48]line ТРК (МРК, ГНК) : 52 [11:23:48]line Товар: 2710124130 [11:23:48]line Аи-92-К-5 [11:23:48]line 5.900 * 67.80 [11:23:48]line = 400.02 [11:23:48]line НДС 12% НСП 1% [11:23:48]line > о реализуемом товаре [11:23:48]line ОКРУГЛЕНИЕ: -0.02 [11:23:48]line ИТОГО: 400.00 [11:23:48]line Внесено: 400.00 [11:23:48]line СДАЧА: 0.00 [11:23:48]line НСП 1% : 3.54 [11:23:48]line НДС 12% : 42.48 [11:23:48]line Наличными: 400.00 [11:23:48]line Безнал.: 0.00 [11:23:48]line Место: АЗС № 136 "Партнер Нефть" [11:23:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:23:48]line СНО: Общий режим [11:23:48]line Чек 113 19.08.2024 11:23 [11:23:48]line Смена: 452 ФФД: 1.0 [11:23:48]line ЗНМ: 0300000067 [11:23:48]line РНМ: 0000000000092569 [11:23:48]line Версия ККМ: 001 [11:23:48]line ФМ: 0000000000871776 [11:23:48]line ФД: 139278 [11:23:48]line ФПД: 133655653805757 [11:23:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112349&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139278&fm=133655653805757&tin=02508201610067®Number=0000000000092569&sum=40000 [11:23:49]OFD Sender: Processing packet 139278 [packets to send 137, broken 136] [11:23:49]ProducePacketName [11:23:49]name=ofd_packets/00139278 [11:23:49]OFD Sender: To server: pG, [11:23:49]CommunicateWithHost lk.salyk.kg:30040 [11:23:49]ConnectInit lk.salyk.kg [11:23:49]written 0, free lines is 4095 [11:23:49]Write to MH i2c: 01 00 00 AB 22 CD [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: 01 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: 01 07 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: 01 07 00 AB 22 00 00 00 00 00 CD 0C AD [11:23:49]RasterBufferAndPrint [11:23:49]line [11:23:49]line [11:23:49]line [11:23:49]line [11:23:49]line [11:23:49]written 0, free lines is 3280 [11:23:49]MH_Cut [11:23:49]Write to MH i2c: D1 01 00 B2 22 01 A6 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: D1 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: D1 01 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: D1 01 00 B2 22 00 A5 [11:23:49]Write to MH i2c: 01 00 00 B3 22 D5 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:50]*** Cut start [11:23:50]*** Partial cut [11:23:50]*** CUTSNS_PIN = 1 [11:23:50]*** CUTSNS_PIN = 0 [11:23:50]*** Brake cut motor [11:23:51]Read from MH i2c: 01 [11:23:51]MH_I2C_Read... [11:23:51]*** Stop cut motor [11:23:51]*** Cut end [11:23:51]Read from MH i2c: 01 07 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: 01 07 00 B3 22 00 00 00 00 00 FF 0F EA [11:23:51]process_action close_receipt done [11:23:51]requested_data is exist [11:23:51]produce_requested_data [11:23:51]requested_item fm.sn is exist - process it [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 11 00 00 [11:23:51]Write to MH i2c: E2 08 00 B4 22 80 11 00 00 00 00 00 00 50 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 17 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 17 00 B4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A7 [11:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:23:51]wFMCommunicate OK [11:23:51]requested_item fd.num is exist - process it [11:23:51]SAM_PROTO_GetFieldsCounters [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 13 00 00 [11:23:51]Write to MH i2c: E2 08 00 B5 22 80 13 00 00 00 00 00 00 53 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 62 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 62 00 B5 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [11:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:51]wFMCommunicate OK [11:23:51]SAM_PROTO_GetFieldsCounters done [11:23:51]requested_item shift.num is exist - process it [11:23:51]requested_item shift.opened is exist - process it [11:23:51]req_shift_opened [11:23:51]FM_GetShiftState [11:23:51]SAM_PROTO_GetShiftState [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 13 01 00 [11:23:51]Write to MH i2c: E2 08 00 B6 22 80 13 01 00 00 00 00 00 55 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 0E 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 0E 00 B6 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0C [11:23:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:23:51]wFMCommunicate OK [11:23:51]SAM_PROTO_GetShiftState done [11:23:51]FM_GetShiftState done [11:23:51]req_shift_opened done [11:23:51]requested_item shift.open_date is exist - process it [11:23:51]req_shift_open_date [11:23:51]req_shift_open_date done [11:23:51]produce_requested_data done [11:23:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139278,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:23:51]process_action_free close_receipt [11:23:51]json_value_free [11:23:51]json_value_free done [11:23:51]process_json_proto returns [11:23:51]Send response to host [11:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139278,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:23:51]free response buf [11:23:51]execute_script done [11:23:51]execute_script returns [11:23:51]free content buf [11:23:51]Sock 9.Close socket [11:23:51]Sock 9.Thread stoped [11:25:59]ConnectInit Can't connect to host [11:25:59]CommunicateWithHost connect error [11:25:59]CommunicateWithHost err = -1 [11:25:59]OFD Sender: Server communicate error [11:26:04]OFD Sender: Processing packet 139278 [packets to send 137, broken 136] [11:26:04]ProducePacketName [11:26:04]name=ofd_packets/00139278 [11:26:04]OFD Sender: To server: pG, [11:26:04]CommunicateWithHost lk.salyk.kg:30040 [11:26:04]ConnectInit lk.salyk.kg [11:26:04]Connected sock=9 [11:26: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 37 36 0F 01 00 00 57 35 07 01 CD 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 71 00 00 00 F4 03 04 00 45 2B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 20 02 00 35 04 06 00 79 8F 21 C4 6E BD A1 D4 6D 5F A1 2E 68 51 [11:26: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 37 36 4F 00 00 00 9E 27 47 00 FC 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 37 36 10 04 04 00 0E 20 02 00 F4 03 04 00 63 D2 C2 66 B6 04 01 00 00 60 2E 8B 93 A1 1D D8 4E [11:26:04]CommunicateWithHost err = 0 [11:26:04]CheckOFDResponse [11:26:04]1017 (14) - 77093643461234 [11:26:04]1041 (16) - 0000000000871776 [11:26:04]1040 (4) - 139278 [11:26:04]1012 (4) - 19.08.2024 05:04 [11:26:04]1206 (1) - 0 [11:26:04]OFD Sender: Remove packet 139278 [11:26:04]ProducePacketName [11:26:04]name=ofd_packets/00139278 [11:26:04]NVStorageDeleteData [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:11]accept exits with 7 [11:28:11]New connection [11:28:11]New thread 3067059556 created [11:28:11]Thread 3067202916 joined [11:28:11]Waiting for new connection... [11:28:11] Sock 7.Parse request [11:28:11]Sock 7.Check first char [11:28:11]Sock 7.First char is OK [11:28:11]request: POST /json_proto HTTP/1.0 [11:28:11]Method: POST [11:28:11]URL: /json_proto [11:28:11]Method is POST - this is cgi request [11:28:11]url: /json_proto [11:28:11]query_string will be loaded in cgi processing [11:28:11]execute_cgi json_proto POST (null) [11:28:11]execute_cgi path=json_proto method=POST [11:28:11]POST find Content-Length [11:28:11]Host: 172.17.45.67:8080 [11:28:11]Content-Length: 835 [11:28:11]Content-Type: application/json [11:28:11] [11:28:11]POST finish read [11:28:11]Found Content-Length = 835 [11:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 700.00, "payments": [ { "type": 1, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:11]execute_script... [11:28: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)593120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 700.00, "payments": [ { "type": 1, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:11]POST & json_proto [11:28:11]process_json_proto [11:28:11]json parsed OK: [11:28:11]protocol is kg_v1.0 [11:28:11]action value=close_receipt [11:28:11]process_action close_receipt [11:28:11]cmd_close_receipt [11:28:11]MH_GetDate [11:28:11]Write to MH i2c: F0 00 00 B7 22 C8 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: F0 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: F0 09 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: F0 09 00 B7 22 00 4D 2C C3 66 5F 7F 2B 66 E2 [11:28:11]GetLastDocTimeStamp 1724066629 [11:28:11]current date 1724066893 [11:28:11]FM_GetShiftState [11:28:11]SAM_PROTO_GetShiftState [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 01 00 [11:28:11]Write to MH i2c: E2 08 00 B8 22 80 13 01 00 00 00 00 00 57 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 B8 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0E [11:28:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetShiftState done [11:28:11]FM_GetShiftState done [11:28:11]opened in 1724027888 [11:28:11]opened+sec_in_day 1724114288 [11:28:11]quantity*price = 70037 [11:28:11]sum+1 = 70038 [11:28:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 114 19.08.2024 11:28 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139279 ФПД: 22877094830922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112813&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139279&fm=22877094830922&tin=02508201610067®Number=0000000000092569&sum=70000 [11:28:12]StoreToDocumentArchive [11:28:12]shift 452 fd 139279 [11:28:12]save to /storage/0452/doc_00139279 [11:28:12]save last doc name /storage/0452/doc_00139279 to /storage/kkm_last_doc_name [11:28:12]save OK [11:28:12]Clear old archive folders... [11:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:12]tlvbuf is B6DE5010 [11:28:12]SAM_PROTO_ClearQueue [11:28:12]wFMCommunicate request_size=4 [11:28:12]MH_SAM_APDU [11:28:12]CAPDU: 80 09 00 00 [11:28:12]Write to MH i2c: E2 08 00 C5 22 80 09 00 00 00 00 00 00 59 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 03 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 03 00 C5 22 00 90 00 5B [11:28:12]RAPDU: 90 00 [11:28:12]wFMCommunicate OK [11:28:12]SAM_PROTO_ClearQueue done [11:28:12]KKMCreateOFDPacket [11:28:12]OFDProtocolAddRootSTLVToBuf [11:28:12]FM_MakeSignedData [11:28:12]FM_MakeSignedData [11:28:12]SAM_PROTO_SignData [11:28:12]wFMCommunicate request_size=4 [11:28:12]MH_SAM_APDU [11:28:12]CAPDU: 80 0D 01 02 [11:28:12]Write to MH i2c: E2 08 00 C6 22 80 0D 01 02 00 00 00 00 61 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 03 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 03 00 C6 22 00 90 00 5C [11:28:12]RAPDU: 90 00 [11:28:12]wFMCommunicate OK [11:28:12]wFMCommunicate request_size=255 [11:28:12]MH_SAM_APDU [11:28: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 4D 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 20 02 00 35 04 06 00 14 [11:28:12]Write to MH i2c: E2 02 01 C7 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 4D 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 20 02 00 35 04 06 00 14 00 00 EF [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 03 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 03 00 C7 22 00 90 00 5D [11:28:12]RAPDU: 90 00 [11:28:12]wFMCommunicate OK [11:28:12]wFMCommunicate request_size=10 [11:28:12]MH_SAM_APDU [11:28:12]CAPDU: 80 0D 02 02 05 CE 7D 1C 63 4A [11:28:12]Write to MH i2c: E2 0D 00 C8 22 80 0D 02 02 05 00 CE 7D 1C 63 4A 00 00 82 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 03 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 03 00 C8 22 00 90 00 5E [11:28:12]RAPDU: 90 00 [11:28:12]wFMCommunicate OK [11:28:12]wFMCommunicate request_size=4 [11:28:12]MH_SAM_APDU [11:28:12]CAPDU: 80 0D 03 02 [11:28:12]Write to MH i2c: E2 08 00 C9 22 80 0D 03 02 00 00 00 00 66 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 0B 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 0B 00 C9 22 00 98 32 AA A9 09 1A 75 E8 90 00 04 [11:28:12]RAPDU: 98 32 AA A9 09 1A 75 E8 90 00 [11:28:12]wFMCommunicate OK [11:28:12]SAM_PROTO_SignData done [11:28:12]FM_MakeSignedData done [11:28:12]CreateOFDProtocolMessage [11:28:12]wFMCommunicate request_size=4 [11:28:12]MH_SAM_APDU [11:28:12]CAPDU: 80 11 00 00 [11:28:12]Write to MH i2c: E2 08 00 CA 22 80 11 00 00 00 00 00 00 66 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 17 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 17 00 CA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [11:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:28:12]wFMCommunicate OK [11:28:12]CreateOFDProtocolMessage done [11:28:12]OFDSenderStorePacket 139279 [11:28:12]StoreOFDPacket docnum=139279 [11:28:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 19 74 07 01 4C 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 4D 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 20 02 00 35 04 06 00 14 CE 7D 1C 63 4A 98 32 AA A9 09 1A 75 E8 [11:28:12]CheckFolder [11:28:12]dirname=/storage/ofd_packets [11:28:12]CheckFolder done [11:28:12]ProducePacketName [11:28:12]name=ofd_packets/00139279 [11:28:12]NVStorageSaveData ofd_packets/00139279 [11:28:12]File name is /storage/ofd_packets/00139279 [11:28:12]Write 301 bytes [11:28:12]NVStorageSaveData done [11:28:12]OFDSenderStorePacket done [11:28:12]KKMCreateOFDPacket done [11:28:12]NVStorageSaveData kkm_last_timestamp [11:28:12]File name is /storage/kkm_last_timestamp [11:28:12]Write 4 bytes [11:28:12]NVStorageSaveData done [11:28:12]ExternCall_PrintAddStr [11:28:12]wPrintStart [11:28:12]Write to MH i2c: 01 00 00 CB 22 ED [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: 01 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: 01 07 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: 01 07 00 CB 22 00 00 00 00 00 FF 0F 02 [11:28:12]RasterBufferAndPrint [11:28:12]line Счет N : (1)593120 [11:28:12]line ИНН: 02508201610067 [11:28:12]line Контрольно-Кассовый Чек [11:28:12]line ПРОДАЖА [11:28:12]line ТРК (МРК, ГНК) : 42 [11:28:12]line Товар: 2710124130 [11:28:12]line Аи-92-К-5 [11:28:12]line 10.330 * 67.80 [11:28:12]line = 700.37 [11:28:12]line НДС 12% НСП 1% [11:28:12]line > о реализуемом товаре [11:28:12]line ОКРУГЛЕНИЕ: -0.37 [11:28:12]line ИТОГО: 700.00 [11:28:12]line НСП 1% : 6.20 [11:28:12]line НДС 12% : 74.38 [11:28:12]line Наличными: 0.00 [11:28:12]line Безнал.: 700.00 [11:28:12]line Место: АЗС № 136 "Партнер Нефть" [11:28:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:28:12]line СНО: Общий режим [11:28:12]line Чек 114 19.08.2024 11:28 [11:28:12]line Смена: 452 ФФД: 1.0 [11:28:12]line ЗНМ: 0300000067 [11:28:12]line РНМ: 0000000000092569 [11:28:12]line Версия ККМ: 001 [11:28:12]line Платежная система: Бакай Банк [11:28:12]line ФМ: 0000000000871776 [11:28:12]line ФД: 139279 [11:28:12]line ФПД: 22877094830922 [11:28:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112813&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139279&fm=22877094830922&tin=02508201610067®Number=0000000000092569&sum=70000 [11:28:13]written 0, free lines is 4095 [11:28:13]OFD Sender: Processing packet 139279 [packets to send 137, broken 136] [11:28:13]ProducePacketName [11:28:13]name=ofd_packets/00139279 [11:28:13]OFD Sender: To server: pG, [11:28:13]CommunicateWithHost lk.salyk.kg:30040 [11:28:13]ConnectInit lk.salyk.kg [11:28:13]Connected sock=10 [11:28: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 37 36 0F 01 00 00 19 74 07 01 4C 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 4D 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 20 02 00 35 04 06 00 14 CE 7D 1C 63 4A 98 32 AA A9 09 1A 75 E8 [11:28: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 37 36 4F 00 00 00 F5 57 47 00 62 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 37 36 10 04 04 00 0F 20 02 00 F4 03 04 00 E3 D2 C2 66 B6 04 01 00 00 84 47 5A 98 51 4E 43 ED [11:28:13]CommunicateWithHost err = 0 [11:28:13]CheckOFDResponse [11:28:13]1017 (14) - 77093643461234 [11:28:13]1041 (16) - 0000000000871776 [11:28:13]1040 (4) - 139279 [11:28:13]1012 (4) - 19.08.2024 05:06 [11:28:13]1206 (1) - 0 [11:28:13]OFD Sender: Remove packet 139279 [11:28:13]ProducePacketName [11:28:13]name=ofd_packets/00139279 [11:28:13]NVStorageDeleteData [11:28:13]Write to MH i2c: 01 00 00 F6 22 18 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 F6 22 00 00 00 00 00 D6 0C 01 [11:28:13]RasterBufferAndPrint [11:28:13]line [11:28:13]line [11:28:13]line [11:28:13]line [11:28:13]line [11:28:13]written 0, free lines is 3293 [11:28:13]MH_Cut [11:28:13]Write to MH i2c: D1 01 00 FD 22 01 F1 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: D1 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: D1 01 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: D1 01 00 FD 22 00 F0 [11:28:13]Write to MH i2c: 01 00 00 FE 22 20 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:14]OFD Sender: No OFD packet to send [11:28:14]*** Cut start [11:28:14]*** Partial cut [11:28:14]*** CUTSNS_PIN = 1 [11:28:14]*** CUTSNS_PIN = 0 [11:28:14]*** Brake cut motor [11:28:14]Read from MH i2c: 01 [11:28:14]MH_I2C_Read... [11:28:14]*** Stop cut motor [11:28:14]*** Cut end [11:28:14]Read from MH i2c: 01 07 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 FE 22 00 00 00 00 00 FF 0F 35 [11:28:14]process_action close_receipt done [11:28:14]requested_data is exist [11:28:14]produce_requested_data [11:28:14]requested_item fm.sn is exist - process it [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 11 00 00 [11:28:14]Write to MH i2c: E2 08 00 FF 22 80 11 00 00 00 00 00 00 9B [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 FF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [11:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:28:15]wFMCommunicate OK [11:28:15]requested_item fd.num is exist - process it [11:28:15]SAM_PROTO_GetFieldsCounters [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 13 00 00 [11:28:15]Write to MH i2c: E2 08 00 00 23 80 13 00 00 00 00 00 00 9F [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 62 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 62 00 00 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [11:28: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_GetFieldsCounters done [11:28:15]requested_item shift.num is exist - process it [11:28:15]requested_item shift.opened is exist - process it [11:28:15]req_shift_opened [11:28:15]FM_GetShiftState [11:28:15]SAM_PROTO_GetShiftState [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 13 01 00 [11:28:15]Write to MH i2c: E2 08 00 01 23 80 13 01 00 00 00 00 00 A1 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0E 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0E 00 01 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 58 [11:28:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_GetShiftState done [11:28:15]FM_GetShiftState done [11:28:15]req_shift_opened done [11:28:15]requested_item shift.open_date is exist - process it [11:28:15]req_shift_open_date [11:28:15]req_shift_open_date done [11:28:15]produce_requested_data done [11:28:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139279,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:28:15]process_action_free close_receipt [11:28:15]json_value_free [11:28:15]json_value_free done [11:28:15]process_json_proto returns [11:28:15]Send response to host [11:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139279,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:28:15]free response buf [11:28:15]execute_script done [11:28:15]execute_script returns [11:28:15]free content buf [11:28:15]Sock 7.Close socket [11:28:15]Sock 7.Thread stoped [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]accept exits with 9 [11:29:14]New connection [11:29:14]New thread 3067202916 created [11:29:14]Thread 3067059556 joined [11:29:14]Waiting for new connection... [11:29:14] Sock 9.Parse request [11:29:14]Sock 9.Check first char [11:29:14]Sock 9.First char is OK [11:29:14]request: POST /json_proto HTTP/1.0 [11:29:14]Method: POST [11:29:14]URL: /json_proto [11:29:14]Method is POST - this is cgi request [11:29:14]url: /json_proto [11:29:14]query_string will be loaded in cgi processing [11:29:14]execute_cgi json_proto POST (null) [11:29:14]execute_cgi path=json_proto method=POST [11:29:14]POST find Content-Length [11:29:14]Host: 172.17.45.67:8080 [11:29:14]Content-Length: 827 [11:29:14]Content-Type: application/json [11:29:14] [11:29:14]POST finish read [11:29:14]Found Content-Length = 827 [11:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 5000.00, "payments": [ { "type": 1, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:14]execute_script... [11: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)593121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 5000.00, "payments": [ { "type": 1, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:14]POST & json_proto [11:29:14]process_json_proto [11:29:14]json parsed OK: [11:29:14]protocol is kg_v1.0 [11:29:14]action value=close_receipt [11:29:14]process_action close_receipt [11:29:14]cmd_close_receipt [11:29:14]MH_GetDate [11:29:14]Write to MH i2c: F0 00 00 02 23 14 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: F0 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: F0 09 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: F0 09 00 02 23 00 8C 2C C3 66 5F 7F 2B 66 6D [11:29:14]GetLastDocTimeStamp 1724066893 [11:29:14]current date 1724066956 [11:29:14]FM_GetShiftState [11:29:14]SAM_PROTO_GetShiftState [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 13 01 00 [11:29:14]Write to MH i2c: E2 08 00 03 23 80 13 01 00 00 00 00 00 A3 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0E 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0E 00 03 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5A [11:29:14]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:29:14]wFMCommunicate OK [11:29:14]SAM_PROTO_GetShiftState done [11:29:14]FM_GetShiftState done [11:29:14]opened in 1724027888 [11:29:14]opened+sec_in_day 1724114288 [11:29:14]quantity*price = 500024 [11:29:14]sum+1 = 500025 [11:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 115 19.08.2024 11:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139280 ФПД: 85083223958385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112916&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139280&fm=85083223958385&tin=02508201610067®Number=0000000000092569&sum=500000 [11:29:15]StoreToDocumentArchive [11:29:15]shift 452 fd 139280 [11:29:15]save to /storage/0452/doc_00139280 [11:29:15]save last doc name /storage/0452/doc_00139280 to /storage/kkm_last_doc_name [11:29:15]save OK [11:29:15]Clear old archive folders... [11:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:29:15]tlvbuf is 01E466F0 [11:29:15]SAM_PROTO_ClearQueue [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 09 00 00 [11:29:15]Write to MH i2c: E2 08 00 10 23 80 09 00 00 00 00 00 00 A5 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 03 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 03 00 10 23 00 90 00 A7 [11:29:15]RAPDU: 90 00 [11:29:15]wFMCommunicate OK [11:29:15]SAM_PROTO_ClearQueue done [11:29:15]KKMCreateOFDPacket [11:29:15]OFDProtocolAddRootSTLVToBuf [11:29:15]FM_MakeSignedData [11:29:15]FM_MakeSignedData [11:29:15]SAM_PROTO_SignData [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 0D 01 02 [11:29:15]Write to MH i2c: E2 08 00 11 23 80 0D 01 02 00 00 00 00 AD [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:15]Read from MH i2c: E2 03 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 03 00 11 23 00 90 00 A8 [11:29:15]RAPDU: 90 00 [11:29:15]wFMCommunicate OK [11:29:15]wFMCommunicate request_size=255 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8C 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 20 02 00 35 04 06 00 [11:29:15]Write to MH i2c: E2 02 01 12 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8C 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 20 02 00 35 04 06 00 00 00 82 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 03 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 03 00 12 23 00 90 00 A9 [11:29:15]RAPDU: 90 00 [11:29:15]wFMCommunicate OK [11:29:15]wFMCommunicate request_size=11 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 0D 02 02 06 4D 61 FB 57 23 71 [11:29:15]Write to MH i2c: E2 0E 00 13 23 80 0D 02 02 06 00 4D 61 FB 57 23 71 00 00 50 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 03 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 03 00 13 23 00 90 00 AA [11:29:15]RAPDU: 90 00 [11:29:15]wFMCommunicate OK [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 0D 03 02 [11:29:15]Write to MH i2c: E2 08 00 14 23 80 0D 03 02 00 00 00 00 B2 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 0B 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 0B 00 14 23 00 73 48 96 32 83 B3 FD 90 90 00 F9 [11:29:15]RAPDU: 73 48 96 32 83 B3 FD 90 90 00 [11:29:15]wFMCommunicate OK [11:29:15]SAM_PROTO_SignData done [11:29:15]FM_MakeSignedData done [11:29:15]CreateOFDProtocolMessage [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 11 00 00 [11:29:15]Write to MH i2c: E2 08 00 15 23 80 11 00 00 00 00 00 00 B2 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 17 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 17 00 15 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [11:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:29:15]wFMCommunicate OK [11:29:15]CreateOFDProtocolMessage done [11:29:15]OFDSenderStorePacket 139280 [11:29:15]StoreOFDPacket docnum=139280 [11:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 EF C2 08 01 E5 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8C 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 20 02 00 35 04 06 00 4D 61 FB 57 23 71 73 48 96 32 83 B3 FD 90 [11:29:15]CheckFolder [11:29:15]dirname=/storage/ofd_packets [11:29:15]CheckFolder done [11:29:15]ProducePacketName [11:29:15]name=ofd_packets/00139280 [11:29:15]NVStorageSaveData ofd_packets/00139280 [11:29:15]File name is /storage/ofd_packets/00139280 [11:29:15]Write 302 bytes [11:29:15]NVStorageSaveData done [11:29:15]OFDSenderStorePacket done [11:29:15]KKMCreateOFDPacket done [11:29:15]NVStorageSaveData kkm_last_timestamp [11:29:15]File name is /storage/kkm_last_timestamp [11:29:15]Write 4 bytes [11:29:15]NVStorageSaveData done [11:29:15]ExternCall_PrintAddStr [11:29:15]wPrintStart [11:29:15]Write to MH i2c: 01 00 00 16 23 39 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: 01 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: 01 07 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: 01 07 00 16 23 00 00 00 00 00 FF 0F 4E [11:29:15]RasterBufferAndPrint [11:29:15]line Счет N : (1)593121 [11:29:15]line ИНН: 02508201610067 [11:29:15]line Контрольно-Кассовый Чек [11:29:15]line ПРОДАЖА [11:29:15]line ТРК (МРК, ГНК) : 34 [11:29:15]line Товар: 2710194210 [11:29:15]line ДТ(л)-К-5 [11:29:15]line 65.620 * 76.20 [11:29:15]line = 5000.24 [11:29:15]line НДС 12% НСП 1% [11:29:15]line > о реализуемом товаре [11:29:15]line ОКРУГЛЕНИЕ: -0.24 [11:29:15]line ИТОГО: 5000.00 [11:29:15]line НСП 1% : 44.25 [11:29:15]line НДС 12% : 531.00 [11:29:15]line Наличными: 0.00 [11:29:15]line Безнал.: 5000.00 [11:29:15]line Место: АЗС № 136 "Партнер Нефть" [11:29:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:29:15]line СНО: Общий режим [11:29:15]line Чек 115 19.08.2024 11:29 [11:29:15]line Смена: 452 ФФД: 1.0 [11:29:15]line ЗНМ: 0300000067 [11:29:15]line РНМ: 0000000000092569 [11:29:15]line Версия ККМ: 001 [11:29:15]line Платежная система: O! деньги [11:29:15]line ФМ: 0000000000871776 [11:29:15]line ФД: 139280 [11:29:15]line ФПД: 85083223958385 [11:29:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112916&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139280&fm=85083223958385&tin=02508201610067®Number=0000000000092569&sum=500000 [11:29:16]OFD Sender: Processing packet 139280 [packets to send 137, broken 136] [11:29:16]ProducePacketName [11:29:16]name=ofd_packets/00139280 [11:29:16]OFD Sender: To server: pG, [11:29:16]CommunicateWithHost lk.salyk.kg:30040 [11:29:16]ConnectInit lk.salyk.kg [11:29:16]written 0, free lines is 4095 [11:29:16]Connected sock=10 [11: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 37 36 10 01 00 00 EF C2 08 01 E5 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8C 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 20 02 00 35 04 06 00 4D 61 FB 57 23 71 73 48 96 32 83 B3 FD 90 [11: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 37 36 4F 00 00 00 2C 06 47 00 57 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 20 02 00 F4 03 04 00 22 D3 C2 66 B6 04 01 00 00 0A 61 90 B7 CE 1C 2C 88 [11:29:16]CommunicateWithHost err = 0 [11:29:16]CheckOFDResponse [11:29:16]1017 (14) - 77093643461234 [11:29:16]1041 (16) - 0000000000871776 [11:29:16]1040 (4) - 139280 [11:29:16]1012 (4) - 19.08.2024 05:07 [11:29:16]1206 (1) - 0 [11:29:16]OFD Sender: Remove packet 139280 [11:29:16]ProducePacketName [11:29:16]name=ofd_packets/00139280 [11:29:16]NVStorageDeleteData [11:29:16]Write to MH i2c: 01 00 00 41 23 64 [11:29:16]Write i2c OK [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: 01 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: 01 07 00 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: 01 07 00 41 23 00 00 00 00 00 DF 0C 56 [11:29:16]RasterBufferAndPrint [11:29:16]line [11:29:16]line [11:29:16]line [11:29:16]line [11:29:16]line [11:29:16]written 0, free lines is 3300 [11:29:16]MH_Cut [11:29:16]Write to MH i2c: D1 01 00 48 23 01 3D [11:29:16]Write i2c OK [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: D1 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: D1 01 00 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: D1 01 00 48 23 00 3C [11:29:16]Write to MH i2c: 01 00 00 49 23 6C [11:29:16]Write i2c OK [11:29:16]MH_I2C_Read... [11:29:17]OFD Sender: No OFD packet to send [11:29:17]*** Cut start [11:29:17]*** Partial cut [11:29:17]*** CUTSNS_PIN = 1 [11:29:17]*** CUTSNS_PIN = 0 [11:29:17]*** Brake cut motor [11:29:17]Read from MH i2c: 01 [11:29:17]MH_I2C_Read... [11:29:17]*** Stop cut motor [11:29:17]*** Cut end [11:29:17]Read from MH i2c: 01 07 00 [11:29:17]MH_I2C_Read... [11:29:17]Read from MH i2c: 01 07 00 49 23 00 00 00 00 00 FF 0F 81 [11:29:17]process_action close_receipt done [11:29:17]requested_data is exist [11:29:17]produce_requested_data [11:29:17]requested_item fm.sn is exist - process it [11:29:17]wFMCommunicate request_size=4 [11:29:17]MH_SAM_APDU [11:29:17]CAPDU: 80 11 00 00 [11:29:17]Write to MH i2c: E2 08 00 4A 23 80 11 00 00 00 00 00 00 E7 [11:29:17]Write i2c OK [11:29:17]MH_I2C_Read... [11:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:18]Read from MH i2c: E2 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: E2 17 00 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: E2 17 00 4A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [11:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:29:18]wFMCommunicate OK [11:29:18]requested_item fd.num is exist - process it [11:29:18]SAM_PROTO_GetFieldsCounters [11:29:18]wFMCommunicate request_size=4 [11:29:18]MH_SAM_APDU [11:29:18]CAPDU: 80 13 00 00 [11:29:18]Write to MH i2c: E2 08 00 4B 23 80 13 00 00 00 00 00 00 EA [11:29:18]Write i2c OK [11:29:18]MH_I2C_Read... [11:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:18]Read from MH i2c: E2 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: E2 62 00 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: E2 62 00 4B 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [11:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:18]wFMCommunicate OK [11:29:18]SAM_PROTO_GetFieldsCounters done [11:29:18]requested_item shift.num is exist - process it [11:29:18]requested_item shift.opened is exist - process it [11:29:18]req_shift_opened [11:29:18]FM_GetShiftState [11:29:18]SAM_PROTO_GetShiftState [11:29:18]wFMCommunicate request_size=4 [11:29:18]MH_SAM_APDU [11:29:18]CAPDU: 80 13 01 00 [11:29:18]Write to MH i2c: E2 08 00 4C 23 80 13 01 00 00 00 00 00 EC [11:29:18]Write i2c OK [11:29:18]MH_I2C_Read... [11:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:18]Read from MH i2c: E2 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: E2 0E 00 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: E2 0E 00 4C 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A3 [11:29:18]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:29:18]wFMCommunicate OK [11:29:18]SAM_PROTO_GetShiftState done [11:29:18]FM_GetShiftState done [11:29:18]req_shift_opened done [11:29:18]requested_item shift.open_date is exist - process it [11:29:18]req_shift_open_date [11:29:18]req_shift_open_date done [11:29:18]produce_requested_data done [11:29:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139280,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:29:18]process_action_free close_receipt [11:29:18]json_value_free [11:29:18]json_value_free done [11:29:18]process_json_proto returns [11:29:18]Send response to host [11:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139280,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:29:18]free response buf [11:29:18]execute_script done [11:29:18]execute_script returns [11:29:18]free content buf [11:29:18]Sock 9.Close socket [11:29:18]Sock 9.Thread stoped [11:29:22]OFD Sender: No OFD packet to send [11:29:25]accept exits with 7 [11:29:25]New connection [11:29:25]New thread 3067059556 created [11:29:25]Thread 3067202916 joined [11:29:25]Waiting for new connection... [11:29:25] Sock 7.Parse request [11:29:25]Sock 7.Check first char [11:29:25]Sock 7.First char is OK [11:29:25]request: POST /json_proto HTTP/1.0 [11:29:25]Method: POST [11:29:25]URL: /json_proto [11:29:25]Method is POST - this is cgi request [11:29:25]url: /json_proto [11:29:25]query_string will be loaded in cgi processing [11:29:25]execute_cgi json_proto POST (null) [11:29:25]execute_cgi path=json_proto method=POST [11:29:25]POST find Content-Length [11:29:25]Host: 172.17.45.67:8080 [11:29:25]Content-Length: 677 [11:29:25]Content-Type: application/json [11:29:25] [11:29:25]POST finish read [11:29:25]Found Content-Length = 677 [11:29:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:25]execute_script... [11:29: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)593123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:25]POST & json_proto [11:29:25]process_json_proto [11:29:25]json parsed OK: [11:29:25]protocol is kg_v1.0 [11:29:25]action value=close_receipt [11:29:25]process_action close_receipt [11:29:25]cmd_close_receipt [11:29:25]MH_GetDate [11:29:25]Write to MH i2c: F0 00 00 4D 23 5F [11:29:25]Write i2c OK [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: F0 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: F0 09 00 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: F0 09 00 4D 23 00 97 2C C3 66 5F 7F 2B 66 C3 [11:29:25]GetLastDocTimeStamp 1724066956 [11:29:25]current date 1724066967 [11:29:25]FM_GetShiftState [11:29:25]SAM_PROTO_GetShiftState [11:29:25]wFMCommunicate request_size=4 [11:29:25]MH_SAM_APDU [11:29:25]CAPDU: 80 13 01 00 [11:29:25]Write to MH i2c: E2 08 00 4E 23 80 13 01 00 00 00 00 00 EE [11:29:25]Write i2c OK [11:29:25]MH_I2C_Read... [11:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:25]Read from MH i2c: E2 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: E2 0E 00 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: E2 0E 00 4E 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A5 [11:29:25]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:29:25]wFMCommunicate OK [11:29:25]SAM_PROTO_GetShiftState done [11:29:25]FM_GetShiftState done [11:29:25]opened in 1724027888 [11:29:25]opened+sec_in_day 1724114288 [11:29:25]quantity*price = 50036 [11:29:25]sum+1 = 50037 [11:29:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 116 19.08.2024 11:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139281 ФПД: 237007544430287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139281&fm=237007544430287&tin=02508201610067®Number=0000000000092569&sum=50000 [11:29:26]StoreToDocumentArchive [11:29:26]shift 452 fd 139281 [11:29:26]save to /storage/0452/doc_00139281 [11:29:26]save last doc name /storage/0452/doc_00139281 to /storage/kkm_last_doc_name [11:29:26]save OK [11:29:26]Clear old archive folders... [11:29:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:26]tlvbuf is 01E4BC60 [11:29:26]SAM_PROTO_ClearQueue [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 09 00 00 [11:29:26]Write to MH i2c: E2 08 00 5B 23 80 09 00 00 00 00 00 00 F0 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 5B 23 00 90 00 F2 [11:29:26]RAPDU: 90 00 [11:29:26]wFMCommunicate OK [11:29:26]SAM_PROTO_ClearQueue done [11:29:26]KKMCreateOFDPacket [11:29:26]OFDProtocolAddRootSTLVToBuf [11:29:26]FM_MakeSignedData [11:29:26]FM_MakeSignedData [11:29:26]SAM_PROTO_SignData [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 0D 01 02 [11:29:26]Write to MH i2c: E2 08 00 5C 23 80 0D 01 02 00 00 00 00 F8 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 5C 23 00 90 00 F3 [11:29:26]RAPDU: 90 00 [11:29:26]wFMCommunicate OK [11:29:26]wFMCommunicate request_size=255 [11:29:26]MH_SAM_APDU [11:29: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 00 00 00 F4 03 04 00 97 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 20 02 00 35 04 06 00 D7 [11:29:26]Write to MH i2c: E2 02 01 5D 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 00 00 00 F4 03 04 00 97 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 20 02 00 35 04 06 00 D7 00 00 B0 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 5D 23 00 90 00 F4 [11:29:26]RAPDU: 90 00 [11:29:26]wFMCommunicate OK [11:29:26]wFMCommunicate request_size=10 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 0D 02 02 05 8E 9E 7E AE CF [11:29:26]Write to MH i2c: E2 0D 00 5E 23 80 0D 02 02 05 00 8E 9E 7E AE CF 00 00 2C [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 5E 23 00 90 00 F5 [11:29:26]RAPDU: 90 00 [11:29:26]wFMCommunicate OK [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 0D 03 02 [11:29:26]Write to MH i2c: E2 08 00 5F 23 80 0D 03 02 00 00 00 00 FD [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 0B 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 0B 00 5F 23 00 AA E3 C6 33 05 D5 90 66 90 00 54 [11:29:26]RAPDU: AA E3 C6 33 05 D5 90 66 90 00 [11:29:26]wFMCommunicate OK [11:29:26]SAM_PROTO_SignData done [11:29:26]FM_MakeSignedData done [11:29:26]CreateOFDProtocolMessage [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 11 00 00 [11:29:26]Write to MH i2c: E2 08 00 60 23 80 11 00 00 00 00 00 00 FD [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 17 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 17 00 60 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [11:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:29:26]wFMCommunicate OK [11:29:26]CreateOFDProtocolMessage done [11:29:26]OFDSenderStorePacket 139281 [11:29:26]StoreOFDPacket docnum=139281 [11:29:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C 54 07 01 EC A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 00 00 00 F4 03 04 00 97 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 20 02 00 35 04 06 00 D7 8E 9E 7E AE CF AA E3 C6 33 05 D5 90 66 [11:29:26]CheckFolder [11:29:26]dirname=/storage/ofd_packets [11:29:26]CheckFolder done [11:29:26]ProducePacketName [11:29:26]name=ofd_packets/00139281 [11:29:26]NVStorageSaveData ofd_packets/00139281 [11:29:26]File name is /storage/ofd_packets/00139281 [11:29:26]Write 301 bytes [11:29:26]NVStorageSaveData done [11:29:26]OFDSenderStorePacket done [11:29:26]KKMCreateOFDPacket done [11:29:26]NVStorageSaveData kkm_last_timestamp [11:29:26]File name is /storage/kkm_last_timestamp [11:29:26]Write 4 bytes [11:29:26]NVStorageSaveData done [11:29:26]ExternCall_PrintAddStr [11:29:26]wPrintStart [11:29:26]Write to MH i2c: 01 00 00 61 23 84 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: 01 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: 01 07 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: 01 07 00 61 23 00 00 00 00 00 FF 0F 99 [11:29:26]RasterBufferAndPrint [11:29:26]line Счет N : (1)593123 [11:29:26]line ИНН: 02508201610067 [11:29:26]line Контрольно-Кассовый Чек [11:29:26]line ПРОДАЖА [11:29:26]line ТРК (МРК, ГНК) : 52 [11:29:26]line Товар: 2710124130 [11:29:26]line Аи-92-К-5 [11:29:26]line 7.380 * 67.80 [11:29:26]line = 500.36 [11:29:26]line НДС 12% НСП 1% [11:29:26]line > о реализуемом товаре [11:29:26]line ОКРУГЛЕНИЕ: -0.36 [11:29:26]line ИТОГО: 500.00 [11:29:26]line Внесено: 500.00 [11:29:26]line СДАЧА: 0.00 [11:29:26]line НСП 1% : 4.43 [11:29:26]line НДС 12% : 53.14 [11:29:26]line Наличными: 500.00 [11:29:26]line Безнал.: 0.00 [11:29:26]line Место: АЗС № 136 "Партнер Нефть" [11:29:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:29:26]line СНО: Общий режим [11:29:26]line Чек 116 19.08.2024 11:29 [11:29:26]line Смена: 452 ФФД: 1.0 [11:29:26]line ЗНМ: 0300000067 [11:29:26]line РНМ: 0000000000092569 [11:29:26]line Версия ККМ: 001 [11:29:26]line ФМ: 0000000000871776 [11:29:26]line ФД: 139281 [11:29:26]line ФПД: 237007544430287 [11:29:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139281&fm=237007544430287&tin=02508201610067®Number=0000000000092569&sum=50000 [11:29:27]OFD Sender: Processing packet 139281 [packets to send 137, broken 136] [11:29:27]ProducePacketName [11:29:27]name=ofd_packets/00139281 [11:29:27]OFD Sender: To server: pG, [11:29:27]CommunicateWithHost lk.salyk.kg:30040 [11:29:27]ConnectInit lk.salyk.kg [11:29:27]written 0, free lines is 4095 [11:29:27]Connected sock=10 [11:29: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 37 36 0F 01 00 00 9C 54 07 01 EC A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 00 00 00 F4 03 04 00 97 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 20 02 00 35 04 06 00 D7 8E 9E 7E AE CF AA E3 C6 33 05 D5 90 66 [11:29: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 37 36 4F 00 00 00 D8 85 47 00 4C 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 37 36 10 04 04 00 11 20 02 00 F4 03 04 00 2D D3 C2 66 B6 04 01 00 00 77 54 4E D9 54 C4 7A A2 [11:29:27]CommunicateWithHost err = 0 [11:29:27]CheckOFDResponse [11:29:27]1017 (14) - 77093643461234 [11:29:27]1041 (16) - 0000000000871776 [11:29:27]1040 (4) - 139281 [11:29:27]1012 (4) - 19.08.2024 05:07 [11:29:27]1206 (1) - 0 [11:29:27]OFD Sender: Remove packet 139281 [11:29:27]ProducePacketName [11:29:27]name=ofd_packets/00139281 [11:29:27]NVStorageDeleteData [11:29:27]Write to MH i2c: 01 00 00 8C 23 AF [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: 01 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: 01 07 00 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: 01 07 00 8C 23 00 00 00 00 00 E4 0C A6 [11:29:27]RasterBufferAndPrint [11:29:27]line [11:29:27]line [11:29:27]line [11:29:27]line [11:29:27]line [11:29:27]written 0, free lines is 3309 [11:29:27]MH_Cut [11:29:27]Write to MH i2c: D1 01 00 93 23 01 88 [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: D1 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: D1 01 00 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: D1 01 00 93 23 00 87 [11:29:27]Write to MH i2c: 01 00 00 94 23 B7 [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:28]OFD Sender: No OFD packet to send [11:29:28]*** Cut start [11:29:28]*** Partial cut [11:29:28]*** CUTSNS_PIN = 1 [11:29:28]*** CUTSNS_PIN = 0 [11:29:28]*** Brake cut motor [11:29:29]Read from MH i2c: 01 [11:29:29]MH_I2C_Read... [11:29:29]*** Stop cut motor [11:29:29]*** Cut end [11:29:29]Read from MH i2c: 01 07 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 07 00 94 23 00 00 00 00 00 FF 0F CC [11:29:29]process_action close_receipt done [11:29:29]requested_data is exist [11:29:29]produce_requested_data [11:29:29]requested_item fm.sn is exist - process it [11:29:29]wFMCommunicate request_size=4 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 11 00 00 [11:29:29]Write to MH i2c: E2 08 00 95 23 80 11 00 00 00 00 00 00 32 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 17 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 17 00 95 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 89 [11:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:29:29]wFMCommunicate OK [11:29:29]requested_item fd.num is exist - process it [11:29:29]SAM_PROTO_GetFieldsCounters [11:29:29]wFMCommunicate request_size=4 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 13 00 00 [11:29:29]Write to MH i2c: E2 08 00 96 23 80 13 00 00 00 00 00 00 35 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 62 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 62 00 96 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [11:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:29]wFMCommunicate OK [11:29:29]SAM_PROTO_GetFieldsCounters done [11:29:29]requested_item shift.num is exist - process it [11:29:29]requested_item shift.opened is exist - process it [11:29:29]req_shift_opened [11:29:29]FM_GetShiftState [11:29:29]SAM_PROTO_GetShiftState [11:29:29]wFMCommunicate request_size=4 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 13 01 00 [11:29:29]Write to MH i2c: E2 08 00 97 23 80 13 01 00 00 00 00 00 37 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 0E 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 0E 00 97 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EE [11:29:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:29:29]wFMCommunicate OK [11:29:29]SAM_PROTO_GetShiftState done [11:29:29]FM_GetShiftState done [11:29:29]req_shift_opened done [11:29:29]requested_item shift.open_date is exist - process it [11:29:29]req_shift_open_date [11:29:29]req_shift_open_date done [11:29:29]produce_requested_data done [11:29:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139281,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:29:29]process_action_free close_receipt [11:29:29]json_value_free [11:29:29]json_value_free done [11:29:29]process_json_proto returns [11:29:29]Send response to host [11:29:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139281,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:29:29]free response buf [11:29:29]execute_script done [11:29:29]execute_script returns [11:29:29]free content buf [11:29:29]Sock 7.Close socket [11:29:29]Sock 7.Thread stoped [11:29:33]OFD Sender: No OFD packet to send [11:29:36]accept exits with 9 [11:29:36]New connection [11:29:36]New thread 3067202916 created [11:29:36]Thread 3067059556 joined [11:29:36]Waiting for new connection... [11:29:36] Sock 9.Parse request [11:29:36]Sock 9.Check first char [11:29:36]Sock 9.First char is OK [11:29:36]request: POST /json_proto HTTP/1.0 [11:29:36]Method: POST [11:29:36]URL: /json_proto [11:29:36]Method is POST - this is cgi request [11:29:36]url: /json_proto [11:29:36]query_string will be loaded in cgi processing [11:29:36]execute_cgi json_proto POST (null) [11:29:36]execute_cgi path=json_proto method=POST [11:29:36]POST find Content-Length [11:29:36]Host: 172.17.45.67:8080 [11:29:36]Content-Length: 753 [11:29:36]Content-Type: application/json [11:29:36] [11:29:36]POST finish read [11:29:36]Found Content-Length = 753 [11:29:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 6.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30026522", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:36]execute_script... [11:29: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)593122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 6.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30026522", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:36]POST & json_proto [11:29:36]process_json_proto [11:29:36]json parsed OK: [11:29:36]protocol is kg_v1.0 [11:29:36]action value=close_receipt [11:29:36]process_action close_receipt [11:29:36]cmd_close_receipt [11:29:36]MH_GetDate [11:29:36]Write to MH i2c: F0 00 00 98 23 AA [11:29:36]Write i2c OK [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: F0 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: F0 09 00 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: F0 09 00 98 23 00 A3 2C C3 66 5F 7F 2B 66 1A [11:29:36]GetLastDocTimeStamp 1724066967 [11:29:36]current date 1724066979 [11:29:36]FM_GetShiftState [11:29:36]SAM_PROTO_GetShiftState [11:29:36]wFMCommunicate request_size=4 [11:29:36]MH_SAM_APDU [11:29:36]CAPDU: 80 13 01 00 [11:29:36]Write to MH i2c: E2 08 00 99 23 80 13 01 00 00 00 00 00 39 [11:29:36]Write i2c OK [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: E2 [11:29:36]MH_I2C_Read... [11:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:36]Read from MH i2c: E2 0E 00 [11:29:36]MH_I2C_Read... [11:29:36]Read from MH i2c: E2 0E 00 99 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F0 [11:29:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:29:36]wFMCommunicate OK [11:29:36]SAM_PROTO_GetShiftState done [11:29:36]FM_GetShiftState done [11:29:36]opened in 1724027888 [11:29:36]opened+sec_in_day 1724114288 [11:29:36]quantity*price = 0 [11:29:36]sum+1 = 1 [11:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 117 19.08.2024 11:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30026522 ФМ: 0000000000871776 ФД: 139282 ФПД: 35154548347177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139282&fm=35154548347177&tin=02508201610067®Number=0000000000092569&sum=0 [11:29:37]StoreToDocumentArchive [11:29:37]shift 452 fd 139282 [11:29:37]save to /storage/0452/doc_00139282 [11:29:37]save last doc name /storage/0452/doc_00139282 to /storage/kkm_last_doc_name [11:29:37]save OK [11:29:37]Clear old archive folders... [11:29:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:37]tlvbuf is 01DECA00 [11:29:37]SAM_PROTO_ClearQueue [11:29:37]wFMCommunicate request_size=4 [11:29:37]MH_SAM_APDU [11:29:37]CAPDU: 80 09 00 00 [11:29:37]Write to MH i2c: E2 08 00 AA 23 80 09 00 00 00 00 00 00 3F [11:29:37]Write i2c OK [11:29:37]MH_I2C_Read... [11:29:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:37]Read from MH i2c: E2 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 03 00 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 03 00 AA 23 00 90 00 41 [11:29:37]RAPDU: 90 00 [11:29:37]wFMCommunicate OK [11:29:37]SAM_PROTO_ClearQueue done [11:29:37]KKMCreateOFDPacket [11:29:37]OFDProtocolAddRootSTLVToBuf [11:29:37]FM_MakeSignedData [11:29:37]FM_MakeSignedData [11:29:37]SAM_PROTO_SignData [11:29:37]wFMCommunicate request_size=4 [11:29:37]MH_SAM_APDU [11:29:37]CAPDU: 80 0D 01 02 [11:29:37]Write to MH i2c: E2 08 00 AB 23 80 0D 01 02 00 00 00 00 47 [11:29:37]Write i2c OK [11:29:37]MH_I2C_Read... [11:29:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:37]Read from MH i2c: E2 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 03 00 [11:29:37]MH_I2C_Read... [11:29:37]Read from MH i2c: E2 03 00 AB 23 00 90 00 42 [11:29:37]RAPDU: 90 00 [11:29:37]wFMCommunicate OK [11:29:37]wFMCommunicate request_size=255 [11:29:37]MH_SAM_APDU [11:29: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 70 17 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 75 00 00 00 F4 03 04 00 A3 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 20 02 00 35 04 06 00 1F [11:29:37]Write to MH i2c: E2 02 01 AC 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 17 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 75 00 00 00 F4 03 04 00 A3 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 20 02 00 35 04 06 00 1F 00 00 67 [11:29:37]Write i2c OK [11:29:37]MH_I2C_Read... [11:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:38]Read from MH i2c: E2 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 03 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 03 00 AC 23 00 90 00 43 [11:29:38]RAPDU: 90 00 [11:29:38]wFMCommunicate OK [11:29:38]wFMCommunicate request_size=10 [11:29:38]MH_SAM_APDU [11:29:38]CAPDU: 80 0D 02 02 05 F9 0E 5D D1 29 [11:29:38]Write to MH i2c: E2 0D 00 AD 23 80 0D 02 02 05 00 F9 0E 5D D1 29 00 00 B2 [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:38]Read from MH i2c: E2 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 03 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 03 00 AD 23 00 90 00 44 [11:29:38]RAPDU: 90 00 [11:29:38]wFMCommunicate OK [11:29:38]wFMCommunicate request_size=4 [11:29:38]MH_SAM_APDU [11:29:38]CAPDU: 80 0D 03 02 [11:29:38]Write to MH i2c: E2 08 00 AE 23 80 0D 03 02 00 00 00 00 4C [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:38]Read from MH i2c: E2 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 0B 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 0B 00 AE 23 00 C5 9D 2A 22 DA 91 14 29 90 00 A3 [11:29:38]RAPDU: C5 9D 2A 22 DA 91 14 29 90 00 [11:29:38]wFMCommunicate OK [11:29:38]SAM_PROTO_SignData done [11:29:38]FM_MakeSignedData done [11:29:38]CreateOFDProtocolMessage [11:29:38]wFMCommunicate request_size=4 [11:29:38]MH_SAM_APDU [11:29:38]CAPDU: 80 11 00 00 [11:29:38]Write to MH i2c: E2 08 00 AF 23 80 11 00 00 00 00 00 00 4C [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:38]Read from MH i2c: E2 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 17 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: E2 17 00 AF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A3 [11:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:29:38]wFMCommunicate OK [11:29:38]CreateOFDProtocolMessage done [11:29:38]OFDSenderStorePacket 139282 [11:29:38]StoreOFDPacket docnum=139282 [11:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 03 DC 07 01 73 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 70 17 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 75 00 00 00 F4 03 04 00 A3 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 20 02 00 35 04 06 00 1F F9 0E 5D D1 29 C5 9D 2A 22 DA 91 14 29 [11:29:38]CheckFolder [11:29:38]dirname=/storage/ofd_packets [11:29:38]CheckFolder done [11:29:38]ProducePacketName [11:29:38]name=ofd_packets/00139282 [11:29:38]NVStorageSaveData ofd_packets/00139282 [11:29:38]File name is /storage/ofd_packets/00139282 [11:29:38]Write 301 bytes [11:29:38]NVStorageSaveData done [11:29:38]OFDSenderStorePacket done [11:29:38]KKMCreateOFDPacket done [11:29:38]NVStorageSaveData kkm_last_timestamp [11:29:38]File name is /storage/kkm_last_timestamp [11:29:38]Write 4 bytes [11:29:38]NVStorageSaveData done [11:29:38]ExternCall_PrintAddStr [11:29:38]wPrintStart [11:29:38]Write to MH i2c: 01 00 00 B0 23 D3 [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 07 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 07 00 B0 23 00 00 00 00 00 FF 0F E8 [11:29:38]RasterBufferAndPrint [11:29:38]line Счет N : (1)593122 [11:29:38]line ИНН: 02508201610067 [11:29:38]line Контрольно-Кассовый Чек [11:29:38]line ПРОДАЖА [11:29:38]line ТРК (МРК, ГНК) : 62 [11:29:38]line Товар: 2710124130 [11:29:38]line Аи-92-К-5 [11:29:38]line 6.000 * 0.00 [11:29:38]line = 0.00 [11:29:38]line НДС 12% НСП 1% [11:29:38]line > о реализуемом товаре [11:29:38]line ИТОГО: 0.00 [11:29:38]line НСП 1% : 0.00 [11:29:38]line НДС 12% : 0.00 [11:29:38]line Наличными: 0.00 [11:29:38]line Безнал.: 0.00 [11:29:38]line Место: АЗС № 136 "Партнер Нефть" [11:29:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:29:38]line СНО: Общий режим [11:29:38]line Чек 117 19.08.2024 11:29 [11:29:38]line Смена: 452 ФФД: 1.0 [11:29:38]line ЗНМ: 0300000067 [11:29:38]line РНМ: 0000000000092569 [11:29:38]line Версия ККМ: 001 [11:29:38]line Талоны: ТК ГПНА Online [11:29:38]line 30026522 [11:29:38]line ФМ: 0000000000871776 [11:29:38]line ФД: 139282 [11:29:38]line ФПД: 35154548347177 [11:29:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139282&fm=35154548347177&tin=02508201610067®Number=0000000000092569&sum=0 [11:29:38]written 0, free lines is 4095 [11:29:38]OFD Sender: Processing packet 139282 [packets to send 137, broken 136] [11:29:38]ProducePacketName [11:29:38]name=ofd_packets/00139282 [11:29:38]OFD Sender: To server: pG, [11:29:38]CommunicateWithHost lk.salyk.kg:30040 [11:29:38]ConnectInit lk.salyk.kg [11:29:38]Connected sock=10 [11:29: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 37 36 0F 01 00 00 03 DC 07 01 73 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 70 17 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 75 00 00 00 F4 03 04 00 A3 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 20 02 00 35 04 06 00 1F F9 0E 5D D1 29 C5 9D 2A 22 DA 91 14 29 [11:29:38]Write to MH i2c: 01 00 00 DA 23 FD [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 07 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: 01 07 00 DA 23 00 00 00 00 00 E8 0C F8 [11:29:38]RasterBufferAndPrint [11:29:38]line [11:29:38]line [11:29:38]line [11:29:38]line [11:29:38]line [11:29:38]written 0, free lines is 3313 [11:29:38]MH_Cut [11:29:38]Write to MH i2c: D1 01 00 E1 23 01 D6 [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: D1 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: D1 01 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: D1 01 00 E1 23 00 D5 [11:29:38]Write to MH i2c: 01 00 00 E2 23 05 [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29: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 37 36 4F 00 00 00 75 FF 47 00 77 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 37 36 10 04 04 00 12 20 02 00 F4 03 04 00 38 D3 C2 66 B6 04 01 00 00 47 BF D6 D8 39 79 AF C7 [11:29:38]CommunicateWithHost err = 0 [11:29:38]CheckOFDResponse [11:29:38]1017 (14) - 77093643461234 [11:29:38]1041 (16) - 0000000000871776 [11:29:38]1040 (4) - 139282 [11:29:38]1012 (4) - 19.08.2024 05:08 [11:29:38]1206 (1) - 0 [11:29:38]OFD Sender: Remove packet 139282 [11:29:38]ProducePacketName [11:29:38]name=ofd_packets/00139282 [11:29:38]NVStorageDeleteData [11:29:39]OFD Sender: No OFD packet to send [11:29:39]*** Cut start [11:29:39]*** Partial cut [11:29:39]*** CUTSNS_PIN = 1 [11:29:39]*** CUTSNS_PIN = 0 [11:29:39]*** Brake cut motor [11:29:39]Read from MH i2c: 01 [11:29:39]MH_I2C_Read... [11:29:39]*** Stop cut motor [11:29:39]*** Cut end [11:29:39]Read from MH i2c: 01 07 00 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: 01 07 00 E2 23 00 00 00 00 00 FF 0F 1A [11:29:39]process_action close_receipt done [11:29:39]requested_data is exist [11:29:39]produce_requested_data [11:29:39]requested_item fm.sn is exist - process it [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 E3 23 80 11 00 00 00 00 00 00 80 [11:29:39]Write i2c OK [11:29:39]MH_I2C_Read... [11:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:39]Read from MH i2c: E2 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 17 00 [11:29:39]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 17 00 E3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D7 [11:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 E4 23 80 13 00 00 00 00 00 00 83 [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:40]Read from MH i2c: E2 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 62 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 62 00 E4 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [11:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:40]wFMCommunicate OK [11:29:40]SAM_PROTO_GetFieldsCounters done [11:29:40]requested_item shift.num is exist - process it [11:29:40]requested_item shift.opened is exist - process it [11:29:40]req_shift_opened [11:29:40]FM_GetShiftState [11:29:40]SAM_PROTO_GetShiftState [11:29:40]wFMCommunicate request_size=4 [11:29:40]MH_SAM_APDU [11:29:40]CAPDU: 80 13 01 00 [11:29:40]Write to MH i2c: E2 08 00 E5 23 80 13 01 00 00 00 00 00 85 [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:40]Read from MH i2c: E2 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 0E 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 0E 00 E5 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3C [11:29:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:29:40]wFMCommunicate OK [11:29:40]SAM_PROTO_GetShiftState done [11:29:40]FM_GetShiftState done [11:29:40]req_shift_opened done [11:29:40]requested_item shift.open_date is exist - process it [11:29:40]req_shift_open_date [11:29:40]req_shift_open_date done [11:29:40]produce_requested_data done [11:29:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139282,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:29:40]process_action_free close_receipt [11:29:40]json_value_free [11:29:40]json_value_free done [11:29:40]process_json_proto returns [11:29:40]Send response to host [11:29:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139282,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:29:40]free response buf [11:29:40]execute_script done [11:29:40]execute_script returns [11:29:40]free content buf [11:29:40]Sock 9.Close socket [11:29:40]Sock 9.Thread stoped [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:04]accept exits with 7 [11:30:04]New connection [11:30:04]New thread 3067059556 created [11:30:04]Thread 3067202916 joined [11:30:04]Waiting for new connection... [11:30:04] Sock 7.Parse request [11:30:04]Sock 7.Check first char [11:30:04]Sock 7.First char is OK [11:30:04]request: POST /json_proto HTTP/1.0 [11:30:04]Method: POST [11:30:04]URL: /json_proto [11:30:04]Method is POST - this is cgi request [11:30:04]url: /json_proto [11:30:04]query_string will be loaded in cgi processing [11:30:04]execute_cgi json_proto POST (null) [11:30:04]execute_cgi path=json_proto method=POST [11:30:04]POST find Content-Length [11:30:04]Host: 172.17.45.67:8080 [11:30:04]Content-Length: 677 [11:30:04]Content-Type: application/json [11:30:04] [11:30:04]POST finish read [11:30:04]Found Content-Length = 677 [11:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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" ] } } [11:30:04]execute_script... [11:30: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)593124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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" ] } } [11:30:04]POST & json_proto [11:30:04]process_json_proto [11:30:04]json parsed OK: [11:30:04]protocol is kg_v1.0 [11:30:04]action value=close_receipt [11:30:04]process_action close_receipt [11:30:04]cmd_close_receipt [11:30:04]MH_GetDate [11:30:04]Write to MH i2c: F0 00 00 E6 23 F8 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: F0 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: F0 09 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: F0 09 00 E6 23 00 BF 2C C3 66 5F 7F 2B 66 84 [11:30:04]GetLastDocTimeStamp 1724066979 [11:30:04]current date 1724067007 [11:30:04]FM_GetShiftState [11:30:04]SAM_PROTO_GetShiftState [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 13 01 00 [11:30:04]Write to MH i2c: E2 08 00 E7 23 80 13 01 00 00 00 00 00 87 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0E 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0E 00 E7 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3E [11:30:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:30:05]wFMCommunicate OK [11:30:05]SAM_PROTO_GetShiftState done [11:30:05]FM_GetShiftState done [11:30:05]opened in 1724027888 [11:30:05]opened+sec_in_day 1724114288 [11:30:05]quantity*price = 15051 [11:30:05]sum+1 = 15053 [11:30:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 118 19.08.2024 11:30 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139283 ФПД: 33298319192799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113007&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139283&fm=33298319192799&tin=02508201610067®Number=0000000000092569&sum=15000 [11:30:06]StoreToDocumentArchive [11:30:06]shift 452 fd 139283 [11:30:06]save to /storage/0452/doc_00139283 [11:30:06]save last doc name /storage/0452/doc_00139283 to /storage/kkm_last_doc_name [11:30:06]save OK [11:30:06]Clear old archive folders... [11:30:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:06]tlvbuf is 01DA2F10 [11:30:06]SAM_PROTO_ClearQueue [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 09 00 00 [11:30:06]Write to MH i2c: E2 08 00 F4 23 80 09 00 00 00 00 00 00 89 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 03 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 03 00 F4 23 00 90 00 8B [11:30:06]RAPDU: 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_ClearQueue done [11:30:06]KKMCreateOFDPacket [11:30:06]OFDProtocolAddRootSTLVToBuf [11:30:06]FM_MakeSignedData [11:30:06]FM_MakeSignedData [11:30:06]SAM_PROTO_SignData [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 0D 01 02 [11:30:06]Write to MH i2c: E2 08 00 F5 23 80 0D 01 02 00 00 00 00 91 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 03 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 03 00 F5 23 00 90 00 8C [11:30:06]RAPDU: 90 00 [11:30:06]wFMCommunicate OK [11:30:06]wFMCommunicate request_size=255 [11:30:06]MH_SAM_APDU [11:30: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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 76 00 00 00 F4 03 04 00 BF 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 20 02 00 35 04 06 00 1E [11:30:06]Write to MH i2c: E2 02 01 F6 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 76 00 00 00 F4 03 04 00 BF 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 20 02 00 35 04 06 00 1E 00 00 04 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 03 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 03 00 F6 23 00 90 00 8D [11:30:06]RAPDU: 90 00 [11:30:06]wFMCommunicate OK [11:30:06]wFMCommunicate request_size=10 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 0D 02 02 05 48 DE 7C B2 DF [11:30:06]Write to MH i2c: E2 0D 00 F7 23 80 0D 02 02 05 00 48 DE 7C B2 DF 00 00 D1 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 03 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 03 00 F7 23 00 90 00 8E [11:30:06]RAPDU: 90 00 [11:30:06]wFMCommunicate OK [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 0D 03 02 [11:30:06]Write to MH i2c: E2 08 00 F8 23 80 0D 03 02 00 00 00 00 96 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0B 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0B 00 F8 23 00 6B BE 50 D3 3B 32 3B 60 90 00 EB [11:30:06]RAPDU: 6B BE 50 D3 3B 32 3B 60 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_SignData done [11:30:06]FM_MakeSignedData done [11:30:06]CreateOFDProtocolMessage [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 11 00 00 [11:30:06]Write to MH i2c: E2 08 00 F9 23 80 11 00 00 00 00 00 00 96 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 F9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [11:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:30:06]wFMCommunicate OK [11:30:06]CreateOFDProtocolMessage done [11:30:06]OFDSenderStorePacket 139283 [11:30:06]StoreOFDPacket docnum=139283 [11:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 5C 07 01 55 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 76 00 00 00 F4 03 04 00 BF 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 20 02 00 35 04 06 00 1E 48 DE 7C B2 DF 6B BE 50 D3 3B 32 3B 60 [11:30:06]CheckFolder [11:30:06]dirname=/storage/ofd_packets [11:30:06]CheckFolder done [11:30:06]ProducePacketName [11:30:06]name=ofd_packets/00139283 [11:30:06]NVStorageSaveData ofd_packets/00139283 [11:30:06]File name is /storage/ofd_packets/00139283 [11:30:06]Write 301 bytes [11:30:06]NVStorageSaveData done [11:30:06]OFDSenderStorePacket done [11:30:06]KKMCreateOFDPacket done [11:30:06]NVStorageSaveData kkm_last_timestamp [11:30:06]File name is /storage/kkm_last_timestamp [11:30:06]Write 4 bytes [11:30:06]NVStorageSaveData done [11:30:06]ExternCall_PrintAddStr [11:30:06]wPrintStart [11:30:06]Write to MH i2c: 01 00 00 FA 23 1D [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 07 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 07 00 FA 23 00 00 00 00 00 FF 0F 32 [11:30:06]RasterBufferAndPrint [11:30:06]line Счет N : (1)593124 [11:30:06]line ИНН: 02508201610067 [11:30:06]line Контрольно-Кассовый Чек [11:30:06]line ПРОДАЖА [11:30:06]line ТРК (МРК, ГНК) : 42 [11:30:06]line Товар: 2710124130 [11:30:06]line Аи-92-К-5 [11:30:06]line 2.220 * 67.80 [11:30:06]line = 150.52 [11:30:06]line НДС 12% НСП 1% [11:30:06]line > о реализуемом товаре [11:30:06]line ОКРУГЛЕНИЕ: -0.52 [11:30:06]line ИТОГО: 150.00 [11:30:06]line Внесено: 150.00 [11:30:06]line СДАЧА: 0.00 [11:30:06]line НСП 1% : 1.33 [11:30:06]line НДС 12% : 15.98 [11:30:06]line Наличными: 150.00 [11:30:06]line Безнал.: 0.00 [11:30:06]line Место: АЗС № 136 "Партнер Нефть" [11:30:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:30:06]line СНО: Общий режим [11:30:06]line Чек 118 19.08.2024 11:30 [11:30:06]line Смена: 452 ФФД: 1.0 [11:30:06]line ЗНМ: 0300000067 [11:30:06]line РНМ: 0000000000092569 [11:30:06]line Версия ККМ: 001 [11:30:06]line ФМ: 0000000000871776 [11:30:06]line ФД: 139283 [11:30:06]line ФПД: 33298319192799 [11:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113007&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139283&fm=33298319192799&tin=02508201610067®Number=0000000000092569&sum=15000 [11:30:06]written 0, free lines is 4095 [11:30:06]OFD Sender: Processing packet 139283 [packets to send 137, broken 136] [11:30:06]ProducePacketName [11:30:06]name=ofd_packets/00139283 [11:30:06]OFD Sender: To server: pG, [11:30:06]CommunicateWithHost lk.salyk.kg:30040 [11:30:06]ConnectInit lk.salyk.kg [11:30:06]Connected sock=10 [11:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 5C 07 01 55 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 76 00 00 00 F4 03 04 00 BF 2C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 20 02 00 35 04 06 00 1E 48 DE 7C B2 DF 6B BE 50 D3 3B 32 3B 60 [11:30: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 37 36 4F 00 00 00 A9 B3 47 00 C2 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 37 36 10 04 04 00 13 20 02 00 F4 03 04 00 55 D3 C2 66 B6 04 01 00 00 5A ED 1F C5 DE 7C A0 A3 [11:30:07]CommunicateWithHost err = 0 [11:30:07]CheckOFDResponse [11:30:07]1017 (14) - 77093643461234 [11:30:07]1041 (16) - 0000000000871776 [11:30:07]1040 (4) - 139283 [11:30:07]1012 (4) - 19.08.2024 05:08 [11:30:07]1206 (1) - 0 [11:30:07]OFD Sender: Remove packet 139283 [11:30:07]ProducePacketName [11:30:07]name=ofd_packets/00139283 [11:30:07]NVStorageDeleteData [11:30:07]Write to MH i2c: 01 00 00 25 24 49 [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: 01 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: 01 07 00 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: 01 07 00 25 24 00 00 00 00 00 D4 0C 30 [11:30:07]RasterBufferAndPrint [11:30:07]line [11:30:07]line [11:30:07]line [11:30:07]line [11:30:07]line [11:30:07]written 0, free lines is 3292 [11:30:07]MH_Cut [11:30:07]Write to MH i2c: D1 01 00 2C 24 01 22 [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: D1 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: D1 01 00 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: D1 01 00 2C 24 00 21 [11:30:07]Write to MH i2c: 01 00 00 2D 24 51 [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:07]OFD Sender: No OFD packet to send [11:30:07]*** Cut start [11:30:07]*** Partial cut [11:30:07]*** CUTSNS_PIN = 1 [11:30:07]*** CUTSNS_PIN = 0 [11:30:08]*** Brake cut motor [11:30:08]Read from MH i2c: 01 [11:30:08]MH_I2C_Read... [11:30:08]*** Stop cut motor [11:30:08]*** Cut end [11:30:08]Read from MH i2c: 01 07 00 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: 01 07 00 2D 24 00 00 00 00 00 FF 0F 66 [11:30:08]process_action close_receipt done [11:30:08]requested_data is exist [11:30:08]produce_requested_data [11:30:08]requested_item fm.sn is exist - process it [11:30:08]wFMCommunicate request_size=4 [11:30:08]MH_SAM_APDU [11:30:08]CAPDU: 80 11 00 00 [11:30:08]Write to MH i2c: E2 08 00 2E 24 80 11 00 00 00 00 00 00 CC [11:30:08]Write i2c OK [11:30:08]MH_I2C_Read... [11:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:08]Read from MH i2c: E2 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 17 00 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 17 00 2E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [11:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:30:08]wFMCommunicate OK [11:30:08]requested_item fd.num is exist - process it [11:30:08]SAM_PROTO_GetFieldsCounters [11:30:08]wFMCommunicate request_size=4 [11:30:08]MH_SAM_APDU [11:30:08]CAPDU: 80 13 00 00 [11:30:08]Write to MH i2c: E2 08 00 2F 24 80 13 00 00 00 00 00 00 CF [11:30:08]Write i2c OK [11:30:08]MH_I2C_Read... [11:30:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:08]Read from MH i2c: E2 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 62 00 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 62 00 2F 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [11:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:08]wFMCommunicate OK [11:30:08]SAM_PROTO_GetFieldsCounters done [11:30:08]requested_item shift.num is exist - process it [11:30:08]requested_item shift.opened is exist - process it [11:30:08]req_shift_opened [11:30:08]FM_GetShiftState [11:30:08]SAM_PROTO_GetShiftState [11:30:08]wFMCommunicate request_size=4 [11:30:08]MH_SAM_APDU [11:30:08]CAPDU: 80 13 01 00 [11:30:08]Write to MH i2c: E2 08 00 30 24 80 13 01 00 00 00 00 00 D1 [11:30:08]Write i2c OK [11:30:08]MH_I2C_Read... [11:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:08]Read from MH i2c: E2 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 0E 00 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 0E 00 30 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 88 [11:30:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:30:08]wFMCommunicate OK [11:30:08]SAM_PROTO_GetShiftState done [11:30:08]FM_GetShiftState done [11:30:08]req_shift_opened done [11:30:08]requested_item shift.open_date is exist - process it [11:30:08]req_shift_open_date [11:30:08]req_shift_open_date done [11:30:08]produce_requested_data done [11:30:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139283,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:30:08]process_action_free close_receipt [11:30:08]json_value_free [11:30:08]json_value_free done [11:30:08]process_json_proto returns [11:30:08]Send response to host [11:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139283,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:30:08]free response buf [11:30:08]execute_script done [11:30:08]execute_script returns [11:30:08]free content buf [11:30:08]Sock 7.Close socket [11:30:08]Sock 7.Thread stoped [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:55]accept exits with 9 [11:31:55]New connection [11:31:55]New thread 3067202916 created [11:31:55]Thread 3067059556 joined [11:31:55]Waiting for new connection... [11:31:55] Sock 9.Parse request [11:31:55]Sock 9.Check first char [11:31:55]Sock 9.First char is OK [11:31:55]request: POST /json_proto HTTP/1.0 [11:31:55]Method: POST [11:31:55]URL: /json_proto [11:31:55]Method is POST - this is cgi request [11:31:55]url: /json_proto [11:31:55]query_string will be loaded in cgi processing [11:31:55]execute_cgi json_proto POST (null) [11:31:55]execute_cgi path=json_proto method=POST [11:31:55]POST find Content-Length [11:31:55]Host: 172.17.45.67:8080 [11:31:55]Content-Length: 677 [11:31:55]Content-Type: application/json [11:31:55] [11:31:55]POST finish read [11:31:55]Found Content-Length = 677 [11:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:31:55]execute_script... [11:31: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)593125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:31:55]POST & json_proto [11:31:55]process_json_proto [11:31:55]json parsed OK: [11:31:55]protocol is kg_v1.0 [11:31:55]action value=close_receipt [11:31:55]process_action close_receipt [11:31:55]cmd_close_receipt [11:31:55]MH_GetDate [11:31:55]Write to MH i2c: F0 00 00 31 24 44 [11:31:55]Write i2c OK [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: F0 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: F0 09 00 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: F0 09 00 31 24 00 2E 2D C3 66 5F 7F 2B 66 40 [11:31:55]GetLastDocTimeStamp 1724067007 [11:31:55]current date 1724067118 [11:31:55]FM_GetShiftState [11:31:55]SAM_PROTO_GetShiftState [11:31:55]wFMCommunicate request_size=4 [11:31:55]MH_SAM_APDU [11:31:55]CAPDU: 80 13 01 00 [11:31:55]Write to MH i2c: E2 08 00 32 24 80 13 01 00 00 00 00 00 D3 [11:31:55]Write i2c OK [11:31:55]MH_I2C_Read... [11:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:55]Read from MH i2c: E2 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 0E 00 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 0E 00 32 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8A [11:31:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:31:55]wFMCommunicate OK [11:31:55]SAM_PROTO_GetShiftState done [11:31:55]FM_GetShiftState done [11:31:55]opened in 1724027888 [11:31:55]opened+sec_in_day 1724114288 [11:31:55]quantity*price = 50036 [11:31:55]sum+1 = 50037 [11:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 119 19.08.2024 11:31 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139284 ФПД: 248439566813772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113158&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139284&fm=248439566813772&tin=02508201610067®Number=0000000000092569&sum=50000 [11:31:56]StoreToDocumentArchive [11:31:56]shift 452 fd 139284 [11:31:56]save to /storage/0452/doc_00139284 [11:31:56]save last doc name /storage/0452/doc_00139284 to /storage/kkm_last_doc_name [11:31:56]save OK [11:31:56]Clear old archive folders... [11:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:56]tlvbuf is 01DACD30 [11:31:56]SAM_PROTO_ClearQueue [11:31:56]wFMCommunicate request_size=4 [11:31:56]MH_SAM_APDU [11:31:56]CAPDU: 80 09 00 00 [11:31:56]Write to MH i2c: E2 08 00 3F 24 80 09 00 00 00 00 00 00 D5 [11:31:56]Write i2c OK [11:31:56]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 3F 24 00 90 00 D7 [11:31:57]RAPDU: 90 00 [11:31:57]wFMCommunicate OK [11:31:57]SAM_PROTO_ClearQueue done [11:31:57]KKMCreateOFDPacket [11:31:57]OFDProtocolAddRootSTLVToBuf [11:31:57]FM_MakeSignedData [11:31:57]FM_MakeSignedData [11:31:57]SAM_PROTO_SignData [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 0D 01 02 [11:31:57]Write to MH i2c: E2 08 00 40 24 80 0D 01 02 00 00 00 00 DD [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 40 24 00 90 00 D8 [11:31:57]RAPDU: 90 00 [11:31:57]wFMCommunicate OK [11:31:57]wFMCommunicate request_size=255 [11:31:57]MH_SAM_APDU [11:31: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 00 00 00 F4 03 04 00 2E 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 20 02 00 35 04 06 00 E1 [11:31:57]Write to MH i2c: E2 02 01 41 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 00 00 00 F4 03 04 00 2E 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 20 02 00 35 04 06 00 E1 00 00 3D [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 41 24 00 90 00 D9 [11:31:57]RAPDU: 90 00 [11:31:57]wFMCommunicate OK [11:31:57]wFMCommunicate request_size=10 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 0D 02 02 05 F4 58 20 CA 4C [11:31:57]Write to MH i2c: E2 0D 00 42 24 80 0D 02 02 05 00 F4 58 20 CA 4C 00 00 6C [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 42 24 00 90 00 DA [11:31:57]RAPDU: 90 00 [11:31:57]wFMCommunicate OK [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 0D 03 02 [11:31:57]Write to MH i2c: E2 08 00 43 24 80 0D 03 02 00 00 00 00 E2 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0B 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0B 00 43 24 00 0B DA BA DC A4 F6 9B 3E 90 00 D1 [11:31:57]RAPDU: 0B DA BA DC A4 F6 9B 3E 90 00 [11:31:57]wFMCommunicate OK [11:31:57]SAM_PROTO_SignData done [11:31:57]FM_MakeSignedData done [11:31:57]CreateOFDProtocolMessage [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 11 00 00 [11:31:57]Write to MH i2c: E2 08 00 44 24 80 11 00 00 00 00 00 00 E2 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 17 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 17 00 44 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [11:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:31:57]wFMCommunicate OK [11:31:57]CreateOFDProtocolMessage done [11:31:57]OFDSenderStorePacket 139284 [11:31:57]StoreOFDPacket docnum=139284 [11:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 C2 07 01 5A DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 00 00 00 F4 03 04 00 2E 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 20 02 00 35 04 06 00 E1 F4 58 20 CA 4C 0B DA BA DC A4 F6 9B 3E [11:31:57]CheckFolder [11:31:57]dirname=/storage/ofd_packets [11:31:57]CheckFolder done [11:31:57]ProducePacketName [11:31:57]name=ofd_packets/00139284 [11:31:57]NVStorageSaveData ofd_packets/00139284 [11:31:57]File name is /storage/ofd_packets/00139284 [11:31:57]Write 301 bytes [11:31:57]NVStorageSaveData done [11:31:57]OFDSenderStorePacket done [11:31:57]KKMCreateOFDPacket done [11:31:57]NVStorageSaveData kkm_last_timestamp [11:31:57]File name is /storage/kkm_last_timestamp [11:31:57]Write 4 bytes [11:31:57]NVStorageSaveData done [11:31:57]ExternCall_PrintAddStr [11:31:57]wPrintStart [11:31:57]Write to MH i2c: 01 00 00 45 24 69 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 45 24 00 00 00 00 00 FF 0F 7E [11:31:57]RasterBufferAndPrint [11:31:57]line Счет N : (1)593125 [11:31:57]line ИНН: 02508201610067 [11:31:57]line Контрольно-Кассовый Чек [11:31:57]line ПРОДАЖА [11:31:57]line ТРК (МРК, ГНК) : 52 [11:31:57]line Товар: 2710124130 [11:31:57]line Аи-92-К-5 [11:31:57]line 7.380 * 67.80 [11:31:57]line = 500.36 [11:31:57]line НДС 12% НСП 1% [11:31:57]line > о реализуемом товаре [11:31:57]line ОКРУГЛЕНИЕ: -0.36 [11:31:57]line ИТОГО: 500.00 [11:31:57]line Внесено: 500.00 [11:31:57]line СДАЧА: 0.00 [11:31:57]line НСП 1% : 4.43 [11:31:57]line НДС 12% : 53.14 [11:31:57]line Наличными: 500.00 [11:31:57]line Безнал.: 0.00 [11:31:57]line Место: АЗС № 136 "Партнер Нефть" [11:31:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:31:57]line СНО: Общий режим [11:31:57]line Чек 119 19.08.2024 11:31 [11:31:57]line Смена: 452 ФФД: 1.0 [11:31:57]line ЗНМ: 0300000067 [11:31:57]line РНМ: 0000000000092569 [11:31:57]line Версия ККМ: 001 [11:31:57]line ФМ: 0000000000871776 [11:31:57]line ФД: 139284 [11:31:57]line ФПД: 248439566813772 [11:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113158&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139284&fm=248439566813772&tin=02508201610067®Number=0000000000092569&sum=50000 [11:31:57]OFD Sender: Processing packet 139284 [packets to send 137, broken 136] [11:31:57]ProducePacketName [11:31:57]name=ofd_packets/00139284 [11:31:57]OFD Sender: To server: pG, [11:31:57]CommunicateWithHost lk.salyk.kg:30040 [11:31:57]ConnectInit lk.salyk.kg [11:31:57]written 0, free lines is 4095 [11:31:58]Connected sock=10 [11:31: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 37 36 0F 01 00 00 93 C2 07 01 5A DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 77 00 00 00 F4 03 04 00 2E 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 20 02 00 35 04 06 00 E1 F4 58 20 CA 4C 0B DA BA DC A4 F6 9B 3E [11:31: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 37 36 4F 00 00 00 D7 3E 47 00 95 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 20 02 00 F4 03 04 00 C4 D3 C2 66 B6 04 01 00 00 FB 49 47 07 03 B8 91 11 [11:31:58]CommunicateWithHost err = 0 [11:31:58]CheckOFDResponse [11:31:58]1017 (14) - 77093643461234 [11:31:58]1041 (16) - 0000000000871776 [11:31:58]1040 (4) - 139284 [11:31:58]1012 (4) - 19.08.2024 05:10 [11:31:58]1206 (1) - 0 [11:31:58]OFD Sender: Remove packet 139284 [11:31:58]ProducePacketName [11:31:58]name=ofd_packets/00139284 [11:31:58]NVStorageDeleteData [11:31:58]Write to MH i2c: 01 00 00 70 24 94 [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: 01 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: 01 07 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: 01 07 00 70 24 00 00 00 00 00 E2 0C 89 [11:31:58]RasterBufferAndPrint [11:31:58]line [11:31:58]line [11:31:58]line [11:31:58]line [11:31:58]line [11:31:58]written 0, free lines is 3304 [11:31:58]MH_Cut [11:31:58]Write to MH i2c: D1 01 00 77 24 01 6D [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: D1 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: D1 01 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: D1 01 00 77 24 00 6C [11:31:58]Write to MH i2c: 01 00 00 78 24 9C [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]OFD Sender: No OFD packet to send [11:31:59]*** Cut start [11:31:59]*** Partial cut [11:31:59]*** CUTSNS_PIN = 1 [11:31:59]*** CUTSNS_PIN = 0 [11:31:59]*** Brake cut motor [11:31:59]Read from MH i2c: 01 [11:31:59]MH_I2C_Read... [11:31:59]*** Stop cut motor [11:31:59]*** Cut end [11:31:59]Read from MH i2c: 01 07 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: 01 07 00 78 24 00 00 00 00 00 FF 0F B1 [11:31:59]process_action close_receipt done [11:31:59]requested_data is exist [11:31:59]produce_requested_data [11:31:59]requested_item fm.sn is exist - process it [11:31:59]wFMCommunicate request_size=4 [11:31:59]MH_SAM_APDU [11:31:59]CAPDU: 80 11 00 00 [11:31:59]Write to MH i2c: E2 08 00 79 24 80 11 00 00 00 00 00 00 17 [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:59]Read from MH i2c: E2 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 17 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 17 00 79 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6E [11:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:31:59]wFMCommunicate OK [11:31:59]requested_item fd.num is exist - process it [11:31:59]SAM_PROTO_GetFieldsCounters [11:31:59]wFMCommunicate request_size=4 [11:31:59]MH_SAM_APDU [11:31:59]CAPDU: 80 13 00 00 [11:31:59]Write to MH i2c: E2 08 00 7A 24 80 13 00 00 00 00 00 00 1A [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:59]Read from MH i2c: E2 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 62 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 62 00 7A 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [11:31: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:59]wFMCommunicate OK [11:31:59]SAM_PROTO_GetFieldsCounters done [11:31:59]requested_item shift.num is exist - process it [11:31:59]requested_item shift.opened is exist - process it [11:31:59]req_shift_opened [11:31:59]FM_GetShiftState [11:31:59]SAM_PROTO_GetShiftState [11:31:59]wFMCommunicate request_size=4 [11:31:59]MH_SAM_APDU [11:31:59]CAPDU: 80 13 01 00 [11:31:59]Write to MH i2c: E2 08 00 7B 24 80 13 01 00 00 00 00 00 1C [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:59]Read from MH i2c: E2 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 0E 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 0E 00 7B 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D3 [11:31:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:31:59]wFMCommunicate OK [11:31:59]SAM_PROTO_GetShiftState done [11:31:59]FM_GetShiftState done [11:31:59]req_shift_opened done [11:31:59]requested_item shift.open_date is exist - process it [11:31:59]req_shift_open_date [11:31:59]req_shift_open_date done [11:31:59]produce_requested_data done [11:31:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139284,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:31:59]process_action_free close_receipt [11:31:59]json_value_free [11:31:59]json_value_free done [11:31:59]process_json_proto returns [11:31:59]Send response to host [11:31:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139284,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:31:59]free response buf [11:31:59]execute_script done [11:31:59]execute_script returns [11:31:59]free content buf [11:31:59]Sock 9.Close socket [11:31:59]Sock 9.Thread stoped [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:06]accept exits with 7 [11:34:06]New connection [11:34:06]New thread 3067059556 created [11:34:06]Thread 3067202916 joined [11:34:06]Waiting for new connection... [11:34:06] Sock 7.Parse request [11:34:06]Sock 7.Check first char [11:34:06]Sock 7.First char is OK [11:34:06]request: POST /json_proto HTTP/1.0 [11:34:06]Method: POST [11:34:06]URL: /json_proto [11:34:06]Method is POST - this is cgi request [11:34:06]url: /json_proto [11:34:06]query_string will be loaded in cgi processing [11:34:06]execute_cgi json_proto POST (null) [11:34:06]execute_cgi path=json_proto method=POST [11:34:06]POST find Content-Length [11:34:06]Host: 172.17.45.67:8080 [11:34:06]Content-Length: 759 [11:34:06]Content-Type: application/json [11:34:06] [11:34:06]POST finish read [11:34:06]Found Content-Length = 759 [11:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:06]execute_script... [11:34: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)593126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:06]POST & json_proto [11:34:06]process_json_proto [11:34:06]json parsed OK: [11:34:06]protocol is kg_v1.0 [11:34:06]action value=close_receipt [11:34:06]process_action close_receipt [11:34:06]cmd_close_receipt [11:34:06]MH_GetDate [11:34:06]Write to MH i2c: F0 00 00 7C 24 8F [11:34:06]Write i2c OK [11:34:06]MH_I2C_Read... [11:34:06]Read from MH i2c: F0 [11:34:06]MH_I2C_Read... [11:34:06]Read from MH i2c: F0 09 00 [11:34:06]MH_I2C_Read... [11:34:06]Read from MH i2c: F0 09 00 7C 24 00 B1 2D C3 66 5F 7F 2B 66 0E [11:34:06]GetLastDocTimeStamp 1724067118 [11:34:06]current date 1724067249 [11:34:06]FM_GetShiftState [11:34:06]SAM_PROTO_GetShiftState [11:34:06]wFMCommunicate request_size=4 [11:34:06]MH_SAM_APDU [11:34:06]CAPDU: 80 13 01 00 [11:34:06]Write to MH i2c: E2 08 00 7D 24 80 13 01 00 00 00 00 00 1E [11:34:06]Write i2c OK [11:34:06]MH_I2C_Read... [11:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:06]Read from MH i2c: E2 [11:34:06]MH_I2C_Read... [11:34:06]Read from MH i2c: E2 0E 00 [11:34:06]MH_I2C_Read... [11:34:06]Read from MH i2c: E2 0E 00 7D 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D5 [11:34:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:34:06]wFMCommunicate OK [11:34:06]SAM_PROTO_GetShiftState done [11:34:06]FM_GetShiftState done [11:34:06]opened in 1724027888 [11:34:06]opened+sec_in_day 1724114288 [11:34:06]quantity*price = 0 [11:34:06]sum+1 = 1 [11:34:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 120 19.08.2024 11:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104832 ФМ: 0000000000871776 ФД: 139285 ФПД: 7776482057825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113409&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139285&fm=7776482057825&tin=02508201610067®Number=0000000000092569&sum=0 [11:34:07]StoreToDocumentArchive [11:34:07]shift 452 fd 139285 [11:34:07]save to /storage/0452/doc_00139285 [11:34:07]save last doc name /storage/0452/doc_00139285 to /storage/kkm_last_doc_name [11:34:07]save OK [11:34:07]Clear old archive folders... [11:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:34:07]tlvbuf is B6EFEB10 [11:34:07]SAM_PROTO_ClearQueue [11:34:07]wFMCommunicate request_size=4 [11:34:07]MH_SAM_APDU [11:34:07]CAPDU: 80 09 00 00 [11:34:07]Write to MH i2c: E2 08 00 8A 24 80 09 00 00 00 00 00 00 20 [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:07]Read from MH i2c: E2 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 8A 24 00 90 00 22 [11:34:07]RAPDU: 90 00 [11:34:07]wFMCommunicate OK [11:34:07]SAM_PROTO_ClearQueue done [11:34:07]KKMCreateOFDPacket [11:34:07]OFDProtocolAddRootSTLVToBuf [11:34:07]FM_MakeSignedData [11:34:07]FM_MakeSignedData [11:34:07]SAM_PROTO_SignData [11:34:07]wFMCommunicate request_size=4 [11:34:07]MH_SAM_APDU [11:34:07]CAPDU: 80 0D 01 02 [11:34:07]Write to MH i2c: E2 08 00 8B 24 80 0D 01 02 00 00 00 00 28 [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:07]Read from MH i2c: E2 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 [11:34:07]MH_I2C_Read... [11:34:07]Read from MH i2c: E2 03 00 8B 24 00 90 00 23 [11:34:07]RAPDU: 90 00 [11:34:07]wFMCommunicate OK [11:34:07]wFMCommunicate request_size=255 [11:34:07]MH_SAM_APDU [11:34:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 B1 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 20 02 00 35 04 06 00 [11:34:07]Write to MH i2c: E2 02 01 8C 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 78 00 00 00 F4 03 04 00 B1 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 20 02 00 35 04 06 00 00 00 60 [11:34:07]Write i2c OK [11:34:07]MH_I2C_Read... [11:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:08]Read from MH i2c: E2 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 03 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 03 00 8C 24 00 90 00 24 [11:34:08]RAPDU: 90 00 [11:34:08]wFMCommunicate OK [11:34:08]wFMCommunicate request_size=11 [11:34:08]MH_SAM_APDU [11:34:08]CAPDU: 80 0D 02 02 06 07 12 9A 73 5E 61 [11:34:08]Write to MH i2c: E2 0E 00 8D 24 80 0D 02 02 06 00 07 12 9A 73 5E 61 00 00 1C [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:08]Read from MH i2c: E2 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 03 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 03 00 8D 24 00 90 00 25 [11:34:08]RAPDU: 90 00 [11:34:08]wFMCommunicate OK [11:34:08]wFMCommunicate request_size=4 [11:34:08]MH_SAM_APDU [11:34:08]CAPDU: 80 0D 03 02 [11:34:08]Write to MH i2c: E2 08 00 8E 24 80 0D 03 02 00 00 00 00 2D [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:08]Read from MH i2c: E2 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 0B 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 0B 00 8E 24 00 BD BF F6 F8 C8 91 67 93 90 00 EB [11:34:08]RAPDU: BD BF F6 F8 C8 91 67 93 90 00 [11:34:08]wFMCommunicate OK [11:34:08]SAM_PROTO_SignData done [11:34:08]FM_MakeSignedData done [11:34:08]CreateOFDProtocolMessage [11:34:08]wFMCommunicate request_size=4 [11:34:08]MH_SAM_APDU [11:34:08]CAPDU: 80 11 00 00 [11:34:08]Write to MH i2c: E2 08 00 8F 24 80 11 00 00 00 00 00 00 2D [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:08]Read from MH i2c: E2 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 17 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: E2 17 00 8F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [11:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:34:08]wFMCommunicate OK [11:34:08]CreateOFDProtocolMessage done [11:34:08]OFDSenderStorePacket 139285 [11:34:08]StoreOFDPacket docnum=139285 [11:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 D4 F5 08 01 B7 41 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 B1 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 20 02 00 35 04 06 00 07 12 9A 73 5E 61 BD BF F6 F8 C8 91 67 93 [11:34:08]CheckFolder [11:34:08]dirname=/storage/ofd_packets [11:34:08]CheckFolder done [11:34:08]ProducePacketName [11:34:08]name=ofd_packets/00139285 [11:34:08]NVStorageSaveData ofd_packets/00139285 [11:34:08]File name is /storage/ofd_packets/00139285 [11:34:08]Write 302 bytes [11:34:08]NVStorageSaveData done [11:34:08]OFDSenderStorePacket done [11:34:08]KKMCreateOFDPacket done [11:34:08]NVStorageSaveData kkm_last_timestamp [11:34:08]File name is /storage/kkm_last_timestamp [11:34:08]Write 4 bytes [11:34:08]NVStorageSaveData done [11:34:08]ExternCall_PrintAddStr [11:34:08]wPrintStart [11:34:08]Write to MH i2c: 01 00 00 90 24 B4 [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: 01 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: 01 07 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: 01 07 00 90 24 00 00 00 00 00 FF 0F C9 [11:34:08]RasterBufferAndPrint [11:34:08]line Счет N : (1)593126 [11:34:08]line ИНН: 02508201610067 [11:34:08]line Контрольно-Кассовый Чек [11:34:08]line ПРОДАЖА [11:34:08]line ТРК (МРК, ГНК) : 44 [11:34:08]line Товар: 2710194210 [11:34:08]line ДТ(л)-К-5 [11:34:08]line 20.000 * 0.00 [11:34:08]line = 0.00 [11:34:08]line НДС 12% НСП 1% [11:34:08]line > о реализуемом товаре [11:34:08]line ИТОГО: 0.00 [11:34:08]line НСП 1% : 0.00 [11:34:08]line НДС 12% : 0.00 [11:34:08]line Наличными: 0.00 [11:34:08]line Безнал.: 0.00 [11:34:08]line Место: АЗС № 136 "Партнер Нефть" [11:34:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:34:08]line СНО: Общий режим [11:34:08]line Чек 120 19.08.2024 11:34 [11:34:08]line Смена: 452 ФФД: 1.0 [11:34:08]line ЗНМ: 0300000067 [11:34:08]line РНМ: 0000000000092569 [11:34:08]line Версия ККМ: 001 [11:34:08]line Талоны: ТК ГПНА Online [11:34:08]line 30104832 [11:34:08]line ФМ: 0000000000871776 [11:34:08]line ФД: 139285 [11:34:08]line ФПД: 7776482057825 [11:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113409&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139285&fm=7776482057825&tin=02508201610067®Number=0000000000092569&sum=0 [11:34:08]written 0, free lines is 4095 [11:34:08]OFD Sender: Processing packet 139285 [packets to send 137, broken 136] [11:34:08]ProducePacketName [11:34:08]name=ofd_packets/00139285 [11:34:08]OFD Sender: To server: pG, [11:34:08]CommunicateWithHost lk.salyk.kg:30040 [11:34:08]ConnectInit lk.salyk.kg [11:34:08]Write to MH i2c: 01 00 00 BA 24 DE [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: 01 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: 01 07 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: 01 07 00 BA 24 00 00 00 00 00 DC 0C CD [11:34:08]RasterBufferAndPrint [11:34:08]line [11:34:08]line [11:34:08]line [11:34:08]line [11:34:08]line [11:34:08]written 0, free lines is 3300 [11:34:08]MH_Cut [11:34:08]Write to MH i2c: D1 01 00 C1 24 01 B7 [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: D1 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: D1 01 00 [11:34:08]MH_I2C_Read... [11:34:08]Read from MH i2c: D1 01 00 C1 24 00 B6 [11:34:08]Write to MH i2c: 01 00 00 C2 24 E6 [11:34:08]Write i2c OK [11:34:08]MH_I2C_Read... [11:34:08]Connected sock=10 [11:34: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 37 36 10 01 00 00 D4 F5 08 01 B7 41 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 B1 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 20 02 00 35 04 06 00 07 12 9A 73 5E 61 BD BF F6 F8 C8 91 67 93 [11: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 37 36 4F 00 00 00 FC A2 47 00 FC 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 37 36 10 04 04 00 15 20 02 00 F4 03 04 00 47 D4 C2 66 B6 04 01 00 00 86 64 1C 25 7A 10 A2 11 [11:34:09]CommunicateWithHost err = 0 [11:34:09]CheckOFDResponse [11:34:09]1017 (14) - 77093643461234 [11:34:09]1041 (16) - 0000000000871776 [11:34:09]1040 (4) - 139285 [11:34:09]1012 (4) - 19.08.2024 05:12 [11:34:09]1206 (1) - 0 [11:34:09]OFD Sender: Remove packet 139285 [11:34:09]ProducePacketName [11:34:09]name=ofd_packets/00139285 [11:34:09]NVStorageDeleteData [11:34:09]*** Cut start [11:34:09]*** Partial cut [11:34:09]*** CUTSNS_PIN = 1 [11:34:09]*** CUTSNS_PIN = 0 [11:34:09]OFD Sender: No OFD packet to send [11:34:09]*** Brake cut motor [11:34:10]Read from MH i2c: 01 [11:34:10]MH_I2C_Read... [11:34:10]*** Stop cut motor [11:34:10]*** Cut end [11:34:10]Read from MH i2c: 01 07 00 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: 01 07 00 C2 24 00 00 00 00 00 FF 0F FB [11:34:10]process_action close_receipt done [11:34:10]requested_data is exist [11:34:10]produce_requested_data [11:34:10]requested_item fm.sn is exist - process it [11:34:10]wFMCommunicate request_size=4 [11:34:10]MH_SAM_APDU [11:34:10]CAPDU: 80 11 00 00 [11:34:10]Write to MH i2c: E2 08 00 C3 24 80 11 00 00 00 00 00 00 61 [11:34:10]Write i2c OK [11:34:10]MH_I2C_Read... [11:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:10]Read from MH i2c: E2 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 17 00 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 17 00 C3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [11:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:34:10]wFMCommunicate OK [11:34:10]requested_item fd.num is exist - process it [11:34:10]SAM_PROTO_GetFieldsCounters [11:34:10]wFMCommunicate request_size=4 [11:34:10]MH_SAM_APDU [11:34:10]CAPDU: 80 13 00 00 [11:34:10]Write to MH i2c: E2 08 00 C4 24 80 13 00 00 00 00 00 00 64 [11:34:10]Write i2c OK [11:34:10]MH_I2C_Read... [11:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:10]Read from MH i2c: E2 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 62 00 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 62 00 C4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [11: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:10]wFMCommunicate OK [11:34:10]SAM_PROTO_GetFieldsCounters done [11:34:10]requested_item shift.num is exist - process it [11:34:10]requested_item shift.opened is exist - process it [11:34:10]req_shift_opened [11:34:10]FM_GetShiftState [11:34:10]SAM_PROTO_GetShiftState [11:34:10]wFMCommunicate request_size=4 [11:34:10]MH_SAM_APDU [11:34:10]CAPDU: 80 13 01 00 [11:34:10]Write to MH i2c: E2 08 00 C5 24 80 13 01 00 00 00 00 00 66 [11:34:10]Write i2c OK [11:34:10]MH_I2C_Read... [11:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:10]Read from MH i2c: E2 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 0E 00 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 0E 00 C5 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1D [11:34:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:34:10]wFMCommunicate OK [11:34:10]SAM_PROTO_GetShiftState done [11:34:10]FM_GetShiftState done [11:34:10]req_shift_opened done [11:34:10]requested_item shift.open_date is exist - process it [11:34:10]req_shift_open_date [11:34:10]req_shift_open_date done [11:34:10]produce_requested_data done [11:34:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139285,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:34:10]process_action_free close_receipt [11:34:10]json_value_free [11:34:10]json_value_free done [11:34:10]process_json_proto returns [11:34:10]Send response to host [11:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139285,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:34:10]free response buf [11:34:10]execute_script done [11:34:10]execute_script returns [11:34:10]free content buf [11:34:10]Sock 7.Close socket [11:34:10]Sock 7.Thread stoped [11:34:14]OFD Sender: No OFD packet to send [11:34:15]accept exits with 9 [11:34:15]New connection [11:34:15]New thread 3067202916 created [11:34:15]Thread 3067059556 joined [11:34:15]Waiting for new connection... [11:34:15] Sock 9.Parse request [11:34:15]Sock 9.Check first char [11:34:15]Sock 9.First char is OK [11:34:15]request: POST /json_proto HTTP/1.0 [11:34:15]Method: POST [11:34:15]URL: /json_proto [11:34:15]Method is POST - this is cgi request [11:34:15]url: /json_proto [11:34:15]query_string will be loaded in cgi processing [11:34:15]execute_cgi json_proto POST (null) [11:34:15]execute_cgi path=json_proto method=POST [11:34:15]POST find Content-Length [11:34:15]Host: 172.17.45.67:8080 [11:34:15]Content-Length: 678 [11:34:15]Content-Type: application/json [11:34:15] [11:34:15]POST finish read [11:34:15]Found Content-Length = 678 [11:34:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.660, "sum" : 790.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:15]execute_script... [11:34:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.660, "sum" : 790.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:15]POST & json_proto [11:34:15]process_json_proto [11:34:15]json parsed OK: [11:34:15]protocol is kg_v1.0 [11:34:15]action value=close_receipt [11:34:15]process_action close_receipt [11:34:15]cmd_close_receipt [11:34:15]MH_GetDate [11:34:15]Write to MH i2c: F0 00 00 C6 24 D9 [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: F0 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: F0 09 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: F0 09 00 C6 24 00 B9 2D C3 66 5F 7F 2B 66 60 [11:34:15]GetLastDocTimeStamp 1724067249 [11:34:15]current date 1724067257 [11:34:15]FM_GetShiftState [11:34:15]SAM_PROTO_GetShiftState [11:34:15]wFMCommunicate request_size=4 [11:34:15]MH_SAM_APDU [11:34:15]CAPDU: 80 13 01 00 [11:34:15]Write to MH i2c: E2 08 00 C7 24 80 13 01 00 00 00 00 00 68 [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: E2 [11:34:15]MH_I2C_Read... [11:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:15]Read from MH i2c: E2 0E 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: E2 0E 00 C7 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1F [11:34:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:34:15]wFMCommunicate OK [11:34:15]SAM_PROTO_GetShiftState done [11:34:15]FM_GetShiftState done [11:34:15]opened in 1724027888 [11:34:15]opened+sec_in_day 1724114288 [11:34:15]quantity*price = 79054 [11:34:15]sum+1 = 79056 [11:34:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 790.00 Внесено: 790.00 СДАЧА: 0.00 НСП 1% : 7.00 НДС 12% : 83.95 Наличными: 790.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 121 19.08.2024 11:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139286 ФПД: 249139074576928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139286&fm=249139074576928&tin=02508201610067®Number=0000000000092569&sum=79000 [11:34:16]StoreToDocumentArchive [11:34:16]shift 452 fd 139286 [11:34:16]save to /storage/0452/doc_00139286 [11:34:16]save last doc name /storage/0452/doc_00139286 to /storage/kkm_last_doc_name [11:34:16]save OK [11:34:16]Clear old archive folders... [11:34:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:16]tlvbuf is 01D84EA0 [11:34:16]SAM_PROTO_ClearQueue [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 09 00 00 [11:34:16]Write to MH i2c: E2 08 00 D4 24 80 09 00 00 00 00 00 00 6A [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 D4 24 00 90 00 6C [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]SAM_PROTO_ClearQueue done [11:34:16]KKMCreateOFDPacket [11:34:16]OFDProtocolAddRootSTLVToBuf [11:34:16]FM_MakeSignedData [11:34:16]FM_MakeSignedData [11:34:16]SAM_PROTO_SignData [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 0D 01 02 [11:34:16]Write to MH i2c: E2 08 00 D5 24 80 0D 01 02 00 00 00 00 72 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 D5 24 00 90 00 6D [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]wFMCommunicate request_size=255 [11:34:16]MH_SAM_APDU [11:34: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 8C 2D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CF 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 20 00 00 00 00 07 04 06 00 98 34 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 B9 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 20 02 00 35 04 06 00 E2 [11:34:16]Write to MH i2c: E2 02 01 D6 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CF 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 20 00 00 00 00 07 04 06 00 98 34 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 B9 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 20 02 00 35 04 06 00 E2 00 00 83 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]wFMCommunicate request_size=10 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 0D 02 02 05 97 36 0A 32 20 [11:34:16]Write to MH i2c: E2 0D 00 D7 24 80 0D 02 02 05 00 97 36 0A 32 20 00 00 A8 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 03 00 D7 24 00 90 00 6F [11:34:16]RAPDU: 90 00 [11:34:16]wFMCommunicate OK [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 0D 03 02 [11:34:16]Write to MH i2c: E2 08 00 D8 24 80 0D 03 02 00 00 00 00 77 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 0B 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 0B 00 D8 24 00 4C CE 51 02 DC FF 83 06 90 00 49 [11:34:16]RAPDU: 4C CE 51 02 DC FF 83 06 90 00 [11:34:16]wFMCommunicate OK [11:34:16]SAM_PROTO_SignData done [11:34:16]FM_MakeSignedData done [11:34:16]CreateOFDProtocolMessage [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 11 00 00 [11:34:16]Write to MH i2c: E2 08 00 D9 24 80 11 00 00 00 00 00 00 77 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 17 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 17 00 D9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CE [11:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:34:16]wFMCommunicate OK [11:34:16]CreateOFDProtocolMessage done [11:34:16]OFDSenderStorePacket 139286 [11:34:16]StoreOFDPacket docnum=139286 [11:34:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1A 39 07 01 00 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 8C 2D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CF 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 20 00 00 00 00 07 04 06 00 98 34 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 B9 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 20 02 00 35 04 06 00 E2 97 36 0A 32 20 4C CE 51 02 DC FF 83 06 [11:34:16]CheckFolder [11:34:16]dirname=/storage/ofd_packets [11:34:17]CheckFolder done [11:34:17]ProducePacketName [11:34:17]name=ofd_packets/00139286 [11:34:17]NVStorageSaveData ofd_packets/00139286 [11:34:17]File name is /storage/ofd_packets/00139286 [11:34:17]Write 301 bytes [11:34:17]NVStorageSaveData done [11:34:17]OFDSenderStorePacket done [11:34:17]KKMCreateOFDPacket done [11:34:17]NVStorageSaveData kkm_last_timestamp [11:34:17]File name is /storage/kkm_last_timestamp [11:34:17]Write 4 bytes [11:34:17]NVStorageSaveData done [11:34:17]ExternCall_PrintAddStr [11:34:17]wPrintStart [11:34:17]Write to MH i2c: 01 00 00 DA 24 FE [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 07 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 07 00 DA 24 00 00 00 00 00 FF 0F 13 [11:34:17]RasterBufferAndPrint [11:34:17]line Счет N : (1)593127 [11:34:17]line ИНН: 02508201610067 [11:34:17]line Контрольно-Кассовый Чек [11:34:17]line ПРОДАЖА [11:34:17]line ТРК (МРК, ГНК) : 32 [11:34:17]line Товар: 2710124130 [11:34:17]line Аи-92-К-5 [11:34:17]line 11.660 * 67.80 [11:34:17]line = 790.55 [11:34:17]line НДС 12% НСП 1% [11:34:17]line > о реализуемом товаре [11:34:17]line ОКРУГЛЕНИЕ: -0.55 [11:34:17]line ИТОГО: 790.00 [11:34:17]line Внесено: 790.00 [11:34:17]line СДАЧА: 0.00 [11:34:17]line НСП 1% : 7.00 [11:34:17]line НДС 12% : 83.95 [11:34:17]line Наличными: 790.00 [11:34:17]line Безнал.: 0.00 [11:34:17]line Место: АЗС № 136 "Партнер Нефть" [11:34:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:34:17]line СНО: Общий режим [11:34:17]line Чек 121 19.08.2024 11:34 [11:34:17]line Смена: 452 ФФД: 1.0 [11:34:17]line ЗНМ: 0300000067 [11:34:17]line РНМ: 0000000000092569 [11:34:17]line Версия ККМ: 001 [11:34:17]line ФМ: 0000000000871776 [11:34:17]line ФД: 139286 [11:34:17]line ФПД: 249139074576928 [11:34:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139286&fm=249139074576928&tin=02508201610067®Number=0000000000092569&sum=79000 [11:34:17]written 0, free lines is 4095 [11:34:17]OFD Sender: Processing packet 139286 [packets to send 137, broken 136] [11:34:17]ProducePacketName [11:34:17]name=ofd_packets/00139286 [11:34:17]OFD Sender: To server: pG, [11:34:17]CommunicateWithHost lk.salyk.kg:30040 [11:34:17]ConnectInit lk.salyk.kg [11:34:17]Connected sock=10 [11:34:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1A 39 07 01 00 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 8C 2D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CF 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 20 00 00 00 00 07 04 06 00 98 34 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 B9 2D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 20 02 00 35 04 06 00 E2 97 36 0A 32 20 4C CE 51 02 DC FF 83 06 [11:34:17]Write to MH i2c: 01 00 00 05 25 2A [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 07 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: 01 07 00 05 25 00 00 00 00 00 D6 0C 13 [11:34:17]RasterBufferAndPrint [11:34:17]line [11:34:17]line [11:34:17]line [11:34:17]line [11:34:17]line [11:34:17]written 0, free lines is 3297 [11:34:17]MH_Cut [11:34:17]Write to MH i2c: D1 01 00 0C 25 01 03 [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: D1 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: D1 01 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: D1 01 00 0C 25 00 02 [11:34:17]Write to MH i2c: 01 00 00 0D 25 32 [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 63 DF 47 00 A3 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 20 02 00 F4 03 04 00 4F D4 C2 66 B6 04 01 00 00 FD 2F 12 65 BC 99 98 88 [11:34:17]CommunicateWithHost err = 0 [11:34:17]CheckOFDResponse [11:34:17]1017 (14) - 77093643461234 [11:34:17]1041 (16) - 0000000000871776 [11:34:17]1040 (4) - 139286 [11:34:17]1012 (4) - 19.08.2024 05:12 [11:34:17]1206 (1) - 0 [11:34:17]OFD Sender: Remove packet 139286 [11:34:17]ProducePacketName [11:34:17]name=ofd_packets/00139286 [11:34:17]NVStorageDeleteData [11:34:18]OFD Sender: No OFD packet to send [11:34:18]*** Cut start [11:34:18]*** Partial cut [11:34:18]*** CUTSNS_PIN = 1 [11:34:18]*** CUTSNS_PIN = 0 [11:34:18]*** Brake cut motor [11:34:18]Read from MH i2c: 01 [11:34:18]MH_I2C_Read... [11:34:18]*** Stop cut motor [11:34:18]*** Cut end [11:34:18]Read from MH i2c: 01 07 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: 01 07 00 0D 25 00 00 00 00 00 FF 0F 47 [11:34:18]process_action close_receipt done [11:34:18]requested_data is exist [11:34:18]produce_requested_data [11:34:18]requested_item fm.sn is exist - process it [11:34:18]wFMCommunicate request_size=4 [11:34:18]MH_SAM_APDU [11:34:18]CAPDU: 80 11 00 00 [11:34:18]Write to MH i2c: E2 08 00 0E 25 80 11 00 00 00 00 00 00 AD [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:18]Read from MH i2c: E2 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 17 00 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 17 00 0E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [11:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:34:18]wFMCommunicate OK [11:34:18]requested_item fd.num is exist - process it [11:34:18]SAM_PROTO_GetFieldsCounters [11:34:18]wFMCommunicate request_size=4 [11:34:18]MH_SAM_APDU [11:34:18]CAPDU: 80 13 00 00 [11:34:18]Write to MH i2c: E2 08 00 0F 25 80 13 00 00 00 00 00 00 B0 [11:34:18]Write i2c OK [11:34:18]MH_I2C_Read... [11:34:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:18]Read from MH i2c: E2 [11:34:18]MH_I2C_Read... [11:34:18]Read from MH i2c: E2 62 00 [11:34:18]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 62 00 0F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [11:34:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:19]wFMCommunicate OK [11:34:19]SAM_PROTO_GetFieldsCounters done [11:34:19]requested_item shift.num is exist - process it [11:34:19]requested_item shift.opened is exist - process it [11:34:19]req_shift_opened [11:34:19]FM_GetShiftState [11:34:19]SAM_PROTO_GetShiftState [11:34:19]wFMCommunicate request_size=4 [11:34:19]MH_SAM_APDU [11:34:19]CAPDU: 80 13 01 00 [11:34:19]Write to MH i2c: E2 08 00 10 25 80 13 01 00 00 00 00 00 B2 [11:34:19]Write i2c OK [11:34:19]MH_I2C_Read... [11:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:19]Read from MH i2c: E2 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 0E 00 [11:34:19]MH_I2C_Read... [11:34:19]Read from MH i2c: E2 0E 00 10 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 69 [11:34:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:34:19]wFMCommunicate OK [11:34:19]SAM_PROTO_GetShiftState done [11:34:19]FM_GetShiftState done [11:34:19]req_shift_opened done [11:34:19]requested_item shift.open_date is exist - process it [11:34:19]req_shift_open_date [11:34:19]req_shift_open_date done [11:34:19]produce_requested_data done [11:34:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139286,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:34:19]process_action_free close_receipt [11:34:19]json_value_free [11:34:19]json_value_free done [11:34:19]process_json_proto returns [11:34:19]Send response to host [11:34:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139286,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:34:19]free response buf [11:34:19]execute_script done [11:34:19]execute_script returns [11:34:19]free content buf [11:34:19]Sock 9.Close socket [11:34:19]Sock 9.Thread stoped [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:51]accept exits with 7 [11:35:51]New connection [11:35:51]New thread 3067059556 created [11:35:51]Thread 3067202916 joined [11:35:51]Waiting for new connection... [11:35:51] Sock 7.Parse request [11:35:51]Sock 7.Check first char [11:35:51]Sock 7.First char is OK [11:35:51]request: POST /json_proto HTTP/1.0 [11:35:51]Method: POST [11:35:51]URL: /json_proto [11:35:51]Method is POST - this is cgi request [11:35:51]url: /json_proto [11:35:51]query_string will be loaded in cgi processing [11:35:51]execute_cgi json_proto POST (null) [11:35:51]execute_cgi path=json_proto method=POST [11:35:51]POST find Content-Length [11:35:51]Host: 172.17.45.67:8080 [11:35:51]Content-Length: 677 [11:35:51]Content-Type: application/json [11:35:51] [11:35:51]POST finish read [11:35:51]Found Content-Length = 677 [11:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.490, "sum" : 236.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 236.00, "total" : 236.00, "payments": [ { "type": 0, "sum" : 236.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:51]execute_script... [11:35: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)593128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.490, "sum" : 236.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 236.00, "total" : 236.00, "payments": [ { "type": 0, "sum" : 236.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:51]POST & json_proto [11:35:51]process_json_proto [11:35:51]json parsed OK: [11:35:51]protocol is kg_v1.0 [11:35:51]action value=close_receipt [11:35:51]process_action close_receipt [11:35:51]cmd_close_receipt [11:35:51]MH_GetDate [11:35:51]Write to MH i2c: F0 00 00 11 25 25 [11:35:51]Write i2c OK [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: F0 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: F0 09 00 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: F0 09 00 11 25 00 1A 2E C3 66 5F 7F 2B 66 0E [11:35:51]GetLastDocTimeStamp 1724067257 [11:35:51]current date 1724067354 [11:35:51]FM_GetShiftState [11:35:51]SAM_PROTO_GetShiftState [11:35:51]wFMCommunicate request_size=4 [11:35:51]MH_SAM_APDU [11:35:51]CAPDU: 80 13 01 00 [11:35:51]Write to MH i2c: E2 08 00 12 25 80 13 01 00 00 00 00 00 B4 [11:35:51]Write i2c OK [11:35:51]MH_I2C_Read... [11:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:51]Read from MH i2c: E2 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 0E 00 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: E2 0E 00 12 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6B [11:35:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:35:51]wFMCommunicate OK [11:35:51]SAM_PROTO_GetShiftState done [11:35:51]FM_GetShiftState done [11:35:51]opened in 1724027888 [11:35:51]opened+sec_in_day 1724114288 [11:35:51]quantity*price = 23662 [11:35:51]sum+1 = 23663 [11:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 236.00 Внесено: 236.00 СДАЧА: 0.00 НСП 1% : 2.09 НДС 12% : 25.13 Наличными: 236.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 122 19.08.2024 11:35 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139287 ФПД: 81008424464842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113554&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139287&fm=81008424464842&tin=02508201610067®Number=0000000000092569&sum=23600 [11:35:52]StoreToDocumentArchive [11:35:52]shift 452 fd 139287 [11:35:52]save to /storage/0452/doc_00139287 [11:35:52]save last doc name /storage/0452/doc_00139287 to /storage/kkm_last_doc_name [11:35:52]save OK [11:35:52]Clear old archive folders... [11:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:53]tlvbuf is 01D5F6F0 [11:35:53]SAM_PROTO_ClearQueue [11:35:53]wFMCommunicate request_size=4 [11:35:53]MH_SAM_APDU [11:35:53]CAPDU: 80 09 00 00 [11:35:53]Write to MH i2c: E2 08 00 1F 25 80 09 00 00 00 00 00 00 B6 [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:53]Read from MH i2c: E2 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 03 00 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 03 00 1F 25 00 90 00 B8 [11:35:53]RAPDU: 90 00 [11:35:53]wFMCommunicate OK [11:35:53]SAM_PROTO_ClearQueue done [11:35:53]KKMCreateOFDPacket [11:35:53]OFDProtocolAddRootSTLVToBuf [11:35:53]FM_MakeSignedData [11:35:53]FM_MakeSignedData [11:35:53]SAM_PROTO_SignData [11:35:53]wFMCommunicate request_size=4 [11:35:53]MH_SAM_APDU [11:35:53]CAPDU: 80 0D 01 02 [11:35:53]Write to MH i2c: E2 08 00 20 25 80 0D 01 02 00 00 00 00 BE [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:53]Read from MH i2c: E2 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 03 00 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 03 00 20 25 00 90 00 B9 [11:35:53]RAPDU: 90 00 [11:35:53]wFMCommunicate OK [11:35:53]wFMCommunicate request_size=255 [11:35:53]MH_SAM_APDU [11:35: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 A2 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6E 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 09 00 00 00 00 07 04 06 00 30 5C 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 1A 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 20 02 00 35 04 06 00 49 [11:35:53]Write to MH i2c: E2 02 01 21 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6E 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 09 00 00 00 00 07 04 06 00 30 5C 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 1A 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 20 02 00 35 04 06 00 49 00 00 D6 [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]OFD Sender: No OFD packet to send [11:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:53]Read from MH i2c: E2 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 03 00 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 03 00 21 25 00 90 00 BA [11:35:53]RAPDU: 90 00 [11:35:53]wFMCommunicate OK [11:35:53]wFMCommunicate request_size=10 [11:35:53]MH_SAM_APDU [11:35:53]CAPDU: 80 0D 02 02 05 AD 3E 5D 31 CA [11:35:53]Write to MH i2c: E2 0D 00 22 25 80 0D 02 02 05 00 AD 3E 5D 31 CA 00 00 0E [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:53]Read from MH i2c: E2 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 03 00 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 03 00 22 25 00 90 00 BB [11:35:53]RAPDU: 90 00 [11:35:53]wFMCommunicate OK [11:35:53]wFMCommunicate request_size=4 [11:35:53]MH_SAM_APDU [11:35:53]CAPDU: 80 0D 03 02 [11:35:53]Write to MH i2c: E2 08 00 23 25 80 0D 03 02 00 00 00 00 C3 [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:53]Read from MH i2c: E2 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 0B 00 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 0B 00 23 25 00 ED 69 0B 9F 54 E4 BB 98 90 00 4F [11:35:53]RAPDU: ED 69 0B 9F 54 E4 BB 98 90 00 [11:35:53]wFMCommunicate OK [11:35:53]SAM_PROTO_SignData done [11:35:53]FM_MakeSignedData done [11:35:53]CreateOFDProtocolMessage [11:35:53]wFMCommunicate request_size=4 [11:35:53]MH_SAM_APDU [11:35:53]CAPDU: 80 11 00 00 [11:35:53]Write to MH i2c: E2 08 00 24 25 80 11 00 00 00 00 00 00 C3 [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:53]Read from MH i2c: E2 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 17 00 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: E2 17 00 24 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1A [11:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:35:53]wFMCommunicate OK [11:35:53]CreateOFDProtocolMessage done [11:35:53]OFDSenderStorePacket 139287 [11:35:53]StoreOFDPacket docnum=139287 [11:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DE DA 07 01 EC 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 A2 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6E 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 09 00 00 00 00 07 04 06 00 30 5C 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 1A 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 20 02 00 35 04 06 00 49 AD 3E 5D 31 CA ED 69 0B 9F 54 E4 BB 98 [11:35:53]CheckFolder [11:35:53]dirname=/storage/ofd_packets [11:35:53]CheckFolder done [11:35:53]ProducePacketName [11:35:53]name=ofd_packets/00139287 [11:35:53]NVStorageSaveData ofd_packets/00139287 [11:35:53]File name is /storage/ofd_packets/00139287 [11:35:53]Write 301 bytes [11:35:53]NVStorageSaveData done [11:35:53]OFDSenderStorePacket done [11:35:53]KKMCreateOFDPacket done [11:35:53]NVStorageSaveData kkm_last_timestamp [11:35:53]File name is /storage/kkm_last_timestamp [11:35:53]Write 4 bytes [11:35:53]NVStorageSaveData done [11:35:53]ExternCall_PrintAddStr [11:35:53]wPrintStart [11:35:53]Write to MH i2c: 01 00 00 25 25 4A [11:35:53]Write i2c OK [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: 01 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: 01 07 00 [11:35:53]MH_I2C_Read... [11:35:53]Read from MH i2c: 01 07 00 25 25 00 00 00 00 00 FF 0F 5F [11:35:53]RasterBufferAndPrint [11:35:53]line Счет N : (1)593128 [11:35:53]line ИНН: 02508201610067 [11:35:53]line Контрольно-Кассовый Чек [11:35:53]line ПРОДАЖА [11:35:53]line ТРК (МРК, ГНК) : 52 [11:35:53]line Товар: 2710124130 [11:35:53]line Аи-92-К-5 [11:35:53]line 3.490 * 67.80 [11:35:53]line = 236.62 [11:35:53]line НДС 12% НСП 1% [11:35:53]line > о реализуемом товаре [11:35:53]line ОКРУГЛЕНИЕ: -0.62 [11:35:53]line ИТОГО: 236.00 [11:35:53]line Внесено: 236.00 [11:35:53]line СДАЧА: 0.00 [11:35:53]line НСП 1% : 2.09 [11:35:53]line НДС 12% : 25.13 [11:35:53]line Наличными: 236.00 [11:35:53]line Безнал.: 0.00 [11:35:53]line Место: АЗС № 136 "Партнер Нефть" [11:35:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:35:53]line СНО: Общий режим [11:35:53]line Чек 122 19.08.2024 11:35 [11:35:53]line Смена: 452 ФФД: 1.0 [11:35:53]line ЗНМ: 0300000067 [11:35:53]line РНМ: 0000000000092569 [11:35:53]line Версия ККМ: 001 [11:35:53]line ФМ: 0000000000871776 [11:35:53]line ФД: 139287 [11:35:53]line ФПД: 81008424464842 [11:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113554&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139287&fm=81008424464842&tin=02508201610067®Number=0000000000092569&sum=23600 [11:35:53]OFD Sender: Processing packet 139287 [packets to send 137, broken 136] [11:35:53]ProducePacketName [11:35:53]name=ofd_packets/00139287 [11:35:53]OFD Sender: To server: pG, [11:35:53]CommunicateWithHost lk.salyk.kg:30040 [11:35:53]ConnectInit lk.salyk.kg [11:35:53]written 0, free lines is 4095 [11:35:53]Connected sock=10 [11:35: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 37 36 0F 01 00 00 DE DA 07 01 EC 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 A2 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6E 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 09 00 00 00 00 07 04 06 00 30 5C 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 1A 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 20 02 00 35 04 06 00 49 AD 3E 5D 31 CA ED 69 0B 9F 54 E4 BB 98 [11:35: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 37 36 4F 00 00 00 17 F4 47 00 AD AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 20 02 00 F4 03 04 00 B0 D4 C2 66 B6 04 01 00 00 7A 03 B7 2D 17 B2 F5 A1 [11:35:54]CommunicateWithHost err = 0 [11:35:54]CheckOFDResponse [11:35:54]1017 (14) - 77093643461234 [11:35:54]1041 (16) - 0000000000871776 [11:35:54]1040 (4) - 139287 [11:35:54]1012 (4) - 19.08.2024 05:14 [11:35:54]1206 (1) - 0 [11:35:54]OFD Sender: Remove packet 139287 [11:35:54]ProducePacketName [11:35:54]name=ofd_packets/00139287 [11:35:54]NVStorageDeleteData [11:35:54]Write to MH i2c: 01 00 00 50 25 75 [11:35:54]Write i2c OK [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: 01 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: 01 07 00 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: 01 07 00 50 25 00 00 00 00 00 D5 0C 5D [11:35:54]RasterBufferAndPrint [11:35:54]line [11:35:54]line [11:35:54]line [11:35:54]line [11:35:54]line [11:35:54]written 0, free lines is 3292 [11:35:54]MH_Cut [11:35:54]Write to MH i2c: D1 01 00 57 25 01 4E [11:35:54]Write i2c OK [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: D1 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: D1 01 00 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: D1 01 00 57 25 00 4D [11:35:54]Write to MH i2c: 01 00 00 58 25 7D [11:35:54]Write i2c OK [11:35:54]MH_I2C_Read... [11:35:54]OFD Sender: No OFD packet to send [11:35:55]*** Cut start [11:35:55]*** Partial cut [11:35:55]*** CUTSNS_PIN = 1 [11:35:55]*** CUTSNS_PIN = 0 [11:35:55]*** Brake cut motor [11:35:55]Read from MH i2c: 01 [11:35:55]MH_I2C_Read... [11:35:55]*** Stop cut motor [11:35:55]*** Cut end [11:35:55]Read from MH i2c: 01 07 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: 01 07 00 58 25 00 00 00 00 00 FF 0F 92 [11:35:55]process_action close_receipt done [11:35:55]requested_data is exist [11:35:55]produce_requested_data [11:35:55]requested_item fm.sn is exist - process it [11:35:55]wFMCommunicate request_size=4 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 11 00 00 [11:35:55]Write to MH i2c: E2 08 00 59 25 80 11 00 00 00 00 00 00 F8 [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 17 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 17 00 59 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [11:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:35:55]wFMCommunicate OK [11:35:55]requested_item fd.num is exist - process it [11:35:55]SAM_PROTO_GetFieldsCounters [11:35:55]wFMCommunicate request_size=4 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 13 00 00 [11:35:55]Write to MH i2c: E2 08 00 5A 25 80 13 00 00 00 00 00 00 FB [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 62 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 62 00 5A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [11:35: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:55]wFMCommunicate OK [11:35:55]SAM_PROTO_GetFieldsCounters done [11:35:55]requested_item shift.num is exist - process it [11:35:55]requested_item shift.opened is exist - process it [11:35:55]req_shift_opened [11:35:55]FM_GetShiftState [11:35:55]SAM_PROTO_GetShiftState [11:35:55]wFMCommunicate request_size=4 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 13 01 00 [11:35:55]Write to MH i2c: E2 08 00 5B 25 80 13 01 00 00 00 00 00 FD [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 0E 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 0E 00 5B 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B4 [11:35:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:35:55]wFMCommunicate OK [11:35:55]SAM_PROTO_GetShiftState done [11:35:55]FM_GetShiftState done [11:35:55]req_shift_opened done [11:35:55]requested_item shift.open_date is exist - process it [11:35:55]req_shift_open_date [11:35:55]req_shift_open_date done [11:35:55]produce_requested_data done [11:35:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139287,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:35:55]process_action_free close_receipt [11:35:55]json_value_free [11:35:55]json_value_free done [11:35:55]process_json_proto returns [11:35:55]Send response to host [11:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139287,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:35:55]free response buf [11:35:55]execute_script done [11:35:55]execute_script returns [11:35:55]free content buf [11:35:55]Sock 7.Close socket [11:35:55]Sock 7.Thread stoped [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:26]accept exits with 9 [11:37:26]New connection [11:37:26]New thread 3067202916 created [11:37:26]Thread 3067059556 joined [11:37:26]Waiting for new connection... [11:37:26] Sock 9.Parse request [11:37:26]Sock 9.Check first char [11:37:26]Sock 9.First char is OK [11:37:26]request: POST /json_proto HTTP/1.0 [11:37:26]Method: POST [11:37:26]URL: /json_proto [11:37:26]Method is POST - this is cgi request [11:37:26]url: /json_proto [11:37:26]query_string will be loaded in cgi processing [11:37:26]execute_cgi json_proto POST (null) [11:37:26]execute_cgi path=json_proto method=POST [11:37:26]POST find Content-Length [11:37:26]Host: 172.17.45.67:8080 [11:37:26]Content-Length: 677 [11:37:26]Content-Type: application/json [11:37:26] [11:37:26]POST finish read [11:37:26]Found Content-Length = 677 [11:37:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.490, "sum" : 575.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 575.00, "total" : 575.00, "payments": [ { "type": 0, "sum" : 575.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:26]execute_script... [11:37: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)593130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.490, "sum" : 575.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 575.00, "total" : 575.00, "payments": [ { "type": 0, "sum" : 575.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:26]POST & json_proto [11:37:26]process_json_proto [11:37:26]json parsed OK: [11:37:26]protocol is kg_v1.0 [11:37:26]action value=close_receipt [11:37:26]process_action close_receipt [11:37:26]cmd_close_receipt [11:37:26]MH_GetDate [11:37:26]Write to MH i2c: F0 00 00 5C 25 70 [11:37:26]Write i2c OK [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: F0 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: F0 09 00 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: F0 09 00 5C 25 00 79 2E C3 66 5F 7F 2B 66 B8 [11:37:26]GetLastDocTimeStamp 1724067354 [11:37:26]current date 1724067449 [11:37:26]FM_GetShiftState [11:37:26]SAM_PROTO_GetShiftState [11:37:26]wFMCommunicate request_size=4 [11:37:26]MH_SAM_APDU [11:37:26]CAPDU: 80 13 01 00 [11:37:26]Write to MH i2c: E2 08 00 5D 25 80 13 01 00 00 00 00 00 FF [11:37:26]Write i2c OK [11:37:26]MH_I2C_Read... [11:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:26]Read from MH i2c: E2 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 0E 00 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 0E 00 5D 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B6 [11:37:26]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:37:26]wFMCommunicate OK [11:37:26]SAM_PROTO_GetShiftState done [11:37:26]FM_GetShiftState done [11:37:26]opened in 1724027888 [11:37:26]opened+sec_in_day 1724114288 [11:37:26]quantity*price = 57562 [11:37:26]sum+1 = 57563 [11:37:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 575.00 Внесено: 575.00 СДАЧА: 0.00 НСП 1% : 5.09 НДС 12% : 61.13 Наличными: 575.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 123 19.08.2024 11:37 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139288 ФПД: 64339208949553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113729&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139288&fm=64339208949553&tin=02508201610067®Number=0000000000092569&sum=57500 [11:37:27]StoreToDocumentArchive [11:37:27]shift 452 fd 139288 [11:37:27]save to /storage/0452/doc_00139288 [11:37:27]save last doc name /storage/0452/doc_00139288 to /storage/kkm_last_doc_name [11:37:27]save OK [11:37:27]Clear old archive folders... [11:37:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:27]tlvbuf is 01D8AB70 [11:37:27]SAM_PROTO_ClearQueue [11:37:27]wFMCommunicate request_size=4 [11:37:27]MH_SAM_APDU [11:37:27]CAPDU: 80 09 00 00 [11:37:27]Write to MH i2c: E2 08 00 6A 25 80 09 00 00 00 00 00 00 01 [11:37:27]Write i2c OK [11:37:27]MH_I2C_Read... [11:37:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:27]Read from MH i2c: E2 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 03 00 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 03 00 6A 25 00 90 00 03 [11:37:27]RAPDU: 90 00 [11:37:27]wFMCommunicate OK [11:37:27]SAM_PROTO_ClearQueue done [11:37:27]KKMCreateOFDPacket [11:37:27]OFDProtocolAddRootSTLVToBuf [11:37:27]FM_MakeSignedData [11:37:27]FM_MakeSignedData [11:37:27]SAM_PROTO_SignData [11:37:27]wFMCommunicate request_size=4 [11:37:27]MH_SAM_APDU [11:37:27]CAPDU: 80 0D 01 02 [11:37:27]Write to MH i2c: E2 08 00 6B 25 80 0D 01 02 00 00 00 00 09 [11:37:27]Write i2c OK [11:37:27]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 6B 25 00 90 00 04 [11:37:28]RAPDU: 90 00 [11:37:28]wFMCommunicate OK [11:37:28]wFMCommunicate request_size=255 [11:37:28]MH_SAM_APDU [11:37: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 2A 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DA E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 17 00 00 00 00 07 04 06 00 9C E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 79 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 20 02 00 35 04 06 00 3A [11:37:28]Write to MH i2c: E2 02 01 6C 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DA E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 17 00 00 00 00 07 04 06 00 9C E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 79 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 20 02 00 35 04 06 00 3A 00 00 2A [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 6C 25 00 90 00 05 [11:37:28]RAPDU: 90 00 [11:37:28]wFMCommunicate OK [11:37:28]wFMCommunicate request_size=10 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 0D 02 02 05 84 23 B1 CF 31 [11:37:28]Write to MH i2c: E2 0D 00 6D 25 80 0D 02 02 05 00 84 23 B1 CF 31 00 00 6E [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 6D 25 00 90 00 06 [11:37:28]RAPDU: 90 00 [11:37:28]wFMCommunicate OK [11:37:28]wFMCommunicate request_size=4 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 0D 03 02 [11:37:28]Write to MH i2c: E2 08 00 6E 25 80 0D 03 02 00 00 00 00 0E [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 0B 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 0B 00 6E 25 00 CB 8C CD 79 52 D8 DF D7 90 00 8C [11:37:28]RAPDU: CB 8C CD 79 52 D8 DF D7 90 00 [11:37:28]wFMCommunicate OK [11:37:28]SAM_PROTO_SignData done [11:37:28]FM_MakeSignedData done [11:37:28]CreateOFDProtocolMessage [11:37:28]wFMCommunicate request_size=4 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 11 00 00 [11:37:28]Write to MH i2c: E2 08 00 6F 25 80 11 00 00 00 00 00 00 0E [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 17 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 17 00 6F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 65 [11:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:37:28]wFMCommunicate OK [11:37:28]CreateOFDProtocolMessage done [11:37:28]OFDSenderStorePacket 139288 [11:37:28]StoreOFDPacket docnum=139288 [11:37:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 69 73 07 01 6C DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DA E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 17 00 00 00 00 07 04 06 00 9C E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 79 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 20 02 00 35 04 06 00 3A 84 23 B1 CF 31 CB 8C CD 79 52 D8 DF D7 [11:37:28]CheckFolder [11:37:28]dirname=/storage/ofd_packets [11:37:28]CheckFolder done [11:37:28]ProducePacketName [11:37:28]name=ofd_packets/00139288 [11:37:28]NVStorageSaveData ofd_packets/00139288 [11:37:28]File name is /storage/ofd_packets/00139288 [11:37:28]Write 301 bytes [11:37:28]NVStorageSaveData done [11:37:28]OFDSenderStorePacket done [11:37:28]KKMCreateOFDPacket done [11:37:28]NVStorageSaveData kkm_last_timestamp [11:37:28]File name is /storage/kkm_last_timestamp [11:37:28]Write 4 bytes [11:37:28]NVStorageSaveData done [11:37:28]ExternCall_PrintAddStr [11:37:28]wPrintStart [11:37:28]Write to MH i2c: 01 00 00 70 25 95 [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 07 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 07 00 70 25 00 00 00 00 00 FF 0F AA [11:37:28]RasterBufferAndPrint [11:37:28]line Счет N : (1)593130 [11:37:28]line ИНН: 02508201610067 [11:37:28]line Контрольно-Кассовый Чек [11:37:28]line ПРОДАЖА [11:37:28]line ТРК (МРК, ГНК) : 62 [11:37:28]line Товар: 2710124130 [11:37:28]line Аи-92-К-5 [11:37:28]line 8.490 * 67.80 [11:37:28]line = 575.62 [11:37:28]line НДС 12% НСП 1% [11:37:28]line > о реализуемом товаре [11:37:28]line ОКРУГЛЕНИЕ: -0.62 [11:37:28]line ИТОГО: 575.00 [11:37:28]line Внесено: 575.00 [11:37:28]line СДАЧА: 0.00 [11:37:28]line НСП 1% : 5.09 [11:37:28]line НДС 12% : 61.13 [11:37:28]line Наличными: 575.00 [11:37:28]line Безнал.: 0.00 [11:37:28]line Место: АЗС № 136 "Партнер Нефть" [11:37:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:37:28]line СНО: Общий режим [11:37:28]line Чек 123 19.08.2024 11:37 [11:37:28]line Смена: 452 ФФД: 1.0 [11:37:28]line ЗНМ: 0300000067 [11:37:28]line РНМ: 0000000000092569 [11:37:28]line Версия ККМ: 001 [11:37:28]line ФМ: 0000000000871776 [11:37:28]line ФД: 139288 [11:37:28]line ФПД: 64339208949553 [11:37:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113729&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139288&fm=64339208949553&tin=02508201610067®Number=0000000000092569&sum=57500 [11:37:28]OFD Sender: Processing packet 139288 [packets to send 137, broken 136] [11:37:28]ProducePacketName [11:37:28]name=ofd_packets/00139288 [11:37:28]OFD Sender: To server: pG, [11:37:28]CommunicateWithHost lk.salyk.kg:30040 [11:37:28]ConnectInit lk.salyk.kg [11:37:28]written 0, free lines is 4095 [11:37:28]Connected sock=10 [11:37: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 37 36 0F 01 00 00 69 73 07 01 6C DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DA E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 17 00 00 00 00 07 04 06 00 9C E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 79 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 20 02 00 35 04 06 00 3A 84 23 B1 CF 31 CB 8C CD 79 52 D8 DF D7 [11:37: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 37 36 4F 00 00 00 F4 71 47 00 E7 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 37 36 10 04 04 00 18 20 02 00 F4 03 04 00 0F D5 C2 66 B6 04 01 00 00 AF C6 A4 97 10 23 B4 7C [11:37:29]CommunicateWithHost err = 0 [11:37:29]CheckOFDResponse [11:37:29]1017 (14) - 77093643461234 [11:37:29]1041 (16) - 0000000000871776 [11:37:29]1040 (4) - 139288 [11:37:29]1012 (4) - 19.08.2024 05:15 [11:37:29]1206 (1) - 0 [11:37:29]OFD Sender: Remove packet 139288 [11:37:29]ProducePacketName [11:37:29]name=ofd_packets/00139288 [11:37:29]NVStorageDeleteData [11:37:29]Write to MH i2c: 01 00 00 9B 25 C0 [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 07 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 07 00 9B 25 00 00 00 00 00 D0 0C A3 [11:37:29]RasterBufferAndPrint [11:37:29]line [11:37:29]line [11:37:29]line [11:37:29]line [11:37:29]line [11:37:29]written 0, free lines is 3287 [11:37:29]MH_Cut [11:37:29]Write to MH i2c: D1 01 00 A2 25 01 99 [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: D1 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: D1 01 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: D1 01 00 A2 25 00 98 [11:37:29]Write to MH i2c: 01 00 00 A3 25 C8 [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]OFD Sender: No OFD packet to send [11:37:29]*** Cut start [11:37:29]*** Partial cut [11:37:29]*** CUTSNS_PIN = 1 [11:37:30]*** CUTSNS_PIN = 0 [11:37:30]*** Brake cut motor [11:37:30]Read from MH i2c: 01 [11:37:30]MH_I2C_Read... [11:37:30]*** Stop cut motor [11:37:30]*** Cut end [11:37:30]Read from MH i2c: 01 07 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: 01 07 00 A3 25 00 00 00 00 00 FF 0F DD [11:37:30]process_action close_receipt done [11:37:30]requested_data is exist [11:37:30]produce_requested_data [11:37:30]requested_item fm.sn is exist - process it [11:37:30]wFMCommunicate request_size=4 [11:37:30]MH_SAM_APDU [11:37:30]CAPDU: 80 11 00 00 [11:37:30]Write to MH i2c: E2 08 00 A4 25 80 11 00 00 00 00 00 00 43 [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:30]Read from MH i2c: E2 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 17 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 17 00 A4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [11:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:37:30]wFMCommunicate OK [11:37:30]requested_item fd.num is exist - process it [11:37:30]SAM_PROTO_GetFieldsCounters [11:37:30]wFMCommunicate request_size=4 [11:37:30]MH_SAM_APDU [11:37:30]CAPDU: 80 13 00 00 [11:37:30]Write to MH i2c: E2 08 00 A5 25 80 13 00 00 00 00 00 00 46 [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:30]Read from MH i2c: E2 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 62 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 62 00 A5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 18 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [11:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 18 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:30]wFMCommunicate OK [11:37:30]SAM_PROTO_GetFieldsCounters done [11:37:30]requested_item shift.num is exist - process it [11:37:30]requested_item shift.opened is exist - process it [11:37:30]req_shift_opened [11:37:30]FM_GetShiftState [11:37:30]SAM_PROTO_GetShiftState [11:37:30]wFMCommunicate request_size=4 [11:37:30]MH_SAM_APDU [11:37:30]CAPDU: 80 13 01 00 [11:37:30]Write to MH i2c: E2 08 00 A6 25 80 13 01 00 00 00 00 00 48 [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:30]Read from MH i2c: E2 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 0E 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 0E 00 A6 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FF [11:37:30]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:37:30]wFMCommunicate OK [11:37:30]SAM_PROTO_GetShiftState done [11:37:30]FM_GetShiftState done [11:37:30]req_shift_opened done [11:37:30]requested_item shift.open_date is exist - process it [11:37:30]req_shift_open_date [11:37:30]req_shift_open_date done [11:37:30]produce_requested_data done [11:37:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139288,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:37:30]process_action_free close_receipt [11:37:30]json_value_free [11:37:30]json_value_free done [11:37:30]process_json_proto returns [11:37:30]Send response to host [11:37:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139288,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:37:30]free response buf [11:37:30]execute_script done [11:37:30]execute_script returns [11:37:30]free content buf [11:37:30]Sock 9.Close socket [11:37:30]Sock 9.Thread stoped [11:37:31]accept exits with 7 [11:37:31]New connection [11:37:31]New thread 3067059556 created [11:37:31]Thread 3067202916 joined [11:37:31]Waiting for new connection... [11:37:31] Sock 7.Parse request [11:37:31]Sock 7.Check first char [11:37:31]Sock 7.First char is OK [11:37:31]request: POST /json_proto HTTP/1.0 [11:37:31]Method: POST [11:37:31]URL: /json_proto [11:37:31]Method is POST - this is cgi request [11:37:31]url: /json_proto [11:37:31]query_string will be loaded in cgi processing [11:37:31]execute_cgi json_proto POST (null) [11:37:31]execute_cgi path=json_proto method=POST [11:37:31]POST find Content-Length [11:37:31]Host: 172.17.45.67:8080 [11:37:31]Content-Length: 682 [11:37:31]Content-Type: application/json [11:37:31] [11:37:31]POST finish read [11:37:31]Found Content-Length = 682 [11:37:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:37:31]execute_script... [11:37: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)593129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:37:31]POST & json_proto [11:37:31]process_json_proto [11:37:31]json parsed OK: [11:37:31]protocol is kg_v1.0 [11:37:31]action value=close_receipt [11:37:31]process_action close_receipt [11:37:31]cmd_close_receipt [11:37:31]MH_GetDate [11:37:31]Write to MH i2c: F0 00 00 A7 25 BB [11:37:31]Write i2c OK [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: F0 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: F0 09 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: F0 09 00 A7 25 00 7D 2E C3 66 5F 7F 2B 66 07 [11:37:31]GetLastDocTimeStamp 1724067449 [11:37:31]current date 1724067453 [11:37:31]FM_GetShiftState [11:37:31]SAM_PROTO_GetShiftState [11:37:31]wFMCommunicate request_size=4 [11:37:31]MH_SAM_APDU [11:37:31]CAPDU: 80 13 01 00 [11:37:31]Write to MH i2c: E2 08 00 A8 25 80 13 01 00 00 00 00 00 4A [11:37:31]Write i2c OK [11:37:31]MH_I2C_Read... [11:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:31]Read from MH i2c: E2 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 0E 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 0E 00 A8 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 01 [11:37:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:37:31]wFMCommunicate OK [11:37:31]SAM_PROTO_GetShiftState done [11:37:31]FM_GetShiftState done [11:37:31]opened in 1724027888 [11:37:31]opened+sec_in_day 1724114288 [11:37:31]quantity*price = 100021 [11:37:31]sum+1 = 100023 [11:37:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 124 19.08.2024 11:37 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139289 ФПД: 279046946766169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113733&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139289&fm=279046946766169&tin=02508201610067®Number=0000000000092569&sum=100000 [11:37:32]StoreToDocumentArchive [11:37:32]shift 452 fd 139289 [11:37:32]save to /storage/0452/doc_00139289 [11:37:32]save last doc name /storage/0452/doc_00139289 to /storage/kkm_last_doc_name [11:37:32]save OK [11:37:32]Clear old archive folders... [11:37:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:32]tlvbuf is B6EFE800 [11:37:32]SAM_PROTO_ClearQueue [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 09 00 00 [11:37:32]Write to MH i2c: E2 08 00 B5 25 80 09 00 00 00 00 00 00 4C [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 B5 25 00 90 00 4E [11:37:32]RAPDU: 90 00 [11:37:32]wFMCommunicate OK [11:37:32]SAM_PROTO_ClearQueue done [11:37:32]KKMCreateOFDPacket [11:37:32]OFDProtocolAddRootSTLVToBuf [11:37:32]FM_MakeSignedData [11:37:32]FM_MakeSignedData [11:37:32]SAM_PROTO_SignData [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 0D 01 02 [11:37:32]Write to MH i2c: E2 08 00 B6 25 80 0D 01 02 00 00 00 00 54 [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 B6 25 00 90 00 4F [11:37:32]RAPDU: 90 00 [11:37:32]wFMCommunicate OK [11:37:32]wFMCommunicate request_size=255 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7D 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 20 02 00 35 04 06 00 FD [11:37:32]Write to MH i2c: E2 02 01 B7 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7D 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 20 02 00 35 04 06 00 FD 00 00 57 [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 B7 25 00 90 00 50 [11:37:33]RAPDU: 90 00 [11:37:33]wFMCommunicate OK [11:37:33]wFMCommunicate request_size=10 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 0D 02 02 05 CA AE 23 3D 59 [11:37:33]Write to MH i2c: E2 0D 00 B8 25 80 0D 02 02 05 00 CA AE 23 3D 59 00 00 92 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 03 00 B8 25 00 90 00 51 [11:37:33]RAPDU: 90 00 [11:37:33]wFMCommunicate OK [11:37:33]wFMCommunicate request_size=4 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 0D 03 02 [11:37:33]Write to MH i2c: E2 08 00 B9 25 80 0D 03 02 00 00 00 00 59 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 0B 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 0B 00 B9 25 00 33 CA 11 91 E7 FD 3B BD 90 00 D5 [11:37:33]RAPDU: 33 CA 11 91 E7 FD 3B BD 90 00 [11:37:33]wFMCommunicate OK [11:37:33]SAM_PROTO_SignData done [11:37:33]FM_MakeSignedData done [11:37:33]CreateOFDProtocolMessage [11:37:33]wFMCommunicate request_size=4 [11:37:33]MH_SAM_APDU [11:37:33]CAPDU: 80 11 00 00 [11:37:33]Write to MH i2c: E2 08 00 BA 25 80 11 00 00 00 00 00 00 59 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 17 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 17 00 BA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B0 [11:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:37:33]wFMCommunicate OK [11:37:33]CreateOFDProtocolMessage done [11:37:33]OFDSenderStorePacket 139289 [11:37:33]StoreOFDPacket docnum=139289 [11:37:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C3 68 07 01 A7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7D 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 20 02 00 35 04 06 00 FD CA AE 23 3D 59 33 CA 11 91 E7 FD 3B BD [11:37:33]CheckFolder [11:37:33]dirname=/storage/ofd_packets [11:37:33]CheckFolder done [11:37:33]ProducePacketName [11:37:33]name=ofd_packets/00139289 [11:37:33]NVStorageSaveData ofd_packets/00139289 [11:37:33]File name is /storage/ofd_packets/00139289 [11:37:33]Write 301 bytes [11:37:33]NVStorageSaveData done [11:37:33]OFDSenderStorePacket done [11:37:33]KKMCreateOFDPacket done [11:37:33]NVStorageSaveData kkm_last_timestamp [11:37:33]File name is /storage/kkm_last_timestamp [11:37:33]Write 4 bytes [11:37:33]NVStorageSaveData done [11:37:33]ExternCall_PrintAddStr [11:37:33]wPrintStart [11:37:33]Write to MH i2c: 01 00 00 BB 25 E0 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 07 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 07 00 BB 25 00 00 00 00 00 FF 0F F5 [11:37:33]RasterBufferAndPrint [11:37:33]line Счет N : (1)593129 [11:37:33]line ИНН: 02508201610067 [11:37:33]line Контрольно-Кассовый Чек [11:37:33]line ПРОДАЖА [11:37:33]line ТРК (МРК, ГНК) : 41 [11:37:33]line Товар: 2710124500 [11:37:33]line Аи-95-К-5 [11:37:33]line 13.480 * 74.20 [11:37:33]line = 1000.22 [11:37:33]line НДС 12% НСП 1% [11:37:33]line > о реализуемом товаре [11:37:33]line ОКРУГЛЕНИЕ: -0.22 [11:37:33]line ИТОГО: 1000.00 [11:37:33]line Внесено: 1000.00 [11:37:33]line СДАЧА: 0.00 [11:37:33]line НСП 1% : 8.85 [11:37:33]line НДС 12% : 106.22 [11:37:33]line Наличными: 1000.00 [11:37:33]line Безнал.: 0.00 [11:37:33]line Место: АЗС № 136 "Партнер Нефть" [11:37:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:37:33]line СНО: Общий режим [11:37:33]line Чек 124 19.08.2024 11:37 [11:37:33]line Смена: 452 ФФД: 1.0 [11:37:33]line ЗНМ: 0300000067 [11:37:33]line РНМ: 0000000000092569 [11:37:33]line Версия ККМ: 001 [11:37:33]line ФМ: 0000000000871776 [11:37:33]line ФД: 139289 [11:37:33]line ФПД: 279046946766169 [11:37:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113733&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139289&fm=279046946766169&tin=02508201610067®Number=0000000000092569&sum=100000 [11:37:33]OFD Sender: Processing packet 139289 [packets to send 137, broken 136] [11:37:33]ProducePacketName [11:37:33]name=ofd_packets/00139289 [11:37:33]OFD Sender: To server: pG, [11:37:33]CommunicateWithHost lk.salyk.kg:30040 [11:37:33]ConnectInit lk.salyk.kg [11:37:33]written 0, free lines is 4095 [11:37:33]Connected sock=10 [11:37: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 37 36 0F 01 00 00 C3 68 07 01 A7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 7D 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 20 02 00 35 04 06 00 FD CA AE 23 3D 59 33 CA 11 91 E7 FD 3B BD [11:37: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 37 36 4F 00 00 00 0A B6 47 00 BC 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 37 36 10 04 04 00 19 20 02 00 F4 03 04 00 14 D5 C2 66 B6 04 01 00 00 C2 85 1D D4 A6 23 43 F4 [11:37:34]CommunicateWithHost err = 0 [11:37:34]CheckOFDResponse [11:37:34]1017 (14) - 77093643461234 [11:37:34]1041 (16) - 0000000000871776 [11:37:34]1040 (4) - 139289 [11:37:34]1012 (4) - 19.08.2024 05:16 [11:37:34]1206 (1) - 0 [11:37:34]OFD Sender: Remove packet 139289 [11:37:34]ProducePacketName [11:37:34]name=ofd_packets/00139289 [11:37:34]NVStorageDeleteData [11:37:34]Write to MH i2c: 01 00 00 E6 25 0B [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: 01 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: 01 07 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: 01 07 00 E6 25 00 00 00 00 00 05 0D 24 [11:37:34]RasterBufferAndPrint [11:37:34]line [11:37:34]line [11:37:34]line [11:37:34]line [11:37:34]line [11:37:34]written 0, free lines is 3350 [11:37:34]MH_Cut [11:37:34]Write to MH i2c: D1 01 00 ED 25 01 E4 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: D1 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: D1 01 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: D1 01 00 ED 25 00 E3 [11:37:34]Write to MH i2c: 01 00 00 EE 25 13 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]OFD Sender: No OFD packet to send [11:37:34]*** Cut start [11:37:34]*** Partial cut [11:37:34]*** CUTSNS_PIN = 1 [11:37:34]*** CUTSNS_PIN = 0 [11:37:35]*** Brake cut motor [11:37:35]Read from MH i2c: 01 [11:37:35]MH_I2C_Read... [11:37:35]*** Stop cut motor [11:37:35]*** Cut end [11:37:35]Read from MH i2c: 01 07 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: 01 07 00 EE 25 00 00 00 00 00 FF 0F 28 [11:37:35]process_action close_receipt done [11:37:35]requested_data is exist [11:37:35]produce_requested_data [11:37:35]requested_item fm.sn is exist - process it [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 11 00 00 [11:37:35]Write to MH i2c: E2 08 00 EF 25 80 11 00 00 00 00 00 00 8E [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 17 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 17 00 EF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E5 [11:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:37:35]wFMCommunicate OK [11:37:35]requested_item fd.num is exist - process it [11:37:35]SAM_PROTO_GetFieldsCounters [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 13 00 00 [11:37:35]Write to MH i2c: E2 08 00 F0 25 80 13 00 00 00 00 00 00 91 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:35]Read from MH i2c: E2 62 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 62 00 F0 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 19 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 19 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:35]wFMCommunicate OK [11:37:35]SAM_PROTO_GetFieldsCounters done [11:37:35]requested_item shift.num is exist - process it [11:37:35]requested_item shift.opened is exist - process it [11:37:35]req_shift_opened [11:37:35]FM_GetShiftState [11:37:35]SAM_PROTO_GetShiftState [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 13 01 00 [11:37:35]Write to MH i2c: E2 08 00 F1 25 80 13 01 00 00 00 00 00 93 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0E 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0E 00 F1 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4A [11:37:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:37:35]wFMCommunicate OK [11:37:35]SAM_PROTO_GetShiftState done [11:37:35]FM_GetShiftState done [11:37:35]req_shift_opened done [11:37:35]requested_item shift.open_date is exist - process it [11:37:35]req_shift_open_date [11:37:35]req_shift_open_date done [11:37:35]produce_requested_data done [11:37:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139289,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:37:35]process_action_free close_receipt [11:37:35]json_value_free [11:37:35]json_value_free done [11:37:35]process_json_proto returns [11:37:35]Send response to host [11:37:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139289,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:37:35]free response buf [11:37:35]execute_script done [11:37:35]execute_script returns [11:37:35]free content buf [11:37:35]Sock 7.Close socket [11:37:35]Sock 7.Thread stoped [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:27]accept exits with 9 [11:39:27]New connection [11:39:27]New thread 3067202916 created [11:39:27]Thread 3067059556 joined [11:39:27]Waiting for new connection... [11:39:27] Sock 9.Parse request [11:39:27]Sock 9.Check first char [11:39:27]Sock 9.First char is OK [11:39:27]request: POST /json_proto HTTP/1.0 [11:39:27]Method: POST [11:39:27]URL: /json_proto [11:39:27]Method is POST - this is cgi request [11:39:27]url: /json_proto [11:39:27]query_string will be loaded in cgi processing [11:39:27]execute_cgi json_proto POST (null) [11:39:27]execute_cgi path=json_proto method=POST [11:39:27]POST find Content-Length [11:39:27]Host: 172.17.45.67:8080 [11:39:27]Content-Length: 677 [11:39:27]Content-Type: application/json [11:39:27] [11:39:27]POST finish read [11:39:27]Found Content-Length = 677 [11:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:27]execute_script... [11:39: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)593131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:27]POST & json_proto [11:39:27]process_json_proto [11:39:27]json parsed OK: [11:39:27]protocol is kg_v1.0 [11:39:27]action value=close_receipt [11:39:27]process_action close_receipt [11:39:27]cmd_close_receipt [11:39:27]MH_GetDate [11:39:27]Write to MH i2c: F0 00 00 F2 25 06 [11:39:27]Write i2c OK [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: F0 [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: F0 09 00 [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: F0 09 00 F2 25 00 F2 2E C3 66 5F 7F 2B 66 C7 [11:39:27]GetLastDocTimeStamp 1724067453 [11:39:27]current date 1724067570 [11:39:27]FM_GetShiftState [11:39:27]SAM_PROTO_GetShiftState [11:39:27]wFMCommunicate request_size=4 [11:39:27]MH_SAM_APDU [11:39:27]CAPDU: 80 13 01 00 [11:39:27]Write to MH i2c: E2 08 00 F3 25 80 13 01 00 00 00 00 00 95 [11:39:27]Write i2c OK [11:39:27]MH_I2C_Read... [11:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:27]Read from MH i2c: E2 [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: E2 0E 00 [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: E2 0E 00 F3 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4C [11:39:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:39:27]wFMCommunicate OK [11:39:27]SAM_PROTO_GetShiftState done [11:39:27]FM_GetShiftState done [11:39:27]opened in 1724027888 [11:39:27]opened+sec_in_day 1724114288 [11:39:27]quantity*price = 40002 [11:39:27]sum+1 = 40003 [11:39:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 125 19.08.2024 11:39 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139290 ФПД: 23145079782592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113930&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139290&fm=23145079782592&tin=02508201610067®Number=0000000000092569&sum=40000 [11:39:29]StoreToDocumentArchive [11:39:29]shift 452 fd 139290 [11:39:29]save to /storage/0452/doc_00139290 [11:39:29]save last doc name /storage/0452/doc_00139290 to /storage/kkm_last_doc_name [11:39:29]save OK [11:39:29]Clear old archive folders... [11:39:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:29]tlvbuf is B6F95BE0 [11:39:29]SAM_PROTO_ClearQueue [11:39:29]wFMCommunicate request_size=4 [11:39:29]MH_SAM_APDU [11:39:29]CAPDU: 80 09 00 00 [11:39:29]Write to MH i2c: E2 08 00 00 26 80 09 00 00 00 00 00 00 98 [11:39:29]Write i2c OK [11:39:29]MH_I2C_Read... [11:39:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:29]Read from MH i2c: E2 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 03 00 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 03 00 00 26 00 90 00 9A [11:39:29]RAPDU: 90 00 [11:39:29]wFMCommunicate OK [11:39:29]SAM_PROTO_ClearQueue done [11:39:29]KKMCreateOFDPacket [11:39:29]OFDProtocolAddRootSTLVToBuf [11:39:29]FM_MakeSignedData [11:39:29]FM_MakeSignedData [11:39:29]SAM_PROTO_SignData [11:39:29]wFMCommunicate request_size=4 [11:39:29]MH_SAM_APDU [11:39:29]CAPDU: 80 0D 01 02 [11:39:29]Write to MH i2c: E2 08 00 01 26 80 0D 01 02 00 00 00 00 A0 [11:39:29]Write i2c OK [11:39:29]MH_I2C_Read... [11:39:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:29]Read from MH i2c: E2 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 03 00 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 03 00 01 26 00 90 00 9B [11:39:29]RAPDU: 90 00 [11:39:29]wFMCommunicate OK [11:39:29]wFMCommunicate request_size=255 [11:39:29]MH_SAM_APDU [11:39:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 7D 00 00 00 F4 03 04 00 F2 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 20 02 00 35 04 06 00 15 [11:39:29]Write to MH i2c: E2 02 01 02 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 7D 00 00 00 F4 03 04 00 F2 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 20 02 00 35 04 06 00 15 00 00 EA [11:39:29]Write i2c OK [11:39:29]MH_I2C_Read... [11:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:29]Read from MH i2c: E2 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 03 00 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 03 00 02 26 00 90 00 9C [11:39:29]RAPDU: 90 00 [11:39:29]wFMCommunicate OK [11:39:29]wFMCommunicate request_size=10 [11:39:29]MH_SAM_APDU [11:39:29]CAPDU: 80 0D 02 02 05 0C E2 42 3C C0 [11:39:29]Write to MH i2c: E2 0D 00 03 26 80 0D 02 02 05 00 0C E2 42 3C C0 00 00 D9 [11:39:29]Write i2c OK [11:39:29]MH_I2C_Read... [11:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:29]Read from MH i2c: E2 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 03 00 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 03 00 03 26 00 90 00 9D [11:39:29]RAPDU: 90 00 [11:39:29]wFMCommunicate OK [11:39:29]wFMCommunicate request_size=4 [11:39:29]MH_SAM_APDU [11:39:29]CAPDU: 80 0D 03 02 [11:39:29]Write to MH i2c: E2 08 00 04 26 80 0D 03 02 00 00 00 00 A5 [11:39:29]Write i2c OK [11:39:29]MH_I2C_Read... [11:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:29]Read from MH i2c: E2 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 0B 00 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 0B 00 04 26 00 BB C2 93 A6 1B CA D9 6C 90 00 86 [11:39:29]RAPDU: BB C2 93 A6 1B CA D9 6C 90 00 [11:39:29]wFMCommunicate OK [11:39:29]SAM_PROTO_SignData done [11:39:29]FM_MakeSignedData done [11:39:29]CreateOFDProtocolMessage [11:39:29]wFMCommunicate request_size=4 [11:39:29]MH_SAM_APDU [11:39:29]CAPDU: 80 11 00 00 [11:39:29]Write to MH i2c: E2 08 00 05 26 80 11 00 00 00 00 00 00 A5 [11:39:29]Write i2c OK [11:39:29]MH_I2C_Read... [11:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:29]Read from MH i2c: E2 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 17 00 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: E2 17 00 05 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FC [11:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:39:29]wFMCommunicate OK [11:39:29]CreateOFDProtocolMessage done [11:39:29]OFDSenderStorePacket 139290 [11:39:29]StoreOFDPacket docnum=139290 [11:39:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 86 FA 07 01 EF 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 7D 00 00 00 F4 03 04 00 F2 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 20 02 00 35 04 06 00 15 0C E2 42 3C C0 BB C2 93 A6 1B CA D9 6C [11:39:29]CheckFolder [11:39:29]dirname=/storage/ofd_packets [11:39:29]CheckFolder done [11:39:29]ProducePacketName [11:39:29]name=ofd_packets/00139290 [11:39:29]NVStorageSaveData ofd_packets/00139290 [11:39:29]File name is /storage/ofd_packets/00139290 [11:39:29]Write 301 bytes [11:39:29]NVStorageSaveData done [11:39:29]OFDSenderStorePacket done [11:39:29]KKMCreateOFDPacket done [11:39:29]NVStorageSaveData kkm_last_timestamp [11:39:29]File name is /storage/kkm_last_timestamp [11:39:29]Write 4 bytes [11:39:29]NVStorageSaveData done [11:39:29]ExternCall_PrintAddStr [11:39:29]wPrintStart [11:39:29]Write to MH i2c: 01 00 00 06 26 2C [11:39:29]Write i2c OK [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: 01 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: 01 07 00 [11:39:29]MH_I2C_Read... [11:39:29]Read from MH i2c: 01 07 00 06 26 00 00 00 00 00 FF 0F 41 [11:39:29]RasterBufferAndPrint [11:39:29]line Счет N : (1)593131 [11:39:29]line ИНН: 02508201610067 [11:39:29]line Контрольно-Кассовый Чек [11:39:29]line ПРОДАЖА [11:39:29]line ТРК (МРК, ГНК) : 42 [11:39:29]line Товар: 2710124130 [11:39:29]line Аи-92-К-5 [11:39:29]line 5.900 * 67.80 [11:39:29]line = 400.02 [11:39:29]line НДС 12% НСП 1% [11:39:29]line > о реализуемом товаре [11:39:29]line ОКРУГЛЕНИЕ: -0.02 [11:39:29]line ИТОГО: 400.00 [11:39:29]line Внесено: 400.00 [11:39:29]line СДАЧА: 0.00 [11:39:29]line НСП 1% : 3.54 [11:39:29]line НДС 12% : 42.48 [11:39:29]line Наличными: 400.00 [11:39:29]line Безнал.: 0.00 [11:39:29]line Место: АЗС № 136 "Партнер Нефть" [11:39:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:39:29]line СНО: Общий режим [11:39:29]line Чек 125 19.08.2024 11:39 [11:39:29]line Смена: 452 ФФД: 1.0 [11:39:29]line ЗНМ: 0300000067 [11:39:29]line РНМ: 0000000000092569 [11:39:29]line Версия ККМ: 001 [11:39:29]line ФМ: 0000000000871776 [11:39:29]line ФД: 139290 [11:39:29]line ФПД: 23145079782592 [11:39:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113930&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139290&fm=23145079782592&tin=02508201610067®Number=0000000000092569&sum=40000 [11:39:29]OFD Sender: Processing packet 139290 [packets to send 137, broken 136] [11:39:29]ProducePacketName [11:39:29]name=ofd_packets/00139290 [11:39:29]OFD Sender: To server: pG, [11:39:29]CommunicateWithHost lk.salyk.kg:30040 [11:39:29]ConnectInit lk.salyk.kg [11:39:29]written 0, free lines is 4095 [11:39:30]Connected sock=7 [11:39:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 86 FA 07 01 EF 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 7D 00 00 00 F4 03 04 00 F2 2E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 20 02 00 35 04 06 00 15 0C E2 42 3C C0 BB C2 93 A6 1B CA D9 6C [11:39: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 37 36 4F 00 00 00 36 92 47 00 74 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 37 36 10 04 04 00 1A 20 02 00 F4 03 04 00 88 D5 C2 66 B6 04 01 00 00 9C F0 06 49 3C B6 4F 83 [11:39:30]CommunicateWithHost err = 0 [11:39:30]CheckOFDResponse [11:39:30]1017 (14) - 77093643461234 [11:39:30]1041 (16) - 0000000000871776 [11:39:30]1040 (4) - 139290 [11:39:30]1012 (4) - 19.08.2024 05:18 [11:39:30]1206 (1) - 0 [11:39:30]OFD Sender: Remove packet 139290 [11:39:30]ProducePacketName [11:39:30]name=ofd_packets/00139290 [11:39:30]NVStorageDeleteData [11:39:30]Write to MH i2c: 01 00 00 31 26 57 [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: 01 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: 01 07 00 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: 01 07 00 31 26 00 00 00 00 00 CA 0C 34 [11:39:30]RasterBufferAndPrint [11:39:30]line [11:39:30]line [11:39:30]line [11:39:30]line [11:39:30]line [11:39:30]written 0, free lines is 3280 [11:39:30]MH_Cut [11:39:30]Write to MH i2c: D1 01 00 38 26 01 30 [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: D1 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: D1 01 00 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: D1 01 00 38 26 00 2F [11:39:30]Write to MH i2c: 01 00 00 39 26 5F [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]OFD Sender: No OFD packet to send [11:39:31]*** Cut start [11:39:31]*** Partial cut [11:39:31]*** CUTSNS_PIN = 1 [11:39:31]*** CUTSNS_PIN = 0 [11:39:31]*** Brake cut motor [11:39:31]Read from MH i2c: 01 [11:39:31]MH_I2C_Read... [11:39:31]*** Stop cut motor [11:39:31]*** Cut end [11:39:31]Read from MH i2c: 01 07 00 [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: 01 07 00 39 26 00 00 00 00 00 FF 0F 74 [11:39:31]process_action close_receipt done [11:39:31]requested_data is exist [11:39:31]produce_requested_data [11:39:31]requested_item fm.sn is exist - process it [11:39:31]wFMCommunicate request_size=4 [11:39:31]MH_SAM_APDU [11:39:31]CAPDU: 80 11 00 00 [11:39:31]Write to MH i2c: E2 08 00 3A 26 80 11 00 00 00 00 00 00 DA [11:39:31]Write i2c OK [11:39:31]MH_I2C_Read... [11:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:31]Read from MH i2c: E2 [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: E2 17 00 [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: E2 17 00 3A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 31 [11:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:39:31]wFMCommunicate OK [11:39:31]requested_item fd.num is exist - process it [11:39:31]SAM_PROTO_GetFieldsCounters [11:39:31]wFMCommunicate request_size=4 [11:39:31]MH_SAM_APDU [11:39:31]CAPDU: 80 13 00 00 [11:39:31]Write to MH i2c: E2 08 00 3B 26 80 13 00 00 00 00 00 00 DD [11:39:31]Write i2c OK [11:39:31]MH_I2C_Read... [11:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:31]Read from MH i2c: E2 [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: E2 62 00 [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: E2 62 00 3B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:39: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:31]wFMCommunicate OK [11:39:31]SAM_PROTO_GetFieldsCounters done [11:39:31]requested_item shift.num is exist - process it [11:39:31]requested_item shift.opened is exist - process it [11:39:31]req_shift_opened [11:39:31]FM_GetShiftState [11:39:31]SAM_PROTO_GetShiftState [11:39:31]wFMCommunicate request_size=4 [11:39:31]MH_SAM_APDU [11:39:31]CAPDU: 80 13 01 00 [11:39:31]Write to MH i2c: E2 08 00 3C 26 80 13 01 00 00 00 00 00 DF [11:39:31]Write i2c OK [11:39:31]MH_I2C_Read... [11:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:32]Read from MH i2c: E2 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 0E 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 0E 00 3C 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 96 [11:39:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:39:32]wFMCommunicate OK [11:39:32]SAM_PROTO_GetShiftState done [11:39:32]FM_GetShiftState done [11:39:32]req_shift_opened done [11:39:32]requested_item shift.open_date is exist - process it [11:39:32]req_shift_open_date [11:39:32]req_shift_open_date done [11:39:32]produce_requested_data done [11:39:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139290,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:39:32]process_action_free close_receipt [11:39:32]json_value_free [11:39:32]json_value_free done [11:39:32]process_json_proto returns [11:39:32]Send response to host [11:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139290,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:39:32]free response buf [11:39:32]execute_script done [11:39:32]execute_script returns [11:39:32]free content buf [11:39:32]Sock 9.Close socket [11:39:32]Sock 9.Thread stoped [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:50]accept exits with 10 [11:40:50]New connection [11:40:50]New thread 3067059556 created [11:40:50]Thread 3067202916 joined [11:40:50]Waiting for new connection... [11:40:50] Sock 10.Parse request [11:40:50]Sock 10.Check first char [11:40:50]Sock 10.First char is OK [11:40:50]request: POST /json_proto HTTP/1.0 [11:40:50]Method: POST [11:40:50]URL: /json_proto [11:40:50]Method is POST - this is cgi request [11:40:50]url: /json_proto [11:40:50]query_string will be loaded in cgi processing [11:40:50]execute_cgi json_proto POST (null) [11:40:50]execute_cgi path=json_proto method=POST [11:40:50]POST find Content-Length [11:40:50]Host: 172.17.45.67:8080 [11:40:50]Content-Length: 677 [11:40:50]Content-Type: application/json [11:40:50] [11:40:50]POST finish read [11:40:50]Found Content-Length = 677 [11:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:40:50]execute_script... [11:40: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)593132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:40:50]POST & json_proto [11:40:50]process_json_proto [11:40:50]json parsed OK: [11:40:50]protocol is kg_v1.0 [11:40:50]action value=close_receipt [11:40:50]process_action close_receipt [11:40:50]cmd_close_receipt [11:40:50]MH_GetDate [11:40:50]Write to MH i2c: F0 00 00 3D 26 52 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: F0 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: F0 09 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: F0 09 00 3D 26 00 45 2F C3 66 5F 7F 2B 66 67 [11:40:50]GetLastDocTimeStamp 1724067570 [11:40:50]current date 1724067653 [11:40:50]FM_GetShiftState [11:40:50]SAM_PROTO_GetShiftState [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 13 01 00 [11:40:50]Write to MH i2c: E2 08 00 3E 26 80 13 01 00 00 00 00 00 E1 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 3E 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 98 [11:40:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:40:50]wFMCommunicate OK [11:40:50]SAM_PROTO_GetShiftState done [11:40:50]FM_GetShiftState done [11:40:50]opened in 1724027888 [11:40:50]opened+sec_in_day 1724114288 [11:40:50]quantity*price = 50036 [11:40:50]sum+1 = 50037 [11:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 126 19.08.2024 11:40 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139291 ФПД: 72659487047544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114053&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139291&fm=72659487047544&tin=02508201610067®Number=0000000000092569&sum=50000 [11:40:51]StoreToDocumentArchive [11:40:51]shift 452 fd 139291 [11:40:51]save to /storage/0452/doc_00139291 [11:40:51]save last doc name /storage/0452/doc_00139291 to /storage/kkm_last_doc_name [11:40:51]save OK [11:40:51]Clear old archive folders... [11:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:51]tlvbuf is 01DB0510 [11:40:51]SAM_PROTO_ClearQueue [11:40:51]wFMCommunicate request_size=4 [11:40:51]MH_SAM_APDU [11:40:51]CAPDU: 80 09 00 00 [11:40:51]Write to MH i2c: E2 08 00 4B 26 80 09 00 00 00 00 00 00 E3 [11:40:51]Write i2c OK [11:40:51]MH_I2C_Read... [11:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:51]Read from MH i2c: E2 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 03 00 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 03 00 4B 26 00 90 00 E5 [11:40:51]RAPDU: 90 00 [11:40:51]wFMCommunicate OK [11:40:51]SAM_PROTO_ClearQueue done [11:40:51]KKMCreateOFDPacket [11:40:51]OFDProtocolAddRootSTLVToBuf [11:40:51]FM_MakeSignedData [11:40:51]FM_MakeSignedData [11:40:51]SAM_PROTO_SignData [11:40:51]wFMCommunicate request_size=4 [11:40:51]MH_SAM_APDU [11:40:51]CAPDU: 80 0D 01 02 [11:40:51]Write to MH i2c: E2 08 00 4C 26 80 0D 01 02 00 00 00 00 EB [11:40:51]Write i2c OK [11:40:51]MH_I2C_Read... [11:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:51]Read from MH i2c: E2 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 03 00 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 03 00 4C 26 00 90 00 E6 [11:40:51]RAPDU: 90 00 [11:40:51]wFMCommunicate OK [11:40:51]wFMCommunicate request_size=255 [11:40:51]MH_SAM_APDU [11:40:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7E 00 00 00 F4 03 04 00 45 2F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 20 02 00 35 04 06 00 42 [11:40:51]Write to MH i2c: E2 02 01 4D 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7E 00 00 00 F4 03 04 00 45 2F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 20 02 00 35 04 06 00 42 00 00 D3 [11:40:51]Write i2c OK [11:40:51]MH_I2C_Read... [11:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:51]Read from MH i2c: E2 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 03 00 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 03 00 4D 26 00 90 00 E7 [11:40:51]RAPDU: 90 00 [11:40:51]wFMCommunicate OK [11:40:51]wFMCommunicate request_size=10 [11:40:51]MH_SAM_APDU [11:40:51]CAPDU: 80 0D 02 02 05 15 5A EA 3F 78 [11:40:51]Write to MH i2c: E2 0D 00 4E 26 80 0D 02 02 05 00 15 5A EA 3F 78 00 00 08 [11:40:51]Write i2c OK [11:40:51]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 4E 26 00 90 00 E8 [11:40:52]RAPDU: 90 00 [11:40:52]wFMCommunicate OK [11:40:52]wFMCommunicate request_size=4 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 0D 03 02 [11:40:52]Write to MH i2c: E2 08 00 4F 26 80 0D 03 02 00 00 00 00 F0 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 0B 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 0B 00 4F 26 00 50 E9 AC AC 93 5B A4 E9 90 00 FD [11:40:52]RAPDU: 50 E9 AC AC 93 5B A4 E9 90 00 [11:40:52]wFMCommunicate OK [11:40:52]SAM_PROTO_SignData done [11:40:52]FM_MakeSignedData done [11:40:52]CreateOFDProtocolMessage [11:40:52]wFMCommunicate request_size=4 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 11 00 00 [11:40:52]Write to MH i2c: E2 08 00 50 26 80 11 00 00 00 00 00 00 F0 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 17 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 17 00 50 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 47 [11:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:40:52]wFMCommunicate OK [11:40:52]CreateOFDProtocolMessage done [11:40:52]OFDSenderStorePacket 139291 [11:40:52]StoreOFDPacket docnum=139291 [11:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 31 3C 07 01 6A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7E 00 00 00 F4 03 04 00 45 2F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 20 02 00 35 04 06 00 42 15 5A EA 3F 78 50 E9 AC AC 93 5B A4 E9 [11:40:52]CheckFolder [11:40:52]dirname=/storage/ofd_packets [11:40:52]CheckFolder done [11:40:52]ProducePacketName [11:40:52]name=ofd_packets/00139291 [11:40:52]NVStorageSaveData ofd_packets/00139291 [11:40:52]File name is /storage/ofd_packets/00139291 [11:40:52]Write 301 bytes [11:40:52]NVStorageSaveData done [11:40:52]OFDSenderStorePacket done [11:40:52]KKMCreateOFDPacket done [11:40:52]NVStorageSaveData kkm_last_timestamp [11:40:52]File name is /storage/kkm_last_timestamp [11:40:52]Write 4 bytes [11:40:52]NVStorageSaveData done [11:40:52]ExternCall_PrintAddStr [11:40:52]wPrintStart [11:40:52]Write to MH i2c: 01 00 00 51 26 77 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 51 26 00 00 00 00 00 FF 0F 8C [11:40:52]RasterBufferAndPrint [11:40:52]line Счет N : (1)593132 [11:40:52]line ИНН: 02508201610067 [11:40:52]line Контрольно-Кассовый Чек [11:40:52]line ПРОДАЖА [11:40:52]line ТРК (МРК, ГНК) : 52 [11:40:52]line Товар: 2710124130 [11:40:52]line Аи-92-К-5 [11:40:52]line 7.380 * 67.80 [11:40:52]line = 500.36 [11:40:52]line НДС 12% НСП 1% [11:40:52]line > о реализуемом товаре [11:40:52]line ОКРУГЛЕНИЕ: -0.36 [11:40:52]line ИТОГО: 500.00 [11:40:52]line Внесено: 500.00 [11:40:52]line СДАЧА: 0.00 [11:40:52]line НСП 1% : 4.43 [11:40:52]line НДС 12% : 53.14 [11:40:52]line Наличными: 500.00 [11:40:52]line Безнал.: 0.00 [11:40:52]line Место: АЗС № 136 "Партнер Нефть" [11:40:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:40:52]line СНО: Общий режим [11:40:52]line Чек 126 19.08.2024 11:40 [11:40:52]line Смена: 452 ФФД: 1.0 [11:40:52]line ЗНМ: 0300000067 [11:40:52]line РНМ: 0000000000092569 [11:40:52]line Версия ККМ: 001 [11:40:52]line ФМ: 0000000000871776 [11:40:52]line ФД: 139291 [11:40:52]line ФПД: 72659487047544 [11:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114053&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139291&fm=72659487047544&tin=02508201610067®Number=0000000000092569&sum=50000 [11:40:52]written 0, free lines is 4095 [11:40:52]OFD Sender: Processing packet 139291 [packets to send 137, broken 136] [11:40:52]ProducePacketName [11:40:52]name=ofd_packets/00139291 [11:40:52]OFD Sender: To server: pG, [11:40:52]CommunicateWithHost lk.salyk.kg:30040 [11:40:52]ConnectInit lk.salyk.kg [11:40:52]Connected sock=9 [11:40: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 37 36 0F 01 00 00 31 3C 07 01 6A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7E 00 00 00 F4 03 04 00 45 2F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 20 02 00 35 04 06 00 42 15 5A EA 3F 78 50 E9 AC AC 93 5B A4 E9 [11:40: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 37 36 4F 00 00 00 61 63 47 00 56 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 20 02 00 F4 03 04 00 DB D5 C2 66 B6 04 01 00 00 DE CB 3B FC 2C 65 B4 FB [11:40:52]CommunicateWithHost err = 0 [11:40:52]CheckOFDResponse [11:40:52]1017 (14) - 77093643461234 [11:40:52]1041 (16) - 0000000000871776 [11:40:52]1040 (4) - 139291 [11:40:52]1012 (4) - 19.08.2024 05:19 [11:40:52]1206 (1) - 0 [11:40:52]OFD Sender: Remove packet 139291 [11:40:52]ProducePacketName [11:40:52]name=ofd_packets/00139291 [11:40:52]NVStorageDeleteData [11:40:52]Write to MH i2c: 01 00 00 7C 26 A2 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 CD 0C 82 [11:40:52]RasterBufferAndPrint [11:40:52]line [11:40:52]line [11:40:52]line [11:40:52]line [11:40:52]line [11:40:52]written 0, free lines is 3284 [11:40:52]MH_Cut [11:40:52]Write to MH i2c: D1 01 00 83 26 01 7B [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: D1 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: D1 01 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: D1 01 00 83 26 00 7A [11:40:52]Write to MH i2c: 01 00 00 84 26 AA [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:53]OFD Sender: No OFD packet to send [11:40:53]*** Cut start [11:40:53]*** Partial cut [11:40:53]*** CUTSNS_PIN = 1 [11:40:53]*** CUTSNS_PIN = 0 [11:40:53]*** Brake cut motor [11:40:54]Read from MH i2c: 01 [11:40:54]MH_I2C_Read... [11:40:54]*** Stop cut motor [11:40:54]*** Cut end [11:40:54]Read from MH i2c: 01 07 00 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: 01 07 00 84 26 00 00 00 00 00 FF 0F BF [11:40:54]process_action close_receipt done [11:40:54]requested_data is exist [11:40:54]produce_requested_data [11:40:54]requested_item fm.sn is exist - process it [11:40:54]wFMCommunicate request_size=4 [11:40:54]MH_SAM_APDU [11:40:54]CAPDU: 80 11 00 00 [11:40:54]Write to MH i2c: E2 08 00 85 26 80 11 00 00 00 00 00 00 25 [11:40:54]Write i2c OK [11:40:54]MH_I2C_Read... [11:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:54]Read from MH i2c: E2 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 17 00 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 17 00 85 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7C [11:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:40:54]wFMCommunicate OK [11:40:54]requested_item fd.num is exist - process it [11:40:54]SAM_PROTO_GetFieldsCounters [11:40:54]wFMCommunicate request_size=4 [11:40:54]MH_SAM_APDU [11:40:54]CAPDU: 80 13 00 00 [11:40:54]Write to MH i2c: E2 08 00 86 26 80 13 00 00 00 00 00 00 28 [11:40:54]Write i2c OK [11:40:54]MH_I2C_Read... [11:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:54]Read from MH i2c: E2 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 62 00 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 62 00 86 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [11:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:54]wFMCommunicate OK [11:40:54]SAM_PROTO_GetFieldsCounters done [11:40:54]requested_item shift.num is exist - process it [11:40:54]requested_item shift.opened is exist - process it [11:40:54]req_shift_opened [11:40:54]FM_GetShiftState [11:40:54]SAM_PROTO_GetShiftState [11:40:54]wFMCommunicate request_size=4 [11:40:54]MH_SAM_APDU [11:40:54]CAPDU: 80 13 01 00 [11:40:54]Write to MH i2c: E2 08 00 87 26 80 13 01 00 00 00 00 00 2A [11:40:54]Write i2c OK [11:40:54]MH_I2C_Read... [11:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:54]Read from MH i2c: E2 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 0E 00 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 0E 00 87 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E1 [11:40:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:40:54]wFMCommunicate OK [11:40:54]SAM_PROTO_GetShiftState done [11:40:54]FM_GetShiftState done [11:40:54]req_shift_opened done [11:40:54]requested_item shift.open_date is exist - process it [11:40:54]req_shift_open_date [11:40:54]req_shift_open_date done [11:40:54]produce_requested_data done [11:40:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139291,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:40:54]process_action_free close_receipt [11:40:54]json_value_free [11:40:54]json_value_free done [11:40:54]process_json_proto returns [11:40:54]Send response to host [11:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139291,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:40:54]free response buf [11:40:54]execute_script done [11:40:54]execute_script returns [11:40:54]free content buf [11:40:54]Sock 10.Close socket [11:40:54]Sock 10.Thread stoped [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:41:59]accept exits with 7 [11:41:59]New connection [11:41:59]New thread 3067202916 created [11:41:59]Thread 3067059556 joined [11:41:59]Waiting for new connection... [11:41:59] Sock 7.Parse request [11:41:59]Sock 7.Check first char [11:41:59]Sock 7.First char is OK [11:41:59]request: POST /json_proto HTTP/1.0 [11:41:59]Method: POST [11:41:59]URL: /json_proto [11:41:59]Method is POST - this is cgi request [11:41:59]url: /json_proto [11:41:59]query_string will be loaded in cgi processing [11:41:59]execute_cgi json_proto POST (null) [11:41:59]execute_cgi path=json_proto method=POST [11:41:59]POST find Content-Length [11:41:59]Host: 172.17.45.67:8080 [11:41:59]Content-Length: 677 [11:41:59]Content-Type: application/json [11:41:59] [11:41:59]POST finish read [11:41:59]Found Content-Length = 677 [11:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:59]execute_script... [11:41: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)593133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:59]POST & json_proto [11:41:59]process_json_proto [11:41:59]json parsed OK: [11:41:59]protocol is kg_v1.0 [11:41:59]action value=close_receipt [11:41:59]process_action close_receipt [11:41:59]cmd_close_receipt [11:41:59]MH_GetDate [11:41:59]Write to MH i2c: F0 00 00 88 26 9D [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: F0 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: F0 09 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: F0 09 00 88 26 00 8A 2F C3 66 5F 7F 2B 66 F7 [11:41:59]GetLastDocTimeStamp 1724067653 [11:41:59]current date 1724067722 [11:41:59]FM_GetShiftState [11:41:59]SAM_PROTO_GetShiftState [11:41:59]wFMCommunicate request_size=4 [11:41:59]MH_SAM_APDU [11:41:59]CAPDU: 80 13 01 00 [11:41:59]Write to MH i2c: E2 08 00 89 26 80 13 01 00 00 00 00 00 2C [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:59]Read from MH i2c: E2 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 0E 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 0E 00 89 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E3 [11:41:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:41:59]wFMCommunicate OK [11:41:59]SAM_PROTO_GetShiftState done [11:41:59]FM_GetShiftState done [11:41:59]opened in 1724027888 [11:41:59]opened+sec_in_day 1724114288 [11:41:59]quantity*price = 50036 [11:41:59]sum+1 = 50037 [11:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 127 19.08.2024 11:42 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139292 ФПД: 193460567219477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114202&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139292&fm=193460567219477&tin=02508201610067®Number=0000000000092569&sum=50000 [11:42:00]StoreToDocumentArchive [11:42:00]shift 452 fd 139292 [11:42:00]save to /storage/0452/doc_00139292 [11:42:00]save last doc name /storage/0452/doc_00139292 to /storage/kkm_last_doc_name [11:42:00]save OK [11:42:00]Clear old archive folders... [11:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:00]tlvbuf is 01E76D70 [11:42:00]SAM_PROTO_ClearQueue [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 09 00 00 [11:42:00]Write to MH i2c: E2 08 00 96 26 80 09 00 00 00 00 00 00 2E [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 96 26 00 90 00 30 [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]SAM_PROTO_ClearQueue done [11:42:00]KKMCreateOFDPacket [11:42:00]OFDProtocolAddRootSTLVToBuf [11:42:00]FM_MakeSignedData [11:42:00]FM_MakeSignedData [11:42:00]SAM_PROTO_SignData [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 0D 01 02 [11:42:00]Write to MH i2c: E2 08 00 97 26 80 0D 01 02 00 00 00 00 36 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 97 26 00 90 00 31 [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]wFMCommunicate request_size=255 [11:42:00]MH_SAM_APDU [11:42: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7F 00 00 00 F4 03 04 00 8A 2F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 20 02 00 35 04 06 00 AF [11:42:00]Write to MH i2c: E2 02 01 98 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7F 00 00 00 F4 03 04 00 8A 2F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 20 02 00 35 04 06 00 AF 00 00 D2 [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:01]Read from MH i2c: E2 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 03 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 03 00 98 26 00 90 00 32 [11:42:01]RAPDU: 90 00 [11:42:01]wFMCommunicate OK [11:42:01]wFMCommunicate request_size=10 [11:42:01]MH_SAM_APDU [11:42:01]CAPDU: 80 0D 02 02 05 F3 8C 63 1D 15 [11:42:01]Write to MH i2c: E2 0D 00 99 26 80 0D 02 02 05 00 F3 8C 63 1D 15 00 00 57 [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:01]Read from MH i2c: E2 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 03 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 03 00 99 26 00 90 00 33 [11:42:01]RAPDU: 90 00 [11:42:01]wFMCommunicate OK [11:42:01]wFMCommunicate request_size=4 [11:42:01]MH_SAM_APDU [11:42:01]CAPDU: 80 0D 03 02 [11:42:01]Write to MH i2c: E2 08 00 9A 26 80 0D 03 02 00 00 00 00 3B [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:01]Read from MH i2c: E2 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 0B 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 0B 00 9A 26 00 5E 0F 4A 85 AE 7F F0 74 90 00 09 [11:42:01]RAPDU: 5E 0F 4A 85 AE 7F F0 74 90 00 [11:42:01]wFMCommunicate OK [11:42:01]SAM_PROTO_SignData done [11:42:01]FM_MakeSignedData done [11:42:01]CreateOFDProtocolMessage [11:42:01]wFMCommunicate request_size=4 [11:42:01]MH_SAM_APDU [11:42:01]CAPDU: 80 11 00 00 [11:42:01]Write to MH i2c: E2 08 00 9B 26 80 11 00 00 00 00 00 00 3B [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:01]Read from MH i2c: E2 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 17 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 17 00 9B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 92 [11:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:01]wFMCommunicate OK [11:42:01]CreateOFDProtocolMessage done [11:42:01]OFDSenderStorePacket 139292 [11:42:01]StoreOFDPacket docnum=139292 [11:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 14 49 07 01 AE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7F 00 00 00 F4 03 04 00 8A 2F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 20 02 00 35 04 06 00 AF F3 8C 63 1D 15 5E 0F 4A 85 AE 7F F0 74 [11:42:01]CheckFolder [11:42:01]dirname=/storage/ofd_packets [11:42:01]CheckFolder done [11:42:01]ProducePacketName [11:42:01]name=ofd_packets/00139292 [11:42:01]NVStorageSaveData ofd_packets/00139292 [11:42:01]File name is /storage/ofd_packets/00139292 [11:42:01]Write 301 bytes [11:42:01]NVStorageSaveData done [11:42:01]OFDSenderStorePacket done [11:42:01]KKMCreateOFDPacket done [11:42:01]NVStorageSaveData kkm_last_timestamp [11:42:01]File name is /storage/kkm_last_timestamp [11:42:01]Write 4 bytes [11:42:01]NVStorageSaveData done [11:42:01]ExternCall_PrintAddStr [11:42:01]wPrintStart [11:42:01]Write to MH i2c: 01 00 00 9C 26 C2 [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 07 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 07 00 9C 26 00 00 00 00 00 FF 0F D7 [11:42:01]RasterBufferAndPrint [11:42:01]line Счет N : (1)593133 [11:42:01]line ИНН: 02508201610067 [11:42:01]line Контрольно-Кассовый Чек [11:42:01]line ПРОДАЖА [11:42:01]line ТРК (МРК, ГНК) : 32 [11:42:01]line Товар: 2710124130 [11:42:01]line Аи-92-К-5 [11:42:01]line 7.380 * 67.80 [11:42:01]line = 500.36 [11:42:01]line НДС 12% НСП 1% [11:42:01]line > о реализуемом товаре [11:42:01]line ОКРУГЛЕНИЕ: -0.36 [11:42:01]line ИТОГО: 500.00 [11:42:01]line Внесено: 500.00 [11:42:01]line СДАЧА: 0.00 [11:42:01]line НСП 1% : 4.43 [11:42:01]line НДС 12% : 53.14 [11:42:01]line Наличными: 500.00 [11:42:01]line Безнал.: 0.00 [11:42:01]line Место: АЗС № 136 "Партнер Нефть" [11:42:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:42:01]line СНО: Общий режим [11:42:01]line Чек 127 19.08.2024 11:42 [11:42:01]line Смена: 452 ФФД: 1.0 [11:42:01]line ЗНМ: 0300000067 [11:42:01]line РНМ: 0000000000092569 [11:42:01]line Версия ККМ: 001 [11:42:01]line ФМ: 0000000000871776 [11:42:01]line ФД: 139292 [11:42:01]line ФПД: 193460567219477 [11:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114202&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139292&fm=193460567219477&tin=02508201610067®Number=0000000000092569&sum=50000 [11:42:01]OFD Sender: Processing packet 139292 [packets to send 137, broken 136] [11:42:01]ProducePacketName [11:42:01]name=ofd_packets/00139292 [11:42:01]OFD Sender: To server: pG, [11:42:01]CommunicateWithHost lk.salyk.kg:30040 [11:42:01]ConnectInit lk.salyk.kg [11:42:01]written 0, free lines is 4095 [11:42:01]Connected sock=10 [11:42: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 37 36 0F 01 00 00 14 49 07 01 AE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7F 00 00 00 F4 03 04 00 8A 2F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 20 02 00 35 04 06 00 AF F3 8C 63 1D 15 5E 0F 4A 85 AE 7F F0 74 [11:42:02]Write to MH i2c: 01 00 00 C7 26 ED [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 07 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 07 00 C7 26 00 00 00 00 00 D0 0C D0 [11:42:02]RasterBufferAndPrint [11:42:02]line [11:42:02]line [11:42:02]line [11:42:02]line [11:42:02]line [11:42:02]written 0, free lines is 3288 [11:42: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 37 36 4F 00 00 00 76 5A 47 00 84 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 37 36 10 04 04 00 1C 20 02 00 F4 03 04 00 20 D6 C2 66 B6 04 01 00 00 85 85 DD 08 80 5C C6 DF [11:42:02]CommunicateWithHost err = 0 [11:42:02]CheckOFDResponse [11:42:02]1017 (14) - 77093643461234 [11:42:02]1041 (16) - 0000000000871776 [11:42:02]1040 (4) - 139292 [11:42:02]1012 (4) - 19.08.2024 05:20 [11:42:02]1206 (1) - 0 [11:42:02]OFD Sender: Remove packet 139292 [11:42:02]ProducePacketName [11:42:02]name=ofd_packets/00139292 [11:42:02]NVStorageDeleteData [11:42:02]MH_Cut [11:42:02]Write to MH i2c: D1 01 00 CE 26 01 C6 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: D1 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: D1 01 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: D1 01 00 CE 26 00 C5 [11:42:02]Write to MH i2c: 01 00 00 CF 26 F5 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]OFD Sender: No OFD packet to send [11:42:02]*** Cut start [11:42:02]*** Partial cut [11:42:02]*** CUTSNS_PIN = 1 [11:42:02]*** CUTSNS_PIN = 0 [11:42:03]*** Brake cut motor [11:42:03]Read from MH i2c: 01 [11:42:03]MH_I2C_Read... [11:42:03]*** Stop cut motor [11:42:03]*** Cut end [11:42:03]Read from MH i2c: 01 07 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: 01 07 00 CF 26 00 00 00 00 00 FF 0F 0A [11:42:03]process_action close_receipt done [11:42:03]requested_data is exist [11:42:03]produce_requested_data [11:42:03]requested_item fm.sn is exist - process it [11:42:03]wFMCommunicate request_size=4 [11:42:03]MH_SAM_APDU [11:42:03]CAPDU: 80 11 00 00 [11:42:03]Write to MH i2c: E2 08 00 D0 26 80 11 00 00 00 00 00 00 70 [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 17 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 17 00 D0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C7 [11:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:03]wFMCommunicate OK [11:42:03]requested_item fd.num is exist - process it [11:42:03]SAM_PROTO_GetFieldsCounters [11:42:03]wFMCommunicate request_size=4 [11:42:03]MH_SAM_APDU [11:42:03]CAPDU: 80 13 00 00 [11:42:03]Write to MH i2c: E2 08 00 D1 26 80 13 00 00 00 00 00 00 73 [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 62 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 62 00 D1 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:03]wFMCommunicate OK [11:42:03]SAM_PROTO_GetFieldsCounters done [11:42:03]requested_item shift.num is exist - process it [11:42:03]requested_item shift.opened is exist - process it [11:42:03]req_shift_opened [11:42:03]FM_GetShiftState [11:42:03]SAM_PROTO_GetShiftState [11:42:03]wFMCommunicate request_size=4 [11:42:03]MH_SAM_APDU [11:42:03]CAPDU: 80 13 01 00 [11:42:03]Write to MH i2c: E2 08 00 D2 26 80 13 01 00 00 00 00 00 75 [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 0E 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 0E 00 D2 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2C [11:42:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:42:03]wFMCommunicate OK [11:42:03]SAM_PROTO_GetShiftState done [11:42:03]FM_GetShiftState done [11:42:03]req_shift_opened done [11:42:03]requested_item shift.open_date is exist - process it [11:42:03]req_shift_open_date [11:42:03]req_shift_open_date done [11:42:03]produce_requested_data done [11:42:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139292,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:42:03]process_action_free close_receipt [11:42:03]json_value_free [11:42:03]json_value_free done [11:42:03]process_json_proto returns [11:42:03]Send response to host [11:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139292,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:42:03]free response buf [11:42:03]execute_script done [11:42:03]execute_script returns [11:42:03]free content buf [11:42:03]Sock 7.Close socket [11:42:03]Sock 7.Thread stoped [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:27]accept exits with 9 [11:44:27]New connection [11:44:27]New thread 3067059556 created [11:44:27]Thread 3067202916 joined [11:44:27]Waiting for new connection... [11:44:27] Sock 9.Parse request [11:44:27]Sock 9.Check first char [11:44:27]Sock 9.First char is OK [11:44:27]request: POST /json_proto HTTP/1.0 [11:44:27]Method: POST [11:44:27]URL: /json_proto [11:44:27]Method is POST - this is cgi request [11:44:27]url: /json_proto [11:44:27]query_string will be loaded in cgi processing [11:44:27]execute_cgi json_proto POST (null) [11:44:27]execute_cgi path=json_proto method=POST [11:44:27]POST find Content-Length [11:44:27]Host: 172.17.45.67:8080 [11:44:27]Content-Length: 677 [11:44:27]Content-Type: application/json [11:44:27] [11:44:27]POST finish read [11:44:27]Found Content-Length = 677 [11:44:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:44:27]execute_script... [11: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)593134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:44:27]POST & json_proto [11:44:27]process_json_proto [11:44:27]json parsed OK: [11:44:27]protocol is kg_v1.0 [11:44:27]action value=close_receipt [11:44:27]process_action close_receipt [11:44:27]cmd_close_receipt [11:44:27]MH_GetDate [11:44:27]Write to MH i2c: F0 00 00 D3 26 E8 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: F0 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: F0 09 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: F0 09 00 D3 26 00 1E 30 C3 66 5F 7F 2B 66 D7 [11:44:27]GetLastDocTimeStamp 1724067722 [11:44:27]current date 1724067870 [11:44:27]FM_GetShiftState [11:44:27]SAM_PROTO_GetShiftState [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 13 01 00 [11:44:27]Write to MH i2c: E2 08 00 D4 26 80 13 01 00 00 00 00 00 77 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0E 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0E 00 D4 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2E [11:44:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:44:28]wFMCommunicate OK [11:44:28]SAM_PROTO_GetShiftState done [11:44:28]FM_GetShiftState done [11:44:28]opened in 1724027888 [11:44:28]opened+sec_in_day 1724114288 [11:44:28]quantity*price = 50036 [11:44:28]sum+1 = 50037 [11:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 128 19.08.2024 11:44 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139293 ФПД: 40406952529945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139293&fm=40406952529945&tin=02508201610067®Number=0000000000092569&sum=50000 [11:44:29]StoreToDocumentArchive [11:44:29]shift 452 fd 139293 [11:44:29]save to /storage/0452/doc_00139293 [11:44:29]save last doc name /storage/0452/doc_00139293 to /storage/kkm_last_doc_name [11:44:29]save OK [11:44:29]Clear old archive folders... [11:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:29]tlvbuf is 01E44160 [11:44:29]SAM_PROTO_ClearQueue [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 09 00 00 [11:44:29]Write to MH i2c: E2 08 00 E1 26 80 09 00 00 00 00 00 00 79 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 E1 26 00 90 00 7B [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]SAM_PROTO_ClearQueue done [11:44:29]KKMCreateOFDPacket [11:44:29]OFDProtocolAddRootSTLVToBuf [11:44:29]FM_MakeSignedData [11:44:29]FM_MakeSignedData [11:44:29]SAM_PROTO_SignData [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 0D 01 02 [11:44:29]Write to MH i2c: E2 08 00 E2 26 80 0D 01 02 00 00 00 00 81 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 E2 26 00 90 00 7C [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]wFMCommunicate request_size=255 [11:44:29]MH_SAM_APDU [11: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 80 00 00 00 F4 03 04 00 1E 30 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 20 02 00 35 04 06 00 24 [11:44:29]Write to MH i2c: E2 02 01 E3 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 80 00 00 00 F4 03 04 00 1E 30 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 20 02 00 35 04 06 00 24 00 00 29 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 E3 26 00 90 00 7D [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]wFMCommunicate request_size=10 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 0D 02 02 05 BF FA 0D 50 19 [11:44:29]Write to MH i2c: E2 0D 00 E4 26 80 0D 02 02 05 00 BF FA 0D 50 19 00 00 BD [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 E4 26 00 90 00 7E [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 0D 03 02 [11:44:29]Write to MH i2c: E2 08 00 E5 26 80 0D 03 02 00 00 00 00 86 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 0B 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 0B 00 E5 26 00 91 EC 61 29 CB 9D 24 71 90 00 8B [11:44:29]RAPDU: 91 EC 61 29 CB 9D 24 71 90 00 [11:44:29]wFMCommunicate OK [11:44:29]SAM_PROTO_SignData done [11:44:29]FM_MakeSignedData done [11:44:29]CreateOFDProtocolMessage [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 11 00 00 [11:44:29]Write to MH i2c: E2 08 00 E6 26 80 11 00 00 00 00 00 00 86 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 17 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 17 00 E6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DD [11:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:44:29]wFMCommunicate OK [11:44:29]CreateOFDProtocolMessage done [11:44:29]OFDSenderStorePacket 139293 [11:44:29]StoreOFDPacket docnum=139293 [11:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B7 A2 07 01 58 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 80 00 00 00 F4 03 04 00 1E 30 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 20 02 00 35 04 06 00 24 BF FA 0D 50 19 91 EC 61 29 CB 9D 24 71 [11:44:29]CheckFolder [11:44:29]dirname=/storage/ofd_packets [11:44:29]CheckFolder done [11:44:29]ProducePacketName [11:44:29]name=ofd_packets/00139293 [11:44:29]NVStorageSaveData ofd_packets/00139293 [11:44:29]File name is /storage/ofd_packets/00139293 [11:44:29]Write 301 bytes [11:44:29]NVStorageSaveData done [11:44:29]OFDSenderStorePacket done [11:44:29]KKMCreateOFDPacket done [11:44:29]NVStorageSaveData kkm_last_timestamp [11:44:29]File name is /storage/kkm_last_timestamp [11:44:29]Write 4 bytes [11:44:29]NVStorageSaveData done [11:44:29]ExternCall_PrintAddStr [11:44:29]wPrintStart [11:44:29]Write to MH i2c: 01 00 00 E7 26 0D [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 07 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 07 00 E7 26 00 00 00 00 00 FF 0F 22 [11:44:29]RasterBufferAndPrint [11:44:29]line Счет N : (1)593134 [11:44:29]line ИНН: 02508201610067 [11:44:29]line Контрольно-Кассовый Чек [11:44:29]line ПРОДАЖА [11:44:29]line ТРК (МРК, ГНК) : 52 [11:44:29]line Товар: 2710124130 [11:44:29]line Аи-92-К-5 [11:44:29]line 7.380 * 67.80 [11:44:29]line = 500.36 [11:44:29]line НДС 12% НСП 1% [11:44:29]line > о реализуемом товаре [11:44:29]line ОКРУГЛЕНИЕ: -0.36 [11:44:29]line ИТОГО: 500.00 [11:44:29]line Внесено: 500.00 [11:44:29]line СДАЧА: 0.00 [11:44:29]line НСП 1% : 4.43 [11:44:29]line НДС 12% : 53.14 [11:44:29]line Наличными: 500.00 [11:44:29]line Безнал.: 0.00 [11:44:29]line Место: АЗС № 136 "Партнер Нефть" [11:44:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:44:29]line СНО: Общий режим [11:44:29]line Чек 128 19.08.2024 11:44 [11:44:29]line Смена: 452 ФФД: 1.0 [11:44:29]line ЗНМ: 0300000067 [11:44:29]line РНМ: 0000000000092569 [11:44:29]line Версия ККМ: 001 [11:44:29]line ФМ: 0000000000871776 [11:44:29]line ФД: 139293 [11:44:29]line ФПД: 40406952529945 [11:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139293&fm=40406952529945&tin=02508201610067®Number=0000000000092569&sum=50000 [11:44:29]OFD Sender: Processing packet 139293 [packets to send 137, broken 136] [11:44:29]ProducePacketName [11:44:29]name=ofd_packets/00139293 [11:44:29]OFD Sender: To server: pG, [11:44:29]CommunicateWithHost lk.salyk.kg:30040 [11:44:29]ConnectInit lk.salyk.kg [11:44:29]written 0, free lines is 4095 [11:44:30]Connected sock=10 [11:44:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B7 A2 07 01 58 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 80 00 00 00 F4 03 04 00 1E 30 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 20 02 00 35 04 06 00 24 BF FA 0D 50 19 91 EC 61 29 CB 9D 24 71 [11: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 37 36 4F 00 00 00 E5 0A 47 00 4A 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 37 36 10 04 04 00 1D 20 02 00 F4 03 04 00 B4 D6 C2 66 B6 04 01 00 00 B0 46 73 AC E0 33 24 85 [11:44:30]CommunicateWithHost err = 0 [11:44:30]CheckOFDResponse [11:44:30]1017 (14) - 77093643461234 [11:44:30]1041 (16) - 0000000000871776 [11:44:30]1040 (4) - 139293 [11:44:30]1012 (4) - 19.08.2024 05:23 [11:44:30]1206 (1) - 0 [11:44:30]OFD Sender: Remove packet 139293 [11:44:30]ProducePacketName [11:44:30]name=ofd_packets/00139293 [11:44:30]NVStorageDeleteData [11:44:30]Write to MH i2c: 01 00 00 12 27 39 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 07 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 07 00 12 27 00 00 00 00 00 C9 0C 15 [11:44:30]RasterBufferAndPrint [11:44:30]line [11:44:30]line [11:44:30]line [11:44:30]line [11:44:30]line [11:44:30]written 0, free lines is 3279 [11:44:30]MH_Cut [11:44:30]Write to MH i2c: D1 01 00 19 27 01 12 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: D1 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: D1 01 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: D1 01 00 19 27 00 11 [11:44:30]Write to MH i2c: 01 00 00 1A 27 41 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]OFD Sender: No OFD packet to send [11:44:31]*** Cut start [11:44:31]*** Partial cut [11:44:31]*** CUTSNS_PIN = 1 [11:44:31]*** CUTSNS_PIN = 0 [11:44:31]*** Brake cut motor [11:44:31]Read from MH i2c: 01 [11:44:31]MH_I2C_Read... [11:44:31]*** Stop cut motor [11:44:31]*** Cut end [11:44:31]Read from MH i2c: 01 07 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: 01 07 00 1A 27 00 00 00 00 00 FF 0F 56 [11:44:31]process_action close_receipt done [11:44:31]requested_data is exist [11:44:31]produce_requested_data [11:44:31]requested_item fm.sn is exist - process it [11:44:31]wFMCommunicate request_size=4 [11:44:31]MH_SAM_APDU [11:44:31]CAPDU: 80 11 00 00 [11:44:31]Write to MH i2c: E2 08 00 1B 27 80 11 00 00 00 00 00 00 BC [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:31]Read from MH i2c: E2 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 17 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 17 00 1B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 13 [11:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:44:31]wFMCommunicate OK [11:44:31]requested_item fd.num is exist - process it [11:44:31]SAM_PROTO_GetFieldsCounters [11:44:31]wFMCommunicate request_size=4 [11:44:31]MH_SAM_APDU [11:44:31]CAPDU: 80 13 00 00 [11:44:31]Write to MH i2c: E2 08 00 1C 27 80 13 00 00 00 00 00 00 BF [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:31]Read from MH i2c: E2 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 62 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 62 00 1C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [11:44: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:31]wFMCommunicate OK [11:44:31]SAM_PROTO_GetFieldsCounters done [11:44:31]requested_item shift.num is exist - process it [11:44:31]requested_item shift.opened is exist - process it [11:44:31]req_shift_opened [11:44:31]FM_GetShiftState [11:44:31]SAM_PROTO_GetShiftState [11:44:31]wFMCommunicate request_size=4 [11:44:31]MH_SAM_APDU [11:44:31]CAPDU: 80 13 01 00 [11:44:31]Write to MH i2c: E2 08 00 1D 27 80 13 01 00 00 00 00 00 C1 [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 0E 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 0E 00 1D 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 78 [11:44:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:44:32]wFMCommunicate OK [11:44:32]SAM_PROTO_GetShiftState done [11:44:32]FM_GetShiftState done [11:44:32]req_shift_opened done [11:44:32]requested_item shift.open_date is exist - process it [11:44:32]req_shift_open_date [11:44:32]req_shift_open_date done [11:44:32]produce_requested_data done [11:44:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139293,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:44:32]process_action_free close_receipt [11:44:32]json_value_free [11:44:32]json_value_free done [11:44:32]process_json_proto returns [11:44:32]Send response to host [11:44:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139293,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:44:32]free response buf [11:44:32]execute_script done [11:44:32]execute_script returns [11:44:32]free content buf [11:44:32]Sock 9.Close socket [11:44:32]Sock 9.Thread stoped [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:24]accept exits with 7 [11:45:24]New connection [11:45:24]New thread 3067202916 created [11:45:24]Thread 3067059556 joined [11:45:24]Waiting for new connection... [11:45:24] Sock 7.Parse request [11:45:24]Sock 7.Check first char [11:45:24]Sock 7.First char is OK [11:45:24]request: POST /json_proto HTTP/1.0 [11:45:24]Method: POST [11:45:24]URL: /json_proto [11:45:24]Method is POST - this is cgi request [11:45:24]url: /json_proto [11:45:24]query_string will be loaded in cgi processing [11:45:24]execute_cgi json_proto POST (null) [11:45:24]execute_cgi path=json_proto method=POST [11:45:24]POST find Content-Length [11:45:24]Host: 172.17.45.67:8080 [11:45:24]Content-Length: 677 [11:45:24]Content-Type: application/json [11:45:24] [11:45:24]POST finish read [11:45:24]Found Content-Length = 677 [11:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:45:24]execute_script... [11:45: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)593135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:45:24]POST & json_proto [11:45:24]process_json_proto [11:45:24]json parsed OK: [11:45:24]protocol is kg_v1.0 [11:45:24]action value=close_receipt [11:45:24]process_action close_receipt [11:45:24]cmd_close_receipt [11:45:24]MH_GetDate [11:45:24]Write to MH i2c: F0 00 00 1E 27 34 [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: F0 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: F0 09 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: F0 09 00 1E 27 00 56 30 C3 66 5F 7F 2B 66 5B [11:45:24]GetLastDocTimeStamp 1724067870 [11:45:24]current date 1724067926 [11:45:24]FM_GetShiftState [11:45:24]SAM_PROTO_GetShiftState [11:45:24]wFMCommunicate request_size=4 [11:45:24]MH_SAM_APDU [11:45:24]CAPDU: 80 13 01 00 [11:45:24]Write to MH i2c: E2 08 00 1F 27 80 13 01 00 00 00 00 00 C3 [11:45:24]Write i2c OK [11:45:24]MH_I2C_Read... [11:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:24]Read from MH i2c: E2 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 0E 00 [11:45:24]MH_I2C_Read... [11:45:24]Read from MH i2c: E2 0E 00 1F 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7A [11:45:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:45:24]wFMCommunicate OK [11:45:24]SAM_PROTO_GetShiftState done [11:45:24]FM_GetShiftState done [11:45:24]opened in 1724027888 [11:45:24]opened+sec_in_day 1724114288 [11:45:24]quantity*price = 50036 [11:45:24]sum+1 = 50037 [11:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 129 19.08.2024 11:45 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139294 ФПД: 35370388841570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114526&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139294&fm=35370388841570&tin=02508201610067®Number=0000000000092569&sum=50000 [11:45:25]StoreToDocumentArchive [11:45:25]shift 452 fd 139294 [11:45:25]save to /storage/0452/doc_00139294 [11:45:25]save last doc name /storage/0452/doc_00139294 to /storage/kkm_last_doc_name [11:45:25]save OK [11:45:25]Clear old archive folders... [11:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:25]tlvbuf is B6F92170 [11:45:25]SAM_PROTO_ClearQueue [11:45:25]wFMCommunicate request_size=4 [11:45:25]MH_SAM_APDU [11:45:25]CAPDU: 80 09 00 00 [11:45:25]Write to MH i2c: E2 08 00 2C 27 80 09 00 00 00 00 00 00 C5 [11:45:25]Write i2c OK [11:45:25]MH_I2C_Read... [11:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:25]Read from MH i2c: E2 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 03 00 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 03 00 2C 27 00 90 00 C7 [11:45:25]RAPDU: 90 00 [11:45:25]wFMCommunicate OK [11:45:25]SAM_PROTO_ClearQueue done [11:45:25]KKMCreateOFDPacket [11:45:25]OFDProtocolAddRootSTLVToBuf [11:45:25]FM_MakeSignedData [11:45:25]FM_MakeSignedData [11:45:25]SAM_PROTO_SignData [11:45:25]wFMCommunicate request_size=4 [11:45:25]MH_SAM_APDU [11:45:25]CAPDU: 80 0D 01 02 [11:45:25]Write to MH i2c: E2 08 00 2D 27 80 0D 01 02 00 00 00 00 CD [11:45:25]Write i2c OK [11:45:25]MH_I2C_Read... [11:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:25]Read from MH i2c: E2 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 03 00 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 03 00 2D 27 00 90 00 C8 [11:45:25]RAPDU: 90 00 [11:45:25]wFMCommunicate OK [11:45:25]wFMCommunicate request_size=255 [11:45:25]MH_SAM_APDU [11:45: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 81 00 00 00 F4 03 04 00 56 30 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 20 02 00 35 04 06 00 20 [11:45:25]Write to MH i2c: E2 02 01 2E 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 81 00 00 00 F4 03 04 00 56 30 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 20 02 00 35 04 06 00 20 00 00 AB [11:45:25]Write i2c OK [11:45:25]MH_I2C_Read... [11:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:25]Read from MH i2c: E2 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 03 00 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 03 00 2E 27 00 90 00 C9 [11:45:25]RAPDU: 90 00 [11:45:25]wFMCommunicate OK [11:45:25]wFMCommunicate request_size=10 [11:45:25]MH_SAM_APDU [11:45:25]CAPDU: 80 0D 02 02 05 2B 4F 76 64 62 [11:45:25]Write to MH i2c: E2 0D 00 2F 27 80 0D 02 02 05 00 2B 4F 76 64 62 00 00 90 [11:45:25]Write i2c OK [11:45:25]MH_I2C_Read... [11:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:25]Read from MH i2c: E2 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 03 00 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 03 00 2F 27 00 90 00 CA [11:45:25]RAPDU: 90 00 [11:45:25]wFMCommunicate OK [11:45:25]wFMCommunicate request_size=4 [11:45:25]MH_SAM_APDU [11:45:25]CAPDU: 80 0D 03 02 [11:45:25]Write to MH i2c: E2 08 00 30 27 80 0D 03 02 00 00 00 00 D2 [11:45:25]Write i2c OK [11:45:25]MH_I2C_Read... [11:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:25]Read from MH i2c: E2 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 0B 00 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 0B 00 30 27 00 8D 71 2F D1 0A 15 A6 28 90 00 BE [11:45:25]RAPDU: 8D 71 2F D1 0A 15 A6 28 90 00 [11:45:25]wFMCommunicate OK [11:45:25]SAM_PROTO_SignData done [11:45:25]FM_MakeSignedData done [11:45:25]CreateOFDProtocolMessage [11:45:25]wFMCommunicate request_size=4 [11:45:25]MH_SAM_APDU [11:45:25]CAPDU: 80 11 00 00 [11:45:25]Write to MH i2c: E2 08 00 31 27 80 11 00 00 00 00 00 00 D2 [11:45:25]Write i2c OK [11:45:25]MH_I2C_Read... [11:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:25]Read from MH i2c: E2 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 17 00 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: E2 17 00 31 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 29 [11:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:45:25]wFMCommunicate OK [11:45:25]CreateOFDProtocolMessage done [11:45:25]OFDSenderStorePacket 139294 [11:45:25]StoreOFDPacket docnum=139294 [11:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D2 3D 07 01 B7 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 81 00 00 00 F4 03 04 00 56 30 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 20 02 00 35 04 06 00 20 2B 4F 76 64 62 8D 71 2F D1 0A 15 A6 28 [11:45:25]CheckFolder [11:45:25]dirname=/storage/ofd_packets [11:45:25]CheckFolder done [11:45:25]ProducePacketName [11:45:25]name=ofd_packets/00139294 [11:45:25]NVStorageSaveData ofd_packets/00139294 [11:45:25]File name is /storage/ofd_packets/00139294 [11:45:25]Write 301 bytes [11:45:25]NVStorageSaveData done [11:45:25]OFDSenderStorePacket done [11:45:25]KKMCreateOFDPacket done [11:45:25]NVStorageSaveData kkm_last_timestamp [11:45:25]File name is /storage/kkm_last_timestamp [11:45:25]Write 4 bytes [11:45:25]NVStorageSaveData done [11:45:25]ExternCall_PrintAddStr [11:45:25]wPrintStart [11:45:25]Write to MH i2c: 01 00 00 32 27 59 [11:45:25]Write i2c OK [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: 01 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: 01 07 00 [11:45:25]MH_I2C_Read... [11:45:25]Read from MH i2c: 01 07 00 32 27 00 00 00 00 00 FF 0F 6E [11:45:25]RasterBufferAndPrint [11:45:25]line Счет N : (1)593135 [11:45:25]line ИНН: 02508201610067 [11:45:25]line Контрольно-Кассовый Чек [11:45:25]line ПРОДАЖА [11:45:25]line ТРК (МРК, ГНК) : 32 [11:45:25]line Товар: 2710124130 [11:45:25]line Аи-92-К-5 [11:45:25]line 7.380 * 67.80 [11:45:25]line = 500.36 [11:45:25]line НДС 12% НСП 1% [11:45:25]line > о реализуемом товаре [11:45:25]line ОКРУГЛЕНИЕ: -0.36 [11:45:25]line ИТОГО: 500.00 [11:45:25]line Внесено: 500.00 [11:45:25]line СДАЧА: 0.00 [11:45:25]line НСП 1% : 4.43 [11:45:25]line НДС 12% : 53.14 [11:45:25]line Наличными: 500.00 [11:45:25]line Безнал.: 0.00 [11:45:25]line Место: АЗС № 136 "Партнер Нефть" [11:45:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:45:25]line СНО: Общий режим [11:45:25]line Чек 129 19.08.2024 11:45 [11:45:25]line Смена: 452 ФФД: 1.0 [11:45:25]line ЗНМ: 0300000067 [11:45:25]line РНМ: 0000000000092569 [11:45:25]line Версия ККМ: 001 [11:45:25]line ФМ: 0000000000871776 [11:45:25]line ФД: 139294 [11:45:25]line ФПД: 35370388841570 [11:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114526&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139294&fm=35370388841570&tin=02508201610067®Number=0000000000092569&sum=50000 [11:45:26]OFD Sender: Processing packet 139294 [packets to send 137, broken 136] [11:45:26]ProducePacketName [11:45:26]name=ofd_packets/00139294 [11:45:26]OFD Sender: To server: pG, [11:45:26]CommunicateWithHost lk.salyk.kg:30040 [11:45:26]ConnectInit lk.salyk.kg [11:45:26]written 0, free lines is 4095 [11:45:26]Connected sock=10 [11:45: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 37 36 0F 01 00 00 D2 3D 07 01 B7 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 81 00 00 00 F4 03 04 00 56 30 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 20 02 00 35 04 06 00 20 2B 4F 76 64 62 8D 71 2F D1 0A 15 A6 28 [11:45:26]Write to MH i2c: 01 00 00 5D 27 84 [11:45:26]Write i2c OK [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: 01 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: 01 07 00 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: 01 07 00 5D 27 00 00 00 00 00 CD 0C 64 [11:45:26]RasterBufferAndPrint [11:45:26]line [11:45:26]line [11:45:26]line [11:45:26]line [11:45:26]line [11:45:26]written 0, free lines is 3283 [11:45:26]MH_Cut [11:45:26]Write to MH i2c: D1 01 00 64 27 01 5D [11:45:26]Write i2c OK [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: D1 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: D1 01 00 [11:45:26]MH_I2C_Read... [11:45:26]Read from MH i2c: D1 01 00 64 27 00 5C [11:45:26]Write to MH i2c: 01 00 00 65 27 8C [11:45:26]Write i2c OK [11:45:26]MH_I2C_Read... [11:45: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 37 36 4F 00 00 00 87 BC 47 00 D2 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 37 36 10 04 04 00 1E 20 02 00 F4 03 04 00 EC D6 C2 66 B6 04 01 00 00 F9 8C D6 03 F2 EC 77 48 [11:45:26]CommunicateWithHost err = 0 [11:45:26]CheckOFDResponse [11:45:26]1017 (14) - 77093643461234 [11:45:26]1041 (16) - 0000000000871776 [11:45:26]1040 (4) - 139294 [11:45:26]1012 (4) - 19.08.2024 05:23 [11:45:26]1206 (1) - 0 [11:45:26]OFD Sender: Remove packet 139294 [11:45:26]ProducePacketName [11:45:26]name=ofd_packets/00139294 [11:45:26]NVStorageDeleteData [11:45:27]OFD Sender: No OFD packet to send [11:45:27]*** Cut start [11:45:27]*** Partial cut [11:45:27]*** CUTSNS_PIN = 1 [11:45:27]*** CUTSNS_PIN = 0 [11:45:27]*** Brake cut motor [11:45:27]Read from MH i2c: 01 [11:45:27]MH_I2C_Read... [11:45:27]*** Stop cut motor [11:45:27]*** Cut end [11:45:27]Read from MH i2c: 01 07 00 [11:45:27]MH_I2C_Read... [11:45:27]Read from MH i2c: 01 07 00 65 27 00 00 00 00 00 FF 0F A1 [11:45:27]process_action close_receipt done [11:45:27]requested_data is exist [11:45:27]produce_requested_data [11:45:27]requested_item fm.sn is exist - process it [11:45:27]wFMCommunicate request_size=4 [11:45:27]MH_SAM_APDU [11:45:27]CAPDU: 80 11 00 00 [11:45:27]Write to MH i2c: E2 08 00 66 27 80 11 00 00 00 00 00 00 07 [11:45:27]Write i2c OK [11:45:27]MH_I2C_Read... [11:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:27]Read from MH i2c: E2 [11:45:27]MH_I2C_Read... [11:45:27]Read from MH i2c: E2 17 00 [11:45:27]MH_I2C_Read... [11:45:27]Read from MH i2c: E2 17 00 66 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5E [11:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:45:27]wFMCommunicate OK [11:45:27]requested_item fd.num is exist - process it [11:45:27]SAM_PROTO_GetFieldsCounters [11:45:27]wFMCommunicate request_size=4 [11:45:27]MH_SAM_APDU [11:45:27]CAPDU: 80 13 00 00 [11:45:27]Write to MH i2c: E2 08 00 67 27 80 13 00 00 00 00 00 00 0A [11:45:27]Write i2c OK [11:45:27]MH_I2C_Read... [11:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:28]Read from MH i2c: E2 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 62 00 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 62 00 67 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [11:45: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:28]wFMCommunicate OK [11:45:28]SAM_PROTO_GetFieldsCounters done [11:45:28]requested_item shift.num is exist - process it [11:45:28]requested_item shift.opened is exist - process it [11:45:28]req_shift_opened [11:45:28]FM_GetShiftState [11:45:28]SAM_PROTO_GetShiftState [11:45:28]wFMCommunicate request_size=4 [11:45:28]MH_SAM_APDU [11:45:28]CAPDU: 80 13 01 00 [11:45:28]Write to MH i2c: E2 08 00 68 27 80 13 01 00 00 00 00 00 0C [11:45:28]Write i2c OK [11:45:28]MH_I2C_Read... [11:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:28]Read from MH i2c: E2 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 0E 00 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 0E 00 68 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C3 [11:45:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:45:28]wFMCommunicate OK [11:45:28]SAM_PROTO_GetShiftState done [11:45:28]FM_GetShiftState done [11:45:28]req_shift_opened done [11:45:28]requested_item shift.open_date is exist - process it [11:45:28]req_shift_open_date [11:45:28]req_shift_open_date done [11:45:28]produce_requested_data done [11:45:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139294,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:45:28]process_action_free close_receipt [11:45:28]json_value_free [11:45:28]json_value_free done [11:45:28]process_json_proto returns [11:45:28]Send response to host [11:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139294,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:45:28]free response buf [11:45:28]execute_script done [11:45:28]execute_script returns [11:45:28]free content buf [11:45:28]Sock 7.Close socket [11:45:28]Sock 7.Thread stoped [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:18]accept exits with 9 [11:52:18]New connection [11:52:18]New thread 3067059556 created [11:52:18]Thread 3067202916 joined [11:52:18]Waiting for new connection... [11:52:18] Sock 9.Parse request [11:52:18]Sock 9.Check first char [11:52:18]Sock 9.First char is OK [11:52:18]request: POST /json_proto HTTP/1.0 [11:52:18]Method: POST [11:52:18]URL: /json_proto [11:52:18]Method is POST - this is cgi request [11:52:18]url: /json_proto [11:52:18]query_string will be loaded in cgi processing [11:52:18]execute_cgi json_proto POST (null) [11:52:18]execute_cgi path=json_proto method=POST [11:52:18]POST find Content-Length [11:52:18]Host: 172.17.45.67:8080 [11:52:18]Content-Length: 677 [11:52:18]Content-Type: application/json [11:52:18] [11:52:18]POST finish read [11:52:18]Found Content-Length = 677 [11:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:52:18]execute_script... [11:52: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)593137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:52:18]POST & json_proto [11:52:18]process_json_proto [11:52:18]json parsed OK: [11:52:18]protocol is kg_v1.0 [11:52:18]action value=close_receipt [11:52:18]process_action close_receipt [11:52:18]cmd_close_receipt [11:52:18]MH_GetDate [11:52:18]Write to MH i2c: F0 00 00 69 27 7F [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: F0 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: F0 09 00 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: F0 09 00 69 27 00 F5 31 C3 66 5F 7F 2B 66 46 [11:52:18]GetLastDocTimeStamp 1724067926 [11:52:18]current date 1724068341 [11:52:18]FM_GetShiftState [11:52:18]SAM_PROTO_GetShiftState [11:52:18]wFMCommunicate request_size=4 [11:52:18]MH_SAM_APDU [11:52:18]CAPDU: 80 13 01 00 [11:52:18]Write to MH i2c: E2 08 00 6A 27 80 13 01 00 00 00 00 00 0E [11:52:18]Write i2c OK [11:52:18]MH_I2C_Read... [11:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:18]Read from MH i2c: E2 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: E2 0E 00 [11:52:18]MH_I2C_Read... [11:52:18]Read from MH i2c: E2 0E 00 6A 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C5 [11:52:18]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:52:18]wFMCommunicate OK [11:52:18]SAM_PROTO_GetShiftState done [11:52:18]FM_GetShiftState done [11:52:18]opened in 1724027888 [11:52:18]opened+sec_in_day 1724114288 [11:52:18]quantity*price = 50036 [11:52:18]sum+1 = 50037 [11:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 130 19.08.2024 11:52 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139295 ФПД: 117798858296024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115221&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139295&fm=117798858296024&tin=02508201610067®Number=0000000000092569&sum=50000 [11:52:19]StoreToDocumentArchive [11:52:19]shift 452 fd 139295 [11:52:19]save to /storage/0452/doc_00139295 [11:52:19]save last doc name /storage/0452/doc_00139295 to /storage/kkm_last_doc_name [11:52:19]save OK [11:52:19]Clear old archive folders... [11:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:19]tlvbuf is 01D66D90 [11:52:19]SAM_PROTO_ClearQueue [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 09 00 00 [11:52:19]Write to MH i2c: E2 08 00 77 27 80 09 00 00 00 00 00 00 10 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 77 27 00 90 00 12 [11:52:19]RAPDU: 90 00 [11:52:19]wFMCommunicate OK [11:52:19]SAM_PROTO_ClearQueue done [11:52:19]KKMCreateOFDPacket [11:52:19]OFDProtocolAddRootSTLVToBuf [11:52:19]FM_MakeSignedData [11:52:19]FM_MakeSignedData [11:52:19]SAM_PROTO_SignData [11:52:19]wFMCommunicate request_size=4 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 0D 01 02 [11:52:19]Write to MH i2c: E2 08 00 78 27 80 0D 01 02 00 00 00 00 18 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:19]Read from MH i2c: E2 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 [11:52:19]MH_I2C_Read... [11:52:19]Read from MH i2c: E2 03 00 78 27 00 90 00 13 [11:52:19]RAPDU: 90 00 [11:52:19]wFMCommunicate OK [11:52:19]wFMCommunicate request_size=255 [11:52:19]MH_SAM_APDU [11:52:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 82 00 00 00 F4 03 04 00 F5 31 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 20 02 00 35 04 06 00 6B [11:52:19]Write to MH i2c: E2 02 01 79 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 82 00 00 00 F4 03 04 00 F5 31 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 20 02 00 35 04 06 00 6B 00 00 E3 [11:52:19]Write i2c OK [11:52:19]MH_I2C_Read... [11:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:20]Read from MH i2c: E2 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: E2 03 00 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: E2 03 00 79 27 00 90 00 14 [11:52:20]RAPDU: 90 00 [11:52:20]wFMCommunicate OK [11:52:20]wFMCommunicate request_size=10 [11:52:20]MH_SAM_APDU [11:52:20]CAPDU: 80 0D 02 02 05 23 2F 1A 8A D8 [11:52:20]Write to MH i2c: E2 0D 00 7A 27 80 0D 02 02 05 00 23 2F 1A 8A D8 00 00 F3 [11:52:20]Write i2c OK [11:52:20]MH_I2C_Read... [11:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:20]Read from MH i2c: E2 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: E2 03 00 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: E2 03 00 7A 27 00 90 00 15 [11:52:20]RAPDU: 90 00 [11:52:20]wFMCommunicate OK [11:52:20]wFMCommunicate request_size=4 [11:52:20]MH_SAM_APDU [11:52:20]CAPDU: 80 0D 03 02 [11:52:20]Write to MH i2c: E2 08 00 7B 27 80 0D 03 02 00 00 00 00 1D [11:52:20]Write i2c OK [11:52:20]MH_I2C_Read... [11:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:20]Read from MH i2c: E2 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: E2 0B 00 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: E2 0B 00 7B 27 00 06 33 4F 11 27 4A 17 F4 90 00 33 [11:52:20]RAPDU: 06 33 4F 11 27 4A 17 F4 90 00 [11:52:20]wFMCommunicate OK [11:52:20]SAM_PROTO_SignData done [11:52:20]FM_MakeSignedData done [11:52:20]CreateOFDProtocolMessage [11:52:20]wFMCommunicate request_size=4 [11:52:20]MH_SAM_APDU [11:52:20]CAPDU: 80 11 00 00 [11:52:20]Write to MH i2c: E2 08 00 7C 27 80 11 00 00 00 00 00 00 1D [11:52:20]Write i2c OK [11:52:20]MH_I2C_Read... [11:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:20]Read from MH i2c: E2 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: E2 17 00 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: E2 17 00 7C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [11:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:20]wFMCommunicate OK [11:52:20]CreateOFDProtocolMessage done [11:52:20]OFDSenderStorePacket 139295 [11:52:20]StoreOFDPacket docnum=139295 [11:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A5 E0 07 01 51 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 82 00 00 00 F4 03 04 00 F5 31 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 20 02 00 35 04 06 00 6B 23 2F 1A 8A D8 06 33 4F 11 27 4A 17 F4 [11:52:20]CheckFolder [11:52:20]dirname=/storage/ofd_packets [11:52:20]CheckFolder done [11:52:20]ProducePacketName [11:52:20]name=ofd_packets/00139295 [11:52:20]NVStorageSaveData ofd_packets/00139295 [11:52:20]File name is /storage/ofd_packets/00139295 [11:52:20]Write 301 bytes [11:52:20]NVStorageSaveData done [11:52:20]OFDSenderStorePacket done [11:52:20]KKMCreateOFDPacket done [11:52:20]NVStorageSaveData kkm_last_timestamp [11:52:20]File name is /storage/kkm_last_timestamp [11:52:20]Write 4 bytes [11:52:20]NVStorageSaveData done [11:52:20]ExternCall_PrintAddStr [11:52:20]wPrintStart [11:52:20]Write to MH i2c: 01 00 00 7D 27 A4 [11:52:20]Write i2c OK [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: 01 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: 01 07 00 [11:52:20]MH_I2C_Read... [11:52:20]Read from MH i2c: 01 07 00 7D 27 00 00 00 00 00 FF 0F B9 [11:52:20]RasterBufferAndPrint [11:52:20]line Счет N : (1)593137 [11:52:20]line ИНН: 02508201610067 [11:52:20]line Контрольно-Кассовый Чек [11:52:20]line ПРОДАЖА [11:52:20]line ТРК (МРК, ГНК) : 52 [11:52:20]line Товар: 2710124130 [11:52:20]line Аи-92-К-5 [11:52:20]line 7.380 * 67.80 [11:52:20]line = 500.36 [11:52:20]line НДС 12% НСП 1% [11:52:20]line > о реализуемом товаре [11:52:20]line ОКРУГЛЕНИЕ: -0.36 [11:52:20]line ИТОГО: 500.00 [11:52:20]line Внесено: 500.00 [11:52:20]line СДАЧА: 0.00 [11:52:20]line НСП 1% : 4.43 [11:52:20]line НДС 12% : 53.14 [11:52:20]line Наличными: 500.00 [11:52:20]line Безнал.: 0.00 [11:52:20]line Место: АЗС № 136 "Партнер Нефть" [11:52:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:52:20]line СНО: Общий режим [11:52:20]line Чек 130 19.08.2024 11:52 [11:52:20]line Смена: 452 ФФД: 1.0 [11:52:20]line ЗНМ: 0300000067 [11:52:20]line РНМ: 0000000000092569 [11:52:20]line Версия ККМ: 001 [11:52:20]line ФМ: 0000000000871776 [11:52:20]line ФД: 139295 [11:52:20]line ФПД: 117798858296024 [11:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115221&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139295&fm=117798858296024&tin=02508201610067®Number=0000000000092569&sum=50000 [11:52:20]written 0, free lines is 4095 [11:52:20]OFD Sender: Processing packet 139295 [packets to send 137, broken 136] [11:52:20]ProducePacketName [11:52:20]name=ofd_packets/00139295 [11:52:20]OFD Sender: To server: pG, [11:52:20]CommunicateWithHost lk.salyk.kg:30040 [11:52:20]ConnectInit lk.salyk.kg [11:52:20]Connected sock=11 [11:52: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 37 36 0F 01 00 00 A5 E0 07 01 51 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 82 00 00 00 F4 03 04 00 F5 31 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 20 02 00 35 04 06 00 6B 23 2F 1A 8A D8 06 33 4F 11 27 4A 17 F4 [11:52:21]Write to MH i2c: 01 00 00 A8 27 CF [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: 01 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: 01 07 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: 01 07 00 A8 27 00 00 00 00 00 C2 0C A4 [11:52:21]RasterBufferAndPrint [11:52:21]line [11:52:21]line [11:52:21]line [11:52:21]line [11:52:21]line [11:52:21]written 0, free lines is 3272 [11:52:21]MH_Cut [11:52:21]Write to MH i2c: D1 01 00 AF 27 01 A8 [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: D1 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: D1 01 00 [11:52:21]MH_I2C_Read... [11:52:21]Read from MH i2c: D1 01 00 AF 27 00 A7 [11:52:21]Write to MH i2c: 01 00 00 B0 27 D7 [11:52:21]Write i2c OK [11:52:21]MH_I2C_Read... [11:52: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 37 36 4F 00 00 00 0C A4 47 00 12 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 37 36 10 04 04 00 1F 20 02 00 F4 03 04 00 8B D8 C2 66 B6 04 01 00 00 6E 46 C4 97 2A 10 06 E5 [11:52:21]CommunicateWithHost err = 0 [11:52:21]CheckOFDResponse [11:52:21]1017 (14) - 77093643461234 [11:52:21]1041 (16) - 0000000000871776 [11:52:21]1040 (4) - 139295 [11:52:21]1012 (4) - 19.08.2024 05:30 [11:52:21]1206 (1) - 0 [11:52:21]OFD Sender: Remove packet 139295 [11:52:21]ProducePacketName [11:52:21]name=ofd_packets/00139295 [11:52:21]NVStorageDeleteData [11:52:21]OFD Sender: No OFD packet to send [11:52:21]*** Cut start [11:52:21]*** Partial cut [11:52:21]*** CUTSNS_PIN = 1 [11:52:21]*** CUTSNS_PIN = 0 [11:52:22]*** Brake cut motor [11:52:22]Read from MH i2c: 01 [11:52:22]MH_I2C_Read... [11:52:22]*** Stop cut motor [11:52:22]*** Cut end [11:52:22]Read from MH i2c: 01 07 00 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: 01 07 00 B0 27 00 00 00 00 00 FF 0F EC [11:52:22]process_action close_receipt done [11:52:22]requested_data is exist [11:52:22]produce_requested_data [11:52:22]requested_item fm.sn is exist - process it [11:52:22]wFMCommunicate request_size=4 [11:52:22]MH_SAM_APDU [11:52:22]CAPDU: 80 11 00 00 [11:52:22]Write to MH i2c: E2 08 00 B1 27 80 11 00 00 00 00 00 00 52 [11:52:22]Write i2c OK [11:52:22]MH_I2C_Read... [11:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:22]Read from MH i2c: E2 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: E2 17 00 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: E2 17 00 B1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [11:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:22]wFMCommunicate OK [11:52:22]requested_item fd.num is exist - process it [11:52:22]SAM_PROTO_GetFieldsCounters [11:52:22]wFMCommunicate request_size=4 [11:52:22]MH_SAM_APDU [11:52:22]CAPDU: 80 13 00 00 [11:52:22]Write to MH i2c: E2 08 00 B2 27 80 13 00 00 00 00 00 00 55 [11:52:22]Write i2c OK [11:52:22]MH_I2C_Read... [11:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:22]Read from MH i2c: E2 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: E2 62 00 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: E2 62 00 B2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [11:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:22]wFMCommunicate OK [11:52:22]SAM_PROTO_GetFieldsCounters done [11:52:22]requested_item shift.num is exist - process it [11:52:22]requested_item shift.opened is exist - process it [11:52:22]req_shift_opened [11:52:22]FM_GetShiftState [11:52:22]SAM_PROTO_GetShiftState [11:52:22]wFMCommunicate request_size=4 [11:52:22]MH_SAM_APDU [11:52:22]CAPDU: 80 13 01 00 [11:52:22]Write to MH i2c: E2 08 00 B3 27 80 13 01 00 00 00 00 00 57 [11:52:22]Write i2c OK [11:52:22]MH_I2C_Read... [11:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:22]Read from MH i2c: E2 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: E2 0E 00 [11:52:22]MH_I2C_Read... [11:52:22]Read from MH i2c: E2 0E 00 B3 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0E [11:52:22]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:52:22]wFMCommunicate OK [11:52:22]SAM_PROTO_GetShiftState done [11:52:22]FM_GetShiftState done [11:52:22]req_shift_opened done [11:52:22]requested_item shift.open_date is exist - process it [11:52:22]req_shift_open_date [11:52:22]req_shift_open_date done [11:52:22]produce_requested_data done [11:52:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139295,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:52:22]process_action_free close_receipt [11:52:22]json_value_free [11:52:22]json_value_free done [11:52:22]process_json_proto returns [11:52:22]Send response to host [11:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139295,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:52:22]free response buf [11:52:22]execute_script done [11:52:22]execute_script returns [11:52:22]free content buf [11:52:22]Sock 9.Close socket [11:52:22]Sock 9.Thread stoped [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:44]accept exits with 7 [11:52:44]New connection [11:52:44]New thread 3067202916 created [11:52:44]Thread 3067059556 joined [11:52:44]Waiting for new connection... [11:52:44] Sock 7.Parse request [11:52:44]Sock 7.Check first char [11:52:44]Sock 7.First char is OK [11:52:44]request: POST /json_proto HTTP/1.0 [11:52:44]Method: POST [11:52:44]URL: /json_proto [11:52:44]Method is POST - this is cgi request [11:52:44]url: /json_proto [11:52:44]query_string will be loaded in cgi processing [11:52:44]execute_cgi json_proto POST (null) [11:52:44]execute_cgi path=json_proto method=POST [11:52:44]POST find Content-Length [11:52:44]Host: 172.17.45.67:8080 [11:52:44]Content-Length: 759 [11:52:44]Content-Type: application/json [11:52:44] [11:52:44]POST finish read [11:52:44]Found Content-Length = 759 [11:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:44]execute_script... [11:52: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)593136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:44]POST & json_proto [11:52:44]process_json_proto [11:52:44]json parsed OK: [11:52:44]protocol is kg_v1.0 [11:52:44]action value=close_receipt [11:52:44]process_action close_receipt [11:52:44]cmd_close_receipt [11:52:44]MH_GetDate [11:52:44]Write to MH i2c: F0 00 00 B4 27 CA [11:52:44]Write i2c OK [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: F0 [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: F0 09 00 [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: F0 09 00 B4 27 00 0F 32 C3 66 5F 7F 2B 66 AC [11:52:44]GetLastDocTimeStamp 1724068341 [11:52:44]current date 1724068367 [11:52:44]FM_GetShiftState [11:52:44]SAM_PROTO_GetShiftState [11:52:44]wFMCommunicate request_size=4 [11:52:44]MH_SAM_APDU [11:52:44]CAPDU: 80 13 01 00 [11:52:44]Write to MH i2c: E2 08 00 B5 27 80 13 01 00 00 00 00 00 59 [11:52:44]Write i2c OK [11:52:44]MH_I2C_Read... [11:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:44]Read from MH i2c: E2 [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: E2 0E 00 [11:52:44]MH_I2C_Read... [11:52:44]Read from MH i2c: E2 0E 00 B5 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 10 [11:52:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:52:44]wFMCommunicate OK [11:52:44]SAM_PROTO_GetShiftState done [11:52:44]FM_GetShiftState done [11:52:44]opened in 1724027888 [11:52:44]opened+sec_in_day 1724114288 [11:52:44]quantity*price = 0 [11:52:44]sum+1 = 1 [11:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 131 19.08.2024 11:52 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104832 ФМ: 0000000000871776 ФД: 139296 ФПД: 280682910748102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115247&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139296&fm=280682910748102&tin=02508201610067®Number=0000000000092569&sum=0 [11:52:45]StoreToDocumentArchive [11:52:45]shift 452 fd 139296 [11:52:45]save to /storage/0452/doc_00139296 [11:52:45]save last doc name /storage/0452/doc_00139296 to /storage/kkm_last_doc_name [11:52:45]save OK [11:52:45]Clear old archive folders... [11:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:52:45]tlvbuf is 01E4C390 [11:52:45]SAM_PROTO_ClearQueue [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 09 00 00 [11:52:45]Write to MH i2c: E2 08 00 C2 27 80 09 00 00 00 00 00 00 5B [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 C2 27 00 90 00 5D [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]SAM_PROTO_ClearQueue done [11:52:45]KKMCreateOFDPacket [11:52:45]OFDProtocolAddRootSTLVToBuf [11:52:45]FM_MakeSignedData [11:52:45]FM_MakeSignedData [11:52:45]SAM_PROTO_SignData [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 0D 01 02 [11:52:45]Write to MH i2c: E2 08 00 C3 27 80 0D 01 02 00 00 00 00 63 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 C3 27 00 90 00 5E [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]wFMCommunicate request_size=255 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 83 00 00 00 F4 03 04 00 0F 32 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 20 02 00 35 04 06 00 [11:52:45]Write to MH i2c: E2 02 01 C4 27 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 83 00 00 00 F4 03 04 00 0F 32 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 20 02 00 35 04 06 00 00 00 B9 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 C4 27 00 90 00 5F [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]wFMCommunicate request_size=11 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 0D 02 02 06 FF 47 95 30 8D C6 [11:52:45]Write to MH i2c: E2 0E 00 C5 27 80 0D 02 02 06 00 FF 47 95 30 8D C6 00 00 D0 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 03 00 C5 27 00 90 00 60 [11:52:45]RAPDU: 90 00 [11:52:45]wFMCommunicate OK [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 0D 03 02 [11:52:45]Write to MH i2c: E2 08 00 C6 27 80 0D 03 02 00 00 00 00 68 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 0B 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 0B 00 C6 27 00 9B D2 3E C4 2B C7 BC 4B 90 00 D1 [11:52:45]RAPDU: 9B D2 3E C4 2B C7 BC 4B 90 00 [11:52:45]wFMCommunicate OK [11:52:45]SAM_PROTO_SignData done [11:52:45]FM_MakeSignedData done [11:52:45]CreateOFDProtocolMessage [11:52:45]wFMCommunicate request_size=4 [11:52:45]MH_SAM_APDU [11:52:45]CAPDU: 80 11 00 00 [11:52:45]Write to MH i2c: E2 08 00 C7 27 80 11 00 00 00 00 00 00 68 [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:45]Read from MH i2c: E2 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 17 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: E2 17 00 C7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BF [11:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:45]wFMCommunicate OK [11:52:45]CreateOFDProtocolMessage done [11:52:45]OFDSenderStorePacket 139296 [11:52:45]StoreOFDPacket docnum=139296 [11:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 D6 DC 08 01 E1 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 83 00 00 00 F4 03 04 00 0F 32 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 20 02 00 35 04 06 00 FF 47 95 30 8D C6 9B D2 3E C4 2B C7 BC 4B [11:52:45]CheckFolder [11:52:45]dirname=/storage/ofd_packets [11:52:45]CheckFolder done [11:52:45]ProducePacketName [11:52:45]name=ofd_packets/00139296 [11:52:45]NVStorageSaveData ofd_packets/00139296 [11:52:45]File name is /storage/ofd_packets/00139296 [11:52:45]Write 302 bytes [11:52:45]NVStorageSaveData done [11:52:45]OFDSenderStorePacket done [11:52:45]KKMCreateOFDPacket done [11:52:45]NVStorageSaveData kkm_last_timestamp [11:52:45]File name is /storage/kkm_last_timestamp [11:52:45]Write 4 bytes [11:52:45]NVStorageSaveData done [11:52:45]ExternCall_PrintAddStr [11:52:45]wPrintStart [11:52:45]Write to MH i2c: 01 00 00 C8 27 EF [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 C8 27 00 00 00 00 00 FF 0F 04 [11:52:45]RasterBufferAndPrint [11:52:45]line Счет N : (1)593136 [11:52:45]line ИНН: 02508201610067 [11:52:45]line Контрольно-Кассовый Чек [11:52:45]line ПРОДАЖА [11:52:45]line ТРК (МРК, ГНК) : 34 [11:52:45]line Товар: 2710194210 [11:52:45]line ДТ(л)-К-5 [11:52:45]line 50.000 * 0.00 [11:52:45]line = 0.00 [11:52:45]line НДС 12% НСП 1% [11:52:45]line > о реализуемом товаре [11:52:45]line ИТОГО: 0.00 [11:52:45]line НСП 1% : 0.00 [11:52:45]line НДС 12% : 0.00 [11:52:45]line Наличными: 0.00 [11:52:45]line Безнал.: 0.00 [11:52:45]line Место: АЗС № 136 "Партнер Нефть" [11:52:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:52:45]line СНО: Общий режим [11:52:45]line Чек 131 19.08.2024 11:52 [11:52:45]line Смена: 452 ФФД: 1.0 [11:52:45]line ЗНМ: 0300000067 [11:52:45]line РНМ: 0000000000092569 [11:52:45]line Версия ККМ: 001 [11:52:45]line Талоны: ТК ГПНА Online [11:52:45]line 30104832 [11:52:45]line ФМ: 0000000000871776 [11:52:45]line ФД: 139296 [11:52:45]line ФПД: 280682910748102 [11:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115247&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139296&fm=280682910748102&tin=02508201610067®Number=0000000000092569&sum=0 [11:52:45]written 0, free lines is 4095 [11:52:46]OFD Sender: Processing packet 139296 [packets to send 137, broken 136] [11:52:46]ProducePacketName [11:52:46]name=ofd_packets/00139296 [11:52:46]OFD Sender: To server: pG, [11:52:46]CommunicateWithHost lk.salyk.kg:30040 [11:52:46]ConnectInit lk.salyk.kg [11:52:46]Connected sock=10 [11:52: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 37 36 10 01 00 00 D6 DC 08 01 E1 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 83 00 00 00 F4 03 04 00 0F 32 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 20 02 00 35 04 06 00 FF 47 95 30 8D C6 9B D2 3E C4 2B C7 BC 4B [11:52:46]Write to MH i2c: 01 00 00 F2 27 19 [11:52:46]Write i2c OK [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: 01 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: 01 07 00 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: 01 07 00 F2 27 00 00 00 00 00 D9 0C 05 [11:52:46]RasterBufferAndPrint [11:52:46]line [11:52:46]line [11:52:46]line [11:52:46]line [11:52:46]line [11:52:46]written 0, free lines is 3296 [11:52:46]MH_Cut [11:52:46]Write to MH i2c: D1 01 00 F9 27 01 F2 [11:52:46]Write i2c OK [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: D1 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: D1 01 00 [11:52:46]MH_I2C_Read... [11:52:46]Read from MH i2c: D1 01 00 F9 27 00 F1 [11:52:46]Write to MH i2c: 01 00 00 FA 27 21 [11:52:46]Write i2c OK [11:52:46]MH_I2C_Read... [11:52: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 37 36 4F 00 00 00 EA 60 47 00 54 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 37 36 10 04 04 00 20 20 02 00 F4 03 04 00 A4 D8 C2 66 B6 04 01 00 00 09 70 32 0B A0 DC D8 4F [11:52:46]CommunicateWithHost err = 0 [11:52:46]CheckOFDResponse [11:52:46]1017 (14) - 77093643461234 [11:52:46]1041 (16) - 0000000000871776 [11:52:46]1040 (4) - 139296 [11:52:46]1012 (4) - 19.08.2024 05:31 [11:52:46]1206 (1) - 0 [11:52:46]OFD Sender: Remove packet 139296 [11:52:46]ProducePacketName [11:52:46]name=ofd_packets/00139296 [11:52:46]NVStorageDeleteData [11:52:46]OFD Sender: No OFD packet to send [11:52:47]*** Cut start [11:52:47]*** Partial cut [11:52:47]*** CUTSNS_PIN = 1 [11:52:47]*** CUTSNS_PIN = 0 [11:52:47]*** Brake cut motor [11:52:47]Read from MH i2c: 01 [11:52:47]MH_I2C_Read... [11:52:47]*** Stop cut motor [11:52:47]*** Cut end [11:52:47]Read from MH i2c: 01 07 00 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: 01 07 00 FA 27 00 00 00 00 00 FF 0F 36 [11:52:47]process_action close_receipt done [11:52:47]requested_data is exist [11:52:47]produce_requested_data [11:52:47]requested_item fm.sn is exist - process it [11:52:47]wFMCommunicate request_size=4 [11:52:47]MH_SAM_APDU [11:52:47]CAPDU: 80 11 00 00 [11:52:47]Write to MH i2c: E2 08 00 FB 27 80 11 00 00 00 00 00 00 9C [11:52:47]Write i2c OK [11:52:47]MH_I2C_Read... [11:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:47]Read from MH i2c: E2 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 17 00 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 17 00 FB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F3 [11:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:47]wFMCommunicate OK [11:52:47]requested_item fd.num is exist - process it [11:52:47]SAM_PROTO_GetFieldsCounters [11:52:47]wFMCommunicate request_size=4 [11:52:47]MH_SAM_APDU [11:52:47]CAPDU: 80 13 00 00 [11:52:47]Write to MH i2c: E2 08 00 FC 27 80 13 00 00 00 00 00 00 9F [11:52:47]Write i2c OK [11:52:47]MH_I2C_Read... [11:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:47]Read from MH i2c: E2 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 62 00 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 62 00 FC 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 20 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:52:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 20 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:47]wFMCommunicate OK [11:52:47]SAM_PROTO_GetFieldsCounters done [11:52:47]requested_item shift.num is exist - process it [11:52:47]requested_item shift.opened is exist - process it [11:52:47]req_shift_opened [11:52:47]FM_GetShiftState [11:52:47]SAM_PROTO_GetShiftState [11:52:47]wFMCommunicate request_size=4 [11:52:47]MH_SAM_APDU [11:52:47]CAPDU: 80 13 01 00 [11:52:47]Write to MH i2c: E2 08 00 FD 27 80 13 01 00 00 00 00 00 A1 [11:52:47]Write i2c OK [11:52:47]MH_I2C_Read... [11:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:47]Read from MH i2c: E2 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 0E 00 [11:52:47]MH_I2C_Read... [11:52:47]Read from MH i2c: E2 0E 00 FD 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 58 [11:52:47]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:52:47]wFMCommunicate OK [11:52:47]SAM_PROTO_GetShiftState done [11:52:47]FM_GetShiftState done [11:52:47]req_shift_opened done [11:52:47]requested_item shift.open_date is exist - process it [11:52:47]req_shift_open_date [11:52:47]req_shift_open_date done [11:52:47]produce_requested_data done [11:52:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139296,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:52:47]process_action_free close_receipt [11:52:47]json_value_free [11:52:47]json_value_free done [11:52:47]process_json_proto returns [11:52:47]Send response to host [11:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139296,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:52:47]free response buf [11:52:47]execute_script done [11:52:47]execute_script returns [11:52:47]free content buf [11:52:47]Sock 7.Close socket [11:52:47]Sock 7.Thread stoped [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:01]accept exits with 9 [11:54:01]New connection [11:54:01]New thread 3067059556 created [11:54:01]Thread 3067202916 joined [11:54:01]Waiting for new connection... [11:54:01] Sock 9.Parse request [11:54:01]Sock 9.Check first char [11:54:01]Sock 9.First char is OK [11:54:01]request: POST /json_proto HTTP/1.0 [11:54:01]Method: POST [11:54:01]URL: /json_proto [11:54:01]Method is POST - this is cgi request [11:54:01]url: /json_proto [11:54:01]query_string will be loaded in cgi processing [11:54:01]execute_cgi json_proto POST (null) [11:54:01]execute_cgi path=json_proto method=POST [11:54:01]POST find Content-Length [11:54:01]Host: 172.17.45.67:8080 [11:54:01]Content-Length: 677 [11:54:01]Content-Type: application/json [11:54:01] [11:54:01]POST finish read [11:54:01]Found Content-Length = 677 [11:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:54:01]execute_script... [11:54: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)593138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:54:01]POST & json_proto [11:54:01]process_json_proto [11:54:01]json parsed OK: [11:54:01]protocol is kg_v1.0 [11:54:01]action value=close_receipt [11:54:01]process_action close_receipt [11:54:01]cmd_close_receipt [11:54:01]MH_GetDate [11:54:01]Write to MH i2c: F0 00 00 FE 27 14 [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: F0 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: F0 09 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: F0 09 00 FE 27 00 5C 32 C3 66 5F 7F 2B 66 43 [11:54:01]GetLastDocTimeStamp 1724068367 [11:54:01]current date 1724068444 [11:54:01]FM_GetShiftState [11:54:01]SAM_PROTO_GetShiftState [11:54:01]wFMCommunicate request_size=4 [11:54:01]MH_SAM_APDU [11:54:01]CAPDU: 80 13 01 00 [11:54:01]Write to MH i2c: E2 08 00 FF 27 80 13 01 00 00 00 00 00 A3 [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:01]Read from MH i2c: E2 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 0E 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 0E 00 FF 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5A [11:54:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:54:01]wFMCommunicate OK [11:54:01]SAM_PROTO_GetShiftState done [11:54:01]FM_GetShiftState done [11:54:01]opened in 1724027888 [11:54:01]opened+sec_in_day 1724114288 [11:54:01]quantity*price = 50036 [11:54:01]sum+1 = 50037 [11:54:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 132 19.08.2024 11:54 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139297 ФПД: 154561429584749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115404&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139297&fm=154561429584749&tin=02508201610067®Number=0000000000092569&sum=50000 [11:54:03]StoreToDocumentArchive [11:54:03]shift 452 fd 139297 [11:54:03]save to /storage/0452/doc_00139297 [11:54:03]save last doc name /storage/0452/doc_00139297 to /storage/kkm_last_doc_name [11:54:03]save OK [11:54:03]Clear old archive folders... [11:54:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:03]tlvbuf is 01DA3570 [11:54:03]SAM_PROTO_ClearQueue [11:54:03]wFMCommunicate request_size=4 [11:54:03]MH_SAM_APDU [11:54:03]CAPDU: 80 09 00 00 [11:54:03]Write to MH i2c: E2 08 00 0C 28 80 09 00 00 00 00 00 00 A6 [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:03]Read from MH i2c: E2 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 03 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 03 00 0C 28 00 90 00 A8 [11:54:03]RAPDU: 90 00 [11:54:03]wFMCommunicate OK [11:54:03]SAM_PROTO_ClearQueue done [11:54:03]KKMCreateOFDPacket [11:54:03]OFDProtocolAddRootSTLVToBuf [11:54:03]FM_MakeSignedData [11:54:03]FM_MakeSignedData [11:54:03]SAM_PROTO_SignData [11:54:03]wFMCommunicate request_size=4 [11:54:03]MH_SAM_APDU [11:54:03]CAPDU: 80 0D 01 02 [11:54:03]Write to MH i2c: E2 08 00 0D 28 80 0D 01 02 00 00 00 00 AE [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:03]Read from MH i2c: E2 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 03 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 03 00 0D 28 00 90 00 A9 [11:54:03]RAPDU: 90 00 [11:54:03]wFMCommunicate OK [11:54:03]wFMCommunicate request_size=255 [11:54:03]MH_SAM_APDU [11:54: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 84 00 00 00 F4 03 04 00 5C 32 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 20 02 00 35 04 06 00 8C [11:54:03]Write to MH i2c: E2 02 01 0E 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 84 00 00 00 F4 03 04 00 5C 32 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 20 02 00 35 04 06 00 8C 00 00 06 [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:03]Read from MH i2c: E2 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 03 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 03 00 0E 28 00 90 00 AA [11:54:03]RAPDU: 90 00 [11:54:03]wFMCommunicate OK [11:54:03]wFMCommunicate request_size=10 [11:54:03]MH_SAM_APDU [11:54:03]CAPDU: 80 0D 02 02 05 92 A3 1B 3B 6D [11:54:03]Write to MH i2c: E2 0D 00 0F 28 80 0D 02 02 05 00 92 A3 1B 3B 6D 00 00 B3 [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:03]Read from MH i2c: E2 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 03 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 03 00 0F 28 00 90 00 AB [11:54:03]RAPDU: 90 00 [11:54:03]wFMCommunicate OK [11:54:03]wFMCommunicate request_size=4 [11:54:03]MH_SAM_APDU [11:54:03]CAPDU: 80 0D 03 02 [11:54:03]Write to MH i2c: E2 08 00 10 28 80 0D 03 02 00 00 00 00 B3 [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:03]Read from MH i2c: E2 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 0B 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 0B 00 10 28 00 AE C7 B5 0B 6A 7A C6 31 90 00 C4 [11:54:03]RAPDU: AE C7 B5 0B 6A 7A C6 31 90 00 [11:54:03]wFMCommunicate OK [11:54:03]SAM_PROTO_SignData done [11:54:03]FM_MakeSignedData done [11:54:03]CreateOFDProtocolMessage [11:54:03]wFMCommunicate request_size=4 [11:54:03]MH_SAM_APDU [11:54:03]CAPDU: 80 11 00 00 [11:54:03]Write to MH i2c: E2 08 00 11 28 80 11 00 00 00 00 00 00 B3 [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:03]Read from MH i2c: E2 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 17 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: E2 17 00 11 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [11:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:54:03]wFMCommunicate OK [11:54:03]CreateOFDProtocolMessage done [11:54:03]OFDSenderStorePacket 139297 [11:54:03]StoreOFDPacket docnum=139297 [11:54:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FF A7 07 01 67 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 84 00 00 00 F4 03 04 00 5C 32 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 20 02 00 35 04 06 00 8C 92 A3 1B 3B 6D AE C7 B5 0B 6A 7A C6 31 [11:54:03]CheckFolder [11:54:03]dirname=/storage/ofd_packets [11:54:03]CheckFolder done [11:54:03]ProducePacketName [11:54:03]name=ofd_packets/00139297 [11:54:03]NVStorageSaveData ofd_packets/00139297 [11:54:03]File name is /storage/ofd_packets/00139297 [11:54:03]Write 301 bytes [11:54:03]NVStorageSaveData done [11:54:03]OFDSenderStorePacket done [11:54:03]KKMCreateOFDPacket done [11:54:03]NVStorageSaveData kkm_last_timestamp [11:54:03]File name is /storage/kkm_last_timestamp [11:54:03]Write 4 bytes [11:54:03]NVStorageSaveData done [11:54:03]ExternCall_PrintAddStr [11:54:03]wPrintStart [11:54:03]Write to MH i2c: 01 00 00 12 28 3A [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: 01 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: 01 07 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: 01 07 00 12 28 00 00 00 00 00 FF 0F 4F [11:54:03]RasterBufferAndPrint [11:54:03]line Счет N : (1)593138 [11:54:03]line ИНН: 02508201610067 [11:54:03]line Контрольно-Кассовый Чек [11:54:03]line ПРОДАЖА [11:54:03]line ТРК (МРК, ГНК) : 42 [11:54:03]line Товар: 2710124130 [11:54:03]line Аи-92-К-5 [11:54:03]line 7.380 * 67.80 [11:54:03]line = 500.36 [11:54:03]line НДС 12% НСП 1% [11:54:03]line > о реализуемом товаре [11:54:03]line ОКРУГЛЕНИЕ: -0.36 [11:54:03]line ИТОГО: 500.00 [11:54:03]line Внесено: 500.00 [11:54:03]line СДАЧА: 0.00 [11:54:03]line НСП 1% : 4.43 [11:54:03]line НДС 12% : 53.14 [11:54:03]line Наличными: 500.00 [11:54:03]line Безнал.: 0.00 [11:54:03]line Место: АЗС № 136 "Партнер Нефть" [11:54:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:54:03]line СНО: Общий режим [11:54:03]line Чек 132 19.08.2024 11:54 [11:54:03]line Смена: 452 ФФД: 1.0 [11:54:03]line ЗНМ: 0300000067 [11:54:03]line РНМ: 0000000000092569 [11:54:03]line Версия ККМ: 001 [11:54:03]line ФМ: 0000000000871776 [11:54:03]line ФД: 139297 [11:54:03]line ФПД: 154561429584749 [11:54:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115404&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139297&fm=154561429584749&tin=02508201610067®Number=0000000000092569&sum=50000 [11:54:03]OFD Sender: Processing packet 139297 [packets to send 137, broken 136] [11:54:03]ProducePacketName [11:54:03]name=ofd_packets/00139297 [11:54:03]OFD Sender: To server: pG, [11:54:03]CommunicateWithHost lk.salyk.kg:30040 [11:54:03]ConnectInit lk.salyk.kg [11:54:03]written 0, free lines is 4095 [11:54:04]Connected sock=10 [11:54: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 37 36 0F 01 00 00 FF A7 07 01 67 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 84 00 00 00 F4 03 04 00 5C 32 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 20 02 00 35 04 06 00 8C 92 A3 1B 3B 6D AE C7 B5 0B 6A 7A C6 31 [11:54: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 37 36 4F 00 00 00 EF 0A 47 00 93 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 37 36 10 04 04 00 21 20 02 00 F4 03 04 00 F2 D8 C2 66 B6 04 01 00 00 7B 2F 71 19 07 43 D2 FB [11:54:04]CommunicateWithHost err = 0 [11:54:04]CheckOFDResponse [11:54:04]1017 (14) - 77093643461234 [11:54:04]1041 (16) - 0000000000871776 [11:54:04]1040 (4) - 139297 [11:54:04]1012 (4) - 19.08.2024 05:32 [11:54:04]1206 (1) - 0 [11:54:04]OFD Sender: Remove packet 139297 [11:54:04]ProducePacketName [11:54:04]name=ofd_packets/00139297 [11:54:04]NVStorageDeleteData [11:54:04]Write to MH i2c: 01 00 00 3D 28 65 [11:54:04]Write i2c OK [11:54:04]MH_I2C_Read... [11:54:04]Read from MH i2c: 01 [11:54:04]MH_I2C_Read... [11:54:04]Read from MH i2c: 01 07 00 [11:54:04]MH_I2C_Read... [11:54:04]Read from MH i2c: 01 07 00 3D 28 00 00 00 00 00 CD 0C 45 [11:54:04]RasterBufferAndPrint [11:54:04]line [11:54:04]line [11:54:04]line [11:54:04]line [11:54:04]line [11:54:04]written 0, free lines is 3283 [11:54:04]MH_Cut [11:54:04]Write to MH i2c: D1 01 00 44 28 01 3E [11:54:04]Write i2c OK [11:54:04]MH_I2C_Read... [11:54:04]Read from MH i2c: D1 [11:54:04]MH_I2C_Read... [11:54:04]Read from MH i2c: D1 01 00 [11:54:04]MH_I2C_Read... [11:54:04]Read from MH i2c: D1 01 00 44 28 00 3D [11:54:04]Write to MH i2c: 01 00 00 45 28 6D [11:54:04]Write i2c OK [11:54:04]MH_I2C_Read... [11:54:04]OFD Sender: No OFD packet to send [11:54:05]*** Cut start [11:54:05]*** Partial cut [11:54:05]*** CUTSNS_PIN = 1 [11:54:05]*** CUTSNS_PIN = 0 [11:54:05]*** Brake cut motor [11:54:05]Read from MH i2c: 01 [11:54:05]MH_I2C_Read... [11:54:05]*** Stop cut motor [11:54:05]*** Cut end [11:54:05]Read from MH i2c: 01 07 00 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: 01 07 00 45 28 00 00 00 00 00 FF 0F 82 [11:54:05]process_action close_receipt done [11:54:05]requested_data is exist [11:54:05]produce_requested_data [11:54:05]requested_item fm.sn is exist - process it [11:54:05]wFMCommunicate request_size=4 [11:54:05]MH_SAM_APDU [11:54:05]CAPDU: 80 11 00 00 [11:54:05]Write to MH i2c: E2 08 00 46 28 80 11 00 00 00 00 00 00 E8 [11:54:05]Write i2c OK [11:54:05]MH_I2C_Read... [11:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:05]Read from MH i2c: E2 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 17 00 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 17 00 46 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3F [11:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:54:05]wFMCommunicate OK [11:54:05]requested_item fd.num is exist - process it [11:54:05]SAM_PROTO_GetFieldsCounters [11:54:05]wFMCommunicate request_size=4 [11:54:05]MH_SAM_APDU [11:54:05]CAPDU: 80 13 00 00 [11:54:05]Write to MH i2c: E2 08 00 47 28 80 13 00 00 00 00 00 00 EB [11:54:05]Write i2c OK [11:54:05]MH_I2C_Read... [11:54:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:05]Read from MH i2c: E2 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 62 00 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 62 00 47 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 21 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [11:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 21 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:05]wFMCommunicate OK [11:54:05]SAM_PROTO_GetFieldsCounters done [11:54:05]requested_item shift.num is exist - process it [11:54:05]requested_item shift.opened is exist - process it [11:54:05]req_shift_opened [11:54:05]FM_GetShiftState [11:54:05]SAM_PROTO_GetShiftState [11:54:05]wFMCommunicate request_size=4 [11:54:05]MH_SAM_APDU [11:54:05]CAPDU: 80 13 01 00 [11:54:05]Write to MH i2c: E2 08 00 48 28 80 13 01 00 00 00 00 00 ED [11:54:05]Write i2c OK [11:54:05]MH_I2C_Read... [11:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:05]Read from MH i2c: E2 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 0E 00 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 0E 00 48 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A4 [11:54:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:54:05]wFMCommunicate OK [11:54:05]SAM_PROTO_GetShiftState done [11:54:05]FM_GetShiftState done [11:54:05]req_shift_opened done [11:54:05]requested_item shift.open_date is exist - process it [11:54:05]req_shift_open_date [11:54:05]req_shift_open_date done [11:54:05]produce_requested_data done [11:54:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139297,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:54:05]process_action_free close_receipt [11:54:05]json_value_free [11:54:05]json_value_free done [11:54:05]process_json_proto returns [11:54:05]Send response to host [11:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139297,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:54:05]free response buf [11:54:05]execute_script done [11:54:05]execute_script returns [11:54:05]free content buf [11:54:05]Sock 9.Close socket [11:54:05]Sock 9.Thread stoped [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]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:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:42]accept exits with 7 [11:59:42]New connection [11:59:42]New thread 3067202916 created [11:59:42]Thread 3067059556 joined [11:59:42]Waiting for new connection... [11:59:42] Sock 7.Parse request [11:59:42]Sock 7.Check first char [11:59:42]Sock 7.First char is OK [11:59:42]request: POST /json_proto HTTP/1.0 [11:59:42]Method: POST [11:59:42]URL: /json_proto [11:59:42]Method is POST - this is cgi request [11:59:42]url: /json_proto [11:59:42]query_string will be loaded in cgi processing [11:59:42]execute_cgi json_proto POST (null) [11:59:42]execute_cgi path=json_proto method=POST [11:59:42]POST find Content-Length [11:59:42]Host: 172.17.45.67:8080 [11:59:42]Content-Length: 677 [11:59:42]Content-Type: application/json [11:59:42] [11:59:42]POST finish read [11:59:42]Found Content-Length = 677 [11:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:59:42]execute_script... [11:59: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)593139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:59:42]POST & json_proto [11:59:42]process_json_proto [11:59:42]json parsed OK: [11:59:42]protocol is kg_v1.0 [11:59:42]action value=close_receipt [11:59:42]process_action close_receipt [11:59:42]cmd_close_receipt [11:59:42]MH_GetDate [11:59:42]Write to MH i2c: F0 00 00 49 28 60 [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: F0 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: F0 09 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: F0 09 00 49 28 00 B1 33 C3 66 5F 7F 2B 66 E5 [11:59:42]GetLastDocTimeStamp 1724068444 [11:59:42]current date 1724068785 [11:59:42]FM_GetShiftState [11:59:42]SAM_PROTO_GetShiftState [11:59:42]wFMCommunicate request_size=4 [11:59:42]MH_SAM_APDU [11:59:42]CAPDU: 80 13 01 00 [11:59:42]Write to MH i2c: E2 08 00 4A 28 80 13 01 00 00 00 00 00 EF [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 0E 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 0E 00 4A 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A6 [11:59:42]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:59:42]wFMCommunicate OK [11:59:42]SAM_PROTO_GetShiftState done [11:59:42]FM_GetShiftState done [11:59:42]opened in 1724027888 [11:59:42]opened+sec_in_day 1724114288 [11:59:42]quantity*price = 50036 [11:59:42]sum+1 = 50037 [11:59:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 133 19.08.2024 11:59 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139298 ФПД: 85065076097868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115945&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139298&fm=85065076097868&tin=02508201610067®Number=0000000000092569&sum=50000 [11:59:43]StoreToDocumentArchive [11:59:43]shift 452 fd 139298 [11:59:43]save to /storage/0452/doc_00139298 [11:59:43]save last doc name /storage/0452/doc_00139298 to /storage/kkm_last_doc_name [11:59:43]save OK [11:59:43]Clear old archive folders... [11:59:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:43]tlvbuf is 01E5E760 [11:59:43]SAM_PROTO_ClearQueue [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 09 00 00 [11:59:43]Write to MH i2c: E2 08 00 57 28 80 09 00 00 00 00 00 00 F1 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 57 28 00 90 00 F3 [11:59:43]RAPDU: 90 00 [11:59:43]wFMCommunicate OK [11:59:43]SAM_PROTO_ClearQueue done [11:59:43]KKMCreateOFDPacket [11:59:43]OFDProtocolAddRootSTLVToBuf [11:59:43]FM_MakeSignedData [11:59:43]FM_MakeSignedData [11:59:43]SAM_PROTO_SignData [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 0D 01 02 [11:59:43]Write to MH i2c: E2 08 00 58 28 80 0D 01 02 00 00 00 00 F9 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 58 28 00 90 00 F4 [11:59:43]RAPDU: 90 00 [11:59:43]wFMCommunicate OK [11:59:43]wFMCommunicate request_size=255 [11:59:43]MH_SAM_APDU [11:59: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 85 00 00 00 F4 03 04 00 B1 33 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 20 02 00 35 04 06 00 4D [11:59:43]Write to MH i2c: E2 02 01 59 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 85 00 00 00 F4 03 04 00 B1 33 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 20 02 00 35 04 06 00 4D 00 00 6A [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:44]Read from MH i2c: E2 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 03 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 03 00 59 28 00 90 00 F5 [11:59:44]RAPDU: 90 00 [11:59:44]wFMCommunicate OK [11:59:44]wFMCommunicate request_size=10 [11:59:44]MH_SAM_APDU [11:59:44]CAPDU: 80 0D 02 02 05 5D C1 A4 C3 4C [11:59:44]Write to MH i2c: E2 0D 00 5A 28 80 0D 02 02 05 00 5D C1 A4 C3 4C 00 00 D7 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:44]Read from MH i2c: E2 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 03 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 03 00 5A 28 00 90 00 F6 [11:59:44]RAPDU: 90 00 [11:59:44]wFMCommunicate OK [11:59:44]wFMCommunicate request_size=4 [11:59:44]MH_SAM_APDU [11:59:44]CAPDU: 80 0D 03 02 [11:59:44]Write to MH i2c: E2 08 00 5B 28 80 0D 03 02 00 00 00 00 FE [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:44]Read from MH i2c: E2 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 0B 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 0B 00 5B 28 00 CB 07 3D DB 71 C4 9F C4 90 00 81 [11:59:44]RAPDU: CB 07 3D DB 71 C4 9F C4 90 00 [11:59:44]wFMCommunicate OK [11:59:44]SAM_PROTO_SignData done [11:59:44]FM_MakeSignedData done [11:59:44]CreateOFDProtocolMessage [11:59:44]wFMCommunicate request_size=4 [11:59:44]MH_SAM_APDU [11:59:44]CAPDU: 80 11 00 00 [11:59:44]Write to MH i2c: E2 08 00 5C 28 80 11 00 00 00 00 00 00 FE [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:44]Read from MH i2c: E2 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 17 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 17 00 5C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [11:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:59:44]wFMCommunicate OK [11:59:44]CreateOFDProtocolMessage done [11:59:44]OFDSenderStorePacket 139298 [11:59:44]StoreOFDPacket docnum=139298 [11:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 47 07 01 6E FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 85 00 00 00 F4 03 04 00 B1 33 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 20 02 00 35 04 06 00 4D 5D C1 A4 C3 4C CB 07 3D DB 71 C4 9F C4 [11:59:44]CheckFolder [11:59:44]dirname=/storage/ofd_packets [11:59:44]CheckFolder done [11:59:44]ProducePacketName [11:59:44]name=ofd_packets/00139298 [11:59:44]NVStorageSaveData ofd_packets/00139298 [11:59:44]File name is /storage/ofd_packets/00139298 [11:59:44]Write 301 bytes [11:59:44]NVStorageSaveData done [11:59:44]OFDSenderStorePacket done [11:59:44]KKMCreateOFDPacket done [11:59:44]NVStorageSaveData kkm_last_timestamp [11:59:44]File name is /storage/kkm_last_timestamp [11:59:44]Write 4 bytes [11:59:44]NVStorageSaveData done [11:59:44]ExternCall_PrintAddStr [11:59:44]wPrintStart [11:59:44]Write to MH i2c: 01 00 00 5D 28 85 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 07 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 07 00 5D 28 00 00 00 00 00 FF 0F 9A [11:59:44]RasterBufferAndPrint [11:59:44]line Счет N : (1)593139 [11:59:44]line ИНН: 02508201610067 [11:59:44]line Контрольно-Кассовый Чек [11:59:44]line ПРОДАЖА [11:59:44]line ТРК (МРК, ГНК) : 42 [11:59:44]line Товар: 2710124130 [11:59:44]line Аи-92-К-5 [11:59:44]line 7.380 * 67.80 [11:59:44]line = 500.36 [11:59:44]line НДС 12% НСП 1% [11:59:44]line > о реализуемом товаре [11:59:44]line ОКРУГЛЕНИЕ: -0.36 [11:59:44]line ИТОГО: 500.00 [11:59:44]line Внесено: 500.00 [11:59:44]line СДАЧА: 0.00 [11:59:44]line НСП 1% : 4.43 [11:59:44]line НДС 12% : 53.14 [11:59:44]line Наличными: 500.00 [11:59:44]line Безнал.: 0.00 [11:59:44]line Место: АЗС № 136 "Партнер Нефть" [11:59:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:59:44]line СНО: Общий режим [11:59:44]line Чек 133 19.08.2024 11:59 [11:59:44]line Смена: 452 ФФД: 1.0 [11:59:44]line ЗНМ: 0300000067 [11:59:44]line РНМ: 0000000000092569 [11:59:44]line Версия ККМ: 001 [11:59:44]line ФМ: 0000000000871776 [11:59:44]line ФД: 139298 [11:59:44]line ФПД: 85065076097868 [11:59:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115945&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139298&fm=85065076097868&tin=02508201610067®Number=0000000000092569&sum=50000 [11:59:44]written 0, free lines is 4095 [11:59:44]OFD Sender: Processing packet 139298 [packets to send 137, broken 136] [11:59:44]ProducePacketName [11:59:44]name=ofd_packets/00139298 [11:59:44]OFD Sender: To server: pG, [11:59:44]CommunicateWithHost lk.salyk.kg:30040 [11:59:44]ConnectInit lk.salyk.kg [11:59:44]Connected sock=10 [11:59: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 37 36 0F 01 00 00 38 47 07 01 6E FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 85 00 00 00 F4 03 04 00 B1 33 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 20 02 00 35 04 06 00 4D 5D C1 A4 C3 4C CB 07 3D DB 71 C4 9F C4 [11:59: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 37 36 4F 00 00 00 62 D2 47 00 AB 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 20 02 00 F4 03 04 00 47 DA C2 66 B6 04 01 00 00 00 1E 0E A9 5C BD C0 11 [11:59:44]CommunicateWithHost err = 0 [11:59:44]CheckOFDResponse [11:59:44]1017 (14) - 77093643461234 [11:59:44]1041 (16) - 0000000000871776 [11:59:44]1040 (4) - 139298 [11:59:44]1012 (4) - 19.08.2024 05:38 [11:59:44]1206 (1) - 0 [11:59:44]OFD Sender: Remove packet 139298 [11:59:44]ProducePacketName [11:59:44]name=ofd_packets/00139298 [11:59:44]NVStorageDeleteData [11:59:44]Write to MH i2c: 01 00 00 88 28 B0 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 07 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 07 00 88 28 00 00 00 00 00 BE 0C 81 [11:59:44]RasterBufferAndPrint [11:59:44]line [11:59:44]line [11:59:44]line [11:59:44]line [11:59:44]line [11:59:44]written 0, free lines is 3269 [11:59:44]MH_Cut [11:59:44]Write to MH i2c: D1 01 00 8F 28 01 89 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: D1 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: D1 01 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: D1 01 00 8F 28 00 88 [11:59:44]Write to MH i2c: 01 00 00 90 28 B8 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:45]OFD Sender: No OFD packet to send [11:59:45]*** Cut start [11:59:45]*** Partial cut [11:59:45]*** CUTSNS_PIN = 1 [11:59:45]*** CUTSNS_PIN = 0 [11:59:45]*** Brake cut motor [11:59:46]Read from MH i2c: 01 [11:59:46]MH_I2C_Read... [11:59:46]*** Stop cut motor [11:59:46]*** Cut end [11:59:46]Read from MH i2c: 01 07 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: 01 07 00 90 28 00 00 00 00 00 FF 0F CD [11:59:46]process_action close_receipt done [11:59:46]requested_data is exist [11:59:46]produce_requested_data [11:59:46]requested_item fm.sn is exist - process it [11:59:46]wFMCommunicate request_size=4 [11:59:46]MH_SAM_APDU [11:59:46]CAPDU: 80 11 00 00 [11:59:46]Write to MH i2c: E2 08 00 91 28 80 11 00 00 00 00 00 00 33 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 17 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 17 00 91 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8A [11:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:59:46]wFMCommunicate OK [11:59:46]requested_item fd.num is exist - process it [11:59:46]SAM_PROTO_GetFieldsCounters [11:59:46]wFMCommunicate request_size=4 [11:59:46]MH_SAM_APDU [11:59:46]CAPDU: 80 13 00 00 [11:59:46]Write to MH i2c: E2 08 00 92 28 80 13 00 00 00 00 00 00 36 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 62 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 62 00 92 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 22 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [11:59: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 22 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:46]wFMCommunicate OK [11:59:46]SAM_PROTO_GetFieldsCounters done [11:59:46]requested_item shift.num is exist - process it [11:59:46]requested_item shift.opened is exist - process it [11:59:46]req_shift_opened [11:59:46]FM_GetShiftState [11:59:46]SAM_PROTO_GetShiftState [11:59:46]wFMCommunicate request_size=4 [11:59:46]MH_SAM_APDU [11:59:46]CAPDU: 80 13 01 00 [11:59:46]Write to MH i2c: E2 08 00 93 28 80 13 01 00 00 00 00 00 38 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0E 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0E 00 93 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EF [11:59:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:59:46]wFMCommunicate OK [11:59:46]SAM_PROTO_GetShiftState done [11:59:46]FM_GetShiftState done [11:59:46]req_shift_opened done [11:59:46]requested_item shift.open_date is exist - process it [11:59:46]req_shift_open_date [11:59:46]req_shift_open_date done [11:59:46]produce_requested_data done [11:59:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139298,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:59:46]process_action_free close_receipt [11:59:46]json_value_free [11:59:46]json_value_free done [11:59:46]process_json_proto returns [11:59:46]Send response to host [11:59:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139298,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:59:46]free response buf [11:59:46]execute_script done [11:59:46]execute_script returns [11:59:46]free content buf [11:59:46]Sock 7.Close socket [11:59:46]Sock 7.Thread stoped [11:59:50]OFD Sender: No OFD packet to send [11:59:51]accept exits with 9 [11:59:51]New connection [11:59:51]New thread 3067059556 created [11:59:51]Thread 3067202916 joined [11:59:51]Waiting for new connection... [11:59:51] Sock 9.Parse request [11:59:51]Sock 9.Check first char [11:59:51]Sock 9.First char is OK [11:59:51]request: POST /json_proto HTTP/1.0 [11:59:51]Method: POST [11:59:51]URL: /json_proto [11:59:51]Method is POST - this is cgi request [11:59:51]url: /json_proto [11:59:51]query_string will be loaded in cgi processing [11:59:51]execute_cgi json_proto POST (null) [11:59:51]execute_cgi path=json_proto method=POST [11:59:51]POST find Content-Length [11:59:51]Host: 172.17.45.67:8080 [11:59:51]Content-Length: 682 [11:59:51]Content-Type: application/json [11:59:51] [11:59:51]POST finish read [11:59:51]Found Content-Length = 682 [11:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [11:59:51]execute_script... [11:59: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)593140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [11:59:51]POST & json_proto [11:59:51]process_json_proto [11:59:51]json parsed OK: [11:59:51]protocol is kg_v1.0 [11:59:51]action value=close_receipt [11:59:51]process_action close_receipt [11:59:51]cmd_close_receipt [11:59:51]MH_GetDate [11:59:51]Write to MH i2c: F0 00 00 94 28 AB [11:59:51]Write i2c OK [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: F0 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: F0 09 00 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: F0 09 00 94 28 00 BA 33 C3 66 5F 7F 2B 66 39 [11:59:51]GetLastDocTimeStamp 1724068785 [11:59:51]current date 1724068794 [11:59:51]FM_GetShiftState [11:59:51]SAM_PROTO_GetShiftState [11:59:51]wFMCommunicate request_size=4 [11:59:51]MH_SAM_APDU [11:59:51]CAPDU: 80 13 01 00 [11:59:51]Write to MH i2c: E2 08 00 95 28 80 13 01 00 00 00 00 00 3A [11:59:51]Write i2c OK [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:51]E2 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 0E 00 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 0E 00 95 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F1 [11:59:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:59:51]wFMCommunicate OK [11:59:51]SAM_PROTO_GetShiftState done [11:59:51]FM_GetShiftState done [11:59:51]opened in 1724027888 [11:59:51]opened+sec_in_day 1724114288 [11:59:51]quantity*price = 50063 [11:59:51]sum+1 = 50064 [11:59:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 134 19.08.2024 11:59 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139299 ФПД: 144144577708681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115954&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139299&fm=144144577708681&tin=02508201610067®Number=0000000000092569&sum=50000 [11:59:52]StoreToDocumentArchive [11:59:52]shift 452 fd 139299 [11:59:52]save to /storage/0452/doc_00139299 [11:59:52]save last doc name /storage/0452/doc_00139299 to /storage/kkm_last_doc_name [11:59:52]save OK [11:59:52]Clear old archive folders... [11:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:59:52]tlvbuf is 01D5F710 [11:59:52]SAM_PROTO_ClearQueue [11:59:52]wFMCommunicate request_size=4 [11:59:52]MH_SAM_APDU [11:59:52]CAPDU: 80 09 00 00 [11:59:52]Write to MH i2c: E2 08 00 A2 28 80 09 00 00 00 00 00 00 3C [11:59:52]Write i2c OK [11:59:52]MH_I2C_Read... [11:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:52]Read from MH i2c: E2 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: E2 03 00 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: E2 03 00 A2 28 00 90 00 3E [11:59:52]RAPDU: 90 00 [11:59:52]wFMCommunicate OK [11:59:52]SAM_PROTO_ClearQueue done [11:59:52]KKMCreateOFDPacket [11:59:52]OFDProtocolAddRootSTLVToBuf [11:59:52]FM_MakeSignedData [11:59:52]FM_MakeSignedData [11:59:52]SAM_PROTO_SignData [11:59:52]wFMCommunicate request_size=4 [11:59:52]MH_SAM_APDU [11:59:52]CAPDU: 80 0D 01 02 [11:59:52]Write to MH i2c: E2 08 00 A3 28 80 0D 01 02 00 00 00 00 44 [11:59:52]Write i2c OK [11:59:52]MH_I2C_Read... [11:59:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:53]Read from MH i2c: E2 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 03 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 03 00 A3 28 00 90 00 3F [11:59:53]RAPDU: 90 00 [11:59:53]wFMCommunicate OK [11:59:53]wFMCommunicate request_size=255 [11:59:53]MH_SAM_APDU [11:59:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 BA 33 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 20 02 00 35 04 06 00 [11:59:53]Write to MH i2c: E2 02 01 A4 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 BA 33 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 20 02 00 35 04 06 00 00 00 E9 [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:53]Read from MH i2c: E2 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 03 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 03 00 A4 28 00 90 00 40 [11:59:53]RAPDU: 90 00 [11:59:53]wFMCommunicate OK [11:59:53]wFMCommunicate request_size=11 [11:59:53]MH_SAM_APDU [11:59:53]CAPDU: 80 0D 02 02 06 83 19 46 59 C2 89 [11:59:53]Write to MH i2c: E2 0E 00 A5 28 80 0D 02 02 06 00 83 19 46 59 C2 89 00 00 D9 [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:53]Read from MH i2c: E2 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 03 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 03 00 A5 28 00 90 00 41 [11:59:53]RAPDU: 90 00 [11:59:53]wFMCommunicate OK [11:59:53]wFMCommunicate request_size=4 [11:59:53]MH_SAM_APDU [11:59:53]CAPDU: 80 0D 03 02 [11:59:53]Write to MH i2c: E2 08 00 A6 28 80 0D 03 02 00 00 00 00 49 [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:53]Read from MH i2c: E2 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 0B 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 0B 00 A6 28 00 EC 2C D1 04 26 B2 5B 9B 90 00 05 [11:59:53]RAPDU: EC 2C D1 04 26 B2 5B 9B 90 00 [11:59:53]wFMCommunicate OK [11:59:53]SAM_PROTO_SignData done [11:59:53]FM_MakeSignedData done [11:59:53]CreateOFDProtocolMessage [11:59:53]wFMCommunicate request_size=4 [11:59:53]MH_SAM_APDU [11:59:53]CAPDU: 80 11 00 00 [11:59:53]Write to MH i2c: E2 08 00 A7 28 80 11 00 00 00 00 00 00 49 [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:53]Read from MH i2c: E2 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 17 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: E2 17 00 A7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [11:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:59:53]wFMCommunicate OK [11:59:53]CreateOFDProtocolMessage done [11:59:53]OFDSenderStorePacket 139299 [11:59:53]StoreOFDPacket docnum=139299 [11:59:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 9B 4C 08 01 D4 E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 BA 33 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 20 02 00 35 04 06 00 83 19 46 59 C2 89 EC 2C D1 04 26 B2 5B 9B [11:59:53]CheckFolder [11:59:53]dirname=/storage/ofd_packets [11:59:53]CheckFolder done [11:59:53]ProducePacketName [11:59:53]name=ofd_packets/00139299 [11:59:53]NVStorageSaveData ofd_packets/00139299 [11:59:53]File name is /storage/ofd_packets/00139299 [11:59:53]Write 302 bytes [11:59:53]NVStorageSaveData done [11:59:53]OFDSenderStorePacket done [11:59:53]KKMCreateOFDPacket done [11:59:53]NVStorageSaveData kkm_last_timestamp [11:59:53]File name is /storage/kkm_last_timestamp [11:59:53]Write 4 bytes [11:59:53]NVStorageSaveData done [11:59:53]ExternCall_PrintAddStr [11:59:53]wPrintStart [11:59:53]Write to MH i2c: 01 00 00 A8 28 D0 [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: 01 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: 01 07 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: 01 07 00 A8 28 00 00 00 00 00 FF 0F E5 [11:59:53]RasterBufferAndPrint [11:59:53]line Счет N : (1)593140 [11:59:53]line ИНН: 02508201610067 [11:59:53]line Контрольно-Кассовый Чек [11:59:53]line ПРОДАЖА [11:59:53]line ТРК (МРК, ГНК) : 34 [11:59:53]line Товар: 2710194210 [11:59:53]line ДТ(л)-К-5 [11:59:53]line 6.570 * 76.20 [11:59:53]line = 500.63 [11:59:53]line НДС 12% НСП 1% [11:59:53]line > о реализуемом товаре [11:59:53]line ОКРУГЛЕНИЕ: -0.63 [11:59:53]line ИТОГО: 500.00 [11:59:53]line Внесено: 500.00 [11:59:53]line СДАЧА: 0.00 [11:59:53]line НСП 1% : 4.43 [11:59:53]line НДС 12% : 53.16 [11:59:53]line Наличными: 500.00 [11:59:53]line Безнал.: 0.00 [11:59:53]line Место: АЗС № 136 "Партнер Нефть" [11:59:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:59:53]line СНО: Общий режим [11:59:53]line Чек 134 19.08.2024 11:59 [11:59:53]line Смена: 452 ФФД: 1.0 [11:59:53]line ЗНМ: 0300000067 [11:59:53]line РНМ: 0000000000092569 [11:59:53]line Версия ККМ: 001 [11:59:53]line ФМ: 0000000000871776 [11:59:53]line ФД: 139299 [11:59:53]line ФПД: 144144577708681 [11:59:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115954&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139299&fm=144144577708681&tin=02508201610067®Number=0000000000092569&sum=50000 [11:59:53]written 0, free lines is 4095 [11:59:53]OFD Sender: Processing packet 139299 [packets to send 137, broken 136] [11:59:53]ProducePacketName [11:59:53]name=ofd_packets/00139299 [11:59:53]OFD Sender: To server: pG, [11:59:53]CommunicateWithHost lk.salyk.kg:30040 [11:59:53]ConnectInit lk.salyk.kg [11:59:53]Connected sock=10 [11:59:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 9B 4C 08 01 D4 E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 BA 33 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 20 02 00 35 04 06 00 83 19 46 59 C2 89 EC 2C D1 04 26 B2 5B 9B [11:59:53]Write to MH i2c: 01 00 00 D3 28 FB [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: 01 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: 01 07 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: 01 07 00 D3 28 00 00 00 00 00 D9 0C E7 [11:59:53]RasterBufferAndPrint [11:59:53]line [11:59:53]line [11:59:53]line [11:59:53]line [11:59:53]line [11:59:53]written 0, free lines is 3299 [11:59:53]MH_Cut [11:59:53]Write to MH i2c: D1 01 00 DA 28 01 D4 [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: D1 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: D1 01 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: D1 01 00 DA 28 00 D3 [11:59:53]Write to MH i2c: 01 00 00 DB 28 03 [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 54 48 47 00 2F 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 37 36 10 04 04 00 23 20 02 00 F4 03 04 00 50 DA C2 66 B6 04 01 00 00 2F 76 AC 02 F6 C0 FB C6 [11:59:54]CommunicateWithHost err = 0 [11:59:54]CheckOFDResponse [11:59:54]1017 (14) - 77093643461234 [11:59:54]1041 (16) - 0000000000871776 [11:59:54]1040 (4) - 139299 [11:59:54]1012 (4) - 19.08.2024 05:38 [11:59:54]1206 (1) - 0 [11:59:54]OFD Sender: Remove packet 139299 [11:59:54]ProducePacketName [11:59:54]name=ofd_packets/00139299 [11:59:54]NVStorageDeleteData [11:59:54]OFD Sender: No OFD packet to send [11:59:54]*** Cut start [11:59:54]*** Partial cut [11:59:54]*** CUTSNS_PIN = 1 [11:59:54]*** CUTSNS_PIN = 0 [11:59:54]*** Brake cut motor [11:59:55]Read from MH i2c: 01 [11:59:55]MH_I2C_Read... [11:59:55]*** Stop cut motor [11:59:55]*** Cut end [11:59:55]Read from MH i2c: 01 07 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: 01 07 00 DB 28 00 00 00 00 00 FF 0F 18 [11:59:55]process_action close_receipt done [11:59:55]requested_data is exist [11:59:55]produce_requested_data [11:59:55]requested_item fm.sn is exist - process it [11:59:55]wFMCommunicate request_size=4 [11:59:55]MH_SAM_APDU [11:59:55]CAPDU: 80 11 00 00 [11:59:55]Write to MH i2c: E2 08 00 DC 28 80 11 00 00 00 00 00 00 7E [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:55]Read from MH i2c: E2 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 17 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 17 00 DC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D5 [11:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:59:55]wFMCommunicate OK [11:59:55]requested_item fd.num is exist - process it [11:59:55]SAM_PROTO_GetFieldsCounters [11:59:55]wFMCommunicate request_size=4 [11:59:55]MH_SAM_APDU [11:59:55]CAPDU: 80 13 00 00 [11:59:55]Write to MH i2c: E2 08 00 DD 28 80 13 00 00 00 00 00 00 81 [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:55]Read from MH i2c: E2 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 62 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 62 00 DD 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 23 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [11:59:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 23 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:55]wFMCommunicate OK [11:59:55]SAM_PROTO_GetFieldsCounters done [11:59:55]requested_item shift.num is exist - process it [11:59:55]requested_item shift.opened is exist - process it [11:59:55]req_shift_opened [11:59:55]FM_GetShiftState [11:59:55]SAM_PROTO_GetShiftState [11:59:55]wFMCommunicate request_size=4 [11:59:55]MH_SAM_APDU [11:59:55]CAPDU: 80 13 01 00 [11:59:55]Write to MH i2c: E2 08 00 DE 28 80 13 01 00 00 00 00 00 83 [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:55]Read from MH i2c: E2 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 0E 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 0E 00 DE 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3A [11:59:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [11:59:55]wFMCommunicate OK [11:59:55]SAM_PROTO_GetShiftState done [11:59:55]FM_GetShiftState done [11:59:55]req_shift_opened done [11:59:55]requested_item shift.open_date is exist - process it [11:59:55]req_shift_open_date [11:59:55]req_shift_open_date done [11:59:55]produce_requested_data done [11:59:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139299,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [11:59:55]process_action_free close_receipt [11:59:55]json_value_free [11:59:55]json_value_free done [11:59:55]process_json_proto returns [11:59:55]Send response to host [11:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139299,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [11:59:55]free response buf [11:59:55]execute_script done [11:59:55]execute_script returns [11:59:55]free content buf [11:59:55]Sock 9.Close socket [11:59:55]Sock 9.Thread stoped [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]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:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:25]accept exits with 7 [12:02:25]New connection [12:02:25]New thread 3067202916 created [12:02:25]Thread 3067059556 joined [12:02:25]Waiting for new connection... [12:02:25] Sock 7.Parse request [12:02:25]Sock 7.Check first char [12:02:25]Sock 7.First char is OK [12:02:25]request: POST /json_proto HTTP/1.0 [12:02:25]Method: POST [12:02:25]URL: /json_proto [12:02:25]Method is POST - this is cgi request [12:02:25]url: /json_proto [12:02:25]query_string will be loaded in cgi processing [12:02:25]execute_cgi json_proto POST (null) [12:02:25]execute_cgi path=json_proto method=POST [12:02:25]POST find Content-Length [12:02:25]Host: 172.17.45.67:8080 [12:02:25]Content-Length: 682 [12:02:25]Content-Type: application/json [12:02:25] [12:02:25]POST finish read [12:02:25]Found Content-Length = 682 [12:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [12:02:25]execute_script... [12: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)593141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [12:02:25]POST & json_proto [12:02:25]process_json_proto [12:02:25]json parsed OK: [12:02:25]protocol is kg_v1.0 [12:02:25]action value=close_receipt [12:02:25]process_action close_receipt [12:02:25]cmd_close_receipt [12:02:25]MH_GetDate [12:02:25]Write to MH i2c: F0 00 00 DF 28 F6 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: F0 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: F0 09 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: F0 09 00 DF 28 00 53 34 C3 66 5F 7F 2B 66 1E [12:02:25]GetLastDocTimeStamp 1724068794 [12:02:25]current date 1724068947 [12:02:25]FM_GetShiftState [12:02:25]SAM_PROTO_GetShiftState [12:02:25]wFMCommunicate request_size=4 [12:02:25]MH_SAM_APDU [12:02:25]CAPDU: 80 13 01 00 [12:02:25]Write to MH i2c: E2 08 00 E0 28 80 13 01 00 00 00 00 00 85 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:25]Read from MH i2c: E2 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 0E 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 0E 00 E0 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3C [12:02:25]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:02:25]wFMCommunicate OK [12:02:25]SAM_PROTO_GetShiftState done [12:02:25]FM_GetShiftState done [12:02:25]opened in 1724027888 [12:02:25]opened+sec_in_day 1724114288 [12:02:25]quantity*price = 200043 [12:02:25]sum+1 = 200044 [12:02:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 135 19.08.2024 12:02 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139300 ФПД: 145828290289101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120228&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139300&fm=145828290289101&tin=02508201610067®Number=0000000000092569&sum=200000 [12:02:26]StoreToDocumentArchive [12:02:26]shift 452 fd 139300 [12:02:26]save to /storage/0452/doc_00139300 [12:02:26]save last doc name /storage/0452/doc_00139300 to /storage/kkm_last_doc_name [12:02:26]save OK [12:02:26]Clear old archive folders... [12:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:26]tlvbuf is 01DB0D30 [12:02:26]SAM_PROTO_ClearQueue [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 09 00 00 [12:02:26]Write to MH i2c: E2 08 00 ED 28 80 09 00 00 00 00 00 00 87 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]SAM_PROTO_ClearQueue done [12:02:26]KKMCreateOFDPacket [12:02:26]OFDProtocolAddRootSTLVToBuf [12:02:26]FM_MakeSignedData [12:02:26]FM_MakeSignedData [12:02:26]SAM_PROTO_SignData [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 01 02 [12:02:26]Write to MH i2c: E2 08 00 EE 28 80 0D 01 02 00 00 00 00 8F [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]wFMCommunicate request_size=255 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 54 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 20 02 00 35 04 06 00 84 [12:02:26]Write to MH i2c: E2 02 01 EF 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 54 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 20 02 00 35 04 06 00 84 00 00 97 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]wFMCommunicate request_size=10 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 02 02 05 A1 4B 70 DD CD [12:02:26]Write to MH i2c: E2 0D 00 F0 28 80 0D 02 02 05 00 A1 4B 70 DD CD 00 00 A2 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 F0 28 00 90 00 8C [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 03 02 [12:02:26]Write to MH i2c: E2 08 00 F1 28 80 0D 03 02 00 00 00 00 94 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 0B 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 0B 00 F1 28 00 5C 30 75 2F 40 1C E2 15 90 00 18 [12:02:26]RAPDU: 5C 30 75 2F 40 1C E2 15 90 00 [12:02:26]wFMCommunicate OK [12:02:26]SAM_PROTO_SignData done [12:02:26]FM_MakeSignedData done [12:02:26]CreateOFDProtocolMessage [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 11 00 00 [12:02:26]Write to MH i2c: E2 08 00 F2 28 80 11 00 00 00 00 00 00 94 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 17 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 17 00 F2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [12:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:02:26]wFMCommunicate OK [12:02:26]CreateOFDProtocolMessage done [12:02:26]OFDSenderStorePacket 139300 [12:02:26]StoreOFDPacket docnum=139300 [12:02:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C3 D6 07 01 49 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 54 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 20 02 00 35 04 06 00 84 A1 4B 70 DD CD 5C 30 75 2F 40 1C E2 15 [12:02:26]CheckFolder [12:02:26]dirname=/storage/ofd_packets [12:02:26]CheckFolder done [12:02:26]ProducePacketName [12:02:26]name=ofd_packets/00139300 [12:02:26]NVStorageSaveData ofd_packets/00139300 [12:02:26]File name is /storage/ofd_packets/00139300 [12:02:26]Write 301 bytes [12:02:26]NVStorageSaveData done [12:02:26]OFDSenderStorePacket done [12:02:26]KKMCreateOFDPacket done [12:02:26]NVStorageSaveData kkm_last_timestamp [12:02:26]File name is /storage/kkm_last_timestamp [12:02:26]Write 4 bytes [12:02:26]NVStorageSaveData done [12:02:26]ExternCall_PrintAddStr [12:02:26]wPrintStart [12:02:26]Write to MH i2c: 01 00 00 F3 28 1B [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: 01 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: 01 07 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: 01 07 00 F3 28 00 00 00 00 00 FF 0F 30 [12:02:26]RasterBufferAndPrint [12:02:26]line Счет N : (1)593141 [12:02:26]line ИНН: 02508201610067 [12:02:26]line Контрольно-Кассовый Чек [12:02:26]line ПРОДАЖА [12:02:26]line ТРК (МРК, ГНК) : 61 [12:02:26]line Товар: 2710124500 [12:02:26]line Аи-95-К-5 [12:02:26]line 26.960 * 74.20 [12:02:26]line = 2000.43 [12:02:26]line НДС 12% НСП 1% [12:02:26]line > о реализуемом товаре [12:02:26]line ОКРУГЛЕНИЕ: -0.43 [12:02:26]line ИТОГО: 2000.00 [12:02:26]line Внесено: 2000.00 [12:02:26]line СДАЧА: 0.00 [12:02:26]line НСП 1% : 17.70 [12:02:26]line НДС 12% : 212.43 [12:02:26]line Наличными: 2000.00 [12:02:26]line Безнал.: 0.00 [12:02:26]line Место: АЗС № 136 "Партнер Нефть" [12:02:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:02:26]line СНО: Общий режим [12:02:26]line Чек 135 19.08.2024 12:02 [12:02:26]line Смена: 452 ФФД: 1.0 [12:02:26]line ЗНМ: 0300000067 [12:02:26]line РНМ: 0000000000092569 [12:02:26]line Версия ККМ: 001 [12:02:26]line ФМ: 0000000000871776 [12:02:26]line ФД: 139300 [12:02:26]line ФПД: 145828290289101 [12:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120228&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139300&fm=145828290289101&tin=02508201610067®Number=0000000000092569&sum=200000 [12:02:27]OFD Sender: Processing packet 139300 [packets to send 137, broken 136] [12:02:27]ProducePacketName [12:02:27]name=ofd_packets/00139300 [12:02:27]OFD Sender: To server: pG, [12:02:27]CommunicateWithHost lk.salyk.kg:30040 [12:02:27]ConnectInit lk.salyk.kg [12:02:27]written 0, free lines is 4095 [12:02:27]Connected sock=10 [12:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C3 D6 07 01 49 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 54 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 20 02 00 35 04 06 00 84 A1 4B 70 DD CD 5C 30 75 2F 40 1C E2 15 [12:02: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 37 36 4F 00 00 00 96 97 47 00 AE 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 37 36 10 04 04 00 24 20 02 00 F4 03 04 00 E9 DA C2 66 B6 04 01 00 00 17 E3 A1 4D 36 D8 F8 7C [12:02:27]CommunicateWithHost err = 0 [12:02:27]CheckOFDResponse [12:02:27]1017 (14) - 77093643461234 [12:02:27]1041 (16) - 0000000000871776 [12:02:27]1040 (4) - 139300 [12:02:27]1012 (4) - 19.08.2024 05:40 [12:02:27]1206 (1) - 0 [12:02:27]OFD Sender: Remove packet 139300 [12:02:27]ProducePacketName [12:02:27]name=ofd_packets/00139300 [12:02:27]NVStorageDeleteData [12:02:27]Write to MH i2c: 01 00 00 1E 29 47 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: 01 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: 01 07 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: 01 07 00 1E 29 00 00 00 00 00 CD 0C 27 [12:02:27]RasterBufferAndPrint [12:02:27]line [12:02:27]line [12:02:27]line [12:02:27]line [12:02:27]line [12:02:27]written 0, free lines is 3283 [12:02:27]MH_Cut [12:02:27]Write to MH i2c: D1 01 00 25 29 01 20 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: D1 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: D1 01 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: D1 01 00 25 29 00 1F [12:02:27]Write to MH i2c: 01 00 00 26 29 4F [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:28]OFD Sender: No OFD packet to send [12:02:28]*** Cut start [12:02:28]*** Partial cut [12:02:28]*** CUTSNS_PIN = 1 [12:02:28]*** CUTSNS_PIN = 0 [12:02:28]*** Brake cut motor [12:02:29]Read from MH i2c: 01 [12:02:29]MH_I2C_Read... [12:02:29]*** Stop cut motor [12:02:29]*** Cut end [12:02:29]Read from MH i2c: 01 07 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: 01 07 00 26 29 00 00 00 00 00 FF 0F 64 [12:02:29]process_action close_receipt done [12:02:29]requested_data is exist [12:02:29]produce_requested_data [12:02:29]requested_item fm.sn is exist - process it [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 11 00 00 [12:02:29]Write to MH i2c: E2 08 00 27 29 80 11 00 00 00 00 00 00 CA [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 17 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 17 00 27 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 21 [12:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:02:29]wFMCommunicate OK [12:02:29]requested_item fd.num is exist - process it [12:02:29]SAM_PROTO_GetFieldsCounters [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 13 00 00 [12:02:29]Write to MH i2c: E2 08 00 28 29 80 13 00 00 00 00 00 00 CD [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 62 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 62 00 28 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 24 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [12:02: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 24 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:29]wFMCommunicate OK [12:02:29]SAM_PROTO_GetFieldsCounters done [12:02:29]requested_item shift.num is exist - process it [12:02:29]requested_item shift.opened is exist - process it [12:02:29]req_shift_opened [12:02:29]FM_GetShiftState [12:02:29]SAM_PROTO_GetShiftState [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 13 01 00 [12:02:29]Write to MH i2c: E2 08 00 29 29 80 13 01 00 00 00 00 00 CF [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 0E 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 0E 00 29 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 86 [12:02:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:02:29]wFMCommunicate OK [12:02:29]SAM_PROTO_GetShiftState done [12:02:29]FM_GetShiftState done [12:02:29]req_shift_opened done [12:02:29]requested_item shift.open_date is exist - process it [12:02:29]req_shift_open_date [12:02:29]req_shift_open_date done [12:02:29]produce_requested_data done [12:02:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139300,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:02:29]process_action_free close_receipt [12:02:29]json_value_free [12:02:29]json_value_free done [12:02:29]process_json_proto returns [12:02:29]Send response to host [12:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139300,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:02:29]free response buf [12:02:29]execute_script done [12:02:29]execute_script returns [12:02:29]free content buf [12:02:29]Sock 7.Close socket [12:02:29]Sock 7.Thread stoped [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:38]accept exits with 9 [12:02:38]New connection [12:02:38]New thread 3067059556 created [12:02:38]Thread 3067202916 joined [12:02:38]Waiting for new connection... [12:02:38] Sock 9.Parse request [12:02:38]Sock 9.Check first char [12:02:38]Sock 9.First char is OK [12:02:38]request: POST /json_proto HTTP/1.0 [12:02:38]Method: POST [12:02:38]URL: /json_proto [12:02:38]Method is POST - this is cgi request [12:02:38]url: /json_proto [12:02:38]query_string will be loaded in cgi processing [12:02:38]execute_cgi json_proto POST (null) [12:02:38]execute_cgi path=json_proto method=POST [12:02:38]POST find Content-Length [12:02:38]Host: 172.17.45.67:8080 [12:02:38]Content-Length: 678 [12:02:38]Content-Type: application/json [12:02:38] [12:02:38]POST finish read [12:02:38]Found Content-Length = 678 [12:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:02:38]execute_script... [12:02: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)593143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:02:38]POST & json_proto [12:02:38]process_json_proto [12:02:38]json parsed OK: [12:02:38]protocol is kg_v1.0 [12:02:38]action value=close_receipt [12:02:38]process_action close_receipt [12:02:38]cmd_close_receipt [12:02:38]MH_GetDate [12:02:38]Write to MH i2c: F0 00 00 2A 29 42 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: F0 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: F0 09 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: F0 09 00 2A 29 00 61 34 C3 66 5F 7F 2B 66 78 [12:02:38]GetLastDocTimeStamp 1724068948 [12:02:38]current date 1724068961 [12:02:38]FM_GetShiftState [12:02:38]SAM_PROTO_GetShiftState [12:02:38]wFMCommunicate request_size=4 [12:02:38]MH_SAM_APDU [12:02:38]CAPDU: 80 13 01 00 [12:02:38]Write to MH i2c: E2 08 00 2B 29 80 13 01 00 00 00 00 00 D1 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:38]Read from MH i2c: E2 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 0E 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 0E 00 2B 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 88 [12:02:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:02:38]wFMCommunicate OK [12:02:38]SAM_PROTO_GetShiftState done [12:02:38]FM_GetShiftState done [12:02:38]opened in 1724027888 [12:02:38]opened+sec_in_day 1724114288 [12:02:38]quantity*price = 70037 [12:02:38]sum+1 = 70038 [12:02:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 136 19.08.2024 12:02 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139301 ФПД: 120925179569539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120241&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139301&fm=120925179569539&tin=02508201610067®Number=0000000000092569&sum=70000 [12:02:40]StoreToDocumentArchive [12:02:40]shift 452 fd 139301 [12:02:40]save to /storage/0452/doc_00139301 [12:02:40]save last doc name /storage/0452/doc_00139301 to /storage/kkm_last_doc_name [12:02:40]save OK [12:02:40]Clear old archive folders... [12:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:40]tlvbuf is B6F959D0 [12:02:40]SAM_PROTO_ClearQueue [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 09 00 00 [12:02:40]Write to MH i2c: E2 08 00 38 29 80 09 00 00 00 00 00 00 D3 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 38 29 00 90 00 D5 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_ClearQueue done [12:02:40]KKMCreateOFDPacket [12:02:40]OFDProtocolAddRootSTLVToBuf [12:02:40]FM_MakeSignedData [12:02:40]FM_MakeSignedData [12:02:40]SAM_PROTO_SignData [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 01 02 [12:02:40]Write to MH i2c: E2 08 00 39 29 80 0D 01 02 00 00 00 00 DB [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 39 29 00 90 00 D6 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]wFMCommunicate request_size=255 [12:02:40]MH_SAM_APDU [12:02: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 88 00 00 00 F4 03 04 00 61 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 20 02 00 35 04 06 00 6D [12:02:40]Write to MH i2c: E2 02 01 3A 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 88 00 00 00 F4 03 04 00 61 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 20 02 00 35 04 06 00 6D 00 00 0A [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 3A 29 00 90 00 D7 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]wFMCommunicate request_size=10 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 02 02 05 FB 16 5F 65 83 [12:02:40]Write to MH i2c: E2 0D 00 3B 29 80 0D 02 02 05 00 FB 16 5F 65 83 00 00 40 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 3B 29 00 90 00 D8 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 03 02 [12:02:40]Write to MH i2c: E2 08 00 3C 29 80 0D 03 02 00 00 00 00 E0 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0B 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0B 00 3C 29 00 D7 60 DF EB BD 5D C8 16 90 00 DA [12:02:40]RAPDU: D7 60 DF EB BD 5D C8 16 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_SignData done [12:02:40]FM_MakeSignedData done [12:02:40]CreateOFDProtocolMessage [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 11 00 00 [12:02:40]Write to MH i2c: E2 08 00 3D 29 80 11 00 00 00 00 00 00 E0 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 17 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 17 00 3D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 37 [12:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:02:40]wFMCommunicate OK [12:02:40]CreateOFDProtocolMessage done [12:02:40]OFDSenderStorePacket 139301 [12:02:40]StoreOFDPacket docnum=139301 [12:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 46 CC 07 01 F3 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 88 00 00 00 F4 03 04 00 61 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 20 02 00 35 04 06 00 6D FB 16 5F 65 83 D7 60 DF EB BD 5D C8 16 [12:02:40]CheckFolder [12:02:40]dirname=/storage/ofd_packets [12:02:40]CheckFolder done [12:02:40]ProducePacketName [12:02:40]name=ofd_packets/00139301 [12:02:40]NVStorageSaveData ofd_packets/00139301 [12:02:40]File name is /storage/ofd_packets/00139301 [12:02:40]Write 301 bytes [12:02:40]NVStorageSaveData done [12:02:40]OFDSenderStorePacket done [12:02:40]KKMCreateOFDPacket done [12:02:40]NVStorageSaveData kkm_last_timestamp [12:02:40]File name is /storage/kkm_last_timestamp [12:02:40]Write 4 bytes [12:02:40]NVStorageSaveData done [12:02:40]ExternCall_PrintAddStr [12:02:40]wPrintStart [12:02:40]Write to MH i2c: 01 00 00 3E 29 67 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 07 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 07 00 3E 29 00 00 00 00 00 FF 0F 7C [12:02:40]RasterBufferAndPrint [12:02:40]line Счет N : (1)593143 [12:02:40]line ИНН: 02508201610067 [12:02:40]line Контрольно-Кассовый Чек [12:02:40]line ПРОДАЖА [12:02:40]line ТРК (МРК, ГНК) : 42 [12:02:40]line Товар: 2710124130 [12:02:40]line Аи-92-К-5 [12:02:40]line 10.330 * 67.80 [12:02:40]line = 700.37 [12:02:40]line НДС 12% НСП 1% [12:02:40]line > о реализуемом товаре [12:02:40]line ОКРУГЛЕНИЕ: -0.37 [12:02:40]line ИТОГО: 700.00 [12:02:40]line Внесено: 700.00 [12:02:40]line СДАЧА: 0.00 [12:02:40]line НСП 1% : 6.20 [12:02:40]line НДС 12% : 74.38 [12:02:40]line Наличными: 700.00 [12:02:40]line Безнал.: 0.00 [12:02:40]line Место: АЗС № 136 "Партнер Нефть" [12:02:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:02:40]line СНО: Общий режим [12:02:40]line Чек 136 19.08.2024 12:02 [12:02:40]line Смена: 452 ФФД: 1.0 [12:02:40]line ЗНМ: 0300000067 [12:02:40]line РНМ: 0000000000092569 [12:02:40]line Версия ККМ: 001 [12:02:40]line ФМ: 0000000000871776 [12:02:40]line ФД: 139301 [12:02:40]line ФПД: 120925179569539 [12:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120241&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139301&fm=120925179569539&tin=02508201610067®Number=0000000000092569&sum=70000 [12:02:40]OFD Sender: Processing packet 139301 [packets to send 137, broken 136] [12:02:40]ProducePacketName [12:02:40]name=ofd_packets/00139301 [12:02:40]OFD Sender: To server: pG, [12:02:40]CommunicateWithHost lk.salyk.kg:30040 [12:02:40]ConnectInit lk.salyk.kg [12:02:40]written 0, free lines is 4095 [12:02:41]Connected sock=10 [12:02: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 37 36 0F 01 00 00 46 CC 07 01 F3 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 88 00 00 00 F4 03 04 00 61 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 20 02 00 35 04 06 00 6D FB 16 5F 65 83 D7 60 DF EB BD 5D C8 16 [12:02: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 37 36 4F 00 00 00 0C 8F 47 00 FA 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 20 02 00 F4 03 04 00 F7 DA C2 66 B6 04 01 00 00 E3 C3 87 BC 52 CE C7 BE [12:02:41]CommunicateWithHost err = 0 [12:02:41]CheckOFDResponse [12:02:41]1017 (14) - 77093643461234 [12:02:41]1041 (16) - 0000000000871776 [12:02:41]1040 (4) - 139301 [12:02:41]1012 (4) - 19.08.2024 05:41 [12:02:41]1206 (1) - 0 [12:02:41]OFD Sender: Remove packet 139301 [12:02:41]ProducePacketName [12:02:41]name=ofd_packets/00139301 [12:02:41]NVStorageDeleteData [12:02:41]Write to MH i2c: 01 00 00 69 29 92 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 07 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 07 00 69 29 00 00 00 00 00 C6 0C 6B [12:02:41]RasterBufferAndPrint [12:02:41]line [12:02:41]line [12:02:41]line [12:02:41]line [12:02:41]line [12:02:41]written 0, free lines is 3276 [12:02:41]MH_Cut [12:02:41]Write to MH i2c: D1 01 00 70 29 01 6B [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: D1 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: D1 01 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: D1 01 00 70 29 00 6A [12:02:41]Write to MH i2c: 01 00 00 71 29 9A [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]OFD Sender: No OFD packet to send [12:02:42]*** Cut start [12:02:42]*** Partial cut [12:02:42]*** CUTSNS_PIN = 1 [12:02:42]*** CUTSNS_PIN = 0 [12:02:42]*** Brake cut motor [12:02:42]Read from MH i2c: 01 [12:02:42]MH_I2C_Read... [12:02:42]*** Stop cut motor [12:02:42]*** Cut end [12:02:42]Read from MH i2c: 01 07 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 71 29 00 00 00 00 00 FF 0F AF [12:02:42]process_action close_receipt done [12:02:42]requested_data is exist [12:02:42]produce_requested_data [12:02:42]requested_item fm.sn is exist - process it [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 11 00 00 [12:02:42]Write to MH i2c: E2 08 00 72 29 80 11 00 00 00 00 00 00 15 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 17 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 17 00 72 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6C [12:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:02:42]wFMCommunicate OK [12:02:42]requested_item fd.num is exist - process it [12:02:42]SAM_PROTO_GetFieldsCounters [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 13 00 00 [12:02:42]Write to MH i2c: E2 08 00 73 29 80 13 00 00 00 00 00 00 18 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 62 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 62 00 73 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 25 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [12:02:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 25 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:42]wFMCommunicate OK [12:02:42]SAM_PROTO_GetFieldsCounters done [12:02:42]requested_item shift.num is exist - process it [12:02:42]requested_item shift.opened is exist - process it [12:02:42]req_shift_opened [12:02:42]FM_GetShiftState [12:02:42]SAM_PROTO_GetShiftState [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 13 01 00 [12:02:42]Write to MH i2c: E2 08 00 74 29 80 13 01 00 00 00 00 00 1A [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0E 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0E 00 74 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D1 [12:02:42]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:02:42]wFMCommunicate OK [12:02:42]SAM_PROTO_GetShiftState done [12:02:42]FM_GetShiftState done [12:02:42]req_shift_opened done [12:02:42]requested_item shift.open_date is exist - process it [12:02:42]req_shift_open_date [12:02:42]req_shift_open_date done [12:02:42]produce_requested_data done [12:02:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139301,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:02:42]process_action_free close_receipt [12:02:42]json_value_free [12:02:42]json_value_free done [12:02:42]process_json_proto returns [12:02:42]Send response to host [12:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139301,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:02:42]free response buf [12:02:42]execute_script done [12:02:42]execute_script returns [12:02:42]free content buf [12:02:42]Sock 9.Close socket [12:02:42]Sock 9.Thread stoped [12:02:45]accept exits with 7 [12:02:45]New connection [12:02:45]New thread 3067202916 created [12:02:45]Thread 3067059556 joined [12:02:45]Waiting for new connection... [12:02:45] Sock 7.Parse request [12:02:45]Sock 7.Check first char [12:02:45]Sock 7.First char is OK [12:02:45]request: POST /json_proto HTTP/1.0 [12:02:45]Method: POST [12:02:45]URL: /json_proto [12:02:45]Method is POST - this is cgi request [12:02:45]url: /json_proto [12:02:45]query_string will be loaded in cgi processing [12:02:45]execute_cgi json_proto POST (null) [12:02:45]execute_cgi path=json_proto method=POST [12:02:45]POST find Content-Length [12:02:45]Host: 172.17.45.67:8080 [12:02:45]Content-Length: 658 [12:02:45]Content-Type: application/json [12:02:45] [12:02:45]POST finish read [12:02:45]Found Content-Length = 658 [12:02:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "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" ] } } [12:02:45]execute_script... [12:02: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)593142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "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" ] } } [12:02:45]POST & json_proto [12:02:45]process_json_proto [12:02:45]json parsed OK: [12:02:45]protocol is kg_v1.0 [12:02:45]action value=close_receipt [12:02:45]process_action close_receipt [12:02:45]cmd_close_receipt [12:02:45]MH_GetDate [12:02:45]Write to MH i2c: F0 00 00 75 29 8D [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: F0 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: F0 09 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: F0 09 00 75 29 00 67 34 C3 66 5F 7F 2B 66 C9 [12:02:45]GetLastDocTimeStamp 1724068961 [12:02:45]current date 1724068967 [12:02:45]FM_GetShiftState [12:02:45]SAM_PROTO_GetShiftState [12:02:45]wFMCommunicate request_size=4 [12:02:45]MH_SAM_APDU [12:02:45]CAPDU: 80 13 01 00 [12:02:45]Write to MH i2c: E2 08 00 76 29 80 13 01 00 00 00 00 00 1C [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:45]Read from MH i2c: E2 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 0E 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 0E 00 76 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D3 [12:02:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:02:45]wFMCommunicate OK [12:02:45]SAM_PROTO_GetShiftState done [12:02:45]FM_GetShiftState done [12:02:45]opened in 1724027888 [12:02:45]opened+sec_in_day 1724114288 [12:02:45]quantity*price = 30065 [12:02:45]sum+1 = 30067 [12:02:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.93 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 137 19.08.2024 12:02 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139302 ФПД: 121858894041598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120247&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139302&fm=121858894041598&tin=02508201610067®Number=0000000000092569&sum=30000 [12:02:46]StoreToDocumentArchive [12:02:46]shift 452 fd 139302 [12:02:46]save to /storage/0452/doc_00139302 [12:02:46]save last doc name /storage/0452/doc_00139302 to /storage/kkm_last_doc_name [12:02:46]save OK [12:02:46]Clear old archive folders... [12:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:02:46]tlvbuf is 01D7DBE0 [12:02:46]SAM_PROTO_ClearQueue [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 09 00 00 [12:02:46]Write to MH i2c: E2 08 00 83 29 80 09 00 00 00 00 00 00 1E [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [12:02:46]RAPDU: 90 00 [12:02:46]wFMCommunicate OK [12:02:46]SAM_PROTO_ClearQueue done [12:02:46]KKMCreateOFDPacket [12:02:46]OFDProtocolAddRootSTLVToBuf [12:02:46]FM_MakeSignedData [12:02:46]FM_MakeSignedData [12:02:46]SAM_PROTO_SignData [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 0D 01 02 [12:02:46]Write to MH i2c: E2 08 00 84 29 80 0D 01 02 00 00 00 00 26 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [12:02:46]RAPDU: 90 00 [12:02:46]wFMCommunicate OK [12:02:46]wFMCommunicate request_size=253 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 89 00 00 00 F4 03 04 00 67 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 20 02 00 35 04 06 00 6E D4 7C 17 91 FE [12:02:46]Write to MH i2c: E2 00 01 85 29 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 89 00 00 00 F4 03 04 00 67 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 20 02 00 35 04 06 00 6E D4 7C 17 91 FE 00 00 84 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [12:02:46]RAPDU: 90 00 [12:02:46]wFMCommunicate OK [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 0D 03 02 [12:02:46]Write to MH i2c: E2 08 00 86 29 80 0D 03 02 00 00 00 00 2A [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 0B 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 0B 00 86 29 00 03 70 FB E0 43 6A 43 6A 90 00 D3 [12:02:46]RAPDU: 03 70 FB E0 43 6A 43 6A 90 00 [12:02:46]wFMCommunicate OK [12:02:46]SAM_PROTO_SignData done [12:02:46]FM_MakeSignedData done [12:02:46]CreateOFDProtocolMessage [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 11 00 00 [12:02:46]Write to MH i2c: E2 08 00 87 29 80 11 00 00 00 00 00 00 2A [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]OFD Sender: No OFD packet to send [12:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 17 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 17 00 87 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [12:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:02:46]wFMCommunicate OK [12:02:46]CreateOFDProtocolMessage done [12:02:46]OFDSenderStorePacket 139302 [12:02:46]StoreOFDPacket docnum=139302 [12:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 E2 FC 00 01 9A 3B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 89 00 00 00 F4 03 04 00 67 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 20 02 00 35 04 06 00 6E D4 7C 17 91 FE 03 70 FB E0 43 6A 43 6A [12:02:46]CheckFolder [12:02:46]dirname=/storage/ofd_packets [12:02:46]CheckFolder done [12:02:46]ProducePacketName [12:02:46]name=ofd_packets/00139302 [12:02:46]NVStorageSaveData ofd_packets/00139302 [12:02:46]File name is /storage/ofd_packets/00139302 [12:02:46]Write 294 bytes [12:02:46]NVStorageSaveData done [12:02:46]OFDSenderStorePacket done [12:02:46]KKMCreateOFDPacket done [12:02:46]NVStorageSaveData kkm_last_timestamp [12:02:46]File name is /storage/kkm_last_timestamp [12:02:46]Write 4 bytes [12:02:46]NVStorageSaveData done [12:02:46]ExternCall_PrintAddStr [12:02:46]wPrintStart [12:02:46]Write to MH i2c: 01 00 00 88 29 B1 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: 01 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: 01 07 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: 01 07 00 88 29 00 00 00 00 00 FF 0F C6 [12:02:46]RasterBufferAndPrint [12:02:46]line Счет N : (1)593142 [12:02:46]line ИНН: 02508201610067 [12:02:46]line Контрольно-Кассовый Чек [12:02:46]line ПРОДАЖА [12:02:46]line ТРК (МРК, ГНК) : 53 [12:02:46]line Товар: 2710124130 [12:02:46]line SU-92 [12:02:46]line 4.370 * 68.80 [12:02:46]line = 300.66 [12:02:46]line НДС 12% НСП 1% [12:02:46]line > о реализуемом товаре [12:02:46]line ОКРУГЛЕНИЕ: -0.66 [12:02:46]line ИТОГО: 300.00 [12:02:46]line Внесено: 300.00 [12:02:46]line СДАЧА: 0.00 [12:02:46]line НСП 1% : 2.66 [12:02:46]line НДС 12% : 31.93 [12:02:46]line Наличными: 300.00 [12:02:46]line Безнал.: 0.00 [12:02:46]line Место: АЗС № 136 "Партнер Нефть" [12:02:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:02:46]line СНО: Общий режим [12:02:46]line Чек 137 19.08.2024 12:02 [12:02:46]line Смена: 452 ФФД: 1.0 [12:02:46]line ЗНМ: 0300000067 [12:02:46]line РНМ: 0000000000092569 [12:02:46]line Версия ККМ: 001 [12:02:46]line ФМ: 0000000000871776 [12:02:46]line ФД: 139302 [12:02:46]line ФПД: 121858894041598 [12:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120247&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139302&fm=121858894041598&tin=02508201610067®Number=0000000000092569&sum=30000 [12:02:46]written 0, free lines is 4095 [12:02:46]OFD Sender: Processing packet 139302 [packets to send 137, broken 136] [12:02:46]ProducePacketName [12:02:46]name=ofd_packets/00139302 [12:02:46]OFD Sender: To server: pG, [12:02:46]CommunicateWithHost lk.salyk.kg:30040 [12:02:46]ConnectInit lk.salyk.kg [12:02:47]Connected sock=10 [12:02: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 37 36 08 01 00 00 E2 FC 00 01 9A 3B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 89 00 00 00 F4 03 04 00 67 34 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 20 02 00 35 04 06 00 6E D4 7C 17 91 FE 03 70 FB E0 43 6A 43 6A [12:02: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 37 36 4F 00 00 00 5C 15 47 00 CD 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 20 02 00 F4 03 04 00 FD DA C2 66 B6 04 01 00 00 C0 35 B5 F6 38 6F C5 DA [12:02:47]CommunicateWithHost err = 0 [12:02:47]CheckOFDResponse [12:02:47]1017 (14) - 77093643461234 [12:02:47]1041 (16) - 0000000000871776 [12:02:47]1040 (4) - 139302 [12:02:47]1012 (4) - 19.08.2024 05:41 [12:02:47]1206 (1) - 0 [12:02:47]OFD Sender: Remove packet 139302 [12:02:47]ProducePacketName [12:02:47]name=ofd_packets/00139302 [12:02:47]NVStorageDeleteData [12:02:47]Write to MH i2c: 01 00 00 B3 29 DC [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: 01 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: 01 07 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: 01 07 00 B3 29 00 00 00 00 00 F6 0C E5 [12:02:47]RasterBufferAndPrint [12:02:47]line [12:02:47]line [12:02:47]line [12:02:47]line [12:02:47]line [12:02:47]written 0, free lines is 3333 [12:02:47]MH_Cut [12:02:47]Write to MH i2c: D1 01 00 BA 29 01 B5 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: D1 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: D1 01 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: D1 01 00 BA 29 00 B4 [12:02:47]Write to MH i2c: 01 00 00 BB 29 E4 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]OFD Sender: No OFD packet to send [12:02:48]*** Cut start [12:02:48]*** Partial cut [12:02:48]*** CUTSNS_PIN = 1 [12:02:48]*** CUTSNS_PIN = 0 [12:02:48]*** Brake cut motor [12:02:48]Read from MH i2c: 01 [12:02:48]MH_I2C_Read... [12:02:48]*** Stop cut motor [12:02:48]*** Cut end [12:02:48]Read from MH i2c: 01 07 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: 01 07 00 BB 29 00 00 00 00 00 FF 0F F9 [12:02:48]process_action close_receipt done [12:02:48]requested_data is exist [12:02:48]produce_requested_data [12:02:48]requested_item fm.sn is exist - process it [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 11 00 00 [12:02:48]Write to MH i2c: E2 08 00 BC 29 80 11 00 00 00 00 00 00 5F [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 17 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 17 00 BC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B6 [12:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:02:48]wFMCommunicate OK [12:02:48]requested_item fd.num is exist - process it [12:02:48]SAM_PROTO_GetFieldsCounters [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 13 00 00 [12:02:48]Write to MH i2c: E2 08 00 BD 29 80 13 00 00 00 00 00 00 62 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 62 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 62 00 BD 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 26 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [12:02: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 26 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:48]wFMCommunicate OK [12:02:48]SAM_PROTO_GetFieldsCounters done [12:02:48]requested_item shift.num is exist - process it [12:02:48]requested_item shift.opened is exist - process it [12:02:48]req_shift_opened [12:02:48]FM_GetShiftState [12:02:48]SAM_PROTO_GetShiftState [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 13 01 00 [12:02:48]Write to MH i2c: E2 08 00 BE 29 80 13 01 00 00 00 00 00 64 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:49]Read from MH i2c: E2 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 0E 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 0E 00 BE 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1B [12:02:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:02:49]wFMCommunicate OK [12:02:49]SAM_PROTO_GetShiftState done [12:02:49]FM_GetShiftState done [12:02:49]req_shift_opened done [12:02:49]requested_item shift.open_date is exist - process it [12:02:49]req_shift_open_date [12:02:49]req_shift_open_date done [12:02:49]produce_requested_data done [12:02:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139302,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:02:49]process_action_free close_receipt [12:02:49]json_value_free [12:02:49]json_value_free done [12:02:49]process_json_proto returns [12:02:49]Send response to host [12:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139302,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:02:49]free response buf [12:02:49]execute_script done [12:02:49]execute_script returns [12:02:49]free content buf [12:02:49]Sock 7.Close socket [12:02:49]Sock 7.Thread stoped [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:46]accept exits with 9 [12:07:46]New connection [12:07:46]New thread 3067059556 created [12:07:46]Thread 3067202916 joined [12:07:46]Waiting for new connection... [12:07:46] Sock 9.Parse request [12:07:46]Sock 9.Check first char [12:07:46]Sock 9.First char is OK [12:07:46]request: POST /json_proto HTTP/1.0 [12:07:46]Method: POST [12:07:46]URL: /json_proto [12:07:46]Method is POST - this is cgi request [12:07:46]url: /json_proto [12:07:46]query_string will be loaded in cgi processing [12:07:46]execute_cgi json_proto POST (null) [12:07:46]execute_cgi path=json_proto method=POST [12:07:46]POST find Content-Length [12:07:46]Host: 172.17.45.67:8080 [12:07:46]Content-Length: 677 [12:07:46]Content-Type: application/json [12:07:46] [12:07:46]POST finish read [12:07:46]Found Content-Length = 677 [12:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:46]execute_script... [12:07: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)593144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:46]POST & json_proto [12:07:46]process_json_proto [12:07:46]json parsed OK: [12:07:46]protocol is kg_v1.0 [12:07:46]action value=close_receipt [12:07:46]process_action close_receipt [12:07:46]cmd_close_receipt [12:07:46]MH_GetDate [12:07:46]Write to MH i2c: F0 00 00 BF 29 D7 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: F0 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: F0 09 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: F0 09 00 BF 29 00 95 35 C3 66 5F 7F 2B 66 42 [12:07:46]GetLastDocTimeStamp 1724068967 [12:07:46]current date 1724069269 [12:07:46]FM_GetShiftState [12:07:46]SAM_PROTO_GetShiftState [12:07:46]wFMCommunicate request_size=4 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 13 01 00 [12:07:46]Write to MH i2c: E2 08 00 C0 29 80 13 01 00 00 00 00 00 66 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0E 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0E 00 C0 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1D [12:07:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:07:46]wFMCommunicate OK [12:07:46]SAM_PROTO_GetShiftState done [12:07:46]FM_GetShiftState done [12:07:46]opened in 1724027888 [12:07:46]opened+sec_in_day 1724114288 [12:07:46]quantity*price = 40002 [12:07:46]sum+1 = 40003 [12:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 138 19.08.2024 12:07 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139303 ФПД: 39276683172281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139303&fm=39276683172281&tin=02508201610067®Number=0000000000092569&sum=40000 [12:07:48]StoreToDocumentArchive [12:07:48]shift 452 fd 139303 [12:07:48]save to /storage/0452/doc_00139303 [12:07:48]save last doc name /storage/0452/doc_00139303 to /storage/kkm_last_doc_name [12:07:48]save OK [12:07:48]Clear old archive folders... [12:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:48]tlvbuf is B6F95840 [12:07:48]SAM_PROTO_ClearQueue [12:07:48]wFMCommunicate request_size=4 [12:07:48]MH_SAM_APDU [12:07:48]CAPDU: 80 09 00 00 [12:07:48]Write to MH i2c: E2 08 00 CD 29 80 09 00 00 00 00 00 00 68 [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:48]Read from MH i2c: E2 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 03 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [12:07:48]RAPDU: 90 00 [12:07:48]wFMCommunicate OK [12:07:48]SAM_PROTO_ClearQueue done [12:07:48]KKMCreateOFDPacket [12:07:48]OFDProtocolAddRootSTLVToBuf [12:07:48]FM_MakeSignedData [12:07:48]FM_MakeSignedData [12:07:48]SAM_PROTO_SignData [12:07:48]wFMCommunicate request_size=4 [12:07:48]MH_SAM_APDU [12:07:48]CAPDU: 80 0D 01 02 [12:07:48]Write to MH i2c: E2 08 00 CE 29 80 0D 01 02 00 00 00 00 70 [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:48]Read from MH i2c: E2 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 03 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [12:07:48]RAPDU: 90 00 [12:07:48]wFMCommunicate OK [12:07:48]wFMCommunicate request_size=255 [12:07:48]MH_SAM_APDU [12:07: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 8A 00 00 00 F4 03 04 00 95 35 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 20 02 00 35 04 06 00 23 [12:07:48]Write to MH i2c: E2 02 01 CF 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 8A 00 00 00 F4 03 04 00 95 35 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 20 02 00 35 04 06 00 23 00 00 8C [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]OFD Sender: No OFD packet to send [12:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:48]Read from MH i2c: E2 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 03 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [12:07:48]RAPDU: 90 00 [12:07:48]wFMCommunicate OK [12:07:48]wFMCommunicate request_size=10 [12:07:48]MH_SAM_APDU [12:07:48]CAPDU: 80 0D 02 02 05 B8 D0 BF 99 B9 [12:07:48]Write to MH i2c: E2 0D 00 D0 29 80 0D 02 02 05 00 B8 D0 BF 99 B9 00 00 16 [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:48]Read from MH i2c: E2 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 03 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 03 00 D0 29 00 90 00 6D [12:07:48]RAPDU: 90 00 [12:07:48]wFMCommunicate OK [12:07:48]wFMCommunicate request_size=4 [12:07:48]MH_SAM_APDU [12:07:48]CAPDU: 80 0D 03 02 [12:07:48]Write to MH i2c: E2 08 00 D1 29 80 0D 03 02 00 00 00 00 75 [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:48]Read from MH i2c: E2 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 0B 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 0B 00 D1 29 00 FF 85 5F F9 25 86 BB 4A 90 00 02 [12:07:48]RAPDU: FF 85 5F F9 25 86 BB 4A 90 00 [12:07:48]wFMCommunicate OK [12:07:48]SAM_PROTO_SignData done [12:07:48]FM_MakeSignedData done [12:07:48]CreateOFDProtocolMessage [12:07:48]wFMCommunicate request_size=4 [12:07:48]MH_SAM_APDU [12:07:48]CAPDU: 80 11 00 00 [12:07:48]Write to MH i2c: E2 08 00 D2 29 80 11 00 00 00 00 00 00 75 [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:48]Read from MH i2c: E2 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 17 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: E2 17 00 D2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [12:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:07:48]wFMCommunicate OK [12:07:48]CreateOFDProtocolMessage done [12:07:48]OFDSenderStorePacket 139303 [12:07:48]StoreOFDPacket docnum=139303 [12:07:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 58 07 01 08 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 8A 00 00 00 F4 03 04 00 95 35 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 20 02 00 35 04 06 00 23 B8 D0 BF 99 B9 FF 85 5F F9 25 86 BB 4A [12:07:48]CheckFolder [12:07:48]dirname=/storage/ofd_packets [12:07:48]CheckFolder done [12:07:48]ProducePacketName [12:07:48]name=ofd_packets/00139303 [12:07:48]NVStorageSaveData ofd_packets/00139303 [12:07:48]File name is /storage/ofd_packets/00139303 [12:07:48]Write 301 bytes [12:07:48]NVStorageSaveData done [12:07:48]OFDSenderStorePacket done [12:07:48]KKMCreateOFDPacket done [12:07:48]NVStorageSaveData kkm_last_timestamp [12:07:48]File name is /storage/kkm_last_timestamp [12:07:48]Write 4 bytes [12:07:48]NVStorageSaveData done [12:07:48]ExternCall_PrintAddStr [12:07:48]wPrintStart [12:07:48]Write to MH i2c: 01 00 00 D3 29 FC [12:07:48]Write i2c OK [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: 01 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: 01 07 00 [12:07:48]MH_I2C_Read... [12:07:48]Read from MH i2c: 01 07 00 D3 29 00 00 00 00 00 FF 0F 11 [12:07:48]RasterBufferAndPrint [12:07:48]line Счет N : (1)593144 [12:07:48]line ИНН: 02508201610067 [12:07:48]line Контрольно-Кассовый Чек [12:07:48]line ПРОДАЖА [12:07:48]line ТРК (МРК, ГНК) : 42 [12:07:48]line Товар: 2710124130 [12:07:48]line Аи-92-К-5 [12:07:48]line 5.900 * 67.80 [12:07:48]line = 400.02 [12:07:48]line НДС 12% НСП 1% [12:07:48]line > о реализуемом товаре [12:07:48]line ОКРУГЛЕНИЕ: -0.02 [12:07:48]line ИТОГО: 400.00 [12:07:48]line Внесено: 400.00 [12:07:48]line СДАЧА: 0.00 [12:07:48]line НСП 1% : 3.54 [12:07:48]line НДС 12% : 42.48 [12:07:48]line Наличными: 400.00 [12:07:48]line Безнал.: 0.00 [12:07:48]line Место: АЗС № 136 "Партнер Нефть" [12:07:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:07:48]line СНО: Общий режим [12:07:48]line Чек 138 19.08.2024 12:07 [12:07:48]line Смена: 452 ФФД: 1.0 [12:07:48]line ЗНМ: 0300000067 [12:07:48]line РНМ: 0000000000092569 [12:07:48]line Версия ККМ: 001 [12:07:48]line ФМ: 0000000000871776 [12:07:48]line ФД: 139303 [12:07:48]line ФПД: 39276683172281 [12:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139303&fm=39276683172281&tin=02508201610067®Number=0000000000092569&sum=40000 [12:07:48]written 0, free lines is 4095 [12:07:48]OFD Sender: Processing packet 139303 [packets to send 137, broken 136] [12:07:48]ProducePacketName [12:07:48]name=ofd_packets/00139303 [12:07:48]OFD Sender: To server: pG, [12:07:48]CommunicateWithHost lk.salyk.kg:30040 [12:07:48]ConnectInit lk.salyk.kg [12:07:49]Write to MH i2c: 01 00 00 FE 29 27 [12:07:49]Write i2c OK [12:07:49]MH_I2C_Read... [12:07:49]Read from MH i2c: 01 [12:07:49]MH_I2C_Read... [12:07:49]Read from MH i2c: 01 07 00 [12:07:49]MH_I2C_Read... [12:07:49]Read from MH i2c: 01 07 00 FE 29 00 00 00 00 00 CE 0C 08 [12:07:49]RasterBufferAndPrint [12:07:49]line [12:07:49]line [12:07:49]line [12:07:49]line [12:07:49]line [12:07:49]written 0, free lines is 3284 [12:07:49]MH_Cut [12:07:49]Write to MH i2c: D1 01 00 05 2A 01 01 [12:07:49]Connected sock=10 [12:07: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 37 36 0F 01 00 00 B1 58 07 01 08 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 8A 00 00 00 F4 03 04 00 95 35 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 20 02 00 35 04 06 00 23 B8 D0 BF 99 B9 FF 85 5F F9 25 86 BB 4A [12:07:49]Write i2c OK [12:07:49]MH_I2C_Read... [12:07:49]Read from MH i2c: D1 [12:07:49]MH_I2C_Read... [12:07:49]Read from MH i2c: D1 01 00 [12:07:49]MH_I2C_Read... [12:07:49]Read from MH i2c: D1 01 00 05 2A 00 00 [12:07:49]Write to MH i2c: 01 00 00 06 2A 30 [12:07:49]Write i2c OK [12:07:49]MH_I2C_Read... [12:07: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 37 36 4F 00 00 00 EC AC 47 00 94 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 20 02 00 F4 03 04 00 2B DC C2 66 B6 04 01 00 00 94 2F C9 CA D2 72 3A 6C [12:07:49]CommunicateWithHost err = 0 [12:07:49]CheckOFDResponse [12:07:49]1017 (14) - 77093643461234 [12:07:49]1041 (16) - 0000000000871776 [12:07:49]1040 (4) - 139303 [12:07:49]1012 (4) - 19.08.2024 05:46 [12:07:49]1206 (1) - 0 [12:07:49]OFD Sender: Remove packet 139303 [12:07:49]ProducePacketName [12:07:49]name=ofd_packets/00139303 [12:07:49]NVStorageDeleteData [12:07:49]*** Cut start [12:07:49]*** Partial cut [12:07:49]*** CUTSNS_PIN = 1 [12:07:49]*** CUTSNS_PIN = 0 [12:07:49]OFD Sender: No OFD packet to send [12:07:50]*** Brake cut motor [12:07:50]Read from MH i2c: 01 [12:07:50]MH_I2C_Read... [12:07:50]*** Stop cut motor [12:07:50]*** Cut end [12:07:50]Read from MH i2c: 01 07 00 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: 01 07 00 06 2A 00 00 00 00 00 FF 0F 45 [12:07:50]process_action close_receipt done [12:07:50]requested_data is exist [12:07:50]produce_requested_data [12:07:50]requested_item fm.sn is exist - process it [12:07:50]wFMCommunicate request_size=4 [12:07:50]MH_SAM_APDU [12:07:50]CAPDU: 80 11 00 00 [12:07:50]Write to MH i2c: E2 08 00 07 2A 80 11 00 00 00 00 00 00 AB [12:07:50]Write i2c OK [12:07:50]MH_I2C_Read... [12:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:50]Read from MH i2c: E2 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: E2 17 00 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: E2 17 00 07 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 02 [12:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:07:50]wFMCommunicate OK [12:07:50]requested_item fd.num is exist - process it [12:07:50]SAM_PROTO_GetFieldsCounters [12:07:50]wFMCommunicate request_size=4 [12:07:50]MH_SAM_APDU [12:07:50]CAPDU: 80 13 00 00 [12:07:50]Write to MH i2c: E2 08 00 08 2A 80 13 00 00 00 00 00 00 AE [12:07:50]Write i2c OK [12:07:50]MH_I2C_Read... [12:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:50]Read from MH i2c: E2 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: E2 62 00 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: E2 62 00 08 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 27 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [12:07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 27 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:50]wFMCommunicate OK [12:07:50]SAM_PROTO_GetFieldsCounters done [12:07:50]requested_item shift.num is exist - process it [12:07:50]requested_item shift.opened is exist - process it [12:07:50]req_shift_opened [12:07:50]FM_GetShiftState [12:07:50]SAM_PROTO_GetShiftState [12:07:50]wFMCommunicate request_size=4 [12:07:50]MH_SAM_APDU [12:07:50]CAPDU: 80 13 01 00 [12:07:50]Write to MH i2c: E2 08 00 09 2A 80 13 01 00 00 00 00 00 B0 [12:07:50]Write i2c OK [12:07:50]MH_I2C_Read... [12:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:50]Read from MH i2c: E2 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: E2 0E 00 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: E2 0E 00 09 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 67 [12:07:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:07:50]wFMCommunicate OK [12:07:50]SAM_PROTO_GetShiftState done [12:07:50]FM_GetShiftState done [12:07:50]req_shift_opened done [12:07:50]requested_item shift.open_date is exist - process it [12:07:50]req_shift_open_date [12:07:50]req_shift_open_date done [12:07:50]produce_requested_data done [12:07:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139303,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:07:50]process_action_free close_receipt [12:07:50]json_value_free [12:07:50]json_value_free done [12:07:50]process_json_proto returns [12:07:50]Send response to host [12:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139303,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:07:50]free response buf [12:07:50]execute_script done [12:07:50]execute_script returns [12:07:50]free content buf [12:07:50]Sock 9.Close socket [12:07:50]Sock 9.Thread stoped [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:32]accept exits with 7 [12:09:32]New connection [12:09:32]New thread 3067202916 created [12:09:32]Thread 3067059556 joined [12:09:32]Waiting for new connection... [12:09:32] Sock 7.Parse request [12:09:32]Sock 7.Check first char [12:09:32]Sock 7.First char is OK [12:09:32]request: POST /json_proto HTTP/1.0 [12:09:32]Method: POST [12:09:32]URL: /json_proto [12:09:32]Method is POST - this is cgi request [12:09:32]url: /json_proto [12:09:32]query_string will be loaded in cgi processing [12:09:32]execute_cgi json_proto POST (null) [12:09:32]execute_cgi path=json_proto method=POST [12:09:32]POST find Content-Length [12:09:32]Host: 172.17.45.67:8080 [12:09:32]Content-Length: 677 [12:09:32]Content-Type: application/json [12:09:32] [12:09:32]POST finish read [12:09:32]Found Content-Length = 677 [12:09:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:32]execute_script... [12:09: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)593145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:32]POST & json_proto [12:09:32]process_json_proto [12:09:32]json parsed OK: [12:09:32]protocol is kg_v1.0 [12:09:32]action value=close_receipt [12:09:32]process_action close_receipt [12:09:32]cmd_close_receipt [12:09:32]MH_GetDate [12:09:32]Write to MH i2c: F0 00 00 0A 2A 23 [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: F0 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: F0 09 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: F0 09 00 0A 2A 00 FF 35 C3 66 5F 7F 2B 66 F8 [12:09:32]GetLastDocTimeStamp 1724069269 [12:09:32]current date 1724069375 [12:09:32]FM_GetShiftState [12:09:32]SAM_PROTO_GetShiftState [12:09:32]wFMCommunicate request_size=4 [12:09:32]MH_SAM_APDU [12:09:32]CAPDU: 80 13 01 00 [12:09:32]Write to MH i2c: E2 08 00 0B 2A 80 13 01 00 00 00 00 00 B2 [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:32]Read from MH i2c: E2 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 0E 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 0E 00 0B 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 69 [12:09:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:09:32]wFMCommunicate OK [12:09:32]SAM_PROTO_GetShiftState done [12:09:32]FM_GetShiftState done [12:09:32]opened in 1724027888 [12:09:32]opened+sec_in_day 1724114288 [12:09:32]quantity*price = 30035 [12:09:32]sum+1 = 30036 [12:09:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 139 19.08.2024 12:09 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139304 ФПД: 57253877908806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120935&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139304&fm=57253877908806&tin=02508201610067®Number=0000000000092569&sum=30000 [12:09:33]StoreToDocumentArchive [12:09:33]shift 452 fd 139304 [12:09:33]save to /storage/0452/doc_00139304 [12:09:33]save last doc name /storage/0452/doc_00139304 to /storage/kkm_last_doc_name [12:09:33]save OK [12:09:33]Clear old archive folders... [12:09:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:33]tlvbuf is 01E51490 [12:09:33]SAM_PROTO_ClearQueue [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 09 00 00 [12:09:33]Write to MH i2c: E2 08 00 18 2A 80 09 00 00 00 00 00 00 B4 [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 03 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [12:09:33]RAPDU: 90 00 [12:09:33]wFMCommunicate OK [12:09:33]SAM_PROTO_ClearQueue done [12:09:33]KKMCreateOFDPacket [12:09:33]OFDProtocolAddRootSTLVToBuf [12:09:33]FM_MakeSignedData [12:09:33]FM_MakeSignedData [12:09:33]SAM_PROTO_SignData [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 0D 01 02 [12:09:33]Write to MH i2c: E2 08 00 19 2A 80 0D 01 02 00 00 00 00 BC [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 03 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [12:09:33]RAPDU: 90 00 [12:09:33]wFMCommunicate OK [12:09:33]wFMCommunicate request_size=255 [12:09:33]MH_SAM_APDU [12:09: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FF 35 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 20 02 00 35 04 06 00 34 [12:09:33]Write to MH i2c: E2 02 01 1A 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FF 35 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 20 02 00 35 04 06 00 34 00 00 8F [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 03 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 03 00 1A 2A 00 90 00 B8 [12:09:33]RAPDU: 90 00 [12:09:33]wFMCommunicate OK [12:09:33]wFMCommunicate request_size=10 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 0D 02 02 05 12 75 0E 05 46 [12:09:33]Write to MH i2c: E2 0D 00 1B 2A 80 0D 02 02 05 00 12 75 0E 05 46 00 00 A9 [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 03 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 03 00 1B 2A 00 90 00 B9 [12:09:33]RAPDU: 90 00 [12:09:33]wFMCommunicate OK [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 0D 03 02 [12:09:33]Write to MH i2c: E2 08 00 1C 2A 80 0D 03 02 00 00 00 00 C1 [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 0B 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 0B 00 1C 2A 00 44 D0 49 49 99 F3 58 57 90 00 A3 [12:09:33]RAPDU: 44 D0 49 49 99 F3 58 57 90 00 [12:09:33]wFMCommunicate OK [12:09:33]SAM_PROTO_SignData done [12:09:33]FM_MakeSignedData done [12:09:33]CreateOFDProtocolMessage [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 11 00 00 [12:09:33]Write to MH i2c: E2 08 00 1D 2A 80 11 00 00 00 00 00 00 C1 [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 17 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 17 00 1D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [12:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:09:34]wFMCommunicate OK [12:09:34]CreateOFDProtocolMessage done [12:09:34]OFDSenderStorePacket 139304 [12:09:34]StoreOFDPacket docnum=139304 [12:09:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 BF 07 01 84 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FF 35 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 20 02 00 35 04 06 00 34 12 75 0E 05 46 44 D0 49 49 99 F3 58 57 [12:09:34]CheckFolder [12:09:34]dirname=/storage/ofd_packets [12:09:34]CheckFolder done [12:09:34]ProducePacketName [12:09:34]name=ofd_packets/00139304 [12:09:34]NVStorageSaveData ofd_packets/00139304 [12:09:34]File name is /storage/ofd_packets/00139304 [12:09:34]Write 301 bytes [12:09:34]NVStorageSaveData done [12:09:34]OFDSenderStorePacket done [12:09:34]KKMCreateOFDPacket done [12:09:34]NVStorageSaveData kkm_last_timestamp [12:09:34]File name is /storage/kkm_last_timestamp [12:09:34]Write 4 bytes [12:09:34]NVStorageSaveData done [12:09:34]ExternCall_PrintAddStr [12:09:34]wPrintStart [12:09:34]Write to MH i2c: 01 00 00 1E 2A 48 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 07 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 07 00 1E 2A 00 00 00 00 00 FF 0F 5D [12:09:34]RasterBufferAndPrint [12:09:34]line Счет N : (1)593145 [12:09:34]line ИНН: 02508201610067 [12:09:34]line Контрольно-Кассовый Чек [12:09:34]line ПРОДАЖА [12:09:34]line ТРК (МРК, ГНК) : 52 [12:09:34]line Товар: 2710124130 [12:09:34]line Аи-92-К-5 [12:09:34]line 4.430 * 67.80 [12:09:34]line = 300.35 [12:09:34]line НДС 12% НСП 1% [12:09:34]line > о реализуемом товаре [12:09:34]line ОКРУГЛЕНИЕ: -0.35 [12:09:34]line ИТОГО: 300.00 [12:09:34]line Внесено: 300.00 [12:09:34]line СДАЧА: 0.00 [12:09:34]line НСП 1% : 2.66 [12:09:34]line НДС 12% : 31.90 [12:09:34]line Наличными: 300.00 [12:09:34]line Безнал.: 0.00 [12:09:34]line Место: АЗС № 136 "Партнер Нефть" [12:09:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:09:34]line СНО: Общий режим [12:09:34]line Чек 139 19.08.2024 12:09 [12:09:34]line Смена: 452 ФФД: 1.0 [12:09:34]line ЗНМ: 0300000067 [12:09:34]line РНМ: 0000000000092569 [12:09:34]line Версия ККМ: 001 [12:09:34]line ФМ: 0000000000871776 [12:09:34]line ФД: 139304 [12:09:34]line ФПД: 57253877908806 [12:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T120935&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139304&fm=57253877908806&tin=02508201610067®Number=0000000000092569&sum=30000 [12:09:34]written 0, free lines is 4095 [12:09:34]OFD Sender: Processing packet 139304 [packets to send 137, broken 136] [12:09:34]ProducePacketName [12:09:34]name=ofd_packets/00139304 [12:09:34]OFD Sender: To server: pG, [12:09:34]CommunicateWithHost lk.salyk.kg:30040 [12:09:34]ConnectInit lk.salyk.kg [12:09:34]Connected sock=10 [12:09: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 37 36 0F 01 00 00 D1 BF 07 01 84 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FF 35 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 20 02 00 35 04 06 00 34 12 75 0E 05 46 44 D0 49 49 99 F3 58 57 [12:09: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 37 36 4F 00 00 00 17 EF 47 00 6F 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 20 02 00 F4 03 04 00 95 DC C2 66 B6 04 01 00 00 30 EA E7 12 67 7D AD 8A [12:09:34]CommunicateWithHost err = 0 [12:09:34]CheckOFDResponse [12:09:34]1017 (14) - 77093643461234 [12:09:34]1041 (16) - 0000000000871776 [12:09:34]1040 (4) - 139304 [12:09:34]1012 (4) - 19.08.2024 05:48 [12:09:34]1206 (1) - 0 [12:09:34]OFD Sender: Remove packet 139304 [12:09:34]ProducePacketName [12:09:34]name=ofd_packets/00139304 [12:09:34]NVStorageDeleteData [12:09:34]Write to MH i2c: 01 00 00 49 2A 73 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 07 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 07 00 49 2A 00 00 00 00 00 C6 0C 4C [12:09:34]RasterBufferAndPrint [12:09:34]line [12:09:34]line [12:09:34]line [12:09:34]line [12:09:34]line [12:09:34]written 0, free lines is 3276 [12:09:34]MH_Cut [12:09:34]Write to MH i2c: D1 01 00 50 2A 01 4C [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: D1 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: D1 01 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: D1 01 00 50 2A 00 4B [12:09:34]Write to MH i2c: 01 00 00 51 2A 7B [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:35]OFD Sender: No OFD packet to send [12:09:35]*** Cut start [12:09:35]*** Partial cut [12:09:35]*** CUTSNS_PIN = 1 [12:09:35]*** CUTSNS_PIN = 0 [12:09:35]*** Brake cut motor [12:09:36]Read from MH i2c: 01 [12:09:36]MH_I2C_Read... [12:09:36]*** Stop cut motor [12:09:36]*** Cut end [12:09:36]Read from MH i2c: 01 07 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: 01 07 00 51 2A 00 00 00 00 00 FF 0F 90 [12:09:36]process_action close_receipt done [12:09:36]requested_data is exist [12:09:36]produce_requested_data [12:09:36]requested_item fm.sn is exist - process it [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 11 00 00 [12:09:36]Write to MH i2c: E2 08 00 52 2A 80 11 00 00 00 00 00 00 F6 [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 17 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 17 00 52 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [12:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:09:36]wFMCommunicate OK [12:09:36]requested_item fd.num is exist - process it [12:09:36]SAM_PROTO_GetFieldsCounters [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 13 00 00 [12:09:36]Write to MH i2c: E2 08 00 53 2A 80 13 00 00 00 00 00 00 F9 [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 62 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 62 00 53 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 28 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:09:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 28 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:36]wFMCommunicate OK [12:09:36]SAM_PROTO_GetFieldsCounters done [12:09:36]requested_item shift.num is exist - process it [12:09:36]requested_item shift.opened is exist - process it [12:09:36]req_shift_opened [12:09:36]FM_GetShiftState [12:09:36]SAM_PROTO_GetShiftState [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 13 01 00 [12:09:36]Write to MH i2c: E2 08 00 54 2A 80 13 01 00 00 00 00 00 FB [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 0E 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 0E 00 54 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B2 [12:09:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:09:36]wFMCommunicate OK [12:09:36]SAM_PROTO_GetShiftState done [12:09:36]FM_GetShiftState done [12:09:36]req_shift_opened done [12:09:36]requested_item shift.open_date is exist - process it [12:09:36]req_shift_open_date [12:09:36]req_shift_open_date done [12:09:36]produce_requested_data done [12:09:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139304,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:09:36]process_action_free close_receipt [12:09:36]json_value_free [12:09:36]json_value_free done [12:09:36]process_json_proto returns [12:09:36]Send response to host [12:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139304,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:09:36]free response buf [12:09:36]execute_script done [12:09:36]execute_script returns [12:09:36]free content buf [12:09:36]Sock 7.Close socket [12:09:36]Sock 7.Thread stoped [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:16]accept exits with 9 [12:10:16]New connection [12:10:16]New thread 3067059556 created [12:10:16]Thread 3067202916 joined [12:10:16]Waiting for new connection... [12:10:16] Sock 9.Parse request [12:10:16]Sock 9.Check first char [12:10:16]Sock 9.First char is OK [12:10:16]request: POST /json_proto HTTP/1.0 [12:10:16]Method: POST [12:10:16]URL: /json_proto [12:10:16]Method is POST - this is cgi request [12:10:16]url: /json_proto [12:10:16]query_string will be loaded in cgi processing [12:10:16]execute_cgi json_proto POST (null) [12:10:16]execute_cgi path=json_proto method=POST [12:10:16]POST find Content-Length [12:10:16]Host: 172.17.45.67:8080 [12:10:16]Content-Length: 687 [12:10:16]Content-Type: application/json [12:10:16] [12:10:16]POST finish read [12:10:16]Found Content-Length = 687 [12:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:16]execute_script... [12:10: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)593146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:16]POST & json_proto [12:10:16]process_json_proto [12:10:16]json parsed OK: [12:10:16]protocol is kg_v1.0 [12:10:16]action value=close_receipt [12:10:16]process_action close_receipt [12:10:16]cmd_close_receipt [12:10:16]MH_GetDate [12:10:16]Write to MH i2c: F0 00 00 55 2A 6E [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: F0 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: F0 09 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: F0 09 00 55 2A 00 2A 36 C3 66 5F 7F 2B 66 6F [12:10:16]GetLastDocTimeStamp 1724069375 [12:10:16]current date 1724069418 [12:10:16]FM_GetShiftState [12:10:16]SAM_PROTO_GetShiftState [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 13 01 00 [12:10:16]Write to MH i2c: E2 08 00 56 2A 80 13 01 00 00 00 00 00 FD [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 0E 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 0E 00 56 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B4 [12:10:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:10:16]wFMCommunicate OK [12:10:16]SAM_PROTO_GetShiftState done [12:10:16]FM_GetShiftState done [12:10:16]opened in 1724027888 [12:10:16]opened+sec_in_day 1724114288 [12:10:16]quantity*price = 300075 [12:10:16]sum+1 = 300077 [12:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 140 19.08.2024 12:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139305 ФПД: 50342947600167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121019&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139305&fm=50342947600167&tin=02508201610067®Number=0000000000092569&sum=300000 [12:10:17]StoreToDocumentArchive [12:10:17]shift 452 fd 139305 [12:10:17]save to /storage/0452/doc_00139305 [12:10:17]save last doc name /storage/0452/doc_00139305 to /storage/kkm_last_doc_name [12:10:17]save OK [12:10:17]Clear old archive folders... [12:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:10:17]tlvbuf is 01E5E4A0 [12:10:17]SAM_PROTO_ClearQueue [12:10:17]wFMCommunicate request_size=4 [12:10:17]MH_SAM_APDU [12:10:17]CAPDU: 80 09 00 00 [12:10:17]Write to MH i2c: E2 08 00 63 2A 80 09 00 00 00 00 00 00 FF [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:17]Read from MH i2c: E2 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 03 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [12:10:17]RAPDU: 90 00 [12:10:17]wFMCommunicate OK [12:10:17]SAM_PROTO_ClearQueue done [12:10:17]KKMCreateOFDPacket [12:10:17]OFDProtocolAddRootSTLVToBuf [12:10:17]FM_MakeSignedData [12:10:17]FM_MakeSignedData [12:10:17]SAM_PROTO_SignData [12:10:17]wFMCommunicate request_size=4 [12:10:17]MH_SAM_APDU [12:10:17]CAPDU: 80 0D 01 02 [12:10:17]Write to MH i2c: E2 08 00 64 2A 80 0D 01 02 00 00 00 00 07 [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:17]Read from MH i2c: E2 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 03 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [12:10:17]RAPDU: 90 00 [12:10:17]wFMCommunicate OK [12:10:17]wFMCommunicate request_size=255 [12:10:17]MH_SAM_APDU [12:10:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 2B 36 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 20 02 00 35 04 06 00 [12:10:17]Write to MH i2c: E2 02 01 65 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 2B 36 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 20 02 00 35 04 06 00 00 00 DB [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:17]Read from MH i2c: E2 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 03 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [12:10:17]RAPDU: 90 00 [12:10:17]wFMCommunicate OK [12:10:17]wFMCommunicate request_size=11 [12:10:17]MH_SAM_APDU [12:10:17]CAPDU: 80 0D 02 02 06 2D C9 61 82 37 27 [12:10:17]Write to MH i2c: E2 0E 00 66 2A 80 0D 02 02 06 00 2D C9 61 82 37 27 00 00 4D [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:17]Read from MH i2c: E2 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 03 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 03 00 66 2A 00 90 00 04 [12:10:17]RAPDU: 90 00 [12:10:17]wFMCommunicate OK [12:10:17]wFMCommunicate request_size=4 [12:10:17]MH_SAM_APDU [12:10:17]CAPDU: 80 0D 03 02 [12:10:17]Write to MH i2c: E2 08 00 67 2A 80 0D 03 02 00 00 00 00 0C [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:17]Read from MH i2c: E2 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 0B 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 0B 00 67 2A 00 32 B7 08 6B 01 28 0E 1F 90 00 BF [12:10:17]RAPDU: 32 B7 08 6B 01 28 0E 1F 90 00 [12:10:17]wFMCommunicate OK [12:10:17]SAM_PROTO_SignData done [12:10:17]FM_MakeSignedData done [12:10:17]CreateOFDProtocolMessage [12:10:17]wFMCommunicate request_size=4 [12:10:17]MH_SAM_APDU [12:10:17]CAPDU: 80 11 00 00 [12:10:17]Write to MH i2c: E2 08 00 68 2A 80 11 00 00 00 00 00 00 0C [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:17]Read from MH i2c: E2 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 17 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: E2 17 00 68 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [12:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:10:17]wFMCommunicate OK [12:10:17]CreateOFDProtocolMessage done [12:10:17]OFDSenderStorePacket 139305 [12:10:17]StoreOFDPacket docnum=139305 [12:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 21 50 08 01 0A 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 2B 36 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 20 02 00 35 04 06 00 2D C9 61 82 37 27 32 B7 08 6B 01 28 0E 1F [12:10:17]CheckFolder [12:10:17]dirname=/storage/ofd_packets [12:10:17]CheckFolder done [12:10:17]ProducePacketName [12:10:17]name=ofd_packets/00139305 [12:10:17]NVStorageSaveData ofd_packets/00139305 [12:10:17]File name is /storage/ofd_packets/00139305 [12:10:17]Write 302 bytes [12:10:17]NVStorageSaveData done [12:10:17]OFDSenderStorePacket done [12:10:17]KKMCreateOFDPacket done [12:10:17]NVStorageSaveData kkm_last_timestamp [12:10:17]File name is /storage/kkm_last_timestamp [12:10:17]Write 4 bytes [12:10:17]NVStorageSaveData done [12:10:17]ExternCall_PrintAddStr [12:10:17]wPrintStart [12:10:17]Write to MH i2c: 01 00 00 69 2A 93 [12:10:17]Write i2c OK [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: 01 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: 01 07 00 [12:10:17]MH_I2C_Read... [12:10:17]Read from MH i2c: 01 07 00 69 2A 00 00 00 00 00 FF 0F A8 [12:10:17]RasterBufferAndPrint [12:10:17]line Счет N : (1)593146 [12:10:17]line ИНН: 02508201610067 [12:10:17]line Контрольно-Кассовый Чек [12:10:17]line ПРОДАЖА [12:10:17]line ТРК (МРК, ГНК) : 64 [12:10:17]line Товар: 2710194210 [12:10:17]line ДТ(л)-К-5 [12:10:17]line 39.380 * 76.20 [12:10:17]line = 3000.76 [12:10:17]line НДС 12% НСП 1% [12:10:17]line > о реализуемом товаре [12:10:17]line ОКРУГЛЕНИЕ: -0.76 [12:10:17]line ИТОГО: 3000.00 [12:10:17]line Внесено: 3000.00 [12:10:17]line СДАЧА: 0.00 [12:10:17]line НСП 1% : 26.55 [12:10:17]line НДС 12% : 318.66 [12:10:17]line Наличными: 3000.00 [12:10:17]line Безнал.: 0.00 [12:10:17]line Место: АЗС № 136 "Партнер Нефть" [12:10:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:10:17]line СНО: Общий режим [12:10:17]line Чек 140 19.08.2024 12:10 [12:10:17]line Смена: 452 ФФД: 1.0 [12:10:17]line ЗНМ: 0300000067 [12:10:17]line РНМ: 0000000000092569 [12:10:17]line Версия ККМ: 001 [12:10:17]line ФМ: 0000000000871776 [12:10:17]line ФД: 139305 [12:10:17]line ФПД: 50342947600167 [12:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121019&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139305&fm=50342947600167&tin=02508201610067®Number=0000000000092569&sum=300000 [12:10:18]OFD Sender: Processing packet 139305 [packets to send 137, broken 136] [12:10:18]ProducePacketName [12:10:18]name=ofd_packets/00139305 [12:10:18]OFD Sender: To server: pG, [12:10:18]CommunicateWithHost lk.salyk.kg:30040 [12:10:18]ConnectInit lk.salyk.kg [12:10:18]written 0, free lines is 4095 [12:10:18]Connected sock=10 [12:10: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 37 36 10 01 00 00 21 50 08 01 0A 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 2B 36 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 20 02 00 35 04 06 00 2D C9 61 82 37 27 32 B7 08 6B 01 28 0E 1F [12:10:18]Write to MH i2c: 01 00 00 94 2A BE [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: 01 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: 01 07 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: 01 07 00 94 2A 00 00 00 00 00 DF 0C B0 [12:10:18]RasterBufferAndPrint [12:10:18]line [12:10:18]line [12:10:18]line [12:10:18]line [12:10:18]line [12:10: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 37 36 4F 00 00 00 23 A6 47 00 29 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 37 36 10 04 04 00 29 20 02 00 F4 03 04 00 C1 DC C2 66 B6 04 01 00 00 43 4A 80 69 6A A5 77 37 [12:10:18]CommunicateWithHost err = 0 [12:10:18]CheckOFDResponse [12:10:18]1017 (14) - 77093643461234 [12:10:18]1041 (16) - 0000000000871776 [12:10:18]1040 (4) - 139305 [12:10:18]1012 (4) - 19.08.2024 05:48 [12:10:18]1206 (1) - 0 [12:10:18]OFD Sender: Remove packet 139305 [12:10:18]ProducePacketName [12:10:18]name=ofd_packets/00139305 [12:10:18]NVStorageDeleteData [12:10:18]written 0, free lines is 3319 [12:10:18]MH_Cut [12:10:18]Write to MH i2c: D1 01 00 9B 2A 01 97 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: D1 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: D1 01 00 [12:10:18]MH_I2C_Read... [12:10:18]Read from MH i2c: D1 01 00 9B 2A 00 96 [12:10:18]Write to MH i2c: 01 00 00 9C 2A C6 [12:10:18]Write i2c OK [12:10:18]MH_I2C_Read... [12:10:19]OFD Sender: No OFD packet to send [12:10:19]*** Cut start [12:10:19]*** Partial cut [12:10:19]*** CUTSNS_PIN = 1 [12:10:19]*** CUTSNS_PIN = 0 [12:10:19]*** Brake cut motor [12:10:20]Read from MH i2c: 01 [12:10:20]MH_I2C_Read... [12:10:20]*** Stop cut motor [12:10:20]*** Cut end [12:10:20]Read from MH i2c: 01 07 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: 01 07 00 9C 2A 00 00 00 00 00 FF 0F DB [12:10:20]process_action close_receipt done [12:10:20]requested_data is exist [12:10:20]produce_requested_data [12:10:20]requested_item fm.sn is exist - process it [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 11 00 00 [12:10:20]Write to MH i2c: E2 08 00 9D 2A 80 11 00 00 00 00 00 00 41 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 17 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 17 00 9D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [12:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:10:20]wFMCommunicate OK [12:10:20]requested_item fd.num is exist - process it [12:10:20]SAM_PROTO_GetFieldsCounters [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 13 00 00 [12:10:20]Write to MH i2c: E2 08 00 9E 2A 80 13 00 00 00 00 00 00 44 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 62 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 62 00 9E 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 29 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [12:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 29 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:20]wFMCommunicate OK [12:10:20]SAM_PROTO_GetFieldsCounters done [12:10:20]requested_item shift.num is exist - process it [12:10:20]requested_item shift.opened is exist - process it [12:10:20]req_shift_opened [12:10:20]FM_GetShiftState [12:10:20]SAM_PROTO_GetShiftState [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 13 01 00 [12:10:20]Write to MH i2c: E2 08 00 9F 2A 80 13 01 00 00 00 00 00 46 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0E 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0E 00 9F 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FD [12:10:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:10:20]wFMCommunicate OK [12:10:20]SAM_PROTO_GetShiftState done [12:10:20]FM_GetShiftState done [12:10:20]req_shift_opened done [12:10:20]requested_item shift.open_date is exist - process it [12:10:20]req_shift_open_date [12:10:20]req_shift_open_date done [12:10:20]produce_requested_data done [12:10:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139305,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:10:20]process_action_free close_receipt [12:10:20]json_value_free [12:10:20]json_value_free done [12:10:20]process_json_proto returns [12:10:20]Send response to host [12:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139305,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:10:20]free response buf [12:10:20]execute_script done [12:10:20]execute_script returns [12:10:20]free content buf [12:10:20]Sock 9.Close socket [12:10:20]Sock 9.Thread stoped [12:10:24]accept exits with 7 [12:10:24]New connection [12:10:24]New thread 3067202916 created [12:10:24]Thread 3067059556 joined [12:10:24]Waiting for new connection... [12:10:24] Sock 7.Parse request [12:10:24]Sock 7.Check first char [12:10:24]Sock 7.First char is OK [12:10:24]request: POST /json_proto HTTP/1.0 [12:10:24]Method: POST [12:10:24]URL: /json_proto [12:10:24]Method is POST - this is cgi request [12:10:24]url: /json_proto [12:10:24]query_string will be loaded in cgi processing [12:10:24]execute_cgi json_proto POST (null) [12:10:24]execute_cgi path=json_proto method=POST [12:10:24]POST find Content-Length [12:10:24]Host: 172.17.45.67:8080 [12:10:24]Content-Length: 658 [12:10:24]Content-Type: application/json [12:10:24] [12:10:24]POST finish read [12:10:24]Found Content-Length = 658 [12:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:24]execute_script... [12:10: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)593147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:24]POST & json_proto [12:10:24]process_json_proto [12:10:24]json parsed OK: [12:10:24]protocol is kg_v1.0 [12:10:24]action value=close_receipt [12:10:24]process_action close_receipt [12:10:24]cmd_close_receipt [12:10:24]MH_GetDate [12:10:24]Write to MH i2c: F0 00 00 A0 2A B9 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: F0 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: F0 09 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: F0 09 00 A0 2A 00 32 36 C3 66 5F 7F 2B 66 C2 [12:10:24]GetLastDocTimeStamp 1724069419 [12:10:24]current date 1724069426 [12:10:24]FM_GetShiftState [12:10:24]SAM_PROTO_GetShiftState [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 13 01 00 [12:10:24]Write to MH i2c: E2 08 00 A1 2A 80 13 01 00 00 00 00 00 48 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0E 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0E 00 A1 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FF [12:10:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:10:24]wFMCommunicate OK [12:10:24]SAM_PROTO_GetShiftState done [12:10:24]FM_GetShiftState done [12:10:24]opened in 1724027888 [12:10:24]opened+sec_in_day 1724114288 [12:10:24]quantity*price = 50017 [12:10:24]sum+1 = 50019 [12:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 141 19.08.2024 12:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139306 ФПД: 246497012215958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121027&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139306&fm=246497012215958&tin=02508201610067®Number=0000000000092569&sum=50000 [12:10:25]StoreToDocumentArchive [12:10:25]shift 452 fd 139306 [12:10:25]save to /storage/0452/doc_00139306 [12:10:25]save last doc name /storage/0452/doc_00139306 to /storage/kkm_last_doc_name [12:10:25]save OK [12:10:25]Clear old archive folders... [12:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:10:25]tlvbuf is B6EFE810 [12:10:25]SAM_PROTO_ClearQueue [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 09 00 00 [12:10:25]Write to MH i2c: E2 08 00 AE 2A 80 09 00 00 00 00 00 00 4A [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [12:10:25]RAPDU: 90 00 [12:10:25]wFMCommunicate OK [12:10:25]SAM_PROTO_ClearQueue done [12:10:25]KKMCreateOFDPacket [12:10:25]OFDProtocolAddRootSTLVToBuf [12:10:25]FM_MakeSignedData [12:10:25]FM_MakeSignedData [12:10:25]SAM_PROTO_SignData [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 0D 01 02 [12:10:25]Write to MH i2c: E2 08 00 AF 2A 80 0D 01 02 00 00 00 00 52 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [12:10:25]RAPDU: 90 00 [12:10:25]wFMCommunicate OK [12:10:25]wFMCommunicate request_size=253 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 33 36 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 20 02 00 35 04 06 00 E0 30 0E D9 F0 96 [12:10:25]Write to MH i2c: E2 00 01 B0 2A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 33 36 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 20 02 00 35 04 06 00 E0 30 0E D9 F0 96 00 00 18 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [12:10:25]RAPDU: 90 00 [12:10:25]wFMCommunicate OK [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 0D 03 02 [12:10:25]Write to MH i2c: E2 08 00 B1 2A 80 0D 03 02 00 00 00 00 56 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 0B 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 0B 00 B1 2A 00 87 CE 84 C7 21 A7 65 A7 90 00 CB [12:10:25]RAPDU: 87 CE 84 C7 21 A7 65 A7 90 00 [12:10:25]wFMCommunicate OK [12:10:25]SAM_PROTO_SignData done [12:10:25]FM_MakeSignedData done [12:10:25]CreateOFDProtocolMessage [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 11 00 00 [12:10:25]Write to MH i2c: E2 08 00 B2 2A 80 11 00 00 00 00 00 00 56 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 17 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 17 00 B2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AD [12:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:10:25]wFMCommunicate OK [12:10:25]CreateOFDProtocolMessage done [12:10:25]OFDSenderStorePacket 139306 [12:10:25]StoreOFDPacket docnum=139306 [12:10:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 20 F4 00 01 DD 39 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 33 36 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 20 02 00 35 04 06 00 E0 30 0E D9 F0 96 87 CE 84 C7 21 A7 65 A7 [12:10:25]CheckFolder [12:10:25]dirname=/storage/ofd_packets [12:10:25]CheckFolder done [12:10:25]ProducePacketName [12:10:25]name=ofd_packets/00139306 [12:10:25]NVStorageSaveData ofd_packets/00139306 [12:10:25]File name is /storage/ofd_packets/00139306 [12:10:25]Write 294 bytes [12:10:25]NVStorageSaveData done [12:10:25]OFDSenderStorePacket done [12:10:25]KKMCreateOFDPacket done [12:10:25]NVStorageSaveData kkm_last_timestamp [12:10:25]File name is /storage/kkm_last_timestamp [12:10:25]Write 4 bytes [12:10:25]NVStorageSaveData done [12:10:25]ExternCall_PrintAddStr [12:10:25]wPrintStart [12:10:25]Write to MH i2c: 01 00 00 B3 2A DD [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: 01 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: 01 07 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: 01 07 00 B3 2A 00 00 00 00 00 FF 0F F2 [12:10:25]RasterBufferAndPrint [12:10:25]line Счет N : (1)593147 [12:10:25]line ИНН: 02508201610067 [12:10:25]line Контрольно-Кассовый Чек [12:10:25]line ПРОДАЖА [12:10:25]line ТРК (МРК, ГНК) : 43 [12:10:25]line Товар: 2710124130 [12:10:25]line SU-92 [12:10:25]line 7.270 * 68.80 [12:10:25]line = 500.18 [12:10:25]line НДС 12% НСП 1% [12:10:25]line > о реализуемом товаре [12:10:25]line ОКРУГЛЕНИЕ: -0.18 [12:10:25]line ИТОГО: 500.00 [12:10:25]line Внесено: 500.00 [12:10:25]line СДАЧА: 0.00 [12:10:25]line НСП 1% : 4.43 [12:10:25]line НДС 12% : 53.12 [12:10:25]line Наличными: 500.00 [12:10:25]line Безнал.: 0.00 [12:10:25]line Место: АЗС № 136 "Партнер Нефть" [12:10:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:10:25]line СНО: Общий режим [12:10:25]line Чек 141 19.08.2024 12:10 [12:10:25]line Смена: 452 ФФД: 1.0 [12:10:25]line ЗНМ: 0300000067 [12:10:25]line РНМ: 0000000000092569 [12:10:25]line Версия ККМ: 001 [12:10:25]line ФМ: 0000000000871776 [12:10:25]line ФД: 139306 [12:10:25]line ФПД: 246497012215958 [12:10:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121027&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139306&fm=246497012215958&tin=02508201610067®Number=0000000000092569&sum=50000 [12:10:25]written 0, free lines is 4095 [12:10:26]OFD Sender: Processing packet 139306 [packets to send 137, broken 136] [12:10:26]ProducePacketName [12:10:26]name=ofd_packets/00139306 [12:10:26]OFD Sender: To server: pG, [12:10:26]CommunicateWithHost lk.salyk.kg:30040 [12:10:26]ConnectInit lk.salyk.kg [12:10:26]Connected sock=11 [12:10: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 37 36 08 01 00 00 20 F4 00 01 DD 39 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 33 36 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 20 02 00 35 04 06 00 E0 30 0E D9 F0 96 87 CE 84 C7 21 A7 65 A7 [12:10: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 37 36 4F 00 00 00 24 91 47 00 F6 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 37 36 10 04 04 00 2A 20 02 00 F4 03 04 00 C8 DC C2 66 B6 04 01 00 00 F2 18 42 7B 7D 66 EE 4C [12:10:26]CommunicateWithHost err = 0 [12:10:26]CheckOFDResponse [12:10:26]1017 (14) - 77093643461234 [12:10:26]1041 (16) - 0000000000871776 [12:10:26]1040 (4) - 139306 [12:10:26]1012 (4) - 19.08.2024 05:48 [12:10:26]1206 (1) - 0 [12:10:26]OFD Sender: Remove packet 139306 [12:10:26]ProducePacketName [12:10:26]name=ofd_packets/00139306 [12:10:26]NVStorageDeleteData [12:10:26]Write to MH i2c: 01 00 00 DE 2A 08 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 07 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 07 00 DE 2A 00 00 00 00 00 D4 0C EF [12:10:26]RasterBufferAndPrint [12:10:26]line [12:10:26]line [12:10:26]line [12:10:26]line [12:10:26]line [12:10:26]written 0, free lines is 3295 [12:10:26]MH_Cut [12:10:26]Write to MH i2c: D1 01 00 E5 2A 01 E1 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: D1 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: D1 01 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: D1 01 00 E5 2A 00 E0 [12:10:26]Write to MH i2c: 01 00 00 E6 2A 10 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]OFD Sender: No OFD packet to send [12:10:27]*** Cut start [12:10:27]*** Partial cut [12:10:27]*** CUTSNS_PIN = 1 [12:10:27]*** CUTSNS_PIN = 0 [12:10:27]*** Brake cut motor [12:10:27]Read from MH i2c: 01 [12:10:27]MH_I2C_Read... [12:10:27]*** Stop cut motor [12:10:27]*** Cut end [12:10:27]Read from MH i2c: 01 07 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 07 00 E6 2A 00 00 00 00 00 FF 0F 25 [12:10:27]process_action close_receipt done [12:10:27]requested_data is exist [12:10:27]produce_requested_data [12:10:27]requested_item fm.sn is exist - process it [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 11 00 00 [12:10:27]Write to MH i2c: E2 08 00 E7 2A 80 11 00 00 00 00 00 00 8B [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 17 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 17 00 E7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [12:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:10:27]wFMCommunicate OK [12:10:27]requested_item fd.num is exist - process it [12:10:27]SAM_PROTO_GetFieldsCounters [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 13 00 00 [12:10:27]Write to MH i2c: E2 08 00 E8 2A 80 13 00 00 00 00 00 00 8E [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 62 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 62 00 E8 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [12:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:27]wFMCommunicate OK [12:10:27]SAM_PROTO_GetFieldsCounters done [12:10:27]requested_item shift.num is exist - process it [12:10:27]requested_item shift.opened is exist - process it [12:10:27]req_shift_opened [12:10:27]FM_GetShiftState [12:10:27]SAM_PROTO_GetShiftState [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 13 01 00 [12:10:27]Write to MH i2c: E2 08 00 E9 2A 80 13 01 00 00 00 00 00 90 [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 0E 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 0E 00 E9 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 47 [12:10:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:10:28]wFMCommunicate OK [12:10:28]SAM_PROTO_GetShiftState done [12:10:28]FM_GetShiftState done [12:10:28]req_shift_opened done [12:10:28]requested_item shift.open_date is exist - process it [12:10:28]req_shift_open_date [12:10:28]req_shift_open_date done [12:10:28]produce_requested_data done [12:10:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139306,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:10:28]process_action_free close_receipt [12:10:28]json_value_free [12:10:28]json_value_free done [12:10:28]process_json_proto returns [12:10:28]Send response to host [12:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139306,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:10:28]free response buf [12:10:28]execute_script done [12:10:28]execute_script returns [12:10:28]free content buf [12:10:28]Sock 7.Close socket [12:10:28]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11: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 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 9942893+1714126687=1724069580 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 CD 36 C3 66 5F 7F 2B 66 9A [12:13:01]Current date/time: 19.08.2024 12:13 [12:13:01]FM_Init [12:13:01]wFMConnect [12:13:01]MH_SAM_On [12:13:01]Write to MH i2c: E0 00 00 08 00 E7 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_init finished! [12:13:01]*** atr: [12:13:01]*** 0F 3B D5 18 FF 81 91 FE [12:13:01]*** 1F C3 80 73 C8 21 10 0A [12:13:01]*** 00 00 00 00 00 00 00 00 [12:13:01]*** 00 00 00 00 00 00 00 00 [12:13:01]*** 00 00 00 00 00 00 00 00 [12:13:01]*** 00 00 00 00 00 00 00 00 [12:13:01]*** 00 00 00 00 00 00 00 00 [12:13:01]*** 00 00 00 00 00 00 00 00 [12:13:01]Read from MH i2c: E0 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E0 10 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:13:01]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:13:01]wFMCommunicate request_size=10 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:13:01]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:13:01]RAPDU: 90 00 [12:13:01]wFMCommunicate OK [12:13:01]wFMCommunicate request_size=4 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 11 00 00 [12:13:01]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 17 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [12:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:13:01]wFMCommunicate OK [12:13:01]Detected FM SN is 0000000000871776 [12:13:01]Stored FM SN is 0000000000871776 [12:13:01]wFMCommunicate request_size=9 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 16 00 00 04 3F B1 00 00 [12:13:01]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:13:01]RAPDU: 90 00 [12:13:01]wFMCommunicate OK [12:13:01]FM PIN OK [12:13:01]wFMCommunicate request_size=8 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 14 04 00 03 02 00 01 [12:13:01]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:13:01]RAPDU: 90 00 [12:13:01]wFMCommunicate OK [12:13:01]wFMCommunicate request_size=13 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:13:01]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:13:01]RAPDU: 90 00 [12:13:01]wFMCommunicate OK [12:13:01]wFMCommunicate request_size=4 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 11 00 00 [12:13:01]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 17 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [12:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:13:01]wFMCommunicate OK [12:13:01]DocumentArchiveInit [12:13:01]Start Httpd... [12:13:01]Httpd thread 3067104612 created [12:13:01]Write to MH i2c: 01 00 00 0F 00 0F [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: 01 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: 01 07 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:13:01]MH Int Process started [12:13:01]Allocated Socket 7 [12:13:01]Bind OK [12:13:01]Listen OK [12:13:01]httpd running on port 8080 [12:13:01]Waiting for new connection... [12:13:01]OFD Sender: No OFD packet to send [12:13:03]accept exits with 8 [12:13:03]New connection [12:13:03]New thread 3066817892 created [12:13:03]Waiting for new connection... [12:13:03] Sock 8.Parse request [12:13:03]Sock 8.Check first char [12:13:03]Sock 8.First char is OK [12:13:03]request: POST /json_proto HTTP/1.0 [12:13:03]Method: POST [12:13:03]URL: /json_proto [12:13:03]Method is POST - this is cgi request [12:13:03]url: /json_proto [12:13:03]query_string will be loaded in cgi processing [12:13:03]execute_cgi json_proto POST (null) [12:13:03]execute_cgi path=json_proto method=POST [12:13:03]POST find Content-Length [12:13:03]Host: 172.17.45.67:8080 [12:13:03]Content-Length: 215 [12:13:03]Content-Type: application/json [12:13:03] [12:13:03]POST finish read [12:13:03]Found Content-Length = 215 [12:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:03]execute_script... [12:13:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:03]POST & json_proto [12:13:03]process_json_proto [12:13:03]json parsed OK: [12:13:03]protocol is kg_v1.0 [12:13:03]action value=get_value [12:13:03]process_action get_value [12:13:03]cmd_get_value [12:13:03]process_action get_value done [12:13:03]requested_data is exist [12:13:03]produce_requested_data [12:13:03]requested_item kkm.sn is exist - process it [12:13:03]requested_item kkm.ver is exist - process it [12:13:03]requested_item fm.sn is exist - process it [12:13:03]wFMCommunicate request_size=4 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 11 00 00 [12:13:03]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:03]Read from MH i2c: E2 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 17 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [12:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:13:03]wFMCommunicate OK [12:13:03]requested_item fd.num is exist - process it [12:13:03]SAM_PROTO_GetFieldsCounters [12:13:03]wFMCommunicate request_size=4 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 13 00 00 [12:13:03]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:03]Read from MH i2c: E2 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 62 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [12:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:03]wFMCommunicate OK [12:13:03]SAM_PROTO_GetFieldsCounters done [12:13:03]requested_item shift.num is exist - process it [12:13:03]requested_item shift.opened is exist - process it [12:13:03]req_shift_opened [12:13:03]FM_GetShiftState [12:13:03]SAM_PROTO_GetShiftState [12:13:03]wFMCommunicate request_size=4 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 13 01 00 [12:13:03]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:03]Read from MH i2c: E2 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 0E 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 46 [12:13:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:13:03]wFMCommunicate OK [12:13:03]SAM_PROTO_GetShiftState done [12:13:03]FM_GetShiftState done [12:13:03]req_shift_opened done [12:13:03]requested_item shift.open_date is exist - process it [12:13:03]req_shift_open_date [12:13:03]req_shift_open_date done [12:13:03]produce_requested_data done [12:13:03]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139306,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:13:03]process_action_free get_value [12:13:03]json_value_free [12:13:03]json_value_free done [12:13:03]process_json_proto returns [12:13:03]Send response to host [12:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139306,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:13:03]free response buf [12:13:03]execute_script done [12:13:03]execute_script returns [12:13:03]free content buf [12:13:03]Sock 8.Close socket [12:13:03]Sock 8.Thread stoped [12:13:03]accept exits with 6 [12:13:03]New connection [12:13:03]New thread 3066674532 created [12:13:03]Thread 3066817892 joined [12:13:03]Waiting for new connection... [12:13:03] Sock 6.Parse request [12:13:03]Sock 6.Check first char [12:13:03]Sock 6.First char is OK [12:13:03]request: POST /json_proto HTTP/1.0 [12:13:03]Method: POST [12:13:03]URL: /json_proto [12:13:03]Method is POST - this is cgi request [12:13:03]url: /json_proto [12:13:03]query_string will be loaded in cgi processing [12:13:03]execute_cgi json_proto POST (null) [12:13:03]execute_cgi path=json_proto method=POST [12:13:03]POST find Content-Length [12:13:03]Host: 172.17.45.67:8080 [12:13:03]Content-Length: 331 [12:13:03]Content-Type: application/json [12:13:03] [12:13:03]POST finish read [12:13:03]Found Content-Length = 331 [12:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:13:03]execute_script... [12:13:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:13:03]POST & json_proto [12:13:03]process_json_proto [12:13:03]json parsed OK: [12:13:03]protocol is kg_v1.0 [12:13:03]action value=get_value [12:13:03]process_action get_value [12:13:03]cmd_get_value [12:13:03]process_action get_value done [12:13:03]requested_data is exist [12:13:03]produce_requested_data [12:13:03]requested_item fm.sale.total is exist - process it [12:13:03]SAM_PROTO_GetFMData [12:13:03]wFMCommunicate request_size=4 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 13 03 00 [12:13:03]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:13:04]Read from MH i2c: E2 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 FD 00 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 A1 1C 02 00 69 04 A3 00 6F 04 04 00 20 1C 02 00 B1 04 05 00 AF 22 3A 39 02 70 04 05 00 8C D6 2E EF 01 72 04 04 00 23 4C 0B 4A 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 34 28 7A 3C 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 B4 0E 0A 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 70 [12:13:04]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 A1 1C 02 00 69 04 A3 00 6F 04 04 00 20 1C 02 00 B1 04 05 00 AF 22 3A 39 02 70 04 05 00 8C D6 2E EF 01 72 04 04 00 23 4C 0B 4A 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 34 28 7A 3C 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 B4 0E 0A 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [12:13:04]wFMCommunicate OK [12:13:04]wFMCommunicate request_size=4 [12:13:04]MH_SAM_APDU [12:13:04]CAPDU: 80 17 00 00 [12:13:04]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:13:04]Write i2c OK [12:13:04]MH_I2C_Read... [12:13:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:04]Read from MH i2c: E2 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 FD 00 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 99 [12:13:04]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [12:13:04]wFMCommunicate OK [12:13:04]wFMCommunicate request_size=4 [12:13:04]MH_SAM_APDU [12:13:04]CAPDU: 80 17 00 00 [12:13:04]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:13:04]Write i2c OK [12:13:04]MH_I2C_Read... [12:13:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:04]Read from MH i2c: E2 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 FD 00 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [12:13:04]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [12:13:04]wFMCommunicate OK [12:13:04]wFMCommunicate request_size=4 [12:13:04]MH_SAM_APDU [12:13:04]CAPDU: 80 17 00 00 [12:13:04]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:13:04]Write i2c OK [12:13:04]MH_I2C_Read... [12:13:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 FD 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [12:13:05]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:13:05]wFMCommunicate OK [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 17 00 00 [12:13:05]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 E1 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [12:13:05]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:13:05]wFMCommunicate OK [12:13:05]SAM_PROTO_GetFMData done [12:13:05]requested_item fm.sale_refund.total is exist - process it [12:13:05]requested_item fm.buy.total is exist - process it [12:13:05]requested_item shift.sale.total is exist - process it [12:13:05]SAM_PROTO_GetShiftData [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 13 02 00 [12:13:05]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 FD 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 8D 00 00 00 69 04 9C 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 C8 83 7C 70 04 03 00 F8 34 73 72 04 03 00 D0 4E 09 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 91 3A 0D 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 3B 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 3B [12:13:05]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8D 00 00 00 69 04 9C 00 6F 04 04 00 8D 00 00 00 B1 04 03 00 C8 83 7C 70 04 03 00 F8 34 73 72 04 03 00 D0 4E 09 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 91 3A 0D 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 3B 1A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [12:13:05]wFMCommunicate OK [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 17 00 00 [12:13:05]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:06]Read from MH i2c: E2 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 FD 00 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [12:13:06]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [12:13:06]wFMCommunicate OK [12:13:06]wFMCommunicate request_size=4 [12:13:06]MH_SAM_APDU [12:13:06]CAPDU: 80 17 00 00 [12:13:06]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:13:06]Write i2c OK [12:13:06]MH_I2C_Read... [12:13:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:06]Read from MH i2c: E2 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 FD 00 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [12:13:06]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [12:13:06]wFMCommunicate OK [12:13:06]wFMCommunicate request_size=4 [12:13:06]MH_SAM_APDU [12:13:06]CAPDU: 80 17 00 00 [12:13:06]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:13:06]Write i2c OK [12:13:06]MH_I2C_Read... [12:13:06]OFD Sender: No OFD packet to send [12:13:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:13:06]Read from MH i2c: E2 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 FD 00 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [12:13:06]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [12:13:06]wFMCommunicate OK [12:13:06]wFMCommunicate request_size=4 [12:13:06]MH_SAM_APDU [12:13:06]CAPDU: 80 17 00 00 [12:13:06]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:13:06]Write i2c OK [12:13:06]MH_I2C_Read... [12:13:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [12:13:07]Read from MH i2c: E2 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 CC 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [12:13:07]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:13:07]wFMCommunicate OK [12:13:07]SAM_PROTO_GetShiftData done [12:13:07]requested_item shift.sale.total_cash is exist - process it [12:13:07]requested_item shift.sale_refund.total is exist - process it [12:13:07]requested_item shift.sale_refund.total_cash is exist - process it [12:13:07]requested_item shift.buy.total is exist - process it [12:13:07]requested_item shift.buy.total_cash is exist - process it [12:13:07]produce_requested_data done [12:13:07]produce_requested_data return {"fm.sale.total":95500458.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":81602.00,"shift.sale.total_cash":75502.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} [12:13:07]process_action_free get_value [12:13:07]json_value_free [12:13:07]json_value_free done [12:13:07]process_json_proto returns [12:13:07]Send response to host [12:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95500458.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":81602.00,"shift.sale.total_cash":75502.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}}} [12:13:07]free response buf [12:13:07]execute_script done [12:13:07]execute_script returns [12:13:07]free content buf [12:13:07]Sock 6.Close socket [12:13:07]Sock 6.Thread stoped [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:12]accept exits with 8 [12:14:12]New connection [12:14:12]New thread 3066817892 created [12:14:12]Thread 3066674532 joined [12:14:12]Waiting for new connection... [12:14:12] Sock 8.Parse request [12:14:12]Sock 8.Check first char [12:14:12]Sock 8.First char is OK [12:14:12]request: POST /json_proto HTTP/1.0 [12:14:12]Method: POST [12:14:12]URL: /json_proto [12:14:12]Method is POST - this is cgi request [12:14:12]url: /json_proto [12:14:12]query_string will be loaded in cgi processing [12:14:12]execute_cgi json_proto POST (null) [12:14:12]execute_cgi path=json_proto method=POST [12:14:12]POST find Content-Length [12:14:12]Host: 172.17.45.67:8080 [12:14:12]Content-Length: 792 [12:14:12]Content-Type: application/json [12:14:12] [12:14:12]POST finish read [12:14:12]Found Content-Length = 792 [12:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:12]execute_script... [12: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)593148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:12]POST & json_proto [12:14:12]process_json_proto [12:14:12]json parsed OK: [12:14:12]protocol is kg_v1.0 [12:14:12]action value=close_receipt [12:14:12]process_action close_receipt [12:14:12]cmd_close_receipt [12:14:12]MH_GetDate [12:14:12]Write to MH i2c: F0 00 00 1D 00 0C [12:14:12]Write i2c OK [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: F0 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: F0 09 00 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: F0 09 00 1D 00 00 15 37 C3 66 5F 7F 2B 66 F9 [12:14:12]GetLastDocTimeStamp 1724069427 [12:14:12]current date 1724069653 [12:14:12]FM_GetShiftState [12:14:12]SAM_PROTO_GetShiftState [12:14:12]wFMCommunicate request_size=4 [12:14:12]MH_SAM_APDU [12:14:12]CAPDU: 80 13 01 00 [12:14:12]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:14:12]Write i2c OK [12:14:12]MH_I2C_Read... [12:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:12]Read from MH i2c: E2 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: E2 0E 00 [12:14:12]MH_I2C_Read... [12:14:12]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 52 [12:14:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:14:12]wFMCommunicate OK [12:14:12]SAM_PROTO_GetShiftState done [12:14:12]FM_GetShiftState done [12:14:12]opened in 1724027888 [12:14:12]opened+sec_in_day 1724114288 [12:14:12]quantity*price = 0 [12:14:12]sum+1 = 1 [12:14:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 142 19.08.2024 12:14 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 139307 ФПД: 192213210008486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121413&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139307&fm=192213210008486&tin=02508201610067®Number=0000000000092569&sum=0 [12:14:13]StoreToDocumentArchive [12:14:13]shift 452 fd 139307 [12:14:13]save to /storage/0452/doc_00139307 [12:14:13]save last doc name /storage/0452/doc_00139307 to /storage/kkm_last_doc_name [12:14:13]save OK [12:14:13]Clear old archive folders... [12:14:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:13]tlvbuf is 011F9AF0 [12:14:13]SAM_PROTO_ClearQueue [12:14:13]wFMCommunicate request_size=4 [12:14:13]MH_SAM_APDU [12:14:13]CAPDU: 80 09 00 00 [12:14:13]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:14:13]Write i2c OK [12:14:13]MH_I2C_Read... [12:14:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:13]Read from MH i2c: E2 [12:14:13]MH_I2C_Read... [12:14:13]Read from MH i2c: E2 03 00 [12:14:13]MH_I2C_Read... [12:14:13]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:14:13]RAPDU: 90 00 [12:14:13]wFMCommunicate OK [12:14:13]SAM_PROTO_ClearQueue done [12:14:13]KKMCreateOFDPacket [12:14:13]OFDProtocolAddRootSTLVToBuf [12:14:13]FM_MakeSignedData [12:14:13]FM_MakeSignedData [12:14:13]SAM_PROTO_SignData [12:14:13]wFMCommunicate request_size=4 [12:14:13]MH_SAM_APDU [12:14:13]CAPDU: 80 0D 01 02 [12:14:13]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:14:13]Write i2c OK [12:14:13]MH_I2C_Read... [12:14:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:13]Read from MH i2c: E2 [12:14:13]MH_I2C_Read... [12:14:13]Read from MH i2c: E2 03 00 [12:14:13]MH_I2C_Read... [12:14:13]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:14:13]RAPDU: 90 00 [12:14:13]wFMCommunicate OK [12:14:13]wFMCommunicate request_size=255 [12:14:13]MH_SAM_APDU [12: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 98 3A 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 8E 00 00 00 F4 03 04 00 15 37 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 20 02 00 35 04 06 00 AE [12:14:13]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 8E 00 00 00 F4 03 04 00 15 37 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 20 02 00 35 04 06 00 AE 00 00 4E [12:14:13]Write i2c OK [12:14:13]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:14:14]RAPDU: 90 00 [12:14:14]wFMCommunicate OK [12:14:14]wFMCommunicate request_size=10 [12:14:14]MH_SAM_APDU [12:14:14]CAPDU: 80 0D 02 02 05 D1 20 1A 8B A6 [12:14:14]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 D1 20 1A 8B A6 00 00 EE [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:14:14]RAPDU: 90 00 [12:14:14]wFMCommunicate OK [12:14:14]wFMCommunicate request_size=4 [12:14:14]MH_SAM_APDU [12:14:14]CAPDU: 80 0D 03 02 [12:14:14]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 0B 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 0B 00 2F 00 00 1A FB 2E 31 80 CA EF F8 90 00 50 [12:14:14]RAPDU: 1A FB 2E 31 80 CA EF F8 90 00 [12:14:14]wFMCommunicate OK [12:14:14]SAM_PROTO_SignData done [12:14:14]FM_MakeSignedData done [12:14:14]CreateOFDProtocolMessage [12:14:14]wFMCommunicate request_size=4 [12:14:14]MH_SAM_APDU [12:14:14]CAPDU: 80 11 00 00 [12:14:14]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 17 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [12:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:14:14]wFMCommunicate OK [12:14:14]CreateOFDProtocolMessage done [12:14:14]OFDSenderStorePacket 139307 [12:14:14]StoreOFDPacket docnum=139307 [12:14:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4F D8 07 01 75 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 8E 00 00 00 F4 03 04 00 15 37 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 20 02 00 35 04 06 00 AE D1 20 1A 8B A6 1A FB 2E 31 80 CA EF F8 [12:14:14]CheckFolder [12:14:14]dirname=/storage/ofd_packets [12:14:14]CheckFolder done [12:14:14]ProducePacketName [12:14:14]name=ofd_packets/00139307 [12:14:14]NVStorageSaveData ofd_packets/00139307 [12:14:14]File name is /storage/ofd_packets/00139307 [12:14:14]Write 301 bytes [12:14:14]NVStorageSaveData done [12:14:14]OFDSenderStorePacket done [12:14:14]KKMCreateOFDPacket done [12:14:14]NVStorageSaveData kkm_last_timestamp [12:14:14]File name is /storage/kkm_last_timestamp [12:14:14]Write 4 bytes [12:14:14]NVStorageSaveData done [12:14:14]ExternCall_PrintAddStr [12:14:14]wPrintStart [12:14:14]Write to MH i2c: 01 00 00 31 00 31 [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: 01 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: 01 07 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:14:14]RasterBufferAndPrint [12:14:14]line Счет N : (1)593148 [12:14:14]line ИНН: 02508201610067 [12:14:14]line Контрольно-Кассовый Чек [12:14:14]line ПРОДАЖА [12:14:14]line ТРК (МРК, ГНК) : 32 [12:14:14]line Товар: 2710124130 [12:14:14]line Аи-92-К-5 [12:14:14]line 15.000 * 0.00 [12:14:14]line = 0.00 [12:14:14]line НДС 12% НСП 1% [12:14:14]line > о реализуемом товаре [12:14:14]line ИТОГО: 0.00 [12:14:14]line НСП 1% : 0.00 [12:14:14]line НДС 12% : 0.00 [12:14:14]line Наличными: 0.00 [12:14:14]line Безнал.: 0.00 [12:14:14]line Место: АЗС № 136 "Партнер Нефть" [12:14:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:14:14]line СНО: Общий режим [12:14:14]line Чек 142 19.08.2024 12:14 [12:14:14]line Смена: 452 ФФД: 1.0 [12:14:14]line ЗНМ: 0300000067 [12:14:14]line РНМ: 0000000000092569 [12:14:14]line Версия ККМ: 001 [12:14:14]line Талоны: Топливная Карта [12:14:14]line 03824 [12:14:14]line ФМ: 0000000000871776 [12:14:14]line ФД: 139307 [12:14:14]line ФПД: 192213210008486 [12:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121413&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139307&fm=192213210008486&tin=02508201610067®Number=0000000000092569&sum=0 [12:14:14]OFD Sender: Processing packet 139307 [packets to send 137, broken 136] [12:14:14]ProducePacketName [12:14:14]name=ofd_packets/00139307 [12:14:14]OFD Sender: To server: pG, [12:14:14]CommunicateWithHost lk.salyk.kg:30040 [12:14:14]ConnectInit lk.salyk.kg [12:14:14]written 0, free lines is 4095 [12:14:14]Connected sock=10 [12: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 37 36 0F 01 00 00 4F D8 07 01 75 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 8E 00 00 00 F4 03 04 00 15 37 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 20 02 00 35 04 06 00 AE D1 20 1A 8B A6 1A FB 2E 31 80 CA EF F8 [12: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 37 36 4F 00 00 00 2D 6B 47 00 C1 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 20 02 00 F4 03 04 00 AB DD C2 66 B6 04 01 00 00 5F 90 64 01 2B 20 AA 77 [12:14:14]CommunicateWithHost err = 0 [12:14:14]CheckOFDResponse [12:14:14]1017 (14) - 77093643461234 [12:14:14]1041 (16) - 0000000000871776 [12:14:14]1040 (4) - 139307 [12:14:14]1012 (4) - 19.08.2024 05:52 [12:14:14]1206 (1) - 0 [12:14:14]OFD Sender: Remove packet 139307 [12:14:14]ProducePacketName [12:14:14]name=ofd_packets/00139307 [12:14:14]NVStorageDeleteData [12:14:14]Write to MH i2c: 01 00 00 5B 00 5B [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: 01 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: 01 07 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 42 0D B1 [12:14:14]RasterBufferAndPrint [12:14:14]line [12:14:14]line [12:14:14]line [12:14:14]line [12:14:14]line [12:14:14]written 0, free lines is 3399 [12:14:14]MH_Cut [12:14:14]Write to MH i2c: D1 01 00 62 00 01 34 [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: D1 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: D1 01 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: D1 01 00 62 00 00 33 [12:14:14]Write to MH i2c: 01 00 00 63 00 63 [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:15]OFD Sender: No OFD packet to send [12:14:15]*** Cut start [12:14:15]*** Partial cut [12:14:15]*** CUTSNS_PIN = 1 [12:14:15]*** CUTSNS_PIN = 0 [12:14:15]*** Brake cut motor [12:14:16]Read from MH i2c: 01 [12:14:16]MH_I2C_Read... [12:14:16]*** Stop cut motor [12:14:16]*** Cut end [12:14:16]Read from MH i2c: 01 07 00 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [12:14:16]process_action close_receipt done [12:14:16]requested_data is exist [12:14:16]produce_requested_data [12:14:16]requested_item fm.sn is exist - process it [12:14:16]wFMCommunicate request_size=4 [12:14:16]MH_SAM_APDU [12:14:16]CAPDU: 80 11 00 00 [12:14:16]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:16]Read from MH i2c: E2 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: E2 17 00 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [12:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:14:16]wFMCommunicate OK [12:14:16]requested_item fd.num is exist - process it [12:14:16]SAM_PROTO_GetFieldsCounters [12:14:16]wFMCommunicate request_size=4 [12:14:16]MH_SAM_APDU [12:14:16]CAPDU: 80 13 00 00 [12:14:16]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:16]Read from MH i2c: E2 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: E2 62 00 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [12:14:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:16]wFMCommunicate OK [12:14:16]SAM_PROTO_GetFieldsCounters done [12:14:16]requested_item shift.num is exist - process it [12:14:16]requested_item shift.opened is exist - process it [12:14:16]req_shift_opened [12:14:16]FM_GetShiftState [12:14:16]SAM_PROTO_GetShiftState [12:14:16]wFMCommunicate request_size=4 [12:14:16]MH_SAM_APDU [12:14:16]CAPDU: 80 13 01 00 [12:14:16]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:16]Read from MH i2c: E2 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: E2 0E 00 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9A [12:14:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:14:16]wFMCommunicate OK [12:14:16]SAM_PROTO_GetShiftState done [12:14:16]FM_GetShiftState done [12:14:16]req_shift_opened done [12:14:16]requested_item shift.open_date is exist - process it [12:14:16]req_shift_open_date [12:14:16]req_shift_open_date done [12:14:16]produce_requested_data done [12:14:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139307,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:14:16]process_action_free close_receipt [12:14:16]json_value_free [12:14:16]json_value_free done [12:14:16]process_json_proto returns [12:14:16]Send response to host [12:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139307,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:14:16]free response buf [12:14:16]execute_script done [12:14:16]execute_script returns [12:14:16]free content buf [12:14:16]Sock 8.Close socket [12:14:16]Sock 8.Thread stoped [12:14:17]int [12:14:17]Write to MH i2c: 01 00 00 67 00 67 [12:14:17]*** FLAG_PRN_KEY set [12:14:17]Write i2c OK [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 07 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 07 00 67 00 00 08 00 00 00 FF 0F 84 [12:14:17]state=0 [12:14:17]Key pressed [12:14:17]Feed [12:14:17]Write to MH i2c: D8 00 00 68 00 3F [12:14:17]Write i2c OK [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: D8 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: D8 01 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: D8 01 00 68 00 00 40 [12:14:17]int [12:14:17]Write to MH i2c: 01 00 00 69 00 69 [12:14:17]Write i2c OK [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 07 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 07 00 69 00 00 48 00 00 00 3C 00 F4 [12:14:17]state=2 [12:14:17]Key pressed [12:14:17]int [12:14:17]Write to MH i2c: 01 00 00 6A 00 6A [12:14:17]*** FLAG_PRN_KEY reset [12:14:17]Write i2c OK [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 07 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 07 00 6A 00 00 00 00 00 00 F8 0F 78 [12:14:17]state=2 [12:14:17]Stop feed [12:14:18]int [12:14:18]Write to MH i2c: 01 00 00 6B 00 6B [12:14:18]*** FLAG_PRN_KEY set [12:14:18]Write i2c OK [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: 01 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: 01 07 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: 01 07 00 6B 00 00 08 00 00 00 FF 0F 88 [12:14:18]state=0 [12:14:18]Key pressed [12:14:18]Feed [12:14:18]Write to MH i2c: D8 00 00 6C 00 43 [12:14:18]Write i2c OK [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: D8 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: D8 01 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: D8 01 00 6C 00 00 44 [12:14:18]int [12:14:18]Write to MH i2c: 01 00 00 6D 00 6D [12:14:18]Write i2c OK [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: 01 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: 01 07 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: 01 07 00 6D 00 00 48 00 00 00 3D 00 F9 [12:14:18]state=2 [12:14:18]Key pressed [12:14:18]int [12:14:18]Write to MH i2c: 01 00 00 6E 00 6E [12:14:18]*** FLAG_PRN_KEY reset [12:14:18]Write i2c OK [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: 01 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: 01 07 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 F7 0F 7B [12:14:18]state=2 [12:14:18]Stop feed [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]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:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:09]accept exits with 9 [12:18:09]New connection [12:18:09]New thread 3066674532 created [12:18:09]Thread 3066817892 joined [12:18:09]Waiting for new connection... [12:18:09] Sock 9.Parse request [12:18:09]Sock 9.Check first char [12:18:09]Sock 9.First char is OK [12:18:09]request: POST /json_proto HTTP/1.0 [12:18:09]Method: POST [12:18:09]URL: /json_proto [12:18:09]Method is POST - this is cgi request [12:18:09]url: /json_proto [12:18:09]query_string will be loaded in cgi processing [12:18:09]execute_cgi json_proto POST (null) [12:18:09]execute_cgi path=json_proto method=POST [12:18:09]POST find Content-Length [12:18:09]Host: 172.17.45.67:8080 [12:18:09]Content-Length: 677 [12:18:09]Content-Type: application/json [12:18:09] [12:18:09]POST finish read [12:18:09]Found Content-Length = 677 [12:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:09]execute_script... [12:18: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)593150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:09]POST & json_proto [12:18:09]process_json_proto [12:18:09]json parsed OK: [12:18:09]protocol is kg_v1.0 [12:18:09]action value=close_receipt [12:18:09]process_action close_receipt [12:18:09]cmd_close_receipt [12:18:09]MH_GetDate [12:18:09]Write to MH i2c: F0 00 00 6F 00 5E [12:18:09]Write i2c OK [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: F0 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: F0 09 00 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: F0 09 00 6F 00 00 02 38 C3 66 5F 7F 2B 66 39 [12:18:09]GetLastDocTimeStamp 1724069653 [12:18:09]current date 1724069890 [12:18:09]FM_GetShiftState [12:18:09]SAM_PROTO_GetShiftState [12:18:09]wFMCommunicate request_size=4 [12:18:09]MH_SAM_APDU [12:18:09]CAPDU: 80 13 01 00 [12:18:09]Write to MH i2c: E2 08 00 70 00 80 13 01 00 00 00 00 00 ED [12:18:09]Write i2c OK [12:18:09]MH_I2C_Read... [12:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:09]Read from MH i2c: E2 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: E2 0E 00 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: E2 0E 00 70 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A4 [12:18:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:18:09]wFMCommunicate OK [12:18:09]SAM_PROTO_GetShiftState done [12:18:09]FM_GetShiftState done [12:18:09]opened in 1724027888 [12:18:09]opened+sec_in_day 1724114288 [12:18:09]quantity*price = 30035 [12:18:09]sum+1 = 30036 [12:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 143 19.08.2024 12:18 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139308 ФПД: 167184087370162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121810&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139308&fm=167184087370162&tin=02508201610067®Number=0000000000092569&sum=30000 [12:18:10]StoreToDocumentArchive [12:18:10]shift 452 fd 139308 [12:18:10]save to /storage/0452/doc_00139308 [12:18:10]save last doc name /storage/0452/doc_00139308 to /storage/kkm_last_doc_name [12:18:10]save OK [12:18:10]Clear old archive folders... [12:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:10]tlvbuf is 01221760 [12:18:10]SAM_PROTO_ClearQueue [12:18:10]wFMCommunicate request_size=4 [12:18:10]MH_SAM_APDU [12:18:10]CAPDU: 80 09 00 00 [12:18:10]Write to MH i2c: E2 08 00 7D 00 80 09 00 00 00 00 00 00 EF [12:18:10]OFD Sender: No OFD packet to send [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:10]Read from MH i2c: E2 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [12:18:10]RAPDU: 90 00 [12:18:10]wFMCommunicate OK [12:18:10]SAM_PROTO_ClearQueue done [12:18:10]KKMCreateOFDPacket [12:18:10]OFDProtocolAddRootSTLVToBuf [12:18:10]FM_MakeSignedData [12:18:10]FM_MakeSignedData [12:18:10]SAM_PROTO_SignData [12:18:10]wFMCommunicate request_size=4 [12:18:10]MH_SAM_APDU [12:18:10]CAPDU: 80 0D 01 02 [12:18:10]Write to MH i2c: E2 08 00 7E 00 80 0D 01 02 00 00 00 00 F7 [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:10]Read from MH i2c: E2 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [12:18:10]RAPDU: 90 00 [12:18:10]wFMCommunicate OK [12:18:10]wFMCommunicate request_size=255 [12:18:10]MH_SAM_APDU [12:18: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 02 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 20 02 00 35 04 06 00 98 [12:18:10]Write to MH i2c: E2 02 01 7F 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 02 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 20 02 00 35 04 06 00 98 00 00 3C [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:11]Read from MH i2c: E2 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: E2 03 00 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: E2 03 00 7F 00 00 90 00 F3 [12:18:11]RAPDU: 90 00 [12:18:11]wFMCommunicate OK [12:18:11]wFMCommunicate request_size=10 [12:18:11]MH_SAM_APDU [12:18:11]CAPDU: 80 0D 02 02 05 0D 94 23 C9 B2 [12:18:11]Write to MH i2c: E2 0D 00 80 00 80 0D 02 02 05 00 0D 94 23 C9 B2 00 00 43 [12:18:11]Write i2c OK [12:18:11]MH_I2C_Read... [12:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:11]Read from MH i2c: E2 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: E2 03 00 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [12:18:11]RAPDU: 90 00 [12:18:11]wFMCommunicate OK [12:18:11]wFMCommunicate request_size=4 [12:18:11]MH_SAM_APDU [12:18:11]CAPDU: 80 0D 03 02 [12:18:11]Write to MH i2c: E2 08 00 81 00 80 0D 03 02 00 00 00 00 FC [12:18:11]Write i2c OK [12:18:11]MH_I2C_Read... [12:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:11]Read from MH i2c: E2 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: E2 0B 00 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: E2 0B 00 81 00 00 F3 0D 87 B1 2A 56 96 59 90 00 A4 [12:18:11]RAPDU: F3 0D 87 B1 2A 56 96 59 90 00 [12:18:11]wFMCommunicate OK [12:18:11]SAM_PROTO_SignData done [12:18:11]FM_MakeSignedData done [12:18:11]CreateOFDProtocolMessage [12:18:11]wFMCommunicate request_size=4 [12:18:11]MH_SAM_APDU [12:18:11]CAPDU: 80 11 00 00 [12:18:11]Write to MH i2c: E2 08 00 82 00 80 11 00 00 00 00 00 00 FC [12:18:11]Write i2c OK [12:18:11]MH_I2C_Read... [12:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:11]Read from MH i2c: E2 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: E2 17 00 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: E2 17 00 82 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [12:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:18:11]wFMCommunicate OK [12:18:11]CreateOFDProtocolMessage done [12:18:11]OFDSenderStorePacket 139308 [12:18:11]StoreOFDPacket docnum=139308 [12:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DE 6D 07 01 74 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 02 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 20 02 00 35 04 06 00 98 0D 94 23 C9 B2 F3 0D 87 B1 2A 56 96 59 [12:18:11]CheckFolder [12:18:11]dirname=/storage/ofd_packets [12:18:11]CheckFolder done [12:18:11]ProducePacketName [12:18:11]name=ofd_packets/00139308 [12:18:11]NVStorageSaveData ofd_packets/00139308 [12:18:11]File name is /storage/ofd_packets/00139308 [12:18:11]Write 301 bytes [12:18:11]NVStorageSaveData done [12:18:11]OFDSenderStorePacket done [12:18:11]KKMCreateOFDPacket done [12:18:11]NVStorageSaveData kkm_last_timestamp [12:18:11]File name is /storage/kkm_last_timestamp [12:18:11]Write 4 bytes [12:18:11]NVStorageSaveData done [12:18:11]ExternCall_PrintAddStr [12:18:11]wPrintStart [12:18:11]Write to MH i2c: 01 00 00 83 00 83 [12:18:11]Write i2c OK [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: 01 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: 01 07 00 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: 01 07 00 83 00 00 00 00 00 00 FF 0F 98 [12:18:11]RasterBufferAndPrint [12:18:11]line Счет N : (1)593150 [12:18:11]line ИНН: 02508201610067 [12:18:11]line Контрольно-Кассовый Чек [12:18:11]line ПРОДАЖА [12:18:11]line ТРК (МРК, ГНК) : 62 [12:18:11]line Товар: 2710124130 [12:18:11]line Аи-92-К-5 [12:18:11]line 4.430 * 67.80 [12:18:11]line = 300.35 [12:18:11]line НДС 12% НСП 1% [12:18:11]line > о реализуемом товаре [12:18:11]line ОКРУГЛЕНИЕ: -0.35 [12:18:11]line ИТОГО: 300.00 [12:18:11]line Внесено: 300.00 [12:18:11]line СДАЧА: 0.00 [12:18:11]line НСП 1% : 2.66 [12:18:11]line НДС 12% : 31.90 [12:18:11]line Наличными: 300.00 [12:18:11]line Безнал.: 0.00 [12:18:11]line Место: АЗС № 136 "Партнер Нефть" [12:18:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:18:11]line СНО: Общий режим [12:18:11]line Чек 143 19.08.2024 12:18 [12:18:11]line Смена: 452 ФФД: 1.0 [12:18:11]line ЗНМ: 0300000067 [12:18:11]line РНМ: 0000000000092569 [12:18:11]line Версия ККМ: 001 [12:18:11]line ФМ: 0000000000871776 [12:18:11]line ФД: 139308 [12:18:11]line ФПД: 167184087370162 [12:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121810&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139308&fm=167184087370162&tin=02508201610067®Number=0000000000092569&sum=30000 [12:18:11]OFD Sender: Processing packet 139308 [packets to send 137, broken 136] [12:18:11]ProducePacketName [12:18:11]name=ofd_packets/00139308 [12:18:11]OFD Sender: To server: pG, [12:18:11]CommunicateWithHost lk.salyk.kg:30040 [12:18:11]ConnectInit lk.salyk.kg [12:18:11]written 0, free lines is 4095 [12:18:11]Connected sock=10 [12:18: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 37 36 0F 01 00 00 DE 6D 07 01 74 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 02 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 20 02 00 35 04 06 00 98 0D 94 23 C9 B2 F3 0D 87 B1 2A 56 96 59 [12:18: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 37 36 4F 00 00 00 B5 CC 47 00 94 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 20 02 00 F4 03 04 00 98 DE C2 66 B6 04 01 00 00 CD E2 A3 0C 9B 10 FD E8 [12:18:12]CommunicateWithHost err = 0 [12:18:12]CheckOFDResponse [12:18:12]1017 (14) - 77093643461234 [12:18:12]1041 (16) - 0000000000871776 [12:18:12]1040 (4) - 139308 [12:18:12]1012 (4) - 19.08.2024 05:56 [12:18:12]1206 (1) - 0 [12:18:12]OFD Sender: Remove packet 139308 [12:18:12]ProducePacketName [12:18:12]name=ofd_packets/00139308 [12:18:12]NVStorageDeleteData [12:18:12]Write to MH i2c: 01 00 00 AE 00 AE [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: 01 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: 01 07 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 DD 0C 9E [12:18:12]RasterBufferAndPrint [12:18:12]line [12:18:12]line [12:18:12]line [12:18:12]line [12:18:12]line [12:18:12]written 0, free lines is 3299 [12:18:12]MH_Cut [12:18:12]Write to MH i2c: D1 01 00 B5 00 01 87 [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: D1 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: D1 01 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: D1 01 00 B5 00 00 86 [12:18:12]Write to MH i2c: 01 00 00 B6 00 B6 [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]OFD Sender: No OFD packet to send [12:18:12]*** Cut start [12:18:12]*** Partial cut [12:18:12]*** CUTSNS_PIN = 1 [12:18:12]*** CUTSNS_PIN = 0 [12:18:13]*** Brake cut motor [12:18:13]Read from MH i2c: 01 [12:18:13]MH_I2C_Read... [12:18:13]*** Stop cut motor [12:18:13]*** Cut end [12:18:13]Read from MH i2c: 01 07 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [12:18:13]process_action close_receipt done [12:18:13]requested_data is exist [12:18:13]produce_requested_data [12:18:13]requested_item fm.sn is exist - process it [12:18:13]wFMCommunicate request_size=4 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 11 00 00 [12:18:13]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:13]Read from MH i2c: E2 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 17 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [12:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:18:13]wFMCommunicate OK [12:18:13]requested_item fd.num is exist - process it [12:18:13]SAM_PROTO_GetFieldsCounters [12:18:13]wFMCommunicate request_size=4 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 13 00 00 [12:18:13]Write to MH i2c: E2 08 00 B8 00 80 13 00 00 00 00 00 00 34 [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:13]Read from MH i2c: E2 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 62 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 62 00 B8 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:13]wFMCommunicate OK [12:18:13]SAM_PROTO_GetFieldsCounters done [12:18:13]requested_item shift.num is exist - process it [12:18:13]requested_item shift.opened is exist - process it [12:18:13]req_shift_opened [12:18:13]FM_GetShiftState [12:18:13]SAM_PROTO_GetShiftState [12:18:13]wFMCommunicate request_size=4 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 13 01 00 [12:18:13]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:13]Read from MH i2c: E2 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 0E 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 ED [12:18:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:18:13]wFMCommunicate OK [12:18:13]SAM_PROTO_GetShiftState done [12:18:13]FM_GetShiftState done [12:18:13]req_shift_opened done [12:18:13]requested_item shift.open_date is exist - process it [12:18:13]req_shift_open_date [12:18:13]req_shift_open_date done [12:18:13]produce_requested_data done [12:18:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139308,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:18:13]process_action_free close_receipt [12:18:13]json_value_free [12:18:13]json_value_free done [12:18:13]process_json_proto returns [12:18:13]Send response to host [12:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139308,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:18:13]free response buf [12:18:13]execute_script done [12:18:13]execute_script returns [12:18:13]free content buf [12:18:13]Sock 9.Close socket [12:18:13]Sock 9.Thread stoped [12:18:14]accept exits with 8 [12:18:14]New connection [12:18:14]New thread 3066817892 created [12:18:14]Thread 3066674532 joined [12:18:14]Waiting for new connection... [12:18:14] Sock 8.Parse request [12:18:14]Sock 8.Check first char [12:18:14]Sock 8.First char is OK [12:18:14]request: POST /json_proto HTTP/1.0 [12:18:14]Method: POST [12:18:14]URL: /json_proto [12:18:14]Method is POST - this is cgi request [12:18:14]url: /json_proto [12:18:14]query_string will be loaded in cgi processing [12:18:14]execute_cgi json_proto POST (null) [12:18:14]execute_cgi path=json_proto method=POST [12:18:14]POST find Content-Length [12:18:14]Host: 172.17.45.67:8080 [12:18:14]Content-Length: 800 [12:18:14]Content-Type: application/json [12:18:14] [12:18:14]POST finish read [12:18:14]Found Content-Length = 800 [12:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A4201914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:14]execute_script... [12:18: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)593149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A4201914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:14]POST & json_proto [12:18:14]process_json_proto [12:18:14]json parsed OK: [12:18:14]protocol is kg_v1.0 [12:18:14]action value=close_receipt [12:18:14]process_action close_receipt [12:18:14]cmd_close_receipt [12:18:14]MH_GetDate [12:18:14]Write to MH i2c: F0 00 00 BA 00 A9 [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: F0 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: F0 09 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: F0 09 00 BA 00 00 06 38 C3 66 5F 7F 2B 66 88 [12:18:14]GetLastDocTimeStamp 1724069890 [12:18:14]current date 1724069894 [12:18:14]FM_GetShiftState [12:18:14]SAM_PROTO_GetShiftState [12:18:14]wFMCommunicate request_size=4 [12:18:14]MH_SAM_APDU [12:18:14]CAPDU: 80 13 01 00 [12:18:14]Write to MH i2c: E2 08 00 BB 00 80 13 01 00 00 00 00 00 38 [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:14]Read from MH i2c: E2 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 0E 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 0E 00 BB 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EF [12:18:14]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:18:14]wFMCommunicate OK [12:18:14]SAM_PROTO_GetShiftState done [12:18:14]FM_GetShiftState done [12:18:14]opened in 1724027888 [12:18:14]opened+sec_in_day 1724114288 [12:18:14]quantity*price = 0 [12:18:14]sum+1 = 1 [12:18:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 144 19.08.2024 12:18 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 4201914 ФМ: 0000000000871776 ФД: 139309 ФПД: 165567567232984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121814&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139309&fm=165567567232984&tin=02508201610067®Number=0000000000092569&sum=0 [12:18:15]StoreToDocumentArchive [12:18:15]shift 452 fd 139309 [12:18:15]save to /storage/0452/doc_00139309 [12:18:15]save last doc name /storage/0452/doc_00139309 to /storage/kkm_last_doc_name [12:18:15]save OK [12:18:15]Clear old archive folders... [12:18:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:15]tlvbuf is 012325D0 [12:18:15]SAM_PROTO_ClearQueue [12:18:15]wFMCommunicate request_size=4 [12:18:15]MH_SAM_APDU [12:18:15]CAPDU: 80 09 00 00 [12:18:15]Write to MH i2c: E2 08 00 C8 00 80 09 00 00 00 00 00 00 3A [12:18:15]Write i2c OK [12:18:15]MH_I2C_Read... [12:18:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:15]Read from MH i2c: E2 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: E2 03 00 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [12:18:15]RAPDU: 90 00 [12:18:15]wFMCommunicate OK [12:18:15]SAM_PROTO_ClearQueue done [12:18:15]KKMCreateOFDPacket [12:18:15]OFDProtocolAddRootSTLVToBuf [12:18:15]FM_MakeSignedData [12:18:15]FM_MakeSignedData [12:18:15]SAM_PROTO_SignData [12:18:15]wFMCommunicate request_size=4 [12:18:15]MH_SAM_APDU [12:18:15]CAPDU: 80 0D 01 02 [12:18:15]Write to MH i2c: E2 08 00 C9 00 80 0D 01 02 00 00 00 00 42 [12:18:15]Write i2c OK [12:18:15]MH_I2C_Read... [12:18:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:15]Read from MH i2c: E2 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: E2 03 00 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [12:18:15]RAPDU: 90 00 [12:18:15]wFMCommunicate OK [12:18:15]wFMCommunicate request_size=255 [12:18:15]MH_SAM_APDU [12:18: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 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 90 00 00 00 F4 03 04 00 06 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 20 02 00 35 04 06 00 96 [12:18:15]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 06 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 20 02 00 35 04 06 00 96 00 00 2E [12:18:15]Write i2c OK [12:18:15]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [12:18:16]RAPDU: 90 00 [12:18:16]wFMCommunicate OK [12:18:16]wFMCommunicate request_size=10 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 0D 02 02 05 95 34 07 FF D8 [12:18:16]Write to MH i2c: E2 0D 00 CB 00 80 0D 02 02 05 00 95 34 07 FF D8 00 00 F6 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [12:18:16]RAPDU: 90 00 [12:18:16]wFMCommunicate OK [12:18:16]wFMCommunicate request_size=4 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 0D 03 02 [12:18:16]Write to MH i2c: E2 08 00 CC 00 80 0D 03 02 00 00 00 00 47 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 0B 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 0B 00 CC 00 00 D0 CB 9E E5 53 F6 73 94 90 00 B6 [12:18:16]RAPDU: D0 CB 9E E5 53 F6 73 94 90 00 [12:18:16]wFMCommunicate OK [12:18:16]SAM_PROTO_SignData done [12:18:16]FM_MakeSignedData done [12:18:16]CreateOFDProtocolMessage [12:18:16]wFMCommunicate request_size=4 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 11 00 00 [12:18:16]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 17 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [12:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:18:16]wFMCommunicate OK [12:18:16]CreateOFDProtocolMessage done [12:18:16]OFDSenderStorePacket 139309 [12:18:16]StoreOFDPacket docnum=139309 [12:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0A 2F 07 01 D7 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 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 90 00 00 00 F4 03 04 00 06 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 20 02 00 35 04 06 00 96 95 34 07 FF D8 D0 CB 9E E5 53 F6 73 94 [12:18:16]CheckFolder [12:18:16]dirname=/storage/ofd_packets [12:18:16]CheckFolder done [12:18:16]ProducePacketName [12:18:16]name=ofd_packets/00139309 [12:18:16]NVStorageSaveData ofd_packets/00139309 [12:18:16]File name is /storage/ofd_packets/00139309 [12:18:16]Write 301 bytes [12:18:16]NVStorageSaveData done [12:18:16]OFDSenderStorePacket done [12:18:16]KKMCreateOFDPacket done [12:18:16]NVStorageSaveData kkm_last_timestamp [12:18:16]File name is /storage/kkm_last_timestamp [12:18:16]Write 4 bytes [12:18:16]NVStorageSaveData done [12:18:16]ExternCall_PrintAddStr [12:18:16]wPrintStart [12:18:16]Write to MH i2c: 01 00 00 CE 00 CE [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: 01 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: 01 07 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [12:18:16]RasterBufferAndPrint [12:18:16]line Счет N : (1)593149 [12:18:16]line ИНН: 02508201610067 [12:18:16]line Контрольно-Кассовый Чек [12:18:16]line ПРОДАЖА [12:18:16]line ТРК (МРК, ГНК) : 42 [12:18:16]line Товар: 2710124130 [12:18:16]line Аи-92-К-5 [12:18:16]line 10.000 * 0.00 [12:18:16]line = 0.00 [12:18:16]line НДС 12% НСП 1% [12:18:16]line > о реализуемом товаре [12:18:16]line ИТОГО: 0.00 [12:18:16]line НСП 1% : 0.00 [12:18:16]line НДС 12% : 0.00 [12:18:16]line Наличными: 0.00 [12:18:16]line Безнал.: 0.00 [12:18:16]line Место: АЗС № 136 "Партнер Нефть" [12:18:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:18:16]line СНО: Общий режим [12:18:16]line Чек 144 19.08.2024 12:18 [12:18:16]line Смена: 452 ФФД: 1.0 [12:18:16]line ЗНМ: 0300000067 [12:18:16]line РНМ: 0000000000092569 [12:18:16]line Версия ККМ: 001 [12:18:16]line Талоны: Топливные Талоны [12:18:16]line 4201914 [12:18:16]line ФМ: 0000000000871776 [12:18:16]line ФД: 139309 [12:18:16]line ФПД: 165567567232984 [12:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121814&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139309&fm=165567567232984&tin=02508201610067®Number=0000000000092569&sum=0 [12:18:16]OFD Sender: Processing packet 139309 [packets to send 137, broken 136] [12:18:16]ProducePacketName [12:18:16]name=ofd_packets/00139309 [12:18:16]OFD Sender: To server: pG, [12:18:16]CommunicateWithHost lk.salyk.kg:30040 [12:18:16]ConnectInit lk.salyk.kg [12:18:16]written 0, free lines is 4095 [12:18:16]Connected sock=11 [12:18: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 37 36 0F 01 00 00 0A 2F 07 01 D7 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 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 90 00 00 00 F4 03 04 00 06 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 20 02 00 35 04 06 00 96 95 34 07 FF D8 D0 CB 9E E5 53 F6 73 94 [12:18: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 37 36 4F 00 00 00 FA BF 47 00 FB 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 20 02 00 F4 03 04 00 9D DE C2 66 B6 04 01 00 00 19 30 6A 5D 8F 43 5A 46 [12:18:17]CommunicateWithHost err = 0 [12:18:17]CheckOFDResponse [12:18:17]1017 (14) - 77093643461234 [12:18:17]1041 (16) - 0000000000871776 [12:18:17]1040 (4) - 139309 [12:18:17]1012 (4) - 19.08.2024 05:56 [12:18:17]1206 (1) - 0 [12:18:17]OFD Sender: Remove packet 139309 [12:18:17]ProducePacketName [12:18:17]name=ofd_packets/00139309 [12:18:17]NVStorageDeleteData [12:18:17]Write to MH i2c: 01 00 00 F8 00 F8 [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: 01 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: 01 07 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 F4 0C FF [12:18:17]RasterBufferAndPrint [12:18:17]line [12:18:17]line [12:18:17]line [12:18:17]line [12:18:17]line [12:18:17]written 0, free lines is 3326 [12:18:17]MH_Cut [12:18:17]Write to MH i2c: D1 01 00 FF 00 01 D1 [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: D1 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: D1 01 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: D1 01 00 FF 00 00 D0 [12:18:17]Write to MH i2c: 01 00 00 00 01 01 [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]OFD Sender: No OFD packet to send [12:18:17]*** Cut start [12:18:17]*** Partial cut [12:18:17]*** CUTSNS_PIN = 1 [12:18:17]*** CUTSNS_PIN = 0 [12:18:17]*** Brake cut motor [12:18:18]Read from MH i2c: 01 [12:18:18]MH_I2C_Read... [12:18:18]*** Stop cut motor [12:18:18]*** Cut end [12:18:18]Read from MH i2c: 01 07 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [12:18:18]process_action close_receipt done [12:18:18]requested_data is exist [12:18:18]produce_requested_data [12:18:18]requested_item fm.sn is exist - process it [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 11 00 00 [12:18:18]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 17 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 17 00 01 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [12:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:18:18]wFMCommunicate OK [12:18:18]requested_item fd.num is exist - process it [12:18:18]SAM_PROTO_GetFieldsCounters [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 13 00 00 [12:18:18]Write to MH i2c: E2 08 00 02 01 80 13 00 00 00 00 00 00 7F [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 62 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 62 00 02 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [12:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:18]wFMCommunicate OK [12:18:18]SAM_PROTO_GetFieldsCounters done [12:18:18]requested_item shift.num is exist - process it [12:18:18]requested_item shift.opened is exist - process it [12:18:18]req_shift_opened [12:18:18]FM_GetShiftState [12:18:18]SAM_PROTO_GetShiftState [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 13 01 00 [12:18:18]Write to MH i2c: E2 08 00 03 01 80 13 01 00 00 00 00 00 81 [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 0E 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 0E 00 03 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 38 [12:18:18]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:18:18]wFMCommunicate OK [12:18:18]SAM_PROTO_GetShiftState done [12:18:18]FM_GetShiftState done [12:18:18]req_shift_opened done [12:18:18]requested_item shift.open_date is exist - process it [12:18:18]req_shift_open_date [12:18:18]req_shift_open_date done [12:18:18]produce_requested_data done [12:18:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139309,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:18:18]process_action_free close_receipt [12:18:18]json_value_free [12:18:18]json_value_free done [12:18:18]process_json_proto returns [12:18:18]Send response to host [12:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139309,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:18:18]free response buf [12:18:18]execute_script done [12:18:18]execute_script returns [12:18:18]free content buf [12:18:18]Sock 8.Close socket [12:18:18]Sock 8.Thread stoped [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:32]int [12:18:32]Write to MH i2c: 01 00 00 04 01 05 [12:18:32]*** FLAG_PRN_KEY set [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: 01 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: 01 07 00 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: 01 07 00 04 01 00 08 00 00 00 FF 0F 22 [12:18:32]state=0 [12:18:32]Key pressed [12:18:32]Feed [12:18:32]Write to MH i2c: D8 00 00 05 01 DD [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: D8 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: D8 01 00 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: D8 01 00 05 01 00 DE [12:18:32]int [12:18:32]Write to MH i2c: 01 00 00 06 01 07 [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: 01 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: 01 07 00 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: 01 07 00 06 01 00 48 00 00 00 3C 00 92 [12:18:32]state=2 [12:18:32]Key pressed [12:18:32]int [12:18:32]Write to MH i2c: 01 00 00 07 01 08 [12:18:32]*** FLAG_PRN_KEY reset [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: 01 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: 01 07 00 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: 01 07 00 07 01 00 00 00 00 00 F7 0F 15 [12:18:32]state=2 [12:18:32]Stop feed [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]accept exits with 9 [12:20:07]New connection [12:20:07]New thread 3066674532 created [12:20:07]Thread 3066817892 joined [12:20:07]Waiting for new connection... [12:20:07] Sock 9.Parse request [12:20:07]Sock 9.Check first char [12:20:07]Sock 9.First char is OK [12:20:07]request: POST /json_proto HTTP/1.0 [12:20:07]Method: POST [12:20:07]URL: /json_proto [12:20:07]Method is POST - this is cgi request [12:20:07]url: /json_proto [12:20:07]query_string will be loaded in cgi processing [12:20:07]execute_cgi json_proto POST (null) [12:20:07]execute_cgi path=json_proto method=POST [12:20:07]POST find Content-Length [12:20:07]Host: 172.17.45.67:8080 [12:20:07]Content-Length: 677 [12:20:07]Content-Type: application/json [12:20:07] [12:20:07]POST finish read [12:20:07]Found Content-Length = 677 [12:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:20:07]execute_script... [12:20: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)593151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:20:07]POST & json_proto [12:20:07]process_json_proto [12:20:07]json parsed OK: [12:20:07]protocol is kg_v1.0 [12:20:07]action value=close_receipt [12:20:07]process_action close_receipt [12:20:07]cmd_close_receipt [12:20:07]MH_GetDate [12:20:07]Write to MH i2c: F0 00 00 08 01 F8 [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: F0 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: F0 09 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: F0 09 00 08 01 00 78 38 C3 66 5F 7F 2B 66 49 [12:20:07]GetLastDocTimeStamp 1724069894 [12:20:07]current date 1724070008 [12:20:07]FM_GetShiftState [12:20:07]SAM_PROTO_GetShiftState [12:20:07]wFMCommunicate request_size=4 [12:20:07]MH_SAM_APDU [12:20:07]CAPDU: 80 13 01 00 [12:20:07]Write to MH i2c: E2 08 00 09 01 80 13 01 00 00 00 00 00 87 [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:07]Read from MH i2c: E2 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 0E 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 0E 00 09 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3E [12:20:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:20:07]wFMCommunicate OK [12:20:07]SAM_PROTO_GetShiftState done [12:20:07]FM_GetShiftState done [12:20:07]opened in 1724027888 [12:20:07]opened+sec_in_day 1724114288 [12:20:07]quantity*price = 50036 [12:20:07]sum+1 = 50037 [12:20:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 145 19.08.2024 12:20 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139310 ФПД: 113617188896743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122008&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139310&fm=113617188896743&tin=02508201610067®Number=0000000000092569&sum=50000 [12:20:08]StoreToDocumentArchive [12:20:08]shift 452 fd 139310 [12:20:08]save to /storage/0452/doc_00139310 [12:20:08]save last doc name /storage/0452/doc_00139310 to /storage/kkm_last_doc_name [12:20:08]save OK [12:20:08]Clear old archive folders... [12:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:08]tlvbuf is 0123A310 [12:20:08]SAM_PROTO_ClearQueue [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 09 00 00 [12:20:08]Write to MH i2c: E2 08 00 16 01 80 09 00 00 00 00 00 00 89 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 03 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [12:20:08]RAPDU: 90 00 [12:20:08]wFMCommunicate OK [12:20:08]SAM_PROTO_ClearQueue done [12:20:08]KKMCreateOFDPacket [12:20:08]OFDProtocolAddRootSTLVToBuf [12:20:08]FM_MakeSignedData [12:20:08]FM_MakeSignedData [12:20:08]SAM_PROTO_SignData [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 0D 01 02 [12:20:08]Write to MH i2c: E2 08 00 17 01 80 0D 01 02 00 00 00 00 91 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 03 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [12:20:08]RAPDU: 90 00 [12:20:08]wFMCommunicate OK [12:20:08]wFMCommunicate request_size=255 [12:20:08]MH_SAM_APDU [12:20: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 91 00 00 00 F4 03 04 00 78 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 20 02 00 35 04 06 00 67 [12:20:08]Write to MH i2c: E2 02 01 18 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 91 00 00 00 F4 03 04 00 78 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 20 02 00 35 04 06 00 67 00 00 00 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 03 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [12:20:08]RAPDU: 90 00 [12:20:08]wFMCommunicate OK [12:20:08]wFMCommunicate request_size=10 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 0D 02 02 05 55 90 2F 3F E7 [12:20:08]Write to MH i2c: E2 0D 00 19 01 80 0D 02 02 05 00 55 90 2F 3F E7 00 00 D8 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 03 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [12:20:08]RAPDU: 90 00 [12:20:08]wFMCommunicate OK [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 0D 03 02 [12:20:08]Write to MH i2c: E2 08 00 1A 01 80 0D 03 02 00 00 00 00 96 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0B 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0B 00 1A 01 00 49 EC 67 41 A2 BA DC E2 90 00 8E [12:20:08]RAPDU: 49 EC 67 41 A2 BA DC E2 90 00 [12:20:08]wFMCommunicate OK [12:20:08]SAM_PROTO_SignData done [12:20:08]FM_MakeSignedData done [12:20:08]CreateOFDProtocolMessage [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 11 00 00 [12:20:08]Write to MH i2c: E2 08 00 1B 01 80 11 00 00 00 00 00 00 96 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 17 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 17 00 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [12:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:20:09]wFMCommunicate OK [12:20:09]CreateOFDProtocolMessage done [12:20:09]OFDSenderStorePacket 139310 [12:20:09]StoreOFDPacket docnum=139310 [12:20:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 4F 07 01 44 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 91 00 00 00 F4 03 04 00 78 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 20 02 00 35 04 06 00 67 55 90 2F 3F E7 49 EC 67 41 A2 BA DC E2 [12:20:09]CheckFolder [12:20:09]dirname=/storage/ofd_packets [12:20:09]CheckFolder done [12:20:09]ProducePacketName [12:20:09]name=ofd_packets/00139310 [12:20:09]NVStorageSaveData ofd_packets/00139310 [12:20:09]File name is /storage/ofd_packets/00139310 [12:20:09]Write 301 bytes [12:20:09]NVStorageSaveData done [12:20:09]OFDSenderStorePacket done [12:20:09]KKMCreateOFDPacket done [12:20:09]NVStorageSaveData kkm_last_timestamp [12:20:09]File name is /storage/kkm_last_timestamp [12:20:09]Write 4 bytes [12:20:09]NVStorageSaveData done [12:20:09]ExternCall_PrintAddStr [12:20:09]wPrintStart [12:20:09]Write to MH i2c: 01 00 00 1C 01 1D [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: 01 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: 01 07 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: 01 07 00 1C 01 00 00 00 00 00 FF 0F 32 [12:20:09]RasterBufferAndPrint [12:20:09]line Счет N : (1)593151 [12:20:09]line ИНН: 02508201610067 [12:20:09]line Контрольно-Кассовый Чек [12:20:09]line ПРОДАЖА [12:20:09]line ТРК (МРК, ГНК) : 52 [12:20:09]line Товар: 2710124130 [12:20:09]line Аи-92-К-5 [12:20:09]line 7.380 * 67.80 [12:20:09]line = 500.36 [12:20:09]line НДС 12% НСП 1% [12:20:09]line > о реализуемом товаре [12:20:09]line ОКРУГЛЕНИЕ: -0.36 [12:20:09]line ИТОГО: 500.00 [12:20:09]line Внесено: 500.00 [12:20:09]line СДАЧА: 0.00 [12:20:09]line НСП 1% : 4.43 [12:20:09]line НДС 12% : 53.14 [12:20:09]line Наличными: 500.00 [12:20:09]line Безнал.: 0.00 [12:20:09]line Место: АЗС № 136 "Партнер Нефть" [12:20:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:20:09]line СНО: Общий режим [12:20:09]line Чек 145 19.08.2024 12:20 [12:20:09]line Смена: 452 ФФД: 1.0 [12:20:09]line ЗНМ: 0300000067 [12:20:09]line РНМ: 0000000000092569 [12:20:09]line Версия ККМ: 001 [12:20:09]line ФМ: 0000000000871776 [12:20:09]line ФД: 139310 [12:20:09]line ФПД: 113617188896743 [12:20:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122008&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139310&fm=113617188896743&tin=02508201610067®Number=0000000000092569&sum=50000 [12:20:09]OFD Sender: Processing packet 139310 [packets to send 137, broken 136] [12:20:09]ProducePacketName [12:20:09]name=ofd_packets/00139310 [12:20:09]OFD Sender: To server: pG, [12:20:09]CommunicateWithHost lk.salyk.kg:30040 [12:20:09]ConnectInit lk.salyk.kg [12:20:09]written 0, free lines is 4095 [12:20:09]Connected sock=11 [12:20: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 37 36 0F 01 00 00 D1 4F 07 01 44 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 91 00 00 00 F4 03 04 00 78 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 20 02 00 35 04 06 00 67 55 90 2F 3F E7 49 EC 67 41 A2 BA DC E2 [12:20: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 37 36 4F 00 00 00 EC 35 47 00 97 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 37 36 10 04 04 00 2E 20 02 00 F4 03 04 00 0E DF C2 66 B6 04 01 00 00 27 4E 37 A9 C1 DB ED 1F [12:20:09]CommunicateWithHost err = 0 [12:20:09]CheckOFDResponse [12:20:09]1017 (14) - 77093643461234 [12:20:09]1041 (16) - 0000000000871776 [12:20:09]1040 (4) - 139310 [12:20:09]1012 (4) - 19.08.2024 05:58 [12:20:09]1206 (1) - 0 [12:20:09]OFD Sender: Remove packet 139310 [12:20:09]ProducePacketName [12:20:09]name=ofd_packets/00139310 [12:20:09]NVStorageDeleteData [12:20:09]Write to MH i2c: 01 00 00 47 01 48 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: 01 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: 01 07 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: 01 07 00 47 01 00 00 00 00 00 E1 0C 3C [12:20:09]RasterBufferAndPrint [12:20:09]line [12:20:09]line [12:20:09]line [12:20:09]line [12:20:09]line [12:20:09]written 0, free lines is 3302 [12:20:09]MH_Cut [12:20:09]Write to MH i2c: D1 01 00 4E 01 01 21 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: D1 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: D1 01 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: D1 01 00 4E 01 00 20 [12:20:09]Write to MH i2c: 01 00 00 4F 01 50 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:10]OFD Sender: No OFD packet to send [12:20:10]*** Cut start [12:20:10]*** Partial cut [12:20:10]*** CUTSNS_PIN = 1 [12:20:10]*** CUTSNS_PIN = 0 [12:20:10]*** Brake cut motor [12:20:11]Read from MH i2c: 01 [12:20:11]MH_I2C_Read... [12:20:11]*** Stop cut motor [12:20:11]*** Cut end [12:20:11]Read from MH i2c: 01 07 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 FF 0F 65 [12:20:11]process_action close_receipt done [12:20:11]requested_data is exist [12:20:11]produce_requested_data [12:20:11]requested_item fm.sn is exist - process it [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 11 00 00 [12:20:11]Write to MH i2c: E2 08 00 50 01 80 11 00 00 00 00 00 00 CB [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 17 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 17 00 50 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 22 [12:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:20:11]wFMCommunicate OK [12:20:11]requested_item fd.num is exist - process it [12:20:11]SAM_PROTO_GetFieldsCounters [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 13 00 00 [12:20:11]Write to MH i2c: E2 08 00 51 01 80 13 00 00 00 00 00 00 CE [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 62 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 62 00 51 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [12:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:11]wFMCommunicate OK [12:20:11]SAM_PROTO_GetFieldsCounters done [12:20:11]requested_item shift.num is exist - process it [12:20:11]requested_item shift.opened is exist - process it [12:20:11]req_shift_opened [12:20:11]FM_GetShiftState [12:20:11]SAM_PROTO_GetShiftState [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 13 01 00 [12:20:11]Write to MH i2c: E2 08 00 52 01 80 13 01 00 00 00 00 00 D0 [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 0E 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 0E 00 52 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 87 [12:20:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:20:11]wFMCommunicate OK [12:20:11]SAM_PROTO_GetShiftState done [12:20:11]FM_GetShiftState done [12:20:11]req_shift_opened done [12:20:11]requested_item shift.open_date is exist - process it [12:20:11]req_shift_open_date [12:20:11]req_shift_open_date done [12:20:11]produce_requested_data done [12:20:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139310,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:20:11]process_action_free close_receipt [12:20:11]json_value_free [12:20:11]json_value_free done [12:20:11]process_json_proto returns [12:20:11]Send response to host [12:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139310,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:20:11]free response buf [12:20:11]execute_script done [12:20:11]execute_script returns [12:20:11]free content buf [12:20:11]Sock 9.Close socket [12:20:11]Sock 9.Thread stoped [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:19]accept exits with 8 [12:21:19]New connection [12:21:19]New thread 3066817892 created [12:21:19]Thread 3066674532 joined [12:21:19]Waiting for new connection... [12:21:19] Sock 8.Parse request [12:21:19]Sock 8.Check first char [12:21:19]Sock 8.First char is OK [12:21:19]request: POST /json_proto HTTP/1.0 [12:21:19]Method: POST [12:21:19]URL: /json_proto [12:21:19]Method is POST - this is cgi request [12:21:19]url: /json_proto [12:21:19]query_string will be loaded in cgi processing [12:21:19]execute_cgi json_proto POST (null) [12:21:19]execute_cgi path=json_proto method=POST [12:21:19]POST find Content-Length [12:21:19]Host: 172.17.45.67:8080 [12:21:19]Content-Length: 677 [12:21:19]Content-Type: application/json [12:21:19] [12:21:19]POST finish read [12:21:19]Found Content-Length = 677 [12:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:21:19]execute_script... [12:21: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)593152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:21:19]POST & json_proto [12:21:19]process_json_proto [12:21:19]json parsed OK: [12:21:19]protocol is kg_v1.0 [12:21:19]action value=close_receipt [12:21:19]process_action close_receipt [12:21:19]cmd_close_receipt [12:21:19]MH_GetDate [12:21:19]Write to MH i2c: F0 00 00 53 01 43 [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: F0 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: F0 09 00 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: F0 09 00 53 01 00 BF 38 C3 66 5F 7F 2B 66 DB [12:21:19]GetLastDocTimeStamp 1724070008 [12:21:19]current date 1724070079 [12:21:19]FM_GetShiftState [12:21:19]SAM_PROTO_GetShiftState [12:21:19]wFMCommunicate request_size=4 [12:21:19]MH_SAM_APDU [12:21:19]CAPDU: 80 13 01 00 [12:21:19]Write to MH i2c: E2 08 00 54 01 80 13 01 00 00 00 00 00 D2 [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:19]Read from MH i2c: E2 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: E2 0E 00 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: E2 0E 00 54 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 89 [12:21:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:21:19]wFMCommunicate OK [12:21:19]SAM_PROTO_GetShiftState done [12:21:19]FM_GetShiftState done [12:21:19]opened in 1724027888 [12:21:19]opened+sec_in_day 1724114288 [12:21:19]quantity*price = 50036 [12:21:19]sum+1 = 50037 [12:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 146 19.08.2024 12:21 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139311 ФПД: 236118023192020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122119&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139311&fm=236118023192020&tin=02508201610067®Number=0000000000092569&sum=50000 [12:21:20]StoreToDocumentArchive [12:21:20]shift 452 fd 139311 [12:21:20]save to /storage/0452/doc_00139311 [12:21:20]save last doc name /storage/0452/doc_00139311 to /storage/kkm_last_doc_name [12:21:20]save OK [12:21:20]Clear old archive folders... [12:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:20]tlvbuf is 0121ED30 [12:21:20]SAM_PROTO_ClearQueue [12:21:20]wFMCommunicate request_size=4 [12:21:20]MH_SAM_APDU [12:21:20]CAPDU: 80 09 00 00 [12:21:20]Write to MH i2c: E2 08 00 61 01 80 09 00 00 00 00 00 00 D4 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:20]OFD Sender: No OFD packet to send [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [12:21:20]RAPDU: 90 00 [12:21:20]wFMCommunicate OK [12:21:20]SAM_PROTO_ClearQueue done [12:21:20]KKMCreateOFDPacket [12:21:20]OFDProtocolAddRootSTLVToBuf [12:21:20]FM_MakeSignedData [12:21:20]FM_MakeSignedData [12:21:20]SAM_PROTO_SignData [12:21:20]wFMCommunicate request_size=4 [12:21:20]MH_SAM_APDU [12:21:20]CAPDU: 80 0D 01 02 [12:21:20]Write to MH i2c: E2 08 00 62 01 80 0D 01 02 00 00 00 00 DC [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [12:21:20]RAPDU: 90 00 [12:21:20]wFMCommunicate OK [12:21:20]wFMCommunicate request_size=255 [12:21:20]MH_SAM_APDU [12:21: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 BF 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 20 02 00 35 04 06 00 D6 [12:21:20]Write to MH i2c: E2 02 01 63 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 BF 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 20 02 00 35 04 06 00 D6 00 00 03 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [12:21:20]RAPDU: 90 00 [12:21:20]wFMCommunicate OK [12:21:20]wFMCommunicate request_size=10 [12:21:20]MH_SAM_APDU [12:21:20]CAPDU: 80 0D 02 02 05 BF 82 E5 BD D4 [12:21:20]Write to MH i2c: E2 0D 00 64 01 80 0D 02 02 05 00 BF 82 E5 BD D4 00 00 A0 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 03 00 64 01 00 90 00 D9 [12:21:20]RAPDU: 90 00 [12:21:20]wFMCommunicate OK [12:21:20]wFMCommunicate request_size=4 [12:21:20]MH_SAM_APDU [12:21:20]CAPDU: 80 0D 03 02 [12:21:20]Write to MH i2c: E2 08 00 65 01 80 0D 03 02 00 00 00 00 E1 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 0B 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 0B 00 65 01 00 8C 46 7E 0A 80 D5 17 73 90 00 1B [12:21:20]RAPDU: 8C 46 7E 0A 80 D5 17 73 90 00 [12:21:20]wFMCommunicate OK [12:21:20]SAM_PROTO_SignData done [12:21:20]FM_MakeSignedData done [12:21:20]CreateOFDProtocolMessage [12:21:20]wFMCommunicate request_size=4 [12:21:20]MH_SAM_APDU [12:21:20]CAPDU: 80 11 00 00 [12:21:20]Write to MH i2c: E2 08 00 66 01 80 11 00 00 00 00 00 00 E1 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:20]Read from MH i2c: E2 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 17 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: E2 17 00 66 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 38 [12:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:21:20]wFMCommunicate OK [12:21:20]CreateOFDProtocolMessage done [12:21:20]OFDSenderStorePacket 139311 [12:21:20]StoreOFDPacket docnum=139311 [12:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 4C 07 01 DD 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 BF 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 20 02 00 35 04 06 00 D6 BF 82 E5 BD D4 8C 46 7E 0A 80 D5 17 73 [12:21:20]CheckFolder [12:21:20]dirname=/storage/ofd_packets [12:21:20]CheckFolder done [12:21:20]ProducePacketName [12:21:20]name=ofd_packets/00139311 [12:21:20]NVStorageSaveData ofd_packets/00139311 [12:21:20]File name is /storage/ofd_packets/00139311 [12:21:20]Write 301 bytes [12:21:20]NVStorageSaveData done [12:21:20]OFDSenderStorePacket done [12:21:20]KKMCreateOFDPacket done [12:21:20]NVStorageSaveData kkm_last_timestamp [12:21:20]File name is /storage/kkm_last_timestamp [12:21:20]Write 4 bytes [12:21:20]NVStorageSaveData done [12:21:20]ExternCall_PrintAddStr [12:21:20]wPrintStart [12:21:20]Write to MH i2c: 01 00 00 67 01 68 [12:21:20]Write i2c OK [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: 01 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: 01 07 00 [12:21:20]MH_I2C_Read... [12:21:20]Read from MH i2c: 01 07 00 67 01 00 00 00 00 00 FF 0F 7D [12:21:20]RasterBufferAndPrint [12:21:20]line Счет N : (1)593152 [12:21:20]line ИНН: 02508201610067 [12:21:20]line Контрольно-Кассовый Чек [12:21:20]line ПРОДАЖА [12:21:20]line ТРК (МРК, ГНК) : 42 [12:21:20]line Товар: 2710124130 [12:21:20]line Аи-92-К-5 [12:21:20]line 7.380 * 67.80 [12:21:20]line = 500.36 [12:21:20]line НДС 12% НСП 1% [12:21:20]line > о реализуемом товаре [12:21:20]line ОКРУГЛЕНИЕ: -0.36 [12:21:20]line ИТОГО: 500.00 [12:21:20]line Внесено: 500.00 [12:21:20]line СДАЧА: 0.00 [12:21:20]line НСП 1% : 4.43 [12:21:20]line НДС 12% : 53.14 [12:21:20]line Наличными: 500.00 [12:21:20]line Безнал.: 0.00 [12:21:20]line Место: АЗС № 136 "Партнер Нефть" [12:21:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:21:20]line СНО: Общий режим [12:21:20]line Чек 146 19.08.2024 12:21 [12:21:20]line Смена: 452 ФФД: 1.0 [12:21:20]line ЗНМ: 0300000067 [12:21:20]line РНМ: 0000000000092569 [12:21:20]line Версия ККМ: 001 [12:21:20]line ФМ: 0000000000871776 [12:21:20]line ФД: 139311 [12:21:20]line ФПД: 236118023192020 [12:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122119&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139311&fm=236118023192020&tin=02508201610067®Number=0000000000092569&sum=50000 [12:21:21]OFD Sender: Processing packet 139311 [packets to send 137, broken 136] [12:21:21]ProducePacketName [12:21:21]name=ofd_packets/00139311 [12:21:21]OFD Sender: To server: pG, [12:21:21]CommunicateWithHost lk.salyk.kg:30040 [12:21:21]ConnectInit lk.salyk.kg [12:21:21]written 0, free lines is 4095 [12:21:21]Connected sock=9 [12:21: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 37 36 0F 01 00 00 D1 4C 07 01 DD 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 BF 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 20 02 00 35 04 06 00 D6 BF 82 E5 BD D4 8C 46 7E 0A 80 D5 17 73 [12:21: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 37 36 4F 00 00 00 01 90 47 00 C3 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 37 36 10 04 04 00 2F 20 02 00 F4 03 04 00 55 DF C2 66 B6 04 01 00 00 02 52 7B AA E0 AA 11 04 [12:21:21]CommunicateWithHost err = 0 [12:21:21]CheckOFDResponse [12:21:21]1017 (14) - 77093643461234 [12:21:21]1041 (16) - 0000000000871776 [12:21:21]1040 (4) - 139311 [12:21:21]1012 (4) - 19.08.2024 05:59 [12:21:21]1206 (1) - 0 [12:21:21]OFD Sender: Remove packet 139311 [12:21:21]ProducePacketName [12:21:21]name=ofd_packets/00139311 [12:21:21]NVStorageDeleteData [12:21:21]Write to MH i2c: 01 00 00 92 01 93 [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: 01 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: 01 07 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 C2 0C 68 [12:21:21]RasterBufferAndPrint [12:21:21]line [12:21:21]line [12:21:21]line [12:21:21]line [12:21:21]line [12:21:21]written 0, free lines is 3272 [12:21:21]MH_Cut [12:21:21]Write to MH i2c: D1 01 00 99 01 01 6C [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: D1 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: D1 01 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: D1 01 00 99 01 00 6B [12:21:21]Write to MH i2c: 01 00 00 9A 01 9B [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:22]OFD Sender: No OFD packet to send [12:21:22]*** Cut start [12:21:22]*** Partial cut [12:21:22]*** CUTSNS_PIN = 1 [12:21:22]*** CUTSNS_PIN = 0 [12:21:22]*** Brake cut motor [12:21:23]Read from MH i2c: 01 [12:21:23]MH_I2C_Read... [12:21:23]*** Stop cut motor [12:21:23]Read from MH i2c: *** Cut end [12:21:23]01 07 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: 01 07 00 9A 01 00 00 00 00 00 FF 0F B0 [12:21:23]process_action close_receipt done [12:21:23]requested_data is exist [12:21:23]produce_requested_data [12:21:23]requested_item fm.sn is exist - process it [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 11 00 00 [12:21:23]Write to MH i2c: E2 08 00 9B 01 80 11 00 00 00 00 00 00 16 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 17 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 17 00 9B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [12:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:21:23]wFMCommunicate OK [12:21:23]requested_item fd.num is exist - process it [12:21:23]SAM_PROTO_GetFieldsCounters [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 13 00 00 [12:21:23]Write to MH i2c: E2 08 00 9C 01 80 13 00 00 00 00 00 00 19 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 62 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 62 00 9C 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [12:21: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:23]wFMCommunicate OK [12:21:23]SAM_PROTO_GetFieldsCounters done [12:21:23]requested_item shift.num is exist - process it [12:21:23]requested_item shift.opened is exist - process it [12:21:23]req_shift_opened [12:21:23]FM_GetShiftState [12:21:23]SAM_PROTO_GetShiftState [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 13 01 00 [12:21:23]Write to MH i2c: E2 08 00 9D 01 80 13 01 00 00 00 00 00 1B [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:23]E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 0E 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 0E 00 9D 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D2 [12:21:23]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:21:23]wFMCommunicate OK [12:21:23]SAM_PROTO_GetShiftState done [12:21:23]FM_GetShiftState done [12:21:23]req_shift_opened done [12:21:23]requested_item shift.open_date is exist - process it [12:21:23]req_shift_open_date [12:21:23]req_shift_open_date done [12:21:23]produce_requested_data done [12:21:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139311,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:21:23]process_action_free close_receipt [12:21:23]json_value_free [12:21:23]json_value_free done [12:21:23]process_json_proto returns [12:21:23]Send response to host [12:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139311,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:21:23]free response buf [12:21:23]execute_script done [12:21:23]execute_script returns [12:21:23]free content buf [12:21:23]Sock 8.Close socket [12:21:23]Sock 8.Thread stoped [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:16]accept exits with 10 [12:22:16]New connection [12:22:16]New thread 3066674532 created [12:22:16]Thread 3066817892 joined [12:22:16]Waiting for new connection... [12:22:16] Sock 10.Parse request [12:22:16]Sock 10.Check first char [12:22:16]Sock 10.First char is OK [12:22:16]request: POST /json_proto HTTP/1.0 [12:22:16]Method: POST [12:22:16]URL: /json_proto [12:22:16]Method is POST - this is cgi request [12:22:16]url: /json_proto [12:22:16]query_string will be loaded in cgi processing [12:22:16]execute_cgi json_proto POST (null) [12:22:16]execute_cgi path=json_proto method=POST [12:22:16]POST find Content-Length [12:22:16]Host: 172.17.45.67:8080 [12:22:16]Content-Length: 677 [12:22:16]Content-Type: application/json [12:22:16] [12:22:16]POST finish read [12:22:16]Found Content-Length = 677 [12:22:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.420, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:16]execute_script... [12:22: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)593153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.420, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:16]POST & json_proto [12:22:16]process_json_proto [12:22:16]json parsed OK: [12:22:16]protocol is kg_v1.0 [12:22:16]action value=close_receipt [12:22:16]process_action close_receipt [12:22:16]cmd_close_receipt [12:22:16]MH_GetDate [12:22:16]Write to MH i2c: F0 00 00 9E 01 8E [12:22:16]Write i2c OK [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: F0 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: F0 09 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: F0 09 00 9E 01 00 F8 38 C3 66 5F 7F 2B 66 5F [12:22:16]GetLastDocTimeStamp 1724070079 [12:22:16]current date 1724070136 [12:22:16]FM_GetShiftState [12:22:16]SAM_PROTO_GetShiftState [12:22:16]wFMCommunicate request_size=4 [12:22:16]MH_SAM_APDU [12:22:16]CAPDU: 80 13 01 00 [12:22:16]Write to MH i2c: E2 08 00 9F 01 80 13 01 00 00 00 00 00 1D [12:22:16]Write i2c OK [12:22:16]MH_I2C_Read... [12:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:16]Read from MH i2c: E2 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 0E 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 0E 00 9F 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D4 [12:22:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:22:16]wFMCommunicate OK [12:22:16]SAM_PROTO_GetShiftState done [12:22:16]FM_GetShiftState done [12:22:16]opened in 1724027888 [12:22:16]opened+sec_in_day 1724114288 [12:22:16]quantity*price = 55056 [12:22:16]sum+1 = 55057 [12:22:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 147 19.08.2024 12:22 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139312 ФПД: 110938851268774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122217&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139312&fm=110938851268774&tin=02508201610067®Number=0000000000092569&sum=55000 [12:22:17]StoreToDocumentArchive [12:22:17]shift 452 fd 139312 [12:22:17]save to /storage/0452/doc_00139312 [12:22:17]save last doc name /storage/0452/doc_00139312 to /storage/kkm_last_doc_name [12:22:17]save OK [12:22:17]Clear old archive folders... [12:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:17]tlvbuf is 01217EE0 [12:22:17]SAM_PROTO_ClearQueue [12:22:17]wFMCommunicate request_size=4 [12:22:17]MH_SAM_APDU [12:22:17]CAPDU: 80 09 00 00 [12:22:17]Write to MH i2c: E2 08 00 AC 01 80 09 00 00 00 00 00 00 1F [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:17]Read from MH i2c: E2 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 03 00 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [12:22:17]RAPDU: 90 00 [12:22:17]wFMCommunicate OK [12:22:17]SAM_PROTO_ClearQueue done [12:22:17]KKMCreateOFDPacket [12:22:17]OFDProtocolAddRootSTLVToBuf [12:22:17]FM_MakeSignedData [12:22:17]FM_MakeSignedData [12:22:17]SAM_PROTO_SignData [12:22:17]wFMCommunicate request_size=4 [12:22:17]MH_SAM_APDU [12:22:17]CAPDU: 80 0D 01 02 [12:22:17]Write to MH i2c: E2 08 00 AD 01 80 0D 01 02 00 00 00 00 27 [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:17]Read from MH i2c: E2 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 03 00 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [12:22:17]RAPDU: 90 00 [12:22:17]wFMCommunicate OK [12:22:17]wFMCommunicate request_size=255 [12:22:17]MH_SAM_APDU [12:22:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F9 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 20 02 00 35 04 06 00 64 [12:22:17]Write to MH i2c: E2 02 01 AE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F9 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 20 02 00 35 04 06 00 64 00 00 EF [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:17]Read from MH i2c: E2 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 03 00 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [12:22:17]RAPDU: 90 00 [12:22:17]wFMCommunicate OK [12:22:17]wFMCommunicate request_size=10 [12:22:17]MH_SAM_APDU [12:22:17]CAPDU: 80 0D 02 02 05 E5 F6 D2 58 A6 [12:22:17]Write to MH i2c: E2 0D 00 AF 01 80 0D 02 02 05 00 E5 F6 D2 58 A6 00 00 DF [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:17]Read from MH i2c: E2 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 03 00 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [12:22:17]RAPDU: 90 00 [12:22:17]wFMCommunicate OK [12:22:17]wFMCommunicate request_size=4 [12:22:17]MH_SAM_APDU [12:22:17]CAPDU: 80 0D 03 02 [12:22:17]Write to MH i2c: E2 08 00 B0 01 80 0D 03 02 00 00 00 00 2C [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:17]Read from MH i2c: E2 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 0B 00 [12:22:17]MH_I2C_Read... [12:22:17]Read from MH i2c: E2 0B 00 B0 01 00 B4 D3 51 10 84 49 8F 5E 90 00 CF [12:22:17]RAPDU: B4 D3 51 10 84 49 8F 5E 90 00 [12:22:17]wFMCommunicate OK [12:22:17]SAM_PROTO_SignData done [12:22:17]FM_MakeSignedData done [12:22:17]CreateOFDProtocolMessage [12:22:17]wFMCommunicate request_size=4 [12:22:17]MH_SAM_APDU [12:22:17]CAPDU: 80 11 00 00 [12:22:17]Write to MH i2c: E2 08 00 B1 01 80 11 00 00 00 00 00 00 2C [12:22:17]Write i2c OK [12:22:17]MH_I2C_Read... [12:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:18]Read from MH i2c: E2 [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: E2 17 00 [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: E2 17 00 B1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 83 [12:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:22:18]wFMCommunicate OK [12:22:18]CreateOFDProtocolMessage done [12:22:18]OFDSenderStorePacket 139312 [12:22:18]StoreOFDPacket docnum=139312 [12:22:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EF CA 07 01 CE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F9 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 20 02 00 35 04 06 00 64 E5 F6 D2 58 A6 B4 D3 51 10 84 49 8F 5E [12:22:18]CheckFolder [12:22:18]dirname=/storage/ofd_packets [12:22:18]CheckFolder done [12:22:18]ProducePacketName [12:22:18]name=ofd_packets/00139312 [12:22:18]NVStorageSaveData ofd_packets/00139312 [12:22:18]File name is /storage/ofd_packets/00139312 [12:22:18]Write 301 bytes [12:22:18]NVStorageSaveData done [12:22:18]OFDSenderStorePacket done [12:22:18]KKMCreateOFDPacket done [12:22:18]NVStorageSaveData kkm_last_timestamp [12:22:18]File name is /storage/kkm_last_timestamp [12:22:18]Write 4 bytes [12:22:18]NVStorageSaveData done [12:22:18]ExternCall_PrintAddStr [12:22:18]wPrintStart [12:22:18]Write to MH i2c: 01 00 00 B2 01 B3 [12:22:18]Write i2c OK [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: 01 [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: 01 07 00 [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: 01 07 00 B2 01 00 00 00 00 00 FF 0F C8 [12:22:18]RasterBufferAndPrint [12:22:18]line Счет N : (1)593153 [12:22:18]line ИНН: 02508201610067 [12:22:18]line Контрольно-Кассовый Чек [12:22:18]line ПРОДАЖА [12:22:18]line ТРК (МРК, ГНК) : 51 [12:22:18]line Товар: 2710124500 [12:22:18]line Аи-95-К-5 [12:22:18]line 7.420 * 74.20 [12:22:18]line = 550.56 [12:22:18]line НДС 12% НСП 1% [12:22:18]line > о реализуемом товаре [12:22:18]line ОКРУГЛЕНИЕ: -0.56 [12:22:18]line ИТОГО: 550.00 [12:22:18]line Внесено: 550.00 [12:22:18]line СДАЧА: 0.00 [12:22:18]line НСП 1% : 4.87 [12:22:18]line НДС 12% : 58.47 [12:22:18]line Наличными: 550.00 [12:22:18]line Безнал.: 0.00 [12:22:18]line Место: АЗС № 136 "Партнер Нефть" [12:22:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:22:18]line СНО: Общий режим [12:22:18]line Чек 147 19.08.2024 12:22 [12:22:18]line Смена: 452 ФФД: 1.0 [12:22:18]line ЗНМ: 0300000067 [12:22:18]line РНМ: 0000000000092569 [12:22:18]line Версия ККМ: 001 [12:22:18]line ФМ: 0000000000871776 [12:22:18]line ФД: 139312 [12:22:18]line ФПД: 110938851268774 [12:22:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122217&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139312&fm=110938851268774&tin=02508201610067®Number=0000000000092569&sum=55000 [12:22:18]written 0, free lines is 4095 [12:22:18]OFD Sender: Processing packet 139312 [packets to send 137, broken 136] [12:22:18]ProducePacketName [12:22:18]name=ofd_packets/00139312 [12:22:18]OFD Sender: To server: pG, [12:22:18]CommunicateWithHost lk.salyk.kg:30040 [12:22:18]ConnectInit lk.salyk.kg [12:22:18]Connected sock=11 [12:22: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 37 36 0F 01 00 00 EF CA 07 01 CE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F9 38 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 20 02 00 35 04 06 00 64 E5 F6 D2 58 A6 B4 D3 51 10 84 49 8F 5E [12:22:18]Write to MH i2c: 01 00 00 DD 01 DE [12:22:18]Write i2c OK [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: 01 [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: 01 07 00 [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: 01 07 00 DD 01 00 00 00 00 00 CD 0C BE [12:22:18]RasterBufferAndPrint [12:22:18]line [12:22:18]line [12:22:18]line [12:22:18]line [12:22:18]line [12:22:18]written 0, free lines is 3281 [12:22:18]MH_Cut [12:22:18]Write to MH i2c: D1 01 00 E4 01 01 B7 [12:22:18]Write i2c OK [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: D1 [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: D1 01 00 [12:22:18]MH_I2C_Read... [12:22:18]Read from MH i2c: D1 01 00 E4 01 00 B6 [12:22:18]Write to MH i2c: 01 00 00 E5 01 E6 [12:22:18]Write i2c OK [12:22:18]MH_I2C_Read... [12:22: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 37 36 4F 00 00 00 72 98 47 00 1C 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 37 36 10 04 04 00 30 20 02 00 F4 03 04 00 8F DF C2 66 B6 04 01 00 00 3D 6D 87 50 5D 9B C5 D8 [12:22:18]CommunicateWithHost err = 0 [12:22:18]CheckOFDResponse [12:22:18]1017 (14) - 77093643461234 [12:22:18]1041 (16) - 0000000000871776 [12:22:18]1040 (4) - 139312 [12:22:18]1012 (4) - 19.08.2024 06:00 [12:22:18]1206 (1) - 0 [12:22:18]OFD Sender: Remove packet 139312 [12:22:18]ProducePacketName [12:22:18]name=ofd_packets/00139312 [12:22:18]NVStorageDeleteData [12:22:19]OFD Sender: No OFD packet to send [12:22:19]*** Cut start [12:22:19]*** Partial cut [12:22:19]*** CUTSNS_PIN = 1 [12:22:19]*** CUTSNS_PIN = 0 [12:22:19]*** Brake cut motor [12:22:20]Read from MH i2c: 01 [12:22:20]MH_I2C_Read... [12:22:20]*** Stop cut motor [12:22:20]*** Cut end [12:22:20]Read from MH i2c: 01 07 00 [12:22:20]MH_I2C_Read... [12:22:20]Read from MH i2c: 01 07 00 E5 01 00 00 00 00 00 FF 0F FB [12:22:20]process_action close_receipt done [12:22:20]requested_data is exist [12:22:20]produce_requested_data [12:22:20]requested_item fm.sn is exist - process it [12:22:20]wFMCommunicate request_size=4 [12:22:20]MH_SAM_APDU [12:22:20]CAPDU: 80 11 00 00 [12:22:20]Write to MH i2c: E2 08 00 E6 01 80 11 00 00 00 00 00 00 61 [12:22:20]Write i2c OK [12:22:20]MH_I2C_Read... [12:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:20]Read from MH i2c: E2 [12:22:20]MH_I2C_Read... [12:22:20]Read from MH i2c: E2 17 00 [12:22:20]MH_I2C_Read... [12:22:20]Read from MH i2c: E2 17 00 E6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [12:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:22:20]wFMCommunicate OK [12:22:20]requested_item fd.num is exist - process it [12:22:20]SAM_PROTO_GetFieldsCounters [12:22:20]wFMCommunicate request_size=4 [12:22:20]MH_SAM_APDU [12:22:20]CAPDU: 80 13 00 00 [12:22:20]Write to MH i2c: E2 08 00 E7 01 80 13 00 00 00 00 00 00 64 [12:22:20]Write i2c OK [12:22:20]MH_I2C_Read... [12:22:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:20]Read from MH i2c: E2 [12:22:20]MH_I2C_Read... [12:22:20]Read from MH i2c: E2 62 00 [12:22:20]MH_I2C_Read... [12:22:20]Read from MH i2c: E2 62 00 E7 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 30 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [12:22: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 30 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:20]wFMCommunicate OK [12:22:20]SAM_PROTO_GetFieldsCounters done [12:22:20]requested_item shift.num is exist - process it [12:22:20]requested_item shift.opened is exist - process it [12:22:20]req_shift_opened [12:22:20]FM_GetShiftState [12:22:20]SAM_PROTO_GetShiftState [12:22:20]wFMCommunicate request_size=4 [12:22:20]MH_SAM_APDU [12:22:20]CAPDU: 80 13 01 00 [12:22:20]Write to MH i2c: E2 08 00 E8 01 80 13 01 00 00 00 00 00 66 [12:22:20]Write i2c OK [12:22:20]MH_I2C_Read... [12:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:20]Read from MH i2c: E2 [12:22:20]MH_I2C_Read... [12:22:20]Read from MH i2c: E2 0E 00 [12:22:20]MH_I2C_Read... [12:22:20]Read from MH i2c: E2 0E 00 E8 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1D [12:22:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:22:20]wFMCommunicate OK [12:22:20]SAM_PROTO_GetShiftState done [12:22:20]FM_GetShiftState done [12:22:20]req_shift_opened done [12:22:20]requested_item shift.open_date is exist - process it [12:22:20]req_shift_open_date [12:22:20]req_shift_open_date done [12:22:20]produce_requested_data done [12:22:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139312,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:22:20]process_action_free close_receipt [12:22:20]json_value_free [12:22:20]json_value_free done [12:22:20]process_json_proto returns [12:22:20]Send response to host [12:22:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139312,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:22:20]free response buf [12:22:20]execute_script done [12:22:20]execute_script returns [12:22:20]free content buf [12:22:20]Sock 10.Close socket [12:22:20]Sock 10.Thread stoped [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:20]accept exits with 8 [12:23:20]New connection [12:23:20]New thread 3066817892 created [12:23:20]Thread 3066674532 joined [12:23:20]Waiting for new connection... [12:23:20] Sock 8.Parse request [12:23:20]Sock 8.Check first char [12:23:20]Sock 8.First char is OK [12:23:20]request: POST /json_proto HTTP/1.0 [12:23:20]Method: POST [12:23:20]URL: /json_proto [12:23:20]Method is POST - this is cgi request [12:23:20]url: /json_proto [12:23:20]query_string will be loaded in cgi processing [12:23:20]execute_cgi json_proto POST (null) [12:23:20]execute_cgi path=json_proto method=POST [12:23:20]POST find Content-Length [12:23:20]Host: 172.17.45.67:8080 [12:23:20]Content-Length: 677 [12:23:20]Content-Type: application/json [12:23:20] [12:23:20]POST finish read [12:23:20]Found Content-Length = 677 [12:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:20]execute_script... [12:23: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)593154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:20]POST & json_proto [12:23:20]process_json_proto [12:23:20]json parsed OK: [12:23:20]protocol is kg_v1.0 [12:23:20]action value=close_receipt [12:23:20]process_action close_receipt [12:23:20]cmd_close_receipt [12:23:20]MH_GetDate [12:23:20]Write to MH i2c: F0 00 00 E9 01 D9 [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: F0 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: F0 09 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: F0 09 00 E9 01 00 38 39 C3 66 5F 7F 2B 66 EB [12:23:20]GetLastDocTimeStamp 1724070137 [12:23:20]current date 1724070200 [12:23:20]FM_GetShiftState [12:23:20]SAM_PROTO_GetShiftState [12:23:20]wFMCommunicate request_size=4 [12:23:20]MH_SAM_APDU [12:23:20]CAPDU: 80 13 01 00 [12:23:20]Write to MH i2c: E2 08 00 EA 01 80 13 01 00 00 00 00 00 68 [12:23:20]Write i2c OK [12:23:20]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 0E 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 0E 00 EA 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1F [12:23:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:23:20]wFMCommunicate OK [12:23:20]SAM_PROTO_GetShiftState done [12:23:20]FM_GetShiftState done [12:23:20]opened in 1724027888 [12:23:20]opened+sec_in_day 1724114288 [12:23:20]quantity*price = 30035 [12:23:20]sum+1 = 30036 [12:23:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 148 19.08.2024 12:23 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139313 ФПД: 93037876886598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122320&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139313&fm=93037876886598&tin=02508201610067®Number=0000000000092569&sum=30000 [12:23:21]StoreToDocumentArchive [12:23:21]shift 452 fd 139313 [12:23:21]save to /storage/0452/doc_00139313 [12:23:21]save last doc name /storage/0452/doc_00139313 to /storage/kkm_last_doc_name [12:23:21]save OK [12:23:21]Clear old archive folders... [12:23:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:21]tlvbuf is 01217AB0 [12:23:21]SAM_PROTO_ClearQueue [12:23:21]wFMCommunicate request_size=4 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 09 00 00 [12:23:21]Write to MH i2c: E2 08 00 F7 01 80 09 00 00 00 00 00 00 6A [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [12:23:21]RAPDU: 90 00 [12:23:21]wFMCommunicate OK [12:23:21]SAM_PROTO_ClearQueue done [12:23:21]KKMCreateOFDPacket [12:23:21]OFDProtocolAddRootSTLVToBuf [12:23:21]FM_MakeSignedData [12:23:21]FM_MakeSignedData [12:23:21]SAM_PROTO_SignData [12:23:21]wFMCommunicate request_size=4 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 0D 01 02 [12:23:21]Write to MH i2c: E2 08 00 F8 01 80 0D 01 02 00 00 00 00 72 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [12:23:21]RAPDU: 90 00 [12:23:21]wFMCommunicate OK [12:23:21]wFMCommunicate request_size=255 [12:23:21]MH_SAM_APDU [12:23: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 20 02 00 35 04 06 00 54 [12:23:21]Write to MH i2c: E2 02 01 F9 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 20 02 00 35 04 06 00 54 00 00 B4 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [12:23:21]RAPDU: 90 00 [12:23:21]wFMCommunicate OK [12:23:21]wFMCommunicate request_size=10 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 0D 02 02 05 9E 11 9A 3C 46 [12:23:21]Write to MH i2c: E2 0D 00 FA 01 80 0D 02 02 05 00 9E 11 9A 3C 46 00 00 4A [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 03 00 FA 01 00 90 00 6F [12:23:21]RAPDU: 90 00 [12:23:21]wFMCommunicate OK [12:23:21]wFMCommunicate request_size=4 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 0D 03 02 [12:23:21]Write to MH i2c: E2 08 00 FB 01 80 0D 03 02 00 00 00 00 77 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 0B 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 0B 00 FB 01 00 0E ED B9 B4 E3 C2 09 BA 90 00 48 [12:23:21]RAPDU: 0E ED B9 B4 E3 C2 09 BA 90 00 [12:23:21]wFMCommunicate OK [12:23:21]SAM_PROTO_SignData done [12:23:21]FM_MakeSignedData done [12:23:21]CreateOFDProtocolMessage [12:23:21]wFMCommunicate request_size=4 [12:23:21]MH_SAM_APDU [12:23:21]CAPDU: 80 11 00 00 [12:23:21]Write to MH i2c: E2 08 00 FC 01 80 11 00 00 00 00 00 00 77 [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:21]Read from MH i2c: E2 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 17 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: E2 17 00 FC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CE [12:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:23:21]wFMCommunicate OK [12:23:21]CreateOFDProtocolMessage done [12:23:21]OFDSenderStorePacket 139313 [12:23:21]StoreOFDPacket docnum=139313 [12:23:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F5 3D 07 01 01 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 20 02 00 35 04 06 00 54 9E 11 9A 3C 46 0E ED B9 B4 E3 C2 09 BA [12:23:21]CheckFolder [12:23:21]dirname=/storage/ofd_packets [12:23:21]CheckFolder done [12:23:21]ProducePacketName [12:23:21]name=ofd_packets/00139313 [12:23:21]NVStorageSaveData ofd_packets/00139313 [12:23:21]File name is /storage/ofd_packets/00139313 [12:23:21]Write 301 bytes [12:23:21]NVStorageSaveData done [12:23:21]OFDSenderStorePacket done [12:23:21]KKMCreateOFDPacket done [12:23:21]NVStorageSaveData kkm_last_timestamp [12:23:21]File name is /storage/kkm_last_timestamp [12:23:21]Write 4 bytes [12:23:21]NVStorageSaveData done [12:23:21]ExternCall_PrintAddStr [12:23:21]wPrintStart [12:23:21]Write to MH i2c: 01 00 00 FD 01 FE [12:23:21]Write i2c OK [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 07 00 [12:23:21]MH_I2C_Read... [12:23:21]Read from MH i2c: 01 07 00 FD 01 00 00 00 00 00 FF 0F 13 [12:23:21]RasterBufferAndPrint [12:23:21]line Счет N : (1)593154 [12:23:21]line ИНН: 02508201610067 [12:23:21]line Контрольно-Кассовый Чек [12:23:21]line ПРОДАЖА [12:23:21]line ТРК (МРК, ГНК) : 52 [12:23:21]line Товар: 2710124130 [12:23:21]line Аи-92-К-5 [12:23:21]line 4.430 * 67.80 [12:23:21]line = 300.35 [12:23:21]line НДС 12% НСП 1% [12:23:21]line > о реализуемом товаре [12:23:21]line ОКРУГЛЕНИЕ: -0.35 [12:23:21]line ИТОГО: 300.00 [12:23:21]line Внесено: 300.00 [12:23:21]line СДАЧА: 0.00 [12:23:21]line НСП 1% : 2.66 [12:23:21]line НДС 12% : 31.90 [12:23:21]line Наличными: 300.00 [12:23:21]line Безнал.: 0.00 [12:23:21]line Место: АЗС № 136 "Партнер Нефть" [12:23:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:23:21]line СНО: Общий режим [12:23:21]line Чек 148 19.08.2024 12:23 [12:23:21]line Смена: 452 ФФД: 1.0 [12:23:21]line ЗНМ: 0300000067 [12:23:21]line РНМ: 0000000000092569 [12:23:21]line Версия ККМ: 001 [12:23:21]line ФМ: 0000000000871776 [12:23:21]line ФД: 139313 [12:23:21]line ФПД: 93037876886598 [12:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122320&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139313&fm=93037876886598&tin=02508201610067®Number=0000000000092569&sum=30000 [12:23:22]written 0, free lines is 4095 [12:23:22]OFD Sender: Processing packet 139313 [packets to send 137, broken 136] [12:23:22]ProducePacketName [12:23:22]name=ofd_packets/00139313 [12:23:22]OFD Sender: To server: pG, [12:23:22]CommunicateWithHost lk.salyk.kg:30040 [12:23:22]ConnectInit lk.salyk.kg [12:23:22]Connected sock=10 [12:23: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 37 36 0F 01 00 00 F5 3D 07 01 01 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 20 02 00 35 04 06 00 54 9E 11 9A 3C 46 0E ED B9 B4 E3 C2 09 BA [12:23:22]Write to MH i2c: 01 00 00 28 02 2A [12:23:22]Write i2c OK [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: 01 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: 01 07 00 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: 01 07 00 28 02 00 00 00 00 00 CD 0C 0A [12:23:22]RasterBufferAndPrint [12:23:22]line [12:23:22]line [12:23:22]line [12:23:22]line [12:23:22]line [12:23:22]written 0, free lines is 3280 [12:23: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 37 36 4F 00 00 00 4F 82 47 00 44 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 37 36 10 04 04 00 31 20 02 00 F4 03 04 00 CE DF C2 66 B6 04 01 00 00 FE 2A 75 E7 A3 85 6B CD [12:23:22]CommunicateWithHost err = 0 [12:23:22]CheckOFDResponse [12:23:22]1017 (14) - 77093643461234 [12:23:22]1041 (16) - 0000000000871776 [12:23:22]1040 (4) - 139313 [12:23:22]1012 (4) - 19.08.2024 06:01 [12:23:22]1206 (1) - 0 [12:23:22]OFD Sender: Remove packet 139313 [12:23:22]ProducePacketName [12:23:22]name=ofd_packets/00139313 [12:23:22]NVStorageDeleteData [12:23:22]MH_Cut [12:23:22]Write to MH i2c: D1 01 00 2F 02 01 03 [12:23:22]Write i2c OK [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: D1 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: D1 01 00 [12:23:22]MH_I2C_Read... [12:23:22]Read from MH i2c: D1 01 00 2F 02 00 02 [12:23:22]Write to MH i2c: 01 00 00 30 02 32 [12:23:22]Write i2c OK [12:23:22]MH_I2C_Read... [12:23:23]OFD Sender: No OFD packet to send [12:23:23]*** Cut start [12:23:23]*** Partial cut [12:23:23]*** CUTSNS_PIN = 1 [12:23:23]*** CUTSNS_PIN = 0 [12:23:23]*** Brake cut motor [12:23:23]Read from MH i2c: 01 [12:23:23]MH_I2C_Read... [12:23:23]*** Stop cut motor [12:23:23]*** Cut end [12:23:23]Read from MH i2c: 01 07 00 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: 01 07 00 30 02 00 00 00 00 00 FF 0F 47 [12:23:23]process_action close_receipt done [12:23:23]requested_data is exist [12:23:23]produce_requested_data [12:23:23]requested_item fm.sn is exist - process it [12:23:23]wFMCommunicate request_size=4 [12:23:23]MH_SAM_APDU [12:23:23]CAPDU: 80 11 00 00 [12:23:23]Write to MH i2c: E2 08 00 31 02 80 11 00 00 00 00 00 00 AD [12:23:23]Write i2c OK [12:23:23]MH_I2C_Read... [12:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:24]Read from MH i2c: E2 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 17 00 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 17 00 31 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [12:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:23:24]wFMCommunicate OK [12:23:24]requested_item fd.num is exist - process it [12:23:24]SAM_PROTO_GetFieldsCounters [12:23:24]wFMCommunicate request_size=4 [12:23:24]MH_SAM_APDU [12:23:24]CAPDU: 80 13 00 00 [12:23:24]Write to MH i2c: E2 08 00 32 02 80 13 00 00 00 00 00 00 B0 [12:23:24]Write i2c OK [12:23:24]MH_I2C_Read... [12:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:24]Read from MH i2c: E2 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 62 00 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 62 00 32 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 31 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 31 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:24]wFMCommunicate OK [12:23:24]SAM_PROTO_GetFieldsCounters done [12:23:24]requested_item shift.num is exist - process it [12:23:24]requested_item shift.opened is exist - process it [12:23:24]req_shift_opened [12:23:24]FM_GetShiftState [12:23:24]SAM_PROTO_GetShiftState [12:23:24]wFMCommunicate request_size=4 [12:23:24]MH_SAM_APDU [12:23:24]CAPDU: 80 13 01 00 [12:23:24]Write to MH i2c: E2 08 00 33 02 80 13 01 00 00 00 00 00 B2 [12:23:24]Write i2c OK [12:23:24]MH_I2C_Read... [12:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:24]Read from MH i2c: E2 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 0E 00 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 0E 00 33 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 69 [12:23:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:23:24]wFMCommunicate OK [12:23:24]SAM_PROTO_GetShiftState done [12:23:24]FM_GetShiftState done [12:23:24]req_shift_opened done [12:23:24]requested_item shift.open_date is exist - process it [12:23:24]req_shift_open_date [12:23:24]req_shift_open_date done [12:23:24]produce_requested_data done [12:23:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139313,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:23:24]process_action_free close_receipt [12:23:24]json_value_free [12:23:24]json_value_free done [12:23:24]process_json_proto returns [12:23:24]Send response to host [12:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139313,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:23:24]free response buf [12:23:24]execute_script done [12:23:24]execute_script returns [12:23:24]free content buf [12:23:24]Sock 8.Close socket [12:23:24]Sock 8.Thread stoped [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:12]accept exits with 9 [12:24:12]New connection [12:24:12]New thread 3066674532 created [12:24:12]Thread 3066817892 joined [12:24:12]Waiting for new connection... [12:24:12] Sock 9.Parse request [12:24:12]Sock 9.Check first char [12:24:12]Sock 9.First char is OK [12:24:12]request: POST /json_proto HTTP/1.0 [12:24:12]Method: POST [12:24:12]URL: /json_proto [12:24:12]Method is POST - this is cgi request [12:24:12]url: /json_proto [12:24:12]query_string will be loaded in cgi processing [12:24:12]execute_cgi json_proto POST (null) [12:24:12]execute_cgi path=json_proto method=POST [12:24:12]POST find Content-Length [12:24:12]Host: 172.17.45.67:8080 [12:24:12]Content-Length: 834 [12:24:12]Content-Type: application/json [12:24:12] [12:24:12]POST finish read [12:24:12]Found Content-Length = 834 [12:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.300, "sum" : 359.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 359.00, "payments": [ { "type": 1, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:12]execute_script... [12:24:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.300, "sum" : 359.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 359.00, "payments": [ { "type": 1, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:12]POST & json_proto [12:24:12]process_json_proto [12:24:12]json parsed OK: [12:24:12]protocol is kg_v1.0 [12:24:12]action value=close_receipt [12:24:12]process_action close_receipt [12:24:12]cmd_close_receipt [12:24:12]MH_GetDate [12:24:12]Write to MH i2c: F0 00 00 34 02 25 [12:24:12]Write i2c OK [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: F0 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: F0 09 00 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: F0 09 00 34 02 00 6D 39 C3 66 5F 7F 2B 66 6C [12:24:12]GetLastDocTimeStamp 1724070200 [12:24:12]current date 1724070253 [12:24:12]FM_GetShiftState [12:24:12]SAM_PROTO_GetShiftState [12:24:12]wFMCommunicate request_size=4 [12:24:12]MH_SAM_APDU [12:24:12]CAPDU: 80 13 01 00 [12:24:12]Write to MH i2c: E2 08 00 35 02 80 13 01 00 00 00 00 00 B4 [12:24:12]Write i2c OK [12:24:12]MH_I2C_Read... [12:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:12]Read from MH i2c: E2 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: E2 0E 00 [12:24:12]MH_I2C_Read... [12:24:12]Read from MH i2c: E2 0E 00 35 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6B [12:24:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:24:12]wFMCommunicate OK [12:24:12]SAM_PROTO_GetShiftState done [12:24:12]FM_GetShiftState done [12:24:12]opened in 1724027888 [12:24:12]opened+sec_in_day 1724114288 [12:24:12]quantity*price = 35934 [12:24:12]sum+1 = 35935 [12:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 359.00 НСП 1% : 3.18 НДС 12% : 38.16 Наличными: 0.00 Безнал.: 359.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 149 19.08.2024 12:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139314 ФПД: 141803507515221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122413&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139314&fm=141803507515221&tin=02508201610067®Number=0000000000092569&sum=35900 [12:24:14]StoreToDocumentArchive [12:24:14]shift 452 fd 139314 [12:24:14]save to /storage/0452/doc_00139314 [12:24:14]save last doc name /storage/0452/doc_00139314 to /storage/kkm_last_doc_name [12:24:14]save OK [12:24:14]Clear old archive folders... [12:24:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:14]tlvbuf is 01206FF0 [12:24:14]SAM_PROTO_ClearQueue [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 09 00 00 [12:24:14]Write to MH i2c: E2 08 00 42 02 80 09 00 00 00 00 00 00 B6 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 03 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 03 00 42 02 00 90 00 B8 [12:24:14]RAPDU: 90 00 [12:24:14]wFMCommunicate OK [12:24:14]SAM_PROTO_ClearQueue done [12:24:14]KKMCreateOFDPacket [12:24:14]OFDProtocolAddRootSTLVToBuf [12:24:14]FM_MakeSignedData [12:24:14]FM_MakeSignedData [12:24:14]SAM_PROTO_SignData [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 0D 01 02 [12:24:14]Write to MH i2c: E2 08 00 43 02 80 0D 01 02 00 00 00 00 BE [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 03 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [12:24:14]RAPDU: 90 00 [12:24:14]wFMCommunicate OK [12:24:14]wFMCommunicate request_size=255 [12:24:14]MH_SAM_APDU [12:24: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 B4 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 6D 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 20 02 00 35 04 06 00 80 [12:24:14]Write to MH i2c: E2 02 01 44 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 B4 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 6D 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 20 02 00 35 04 06 00 80 00 00 DC [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 03 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 03 00 44 02 00 90 00 BA [12:24:14]RAPDU: 90 00 [12:24:14]wFMCommunicate OK [12:24:14]wFMCommunicate request_size=10 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 0D 02 02 05 F8 33 B1 7F 55 [12:24:14]Write to MH i2c: E2 0D 00 45 02 80 0D 02 02 05 00 F8 33 B1 7F 55 00 00 7B [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 03 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [12:24:14]RAPDU: 90 00 [12:24:14]wFMCommunicate OK [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 0D 03 02 [12:24:14]Write to MH i2c: E2 08 00 46 02 80 0D 03 02 00 00 00 00 C3 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 0B 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 0B 00 46 02 00 43 B4 C6 FB 3D 8C 4B A3 90 00 33 [12:24:14]RAPDU: 43 B4 C6 FB 3D 8C 4B A3 90 00 [12:24:14]wFMCommunicate OK [12:24:14]SAM_PROTO_SignData done [12:24:14]FM_MakeSignedData done [12:24:14]CreateOFDProtocolMessage [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 11 00 00 [12:24:14]Write to MH i2c: E2 08 00 47 02 80 11 00 00 00 00 00 00 C3 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 17 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 17 00 47 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1A [12:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:14]wFMCommunicate OK [12:24:14]CreateOFDProtocolMessage done [12:24:14]OFDSenderStorePacket 139314 [12:24:14]StoreOFDPacket docnum=139314 [12:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 CE 07 01 09 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 B4 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 6D 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 20 02 00 35 04 06 00 80 F8 33 B1 7F 55 43 B4 C6 FB 3D 8C 4B A3 [12:24:14]CheckFolder [12:24:14]dirname=/storage/ofd_packets [12:24:14]CheckFolder done [12:24:14]ProducePacketName [12:24:14]name=ofd_packets/00139314 [12:24:14]NVStorageSaveData ofd_packets/00139314 [12:24:14]File name is /storage/ofd_packets/00139314 [12:24:14]Write 301 bytes [12:24:14]NVStorageSaveData done [12:24:14]OFDSenderStorePacket done [12:24:14]KKMCreateOFDPacket done [12:24:14]NVStorageSaveData kkm_last_timestamp [12:24:14]File name is /storage/kkm_last_timestamp [12:24:14]Write 4 bytes [12:24:14]NVStorageSaveData done [12:24:14]ExternCall_PrintAddStr [12:24:14]wPrintStart [12:24:14]Write to MH i2c: 01 00 00 48 02 4A [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 07 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: 01 07 00 48 02 00 00 00 00 00 FF 0F 5F [12:24:14]RasterBufferAndPrint [12:24:14]line Счет N : (1)593155 [12:24:14]line ИНН: 02508201610067 [12:24:14]line Контрольно-Кассовый Чек [12:24:14]line ПРОДАЖА [12:24:14]line ТРК (МРК, ГНК) : 32 [12:24:14]line Товар: 2710124130 [12:24:14]line Аи-92-К-5 [12:24:14]line 5.300 * 67.80 [12:24:14]line = 359.34 [12:24:14]line НДС 12% НСП 1% [12:24:14]line > о реализуемом товаре [12:24:14]line ОКРУГЛЕНИЕ: -0.34 [12:24:14]line ИТОГО: 359.00 [12:24:14]line НСП 1% : 3.18 [12:24:14]line НДС 12% : 38.16 [12:24:14]line Наличными: 0.00 [12:24:14]line Безнал.: 359.00 [12:24:14]line Место: АЗС № 136 "Партнер Нефть" [12:24:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:24:14]line СНО: Общий режим [12:24:14]line Чек 149 19.08.2024 12:24 [12:24:14]line Смена: 452 ФФД: 1.0 [12:24:14]line ЗНМ: 0300000067 [12:24:14]line РНМ: 0000000000092569 [12:24:14]line Версия ККМ: 001 [12:24:14]line Платежная система: Бакай Банк [12:24:14]line ФМ: 0000000000871776 [12:24:14]line ФД: 139314 [12:24:14]line ФПД: 141803507515221 [12:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122413&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139314&fm=141803507515221&tin=02508201610067®Number=0000000000092569&sum=35900 [12:24:14]OFD Sender: Processing packet 139314 [packets to send 137, broken 136] [12:24:14]ProducePacketName [12:24:14]name=ofd_packets/00139314 [12:24:14]OFD Sender: To server: pG, [12:24:14]CommunicateWithHost lk.salyk.kg:30040 [12:24:14]ConnectInit lk.salyk.kg [12:24:14]written 0, free lines is 4095 [12:24:15]Connected sock=10 [12:24: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 37 36 0F 01 00 00 30 CE 07 01 09 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 B4 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 6D 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 20 02 00 35 04 06 00 80 F8 33 B1 7F 55 43 B4 C6 FB 3D 8C 4B A3 [12:24: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 37 36 4F 00 00 00 E2 25 47 00 A3 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 37 36 10 04 04 00 32 20 02 00 F4 03 04 00 03 E0 C2 66 B6 04 01 00 00 85 A4 44 9C 12 0C 06 16 [12:24:15]CommunicateWithHost err = 0 [12:24:15]CheckOFDResponse [12:24:15]1017 (14) - 77093643461234 [12:24:15]1041 (16) - 0000000000871776 [12:24:15]1040 (4) - 139314 [12:24:15]1012 (4) - 19.08.2024 06:02 [12:24:15]1206 (1) - 0 [12:24:15]OFD Sender: Remove packet 139314 [12:24:15]ProducePacketName [12:24:15]name=ofd_packets/00139314 [12:24:15]NVStorageDeleteData [12:24:15]Write to MH i2c: 01 00 00 73 02 75 [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: 01 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: 01 07 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 CF 0C 57 [12:24:15]RasterBufferAndPrint [12:24:15]line [12:24:15]line [12:24:15]line [12:24:15]line [12:24:15]line [12:24:15]written 0, free lines is 3285 [12:24:15]MH_Cut [12:24:15]Write to MH i2c: D1 01 00 7A 02 01 4E [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: D1 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: D1 01 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: D1 01 00 7A 02 00 4D [12:24:15]Write to MH i2c: 01 00 00 7B 02 7D [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]OFD Sender: No OFD packet to send [12:24:16]*** Cut start [12:24:16]*** Partial cut [12:24:16]*** CUTSNS_PIN = 1 [12:24:16]*** CUTSNS_PIN = 0 [12:24:16]*** Brake cut motor [12:24:16]Read from MH i2c: 01 [12:24:16]MH_I2C_Read... [12:24:16]*** Stop cut motor [12:24:16]*** Cut end [12:24:16]Read from MH i2c: 01 07 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 FF 0F 92 [12:24:16]process_action close_receipt done [12:24:16]requested_data is exist [12:24:16]produce_requested_data [12:24:16]requested_item fm.sn is exist - process it [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 11 00 00 [12:24:16]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 17 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [12:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:16]wFMCommunicate OK [12:24:16]requested_item fd.num is exist - process it [12:24:16]SAM_PROTO_GetFieldsCounters [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 13 00 00 [12:24:16]Write to MH i2c: E2 08 00 7D 02 80 13 00 00 00 00 00 00 FB [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 62 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 62 00 7D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 32 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [12:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 32 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:16]wFMCommunicate OK [12:24:16]SAM_PROTO_GetFieldsCounters done [12:24:16]requested_item shift.num is exist - process it [12:24:16]requested_item shift.opened is exist - process it [12:24:16]req_shift_opened [12:24:16]FM_GetShiftState [12:24:16]SAM_PROTO_GetShiftState [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 13 01 00 [12:24:16]Write to MH i2c: E2 08 00 7E 02 80 13 01 00 00 00 00 00 FD [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 0E 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 0E 00 7E 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B4 [12:24:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:24:16]wFMCommunicate OK [12:24:16]SAM_PROTO_GetShiftState done [12:24:16]FM_GetShiftState done [12:24:16]req_shift_opened done [12:24:16]requested_item shift.open_date is exist - process it [12:24:16]req_shift_open_date [12:24:16]req_shift_open_date done [12:24:16]produce_requested_data done [12:24:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139314,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:24:16]process_action_free close_receipt [12:24:16]json_value_free [12:24:16]json_value_free done [12:24:16]process_json_proto returns [12:24:16]Send response to host [12:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139314,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:24:16]free response buf [12:24:16]execute_script done [12:24:16]execute_script returns [12:24:16]free content buf [12:24:16]Sock 9.Close socket [12:24:16]Sock 9.Thread stoped [12:24:17]accept exits with 8 [12:24:17]New connection [12:24:17]New thread 3066817892 created [12:24:17]Thread 3066674532 joined [12:24:17]Waiting for new connection... [12:24:17] Sock 8.Parse request [12:24:17]Sock 8.Check first char [12:24:17]Sock 8.First char is OK [12:24:17]request: POST /json_proto HTTP/1.0 [12:24:17]Method: POST [12:24:17]URL: /json_proto [12:24:17]Method is POST - this is cgi request [12:24:17]url: /json_proto [12:24:17]query_string will be loaded in cgi processing [12:24:17]execute_cgi json_proto POST (null) [12:24:17]execute_cgi path=json_proto method=POST [12:24:17]POST find Content-Length [12:24:17]Host: 172.17.45.67:8080 [12:24:17]Content-Length: 663 [12:24:17]Content-Type: application/json [12:24:17] [12:24:17]POST finish read [12:24:17]Found Content-Length = 663 [12:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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:24:17]execute_script... [12:24: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)593156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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:24:17]POST & json_proto [12:24:17]process_json_proto [12:24:17]json parsed OK: [12:24:17]protocol is kg_v1.0 [12:24:17]action value=close_receipt [12:24:17]process_action close_receipt [12:24:17]cmd_close_receipt [12:24:17]MH_GetDate [12:24:17]Write to MH i2c: F0 00 00 7F 02 70 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: F0 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: F0 09 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: F0 09 00 7F 02 00 71 39 C3 66 5F 7F 2B 66 BB [12:24:17]GetLastDocTimeStamp 1724070253 [12:24:17]current date 1724070257 [12:24:17]FM_GetShiftState [12:24:17]SAM_PROTO_GetShiftState [12:24:17]wFMCommunicate request_size=4 [12:24:17]MH_SAM_APDU [12:24:17]CAPDU: 80 13 01 00 [12:24:17]Write to MH i2c: E2 08 00 80 02 80 13 01 00 00 00 00 00 FF [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:17]Read from MH i2c: E2 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 0E 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 0E 00 80 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B6 [12:24:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:24:17]wFMCommunicate OK [12:24:17]SAM_PROTO_GetShiftState done [12:24:17]FM_GetShiftState done [12:24:17]opened in 1724027888 [12:24:17]opened+sec_in_day 1724114288 [12:24:17]quantity*price = 100035 [12:24:17]sum+1 = 100036 [12:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 150 19.08.2024 12:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139315 ФПД: 54210609801862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139315&fm=54210609801862&tin=02508201610067®Number=0000000000092569&sum=100000 [12:24:18]StoreToDocumentArchive [12:24:18]shift 452 fd 139315 [12:24:18]save to /storage/0452/doc_00139315 [12:24:18]save last doc name /storage/0452/doc_00139315 to /storage/kkm_last_doc_name [12:24:18]save OK [12:24:18]Clear old archive folders... [12:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:24:18]tlvbuf is 0121DB10 [12:24:18]SAM_PROTO_ClearQueue [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 09 00 00 [12:24:18]Write to MH i2c: E2 08 00 8D 02 80 09 00 00 00 00 00 00 01 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [12:24:18]RAPDU: 90 00 [12:24:18]wFMCommunicate OK [12:24:18]SAM_PROTO_ClearQueue done [12:24:18]KKMCreateOFDPacket [12:24:18]OFDProtocolAddRootSTLVToBuf [12:24:18]FM_MakeSignedData [12:24:18]FM_MakeSignedData [12:24:18]SAM_PROTO_SignData [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 0D 01 02 [12:24:18]Write to MH i2c: E2 08 00 8E 02 80 0D 01 02 00 00 00 00 09 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [12:24:18]RAPDU: 90 00 [12:24:18]wFMCommunicate OK [12:24:18]wFMCommunicate request_size=253 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 71 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 20 02 00 35 04 06 00 31 4D E4 23 EA 86 [12:24:18]Write to MH i2c: E2 00 01 8F 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 71 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 20 02 00 35 04 06 00 31 4D E4 23 EA 86 00 00 F9 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 03 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [12:24:19]RAPDU: 90 00 [12:24:19]wFMCommunicate OK [12:24:19]wFMCommunicate request_size=4 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 0D 03 02 [12:24:19]Write to MH i2c: E2 08 00 90 02 80 0D 03 02 00 00 00 00 0D [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0B 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0B 00 90 02 00 D1 97 DA AD EB 96 6C 72 90 00 5C [12:24:19]RAPDU: D1 97 DA AD EB 96 6C 72 90 00 [12:24:19]wFMCommunicate OK [12:24:19]SAM_PROTO_SignData done [12:24:19]FM_MakeSignedData done [12:24:19]CreateOFDProtocolMessage [12:24:19]wFMCommunicate request_size=4 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 11 00 00 [12:24:19]Write to MH i2c: E2 08 00 91 02 80 11 00 00 00 00 00 00 0D [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 17 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 17 00 91 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 64 [12:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:19]wFMCommunicate OK [12:24:19]CreateOFDProtocolMessage done [12:24:19]OFDSenderStorePacket 139315 [12:24:19]StoreOFDPacket docnum=139315 [12:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 50 27 00 01 7E 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 71 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 20 02 00 35 04 06 00 31 4D E4 23 EA 86 D1 97 DA AD EB 96 6C 72 [12:24:19]CheckFolder [12:24:19]dirname=/storage/ofd_packets [12:24:19]CheckFolder done [12:24:19]ProducePacketName [12:24:19]name=ofd_packets/00139315 [12:24:19]NVStorageSaveData ofd_packets/00139315 [12:24:19]File name is /storage/ofd_packets/00139315 [12:24:19]Write 294 bytes [12:24:19]NVStorageSaveData done [12:24:19]OFDSenderStorePacket done [12:24:19]KKMCreateOFDPacket done [12:24:19]NVStorageSaveData kkm_last_timestamp [12:24:19]File name is /storage/kkm_last_timestamp [12:24:19]Write 4 bytes [12:24:19]NVStorageSaveData done [12:24:19]ExternCall_PrintAddStr [12:24:19]wPrintStart [12:24:19]Write to MH i2c: 01 00 00 92 02 94 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 07 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 07 00 92 02 00 00 00 00 00 FF 0F A9 [12:24:19]RasterBufferAndPrint [12:24:19]line Счет N : (1)593156 [12:24:19]line ИНН: 02508201610067 [12:24:19]line Контрольно-Кассовый Чек [12:24:19]line ПРОДАЖА [12:24:19]line ТРК (МРК, ГНК) : 43 [12:24:19]line Товар: 2710124130 [12:24:19]line SU-92 [12:24:19]line 14.540 * 68.80 [12:24:19]line = 1000.35 [12:24:19]line НДС 12% НСП 1% [12:24:19]line > о реализуемом товаре [12:24:19]line ОКРУГЛЕНИЕ: -0.35 [12:24:19]line ИТОГО: 1000.00 [12:24:19]line Внесено: 1000.00 [12:24:19]line СДАЧА: 0.00 [12:24:19]line НСП 1% : 8.85 [12:24:19]line НДС 12% : 106.23 [12:24:19]line Наличными: 1000.00 [12:24:19]line Безнал.: 0.00 [12:24:19]line Место: АЗС № 136 "Партнер Нефть" [12:24:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:24:19]line СНО: Общий режим [12:24:19]line Чек 150 19.08.2024 12:24 [12:24:19]line Смена: 452 ФФД: 1.0 [12:24:19]line ЗНМ: 0300000067 [12:24:19]line РНМ: 0000000000092569 [12:24:19]line Версия ККМ: 001 [12:24:19]line ФМ: 0000000000871776 [12:24:19]line ФД: 139315 [12:24:19]line ФПД: 54210609801862 [12:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139315&fm=54210609801862&tin=02508201610067®Number=0000000000092569&sum=100000 [12:24:19]OFD Sender: Processing packet 139315 [packets to send 137, broken 136] [12:24:19]ProducePacketName [12:24:19]name=ofd_packets/00139315 [12:24:19]OFD Sender: To server: pG, [12:24:19]CommunicateWithHost lk.salyk.kg:30040 [12:24:19]ConnectInit lk.salyk.kg [12:24:19]written 0, free lines is 4095 [12:24:19]Connected sock=10 [12:24: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 37 36 08 01 00 00 50 27 00 01 7E 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 71 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 20 02 00 35 04 06 00 31 4D E4 23 EA 86 D1 97 DA AD EB 96 6C 72 [12:24: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 37 36 4F 00 00 00 02 11 47 00 71 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 37 36 10 04 04 00 33 20 02 00 F4 03 04 00 08 E0 C2 66 B6 04 01 00 00 1F 3A F7 52 41 9E 22 AE [12:24:20]CommunicateWithHost err = 0 [12:24:20]CheckOFDResponse [12:24:20]1017 (14) - 77093643461234 [12:24:20]1041 (16) - 0000000000871776 [12:24:20]1040 (4) - 139315 [12:24:20]1012 (4) - 19.08.2024 06:02 [12:24:20]1206 (1) - 0 [12:24:20]OFD Sender: Remove packet 139315 [12:24:20]ProducePacketName [12:24:20]name=ofd_packets/00139315 [12:24:20]NVStorageDeleteData [12:24:20]Write to MH i2c: 01 00 00 BD 02 BF [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: 01 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: 01 07 00 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: 01 07 00 BD 02 00 00 00 00 00 E3 0C B5 [12:24:20]RasterBufferAndPrint [12:24:20]line [12:24:20]line [12:24:20]line [12:24:20]line [12:24:20]line [12:24:20]written 0, free lines is 3311 [12:24:20]MH_Cut [12:24:20]Write to MH i2c: D1 01 00 C4 02 01 98 [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: D1 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: D1 01 00 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: D1 01 00 C4 02 00 97 [12:24:20]Write to MH i2c: 01 00 00 C5 02 C7 [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]OFD Sender: No OFD packet to send [12:24:20]*** Cut start [12:24:20]*** Partial cut [12:24:20]*** CUTSNS_PIN = 1 [12:24:20]*** CUTSNS_PIN = 0 [12:24:21]*** Brake cut motor [12:24:21]Read from MH i2c: 01 [12:24:21]MH_I2C_Read... [12:24:21]*** Stop cut motor [12:24:21]*** Cut end [12:24:21]Read from MH i2c: 01 07 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 FF 0F DC [12:24:21]process_action close_receipt done [12:24:21]requested_data is exist [12:24:21]produce_requested_data [12:24:21]requested_item fm.sn is exist - process it [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 11 00 00 [12:24:21]Write to MH i2c: E2 08 00 C6 02 80 11 00 00 00 00 00 00 42 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 C6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 99 [12:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:21]wFMCommunicate OK [12:24:21]requested_item fd.num is exist - process it [12:24:21]SAM_PROTO_GetFieldsCounters [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 13 00 00 [12:24:21]Write to MH i2c: E2 08 00 C7 02 80 13 00 00 00 00 00 00 45 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 62 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 62 00 C7 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 33 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [12:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 33 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_GetFieldsCounters done [12:24:21]requested_item shift.num is exist - process it [12:24:21]requested_item shift.opened is exist - process it [12:24:21]req_shift_opened [12:24:21]FM_GetShiftState [12:24:21]SAM_PROTO_GetShiftState [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 13 01 00 [12:24:21]Write to MH i2c: E2 08 00 C8 02 80 13 01 00 00 00 00 00 47 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0E 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0E 00 C8 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FE [12:24:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_GetShiftState done [12:24:21]FM_GetShiftState done [12:24:21]req_shift_opened done [12:24:21]requested_item shift.open_date is exist - process it [12:24:21]req_shift_open_date [12:24:21]req_shift_open_date done [12:24:21]produce_requested_data done [12:24:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139315,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:24:21]process_action_free close_receipt [12:24:21]json_value_free [12:24:21]json_value_free done [12:24:21]process_json_proto returns [12:24:21]Send response to host [12:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139315,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:24:21]free response buf [12:24:21]execute_script done [12:24:21]execute_script returns [12:24:21]free content buf [12:24:21]Sock 8.Close socket [12:24:21]Sock 8.Thread stoped [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:41]accept exits with 9 [12:24:41]New connection [12:24:41]New thread 3066674532 created [12:24:41]Thread 3066817892 joined [12:24:41]Waiting for new connection... [12:24:41] Sock 9.Parse request [12:24:41]Sock 9.Check first char [12:24:41]Sock 9.First char is OK [12:24:41]request: POST /json_proto HTTP/1.0 [12:24:41]Method: POST [12:24:41]URL: /json_proto [12:24:41]Method is POST - this is cgi request [12:24:41]url: /json_proto [12:24:41]query_string will be loaded in cgi processing [12:24:41]execute_cgi json_proto POST (null) [12:24:41]execute_cgi path=json_proto method=POST [12:24:41]POST find Content-Length [12:24:41]Host: 172.17.45.67:8080 [12:24:41]Content-Length: 677 [12:24:41]Content-Type: application/json [12:24:41] [12:24:41]POST finish read [12:24:41]Found Content-Length = 677 [12:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:24:41]execute_script... [12:24: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)593157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:24:41]POST & json_proto [12:24:41]process_json_proto [12:24:41]json parsed OK: [12:24:41]protocol is kg_v1.0 [12:24:41]action value=close_receipt [12:24:41]process_action close_receipt [12:24:41]cmd_close_receipt [12:24:41]MH_GetDate [12:24:41]Write to MH i2c: F0 00 00 C9 02 BA [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: F0 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: F0 09 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: F0 09 00 C9 02 00 8A 39 C3 66 5F 7F 2B 66 1E [12:24:41]GetLastDocTimeStamp 1724070257 [12:24:41]current date 1724070282 [12:24:41]FM_GetShiftState [12:24:41]SAM_PROTO_GetShiftState [12:24:41]wFMCommunicate request_size=4 [12:24:41]MH_SAM_APDU [12:24:41]CAPDU: 80 13 01 00 [12:24:41]Write to MH i2c: E2 08 00 CA 02 80 13 01 00 00 00 00 00 49 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:41]Read from MH i2c: E2 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 0E 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: E2 0E 00 CA 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 00 [12:24:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:24:41]wFMCommunicate OK [12:24:41]SAM_PROTO_GetShiftState done [12:24:41]FM_GetShiftState done [12:24:41]opened in 1724027888 [12:24:41]opened+sec_in_day 1724114288 [12:24:41]quantity*price = 50036 [12:24:41]sum+1 = 50037 [12:24:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 151 19.08.2024 12:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139316 ФПД: 1146098765056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139316&fm=1146098765056&tin=02508201610067®Number=0000000000092569&sum=50000 [12:24:43]StoreToDocumentArchive [12:24:43]shift 452 fd 139316 [12:24:43]save to /storage/0452/doc_00139316 [12:24:43]save last doc name /storage/0452/doc_00139316 to /storage/kkm_last_doc_name [12:24:43]save OK [12:24:43]Clear old archive folders... [12:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:43]tlvbuf is 011E9590 [12:24:43]SAM_PROTO_ClearQueue [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 09 00 00 [12:24:43]Write to MH i2c: E2 08 00 D7 02 80 09 00 00 00 00 00 00 4B [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 03 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [12:24:43]RAPDU: 90 00 [12:24:43]wFMCommunicate OK [12:24:43]SAM_PROTO_ClearQueue done [12:24:43]KKMCreateOFDPacket [12:24:43]OFDProtocolAddRootSTLVToBuf [12:24:43]FM_MakeSignedData [12:24:43]FM_MakeSignedData [12:24:43]SAM_PROTO_SignData [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 0D 01 02 [12:24:43]Write to MH i2c: E2 08 00 D8 02 80 0D 01 02 00 00 00 00 53 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 03 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [12:24:43]RAPDU: 90 00 [12:24:43]wFMCommunicate OK [12:24:43]wFMCommunicate request_size=255 [12:24:43]MH_SAM_APDU [12:24: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 8A 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 20 02 00 35 04 06 00 01 [12:24:43]Write to MH i2c: E2 02 01 D9 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 8A 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 20 02 00 35 04 06 00 01 00 00 7B [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 03 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [12:24:43]RAPDU: 90 00 [12:24:43]wFMCommunicate OK [12:24:43]wFMCommunicate request_size=10 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 0D 02 02 05 0A D8 CF 4D 00 [12:24:43]Write to MH i2c: E2 0D 00 DA 02 80 0D 02 02 05 00 0A D8 CF 4D 00 00 00 5E [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 03 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 03 00 DA 02 00 90 00 50 [12:24:43]RAPDU: 90 00 [12:24:43]wFMCommunicate OK [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 0D 03 02 [12:24:43]Write to MH i2c: E2 08 00 DB 02 80 0D 03 02 00 00 00 00 58 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0B 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0B 00 DB 02 00 02 48 FB BB 73 E5 3B 4A 90 00 36 [12:24:43]RAPDU: 02 48 FB BB 73 E5 3B 4A 90 00 [12:24:43]wFMCommunicate OK [12:24:43]SAM_PROTO_SignData done [12:24:43]FM_MakeSignedData done [12:24:43]CreateOFDProtocolMessage [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 11 00 00 [12:24:43]Write to MH i2c: E2 08 00 DC 02 80 11 00 00 00 00 00 00 58 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 17 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 17 00 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AF [12:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:43]wFMCommunicate OK [12:24:43]CreateOFDProtocolMessage done [12:24:43]OFDSenderStorePacket 139316 [12:24:43]StoreOFDPacket docnum=139316 [12:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E0 05 07 01 B4 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 8A 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 20 02 00 35 04 06 00 01 0A D8 CF 4D 00 02 48 FB BB 73 E5 3B 4A [12:24:43]CheckFolder [12:24:43]dirname=/storage/ofd_packets [12:24:43]CheckFolder done [12:24:43]ProducePacketName [12:24:43]name=ofd_packets/00139316 [12:24:43]NVStorageSaveData ofd_packets/00139316 [12:24:43]File name is /storage/ofd_packets/00139316 [12:24:43]Write 301 bytes [12:24:43]NVStorageSaveData done [12:24:43]OFDSenderStorePacket done [12:24:43]KKMCreateOFDPacket done [12:24:43]NVStorageSaveData kkm_last_timestamp [12:24:43]File name is /storage/kkm_last_timestamp [12:24:43]Write 4 bytes [12:24:43]NVStorageSaveData done [12:24:43]ExternCall_PrintAddStr [12:24:43]wPrintStart [12:24:43]Write to MH i2c: 01 00 00 DD 02 DF [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: 01 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: 01 07 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 FF 0F F4 [12:24:43]RasterBufferAndPrint [12:24:43]line Счет N : (1)593157 [12:24:43]line ИНН: 02508201610067 [12:24:43]line Контрольно-Кассовый Чек [12:24:43]line ПРОДАЖА [12:24:43]line ТРК (МРК, ГНК) : 62 [12:24:43]line Товар: 2710124130 [12:24:43]line Аи-92-К-5 [12:24:43]line 7.380 * 67.80 [12:24:43]line = 500.36 [12:24:43]line НДС 12% НСП 1% [12:24:43]line > о реализуемом товаре [12:24:43]line ОКРУГЛЕНИЕ: -0.36 [12:24:43]line ИТОГО: 500.00 [12:24:43]line Внесено: 500.00 [12:24:43]line СДАЧА: 0.00 [12:24:43]line НСП 1% : 4.43 [12:24:43]line НДС 12% : 53.14 [12:24:43]line Наличными: 500.00 [12:24:43]line Безнал.: 0.00 [12:24:43]line Место: АЗС № 136 "Партнер Нефть" [12:24:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:24:43]line СНО: Общий режим [12:24:43]line Чек 151 19.08.2024 12:24 [12:24:43]line Смена: 452 ФФД: 1.0 [12:24:43]line ЗНМ: 0300000067 [12:24:43]line РНМ: 0000000000092569 [12:24:43]line Версия ККМ: 001 [12:24:43]line ФМ: 0000000000871776 [12:24:43]line ФД: 139316 [12:24:43]line ФПД: 1146098765056 [12:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139316&fm=1146098765056&tin=02508201610067®Number=0000000000092569&sum=50000 [12:24:43]OFD Sender: Processing packet 139316 [packets to send 137, broken 136] [12:24:43]ProducePacketName [12:24:43]name=ofd_packets/00139316 [12:24:43]OFD Sender: To server: pG, [12:24:43]CommunicateWithHost lk.salyk.kg:30040 [12:24:43]ConnectInit lk.salyk.kg [12:24:43]written 0, free lines is 4095 [12:24:43]Connected sock=10 [12:24: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 37 36 0F 01 00 00 E0 05 07 01 B4 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 8A 39 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 20 02 00 35 04 06 00 01 0A D8 CF 4D 00 02 48 FB BB 73 E5 3B 4A [12:24: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 37 36 4F 00 00 00 3D CC 47 00 A3 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 37 36 10 04 04 00 34 20 02 00 F4 03 04 00 20 E0 C2 66 B6 04 01 00 00 0A 19 F8 35 58 E2 DB D1 [12:24:44]CommunicateWithHost err = 0 [12:24:44]CheckOFDResponse [12:24:44]1017 (14) - 77093643461234 [12:24:44]1041 (16) - 0000000000871776 [12:24:44]1040 (4) - 139316 [12:24:44]1012 (4) - 19.08.2024 06:03 [12:24:44]1206 (1) - 0 [12:24:44]OFD Sender: Remove packet 139316 [12:24:44]ProducePacketName [12:24:44]name=ofd_packets/00139316 [12:24:44]NVStorageDeleteData [12:24:44]Write to MH i2c: 01 00 00 08 03 0B [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 07 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 CD 0C EB [12:24:44]RasterBufferAndPrint [12:24:44]line [12:24:44]line [12:24:44]line [12:24:44]line [12:24:44]line [12:24:44]written 0, free lines is 3283 [12:24:44]MH_Cut [12:24:44]Write to MH i2c: D1 01 00 0F 03 01 E4 [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: D1 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: D1 01 00 [12:24:44]MH_I2C_Read... [12:24:44]Read from MH i2c: D1 01 00 0F 03 00 E3 [12:24:44]Write to MH i2c: 01 00 00 10 03 13 [12:24:44]Write i2c OK [12:24:44]MH_I2C_Read... [12:24:44]OFD Sender: No OFD packet to send [12:24:44]*** Cut start [12:24:44]*** Partial cut [12:24:44]*** CUTSNS_PIN = 1 [12:24:44]*** CUTSNS_PIN = 0 [12:24:44]*** Brake cut motor [12:24:45]Read from MH i2c: 01 [12:24:45]MH_I2C_Read... [12:24:45]*** Stop cut motor [12:24:45]*** Cut end [12:24:45]Read from MH i2c: 01 07 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: 01 07 00 10 03 00 00 00 00 00 FF 0F 28 [12:24:45]process_action close_receipt done [12:24:45]requested_data is exist [12:24:45]produce_requested_data [12:24:45]requested_item fm.sn is exist - process it [12:24:45]wFMCommunicate request_size=4 [12:24:45]MH_SAM_APDU [12:24:45]CAPDU: 80 11 00 00 [12:24:45]Write to MH i2c: E2 08 00 11 03 80 11 00 00 00 00 00 00 8E [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:45]Read from MH i2c: E2 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 17 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 17 00 11 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E5 [12:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:45]wFMCommunicate OK [12:24:45]requested_item fd.num is exist - process it [12:24:45]SAM_PROTO_GetFieldsCounters [12:24:45]wFMCommunicate request_size=4 [12:24:45]MH_SAM_APDU [12:24:45]CAPDU: 80 13 00 00 [12:24:45]Write to MH i2c: E2 08 00 12 03 80 13 00 00 00 00 00 00 91 [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:45]Read from MH i2c: E2 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 62 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 62 00 12 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:45]wFMCommunicate OK [12:24:45]SAM_PROTO_GetFieldsCounters done [12:24:45]requested_item shift.num is exist - process it [12:24:45]requested_item shift.opened is exist - process it [12:24:45]req_shift_opened [12:24:45]FM_GetShiftState [12:24:45]SAM_PROTO_GetShiftState [12:24:45]wFMCommunicate request_size=4 [12:24:45]MH_SAM_APDU [12:24:45]CAPDU: 80 13 01 00 [12:24:45]Write to MH i2c: E2 08 00 13 03 80 13 01 00 00 00 00 00 93 [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:45]Read from MH i2c: E2 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 0E 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 0E 00 13 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4A [12:24:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:24:45]wFMCommunicate OK [12:24:45]SAM_PROTO_GetShiftState done [12:24:45]FM_GetShiftState done [12:24:45]req_shift_opened done [12:24:45]requested_item shift.open_date is exist - process it [12:24:45]req_shift_open_date [12:24:45]req_shift_open_date done [12:24:45]produce_requested_data done [12:24:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139316,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:24:45]process_action_free close_receipt [12:24:45]json_value_free [12:24:45]json_value_free done [12:24:45]process_json_proto returns [12:24:45]Send response to host [12:24:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139316,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:24:45]free response buf [12:24:45]execute_script done [12:24:45]execute_script returns [12:24:45]free content buf [12:24:45]Sock 9.Close socket [12:24:45]Sock 9.Thread stoped [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:23]accept exits with 8 [12:29:23]New connection [12:29:23]New thread 3066817892 created [12:29:23]Thread 3066674532 joined [12:29:23]Waiting for new connection... [12:29:23] Sock 8.Parse request [12:29:23]Sock 8.Check first char [12:29:23]Sock 8.First char is OK [12:29:23]request: POST /json_proto HTTP/1.0 [12:29:23]Method: POST [12:29:23]URL: /json_proto [12:29:23]Method is POST - this is cgi request [12:29:23]url: /json_proto [12:29:23]query_string will be loaded in cgi processing [12:29:23]execute_cgi json_proto POST (null) [12:29:23]execute_cgi path=json_proto method=POST [12:29:23]POST find Content-Length [12:29:23]Host: 172.17.45.67:8080 [12:29:23]Content-Length: 677 [12:29:23]Content-Type: application/json [12:29:23] [12:29:23]POST finish read [12:29:23]Found Content-Length = 677 [12:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:23]execute_script... [12:29:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:23]POST & json_proto [12:29:23]process_json_proto [12:29:23]json parsed OK: [12:29:23]protocol is kg_v1.0 [12:29:23]action value=close_receipt [12:29:23]process_action close_receipt [12:29:23]cmd_close_receipt [12:29:23]MH_GetDate [12:29:23]Write to MH i2c: F0 00 00 14 03 06 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: F0 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: F0 09 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: F0 09 00 14 03 00 A3 3A C3 66 5F 7F 2B 66 84 [12:29:23]GetLastDocTimeStamp 1724070282 [12:29:23]current date 1724070563 [12:29:23]FM_GetShiftState [12:29:23]SAM_PROTO_GetShiftState [12:29:23]wFMCommunicate request_size=4 [12:29:23]MH_SAM_APDU [12:29:23]CAPDU: 80 13 01 00 [12:29:23]Write to MH i2c: E2 08 00 15 03 80 13 01 00 00 00 00 00 95 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:23]Read from MH i2c: E2 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 0E 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 0E 00 15 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4C [12:29:23]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:29:23]wFMCommunicate OK [12:29:23]SAM_PROTO_GetShiftState done [12:29:23]FM_GetShiftState done [12:29:23]opened in 1724027888 [12:29:23]opened+sec_in_day 1724114288 [12:29:23]quantity*price = 50036 [12:29:23]sum+1 = 50037 [12:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 152 19.08.2024 12:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139317 ФПД: 253343006898098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122923&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139317&fm=253343006898098&tin=02508201610067®Number=0000000000092569&sum=50000 [12:29:24]StoreToDocumentArchive [12:29:24]shift 452 fd 139317 [12:29:24]save to /storage/0452/doc_00139317 [12:29:24]save last doc name /storage/0452/doc_00139317 to /storage/kkm_last_doc_name [12:29:24]save OK [12:29:24]Clear old archive folders... [12:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:24]tlvbuf is 011EC090 [12:29:24]SAM_PROTO_ClearQueue [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 09 00 00 [12:29:24]Write to MH i2c: E2 08 00 22 03 80 09 00 00 00 00 00 00 97 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [12:29:24]RAPDU: 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_ClearQueue done [12:29:24]KKMCreateOFDPacket [12:29:24]OFDProtocolAddRootSTLVToBuf [12:29:24]FM_MakeSignedData [12:29:24]FM_MakeSignedData [12:29:24]SAM_PROTO_SignData [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 0D 01 02 [12:29:24]Write to MH i2c: E2 08 00 23 03 80 0D 01 02 00 00 00 00 9F [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [12:29:24]RAPDU: 90 00 [12:29:24]wFMCommunicate OK [12:29:24]wFMCommunicate request_size=255 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A3 3A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 20 02 00 35 04 06 00 E6 [12:29:24]Write to MH i2c: E2 02 01 24 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A3 3A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 20 02 00 35 04 06 00 E6 00 00 C8 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 24 03 00 90 00 9B [12:29:24]RAPDU: 90 00 [12:29:24]wFMCommunicate OK [12:29:24]wFMCommunicate request_size=10 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 0D 02 02 05 6A 03 EE B7 B2 [12:29:24]Write to MH i2c: E2 0D 00 25 03 80 0D 02 02 05 00 6A 03 EE B7 B2 00 00 70 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 03 00 25 03 00 90 00 9C [12:29:24]RAPDU: 90 00 [12:29:24]wFMCommunicate OK [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 0D 03 02 [12:29:24]Write to MH i2c: E2 08 00 26 03 80 0D 03 02 00 00 00 00 A4 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0B 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0B 00 26 03 00 3A 97 08 16 5E 36 F0 E1 90 00 F9 [12:29:24]RAPDU: 3A 97 08 16 5E 36 F0 E1 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_SignData done [12:29:24]FM_MakeSignedData done [12:29:24]CreateOFDProtocolMessage [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 11 00 00 [12:29:24]Write to MH i2c: E2 08 00 27 03 80 11 00 00 00 00 00 00 A4 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 17 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 17 00 27 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FB [12:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:29:24]wFMCommunicate OK [12:29:24]CreateOFDProtocolMessage done [12:29:24]OFDSenderStorePacket 139317 [12:29:24]StoreOFDPacket docnum=139317 [12:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 41 E5 07 01 6C E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A3 3A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 20 02 00 35 04 06 00 E6 6A 03 EE B7 B2 3A 97 08 16 5E 36 F0 E1 [12:29:24]CheckFolder [12:29:24]dirname=/storage/ofd_packets [12:29:24]CheckFolder done [12:29:24]ProducePacketName [12:29:24]name=ofd_packets/00139317 [12:29:24]NVStorageSaveData ofd_packets/00139317 [12:29:24]File name is /storage/ofd_packets/00139317 [12:29:24]Write 301 bytes [12:29:24]NVStorageSaveData done [12:29:24]OFDSenderStorePacket done [12:29:24]KKMCreateOFDPacket done [12:29:24]NVStorageSaveData kkm_last_timestamp [12:29:24]File name is /storage/kkm_last_timestamp [12:29:24]Write 4 bytes [12:29:24]NVStorageSaveData done [12:29:24]OFD Sender: Processing packet 139317 [packets to send 137, broken 136] [12:29:24]ProducePacketName [12:29:24]name=ofd_packets/00139317 [12:29:24]OFD Sender: To server: pG, [12:29:24]CommunicateWithHost lk.salyk.kg:30040 [12:29:24]ConnectInit lk.salyk.kg [12:29:24]ExternCall_PrintAddStr [12:29:24]wPrintStart [12:29:24]Write to MH i2c: 01 00 00 28 03 2B [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: 01 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: 01 07 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 FF 0F 40 [12:29:24]RasterBufferAndPrint [12:29:24]line Счет N : (1)593159 [12:29:24]line ИНН: 02508201610067 [12:29:24]line Контрольно-Кассовый Чек [12:29:24]line ПРОДАЖА [12:29:24]line ТРК (МРК, ГНК) : 42 [12:29:24]line Товар: 2710124130 [12:29:24]line Аи-92-К-5 [12:29:24]line 7.380 * 67.80 [12:29:24]line = 500.36 [12:29:24]line НДС 12% НСП 1% [12:29:24]line > о реализуемом товаре [12:29:24]line ОКРУГЛЕНИЕ: -0.36 [12:29:24]line ИТОГО: 500.00 [12:29:24]line Внесено: 500.00 [12:29:24]line СДАЧА: 0.00 [12:29:24]line НСП 1% : 4.43 [12:29:24]line НДС 12% : 53.14 [12:29:24]line Наличными: 500.00 [12:29:24]line Безнал.: 0.00 [12:29:24]line Место: АЗС № 136 "Партнер Нефть" [12:29:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:29:24]line СНО: Общий режим [12:29:24]line Чек 152 19.08.2024 12:29 [12:29:24]line Смена: 452 ФФД: 1.0 [12:29:24]line ЗНМ: 0300000067 [12:29:24]line РНМ: 0000000000092569 [12:29:24]line Версия ККМ: 001 [12:29:24]line ФМ: 0000000000871776 [12:29:24]line ФД: 139317 [12:29:24]line ФПД: 253343006898098 [12:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122923&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139317&fm=253343006898098&tin=02508201610067®Number=0000000000092569&sum=50000 [12:29:25]Connected sock=11 [12:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 41 E5 07 01 6C E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A3 3A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 20 02 00 35 04 06 00 E6 6A 03 EE B7 B2 3A 97 08 16 5E 36 F0 E1 [12:29:25]written 0, free lines is 4095 [12:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4B AE 47 00 98 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 37 36 10 04 04 00 35 20 02 00 F4 03 04 00 39 E1 C2 66 B6 04 01 00 00 C7 20 8C D6 57 B5 0F CC [12:29:25]CommunicateWithHost err = 0 [12:29:25]CheckOFDResponse [12:29:25]1017 (14) - 77093643461234 [12:29:25]1041 (16) - 0000000000871776 [12:29:25]1040 (4) - 139317 [12:29:25]1012 (4) - 19.08.2024 06:07 [12:29:25]1206 (1) - 0 [12:29:25]OFD Sender: Remove packet 139317 [12:29:25]ProducePacketName [12:29:25]name=ofd_packets/00139317 [12:29:25]NVStorageDeleteData [12:29:25]Write to MH i2c: 01 00 00 53 03 56 [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: 01 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: 01 07 00 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 C7 0C 30 [12:29:25]RasterBufferAndPrint [12:29:25]line [12:29:25]line [12:29:25]line [12:29:25]line [12:29:25]line [12:29:25]written 0, free lines is 3277 [12:29:25]MH_Cut [12:29:25]Write to MH i2c: D1 01 00 5A 03 01 2F [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: D1 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: D1 01 00 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: D1 01 00 5A 03 00 2E [12:29:25]Write to MH i2c: 01 00 00 5B 03 5E [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]OFD Sender: No OFD packet to send [12:29:26]*** Cut start [12:29:26]*** Partial cut [12:29:26]*** CUTSNS_PIN = 1 [12:29:26]*** CUTSNS_PIN = 0 [12:29:26]*** Brake cut motor [12:29:27]Read from MH i2c: 01 [12:29:27]MH_I2C_Read... [12:29:27]*** Stop cut motor [12:29:27]*** Cut end [12:29:27]Read from MH i2c: 01 07 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 FF 0F 73 [12:29:27]process_action close_receipt done [12:29:27]requested_data is exist [12:29:27]produce_requested_data [12:29:27]requested_item fm.sn is exist - process it [12:29:27]wFMCommunicate request_size=4 [12:29:27]MH_SAM_APDU [12:29:27]CAPDU: 80 11 00 00 [12:29:27]Write to MH i2c: E2 08 00 5C 03 80 11 00 00 00 00 00 00 D9 [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:27]Read from MH i2c: E2 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 17 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 17 00 5C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 30 [12:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:29:27]wFMCommunicate OK [12:29:27]requested_item fd.num is exist - process it [12:29:27]SAM_PROTO_GetFieldsCounters [12:29:27]wFMCommunicate request_size=4 [12:29:27]MH_SAM_APDU [12:29:27]CAPDU: 80 13 00 00 [12:29:27]Write to MH i2c: E2 08 00 5D 03 80 13 00 00 00 00 00 00 DC [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:27]Read from MH i2c: E2 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 62 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 62 00 5D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [12:29:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:27]wFMCommunicate OK [12:29:27]SAM_PROTO_GetFieldsCounters done [12:29:27]requested_item shift.num is exist - process it [12:29:27]requested_item shift.opened is exist - process it [12:29:27]req_shift_opened [12:29:27]FM_GetShiftState [12:29:27]SAM_PROTO_GetShiftState [12:29:27]wFMCommunicate request_size=4 [12:29:27]MH_SAM_APDU [12:29:27]CAPDU: 80 13 01 00 [12:29:27]Write to MH i2c: E2 08 00 5E 03 80 13 01 00 00 00 00 00 DE [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 [12:29:27]MH_I2C_Read... [12:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:27]Read from MH i2c: E2 0E 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 0E 00 5E 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 95 [12:29:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:29:27]wFMCommunicate OK [12:29:27]SAM_PROTO_GetShiftState done [12:29:27]FM_GetShiftState done [12:29:27]req_shift_opened done [12:29:27]requested_item shift.open_date is exist - process it [12:29:27]req_shift_open_date [12:29:27]req_shift_open_date done [12:29:27]produce_requested_data done [12:29:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139317,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:29:27]process_action_free close_receipt [12:29:27]json_value_free [12:29:27]json_value_free done [12:29:27]process_json_proto returns [12:29:27]Send response to host [12:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139317,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:29:27]free response buf [12:29:27]execute_script done [12:29:27]execute_script returns [12:29:27]free content buf [12:29:27]Sock 8.Close socket [12:29:27]Sock 8.Thread stoped [12:29:27]accept exits with 9 [12:29:27]New connection [12:29:27]New thread 3066674532 created [12:29:27]Thread 3066817892 joined [12:29:27]Waiting for new connection... [12:29:27] Sock 9.Parse request [12:29:27]Sock 9.Check first char [12:29:27]Sock 9.First char is OK [12:29:27]request: POST /json_proto HTTP/1.0 [12:29:27]Method: POST [12:29:27]URL: /json_proto [12:29:27]Method is POST - this is cgi request [12:29:27]url: /json_proto [12:29:27]query_string will be loaded in cgi processing [12:29:27]execute_cgi json_proto POST (null) [12:29:27]execute_cgi path=json_proto method=POST [12:29:27]POST find Content-Length [12:29:27]Host: 172.17.45.67:8080 [12:29:27]Content-Length: 677 [12:29:27]Content-Type: application/json [12:29:27] [12:29:27]POST finish read [12:29:27]Found Content-Length = 677 [12:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:27]execute_script... [12:29: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)593158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:27]POST & json_proto [12:29:27]process_json_proto [12:29:27]json parsed OK: [12:29:27]protocol is kg_v1.0 [12:29:27]action value=close_receipt [12:29:27]process_action close_receipt [12:29:27]cmd_close_receipt [12:29:27]MH_GetDate [12:29:27]Write to MH i2c: F0 00 00 5F 03 51 [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: F0 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: F0 09 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: F0 09 00 5F 03 00 A8 3A C3 66 5F 7F 2B 66 D4 [12:29:27]GetLastDocTimeStamp 1724070563 [12:29:27]current date 1724070568 [12:29:27]FM_GetShiftState [12:29:27]SAM_PROTO_GetShiftState [12:29:27]wFMCommunicate request_size=4 [12:29:27]MH_SAM_APDU [12:29:27]CAPDU: 80 13 01 00 [12:29:27]Write to MH i2c: E2 08 00 60 03 80 13 01 00 00 00 00 00 E0 [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:27]Read from MH i2c: E2 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 0E 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 0E 00 60 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 97 [12:29:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:29:27]wFMCommunicate OK [12:29:27]SAM_PROTO_GetShiftState done [12:29:27]FM_GetShiftState done [12:29:27]opened in 1724027888 [12:29:27]opened+sec_in_day 1724114288 [12:29:27]quantity*price = 50036 [12:29:27]sum+1 = 50037 [12:29:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 153 19.08.2024 12:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139318 ФПД: 278287576023300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139318&fm=278287576023300&tin=02508201610067®Number=0000000000092569&sum=50000 [12:29:28]StoreToDocumentArchive [12:29:28]shift 452 fd 139318 [12:29:28]save to /storage/0452/doc_00139318 [12:29:28]save last doc name /storage/0452/doc_00139318 to /storage/kkm_last_doc_name [12:29:28]save OK [12:29:28]Clear old archive folders... [12:29:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:28]tlvbuf is 011EDAE0 [12:29:28]SAM_PROTO_ClearQueue [12:29:28]wFMCommunicate request_size=4 [12:29:28]MH_SAM_APDU [12:29:28]CAPDU: 80 09 00 00 [12:29:28]Write to MH i2c: E2 08 00 6D 03 80 09 00 00 00 00 00 00 E2 [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:28]Read from MH i2c: E2 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 03 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 03 00 6D 03 00 90 00 E4 [12:29:28]RAPDU: 90 00 [12:29:28]wFMCommunicate OK [12:29:28]SAM_PROTO_ClearQueue done [12:29:28]KKMCreateOFDPacket [12:29:28]OFDProtocolAddRootSTLVToBuf [12:29:28]FM_MakeSignedData [12:29:28]FM_MakeSignedData [12:29:28]SAM_PROTO_SignData [12:29:28]wFMCommunicate request_size=4 [12:29:28]MH_SAM_APDU [12:29:28]CAPDU: 80 0D 01 02 [12:29:28]Write to MH i2c: E2 08 00 6E 03 80 0D 01 02 00 00 00 00 EA [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:28]Read from MH i2c: E2 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 03 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 03 00 6E 03 00 90 00 E5 [12:29:28]RAPDU: 90 00 [12:29:28]wFMCommunicate OK [12:29:28]wFMCommunicate request_size=255 [12:29:28]MH_SAM_APDU [12:29: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 99 00 00 00 F4 03 04 00 A8 3A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 20 02 00 35 04 06 00 FD [12:29:28]Write to MH i2c: E2 02 01 6F 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 99 00 00 00 F4 03 04 00 A8 3A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 20 02 00 35 04 06 00 FD 00 00 31 [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 6F 03 00 90 00 E6 [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]wFMCommunicate request_size=10 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 0D 02 02 05 19 E0 1D 41 04 [12:29:29]Write to MH i2c: E2 0D 00 70 03 80 0D 02 02 05 00 19 E0 1D 41 04 00 00 52 [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 70 03 00 90 00 E7 [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 0D 03 02 [12:29:29]Write to MH i2c: E2 08 00 71 03 80 0D 03 02 00 00 00 00 EF [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 0B 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 0B 00 71 03 00 FF C5 0A 88 68 F2 8A CB 90 00 F5 [12:29:29]RAPDU: FF C5 0A 88 68 F2 8A CB 90 00 [12:29:29]wFMCommunicate OK [12:29:29]SAM_PROTO_SignData done [12:29:29]FM_MakeSignedData done [12:29:29]CreateOFDProtocolMessage [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 11 00 00 [12:29:29]Write to MH i2c: E2 08 00 72 03 80 11 00 00 00 00 00 00 EF [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 17 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 17 00 72 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 46 [12:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:29:29]wFMCommunicate OK [12:29:29]CreateOFDProtocolMessage done [12:29:29]OFDSenderStorePacket 139318 [12:29:29]StoreOFDPacket docnum=139318 [12:29:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 20 E8 07 01 2B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 99 00 00 00 F4 03 04 00 A8 3A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 20 02 00 35 04 06 00 FD 19 E0 1D 41 04 FF C5 0A 88 68 F2 8A CB [12:29:29]CheckFolder [12:29:29]dirname=/storage/ofd_packets [12:29:29]CheckFolder done [12:29:29]ProducePacketName [12:29:29]name=ofd_packets/00139318 [12:29:29]NVStorageSaveData ofd_packets/00139318 [12:29:29]File name is /storage/ofd_packets/00139318 [12:29:29]Write 301 bytes [12:29:29]NVStorageSaveData done [12:29:29]OFDSenderStorePacket done [12:29:29]KKMCreateOFDPacket done [12:29:29]NVStorageSaveData kkm_last_timestamp [12:29:29]File name is /storage/kkm_last_timestamp [12:29:29]Write 4 bytes [12:29:29]NVStorageSaveData done [12:29:29]ExternCall_PrintAddStr [12:29:29]wPrintStart [12:29:29]Write to MH i2c: 01 00 00 73 03 76 [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: 01 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: 01 07 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 FF 0F 8B [12:29:29]RasterBufferAndPrint [12:29:29]line Счет N : (1)593158 [12:29:29]line ИНН: 02508201610067 [12:29:29]line Контрольно-Кассовый Чек [12:29:29]line ПРОДАЖА [12:29:29]line ТРК (МРК, ГНК) : 32 [12:29:29]line Товар: 2710124130 [12:29:29]line Аи-92-К-5 [12:29:29]line 7.380 * 67.80 [12:29:29]line = 500.36 [12:29:29]line НДС 12% НСП 1% [12:29:29]line > о реализуемом товаре [12:29:29]line ОКРУГЛЕНИЕ: -0.36 [12:29:29]line ИТОГО: 500.00 [12:29:29]line Внесено: 500.00 [12:29:29]line СДАЧА: 0.00 [12:29:29]line НСП 1% : 4.43 [12:29:29]line НДС 12% : 53.14 [12:29:29]line Наличными: 500.00 [12:29:29]line Безнал.: 0.00 [12:29:30]line Место: АЗС № 136 "Партнер Нефть" [12:29:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:29:30]line СНО: Общий режим [12:29:30]line Чек 153 19.08.2024 12:29 [12:29:30]line Смена: 452 ФФД: 1.0 [12:29:30]line ЗНМ: 0300000067 [12:29:30]line РНМ: 0000000000092569 [12:29:30]line Версия ККМ: 001 [12:29:30]line ФМ: 0000000000871776 [12:29:30]line ФД: 139318 [12:29:30]line ФПД: 278287576023300 [12:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139318&fm=278287576023300&tin=02508201610067®Number=0000000000092569&sum=50000 [12:29:30]OFD Sender: Processing packet 139318 [packets to send 137, broken 136] [12:29:30]ProducePacketName [12:29:30]name=ofd_packets/00139318 [12:29:30]written 0, free lines is 4095 [12:29:30]OFD Sender: To server: pG, [12:29:30]CommunicateWithHost lk.salyk.kg:30040 [12:29:30]ConnectInit lk.salyk.kg [12:29:30]Connected sock=8 [12:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 20 E8 07 01 2B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 99 00 00 00 F4 03 04 00 A8 3A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 20 02 00 35 04 06 00 FD 19 E0 1D 41 04 FF C5 0A 88 68 F2 8A CB [12:29: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 37 36 4F 00 00 00 67 4E 47 00 7B 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 37 36 10 04 04 00 36 20 02 00 F4 03 04 00 3E E1 C2 66 B6 04 01 00 00 2B 9C 9C F7 23 77 9E 6E [12:29:30]CommunicateWithHost err = 0 [12:29:30]CheckOFDResponse [12:29:30]1017 (14) - 77093643461234 [12:29:30]1041 (16) - 0000000000871776 [12:29:30]1040 (4) - 139318 [12:29:30]1012 (4) - 19.08.2024 06:07 [12:29:30]1206 (1) - 0 [12:29:30]OFD Sender: Remove packet 139318 [12:29:30]ProducePacketName [12:29:30]name=ofd_packets/00139318 [12:29:30]NVStorageDeleteData [12:29:30]Write to MH i2c: 01 00 00 9E 03 A1 [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 07 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 D7 0C 8B [12:29:30]RasterBufferAndPrint [12:29:30]line [12:29:30]line [12:29:30]line [12:29:30]line [12:29:30]line [12:29:30]written 0, free lines is 3300 [12:29:30]MH_Cut [12:29:30]Write to MH i2c: D1 01 00 A5 03 01 7A [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: D1 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: D1 01 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: D1 01 00 A5 03 00 79 [12:29:30]Write to MH i2c: 01 00 00 A6 03 A9 [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]OFD Sender: No OFD packet to send [12:29:31]*** Cut start [12:29:31]*** Partial cut [12:29:31]*** CUTSNS_PIN = 1 [12:29:31]*** CUTSNS_PIN = 0 [12:29:31]*** Brake cut motor [12:29:31]Read from MH i2c: 01 [12:29:31]MH_I2C_Read... [12:29:31]*** Stop cut motor [12:29:31]*** Cut end [12:29:31]Read from MH i2c: 01 07 00 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: 01 07 00 A6 03 00 00 00 00 00 FF 0F BE [12:29:31]process_action close_receipt done [12:29:31]requested_data is exist [12:29:31]produce_requested_data [12:29:31]requested_item fm.sn is exist - process it [12:29:31]wFMCommunicate request_size=4 [12:29:31]MH_SAM_APDU [12:29:31]CAPDU: 80 11 00 00 [12:29:31]Write to MH i2c: E2 08 00 A7 03 80 11 00 00 00 00 00 00 24 [12:29:31]Write i2c OK [12:29:31]MH_I2C_Read... [12:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:31]Read from MH i2c: E2 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 17 00 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 17 00 A7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7B [12:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:29:31]wFMCommunicate OK [12:29:31]requested_item fd.num is exist - process it [12:29:31]SAM_PROTO_GetFieldsCounters [12:29:31]wFMCommunicate request_size=4 [12:29:31]MH_SAM_APDU [12:29:31]CAPDU: 80 13 00 00 [12:29:31]Write to MH i2c: E2 08 00 A8 03 80 13 00 00 00 00 00 00 27 [12:29:31]Write i2c OK [12:29:31]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 62 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 62 00 A8 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [12:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:32]wFMCommunicate OK [12:29:32]SAM_PROTO_GetFieldsCounters done [12:29:32]requested_item shift.num is exist - process it [12:29:32]requested_item shift.opened is exist - process it [12:29:32]req_shift_opened [12:29:32]FM_GetShiftState [12:29:32]SAM_PROTO_GetShiftState [12:29:32]wFMCommunicate request_size=4 [12:29:32]MH_SAM_APDU [12:29:32]CAPDU: 80 13 01 00 [12:29:32]Write to MH i2c: E2 08 00 A9 03 80 13 01 00 00 00 00 00 29 [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0E 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0E 00 A9 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E0 [12:29:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:29:32]wFMCommunicate OK [12:29:32]SAM_PROTO_GetShiftState done [12:29:32]FM_GetShiftState done [12:29:32]req_shift_opened done [12:29:32]requested_item shift.open_date is exist - process it [12:29:32]req_shift_open_date [12:29:32]req_shift_open_date done [12:29:32]produce_requested_data done [12:29:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139318,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:29:32]process_action_free close_receipt [12:29:32]json_value_free [12:29:32]json_value_free done [12:29:32]process_json_proto returns [12:29:32]Send response to host [12:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139318,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:29:32]free response buf [12:29:32]execute_script done [12:29:32]execute_script returns [12:29:32]free content buf [12:29:32]Sock 9.Close socket [12:29:32]Sock 9.Thread stoped [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:52]accept exits with 10 [12:32:52]New connection [12:32:52]New thread 3066817892 created [12:32:52]Thread 3066674532 joined [12:32:52]Waiting for new connection... [12:32:52] Sock 10.Parse request [12:32:52]Sock 10.Check first char [12:32:52]Sock 10.First char is OK [12:32:52]request: POST /json_proto HTTP/1.0 [12:32:52]Method: POST [12:32:52]URL: /json_proto [12:32:52]Method is POST - this is cgi request [12:32:52]url: /json_proto [12:32:52]query_string will be loaded in cgi processing [12:32:52]execute_cgi json_proto POST (null) [12:32:52]execute_cgi path=json_proto method=POST [12:32:52]POST find Content-Length [12:32:52]Host: 172.17.45.67:8080 [12:32:52]Content-Length: 682 [12:32:52]Content-Type: application/json [12:32:52] [12:32:52]POST finish read [12:32:52]Found Content-Length = 682 [12:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:32:52]execute_script... [12:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:32:52]POST & json_proto [12:32:52]process_json_proto [12:32:52]json parsed OK: [12:32:52]protocol is kg_v1.0 [12:32:52]action value=close_receipt [12:32:52]process_action close_receipt [12:32:52]cmd_close_receipt [12:32:52]MH_GetDate [12:32:52]Write to MH i2c: F0 00 00 AA 03 9C [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: F0 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: F0 09 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: F0 09 00 AA 03 00 74 3B C3 66 5F 7F 2B 66 EC [12:32:52]GetLastDocTimeStamp 1724070568 [12:32:52]current date 1724070772 [12:32:52]FM_GetShiftState [12:32:52]SAM_PROTO_GetShiftState [12:32:52]wFMCommunicate request_size=4 [12:32:52]MH_SAM_APDU [12:32:52]CAPDU: 80 13 01 00 [12:32:52]Write to MH i2c: E2 08 00 AB 03 80 13 01 00 00 00 00 00 2B [12:32:52]Write i2c OK [12:32:52]MH_I2C_Read... [12:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:52]Read from MH i2c: E2 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 0E 00 [12:32:52]MH_I2C_Read... [12:32:52]Read from MH i2c: E2 0E 00 AB 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E2 [12:32:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:32:52]wFMCommunicate OK [12:32:52]SAM_PROTO_GetShiftState done [12:32:52]FM_GetShiftState done [12:32:52]opened in 1724027888 [12:32:52]opened+sec_in_day 1724114288 [12:32:52]quantity*price = 100005 [12:32:52]sum+1 = 100006 [12:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 154 19.08.2024 12:32 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139319 ФПД: 31981373443728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123252&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139319&fm=31981373443728&tin=02508201610067®Number=0000000000092569&sum=100000 [12:32:53]StoreToDocumentArchive [12:32:53]shift 452 fd 139319 [12:32:53]save to /storage/0452/doc_00139319 [12:32:53]save last doc name /storage/0452/doc_00139319 to /storage/kkm_last_doc_name [12:32:53]save OK [12:32:53]Clear old archive folders... [12:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:53]tlvbuf is 011E7820 [12:32:53]SAM_PROTO_ClearQueue [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 09 00 00 [12:32:53]Write to MH i2c: E2 08 00 B8 03 80 09 00 00 00 00 00 00 2D [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]SAM_PROTO_ClearQueue done [12:32:53]KKMCreateOFDPacket [12:32:53]OFDProtocolAddRootSTLVToBuf [12:32:53]FM_MakeSignedData [12:32:53]FM_MakeSignedData [12:32:53]SAM_PROTO_SignData [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 01 02 [12:32:53]Write to MH i2c: E2 08 00 B9 03 80 0D 01 02 00 00 00 00 35 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]wFMCommunicate request_size=255 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 74 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 20 02 00 35 04 06 00 1D [12:32:53]Write to MH i2c: E2 02 01 BA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 74 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 20 02 00 35 04 06 00 1D 00 00 FA [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]wFMCommunicate request_size=10 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 02 02 05 16 3E 67 4E 90 [12:32:53]Write to MH i2c: E2 0D 00 BB 03 80 0D 02 02 05 00 16 3E 67 4E 90 00 00 DB [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [12:32:53]RAPDU: 90 00 [12:32:53]wFMCommunicate OK [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 0D 03 02 [12:32:53]Write to MH i2c: E2 08 00 BC 03 80 0D 03 02 00 00 00 00 3A [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 0B 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 0B 00 BC 03 00 BE B2 3C E2 8B 1A 78 7C 90 00 62 [12:32:53]RAPDU: BE B2 3C E2 8B 1A 78 7C 90 00 [12:32:53]wFMCommunicate OK [12:32:53]SAM_PROTO_SignData done [12:32:53]FM_MakeSignedData done [12:32:53]CreateOFDProtocolMessage [12:32:53]wFMCommunicate request_size=4 [12:32:53]MH_SAM_APDU [12:32:53]CAPDU: 80 11 00 00 [12:32:53]Write to MH i2c: E2 08 00 BD 03 80 11 00 00 00 00 00 00 3A [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:53]Read from MH i2c: E2 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 17 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: E2 17 00 BD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 91 [12:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:32:53]wFMCommunicate OK [12:32:53]CreateOFDProtocolMessage done [12:32:53]OFDSenderStorePacket 139319 [12:32:53]StoreOFDPacket docnum=139319 [12:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 06 C4 07 01 5F 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 74 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 20 02 00 35 04 06 00 1D 16 3E 67 4E 90 BE B2 3C E2 8B 1A 78 7C [12:32:53]CheckFolder [12:32:53]dirname=/storage/ofd_packets [12:32:53]CheckFolder done [12:32:53]ProducePacketName [12:32:53]name=ofd_packets/00139319 [12:32:53]NVStorageSaveData ofd_packets/00139319 [12:32:53]File name is /storage/ofd_packets/00139319 [12:32:53]Write 301 bytes [12:32:53]NVStorageSaveData done [12:32:53]OFDSenderStorePacket done [12:32:53]KKMCreateOFDPacket done [12:32:53]NVStorageSaveData kkm_last_timestamp [12:32:53]File name is /storage/kkm_last_timestamp [12:32:53]Write 4 bytes [12:32:53]NVStorageSaveData done [12:32:53]ExternCall_PrintAddStr [12:32:53]wPrintStart [12:32:53]Write to MH i2c: 01 00 00 BE 03 C1 [12:32:53]Write i2c OK [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 07 00 [12:32:53]MH_I2C_Read... [12:32:53]Read from MH i2c: 01 07 00 BE 03 00 00 00 00 00 FF 0F D6 [12:32:53]RasterBufferAndPrint [12:32:53]line Счет N : (1)593160 [12:32:53]line ИНН: 02508201610067 [12:32:53]line Контрольно-Кассовый Чек [12:32:53]line ПРОДАЖА [12:32:53]line ТРК (МРК, ГНК) : 52 [12:32:53]line Товар: 2710124130 [12:32:53]line Аи-92-К-5 [12:32:53]line 14.750 * 67.80 [12:32:53]line = 1000.05 [12:32:53]line НДС 12% НСП 1% [12:32:53]line > о реализуемом товаре [12:32:53]line ОКРУГЛЕНИЕ: -0.05 [12:32:53]line ИТОГО: 1000.00 [12:32:53]line Внесено: 1000.00 [12:32:53]line СДАЧА: 0.00 [12:32:53]line НСП 1% : 8.85 [12:32:53]line НДС 12% : 106.20 [12:32:53]line Наличными: 1000.00 [12:32:53]line Безнал.: 0.00 [12:32:53]line Место: АЗС № 136 "Партнер Нефть" [12:32:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:32:53]line СНО: Общий режим [12:32:53]line Чек 154 19.08.2024 12:32 [12:32:53]line Смена: 452 ФФД: 1.0 [12:32:53]line ЗНМ: 0300000067 [12:32:53]line РНМ: 0000000000092569 [12:32:53]line Версия ККМ: 001 [12:32:53]line ФМ: 0000000000871776 [12:32:53]line ФД: 139319 [12:32:53]line ФПД: 31981373443728 [12:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123252&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139319&fm=31981373443728&tin=02508201610067®Number=0000000000092569&sum=100000 [12:32:54]written 0, free lines is 4095 [12:32:54]OFD Sender: Processing packet 139319 [packets to send 137, broken 136] [12:32:54]ProducePacketName [12:32:54]name=ofd_packets/00139319 [12:32:54]OFD Sender: To server: pG, [12:32:54]CommunicateWithHost lk.salyk.kg:30040 [12:32:54]ConnectInit lk.salyk.kg [12:32:54]Connected sock=9 [12:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 06 C4 07 01 5F 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 74 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 20 02 00 35 04 06 00 1D 16 3E 67 4E 90 BE B2 3C E2 8B 1A 78 7C [12: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 37 36 4F 00 00 00 D0 93 47 00 FB 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 20 02 00 F4 03 04 00 0A E2 C2 66 B6 04 01 00 00 9A CD 58 75 49 08 42 6C [12:32:54]CommunicateWithHost err = 0 [12:32:54]CheckOFDResponse [12:32:54]1017 (14) - 77093643461234 [12:32:54]1041 (16) - 0000000000871776 [12:32:54]1040 (4) - 139319 [12:32:54]1012 (4) - 19.08.2024 06:11 [12:32:54]1206 (1) - 0 [12:32:54]OFD Sender: Remove packet 139319 [12:32:54]ProducePacketName [12:32:54]name=ofd_packets/00139319 [12:32:54]NVStorageDeleteData [12:32:54]Write to MH i2c: 01 00 00 E9 03 EC [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 C6 0C C5 [12:32:54]RasterBufferAndPrint [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]line [12:32:54]written 0, free lines is 3276 [12:32:54]MH_Cut [12:32:54]Write to MH i2c: D1 01 00 F0 03 01 C5 [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: D1 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: D1 01 00 [12:32:54]MH_I2C_Read... [12:32:54]Read from MH i2c: D1 01 00 F0 03 00 C4 [12:32:54]Write to MH i2c: 01 00 00 F1 03 F4 [12:32:54]Write i2c OK [12:32:54]MH_I2C_Read... [12:32:55]OFD Sender: No OFD packet to send [12:32:55]*** Cut start [12:32:55]*** Partial cut [12:32:55]*** CUTSNS_PIN = 1 [12:32:55]*** CUTSNS_PIN = 0 [12:32:55]*** Brake cut motor [12:32:55]Read from MH i2c: 01 [12:32:55]MH_I2C_Read... [12:32:55]*** Stop cut motor [12:32:55]*** Cut end [12:32:55]Read from MH i2c: 01 07 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [12:32:55]process_action close_receipt done [12:32:55]requested_data is exist [12:32:55]produce_requested_data [12:32:55]requested_item fm.sn is exist - process it [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 11 00 00 [12:32:55]Write to MH i2c: E2 08 00 F2 03 80 11 00 00 00 00 00 00 6F [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:55]Read from MH i2c: E2 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 17 00 [12:32:55]MH_I2C_Read... [12:32:55]Read from MH i2c: E2 17 00 F2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C6 [12:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:32:55]wFMCommunicate OK [12:32:55]requested_item fd.num is exist - process it [12:32:55]SAM_PROTO_GetFieldsCounters [12:32:55]wFMCommunicate request_size=4 [12:32:55]MH_SAM_APDU [12:32:55]CAPDU: 80 13 00 00 [12:32:55]Write to MH i2c: E2 08 00 F3 03 80 13 00 00 00 00 00 00 72 [12:32:55]Write i2c OK [12:32:55]MH_I2C_Read... [12:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:56]Read from MH i2c: E2 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 62 00 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 62 00 F3 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [12:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:56]wFMCommunicate OK [12:32:56]SAM_PROTO_GetFieldsCounters done [12:32:56]requested_item shift.num is exist - process it [12:32:56]requested_item shift.opened is exist - process it [12:32:56]req_shift_opened [12:32:56]FM_GetShiftState [12:32:56]SAM_PROTO_GetShiftState [12:32:56]wFMCommunicate request_size=4 [12:32:56]MH_SAM_APDU [12:32:56]CAPDU: 80 13 01 00 [12:32:56]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [12:32:56]Write i2c OK [12:32:56]MH_I2C_Read... [12:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:56]Read from MH i2c: E2 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 0E 00 [12:32:56]MH_I2C_Read... [12:32:56]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2B [12:32:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:32:56]wFMCommunicate OK [12:32:56]SAM_PROTO_GetShiftState done [12:32:56]FM_GetShiftState done [12:32:56]req_shift_opened done [12:32:56]requested_item shift.open_date is exist - process it [12:32:56]req_shift_open_date [12:32:56]req_shift_open_date done [12:32:56]produce_requested_data done [12:32:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139319,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:32:56]process_action_free close_receipt [12:32:56]json_value_free [12:32:56]json_value_free done [12:32:56]process_json_proto returns [12:32:56]Send response to host [12:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139319,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:32:56]free response buf [12:32:56]execute_script done [12:32:56]execute_script returns [12:32:56]free content buf [12:32:56]Sock 10.Close socket [12:32:56]Sock 10.Thread stoped [12:33:00]OFD Sender: No OFD packet to send [12:33:00]accept exits with 8 [12:33:00]New connection [12:33:00]New thread 3066674532 created [12:33:00]Thread 3066817892 joined [12:33:00]Waiting for new connection... [12:33:00] Sock 8.Parse request [12:33:00]Sock 8.Check first char [12:33:00]Sock 8.First char is OK [12:33:00]request: POST /json_proto HTTP/1.0 [12:33:00]Method: POST [12:33:00]URL: /json_proto [12:33:00]Method is POST - this is cgi request [12:33:00]url: /json_proto [12:33:00]query_string will be loaded in cgi processing [12:33:00]execute_cgi json_proto POST (null) [12:33:00]execute_cgi path=json_proto method=POST [12:33:00]POST find Content-Length [12:33:00]Host: 172.17.45.67:8080 [12:33:00]Content-Length: 682 [12:33:00]Content-Type: application/json [12:33:00] [12:33:00]POST finish read [12:33:00]Found Content-Length = 682 [12:33:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:33:00]execute_script... [12:33: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)593161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:33:00]POST & json_proto [12:33:00]process_json_proto [12:33:00]json parsed OK: [12:33:00]protocol is kg_v1.0 [12:33:00]action value=close_receipt [12:33:00]process_action close_receipt [12:33:00]cmd_close_receipt [12:33:00]MH_GetDate [12:33:00]Write to MH i2c: F0 00 00 F5 03 E7 [12:33:00]Write i2c OK [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: F0 [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: F0 09 00 [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: F0 09 00 F5 03 00 7C 3B C3 66 5F 7F 2B 66 3F [12:33:00]GetLastDocTimeStamp 1724070772 [12:33:00]current date 1724070780 [12:33:00]FM_GetShiftState [12:33:00]SAM_PROTO_GetShiftState [12:33:00]wFMCommunicate request_size=4 [12:33:00]MH_SAM_APDU [12:33:00]CAPDU: 80 13 01 00 [12:33:00]Write to MH i2c: E2 08 00 F6 03 80 13 01 00 00 00 00 00 76 [12:33:00]Write i2c OK [12:33:00]MH_I2C_Read... [12:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:00]Read from MH i2c: E2 [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: E2 0E 00 [12:33:00]MH_I2C_Read... [12:33:00]Read from MH i2c: E2 0E 00 F6 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2D [12:33:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:33:00]wFMCommunicate OK [12:33:00]SAM_PROTO_GetShiftState done [12:33:00]FM_GetShiftState done [12:33:00]opened in 1724027888 [12:33:00]opened+sec_in_day 1724114288 [12:33:00]quantity*price = 100021 [12:33:00]sum+1 = 100023 [12:33:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 155 19.08.2024 12:33 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139320 ФПД: 46943632383273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139320&fm=46943632383273&tin=02508201610067®Number=0000000000092569&sum=100000 [12:33:01]StoreToDocumentArchive [12:33:01]shift 452 fd 139320 [12:33:01]save to /storage/0452/doc_00139320 [12:33:01]save last doc name /storage/0452/doc_00139320 to /storage/kkm_last_doc_name [12:33:01]save OK [12:33:01]Clear old archive folders... [12:33:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:01]tlvbuf is 011F3390 [12:33:01]SAM_PROTO_ClearQueue [12:33:01]wFMCommunicate request_size=4 [12:33:01]MH_SAM_APDU [12:33:01]CAPDU: 80 09 00 00 [12:33:01]Write to MH i2c: E2 08 00 03 04 80 09 00 00 00 00 00 00 79 [12:33:01]Write i2c OK [12:33:01]MH_I2C_Read... [12:33:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:01]Read from MH i2c: E2 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 03 00 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [12:33:01]RAPDU: 90 00 [12:33:01]wFMCommunicate OK [12:33:01]SAM_PROTO_ClearQueue done [12:33:01]KKMCreateOFDPacket [12:33:01]OFDProtocolAddRootSTLVToBuf [12:33:01]FM_MakeSignedData [12:33:01]FM_MakeSignedData [12:33:01]SAM_PROTO_SignData [12:33:01]wFMCommunicate request_size=4 [12:33:01]MH_SAM_APDU [12:33:01]CAPDU: 80 0D 01 02 [12:33:01]Write to MH i2c: E2 08 00 04 04 80 0D 01 02 00 00 00 00 81 [12:33:01]Write i2c OK [12:33:01]MH_I2C_Read... [12:33:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:01]Read from MH i2c: E2 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 03 00 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [12:33:01]RAPDU: 90 00 [12:33:01]wFMCommunicate OK [12:33:01]wFMCommunicate request_size=255 [12:33:01]MH_SAM_APDU [12:33: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 7C 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 20 02 00 35 04 06 00 2A [12:33:01]Write to MH i2c: E2 02 01 05 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 7C 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 20 02 00 35 04 06 00 2A 00 00 FB [12:33:01]Write i2c OK [12:33:01]MH_I2C_Read... [12:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:01]Read from MH i2c: E2 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 03 00 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [12:33:01]RAPDU: 90 00 [12:33:01]wFMCommunicate OK [12:33:01]wFMCommunicate request_size=10 [12:33:01]MH_SAM_APDU [12:33:01]CAPDU: 80 0D 02 02 05 B1 EA 88 5D 29 [12:33:01]Write to MH i2c: E2 0D 00 06 04 80 0D 02 02 05 00 B1 EA 88 5D 29 00 00 37 [12:33:01]Write i2c OK [12:33:01]MH_I2C_Read... [12:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:01]Read from MH i2c: E2 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 03 00 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [12:33:01]RAPDU: 90 00 [12:33:01]wFMCommunicate OK [12:33:01]wFMCommunicate request_size=4 [12:33:01]MH_SAM_APDU [12:33:01]CAPDU: 80 0D 03 02 [12:33:01]Write to MH i2c: E2 08 00 07 04 80 0D 03 02 00 00 00 00 86 [12:33:01]Write i2c OK [12:33:01]MH_I2C_Read... [12:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:01]Read from MH i2c: E2 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 0B 00 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 0B 00 07 04 00 92 8D 1D C7 A2 6B B1 B8 90 00 00 [12:33:01]RAPDU: 92 8D 1D C7 A2 6B B1 B8 90 00 [12:33:01]wFMCommunicate OK [12:33:01]SAM_PROTO_SignData done [12:33:01]FM_MakeSignedData done [12:33:01]CreateOFDProtocolMessage [12:33:01]wFMCommunicate request_size=4 [12:33:01]MH_SAM_APDU [12:33:01]CAPDU: 80 11 00 00 [12:33:01]Write to MH i2c: E2 08 00 08 04 80 11 00 00 00 00 00 00 86 [12:33:01]Write i2c OK [12:33:01]MH_I2C_Read... [12:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:01]Read from MH i2c: E2 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 17 00 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: E2 17 00 08 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DD [12:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:33:01]wFMCommunicate OK [12:33:01]CreateOFDProtocolMessage done [12:33:01]OFDSenderStorePacket 139320 [12:33:01]StoreOFDPacket docnum=139320 [12:33:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 34 00 07 01 C8 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 7C 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 20 02 00 35 04 06 00 2A B1 EA 88 5D 29 92 8D 1D C7 A2 6B B1 B8 [12:33:01]CheckFolder [12:33:01]dirname=/storage/ofd_packets [12:33:01]CheckFolder done [12:33:01]ProducePacketName [12:33:01]name=ofd_packets/00139320 [12:33:01]NVStorageSaveData ofd_packets/00139320 [12:33:01]File name is /storage/ofd_packets/00139320 [12:33:01]Write 301 bytes [12:33:01]NVStorageSaveData done [12:33:01]OFDSenderStorePacket done [12:33:01]KKMCreateOFDPacket done [12:33:01]NVStorageSaveData kkm_last_timestamp [12:33:01]File name is /storage/kkm_last_timestamp [12:33:01]Write 4 bytes [12:33:01]NVStorageSaveData done [12:33:01]ExternCall_PrintAddStr [12:33:01]wPrintStart [12:33:01]Write to MH i2c: 01 00 00 09 04 0D [12:33:01]Write i2c OK [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: 01 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: 01 07 00 [12:33:01]MH_I2C_Read... [12:33:01]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 FF 0F 22 [12:33:01]RasterBufferAndPrint [12:33:01]line Счет N : (1)593161 [12:33:01]line ИНН: 02508201610067 [12:33:01]line Контрольно-Кассовый Чек [12:33:01]line ПРОДАЖА [12:33:01]line ТРК (МРК, ГНК) : 31 [12:33:01]line Товар: 2710124500 [12:33:01]line Аи-95-К-5 [12:33:01]line 13.480 * 74.20 [12:33:01]line = 1000.22 [12:33:01]line НДС 12% НСП 1% [12:33:01]line > о реализуемом товаре [12:33:01]line ОКРУГЛЕНИЕ: -0.22 [12:33:01]line ИТОГО: 1000.00 [12:33:01]line Внесено: 1000.00 [12:33:01]line СДАЧА: 0.00 [12:33:01]line НСП 1% : 8.85 [12:33:01]line НДС 12% : 106.22 [12:33:01]line Наличными: 1000.00 [12:33:01]line Безнал.: 0.00 [12:33:01]line Место: АЗС № 136 "Партнер Нефть" [12:33:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:33:01]line СНО: Общий режим [12:33:01]line Чек 155 19.08.2024 12:33 [12:33:01]line Смена: 452 ФФД: 1.0 [12:33:01]line ЗНМ: 0300000067 [12:33:01]line РНМ: 0000000000092569 [12:33:01]line Версия ККМ: 001 [12:33:01]line ФМ: 0000000000871776 [12:33:01]line ФД: 139320 [12:33:01]line ФПД: 46943632383273 [12:33:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139320&fm=46943632383273&tin=02508201610067®Number=0000000000092569&sum=100000 [12:33:01]written 0, free lines is 4095 [12:33:01]OFD Sender: Processing packet 139320 [packets to send 137, broken 136] [12:33:01]ProducePacketName [12:33:01]name=ofd_packets/00139320 [12:33:01]OFD Sender: To server: pG, [12:33:01]CommunicateWithHost lk.salyk.kg:30040 [12:33:01]ConnectInit lk.salyk.kg [12:33:02]Connected sock=10 [12:33: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 37 36 0F 01 00 00 34 00 07 01 C8 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 7C 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 20 02 00 35 04 06 00 2A B1 EA 88 5D 29 92 8D 1D C7 A2 6B B1 B8 [12:33: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 37 36 4F 00 00 00 CD F6 47 00 5F 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 37 36 10 04 04 00 38 20 02 00 F4 03 04 00 12 E2 C2 66 B6 04 01 00 00 5F F7 87 D2 32 8B C1 DD [12:33:02]CommunicateWithHost err = 0 [12:33:02]CheckOFDResponse [12:33:02]1017 (14) - 77093643461234 [12:33:02]1041 (16) - 0000000000871776 [12:33:02]1040 (4) - 139320 [12:33:02]1012 (4) - 19.08.2024 06:11 [12:33:02]1206 (1) - 0 [12:33:02]OFD Sender: Remove packet 139320 [12:33:02]ProducePacketName [12:33:02]name=ofd_packets/00139320 [12:33:02]NVStorageDeleteData [12:33:02]Write to MH i2c: 01 00 00 34 04 38 [12:33:02]Write i2c OK [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: 01 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: 01 07 00 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 D9 0C 24 [12:33:02]RasterBufferAndPrint [12:33:02]line [12:33:02]line [12:33:02]line [12:33:02]line [12:33:02]line [12:33:02]written 0, free lines is 3298 [12:33:02]MH_Cut [12:33:02]Write to MH i2c: D1 01 00 3B 04 01 11 [12:33:02]Write i2c OK [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: D1 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: D1 01 00 [12:33:02]MH_I2C_Read... [12:33:02]Read from MH i2c: D1 01 00 3B 04 00 10 [12:33:02]Write to MH i2c: 01 00 00 3C 04 40 [12:33:02]Write i2c OK [12:33:02]MH_I2C_Read... [12:33:02]OFD Sender: No OFD packet to send [12:33:03]*** Cut start [12:33:03]*** Partial cut [12:33:03]*** CUTSNS_PIN = 1 [12:33:03]*** CUTSNS_PIN = 0 [12:33:03]*** Brake cut motor [12:33:03]Read from MH i2c: 01 [12:33:03]MH_I2C_Read... [12:33:03]*** Stop cut motor [12:33:03]*** Cut end [12:33:03]Read from MH i2c: 01 07 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: 01 07 00 3C 04 00 00 00 00 00 FF 0F 55 [12:33:03]process_action close_receipt done [12:33:03]requested_data is exist [12:33:03]produce_requested_data [12:33:03]requested_item fm.sn is exist - process it [12:33:03]wFMCommunicate request_size=4 [12:33:03]MH_SAM_APDU [12:33:03]CAPDU: 80 11 00 00 [12:33:03]Write to MH i2c: E2 08 00 3D 04 80 11 00 00 00 00 00 00 BB [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:03]Read from MH i2c: E2 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 17 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 17 00 3D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 12 [12:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:33:03]wFMCommunicate OK [12:33:03]requested_item fd.num is exist - process it [12:33:03]SAM_PROTO_GetFieldsCounters [12:33:03]wFMCommunicate request_size=4 [12:33:03]MH_SAM_APDU [12:33:03]CAPDU: 80 13 00 00 [12:33:03]Write to MH i2c: E2 08 00 3E 04 80 13 00 00 00 00 00 00 BE [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:03]Read from MH i2c: E2 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 62 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 62 00 3E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [12:33: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:03]wFMCommunicate OK [12:33:03]SAM_PROTO_GetFieldsCounters done [12:33:03]requested_item shift.num is exist - process it [12:33:03]requested_item shift.opened is exist - process it [12:33:03]req_shift_opened [12:33:03]FM_GetShiftState [12:33:03]SAM_PROTO_GetShiftState [12:33:03]wFMCommunicate request_size=4 [12:33:03]MH_SAM_APDU [12:33:03]CAPDU: 80 13 01 00 [12:33:03]Write to MH i2c: E2 08 00 3F 04 80 13 01 00 00 00 00 00 C0 [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:03]Read from MH i2c: E2 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 0E 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 0E 00 3F 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 77 [12:33:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:33:03]wFMCommunicate OK [12:33:03]SAM_PROTO_GetShiftState done [12:33:03]FM_GetShiftState done [12:33:03]req_shift_opened done [12:33:03]requested_item shift.open_date is exist - process it [12:33:03]req_shift_open_date [12:33:03]req_shift_open_date done [12:33:03]produce_requested_data done [12:33:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139320,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:33:03]process_action_free close_receipt [12:33:03]json_value_free [12:33:03]json_value_free done [12:33:03]process_json_proto returns [12:33:03]Send response to host [12:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139320,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:33:03]free response buf [12:33:03]execute_script done [12:33:03]execute_script returns [12:33:03]free content buf [12:33:03]Sock 8.Close socket [12:33:03]Sock 8.Thread stoped [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:35]accept exits with 9 [12:33:35]New connection [12:33:35]New thread 3066817892 created [12:33:35]Thread 3066674532 joined [12:33:35]Waiting for new connection... [12:33:35] Sock 9.Parse request [12:33:35]Sock 9.Check first char [12:33:35]Sock 9.First char is OK [12:33:35]request: POST /json_proto HTTP/1.0 [12:33:35]Method: POST [12:33:35]URL: /json_proto [12:33:35]Method is POST - this is cgi request [12:33:35]url: /json_proto [12:33:35]query_string will be loaded in cgi processing [12:33:35]execute_cgi json_proto POST (null) [12:33:35]execute_cgi path=json_proto method=POST [12:33:35]POST find Content-Length [12:33:35]Host: 172.17.45.67:8080 [12:33:35]Content-Length: 677 [12:33:35]Content-Type: application/json [12:33:35] [12:33:35]POST finish read [12:33:35]Found Content-Length = 677 [12:33:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:33:35]execute_script... [12:33:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:33:35]POST & json_proto [12:33:35]process_json_proto [12:33:35]json parsed OK: [12:33:35]protocol is kg_v1.0 [12:33:35]action value=close_receipt [12:33:35]process_action close_receipt [12:33:35]cmd_close_receipt [12:33:35]MH_GetDate [12:33:35]Write to MH i2c: F0 00 00 40 04 33 [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: F0 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: F0 09 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: F0 09 00 40 04 00 A0 3B C3 66 5F 7F 2B 66 AF [12:33:35]GetLastDocTimeStamp 1724070780 [12:33:35]current date 1724070816 [12:33:35]FM_GetShiftState [12:33:35]SAM_PROTO_GetShiftState [12:33:35]wFMCommunicate request_size=4 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 13 01 00 [12:33:35]Write to MH i2c: E2 08 00 41 04 80 13 01 00 00 00 00 00 C2 [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 0E 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 0E 00 41 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 79 [12:33:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:33:35]wFMCommunicate OK [12:33:35]SAM_PROTO_GetShiftState done [12:33:35]FM_GetShiftState done [12:33:35]opened in 1724027888 [12:33:35]opened+sec_in_day 1724114288 [12:33:35]quantity*price = 50036 [12:33:35]sum+1 = 50037 [12:33:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 156 19.08.2024 12:33 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139321 ФПД: 132126985098278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123336&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139321&fm=132126985098278&tin=02508201610067®Number=0000000000092569&sum=50000 [12:33:36]StoreToDocumentArchive [12:33:36]shift 452 fd 139321 [12:33:36]save to /storage/0452/doc_00139321 [12:33:36]save last doc name /storage/0452/doc_00139321 to /storage/kkm_last_doc_name [12:33:36]save OK [12:33:36]Clear old archive folders... [12:33:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:36]tlvbuf is 011FE5F0 [12:33:36]SAM_PROTO_ClearQueue [12:33:36]wFMCommunicate request_size=4 [12:33:36]MH_SAM_APDU [12:33:36]CAPDU: 80 09 00 00 [12:33:36]Write to MH i2c: E2 08 00 4E 04 80 09 00 00 00 00 00 00 C4 [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:36]Read from MH i2c: E2 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [12:33:36]RAPDU: 90 00 [12:33:36]wFMCommunicate OK [12:33:36]SAM_PROTO_ClearQueue done [12:33:36]KKMCreateOFDPacket [12:33:36]OFDProtocolAddRootSTLVToBuf [12:33:36]FM_MakeSignedData [12:33:36]FM_MakeSignedData [12:33:36]SAM_PROTO_SignData [12:33:36]wFMCommunicate request_size=4 [12:33:36]MH_SAM_APDU [12:33:36]CAPDU: 80 0D 01 02 [12:33:36]Write to MH i2c: E2 08 00 4F 04 80 0D 01 02 00 00 00 00 CC [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:36]Read from MH i2c: E2 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [12:33:36]RAPDU: 90 00 [12:33:36]wFMCommunicate OK [12:33:36]wFMCommunicate request_size=255 [12:33:36]MH_SAM_APDU [12:33:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 9C 00 00 00 F4 03 04 00 A0 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 20 02 00 35 04 06 00 78 [12:33:36]Write to MH i2c: E2 02 01 50 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 9C 00 00 00 F4 03 04 00 A0 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 20 02 00 35 04 06 00 78 00 00 8D [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:37]Read from MH i2c: E2 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 03 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [12:33:37]RAPDU: 90 00 [12:33:37]wFMCommunicate OK [12:33:37]wFMCommunicate request_size=10 [12:33:37]MH_SAM_APDU [12:33:37]CAPDU: 80 0D 02 02 05 2B 36 03 14 26 [12:33:37]Write to MH i2c: E2 0D 00 51 04 80 0D 02 02 05 00 2B 36 03 14 26 00 00 77 [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:37]Read from MH i2c: E2 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 03 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 03 00 51 04 00 90 00 C9 [12:33:37]RAPDU: 90 00 [12:33:37]wFMCommunicate OK [12:33:37]wFMCommunicate request_size=4 [12:33:37]MH_SAM_APDU [12:33:37]CAPDU: 80 0D 03 02 [12:33:37]Write to MH i2c: E2 08 00 52 04 80 0D 03 02 00 00 00 00 D1 [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:37]Read from MH i2c: E2 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 0B 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 0B 00 52 04 00 35 A8 9B 82 9F 83 7C 66 90 00 D0 [12:33:37]RAPDU: 35 A8 9B 82 9F 83 7C 66 90 00 [12:33:37]wFMCommunicate OK [12:33:37]SAM_PROTO_SignData done [12:33:37]FM_MakeSignedData done [12:33:37]CreateOFDProtocolMessage [12:33:37]wFMCommunicate request_size=4 [12:33:37]MH_SAM_APDU [12:33:37]CAPDU: 80 11 00 00 [12:33:37]Write to MH i2c: E2 08 00 53 04 80 11 00 00 00 00 00 00 D1 [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:37]Read from MH i2c: E2 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 17 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: E2 17 00 53 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 28 [12:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:33:37]wFMCommunicate OK [12:33:37]CreateOFDProtocolMessage done [12:33:37]OFDSenderStorePacket 139321 [12:33:37]StoreOFDPacket docnum=139321 [12:33:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C 29 07 01 29 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 9C 00 00 00 F4 03 04 00 A0 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 20 02 00 35 04 06 00 78 2B 36 03 14 26 35 A8 9B 82 9F 83 7C 66 [12:33:37]CheckFolder [12:33:37]dirname=/storage/ofd_packets [12:33:37]CheckFolder done [12:33:37]ProducePacketName [12:33:37]name=ofd_packets/00139321 [12:33:37]NVStorageSaveData ofd_packets/00139321 [12:33:37]File name is /storage/ofd_packets/00139321 [12:33:37]Write 301 bytes [12:33:37]NVStorageSaveData done [12:33:37]OFDSenderStorePacket done [12:33:37]KKMCreateOFDPacket done [12:33:37]NVStorageSaveData kkm_last_timestamp [12:33:37]File name is /storage/kkm_last_timestamp [12:33:37]Write 4 bytes [12:33:37]NVStorageSaveData done [12:33:37]ExternCall_PrintAddStr [12:33:37]wPrintStart [12:33:37]Write to MH i2c: 01 00 00 54 04 58 [12:33:37]Write i2c OK [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: 01 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: 01 07 00 [12:33:37]MH_I2C_Read... [12:33:37]Read from MH i2c: 01 07 00 54 04 00 00 00 00 00 FF 0F 6D [12:33:37]RasterBufferAndPrint [12:33:37]line Счет N : (1)593162 [12:33:37]line ИНН: 02508201610067 [12:33:37]line Контрольно-Кассовый Чек [12:33:37]line ПРОДАЖА [12:33:37]line ТРК (МРК, ГНК) : 42 [12:33:37]line Товар: 2710124130 [12:33:37]line Аи-92-К-5 [12:33:37]line 7.380 * 67.80 [12:33:37]line = 500.36 [12:33:37]line НДС 12% НСП 1% [12:33:37]line > о реализуемом товаре [12:33:37]line ОКРУГЛЕНИЕ: -0.36 [12:33:37]line ИТОГО: 500.00 [12:33:37]line Внесено: 500.00 [12:33:37]line СДАЧА: 0.00 [12:33:37]line НСП 1% : 4.43 [12:33:37]line НДС 12% : 53.14 [12:33:37]line Наличными: 500.00 [12:33:37]line Безнал.: 0.00 [12:33:37]line Место: АЗС № 136 "Партнер Нефть" [12:33:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:33:37]line СНО: Общий режим [12:33:37]line Чек 156 19.08.2024 12:33 [12:33:37]line Смена: 452 ФФД: 1.0 [12:33:37]line ЗНМ: 0300000067 [12:33:37]line РНМ: 0000000000092569 [12:33:37]line Версия ККМ: 001 [12:33:37]line ФМ: 0000000000871776 [12:33:37]line ФД: 139321 [12:33:37]line ФПД: 132126985098278 [12:33:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123336&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139321&fm=132126985098278&tin=02508201610067®Number=0000000000092569&sum=50000 [12:33:37]written 0, free lines is 4095 [12:33:37]OFD Sender: Processing packet 139321 [packets to send 137, broken 136] [12:33:37]ProducePacketName [12:33:37]name=ofd_packets/00139321 [12:33:37]OFD Sender: To server: pG, [12:33:37]CommunicateWithHost lk.salyk.kg:30040 [12:33:37]ConnectInit lk.salyk.kg [12:33:37]Connected sock=10 [12:33:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C 29 07 01 29 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 9C 00 00 00 F4 03 04 00 A0 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 20 02 00 35 04 06 00 78 2B 36 03 14 26 35 A8 9B 82 9F 83 7C 66 [12:33: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 37 36 4F 00 00 00 AF 73 47 00 7C 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 37 36 10 04 04 00 39 20 02 00 F4 03 04 00 36 E2 C2 66 B6 04 01 00 00 C9 27 BA 41 CB 33 E4 1C [12:33:38]CommunicateWithHost err = 0 [12:33:38]CheckOFDResponse [12:33:38]1017 (14) - 77093643461234 [12:33:38]1041 (16) - 0000000000871776 [12:33:38]1040 (4) - 139321 [12:33:38]1012 (4) - 19.08.2024 06:12 [12:33:38]1206 (1) - 0 [12:33:38]OFD Sender: Remove packet 139321 [12:33:38]ProducePacketName [12:33:38]name=ofd_packets/00139321 [12:33:38]NVStorageDeleteData [12:33:38]Write to MH i2c: 01 00 00 7F 04 83 [12:33:38]Write i2c OK [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: 01 [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: 01 07 00 [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 D3 0C 69 [12:33:38]RasterBufferAndPrint [12:33:38]line [12:33:38]line [12:33:38]line [12:33:38]line [12:33:38]line [12:33:38]written 0, free lines is 3293 [12:33:38]MH_Cut [12:33:38]Write to MH i2c: D1 01 00 86 04 01 5C [12:33:38]Write i2c OK [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: D1 [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: D1 01 00 [12:33:38]MH_I2C_Read... [12:33:38]Read from MH i2c: D1 01 00 86 04 00 5B [12:33:38]Write to MH i2c: 01 00 00 87 04 8B [12:33:38]Write i2c OK [12:33:38]MH_I2C_Read... [12:33:38]OFD Sender: No OFD packet to send [12:33:38]*** Cut start [12:33:38]*** Partial cut [12:33:38]*** CUTSNS_PIN = 1 [12:33:38]*** CUTSNS_PIN = 0 [12:33:39]*** Brake cut motor [12:33:39]Read from MH i2c: 01 [12:33:39]MH_I2C_Read... [12:33:39]*** Stop cut motor [12:33:39]*** Cut end [12:33:39]Read from MH i2c: 01 07 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [12:33:39]process_action close_receipt done [12:33:39]requested_data is exist [12:33:39]produce_requested_data [12:33:39]requested_item fm.sn is exist - process it [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 11 00 00 [12:33:39]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 17 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5D [12:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:33:39]wFMCommunicate OK [12:33:39]requested_item fd.num is exist - process it [12:33:39]SAM_PROTO_GetFieldsCounters [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 13 00 00 [12:33:39]Write to MH i2c: E2 08 00 89 04 80 13 00 00 00 00 00 00 09 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 62 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 62 00 89 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [12:33:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:39]wFMCommunicate OK [12:33:39]SAM_PROTO_GetFieldsCounters done [12:33:39]requested_item shift.num is exist - process it [12:33:39]requested_item shift.opened is exist - process it [12:33:39]req_shift_opened [12:33:39]FM_GetShiftState [12:33:39]SAM_PROTO_GetShiftState [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 13 01 00 [12:33:39]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0E 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C2 [12:33:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:33:39]wFMCommunicate OK [12:33:39]SAM_PROTO_GetShiftState done [12:33:39]FM_GetShiftState done [12:33:39]req_shift_opened done [12:33:39]requested_item shift.open_date is exist - process it [12:33:39]req_shift_open_date [12:33:39]req_shift_open_date done [12:33:39]produce_requested_data done [12:33:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139321,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:33:39]process_action_free close_receipt [12:33:39]json_value_free [12:33:39]json_value_free done [12:33:39]process_json_proto returns [12:33:39]Send response to host [12:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139321,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:33:39]free response buf [12:33:39]execute_script done [12:33:39]execute_script returns [12:33:39]free content buf [12:33:39]Sock 9.Close socket [12:33:39]Sock 9.Thread stoped [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:08]accept exits with 8 [12:34:08]New connection [12:34:08]New thread 3066674532 created [12:34:08]Thread 3066817892 joined [12:34:08]Waiting for new connection... [12:34:08] Sock 8.Parse request [12:34:08]Sock 8.Check first char [12:34:08]Sock 8.First char is OK [12:34:08]request: POST /json_proto HTTP/1.0 [12:34:08]Method: POST [12:34:08]URL: /json_proto [12:34:08]Method is POST - this is cgi request [12:34:08]url: /json_proto [12:34:08]query_string will be loaded in cgi processing [12:34:08]execute_cgi json_proto POST (null) [12:34:08]execute_cgi path=json_proto method=POST [12:34:08]POST find Content-Length [12:34:08]Host: 172.17.45.67:8080 [12:34:08]Content-Length: 677 [12:34:08]Content-Type: application/json [12:34:08] [12:34:08]POST finish read [12:34:08]Found Content-Length = 677 [12:34:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:08]execute_script... [12:34: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)593163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:08]POST & json_proto [12:34:08]process_json_proto [12:34:08]json parsed OK: [12:34:08]protocol is kg_v1.0 [12:34:08]action value=close_receipt [12:34:08]process_action close_receipt [12:34:08]cmd_close_receipt [12:34:08]MH_GetDate [12:34:08]Write to MH i2c: F0 00 00 8B 04 7E [12:34:08]Write i2c OK [12:34:08]MH_I2C_Read... [12:34:08]Read from MH i2c: F0 [12:34:08]MH_I2C_Read... [12:34:08]Read from MH i2c: F0 09 00 [12:34:08]MH_I2C_Read... [12:34:08]Read from MH i2c: F0 09 00 8B 04 00 C1 3B C3 66 5F 7F 2B 66 1B [12:34:08]GetLastDocTimeStamp 1724070816 [12:34:08]current date 1724070849 [12:34:08]FM_GetShiftState [12:34:08]SAM_PROTO_GetShiftState [12:34:08]wFMCommunicate request_size=4 [12:34:08]MH_SAM_APDU [12:34:08]CAPDU: 80 13 01 00 [12:34:08]Write to MH i2c: E2 08 00 8C 04 80 13 01 00 00 00 00 00 0D [12:34:08]Write i2c OK [12:34:08]MH_I2C_Read... [12:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:09]Read from MH i2c: E2 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 0E 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 0E 00 8C 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C4 [12:34:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:34:09]wFMCommunicate OK [12:34:09]SAM_PROTO_GetShiftState done [12:34:09]FM_GetShiftState done [12:34:09]opened in 1724027888 [12:34:09]opened+sec_in_day 1724114288 [12:34:09]quantity*price = 60027 [12:34:09]sum+1 = 60029 [12:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 157 19.08.2024 12:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139322 ФПД: 219641613117931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123409&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139322&fm=219641613117931&tin=02508201610067®Number=0000000000092569&sum=60000 [12:34:10]StoreToDocumentArchive [12:34:10]shift 452 fd 139322 [12:34:10]save to /storage/0452/doc_00139322 [12:34:10]save last doc name /storage/0452/doc_00139322 to /storage/kkm_last_doc_name [12:34:10]save OK [12:34:10]Clear old archive folders... [12:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:10]tlvbuf is 01200C20 [12:34:10]SAM_PROTO_ClearQueue [12:34:10]wFMCommunicate request_size=4 [12:34:10]MH_SAM_APDU [12:34:10]CAPDU: 80 09 00 00 [12:34:10]Write to MH i2c: E2 08 00 99 04 80 09 00 00 00 00 00 00 0F [12:34:10]Write i2c OK [12:34:10]MH_I2C_Read... [12:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:10]Read from MH i2c: E2 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 03 00 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [12:34:10]RAPDU: 90 00 [12:34:10]wFMCommunicate OK [12:34:10]SAM_PROTO_ClearQueue done [12:34:10]KKMCreateOFDPacket [12:34:10]OFDProtocolAddRootSTLVToBuf [12:34:10]FM_MakeSignedData [12:34:10]FM_MakeSignedData [12:34:10]SAM_PROTO_SignData [12:34:10]wFMCommunicate request_size=4 [12:34:10]MH_SAM_APDU [12:34:10]CAPDU: 80 0D 01 02 [12:34:10]Write to MH i2c: E2 08 00 9A 04 80 0D 01 02 00 00 00 00 17 [12:34:10]Write i2c OK [12:34:10]MH_I2C_Read... [12:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:10]Read from MH i2c: E2 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 03 00 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [12:34:10]RAPDU: 90 00 [12:34:10]wFMCommunicate OK [12:34:10]wFMCommunicate request_size=255 [12:34:10]MH_SAM_APDU [12:34:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 9D 00 00 00 F4 03 04 00 C1 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 20 02 00 35 04 06 00 C7 [12:34:10]Write to MH i2c: E2 02 01 9B 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 9D 00 00 00 F4 03 04 00 C1 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 20 02 00 35 04 06 00 C7 00 00 B8 [12:34:10]Write i2c OK [12:34:10]MH_I2C_Read... [12:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:10]Read from MH i2c: E2 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 03 00 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 03 00 9B 04 00 90 00 13 [12:34:10]RAPDU: 90 00 [12:34:10]wFMCommunicate OK [12:34:10]wFMCommunicate request_size=10 [12:34:10]MH_SAM_APDU [12:34:10]CAPDU: 80 0D 02 02 05 C3 4C 53 E9 EB [12:34:10]Write to MH i2c: E2 0D 00 9C 04 80 0D 02 02 05 00 C3 4C 53 E9 EB 00 00 5A [12:34:10]Write i2c OK [12:34:10]MH_I2C_Read... [12:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:10]Read from MH i2c: E2 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 03 00 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 03 00 9C 04 00 90 00 14 [12:34:10]RAPDU: 90 00 [12:34:10]wFMCommunicate OK [12:34:10]wFMCommunicate request_size=4 [12:34:10]MH_SAM_APDU [12:34:10]CAPDU: 80 0D 03 02 [12:34:10]Write to MH i2c: E2 08 00 9D 04 80 0D 03 02 00 00 00 00 1C [12:34:10]Write i2c OK [12:34:10]MH_I2C_Read... [12:34:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:10]Read from MH i2c: E2 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 0B 00 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 0B 00 9D 04 00 F8 FB 27 54 61 23 9E 43 90 00 F0 [12:34:10]RAPDU: F8 FB 27 54 61 23 9E 43 90 00 [12:34:10]wFMCommunicate OK [12:34:10]SAM_PROTO_SignData done [12:34:10]FM_MakeSignedData done [12:34:10]CreateOFDProtocolMessage [12:34:10]wFMCommunicate request_size=4 [12:34:10]MH_SAM_APDU [12:34:10]CAPDU: 80 11 00 00 [12:34:10]Write to MH i2c: E2 08 00 9E 04 80 11 00 00 00 00 00 00 1C [12:34:10]Write i2c OK [12:34:10]MH_I2C_Read... [12:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:10]Read from MH i2c: E2 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 17 00 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: E2 17 00 9E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 73 [12:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:34:10]wFMCommunicate OK [12:34:10]CreateOFDProtocolMessage done [12:34:10]OFDSenderStorePacket 139322 [12:34:10]StoreOFDPacket docnum=139322 [12:34:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8A B8 07 01 EC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 9D 00 00 00 F4 03 04 00 C1 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 20 02 00 35 04 06 00 C7 C3 4C 53 E9 EB F8 FB 27 54 61 23 9E 43 [12:34:10]CheckFolder [12:34:10]dirname=/storage/ofd_packets [12:34:10]CheckFolder done [12:34:10]ProducePacketName [12:34:10]name=ofd_packets/00139322 [12:34:10]NVStorageSaveData ofd_packets/00139322 [12:34:10]File name is /storage/ofd_packets/00139322 [12:34:10]Write 301 bytes [12:34:10]NVStorageSaveData done [12:34:10]OFDSenderStorePacket done [12:34:10]KKMCreateOFDPacket done [12:34:10]NVStorageSaveData kkm_last_timestamp [12:34:10]File name is /storage/kkm_last_timestamp [12:34:10]Write 4 bytes [12:34:10]NVStorageSaveData done [12:34:10]ExternCall_PrintAddStr [12:34:10]wPrintStart [12:34:10]Write to MH i2c: 01 00 00 9F 04 A3 [12:34:10]Write i2c OK [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: 01 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: 01 07 00 [12:34:10]MH_I2C_Read... [12:34:10]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 FF 0F B8 [12:34:10]RasterBufferAndPrint [12:34:10]line Счет N : (1)593163 [12:34:10]line ИНН: 02508201610067 [12:34:10]line Контрольно-Кассовый Чек [12:34:10]line ПРОДАЖА [12:34:10]line ТРК (МРК, ГНК) : 61 [12:34:10]line Товар: 2710124500 [12:34:10]line Аи-95-К-5 [12:34:10]line 8.090 * 74.20 [12:34:10]line = 600.28 [12:34:10]line НДС 12% НСП 1% [12:34:10]line > о реализуемом товаре [12:34:10]line ОКРУГЛЕНИЕ: -0.28 [12:34:10]line ИТОГО: 600.00 [12:34:10]line Внесено: 600.00 [12:34:10]line СДАЧА: 0.00 [12:34:10]line НСП 1% : 5.31 [12:34:10]line НДС 12% : 63.75 [12:34:10]line Наличными: 600.00 [12:34:10]line Безнал.: 0.00 [12:34:10]line Место: АЗС № 136 "Партнер Нефть" [12:34:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:34:10]line СНО: Общий режим [12:34:10]line Чек 157 19.08.2024 12:34 [12:34:10]line Смена: 452 ФФД: 1.0 [12:34:10]line ЗНМ: 0300000067 [12:34:10]line РНМ: 0000000000092569 [12:34:10]line Версия ККМ: 001 [12:34:10]line ФМ: 0000000000871776 [12:34:10]line ФД: 139322 [12:34:10]line ФПД: 219641613117931 [12:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123409&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139322&fm=219641613117931&tin=02508201610067®Number=0000000000092569&sum=60000 [12:34:11]OFD Sender: Processing packet 139322 [packets to send 137, broken 136] [12:34:11]ProducePacketName [12:34:11]name=ofd_packets/00139322 [12:34:11]OFD Sender: To server: pG, [12:34:11]CommunicateWithHost lk.salyk.kg:30040 [12:34:11]ConnectInit lk.salyk.kg [12:34:11]written 0, free lines is 4095 [12:34:11]Connected sock=10 [12:34: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 37 36 0F 01 00 00 8A B8 07 01 EC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 9D 00 00 00 F4 03 04 00 C1 3B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 20 02 00 35 04 06 00 C7 C3 4C 53 E9 EB F8 FB 27 54 61 23 9E 43 [12:34: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 37 36 4F 00 00 00 DA 88 47 00 C3 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 37 36 10 04 04 00 3A 20 02 00 F4 03 04 00 57 E2 C2 66 B6 04 01 00 00 6A 79 40 95 8D FF 35 AC [12:34:11]CommunicateWithHost err = 0 [12:34:11]CheckOFDResponse [12:34:11]1017 (14) - 77093643461234 [12:34:11]1041 (16) - 0000000000871776 [12:34:11]1040 (4) - 139322 [12:34:11]1012 (4) - 19.08.2024 06:12 [12:34:11]1206 (1) - 0 [12:34:11]OFD Sender: Remove packet 139322 [12:34:11]ProducePacketName [12:34:11]name=ofd_packets/00139322 [12:34:11]NVStorageDeleteData [12:34:11]Write to MH i2c: 01 00 00 CA 04 CE [12:34:11]Write i2c OK [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: 01 [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: 01 07 00 [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: 01 07 00 CA 04 00 00 00 00 00 DA 0C BB [12:34:11]RasterBufferAndPrint [12:34:11]line [12:34:11]line [12:34:11]line [12:34:11]line [12:34:11]line [12:34:11]written 0, free lines is 3297 [12:34:11]MH_Cut [12:34:11]Write to MH i2c: D1 01 00 D1 04 01 A7 [12:34:11]Write i2c OK [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: D1 [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: D1 01 00 [12:34:11]MH_I2C_Read... [12:34:11]Read from MH i2c: D1 01 00 D1 04 00 A6 [12:34:11]Write to MH i2c: 01 00 00 D2 04 D6 [12:34:11]Write i2c OK [12:34:11]MH_I2C_Read... [12:34:11]OFD Sender: No OFD packet to send [12:34:12]*** Cut start [12:34:12]*** Partial cut [12:34:12]*** CUTSNS_PIN = 1 [12:34:12]*** CUTSNS_PIN = 0 [12:34:12]*** Brake cut motor [12:34:12]Read from MH i2c: 01 [12:34:12]MH_I2C_Read... [12:34:12]*** Stop cut motor [12:34:12]*** Cut end [12:34:12]Read from MH i2c: 01 07 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 FF 0F EB [12:34:12]process_action close_receipt done [12:34:12]requested_data is exist [12:34:12]produce_requested_data [12:34:12]requested_item fm.sn is exist - process it [12:34:12]wFMCommunicate request_size=4 [12:34:12]MH_SAM_APDU [12:34:12]CAPDU: 80 11 00 00 [12:34:12]Write to MH i2c: E2 08 00 D3 04 80 11 00 00 00 00 00 00 51 [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 17 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 17 00 D3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A8 [12:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:34:12]wFMCommunicate OK [12:34:12]requested_item fd.num is exist - process it [12:34:12]SAM_PROTO_GetFieldsCounters [12:34:12]wFMCommunicate request_size=4 [12:34:12]MH_SAM_APDU [12:34:12]CAPDU: 80 13 00 00 [12:34:12]Write to MH i2c: E2 08 00 D4 04 80 13 00 00 00 00 00 00 54 [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 62 00 [12:34:12]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 62 00 D4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [12:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:13]wFMCommunicate OK [12:34:13]SAM_PROTO_GetFieldsCounters done [12:34:13]requested_item shift.num is exist - process it [12:34:13]requested_item shift.opened is exist - process it [12:34:13]req_shift_opened [12:34:13]FM_GetShiftState [12:34:13]SAM_PROTO_GetShiftState [12:34:13]wFMCommunicate request_size=4 [12:34:13]MH_SAM_APDU [12:34:13]CAPDU: 80 13 01 00 [12:34:13]Write to MH i2c: E2 08 00 D5 04 80 13 01 00 00 00 00 00 56 [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:13]Read from MH i2c: E2 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 0E 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 0E 00 D5 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0D [12:34:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:34:13]wFMCommunicate OK [12:34:13]SAM_PROTO_GetShiftState done [12:34:13]FM_GetShiftState done [12:34:13]req_shift_opened done [12:34:13]requested_item shift.open_date is exist - process it [12:34:13]req_shift_open_date [12:34:13]req_shift_open_date done [12:34:13]produce_requested_data done [12:34:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139322,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:34:13]process_action_free close_receipt [12:34:13]json_value_free [12:34:13]json_value_free done [12:34:13]process_json_proto returns [12:34:13]Send response to host [12:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139322,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:34:13]free response buf [12:34:13]execute_script done [12:34:13]execute_script returns [12:34:13]free content buf [12:34:13]Sock 8.Close socket [12:34:13]Sock 8.Thread stoped [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]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: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:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:15]accept exits with 9 [12:54:15]New connection [12:54:15]New thread 3066817892 created [12:54:15]Thread 3066674532 joined [12:54:15]Waiting for new connection... [12:54:15] Sock 9.Parse request [12:54:15]Sock 9.Check first char [12:54:15]Sock 9.First char is OK [12:54:15]request: POST /json_proto HTTP/1.0 [12:54:15]Method: POST [12:54:15]URL: /json_proto [12:54:15]Method is POST - this is cgi request [12:54:15]url: /json_proto [12:54:15]query_string will be loaded in cgi processing [12:54:15]execute_cgi json_proto POST (null) [12:54:15]execute_cgi path=json_proto method=POST [12:54:15]POST find Content-Length [12:54:15]Host: 172.17.45.67:8080 [12:54:15]Content-Length: 677 [12:54:15]Content-Type: application/json [12:54:15] [12:54:15]POST finish read [12:54:15]Found Content-Length = 677 [12:54:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:54:15]execute_script... [12:54: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)593165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:54:15]POST & json_proto [12:54:15]process_json_proto [12:54:15]json parsed OK: [12:54:15]protocol is kg_v1.0 [12:54:15]action value=close_receipt [12:54:15]process_action close_receipt [12:54:15]cmd_close_receipt [12:54:15]MH_GetDate [12:54:15]Write to MH i2c: F0 00 00 D6 04 C9 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: F0 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: F0 09 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: F0 09 00 D6 04 00 78 40 C3 66 5F 7F 2B 66 22 [12:54:15]GetLastDocTimeStamp 1724070849 [12:54:15]current date 1724072056 [12:54:15]FM_GetShiftState [12:54:15]SAM_PROTO_GetShiftState [12:54:15]wFMCommunicate request_size=4 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 13 01 00 [12:54:15]Write to MH i2c: E2 08 00 D7 04 80 13 01 00 00 00 00 00 58 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 0E 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 0E 00 D7 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0F [12:54:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:54:15]wFMCommunicate OK [12:54:15]SAM_PROTO_GetShiftState done [12:54:15]FM_GetShiftState done [12:54:15]opened in 1724027888 [12:54:15]opened+sec_in_day 1724114288 [12:54:15]quantity*price = 50010 [12:54:15]sum+1 = 50012 [12:54:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 158 19.08.2024 12:54 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139323 ФПД: 24510596787420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139323&fm=24510596787420&tin=02508201610067®Number=0000000000092569&sum=50000 [12:54:16]StoreToDocumentArchive [12:54:16]shift 452 fd 139323 [12:54:16]save to /storage/0452/doc_00139323 [12:54:16]save last doc name /storage/0452/doc_00139323 to /storage/kkm_last_doc_name [12:54:16]save OK [12:54:16]Clear old archive folders... [12:54:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:16]tlvbuf is 011E3920 [12:54:16]SAM_PROTO_ClearQueue [12:54:16]wFMCommunicate request_size=4 [12:54:16]MH_SAM_APDU [12:54:16]CAPDU: 80 09 00 00 [12:54:16]Write to MH i2c: E2 08 00 E4 04 80 09 00 00 00 00 00 00 5A [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:16]Read from MH i2c: E2 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 03 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [12:54:16]RAPDU: 90 00 [12:54:16]wFMCommunicate OK [12:54:16]SAM_PROTO_ClearQueue done [12:54:16]KKMCreateOFDPacket [12:54:16]OFDProtocolAddRootSTLVToBuf [12:54:16]FM_MakeSignedData [12:54:16]FM_MakeSignedData [12:54:16]SAM_PROTO_SignData [12:54:16]wFMCommunicate request_size=4 [12:54:16]MH_SAM_APDU [12:54:16]CAPDU: 80 0D 01 02 [12:54:16]Write to MH i2c: E2 08 00 E5 04 80 0D 01 02 00 00 00 00 62 [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:16]Read from MH i2c: E2 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 03 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 03 00 E5 04 00 90 00 5D [12:54:16]RAPDU: 90 00 [12:54:16]wFMCommunicate OK [12:54:16]wFMCommunicate request_size=255 [12:54:16]MH_SAM_APDU [12:54: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 78 40 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 20 02 00 35 04 06 00 16 [12:54:16]Write to MH i2c: E2 02 01 E6 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 78 40 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 20 02 00 35 04 06 00 16 00 00 8A [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:16]Read from MH i2c: E2 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 03 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 03 00 E6 04 00 90 00 5E [12:54:16]RAPDU: 90 00 [12:54:16]wFMCommunicate OK [12:54:16]wFMCommunicate request_size=10 [12:54:16]MH_SAM_APDU [12:54:16]CAPDU: 80 0D 02 02 05 4A D1 6A 2C DC [12:54:16]Write to MH i2c: E2 0D 00 E7 04 80 0D 02 02 05 00 4A D1 6A 2C DC 00 00 FC [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:16]Read from MH i2c: E2 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 03 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 03 00 E7 04 00 90 00 5F [12:54:16]RAPDU: 90 00 [12:54:16]wFMCommunicate OK [12:54:16]wFMCommunicate request_size=4 [12:54:16]MH_SAM_APDU [12:54:16]CAPDU: 80 0D 03 02 [12:54:16]Write to MH i2c: E2 08 00 E8 04 80 0D 03 02 00 00 00 00 67 [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:16]Read from MH i2c: E2 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 0B 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 0B 00 E8 04 00 C6 D2 0E 3A 63 F3 C9 80 90 00 E7 [12:54:16]RAPDU: C6 D2 0E 3A 63 F3 C9 80 90 00 [12:54:16]wFMCommunicate OK [12:54:16]SAM_PROTO_SignData done [12:54:16]FM_MakeSignedData done [12:54:16]CreateOFDProtocolMessage [12:54:16]wFMCommunicate request_size=4 [12:54:16]MH_SAM_APDU [12:54:16]CAPDU: 80 11 00 00 [12:54:16]Write to MH i2c: E2 08 00 E9 04 80 11 00 00 00 00 00 00 67 [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:17]Read from MH i2c: E2 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 17 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 17 00 E9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BE [12:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:54:17]wFMCommunicate OK [12:54:17]CreateOFDProtocolMessage done [12:54:17]OFDSenderStorePacket 139323 [12:54:17]StoreOFDPacket docnum=139323 [12:54:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 08 B8 07 01 A5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 78 40 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 20 02 00 35 04 06 00 16 4A D1 6A 2C DC C6 D2 0E 3A 63 F3 C9 80 [12:54:17]CheckFolder [12:54:17]dirname=/storage/ofd_packets [12:54:17]CheckFolder done [12:54:17]ProducePacketName [12:54:17]name=ofd_packets/00139323 [12:54:17]NVStorageSaveData ofd_packets/00139323 [12:54:17]File name is /storage/ofd_packets/00139323 [12:54:17]Write 301 bytes [12:54:17]NVStorageSaveData done [12:54:17]OFDSenderStorePacket done [12:54:17]KKMCreateOFDPacket done [12:54:17]NVStorageSaveData kkm_last_timestamp [12:54:17]File name is /storage/kkm_last_timestamp [12:54:17]Write 4 bytes [12:54:17]NVStorageSaveData done [12:54:17]ExternCall_PrintAddStr [12:54:17]wPrintStart [12:54:17]Write to MH i2c: 01 00 00 EA 04 EE [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 07 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 FF 0F 03 [12:54:17]RasterBufferAndPrint [12:54:17]line Счет N : (1)593165 [12:54:17]line ИНН: 02508201610067 [12:54:17]line Контрольно-Кассовый Чек [12:54:17]line ПРОДАЖА [12:54:17]line ТРК (МРК, ГНК) : 31 [12:54:17]line Товар: 2710124500 [12:54:17]line Аи-95-К-5 [12:54:17]line 6.740 * 74.20 [12:54:17]line = 500.11 [12:54:17]line НДС 12% НСП 1% [12:54:17]line > о реализуемом товаре [12:54:17]line ОКРУГЛЕНИЕ: -0.11 [12:54:17]line ИТОГО: 500.00 [12:54:17]line Внесено: 500.00 [12:54:17]line СДАЧА: 0.00 [12:54:17]line НСП 1% : 4.43 [12:54:17]line НДС 12% : 53.11 [12:54:17]line Наличными: 500.00 [12:54:17]line Безнал.: 0.00 [12:54:17]line Место: АЗС № 136 "Партнер Нефть" [12:54:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:54:17]line СНО: Общий режим [12:54:17]line Чек 158 19.08.2024 12:54 [12:54:17]line Смена: 452 ФФД: 1.0 [12:54:17]line ЗНМ: 0300000067 [12:54:17]line РНМ: 0000000000092569 [12:54:17]line Версия ККМ: 001 [12:54:17]line ФМ: 0000000000871776 [12:54:17]line ФД: 139323 [12:54:17]line ФПД: 24510596787420 [12:54:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139323&fm=24510596787420&tin=02508201610067®Number=0000000000092569&sum=50000 [12:54:17]written 0, free lines is 4095 [12:54:17]OFD Sender: Processing packet 139323 [packets to send 137, broken 136] [12:54:17]ProducePacketName [12:54:17]name=ofd_packets/00139323 [12:54:17]OFD Sender: To server: pG, [12:54:17]CommunicateWithHost lk.salyk.kg:30040 [12:54:17]ConnectInit lk.salyk.kg [12:54:17]Connected sock=10 [12:54: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 37 36 0F 01 00 00 08 B8 07 01 A5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 78 40 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 20 02 00 35 04 06 00 16 4A D1 6A 2C DC C6 D2 0E 3A 63 F3 C9 80 [12:54: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 37 36 4F 00 00 00 04 00 47 00 6D 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 37 36 10 04 04 00 3B 20 02 00 F4 03 04 00 0E E7 C2 66 B6 04 01 00 00 5D C0 1F 52 E1 54 D9 A2 [12:54:17]CommunicateWithHost err = 0 [12:54:17]CheckOFDResponse [12:54:17]1017 (14) - 77093643461234 [12:54:17]1041 (16) - 0000000000871776 [12:54:17]1040 (4) - 139323 [12:54:17]1012 (4) - 19.08.2024 06:32 [12:54:17]1206 (1) - 0 [12:54:17]OFD Sender: Remove packet 139323 [12:54:17]ProducePacketName [12:54:17]name=ofd_packets/00139323 [12:54:17]NVStorageDeleteData [12:54:17]Write to MH i2c: 01 00 00 15 05 1A [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 07 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 07 00 15 05 00 00 00 00 00 D4 0C 01 [12:54:17]RasterBufferAndPrint [12:54:17]line [12:54:17]line [12:54:17]line [12:54:17]line [12:54:17]line [12:54:17]written 0, free lines is 3292 [12:54:17]MH_Cut [12:54:17]Write to MH i2c: D1 01 00 1C 05 01 F3 [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: D1 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: D1 01 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: D1 01 00 1C 05 00 F2 [12:54:17]Write to MH i2c: 01 00 00 1D 05 22 [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:18]OFD Sender: No OFD packet to send [12:54:18]*** Cut start [12:54:18]*** Partial cut [12:54:18]*** CUTSNS_PIN = 1 [12:54:18]*** CUTSNS_PIN = 0 [12:54:18]*** Brake cut motor [12:54:19]Read from MH i2c: 01 [12:54:19]MH_I2C_Read... [12:54:19]*** Stop cut motor [12:54:19]*** Cut end [12:54:19]Read from MH i2c: 01 07 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: 01 07 00 1D 05 00 00 00 00 00 FF 0F 37 [12:54:19]process_action close_receipt done [12:54:19]requested_data is exist [12:54:19]produce_requested_data [12:54:19]requested_item fm.sn is exist - process it [12:54:19]wFMCommunicate request_size=4 [12:54:19]MH_SAM_APDU [12:54:19]CAPDU: 80 11 00 00 [12:54:19]Write to MH i2c: E2 08 00 1E 05 80 11 00 00 00 00 00 00 9D [12:54:19]Write i2c OK [12:54:19]MH_I2C_Read... [12:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:19]Read from MH i2c: E2 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 17 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 17 00 1E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F4 [12:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:54:19]wFMCommunicate OK [12:54:19]requested_item fd.num is exist - process it [12:54:19]SAM_PROTO_GetFieldsCounters [12:54:19]wFMCommunicate request_size=4 [12:54:19]MH_SAM_APDU [12:54:19]CAPDU: 80 13 00 00 [12:54:19]Write to MH i2c: E2 08 00 1F 05 80 13 00 00 00 00 00 00 A0 [12:54:19]Write i2c OK [12:54:19]MH_I2C_Read... [12:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:19]Read from MH i2c: E2 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 62 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 62 00 1F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [12:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:19]wFMCommunicate OK [12:54:19]SAM_PROTO_GetFieldsCounters done [12:54:19]requested_item shift.num is exist - process it [12:54:19]requested_item shift.opened is exist - process it [12:54:19]req_shift_opened [12:54:19]FM_GetShiftState [12:54:19]SAM_PROTO_GetShiftState [12:54:19]wFMCommunicate request_size=4 [12:54:19]MH_SAM_APDU [12:54:19]CAPDU: 80 13 01 00 [12:54:19]Write to MH i2c: E2 08 00 20 05 80 13 01 00 00 00 00 00 A2 [12:54:19]Write i2c OK [12:54:19]MH_I2C_Read... [12:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:19]Read from MH i2c: E2 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 0E 00 [12:54:19]MH_I2C_Read... [12:54:19]Read from MH i2c: E2 0E 00 20 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 59 [12:54:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:54:19]wFMCommunicate OK [12:54:19]SAM_PROTO_GetShiftState done [12:54:19]FM_GetShiftState done [12:54:19]req_shift_opened done [12:54:19]requested_item shift.open_date is exist - process it [12:54:19]req_shift_open_date [12:54:19]req_shift_open_date done [12:54:19]produce_requested_data done [12:54:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139323,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:54:19]process_action_free close_receipt [12:54:19]json_value_free [12:54:19]json_value_free done [12:54:19]process_json_proto returns [12:54:19]Send response to host [12:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139323,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:54:19]free response buf [12:54:19]execute_script done [12:54:19]execute_script returns [12:54:19]free content buf [12:54:19]Sock 9.Close socket [12:54:19]Sock 9.Thread stoped [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:39]accept exits with 8 [12:56:39]New connection [12:56:39]New thread 3066674532 created [12:56:39]Thread 3066817892 joined [12:56:39]Waiting for new connection... [12:56:39] Sock 8.Parse request [12:56:39]Sock 8.Check first char [12:56:39]Sock 8.First char is OK [12:56:39]request: POST /json_proto HTTP/1.0 [12:56:39]Method: POST [12:56:39]URL: /json_proto [12:56:39]Method is POST - this is cgi request [12:56:39]url: /json_proto [12:56:39]query_string will be loaded in cgi processing [12:56:39]execute_cgi json_proto POST (null) [12:56:39]execute_cgi path=json_proto method=POST [12:56:39]POST find Content-Length [12:56:39]Host: 172.17.45.67:8080 [12:56:39]Content-Length: 677 [12:56:39]Content-Type: application/json [12:56:39] [12:56:39]POST finish read [12:56:39]Found Content-Length = 677 [12:56:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:39]execute_script... [12:56: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)593166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:39]POST & json_proto [12:56:39]process_json_proto [12:56:39]json parsed OK: [12:56:39]protocol is kg_v1.0 [12:56:39]action value=close_receipt [12:56:39]process_action close_receipt [12:56:39]cmd_close_receipt [12:56:39]MH_GetDate [12:56:39]Write to MH i2c: F0 00 00 21 05 15 [12:56:39]Write i2c OK [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: F0 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: F0 09 00 [12:56:39]MH_I2C_Read... [12:56:39]Read from MH i2c: F0 09 00 21 05 00 08 41 C3 66 5F 7F 2B 66 FF [12:56:39]GetLastDocTimeStamp 1724072056 [12:56:39]current date 1724072200 [12:56:39]FM_GetShiftState [12:56:39]SAM_PROTO_GetShiftState [12:56:39]wFMCommunicate request_size=4 [12:56:39]MH_SAM_APDU [12:56:39]CAPDU: 80 13 01 00 [12:56:39]Write to MH i2c: E2 08 00 22 05 80 13 01 00 00 00 00 00 A4 [12:56:39]Write i2c OK [12:56:39]MH_I2C_Read... [12:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:40]Read from MH i2c: E2 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 0E 00 [12:56:40]MH_I2C_Read... [12:56:40]Read from MH i2c: E2 0E 00 22 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5B [12:56:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:56:40]wFMCommunicate OK [12:56:40]SAM_PROTO_GetShiftState done [12:56:40]FM_GetShiftState done [12:56:40]opened in 1724027888 [12:56:40]opened+sec_in_day 1724114288 [12:56:40]quantity*price = 30035 [12:56:40]sum+1 = 30036 [12:56:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 159 19.08.2024 12:56 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139324 ФПД: 61249700258659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125640&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139324&fm=61249700258659&tin=02508201610067®Number=0000000000092569&sum=30000 [12:56:41]StoreToDocumentArchive [12:56:41]shift 452 fd 139324 [12:56:41]save to /storage/0452/doc_00139324 [12:56:41]save last doc name /storage/0452/doc_00139324 to /storage/kkm_last_doc_name [12:56:41]save OK [12:56:41]Clear old archive folders... [12:56:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:41]tlvbuf is 011E5530 [12:56:41]SAM_PROTO_ClearQueue [12:56:41]wFMCommunicate request_size=4 [12:56:41]MH_SAM_APDU [12:56:41]CAPDU: 80 09 00 00 [12:56:41]Write to MH i2c: E2 08 00 2F 05 80 09 00 00 00 00 00 00 A6 [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:41]Read from MH i2c: E2 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 03 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 03 00 2F 05 00 90 00 A8 [12:56:41]RAPDU: 90 00 [12:56:41]wFMCommunicate OK [12:56:41]SAM_PROTO_ClearQueue done [12:56:41]KKMCreateOFDPacket [12:56:41]OFDProtocolAddRootSTLVToBuf [12:56:41]FM_MakeSignedData [12:56:41]FM_MakeSignedData [12:56:41]SAM_PROTO_SignData [12:56:41]wFMCommunicate request_size=4 [12:56:41]MH_SAM_APDU [12:56:41]CAPDU: 80 0D 01 02 [12:56:41]Write to MH i2c: E2 08 00 30 05 80 0D 01 02 00 00 00 00 AE [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:41]Read from MH i2c: E2 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 03 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 03 00 30 05 00 90 00 A9 [12:56:41]RAPDU: 90 00 [12:56:41]wFMCommunicate OK [12:56:41]wFMCommunicate request_size=255 [12:56:41]MH_SAM_APDU [12:56: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 08 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 20 02 00 35 04 06 00 37 [12:56:41]Write to MH i2c: E2 02 01 31 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 08 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 20 02 00 35 04 06 00 37 00 00 C1 [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:41]Read from MH i2c: E2 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 03 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 03 00 31 05 00 90 00 AA [12:56:41]RAPDU: 90 00 [12:56:41]wFMCommunicate OK [12:56:41]wFMCommunicate request_size=10 [12:56:41]MH_SAM_APDU [12:56:41]CAPDU: 80 0D 02 02 05 B4 CE A0 63 63 [12:56:41]Write to MH i2c: E2 0D 00 32 05 80 0D 02 02 05 00 B4 CE A0 63 63 00 00 A3 [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:41]Read from MH i2c: E2 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 03 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 03 00 32 05 00 90 00 AB [12:56:41]RAPDU: 90 00 [12:56:41]wFMCommunicate OK [12:56:41]wFMCommunicate request_size=4 [12:56:41]MH_SAM_APDU [12:56:41]CAPDU: 80 0D 03 02 [12:56:41]Write to MH i2c: E2 08 00 33 05 80 0D 03 02 00 00 00 00 B3 [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:41]Read from MH i2c: E2 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 0B 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 0B 00 33 05 00 38 74 B1 2E 86 33 41 7D 90 00 B6 [12:56:41]RAPDU: 38 74 B1 2E 86 33 41 7D 90 00 [12:56:41]wFMCommunicate OK [12:56:41]SAM_PROTO_SignData done [12:56:41]FM_MakeSignedData done [12:56:41]CreateOFDProtocolMessage [12:56:41]wFMCommunicate request_size=4 [12:56:41]MH_SAM_APDU [12:56:41]CAPDU: 80 11 00 00 [12:56:41]Write to MH i2c: E2 08 00 34 05 80 11 00 00 00 00 00 00 B3 [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:41]Read from MH i2c: E2 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 17 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: E2 17 00 34 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [12:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:56:41]wFMCommunicate OK [12:56:41]CreateOFDProtocolMessage done [12:56:41]OFDSenderStorePacket 139324 [12:56:41]StoreOFDPacket docnum=139324 [12:56:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 5F 07 01 43 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 08 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 20 02 00 35 04 06 00 37 B4 CE A0 63 63 38 74 B1 2E 86 33 41 7D [12:56:41]CheckFolder [12:56:41]dirname=/storage/ofd_packets [12:56:41]CheckFolder done [12:56:41]ProducePacketName [12:56:41]name=ofd_packets/00139324 [12:56:41]NVStorageSaveData ofd_packets/00139324 [12:56:41]File name is /storage/ofd_packets/00139324 [12:56:41]Write 301 bytes [12:56:41]NVStorageSaveData done [12:56:41]OFDSenderStorePacket done [12:56:41]KKMCreateOFDPacket done [12:56:41]NVStorageSaveData kkm_last_timestamp [12:56:41]File name is /storage/kkm_last_timestamp [12:56:41]Write 4 bytes [12:56:41]NVStorageSaveData done [12:56:41]ExternCall_PrintAddStr [12:56:41]wPrintStart [12:56:41]Write to MH i2c: 01 00 00 35 05 3A [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: 01 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: 01 07 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: 01 07 00 35 05 00 00 00 00 00 FF 0F 4F [12:56:41]RasterBufferAndPrint [12:56:41]line Счет N : (1)593166 [12:56:41]line ИНН: 02508201610067 [12:56:41]line Контрольно-Кассовый Чек [12:56:41]line ПРОДАЖА [12:56:41]line ТРК (МРК, ГНК) : 32 [12:56:41]line Товар: 2710124130 [12:56:41]line Аи-92-К-5 [12:56:41]line 4.430 * 67.80 [12:56:41]line = 300.35 [12:56:41]line НДС 12% НСП 1% [12:56:41]line > о реализуемом товаре [12:56:41]line ОКРУГЛЕНИЕ: -0.35 [12:56:41]line ИТОГО: 300.00 [12:56:41]line Внесено: 300.00 [12:56:41]line СДАЧА: 0.00 [12:56:41]line НСП 1% : 2.66 [12:56:41]line НДС 12% : 31.90 [12:56:41]line Наличными: 300.00 [12:56:41]line Безнал.: 0.00 [12:56:41]line Место: АЗС № 136 "Партнер Нефть" [12:56:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:56:41]line СНО: Общий режим [12:56:41]line Чек 159 19.08.2024 12:56 [12:56:41]line Смена: 452 ФФД: 1.0 [12:56:41]line ЗНМ: 0300000067 [12:56:41]line РНМ: 0000000000092569 [12:56:41]line Версия ККМ: 001 [12:56:41]line ФМ: 0000000000871776 [12:56:41]line ФД: 139324 [12:56:41]line ФПД: 61249700258659 [12:56:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125640&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139324&fm=61249700258659&tin=02508201610067®Number=0000000000092569&sum=30000 [12:56:41]OFD Sender: Processing packet 139324 [packets to send 137, broken 136] [12:56:41]ProducePacketName [12:56:41]name=ofd_packets/00139324 [12:56:42]OFD Sender: To server: pG, [12:56:42]CommunicateWithHost lk.salyk.kg:30040 [12:56:42]ConnectInit lk.salyk.kg [12:56:42]written 0, free lines is 4095 [12:56:42]Connected sock=10 [12:56: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 37 36 0F 01 00 00 94 5F 07 01 43 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 08 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 20 02 00 35 04 06 00 37 B4 CE A0 63 63 38 74 B1 2E 86 33 41 7D [12:56: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 37 36 4F 00 00 00 09 B9 47 00 D4 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 37 36 10 04 04 00 3C 20 02 00 F4 03 04 00 9E E7 C2 66 B6 04 01 00 00 17 C8 44 F9 05 23 1E F6 [12:56:42]CommunicateWithHost err = 0 [12:56:42]CheckOFDResponse [12:56:42]1017 (14) - 77093643461234 [12:56:42]1041 (16) - 0000000000871776 [12:56:42]1040 (4) - 139324 [12:56:42]1012 (4) - 19.08.2024 06:35 [12:56:42]1206 (1) - 0 [12:56:42]OFD Sender: Remove packet 139324 [12:56:42]ProducePacketName [12:56:42]name=ofd_packets/00139324 [12:56:42]NVStorageDeleteData [12:56:42]Write to MH i2c: 01 00 00 60 05 65 [12:56:42]Write i2c OK [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: 01 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: 01 07 00 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: 01 07 00 60 05 00 00 00 00 00 CD 0C 45 [12:56:42]RasterBufferAndPrint [12:56:42]line [12:56:42]line [12:56:42]line [12:56:42]line [12:56:42]line [12:56:42]written 0, free lines is 3287 [12:56:42]MH_Cut [12:56:42]Write to MH i2c: D1 01 00 67 05 01 3E [12:56:42]Write i2c OK [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: D1 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: D1 01 00 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: D1 01 00 67 05 00 3D [12:56:42]Write to MH i2c: 01 00 00 68 05 6D [12:56:42]Write i2c OK [12:56:42]MH_I2C_Read... [12:56:42]OFD Sender: No OFD packet to send [12:56:43]*** Cut start [12:56:43]*** Partial cut [12:56:43]*** CUTSNS_PIN = 1 [12:56:43]*** CUTSNS_PIN = 0 [12:56:43]*** Brake cut motor [12:56:43]Read from MH i2c: 01 [12:56:43]MH_I2C_Read... [12:56:43]*** Stop cut motor [12:56:43]*** Cut end [12:56:43]Read from MH i2c: 01 07 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: 01 07 00 68 05 00 00 00 00 00 FF 0F 82 [12:56:43]process_action close_receipt done [12:56:43]requested_data is exist [12:56:43]produce_requested_data [12:56:43]requested_item fm.sn is exist - process it [12:56:43]wFMCommunicate request_size=4 [12:56:43]MH_SAM_APDU [12:56:43]CAPDU: 80 11 00 00 [12:56:43]Write to MH i2c: E2 08 00 69 05 80 11 00 00 00 00 00 00 E8 [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:43]Read from MH i2c: E2 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 17 00 [12:56:43]MH_I2C_Read... [12:56:43]Read from MH i2c: E2 17 00 69 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3F [12:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:56:43]wFMCommunicate OK [12:56:43]requested_item fd.num is exist - process it [12:56:43]SAM_PROTO_GetFieldsCounters [12:56:43]wFMCommunicate request_size=4 [12:56:43]MH_SAM_APDU [12:56:43]CAPDU: 80 13 00 00 [12:56:43]Write to MH i2c: E2 08 00 6A 05 80 13 00 00 00 00 00 00 EB [12:56:43]Write i2c OK [12:56:43]MH_I2C_Read... [12:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:44]Read from MH i2c: E2 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 62 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 62 00 6A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [12:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:44]wFMCommunicate OK [12:56:44]SAM_PROTO_GetFieldsCounters done [12:56:44]requested_item shift.num is exist - process it [12:56:44]requested_item shift.opened is exist - process it [12:56:44]req_shift_opened [12:56:44]FM_GetShiftState [12:56:44]SAM_PROTO_GetShiftState [12:56:44]wFMCommunicate request_size=4 [12:56:44]MH_SAM_APDU [12:56:44]CAPDU: 80 13 01 00 [12:56:44]Write to MH i2c: E2 08 00 6B 05 80 13 01 00 00 00 00 00 ED [12:56:44]Write i2c OK [12:56:44]MH_I2C_Read... [12:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:44]Read from MH i2c: E2 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 0E 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 0E 00 6B 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A4 [12:56:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:56:44]wFMCommunicate OK [12:56:44]SAM_PROTO_GetShiftState done [12:56:44]FM_GetShiftState done [12:56:44]req_shift_opened done [12:56:44]requested_item shift.open_date is exist - process it [12:56:44]req_shift_open_date [12:56:44]req_shift_open_date done [12:56:44]produce_requested_data done [12:56:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139324,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:56:44]process_action_free close_receipt [12:56:44]json_value_free [12:56:44]json_value_free done [12:56:44]process_json_proto returns [12:56:44]Send response to host [12:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139324,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:56:44]free response buf [12:56:44]execute_script done [12:56:44]execute_script returns [12:56:44]free content buf [12:56:44]Sock 8.Close socket [12:56:44]Sock 8.Thread stoped [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:53]accept exits with 9 [12:56:53]New connection [12:56:53]New thread 3066817892 created [12:56:53]Thread 3066674532 joined [12:56:53]Waiting for new connection... [12:56:53] Sock 9.Parse request [12:56:53]Sock 9.Check first char [12:56:53]Sock 9.First char is OK [12:56:53]request: POST /json_proto HTTP/1.0 [12:56:53]Method: POST [12:56:53]URL: /json_proto [12:56:53]Method is POST - this is cgi request [12:56:53]url: /json_proto [12:56:53]query_string will be loaded in cgi processing [12:56:53]execute_cgi json_proto POST (null) [12:56:53]execute_cgi path=json_proto method=POST [12:56:53]POST find Content-Length [12:56:53]Host: 172.17.45.67:8080 [12:56:53]Content-Length: 682 [12:56:53]Content-Type: application/json [12:56:53] [12:56:53]POST finish read [12:56:53]Found Content-Length = 682 [12:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:53]execute_script... [12: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)593164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:53]POST & json_proto [12:56:53]process_json_proto [12:56:53]json parsed OK: [12:56:53]protocol is kg_v1.0 [12:56:53]action value=close_receipt [12:56:53]process_action close_receipt [12:56:53]cmd_close_receipt [12:56:53]MH_GetDate [12:56:53]Write to MH i2c: F0 00 00 6C 05 60 [12:56:53]Write i2c OK [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: F0 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: F0 09 00 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: F0 09 00 6C 05 00 16 41 C3 66 5F 7F 2B 66 58 [12:56:53]GetLastDocTimeStamp 1724072200 [12:56:53]current date 1724072214 [12:56:53]FM_GetShiftState [12:56:53]SAM_PROTO_GetShiftState [12:56:53]wFMCommunicate request_size=4 [12:56:53]MH_SAM_APDU [12:56:53]CAPDU: 80 13 01 00 [12:56:53]Write to MH i2c: E2 08 00 6D 05 80 13 01 00 00 00 00 00 EF [12:56:53]Write i2c OK [12:56:53]MH_I2C_Read... [12:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:53]Read from MH i2c: E2 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: E2 0E 00 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: E2 0E 00 6D 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A6 [12:56:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:56:53]wFMCommunicate OK [12:56:53]SAM_PROTO_GetShiftState done [12:56:53]FM_GetShiftState done [12:56:53]opened in 1724027888 [12:56:53]opened+sec_in_day 1724114288 [12:56:53]quantity*price = 300015 [12:56:53]sum+1 = 300016 [12:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.60 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 160 19.08.2024 12:56 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139325 ФПД: 195931464144035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125654&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139325&fm=195931464144035&tin=02508201610067®Number=0000000000092569&sum=300000 [12:56:54]StoreToDocumentArchive [12:56:54]shift 452 fd 139325 [12:56:54]save to /storage/0452/doc_00139325 [12:56:54]save last doc name /storage/0452/doc_00139325 to /storage/kkm_last_doc_name [12:56:54]save OK [12:56:54]Clear old archive folders... [12:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:54]tlvbuf is 011CAF40 [12:56:54]SAM_PROTO_ClearQueue [12:56:54]wFMCommunicate request_size=4 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 09 00 00 [12:56:54]Write to MH i2c: E2 08 00 7A 05 80 09 00 00 00 00 00 00 F1 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 7A 05 00 90 00 F3 [12:56:54]RAPDU: 90 00 [12:56:54]wFMCommunicate OK [12:56:54]SAM_PROTO_ClearQueue done [12:56:54]KKMCreateOFDPacket [12:56:54]OFDProtocolAddRootSTLVToBuf [12:56:54]FM_MakeSignedData [12:56:54]FM_MakeSignedData [12:56:54]SAM_PROTO_SignData [12:56:54]wFMCommunicate request_size=4 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 0D 01 02 [12:56:54]Write to MH i2c: E2 08 00 7B 05 80 0D 01 02 00 00 00 00 F9 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 7B 05 00 90 00 F4 [12:56:54]RAPDU: 90 00 [12:56:54]wFMCommunicate OK [12:56:54]wFMCommunicate request_size=255 [12:56:54]MH_SAM_APDU [12: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 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 16 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 20 02 00 35 04 06 00 B2 [12:56:54]Write to MH i2c: E2 02 01 7C 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 16 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 20 02 00 35 04 06 00 B2 00 00 EC [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:55]Read from MH i2c: E2 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: E2 03 00 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: E2 03 00 7C 05 00 90 00 F5 [12:56:55]RAPDU: 90 00 [12:56:55]wFMCommunicate OK [12:56:55]wFMCommunicate request_size=10 [12:56:55]MH_SAM_APDU [12:56:55]CAPDU: 80 0D 02 02 05 32 D9 52 14 A3 [12:56:55]Write to MH i2c: E2 0D 00 7D 05 80 0D 02 02 05 00 32 D9 52 14 A3 00 00 1A [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:55]Read from MH i2c: E2 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: E2 03 00 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: E2 03 00 7D 05 00 90 00 F6 [12:56:55]RAPDU: 90 00 [12:56:55]wFMCommunicate OK [12:56:55]wFMCommunicate request_size=4 [12:56:55]MH_SAM_APDU [12:56:55]CAPDU: 80 0D 03 02 [12:56:55]Write to MH i2c: E2 08 00 7E 05 80 0D 03 02 00 00 00 00 FE [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:55]Read from MH i2c: E2 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: E2 0B 00 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: E2 0B 00 7E 05 00 1A 0A FE AD 84 0A D8 00 90 00 34 [12:56:55]RAPDU: 1A 0A FE AD 84 0A D8 00 90 00 [12:56:55]wFMCommunicate OK [12:56:55]SAM_PROTO_SignData done [12:56:55]FM_MakeSignedData done [12:56:55]CreateOFDProtocolMessage [12:56:55]wFMCommunicate request_size=4 [12:56:55]MH_SAM_APDU [12:56:55]CAPDU: 80 11 00 00 [12:56:55]Write to MH i2c: E2 08 00 7F 05 80 11 00 00 00 00 00 00 FE [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:55]Read from MH i2c: E2 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: E2 17 00 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: E2 17 00 7F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [12:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:56:55]wFMCommunicate OK [12:56:55]CreateOFDProtocolMessage done [12:56:55]OFDSenderStorePacket 139325 [12:56:55]StoreOFDPacket docnum=139325 [12:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 40 48 07 01 FF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 16 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 20 02 00 35 04 06 00 B2 32 D9 52 14 A3 1A 0A FE AD 84 0A D8 00 [12:56:55]CheckFolder [12:56:55]dirname=/storage/ofd_packets [12:56:55]CheckFolder done [12:56:55]ProducePacketName [12:56:55]name=ofd_packets/00139325 [12:56:55]NVStorageSaveData ofd_packets/00139325 [12:56:55]File name is /storage/ofd_packets/00139325 [12:56:55]Write 301 bytes [12:56:55]NVStorageSaveData done [12:56:55]OFDSenderStorePacket done [12:56:55]KKMCreateOFDPacket done [12:56:55]NVStorageSaveData kkm_last_timestamp [12:56:55]File name is /storage/kkm_last_timestamp [12:56:55]Write 4 bytes [12:56:55]NVStorageSaveData done [12:56:55]ExternCall_PrintAddStr [12:56:55]wPrintStart [12:56:55]Write to MH i2c: 01 00 00 80 05 85 [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: 01 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: 01 07 00 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: 01 07 00 80 05 00 00 00 00 00 FF 0F 9A [12:56:55]RasterBufferAndPrint [12:56:55]line Счет N : (1)593164 [12:56:55]line ИНН: 02508201610067 [12:56:55]line Контрольно-Кассовый Чек [12:56:55]line ПРОДАЖА [12:56:55]line ТРК (МРК, ГНК) : 52 [12:56:55]line Товар: 2710124130 [12:56:55]line Аи-92-К-5 [12:56:55]line 44.250 * 67.80 [12:56:55]line = 3000.15 [12:56:55]line НДС 12% НСП 1% [12:56:55]line > о реализуемом товаре [12:56:55]line ОКРУГЛЕНИЕ: -0.15 [12:56:55]line ИТОГО: 3000.00 [12:56:55]line Внесено: 3000.00 [12:56:55]line СДАЧА: 0.00 [12:56:55]line НСП 1% : 26.55 [12:56:55]line НДС 12% : 318.60 [12:56:55]line Наличными: 3000.00 [12:56:55]line Безнал.: 0.00 [12:56:55]line Место: АЗС № 136 "Партнер Нефть" [12:56:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:56:55]line СНО: Общий режим [12:56:55]line Чек 160 19.08.2024 12:56 [12:56:55]line Смена: 452 ФФД: 1.0 [12:56:55]line ЗНМ: 0300000067 [12:56:55]line РНМ: 0000000000092569 [12:56:55]line Версия ККМ: 001 [12:56:55]line ФМ: 0000000000871776 [12:56:55]line ФД: 139325 [12:56:55]line ФПД: 195931464144035 [12:56:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125654&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139325&fm=195931464144035&tin=02508201610067®Number=0000000000092569&sum=300000 [12:56:55]OFD Sender: Processing packet 139325 [packets to send 137, broken 136] [12:56:55]ProducePacketName [12:56:55]name=ofd_packets/00139325 [12:56:55]OFD Sender: To server: pG, [12:56:55]CommunicateWithHost lk.salyk.kg:30040 [12:56:55]ConnectInit lk.salyk.kg [12:56:55]written 0, free lines is 4095 [12:56:55]Connected sock=10 [12: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 37 36 0F 01 00 00 40 48 07 01 FF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 16 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 20 02 00 35 04 06 00 B2 32 D9 52 14 A3 1A 0A FE AD 84 0A D8 00 [12:56: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 37 36 4F 00 00 00 A1 ED 47 00 B1 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 37 36 10 04 04 00 3D 20 02 00 F4 03 04 00 AC E7 C2 66 B6 04 01 00 00 83 81 BE 7A C6 AF 47 87 [12:56:56]CommunicateWithHost err = 0 [12:56:56]CheckOFDResponse [12:56:56]1017 (14) - 77093643461234 [12:56:56]1041 (16) - 0000000000871776 [12:56:56]1040 (4) - 139325 [12:56:56]1012 (4) - 19.08.2024 06:35 [12:56:56]1206 (1) - 0 [12:56:56]OFD Sender: Remove packet 139325 [12:56:56]ProducePacketName [12:56:56]name=ofd_packets/00139325 [12:56:56]NVStorageDeleteData [12:56:56]Write to MH i2c: 01 00 00 AB 05 B0 [12:56:56]Write i2c OK [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: 01 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: 01 07 00 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: 01 07 00 AB 05 00 00 00 00 00 CA 0C 8D [12:56:56]RasterBufferAndPrint [12:56:56]line [12:56:56]line [12:56:56]line [12:56:56]line [12:56:56]line [12:56:56]written 0, free lines is 3281 [12:56:56]MH_Cut [12:56:56]Write to MH i2c: D1 01 00 B2 05 01 89 [12:56:56]Write i2c OK [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: D1 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: D1 01 00 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: D1 01 00 B2 05 00 88 [12:56:56]Write to MH i2c: 01 00 00 B3 05 B8 [12:56:56]Write i2c OK [12:56:56]MH_I2C_Read... [12:56:56]OFD Sender: No OFD packet to send [12:56:56]*** Cut start [12:56:56]*** Partial cut [12:56:56]*** CUTSNS_PIN = 1 [12:56:56]*** CUTSNS_PIN = 0 [12:56:57]*** Brake cut motor [12:56:57]Read from MH i2c: 01 [12:56:57]MH_I2C_Read... [12:56:57]*** Stop cut motor [12:56:57]*** Cut end [12:56:57]Read from MH i2c: 01 07 00 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: 01 07 00 B3 05 00 00 00 00 00 FF 0F CD [12:56:57]process_action close_receipt done [12:56:57]requested_data is exist [12:56:57]produce_requested_data [12:56:57]requested_item fm.sn is exist - process it [12:56:57]wFMCommunicate request_size=4 [12:56:57]MH_SAM_APDU [12:56:57]CAPDU: 80 11 00 00 [12:56:57]Write to MH i2c: E2 08 00 B4 05 80 11 00 00 00 00 00 00 33 [12:56:57]Write i2c OK [12:56:57]MH_I2C_Read... [12:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:57]Read from MH i2c: E2 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 17 00 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 17 00 B4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8A [12:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:56:57]wFMCommunicate OK [12:56:57]requested_item fd.num is exist - process it [12:56:57]SAM_PROTO_GetFieldsCounters [12:56:57]wFMCommunicate request_size=4 [12:56:57]MH_SAM_APDU [12:56:57]CAPDU: 80 13 00 00 [12:56:57]Write to MH i2c: E2 08 00 B5 05 80 13 00 00 00 00 00 00 36 [12:56:57]Write i2c OK [12:56:57]MH_I2C_Read... [12:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:57]Read from MH i2c: E2 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 62 00 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 62 00 B5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [12:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:57]wFMCommunicate OK [12:56:57]SAM_PROTO_GetFieldsCounters done [12:56:57]requested_item shift.num is exist - process it [12:56:57]requested_item shift.opened is exist - process it [12:56:57]req_shift_opened [12:56:57]FM_GetShiftState [12:56:57]SAM_PROTO_GetShiftState [12:56:57]wFMCommunicate request_size=4 [12:56:57]MH_SAM_APDU [12:56:57]CAPDU: 80 13 01 00 [12:56:57]Write to MH i2c: E2 08 00 B6 05 80 13 01 00 00 00 00 00 38 [12:56:57]Write i2c OK [12:56:57]MH_I2C_Read... [12:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:57]Read from MH i2c: E2 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 0E 00 [12:56:57]MH_I2C_Read... [12:56:57]Read from MH i2c: E2 0E 00 B6 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EF [12:56:57]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:56:57]wFMCommunicate OK [12:56:57]SAM_PROTO_GetShiftState done [12:56:57]FM_GetShiftState done [12:56:57]req_shift_opened done [12:56:57]requested_item shift.open_date is exist - process it [12:56:57]req_shift_open_date [12:56:57]req_shift_open_date done [12:56:57]produce_requested_data done [12:56:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139325,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:56:57]process_action_free close_receipt [12:56:57]json_value_free [12:56:57]json_value_free done [12:56:57]process_json_proto returns [12:56:57]Send response to host [12:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139325,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:56:57]free response buf [12:56:57]execute_script done [12:56:57]execute_script returns [12:56:57]free content buf [12:56:57]Sock 9.Close socket [12:56:57]Sock 9.Thread stoped [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:34]accept exits with 8 [12:58:34]New connection [12:58:34]New thread 3066674532 created [12:58:34]Thread 3066817892 joined [12:58:34]Waiting for new connection... [12:58:34] Sock 8.Parse request [12:58:34]Sock 8.Check first char [12:58:34]Sock 8.First char is OK [12:58:34]request: POST /json_proto HTTP/1.0 [12:58:34]Method: POST [12:58:34]URL: /json_proto [12:58:34]Method is POST - this is cgi request [12:58:34]url: /json_proto [12:58:34]query_string will be loaded in cgi processing [12:58:34]execute_cgi json_proto POST (null) [12:58:34]execute_cgi path=json_proto method=POST [12:58:34]POST find Content-Length [12:58:34]Host: 172.17.45.67:8080 [12:58:34]Content-Length: 658 [12:58:34]Content-Type: application/json [12:58:34] [12:58:34]POST finish read [12:58:34]Found Content-Length = 658 [12:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:34]execute_script... [12:58: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)593168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:34]POST & json_proto [12:58:34]process_json_proto [12:58:34]json parsed OK: [12:58:34]protocol is kg_v1.0 [12:58:34]action value=close_receipt [12:58:34]process_action close_receipt [12:58:34]cmd_close_receipt [12:58:34]MH_GetDate [12:58:34]Write to MH i2c: F0 00 00 B7 05 AB [12:58:34]Write i2c OK [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: F0 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: F0 09 00 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: F0 09 00 B7 05 00 7B 41 C3 66 5F 7F 2B 66 08 [12:58:34]GetLastDocTimeStamp 1724072214 [12:58:34]current date 1724072315 [12:58:34]FM_GetShiftState [12:58:34]SAM_PROTO_GetShiftState [12:58:34]wFMCommunicate request_size=4 [12:58:34]MH_SAM_APDU [12:58:34]CAPDU: 80 13 01 00 [12:58:34]Write to MH i2c: E2 08 00 B8 05 80 13 01 00 00 00 00 00 3A [12:58:34]Write i2c OK [12:58:34]MH_I2C_Read... [12:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:34]Read from MH i2c: E2 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: E2 0E 00 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: E2 0E 00 B8 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F1 [12:58:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:58:34]wFMCommunicate OK [12:58:34]SAM_PROTO_GetShiftState done [12:58:34]FM_GetShiftState done [12:58:34]opened in 1724027888 [12:58:34]opened+sec_in_day 1724114288 [12:58:34]quantity*price = 50017 [12:58:34]sum+1 = 50019 [12:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 161 19.08.2024 12:58 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139326 ФПД: 190202229965054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125835&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139326&fm=190202229965054&tin=02508201610067®Number=0000000000092569&sum=50000 [12:58:35]StoreToDocumentArchive [12:58:35]shift 452 fd 139326 [12:58:35]save to /storage/0452/doc_00139326 [12:58:35]save last doc name /storage/0452/doc_00139326 to /storage/kkm_last_doc_name [12:58:35]save OK [12:58:35]Clear old archive folders... [12:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:58:35]tlvbuf is 012013A0 [12:58:35]SAM_PROTO_ClearQueue [12:58:35]wFMCommunicate request_size=4 [12:58:35]MH_SAM_APDU [12:58:35]CAPDU: 80 09 00 00 [12:58:35]Write to MH i2c: E2 08 00 C5 05 80 09 00 00 00 00 00 00 3C [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:35]Read from MH i2c: E2 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 03 00 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 03 00 C5 05 00 90 00 3E [12:58:35]RAPDU: 90 00 [12:58:35]wFMCommunicate OK [12:58:35]SAM_PROTO_ClearQueue done [12:58:35]KKMCreateOFDPacket [12:58:35]OFDProtocolAddRootSTLVToBuf [12:58:35]FM_MakeSignedData [12:58:35]FM_MakeSignedData [12:58:35]SAM_PROTO_SignData [12:58:35]wFMCommunicate request_size=4 [12:58:35]MH_SAM_APDU [12:58:35]CAPDU: 80 0D 01 02 [12:58:35]Write to MH i2c: E2 08 00 C6 05 80 0D 01 02 00 00 00 00 44 [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:35]Read from MH i2c: E2 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 03 00 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 03 00 C6 05 00 90 00 3F [12:58:35]RAPDU: 90 00 [12:58:35]wFMCommunicate OK [12:58:35]wFMCommunicate request_size=253 [12:58:35]MH_SAM_APDU [12:58:35]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 7B 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 20 02 00 35 04 06 00 AC FC E8 5A 40 FE [12:58:35]Write to MH i2c: E2 00 01 C7 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 7B 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 20 02 00 35 04 06 00 AC FC E8 5A 40 FE 00 00 30 [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:35]Read from MH i2c: E2 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 03 00 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [12:58:35]RAPDU: 90 00 [12:58:35]wFMCommunicate OK [12:58:35]wFMCommunicate request_size=4 [12:58:35]MH_SAM_APDU [12:58:35]CAPDU: 80 0D 03 02 [12:58:35]Write to MH i2c: E2 08 00 C8 05 80 0D 03 02 00 00 00 00 48 [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:35]Read from MH i2c: E2 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 0B 00 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 0B 00 C8 05 00 7C E2 60 44 49 96 5A 3F 90 00 C3 [12:58:35]RAPDU: 7C E2 60 44 49 96 5A 3F 90 00 [12:58:35]wFMCommunicate OK [12:58:35]SAM_PROTO_SignData done [12:58:35]FM_MakeSignedData done [12:58:35]CreateOFDProtocolMessage [12:58:35]wFMCommunicate request_size=4 [12:58:35]MH_SAM_APDU [12:58:35]CAPDU: 80 11 00 00 [12:58:35]Write to MH i2c: E2 08 00 C9 05 80 11 00 00 00 00 00 00 48 [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:35]Read from MH i2c: E2 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 17 00 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: E2 17 00 C9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9F [12:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:58:35]wFMCommunicate OK [12:58:35]CreateOFDProtocolMessage done [12:58:35]OFDSenderStorePacket 139326 [12:58:35]StoreOFDPacket docnum=139326 [12:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 C0 36 00 01 64 23 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 7B 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 20 02 00 35 04 06 00 AC FC E8 5A 40 FE 7C E2 60 44 49 96 5A 3F [12:58:35]CheckFolder [12:58:35]dirname=/storage/ofd_packets [12:58:35]CheckFolder done [12:58:35]ProducePacketName [12:58:35]name=ofd_packets/00139326 [12:58:35]NVStorageSaveData ofd_packets/00139326 [12:58:35]File name is /storage/ofd_packets/00139326 [12:58:35]Write 294 bytes [12:58:35]NVStorageSaveData done [12:58:35]OFDSenderStorePacket done [12:58:35]KKMCreateOFDPacket done [12:58:35]NVStorageSaveData kkm_last_timestamp [12:58:35]File name is /storage/kkm_last_timestamp [12:58:35]Write 4 bytes [12:58:35]NVStorageSaveData done [12:58:35]ExternCall_PrintAddStr [12:58:35]wPrintStart [12:58:35]Write to MH i2c: 01 00 00 CA 05 CF [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: 01 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: 01 07 00 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: 01 07 00 CA 05 00 00 00 00 00 FF 0F E4 [12:58:35]RasterBufferAndPrint [12:58:35]line Счет N : (1)593168 [12:58:35]line ИНН: 02508201610067 [12:58:35]line Контрольно-Кассовый Чек [12:58:35]line ПРОДАЖА [12:58:35]line ТРК (МРК, ГНК) : 43 [12:58:35]line Товар: 2710124130 [12:58:35]line SU-92 [12:58:35]line 7.270 * 68.80 [12:58:35]line = 500.18 [12:58:35]line НДС 12% НСП 1% [12:58:35]line > о реализуемом товаре [12:58:35]line ОКРУГЛЕНИЕ: -0.18 [12:58:35]line ИТОГО: 500.00 [12:58:35]line Внесено: 500.00 [12:58:35]line СДАЧА: 0.00 [12:58:35]line НСП 1% : 4.43 [12:58:35]line НДС 12% : 53.12 [12:58:35]line Наличными: 500.00 [12:58:35]line Безнал.: 0.00 [12:58:35]line Место: АЗС № 136 "Партнер Нефть" [12:58:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:58:35]line СНО: Общий режим [12:58:35]line Чек 161 19.08.2024 12:58 [12:58:35]line Смена: 452 ФФД: 1.0 [12:58:35]line ЗНМ: 0300000067 [12:58:35]line РНМ: 0000000000092569 [12:58:35]line Версия ККМ: 001 [12:58:35]line ФМ: 0000000000871776 [12:58:35]line ФД: 139326 [12:58:35]line ФПД: 190202229965054 [12:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125835&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139326&fm=190202229965054&tin=02508201610067®Number=0000000000092569&sum=50000 [12:58:36]OFD Sender: Processing packet 139326 [packets to send 137, broken 136] [12:58:36]ProducePacketName [12:58:36]name=ofd_packets/00139326 [12:58:36]OFD Sender: To server: pG, [12:58:36]CommunicateWithHost lk.salyk.kg:30040 [12:58:36]ConnectInit lk.salyk.kg [12:58:36]written 0, free lines is 4095 [12:58:36]Connected sock=10 [12:58: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 37 36 08 01 00 00 C0 36 00 01 64 23 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 7B 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 20 02 00 35 04 06 00 AC FC E8 5A 40 FE 7C E2 60 44 49 96 5A 3F [12:58: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 37 36 4F 00 00 00 78 97 47 00 2A 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 37 36 10 04 04 00 3E 20 02 00 F4 03 04 00 10 E8 C2 66 B6 04 01 00 00 17 39 F8 67 D8 A1 F5 20 [12:58:36]CommunicateWithHost err = 0 [12:58:36]CheckOFDResponse [12:58:36]1017 (14) - 77093643461234 [12:58:36]1041 (16) - 0000000000871776 [12:58:36]1040 (4) - 139326 [12:58:36]1012 (4) - 19.08.2024 06:37 [12:58:36]1206 (1) - 0 [12:58:36]OFD Sender: Remove packet 139326 [12:58:36]ProducePacketName [12:58:36]name=ofd_packets/00139326 [12:58:36]NVStorageDeleteData [12:58:36]Write to MH i2c: 01 00 00 F5 05 FA [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: 01 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: 01 07 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: 01 07 00 F5 05 00 00 00 00 00 CF 0C DC [12:58:36]RasterBufferAndPrint [12:58:36]line [12:58:36]line [12:58:36]line [12:58:36]line [12:58:36]line [12:58:36]written 0, free lines is 3283 [12:58:36]MH_Cut [12:58:36]Write to MH i2c: D1 01 00 FC 05 01 D3 [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: D1 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: D1 01 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: D1 01 00 FC 05 00 D2 [12:58:36]Write to MH i2c: 01 00 00 FD 05 02 [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:37]OFD Sender: No OFD packet to send [12:58:37]*** Cut start [12:58:37]*** Partial cut [12:58:37]*** CUTSNS_PIN = 1 [12:58:37]*** CUTSNS_PIN = 0 [12:58:37]*** Brake cut motor [12:58:37]Read from MH i2c: 01 [12:58:37]MH_I2C_Read... [12:58:37]*** Stop cut motor [12:58:37]*** Cut end [12:58:37]Read from MH i2c: 01 07 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 FF 0F 17 [12:58:37]process_action close_receipt done [12:58:37]requested_data is exist [12:58:37]produce_requested_data [12:58:37]requested_item fm.sn is exist - process it [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 11 00 00 [12:58:37]Write to MH i2c: E2 08 00 FE 05 80 11 00 00 00 00 00 00 7D [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:38]Read from MH i2c: E2 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 17 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 17 00 FE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [12:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:58:38]wFMCommunicate OK [12:58:38]requested_item fd.num is exist - process it [12:58:38]SAM_PROTO_GetFieldsCounters [12:58:38]wFMCommunicate request_size=4 [12:58:38]MH_SAM_APDU [12:58:38]CAPDU: 80 13 00 00 [12:58:38]Write to MH i2c: E2 08 00 FF 05 80 13 00 00 00 00 00 00 80 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:38]Read from MH i2c: E2 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 62 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 62 00 FF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [12:58: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:38]wFMCommunicate OK [12:58:38]SAM_PROTO_GetFieldsCounters done [12:58:38]requested_item shift.num is exist - process it [12:58:38]requested_item shift.opened is exist - process it [12:58:38]req_shift_opened [12:58:38]FM_GetShiftState [12:58:38]SAM_PROTO_GetShiftState [12:58:38]wFMCommunicate request_size=4 [12:58:38]MH_SAM_APDU [12:58:38]CAPDU: 80 13 01 00 [12:58:38]Write to MH i2c: E2 08 00 00 06 80 13 01 00 00 00 00 00 83 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:38]Read from MH i2c: E2 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 0E 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: E2 0E 00 00 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3A [12:58:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [12:58:38]wFMCommunicate OK [12:58:38]SAM_PROTO_GetShiftState done [12:58:38]FM_GetShiftState done [12:58:38]req_shift_opened done [12:58:38]requested_item shift.open_date is exist - process it [12:58:38]req_shift_open_date [12:58:38]req_shift_open_date done [12:58:38]produce_requested_data done [12:58:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139326,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [12:58:38]process_action_free close_receipt [12:58:38]json_value_free [12:58:38]json_value_free done [12:58:38]process_json_proto returns [12:58:38]Send response to host [12:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139326,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [12:58:38]free response buf [12:58:38]execute_script done [12:58:38]execute_script returns [12:58:38]free content buf [12:58:38]Sock 8.Close socket [12:58:38]Sock 8.Thread stoped [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:43]accept exits with 9 [13:00:43]New connection [13:00:43]New thread 3066817892 created [13:00:43]Thread 3066674532 joined [13:00:43]Waiting for new connection... [13:00:43] Sock 9.Parse request [13:00:43]Sock 9.Check first char [13:00:43]Sock 9.First char is OK [13:00:43]request: POST /json_proto HTTP/1.0 [13:00:43]Method: POST [13:00:43]URL: /json_proto [13:00:43]Method is POST - this is cgi request [13:00:43]url: /json_proto [13:00:43]query_string will be loaded in cgi processing [13:00:43]execute_cgi json_proto POST (null) [13:00:43]execute_cgi path=json_proto method=POST [13:00:43]POST find Content-Length [13:00:43]Host: 172.17.45.67:8080 [13:00:43]Content-Length: 677 [13:00:43]Content-Type: application/json [13:00:43] [13:00:43]POST finish read [13:00:43]Found Content-Length = 677 [13:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:43]execute_script... [13:00: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)593169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:43]POST & json_proto [13:00:43]process_json_proto [13:00:43]json parsed OK: [13:00:43]protocol is kg_v1.0 [13:00:43]action value=close_receipt [13:00:43]process_action close_receipt [13:00:43]cmd_close_receipt [13:00:43]MH_GetDate [13:00:43]Write to MH i2c: F0 00 00 01 06 F6 [13:00:43]Write i2c OK [13:00:43]MH_I2C_Read... [13:00:43]Read from MH i2c: F0 [13:00:43]MH_I2C_Read... [13:00:43]Read from MH i2c: F0 09 00 [13:00:43]MH_I2C_Read... [13:00:43]Read from MH i2c: F0 09 00 01 06 00 FC 41 C3 66 5F 7F 2B 66 D4 [13:00:43]GetLastDocTimeStamp 1724072315 [13:00:43]current date 1724072444 [13:00:43]FM_GetShiftState [13:00:43]SAM_PROTO_GetShiftState [13:00:43]wFMCommunicate request_size=4 [13:00:43]MH_SAM_APDU [13:00:43]CAPDU: 80 13 01 00 [13:00:43]Write to MH i2c: E2 08 00 02 06 80 13 01 00 00 00 00 00 85 [13:00:43]Write i2c OK [13:00:43]MH_I2C_Read... [13:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:44]Read from MH i2c: E2 [13:00:44]MH_I2C_Read... [13:00:44]Read from MH i2c: E2 0E 00 [13:00:44]MH_I2C_Read... [13:00:44]Read from MH i2c: E2 0E 00 02 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3C [13:00:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:00:44]wFMCommunicate OK [13:00:44]SAM_PROTO_GetShiftState done [13:00:44]FM_GetShiftState done [13:00:44]opened in 1724027888 [13:00:44]opened+sec_in_day 1724114288 [13:00:44]quantity*price = 40002 [13:00:44]sum+1 = 40003 [13:00:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 162 19.08.2024 13:00 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139327 ФПД: 168415698754348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T130044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139327&fm=168415698754348&tin=02508201610067®Number=0000000000092569&sum=40000 [13:00:45]StoreToDocumentArchive [13:00:45]shift 452 fd 139327 [13:00:45]save to /storage/0452/doc_00139327 [13:00:45]save last doc name /storage/0452/doc_00139327 to /storage/kkm_last_doc_name [13:00:45]save OK [13:00:45]Clear old archive folders... [13:00:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:45]tlvbuf is 011FC6E0 [13:00:45]SAM_PROTO_ClearQueue [13:00:45]wFMCommunicate request_size=4 [13:00:45]MH_SAM_APDU [13:00:45]CAPDU: 80 09 00 00 [13:00:45]Write to MH i2c: E2 08 00 0F 06 80 09 00 00 00 00 00 00 87 [13:00:45]Write i2c OK [13:00:45]MH_I2C_Read... [13:00:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:45]Read from MH i2c: E2 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 03 00 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 03 00 0F 06 00 90 00 89 [13:00:45]RAPDU: 90 00 [13:00:45]wFMCommunicate OK [13:00:45]SAM_PROTO_ClearQueue done [13:00:45]KKMCreateOFDPacket [13:00:45]OFDProtocolAddRootSTLVToBuf [13:00:45]FM_MakeSignedData [13:00:45]FM_MakeSignedData [13:00:45]SAM_PROTO_SignData [13:00:45]wFMCommunicate request_size=4 [13:00:45]MH_SAM_APDU [13:00:45]CAPDU: 80 0D 01 02 [13:00:45]Write to MH i2c: E2 08 00 10 06 80 0D 01 02 00 00 00 00 8F [13:00:45]Write i2c OK [13:00:45]MH_I2C_Read... [13:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:45]Read from MH i2c: E2 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 03 00 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 03 00 10 06 00 90 00 8A [13:00:45]RAPDU: 90 00 [13:00:45]wFMCommunicate OK [13:00:45]wFMCommunicate request_size=255 [13:00:45]MH_SAM_APDU [13:00:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A2 00 00 00 F4 03 04 00 FC 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 20 02 00 35 04 06 00 99 [13:00:45]Write to MH i2c: E2 02 01 11 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A2 00 00 00 F4 03 04 00 FC 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 20 02 00 35 04 06 00 99 00 00 C4 [13:00:45]Write i2c OK [13:00:45]MH_I2C_Read... [13:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:45]Read from MH i2c: E2 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 03 00 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 03 00 11 06 00 90 00 8B [13:00:45]RAPDU: 90 00 [13:00:45]wFMCommunicate OK [13:00:45]wFMCommunicate request_size=10 [13:00:45]MH_SAM_APDU [13:00:45]CAPDU: 80 0D 02 02 05 2C 55 E6 1B 2C [13:00:45]Write to MH i2c: E2 0D 00 12 06 80 0D 02 02 05 00 2C 55 E6 1B 2C 00 00 4A [13:00:45]Write i2c OK [13:00:45]MH_I2C_Read... [13:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:45]Read from MH i2c: E2 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 03 00 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [13:00:45]RAPDU: 90 00 [13:00:45]wFMCommunicate OK [13:00:45]wFMCommunicate request_size=4 [13:00:45]MH_SAM_APDU [13:00:45]CAPDU: 80 0D 03 02 [13:00:45]Write to MH i2c: E2 08 00 13 06 80 0D 03 02 00 00 00 00 94 [13:00:45]Write i2c OK [13:00:45]MH_I2C_Read... [13:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:45]Read from MH i2c: E2 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 0B 00 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 0B 00 13 06 00 C0 2F 7B 2D D0 9A E6 AF 90 00 2B [13:00:45]RAPDU: C0 2F 7B 2D D0 9A E6 AF 90 00 [13:00:45]wFMCommunicate OK [13:00:45]SAM_PROTO_SignData done [13:00:45]FM_MakeSignedData done [13:00:45]CreateOFDProtocolMessage [13:00:45]wFMCommunicate request_size=4 [13:00:45]MH_SAM_APDU [13:00:45]CAPDU: 80 11 00 00 [13:00:45]Write to MH i2c: E2 08 00 14 06 80 11 00 00 00 00 00 00 94 [13:00:45]Write i2c OK [13:00:45]MH_I2C_Read... [13:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:45]Read from MH i2c: E2 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 17 00 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: E2 17 00 14 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [13:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:00:45]wFMCommunicate OK [13:00:45]CreateOFDProtocolMessage done [13:00:45]OFDSenderStorePacket 139327 [13:00:45]StoreOFDPacket docnum=139327 [13:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D2 AB 07 01 04 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A2 00 00 00 F4 03 04 00 FC 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 20 02 00 35 04 06 00 99 2C 55 E6 1B 2C C0 2F 7B 2D D0 9A E6 AF [13:00:45]CheckFolder [13:00:45]dirname=/storage/ofd_packets [13:00:45]CheckFolder done [13:00:45]ProducePacketName [13:00:45]name=ofd_packets/00139327 [13:00:45]NVStorageSaveData ofd_packets/00139327 [13:00:45]File name is /storage/ofd_packets/00139327 [13:00:45]Write 301 bytes [13:00:45]NVStorageSaveData done [13:00:45]OFDSenderStorePacket done [13:00:45]KKMCreateOFDPacket done [13:00:45]NVStorageSaveData kkm_last_timestamp [13:00:45]File name is /storage/kkm_last_timestamp [13:00:45]Write 4 bytes [13:00:45]NVStorageSaveData done [13:00:45]ExternCall_PrintAddStr [13:00:45]wPrintStart [13:00:45]Write to MH i2c: 01 00 00 15 06 1B [13:00:45]Write i2c OK [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: 01 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: 01 07 00 [13:00:45]MH_I2C_Read... [13:00:45]Read from MH i2c: 01 07 00 15 06 00 00 00 00 00 FF 0F 30 [13:00:45]RasterBufferAndPrint [13:00:45]line Счет N : (1)593169 [13:00:45]line ИНН: 02508201610067 [13:00:45]line Контрольно-Кассовый Чек [13:00:45]line ПРОДАЖА [13:00:45]line ТРК (МРК, ГНК) : 52 [13:00:45]line Товар: 2710124130 [13:00:45]line Аи-92-К-5 [13:00:45]line 5.900 * 67.80 [13:00:45]line = 400.02 [13:00:45]line НДС 12% НСП 1% [13:00:45]line > о реализуемом товаре [13:00:45]line ОКРУГЛЕНИЕ: -0.02 [13:00:45]line ИТОГО: 400.00 [13:00:45]line Внесено: 400.00 [13:00:45]line СДАЧА: 0.00 [13:00:45]line НСП 1% : 3.54 [13:00:45]line НДС 12% : 42.48 [13:00:45]line Наличными: 400.00 [13:00:45]line Безнал.: 0.00 [13:00:45]line Место: АЗС № 136 "Партнер Нефть" [13:00:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:00:45]line СНО: Общий режим [13:00:45]line Чек 162 19.08.2024 13:00 [13:00:45]line Смена: 452 ФФД: 1.0 [13:00:45]line ЗНМ: 0300000067 [13:00:45]line РНМ: 0000000000092569 [13:00:45]line Версия ККМ: 001 [13:00:45]line ФМ: 0000000000871776 [13:00:45]line ФД: 139327 [13:00:45]line ФПД: 168415698754348 [13:00:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T130044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139327&fm=168415698754348&tin=02508201610067®Number=0000000000092569&sum=40000 [13:00:46]written 0, free lines is 4095 [13:00:46]OFD Sender: Processing packet 139327 [packets to send 137, broken 136] [13:00:46]ProducePacketName [13:00:46]name=ofd_packets/00139327 [13:00:46]OFD Sender: To server: pG, [13:00:46]CommunicateWithHost lk.salyk.kg:30040 [13:00:46]ConnectInit lk.salyk.kg [13:00:46]Connected sock=10 [13:00:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D2 AB 07 01 04 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A2 00 00 00 F4 03 04 00 FC 41 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 20 02 00 35 04 06 00 99 2C 55 E6 1B 2C C0 2F 7B 2D D0 9A E6 AF [13:00:46]Write to MH i2c: 01 00 00 40 06 46 [13:00:46]Write i2c OK [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: 01 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: 01 07 00 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: 01 07 00 40 06 00 00 00 00 00 C8 0C 21 [13:00:46]RasterBufferAndPrint [13:00:46]line [13:00:46]line [13:00:46]line [13:00:46]line [13:00:46]line [13:00:46]written 0, free lines is 3278 [13:00:46]MH_Cut [13:00:46]Write to MH i2c: D1 01 00 47 06 01 1F [13:00:46]Write i2c OK [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: D1 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: D1 01 00 [13:00:46]MH_I2C_Read... [13:00:46]Read from MH i2c: D1 01 00 47 06 00 1E [13:00:46]Write to MH i2c: 01 00 00 48 06 4E [13:00: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 37 36 4F 00 00 00 38 DD 47 00 1B 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 37 36 10 04 04 00 3F 20 02 00 F4 03 04 00 92 E8 C2 66 B6 04 01 00 00 FD 65 F8 3D A0 38 7C 11 [13:00:46]CommunicateWithHost err = 0 [13:00:46]CheckOFDResponse [13:00:46]1017 (14) - 77093643461234 [13:00:46]1041 (16) - 0000000000871776 [13:00:46]1040 (4) - 139327 [13:00:46]1012 (4) - 19.08.2024 06:39 [13:00:46]1206 (1) - 0 [13:00:46]OFD Sender: Remove packet 139327 [13:00:46]ProducePacketName [13:00:46]name=ofd_packets/00139327 [13:00:46]NVStorageDeleteData [13:00:46]Write i2c OK [13:00:46]MH_I2C_Read... [13:00:46]OFD Sender: No OFD packet to send [13:00:47]*** Cut start [13:00:47]*** Partial cut [13:00:47]*** CUTSNS_PIN = 1 [13:00:47]*** CUTSNS_PIN = 0 [13:00:47]*** Brake cut motor [13:00:47]Read from MH i2c: 01 [13:00:47]MH_I2C_Read... [13:00:47]*** Stop cut motor [13:00:47]*** Cut end [13:00:47]Read from MH i2c: 01 07 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 07 00 48 06 00 00 00 00 00 FF 0F 63 [13:00:47]process_action close_receipt done [13:00:47]requested_data is exist [13:00:47]produce_requested_data [13:00:47]requested_item fm.sn is exist - process it [13:00:47]wFMCommunicate request_size=4 [13:00:47]MH_SAM_APDU [13:00:47]CAPDU: 80 11 00 00 [13:00:47]Write to MH i2c: E2 08 00 49 06 80 11 00 00 00 00 00 00 C9 [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:47]Read from MH i2c: E2 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: E2 17 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: E2 17 00 49 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 20 [13:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:00:47]wFMCommunicate OK [13:00:47]requested_item fd.num is exist - process it [13:00:47]SAM_PROTO_GetFieldsCounters [13:00:47]wFMCommunicate request_size=4 [13:00:47]MH_SAM_APDU [13:00:47]CAPDU: 80 13 00 00 [13:00:47]Write to MH i2c: E2 08 00 4A 06 80 13 00 00 00 00 00 00 CC [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:47]Read from MH i2c: E2 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: E2 62 00 [13:00:47]MH_I2C_Read... [13:00:48]Read from MH i2c: E2 62 00 4A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [13:00:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:48]wFMCommunicate OK [13:00:48]SAM_PROTO_GetFieldsCounters done [13:00:48]requested_item shift.num is exist - process it [13:00:48]requested_item shift.opened is exist - process it [13:00:48]req_shift_opened [13:00:48]FM_GetShiftState [13:00:48]SAM_PROTO_GetShiftState [13:00:48]wFMCommunicate request_size=4 [13:00:48]MH_SAM_APDU [13:00:48]CAPDU: 80 13 01 00 [13:00:48]Write to MH i2c: E2 08 00 4B 06 80 13 01 00 00 00 00 00 CE [13:00:48]Write i2c OK [13:00:48]MH_I2C_Read... [13:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:48]Read from MH i2c: E2 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: E2 0E 00 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: E2 0E 00 4B 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 85 [13:00:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:00:48]wFMCommunicate OK [13:00:48]SAM_PROTO_GetShiftState done [13:00:48]FM_GetShiftState done [13:00:48]req_shift_opened done [13:00:48]requested_item shift.open_date is exist - process it [13:00:48]req_shift_open_date [13:00:48]req_shift_open_date done [13:00:48]produce_requested_data done [13:00:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139327,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:00:48]process_action_free close_receipt [13:00:48]json_value_free [13:00:48]json_value_free done [13:00:48]process_json_proto returns [13:00:48]Send response to host [13:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139327,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:00:48]free response buf [13:00:48]execute_script done [13:00:48]execute_script returns [13:00:48]free content buf [13:00:48]Sock 9.Close socket [13:00:48]Sock 9.Thread stoped [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:10]accept exits with 8 [13:02:10]New connection [13:02:10]New thread 3066674532 created [13:02:10]Thread 3066817892 joined [13:02:10]Waiting for new connection... [13:02:10] Sock 8.Parse request [13:02:10]Sock 8.Check first char [13:02:10]Sock 8.First char is OK [13:02:10]request: POST /json_proto HTTP/1.0 [13:02:10]Method: POST [13:02:10]URL: /json_proto [13:02:10]Method is POST - this is cgi request [13:02:10]url: /json_proto [13:02:10]query_string will be loaded in cgi processing [13:02:10]execute_cgi json_proto POST (null) [13:02:10]execute_cgi path=json_proto method=POST [13:02:10]POST find Content-Length [13:02:10]Host: 172.17.45.67:8080 [13:02:10]Content-Length: 677 [13:02:10]Content-Type: application/json [13:02:10] [13:02:10]POST finish read [13:02:10]Found Content-Length = 677 [13:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:10]execute_script... [13:02: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)593170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:10]POST & json_proto [13:02:10]process_json_proto [13:02:10]json parsed OK: [13:02:10]protocol is kg_v1.0 [13:02:10]action value=close_receipt [13:02:10]process_action close_receipt [13:02:10]cmd_close_receipt [13:02:10]MH_GetDate [13:02:10]Write to MH i2c: F0 00 00 4C 06 41 [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: F0 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: F0 09 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: F0 09 00 4C 06 00 53 42 C3 66 5F 7F 2B 66 77 [13:02:10]GetLastDocTimeStamp 1724072444 [13:02:10]current date 1724072531 [13:02:10]FM_GetShiftState [13:02:10]SAM_PROTO_GetShiftState [13:02:10]wFMCommunicate request_size=4 [13:02:10]MH_SAM_APDU [13:02:10]CAPDU: 80 13 01 00 [13:02:10]Write to MH i2c: E2 08 00 4D 06 80 13 01 00 00 00 00 00 D0 [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:10]Read from MH i2c: E2 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 0E 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 0E 00 4D 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 87 [13:02:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:02:10]wFMCommunicate OK [13:02:10]SAM_PROTO_GetShiftState done [13:02:10]FM_GetShiftState done [13:02:10]opened in 1724027888 [13:02:10]opened+sec_in_day 1724114288 [13:02:10]quantity*price = 30035 [13:02:10]sum+1 = 30036 [13:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 163 19.08.2024 13:02 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139328 ФПД: 40803592996256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T130211&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139328&fm=40803592996256&tin=02508201610067®Number=0000000000092569&sum=30000 [13:02:12]StoreToDocumentArchive [13:02:12]shift 452 fd 139328 [13:02:12]save to /storage/0452/doc_00139328 [13:02:12]save last doc name /storage/0452/doc_00139328 to /storage/kkm_last_doc_name [13:02:12]save OK [13:02:12]Clear old archive folders... [13:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:12]tlvbuf is 011CBA20 [13:02:12]SAM_PROTO_ClearQueue [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 09 00 00 [13:02:12]Write to MH i2c: E2 08 00 5A 06 80 09 00 00 00 00 00 00 D2 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 5A 06 00 90 00 D4 [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]SAM_PROTO_ClearQueue done [13:02:12]KKMCreateOFDPacket [13:02:12]OFDProtocolAddRootSTLVToBuf [13:02:12]FM_MakeSignedData [13:02:12]FM_MakeSignedData [13:02:12]SAM_PROTO_SignData [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 01 02 [13:02:12]Write to MH i2c: E2 08 00 5B 06 80 0D 01 02 00 00 00 00 DA [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]OFD Sender: No OFD packet to send [13:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 5B 06 00 90 00 D5 [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]wFMCommunicate request_size=255 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 53 42 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 20 02 00 35 04 06 00 25 [13:02:12]Write to MH i2c: E2 02 01 5C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 53 42 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 20 02 00 35 04 06 00 25 00 00 2F [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 5C 06 00 90 00 D6 [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]wFMCommunicate request_size=10 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 02 02 05 1C 53 AA 85 A0 [13:02:12]Write to MH i2c: E2 0D 00 5D 06 80 0D 02 02 05 00 1C 53 AA 85 A0 00 00 25 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [13:02:12]RAPDU: 90 00 [13:02:12]wFMCommunicate OK [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 0D 03 02 [13:02:12]Write to MH i2c: E2 08 00 5E 06 80 0D 03 02 00 00 00 00 DF [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 0B 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 0B 00 5E 06 00 79 D6 0F EB 09 C0 D1 78 90 00 3B [13:02:12]RAPDU: 79 D6 0F EB 09 C0 D1 78 90 00 [13:02:12]wFMCommunicate OK [13:02:12]SAM_PROTO_SignData done [13:02:12]FM_MakeSignedData done [13:02:12]CreateOFDProtocolMessage [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 11 00 00 [13:02:12]Write to MH i2c: E2 08 00 5F 06 80 11 00 00 00 00 00 00 DF [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 17 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 17 00 5F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [13:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:02:12]wFMCommunicate OK [13:02:12]CreateOFDProtocolMessage done [13:02:12]OFDSenderStorePacket 139328 [13:02:12]StoreOFDPacket docnum=139328 [13:02:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 14 CD 07 01 5A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 53 42 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 20 02 00 35 04 06 00 25 1C 53 AA 85 A0 79 D6 0F EB 09 C0 D1 78 [13:02:12]CheckFolder [13:02:12]dirname=/storage/ofd_packets [13:02:12]CheckFolder done [13:02:12]ProducePacketName [13:02:12]name=ofd_packets/00139328 [13:02:12]NVStorageSaveData ofd_packets/00139328 [13:02:12]File name is /storage/ofd_packets/00139328 [13:02:12]Write 301 bytes [13:02:12]NVStorageSaveData done [13:02:12]OFDSenderStorePacket done [13:02:12]KKMCreateOFDPacket done [13:02:12]NVStorageSaveData kkm_last_timestamp [13:02:12]File name is /storage/kkm_last_timestamp [13:02:12]Write 4 bytes [13:02:12]NVStorageSaveData done [13:02:12]ExternCall_PrintAddStr [13:02:12]wPrintStart [13:02:12]Write to MH i2c: 01 00 00 60 06 66 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 60 06 00 00 00 00 00 FF 0F 7B [13:02:12]RasterBufferAndPrint [13:02:12]line Счет N : (1)593170 [13:02:12]line ИНН: 02508201610067 [13:02:12]line Контрольно-Кассовый Чек [13:02:12]line ПРОДАЖА [13:02:12]line ТРК (МРК, ГНК) : 42 [13:02:12]line Товар: 2710124130 [13:02:12]line Аи-92-К-5 [13:02:12]line 4.430 * 67.80 [13:02:12]line = 300.35 [13:02:12]line НДС 12% НСП 1% [13:02:12]line > о реализуемом товаре [13:02:12]line ОКРУГЛЕНИЕ: -0.35 [13:02:12]line ИТОГО: 300.00 [13:02:12]line Внесено: 300.00 [13:02:12]line СДАЧА: 0.00 [13:02:12]line НСП 1% : 2.66 [13:02:12]line НДС 12% : 31.90 [13:02:12]line Наличными: 300.00 [13:02:12]line Безнал.: 0.00 [13:02:12]line Место: АЗС № 136 "Партнер Нефть" [13:02:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:02:12]line СНО: Общий режим [13:02:12]line Чек 163 19.08.2024 13:02 [13:02:12]line Смена: 452 ФФД: 1.0 [13:02:12]line ЗНМ: 0300000067 [13:02:12]line РНМ: 0000000000092569 [13:02:12]line Версия ККМ: 001 [13:02:12]line ФМ: 0000000000871776 [13:02:12]line ФД: 139328 [13:02:12]line ФПД: 40803592996256 [13:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T130211&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139328&fm=40803592996256&tin=02508201610067®Number=0000000000092569&sum=30000 [13:02:12]OFD Sender: Processing packet 139328 [packets to send 137, broken 136] [13:02:12]ProducePacketName [13:02:12]name=ofd_packets/00139328 [13:02:12]OFD Sender: To server: pG, [13:02:12]CommunicateWithHost lk.salyk.kg:30040 [13:02:12]ConnectInit lk.salyk.kg [13:02:12]written 0, free lines is 4095 [13:02:13]Connected sock=10 [13: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 37 36 0F 01 00 00 14 CD 07 01 5A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 53 42 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 20 02 00 35 04 06 00 25 1C 53 AA 85 A0 79 D6 0F EB 09 C0 D1 78 [13:02: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 37 36 4F 00 00 00 16 B1 47 00 61 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 37 36 10 04 04 00 40 20 02 00 F4 03 04 00 E9 E8 C2 66 B6 04 01 00 00 80 55 73 8A 49 B5 0E E6 [13:02:13]CommunicateWithHost err = 0 [13:02:13]CheckOFDResponse [13:02:13]1017 (14) - 77093643461234 [13:02:13]1041 (16) - 0000000000871776 [13:02:13]1040 (4) - 139328 [13:02:13]1012 (4) - 19.08.2024 06:40 [13:02:13]1206 (1) - 0 [13:02:13]OFD Sender: Remove packet 139328 [13:02:13]ProducePacketName [13:02:13]name=ofd_packets/00139328 [13:02:13]NVStorageDeleteData [13:02:13]Write to MH i2c: 01 00 00 8B 06 91 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 07 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 07 00 8B 06 00 00 00 00 00 BE 0C 62 [13:02:13]RasterBufferAndPrint [13:02:13]line [13:02:13]line [13:02:13]line [13:02:13]line [13:02:13]line [13:02:13]written 0, free lines is 3272 [13:02:13]MH_Cut [13:02:13]Write to MH i2c: D1 01 00 92 06 01 6A [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: D1 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: D1 01 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: D1 01 00 92 06 00 69 [13:02:13]Write to MH i2c: 01 00 00 93 06 99 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]OFD Sender: No OFD packet to send [13:02:14]*** Cut start [13:02:14]*** Partial cut [13:02:14]*** CUTSNS_PIN = 1 [13:02:14]*** CUTSNS_PIN = 0 [13:02:14]*** Brake cut motor [13:02:14]Read from MH i2c: 01 [13:02:14]MH_I2C_Read... [13:02:14]*** Stop cut motor [13:02:14]*** Cut end [13:02:14]Read from MH i2c: 01 07 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FF 0F AE [13:02:14]process_action close_receipt done [13:02:14]requested_data is exist [13:02:14]produce_requested_data [13:02:14]requested_item fm.sn is exist - process it [13:02:14]wFMCommunicate request_size=4 [13:02:14]MH_SAM_APDU [13:02:14]CAPDU: 80 11 00 00 [13:02:14]Write to MH i2c: E2 08 00 94 06 80 11 00 00 00 00 00 00 14 [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 [13:02:14]MH_I2C_Read... [13:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:14]Read from MH i2c: E2 17 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 17 00 94 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6B [13:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:02:14]wFMCommunicate OK [13:02:14]requested_item fd.num is exist - process it [13:02:14]SAM_PROTO_GetFieldsCounters [13:02:14]wFMCommunicate request_size=4 [13:02:14]MH_SAM_APDU [13:02:14]CAPDU: 80 13 00 00 [13:02:14]Write to MH i2c: E2 08 00 95 06 80 13 00 00 00 00 00 00 17 [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:14]Read from MH i2c: E2 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 62 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 62 00 95 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:14]wFMCommunicate OK [13:02:14]SAM_PROTO_GetFieldsCounters done [13:02:14]requested_item shift.num is exist - process it [13:02:14]requested_item shift.opened is exist - process it [13:02:14]req_shift_opened [13:02:14]FM_GetShiftState [13:02:14]SAM_PROTO_GetShiftState [13:02:14]wFMCommunicate request_size=4 [13:02:14]MH_SAM_APDU [13:02:14]CAPDU: 80 13 01 00 [13:02:14]Write to MH i2c: E2 08 00 96 06 80 13 01 00 00 00 00 00 19 [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:14]Read from MH i2c: E2 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 0E 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 0E 00 96 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D0 [13:02:14]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:02:14]wFMCommunicate OK [13:02:14]SAM_PROTO_GetShiftState done [13:02:14]FM_GetShiftState done [13:02:14]req_shift_opened done [13:02:14]requested_item shift.open_date is exist - process it [13:02:14]req_shift_open_date [13:02:14]req_shift_open_date done [13:02:14]produce_requested_data done [13:02:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139328,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:02:14]process_action_free close_receipt [13:02:14]json_value_free [13:02:14]json_value_free done [13:02:14]process_json_proto returns [13:02:14]Send response to host [13:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139328,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:02:14]free response buf [13:02:14]execute_script done [13:02:14]execute_script returns [13:02:14]free content buf [13:02:14]Sock 8.Close socket [13:02:14]Sock 8.Thread stoped [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:18]accept exits with 9 [13:12:18]New connection [13:12:18]New thread 3066817892 created [13:12:18]Thread 3066674532 joined [13:12:18]Waiting for new connection... [13:12:18] Sock 9.Parse request [13:12:18]Sock 9.Check first char [13:12:18]Sock 9.First char is OK [13:12:18]request: POST /json_proto HTTP/1.0 [13:12:18]Method: POST [13:12:18]URL: /json_proto [13:12:18]Method is POST - this is cgi request [13:12:18]url: /json_proto [13:12:18]query_string will be loaded in cgi processing [13:12:18]execute_cgi json_proto POST (null) [13:12:18]execute_cgi path=json_proto method=POST [13:12:18]POST find Content-Length [13:12:18]Host: 172.17.45.67:8080 [13:12:18]Content-Length: 677 [13:12:18]Content-Type: application/json [13:12:18] [13:12:18]POST finish read [13:12:18]Found Content-Length = 677 [13:12:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [13:12:18]execute_script... [13:12: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)593171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [13:12:18]POST & json_proto [13:12:18]process_json_proto [13:12:18]json parsed OK: [13:12:18]protocol is kg_v1.0 [13:12:18]action value=close_receipt [13:12:18]process_action close_receipt [13:12:18]cmd_close_receipt [13:12:18]MH_GetDate [13:12:18]Write to MH i2c: F0 00 00 97 06 8C [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: F0 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: F0 09 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: F0 09 00 97 06 00 B3 44 C3 66 5F 7F 2B 66 24 [13:12:18]GetLastDocTimeStamp 1724072531 [13:12:18]current date 1724073139 [13:12:18]FM_GetShiftState [13:12:18]SAM_PROTO_GetShiftState [13:12:18]wFMCommunicate request_size=4 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 13 01 00 [13:12:18]Write to MH i2c: E2 08 00 98 06 80 13 01 00 00 00 00 00 1B [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:18]Read from MH i2c: E2 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 0E 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: E2 0E 00 98 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D2 [13:12:18]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:12:18]wFMCommunicate OK [13:12:18]SAM_PROTO_GetShiftState done [13:12:18]FM_GetShiftState done [13:12:18]opened in 1724027888 [13:12:18]opened+sec_in_day 1724114288 [13:12:18]quantity*price = 35052 [13:12:18]sum+1 = 35054 [13:12:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 164 19.08.2024 13:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139329 ФПД: 92096480923477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T131219&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139329&fm=92096480923477&tin=02508201610067®Number=0000000000092569&sum=35000 [13:12:19]StoreToDocumentArchive [13:12:19]shift 452 fd 139329 [13:12:19]save to /storage/0452/doc_00139329 [13:12:19]save last doc name /storage/0452/doc_00139329 to /storage/kkm_last_doc_name [13:12:19]save OK [13:12:19]Clear old archive folders... [13:12:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:19]tlvbuf is 0120E7C0 [13:12:19]SAM_PROTO_ClearQueue [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 09 00 00 [13:12:19]Write to MH i2c: E2 08 00 A5 06 80 09 00 00 00 00 00 00 1D [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:19]OFD Sender: No OFD packet to send [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 03 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 03 00 A5 06 00 90 00 1F [13:12:19]RAPDU: 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_ClearQueue done [13:12:19]KKMCreateOFDPacket [13:12:19]OFDProtocolAddRootSTLVToBuf [13:12:19]FM_MakeSignedData [13:12:19]FM_MakeSignedData [13:12:19]SAM_PROTO_SignData [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 0D 01 02 [13:12:19]Write to MH i2c: E2 08 00 A6 06 80 0D 01 02 00 00 00 00 25 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 03 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 03 00 A6 06 00 90 00 20 [13:12:19]RAPDU: 90 00 [13:12:19]wFMCommunicate OK [13:12:19]wFMCommunicate request_size=255 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 A4 00 00 00 F4 03 04 00 B3 44 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 20 02 00 35 04 06 00 53 [13:12:19]Write to MH i2c: E2 02 01 A7 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 A4 00 00 00 F4 03 04 00 B3 44 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 20 02 00 35 04 06 00 53 00 00 18 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 03 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [13:12:19]RAPDU: 90 00 [13:12:19]wFMCommunicate OK [13:12:19]wFMCommunicate request_size=10 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 0D 02 02 05 C2 E2 07 CF 55 [13:12:19]Write to MH i2c: E2 0D 00 A8 06 80 0D 02 02 05 00 C2 E2 07 CF 55 00 00 01 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 03 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [13:12:20]RAPDU: 90 00 [13:12:20]wFMCommunicate OK [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 0D 03 02 [13:12:20]Write to MH i2c: E2 08 00 A9 06 80 0D 03 02 00 00 00 00 2A [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 0B 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 0B 00 A9 06 00 29 01 3A C3 F2 D2 B4 DD 90 00 A7 [13:12:20]RAPDU: 29 01 3A C3 F2 D2 B4 DD 90 00 [13:12:20]wFMCommunicate OK [13:12:20]SAM_PROTO_SignData done [13:12:20]FM_MakeSignedData done [13:12:20]CreateOFDProtocolMessage [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 11 00 00 [13:12:20]Write to MH i2c: E2 08 00 AA 06 80 11 00 00 00 00 00 00 2A [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 17 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 17 00 AA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [13:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:12:20]wFMCommunicate OK [13:12:20]CreateOFDProtocolMessage done [13:12:20]OFDSenderStorePacket 139329 [13:12:20]StoreOFDPacket docnum=139329 [13:12:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3C 89 07 01 AF 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 A4 00 00 00 F4 03 04 00 B3 44 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 20 02 00 35 04 06 00 53 C2 E2 07 CF 55 29 01 3A C3 F2 D2 B4 DD [13:12:20]CheckFolder [13:12:20]dirname=/storage/ofd_packets [13:12:20]CheckFolder done [13:12:20]ProducePacketName [13:12:20]name=ofd_packets/00139329 [13:12:20]NVStorageSaveData ofd_packets/00139329 [13:12:20]File name is /storage/ofd_packets/00139329 [13:12:20]Write 301 bytes [13:12:20]NVStorageSaveData done [13:12:20]OFDSenderStorePacket done [13:12:20]KKMCreateOFDPacket done [13:12:20]NVStorageSaveData kkm_last_timestamp [13:12:20]File name is /storage/kkm_last_timestamp [13:12:20]Write 4 bytes [13:12:20]NVStorageSaveData done [13:12:20]ExternCall_PrintAddStr [13:12:20]wPrintStart [13:12:20]Write to MH i2c: 01 00 00 AB 06 B1 [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: 01 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: 01 07 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 FF 0F C6 [13:12:20]RasterBufferAndPrint [13:12:20]line Счет N : (1)593171 [13:12:20]line ИНН: 02508201610067 [13:12:20]line Контрольно-Кассовый Чек [13:12:20]line ПРОДАЖА [13:12:20]line ТРК (МРК, ГНК) : 52 [13:12:20]line Товар: 2710124130 [13:12:20]line Аи-92-К-5 [13:12:20]line 5.170 * 67.80 [13:12:20]line = 350.53 [13:12:20]line НДС 12% НСП 1% [13:12:20]line > о реализуемом товаре [13:12:20]line ОКРУГЛЕНИЕ: -0.53 [13:12:20]line ИТОГО: 350.00 [13:12:20]line Внесено: 350.00 [13:12:20]line СДАЧА: 0.00 [13:12:20]line НСП 1% : 3.10 [13:12:20]line НДС 12% : 37.22 [13:12:20]line Наличными: 350.00 [13:12:20]line Безнал.: 0.00 [13:12:20]line Место: АЗС № 136 "Партнер Нефть" [13:12:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:12:20]line СНО: Общий режим [13:12:20]line Чек 164 19.08.2024 13:12 [13:12:20]line Смена: 452 ФФД: 1.0 [13:12:20]line ЗНМ: 0300000067 [13:12:20]line РНМ: 0000000000092569 [13:12:20]line Версия ККМ: 001 [13:12:20]line ФМ: 0000000000871776 [13:12:20]line ФД: 139329 [13:12:20]line ФПД: 92096480923477 [13:12:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T131219&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139329&fm=92096480923477&tin=02508201610067®Number=0000000000092569&sum=35000 [13:12:20]OFD Sender: Processing packet 139329 [packets to send 137, broken 136] [13:12:20]ProducePacketName [13:12:20]name=ofd_packets/00139329 [13:12:20]OFD Sender: To server: pG, [13:12:20]CommunicateWithHost lk.salyk.kg:30040 [13:12:20]ConnectInit lk.salyk.kg [13:12:20]written 0, free lines is 4095 [13:12:20]Connected sock=10 [13:12: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 37 36 0F 01 00 00 3C 89 07 01 AF 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 A4 00 00 00 F4 03 04 00 B3 44 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 20 02 00 35 04 06 00 53 C2 E2 07 CF 55 29 01 3A C3 F2 D2 B4 DD [13:12: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 37 36 4F 00 00 00 91 2D 47 00 19 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 37 36 10 04 04 00 41 20 02 00 F4 03 04 00 49 EB C2 66 B6 04 01 00 00 0C F6 92 73 4C F9 DB 10 [13:12:20]CommunicateWithHost err = 0 [13:12:20]CheckOFDResponse [13:12:20]1017 (14) - 77093643461234 [13:12:20]1041 (16) - 0000000000871776 [13:12:20]1040 (4) - 139329 [13:12:20]1012 (4) - 19.08.2024 06:50 [13:12:20]1206 (1) - 0 [13:12:20]OFD Sender: Remove packet 139329 [13:12:20]ProducePacketName [13:12:20]name=ofd_packets/00139329 [13:12:20]NVStorageDeleteData [13:12:20]Write to MH i2c: 01 00 00 D6 06 DC [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: 01 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: 01 07 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: 01 07 00 D6 06 00 00 00 00 00 D0 0C BF [13:12:20]RasterBufferAndPrint [13:12:20]line [13:12:20]line [13:12:20]line [13:12:20]line [13:12:20]line [13:12:20]written 0, free lines is 3287 [13:12:20]MH_Cut [13:12:20]Write to MH i2c: D1 01 00 DD 06 01 B5 [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: D1 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: D1 01 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: D1 01 00 DD 06 00 B4 [13:12:20]Write to MH i2c: 01 00 00 DE 06 E4 [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:21]OFD Sender: No OFD packet to send [13:12:21]*** Cut start [13:12:21]*** Partial cut [13:12:21]*** CUTSNS_PIN = 1 [13:12:21]*** CUTSNS_PIN = 0 [13:12:21]*** Brake cut motor [13:12:22]Read from MH i2c: 01 [13:12:22]MH_I2C_Read... [13:12:22]*** Stop cut motor [13:12:22]*** Cut end [13:12:22]Read from MH i2c: 01 07 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: 01 07 00 DE 06 00 00 00 00 00 FF 0F F9 [13:12:22]process_action close_receipt done [13:12:22]requested_data is exist [13:12:22]produce_requested_data [13:12:22]requested_item fm.sn is exist - process it [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 11 00 00 [13:12:22]Write to MH i2c: E2 08 00 DF 06 80 11 00 00 00 00 00 00 5F [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 17 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 17 00 DF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B6 [13:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:12:22]wFMCommunicate OK [13:12:22]requested_item fd.num is exist - process it [13:12:22]SAM_PROTO_GetFieldsCounters [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 13 00 00 [13:12:22]Write to MH i2c: E2 08 00 E0 06 80 13 00 00 00 00 00 00 62 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 62 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 62 00 E0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [13:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:22]wFMCommunicate OK [13:12:22]SAM_PROTO_GetFieldsCounters done [13:12:22]requested_item shift.num is exist - process it [13:12:22]requested_item shift.opened is exist - process it [13:12:22]req_shift_opened [13:12:22]FM_GetShiftState [13:12:22]SAM_PROTO_GetShiftState [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 13 01 00 [13:12:22]Write to MH i2c: E2 08 00 E1 06 80 13 01 00 00 00 00 00 64 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 0E 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 0E 00 E1 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1B [13:12:22]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:12:22]wFMCommunicate OK [13:12:22]SAM_PROTO_GetShiftState done [13:12:22]FM_GetShiftState done [13:12:22]req_shift_opened done [13:12:22]requested_item shift.open_date is exist - process it [13:12:22]req_shift_open_date [13:12:22]req_shift_open_date done [13:12:22]produce_requested_data done [13:12:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139329,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:12:22]process_action_free close_receipt [13:12:22]json_value_free [13:12:22]json_value_free done [13:12:22]process_json_proto returns [13:12:22]Send response to host [13:12:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139329,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:12:22]free response buf [13:12:22]execute_script done [13:12:22]execute_script returns [13:12:22]free content buf [13:12:22]Sock 9.Close socket [13:12:22]Sock 9.Thread stoped [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:13]accept exits with 8 [13:15:13]New connection [13:15:13]New thread 3066674532 created [13:15:13]Thread 3066817892 joined [13:15:13]Waiting for new connection... [13:15:13] Sock 8.Parse request [13:15:13]Sock 8.Check first char [13:15:13]Sock 8.First char is OK [13:15:13]request: POST /json_proto HTTP/1.0 [13:15:13]Method: POST [13:15:13]URL: /json_proto [13:15:13]Method is POST - this is cgi request [13:15:13]url: /json_proto [13:15:13]query_string will be loaded in cgi processing [13:15:13]execute_cgi json_proto POST (null) [13:15:13]execute_cgi path=json_proto method=POST [13:15:13]POST find Content-Length [13:15:13]Host: 172.17.45.67:8080 [13:15:13]Content-Length: 677 [13:15:13]Content-Type: application/json [13:15:13] [13:15:13]POST finish read [13:15:13]Found Content-Length = 677 [13:15:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:15:13]execute_script... [13:15: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)593172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:15:13]POST & json_proto [13:15:13]process_json_proto [13:15:13]json parsed OK: [13:15:13]protocol is kg_v1.0 [13:15:13]action value=close_receipt [13:15:13]process_action close_receipt [13:15:13]cmd_close_receipt [13:15:13]MH_GetDate [13:15:13]Write to MH i2c: F0 00 00 E2 06 D7 [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: F0 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: F0 09 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: F0 09 00 E2 06 00 61 45 C3 66 5F 7F 2B 66 1E [13:15:13]GetLastDocTimeStamp 1724073139 [13:15:13]current date 1724073313 [13:15:13]FM_GetShiftState [13:15:13]SAM_PROTO_GetShiftState [13:15:13]wFMCommunicate request_size=4 [13:15:13]MH_SAM_APDU [13:15:13]CAPDU: 80 13 01 00 [13:15:13]Write to MH i2c: E2 08 00 E3 06 80 13 01 00 00 00 00 00 66 [13:15:13]Write i2c OK [13:15:13]MH_I2C_Read... [13:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:13]Read from MH i2c: E2 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0E 00 [13:15:13]MH_I2C_Read... [13:15:13]Read from MH i2c: E2 0E 00 E3 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1D [13:15:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:15:13]wFMCommunicate OK [13:15:13]SAM_PROTO_GetShiftState done [13:15:13]FM_GetShiftState done [13:15:13]opened in 1724027888 [13:15:13]opened+sec_in_day 1724114288 [13:15:13]quantity*price = 50010 [13:15:13]sum+1 = 50012 [13:15:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 165 19.08.2024 13:15 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139330 ФПД: 113244280043363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T131514&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139330&fm=113244280043363&tin=02508201610067®Number=0000000000092569&sum=50000 [13:15:14]StoreToDocumentArchive [13:15:14]shift 452 fd 139330 [13:15:14]save to /storage/0452/doc_00139330 [13:15:14]save last doc name /storage/0452/doc_00139330 to /storage/kkm_last_doc_name [13:15:14]save OK [13:15:14]Clear old archive folders... [13:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:14]tlvbuf is 011E3600 [13:15:14]SAM_PROTO_ClearQueue [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 09 00 00 [13:15:14]Write to MH i2c: E2 08 00 F0 06 80 09 00 00 00 00 00 00 68 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 F0 06 00 90 00 6A [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]SAM_PROTO_ClearQueue done [13:15:14]KKMCreateOFDPacket [13:15:14]OFDProtocolAddRootSTLVToBuf [13:15:14]FM_MakeSignedData [13:15:14]FM_MakeSignedData [13:15:14]SAM_PROTO_SignData [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 01 02 [13:15:14]Write to MH i2c: E2 08 00 F1 06 80 0D 01 02 00 00 00 00 70 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 F1 06 00 90 00 6B [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]wFMCommunicate request_size=255 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 62 45 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 20 02 00 35 04 06 00 66 [13:15:14]Write to MH i2c: E2 02 01 F2 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 62 45 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 20 02 00 35 04 06 00 66 00 00 E5 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 F2 06 00 90 00 6C [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]wFMCommunicate request_size=10 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 02 02 05 FE BD 15 B7 63 [13:15:14]Write to MH i2c: E2 0D 00 F3 06 80 0D 02 02 05 00 FE BD 15 B7 63 00 00 67 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 03 00 F3 06 00 90 00 6D [13:15:14]RAPDU: 90 00 [13:15:14]wFMCommunicate OK [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 0D 03 02 [13:15:14]Write to MH i2c: E2 08 00 F4 06 80 0D 03 02 00 00 00 00 75 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 0B 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 0B 00 F4 06 00 95 44 98 8D DE 7C 28 34 90 00 2A [13:15:14]RAPDU: 95 44 98 8D DE 7C 28 34 90 00 [13:15:14]wFMCommunicate OK [13:15:14]SAM_PROTO_SignData done [13:15:14]FM_MakeSignedData done [13:15:14]CreateOFDProtocolMessage [13:15:14]wFMCommunicate request_size=4 [13:15:14]MH_SAM_APDU [13:15:14]CAPDU: 80 11 00 00 [13:15:14]Write to MH i2c: E2 08 00 F5 06 80 11 00 00 00 00 00 00 75 [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:14]Read from MH i2c: E2 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 17 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: E2 17 00 F5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [13:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:15:14]wFMCommunicate OK [13:15:14]CreateOFDProtocolMessage done [13:15:14]OFDSenderStorePacket 139330 [13:15:14]StoreOFDPacket docnum=139330 [13:15:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 84 4A 07 01 0D 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 62 45 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 20 02 00 35 04 06 00 66 FE BD 15 B7 63 95 44 98 8D DE 7C 28 34 [13:15:14]CheckFolder [13:15:14]dirname=/storage/ofd_packets [13:15:14]CheckFolder done [13:15:14]ProducePacketName [13:15:14]name=ofd_packets/00139330 [13:15:14]NVStorageSaveData ofd_packets/00139330 [13:15:14]File name is /storage/ofd_packets/00139330 [13:15:14]Write 301 bytes [13:15:14]NVStorageSaveData done [13:15:14]OFDSenderStorePacket done [13:15:14]KKMCreateOFDPacket done [13:15:14]NVStorageSaveData kkm_last_timestamp [13:15:14]File name is /storage/kkm_last_timestamp [13:15:14]Write 4 bytes [13:15:14]NVStorageSaveData done [13:15:14]ExternCall_PrintAddStr [13:15:14]wPrintStart [13:15:14]Write to MH i2c: 01 00 00 F6 06 FC [13:15:14]Write i2c OK [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 07 00 [13:15:14]MH_I2C_Read... [13:15:14]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 FF 0F 11 [13:15:14]RasterBufferAndPrint [13:15:14]line Счет N : (1)593172 [13:15:14]line ИНН: 02508201610067 [13:15:14]line Контрольно-Кассовый Чек [13:15:14]line ПРОДАЖА [13:15:14]line ТРК (МРК, ГНК) : 41 [13:15:14]line Товар: 2710124500 [13:15:14]line Аи-95-К-5 [13:15:14]line 6.740 * 74.20 [13:15:14]line = 500.11 [13:15:14]line НДС 12% НСП 1% [13:15:14]line > о реализуемом товаре [13:15:14]line ОКРУГЛЕНИЕ: -0.11 [13:15:14]line ИТОГО: 500.00 [13:15:14]line Внесено: 500.00 [13:15:14]line СДАЧА: 0.00 [13:15:14]line НСП 1% : 4.43 [13:15:14]line НДС 12% : 53.11 [13:15:14]line Наличными: 500.00 [13:15:14]line Безнал.: 0.00 [13:15:14]line Место: АЗС № 136 "Партнер Нефть" [13:15:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:15:14]line СНО: Общий режим [13:15:14]line Чек 165 19.08.2024 13:15 [13:15:14]line Смена: 452 ФФД: 1.0 [13:15:14]line ЗНМ: 0300000067 [13:15:14]line РНМ: 0000000000092569 [13:15:14]line Версия ККМ: 001 [13:15:14]line ФМ: 0000000000871776 [13:15:14]line ФД: 139330 [13:15:14]line ФПД: 113244280043363 [13:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T131514&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139330&fm=113244280043363&tin=02508201610067®Number=0000000000092569&sum=50000 [13:15:14]written 0, free lines is 4095 [13:15:14]OFD Sender: Processing packet 139330 [packets to send 137, broken 136] [13:15:14]ProducePacketName [13:15:14]name=ofd_packets/00139330 [13:15:14]OFD Sender: To server: pG, [13:15:14]CommunicateWithHost lk.salyk.kg:30040 [13:15:14]ConnectInit lk.salyk.kg [13:15:15]Connected sock=10 [13:15: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 37 36 0F 01 00 00 84 4A 07 01 0D 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 62 45 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 20 02 00 35 04 06 00 66 FE BD 15 B7 63 95 44 98 8D DE 7C 28 34 [13:15:15]Write to MH i2c: 01 00 00 21 07 28 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: 01 07 00 21 07 00 00 00 00 00 C3 0C FE [13:15:15]RasterBufferAndPrint [13:15:15]line [13:15:15]line [13:15:15]line [13:15:15]line [13:15:15]line [13:15:15]written 0, free lines is 3272 [13:15:15]MH_Cut [13:15:15]Write to MH i2c: D1 01 00 28 07 01 01 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: D1 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: D1 01 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: D1 01 00 28 07 00 00 [13:15:15]Write to MH i2c: 01 00 00 29 07 30 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15: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 37 36 4F 00 00 00 48 23 47 00 31 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 37 36 10 04 04 00 42 20 02 00 F4 03 04 00 F7 EB C2 66 B6 04 01 00 00 CB 7A 76 C3 D2 3D 79 00 [13:15:15]CommunicateWithHost err = 0 [13:15:15]CheckOFDResponse [13:15:15]1017 (14) - 77093643461234 [13:15:15]1041 (16) - 0000000000871776 [13:15:15]1040 (4) - 139330 [13:15:15]1012 (4) - 19.08.2024 06:53 [13:15:15]1206 (1) - 0 [13:15:15]OFD Sender: Remove packet 139330 [13:15:15]ProducePacketName [13:15:15]name=ofd_packets/00139330 [13:15:15]NVStorageDeleteData [13:15:15]OFD Sender: No OFD packet to send [13:15:16]*** Cut start [13:15:16]*** Partial cut [13:15:16]*** CUTSNS_PIN = 1 [13:15:16]*** CUTSNS_PIN = 0 [13:15:16]*** Brake cut motor [13:15:16]Read from MH i2c: 01 [13:15:16]MH_I2C_Read... [13:15:16]*** Stop cut motor [13:15:16]*** Cut end [13:15:16]Read from MH i2c: 01 07 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: 01 07 00 29 07 00 00 00 00 00 FF 0F 45 [13:15:16]process_action close_receipt done [13:15:16]requested_data is exist [13:15:16]produce_requested_data [13:15:16]requested_item fm.sn is exist - process it [13:15:16]wFMCommunicate request_size=4 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 11 00 00 [13:15:16]Write to MH i2c: E2 08 00 2A 07 80 11 00 00 00 00 00 00 AB [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 [13:15:16]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:16]Read from MH i2c: E2 17 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 17 00 2A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 02 [13:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:15:16]wFMCommunicate OK [13:15:16]requested_item fd.num is exist - process it [13:15:16]SAM_PROTO_GetFieldsCounters [13:15:16]wFMCommunicate request_size=4 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 13 00 00 [13:15:16]Write to MH i2c: E2 08 00 2B 07 80 13 00 00 00 00 00 00 AE [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:16]Read from MH i2c: E2 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 62 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 62 00 2B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 42 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [13:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 42 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:16]wFMCommunicate OK [13:15:16]SAM_PROTO_GetFieldsCounters done [13:15:16]requested_item shift.num is exist - process it [13:15:16]requested_item shift.opened is exist - process it [13:15:16]req_shift_opened [13:15:16]FM_GetShiftState [13:15:16]SAM_PROTO_GetShiftState [13:15:16]wFMCommunicate request_size=4 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 13 01 00 [13:15:16]Write to MH i2c: E2 08 00 2C 07 80 13 01 00 00 00 00 00 B0 [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:16]Read from MH i2c: E2 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 0E 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 0E 00 2C 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 67 [13:15:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:15:16]wFMCommunicate OK [13:15:16]SAM_PROTO_GetShiftState done [13:15:16]FM_GetShiftState done [13:15:16]req_shift_opened done [13:15:16]requested_item shift.open_date is exist - process it [13:15:16]req_shift_open_date [13:15:16]req_shift_open_date done [13:15:16]produce_requested_data done [13:15:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139330,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:15:16]process_action_free close_receipt [13:15:16]json_value_free [13:15:16]json_value_free done [13:15:16]process_json_proto returns [13:15:16]Send response to host [13:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139330,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:15:16]free response buf [13:15:16]execute_script done [13:15:16]execute_script returns [13:15:16]free content buf [13:15:16]Sock 8.Close socket [13:15:16]Sock 8.Thread stoped [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:50]accept exits with 9 [13:20:50]New connection [13:20:50]New thread 3066817892 created [13:20:50]Thread 3066674532 joined [13:20:50]Waiting for new connection... [13:20:50] Sock 9.Parse request [13:20:50]Sock 9.Check first char [13:20:50]Sock 9.First char is OK [13:20:50]request: POST /json_proto HTTP/1.0 [13:20:50]Method: POST [13:20:50]URL: /json_proto [13:20:50]Method is POST - this is cgi request [13:20:50]url: /json_proto [13:20:50]query_string will be loaded in cgi processing [13:20:50]execute_cgi json_proto POST (null) [13:20:50]execute_cgi path=json_proto method=POST [13:20:50]POST find Content-Length [13:20:50]Host: 172.17.45.67:8080 [13:20:50]Content-Length: 677 [13:20:50]Content-Type: application/json [13:20:50] [13:20:50]POST finish read [13:20:50]Found Content-Length = 677 [13:20:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:20:50]execute_script... [13:20: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)593173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:20:50]POST & json_proto [13:20:50]process_json_proto [13:20:50]json parsed OK: [13:20:50]protocol is kg_v1.0 [13:20:50]action value=close_receipt [13:20:50]process_action close_receipt [13:20:50]cmd_close_receipt [13:20:50]MH_GetDate [13:20:50]Write to MH i2c: F0 00 00 2D 07 23 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: F0 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: F0 09 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: F0 09 00 2D 07 00 B3 46 C3 66 5F 7F 2B 66 BD [13:20:50]GetLastDocTimeStamp 1724073314 [13:20:50]current date 1724073651 [13:20:50]FM_GetShiftState [13:20:50]SAM_PROTO_GetShiftState [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 13 01 00 [13:20:50]Write to MH i2c: E2 08 00 2E 07 80 13 01 00 00 00 00 00 B2 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 0E 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 0E 00 2E 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 69 [13:20:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:20:50]wFMCommunicate OK [13:20:50]SAM_PROTO_GetShiftState done [13:20:50]FM_GetShiftState done [13:20:50]opened in 1724027888 [13:20:50]opened+sec_in_day 1724114288 [13:20:50]quantity*price = 50036 [13:20:50]sum+1 = 50037 [13:20:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 166 19.08.2024 13:20 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139331 ФПД: 15341850688910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132051&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139331&fm=15341850688910&tin=02508201610067®Number=0000000000092569&sum=50000 [13:20:51]StoreToDocumentArchive [13:20:51]shift 452 fd 139331 [13:20:51]save to /storage/0452/doc_00139331 [13:20:51]save last doc name /storage/0452/doc_00139331 to /storage/kkm_last_doc_name [13:20:51]save OK [13:20:51]Clear old archive folders... [13:20:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:51]tlvbuf is 012071B0 [13:20:51]SAM_PROTO_ClearQueue [13:20:51]wFMCommunicate request_size=4 [13:20:51]MH_SAM_APDU [13:20:51]CAPDU: 80 09 00 00 [13:20:51]Write to MH i2c: E2 08 00 3B 07 80 09 00 00 00 00 00 00 B4 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:51]Read from MH i2c: E2 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 03 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [13:20:51]RAPDU: 90 00 [13:20:51]wFMCommunicate OK [13:20:51]SAM_PROTO_ClearQueue done [13:20:51]KKMCreateOFDPacket [13:20:51]OFDProtocolAddRootSTLVToBuf [13:20:51]FM_MakeSignedData [13:20:51]FM_MakeSignedData [13:20:51]SAM_PROTO_SignData [13:20:51]wFMCommunicate request_size=4 [13:20:51]MH_SAM_APDU [13:20:51]CAPDU: 80 0D 01 02 [13:20:51]Write to MH i2c: E2 08 00 3C 07 80 0D 01 02 00 00 00 00 BC [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:51]Read from MH i2c: E2 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 03 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 03 00 3C 07 00 90 00 B7 [13:20:51]RAPDU: 90 00 [13:20:51]wFMCommunicate OK [13:20:51]wFMCommunicate request_size=255 [13:20:51]MH_SAM_APDU [13:20: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A6 00 00 00 F4 03 04 00 B3 46 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 20 02 00 35 04 06 00 0D [13:20:51]Write to MH i2c: E2 02 01 3D 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A6 00 00 00 F4 03 04 00 B3 46 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 20 02 00 35 04 06 00 0D 00 00 44 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:52]Read from MH i2c: E2 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 03 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 03 00 3D 07 00 90 00 B8 [13:20:52]RAPDU: 90 00 [13:20:52]wFMCommunicate OK [13:20:52]wFMCommunicate request_size=10 [13:20:52]MH_SAM_APDU [13:20:52]CAPDU: 80 0D 02 02 05 F4 0D 8F 7D 8E [13:20:52]Write to MH i2c: E2 0D 00 3E 07 80 0D 02 02 05 00 F4 0D 8F 7D 8E 00 00 64 [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:52]Read from MH i2c: E2 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 03 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 03 00 3E 07 00 90 00 B9 [13:20:52]RAPDU: 90 00 [13:20:52]wFMCommunicate OK [13:20:52]wFMCommunicate request_size=4 [13:20:52]MH_SAM_APDU [13:20:52]CAPDU: 80 0D 03 02 [13:20:52]Write to MH i2c: E2 08 00 3F 07 80 0D 03 02 00 00 00 00 C1 [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:52]Read from MH i2c: E2 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 0B 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 0B 00 3F 07 00 F0 1A 0A 24 AB E3 31 A0 90 00 59 [13:20:52]RAPDU: F0 1A 0A 24 AB E3 31 A0 90 00 [13:20:52]wFMCommunicate OK [13:20:52]SAM_PROTO_SignData done [13:20:52]FM_MakeSignedData done [13:20:52]CreateOFDProtocolMessage [13:20:52]wFMCommunicate request_size=4 [13:20:52]MH_SAM_APDU [13:20:52]CAPDU: 80 11 00 00 [13:20:52]Write to MH i2c: E2 08 00 40 07 80 11 00 00 00 00 00 00 C1 [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:52]Read from MH i2c: E2 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 17 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 17 00 40 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [13:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:20:52]wFMCommunicate OK [13:20:52]CreateOFDProtocolMessage done [13:20:52]OFDSenderStorePacket 139331 [13:20:52]StoreOFDPacket docnum=139331 [13:20:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D0 E8 07 01 BF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A6 00 00 00 F4 03 04 00 B3 46 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 20 02 00 35 04 06 00 0D F4 0D 8F 7D 8E F0 1A 0A 24 AB E3 31 A0 [13:20:52]CheckFolder [13:20:52]dirname=/storage/ofd_packets [13:20:52]CheckFolder done [13:20:52]ProducePacketName [13:20:52]name=ofd_packets/00139331 [13:20:52]NVStorageSaveData ofd_packets/00139331 [13:20:52]File name is /storage/ofd_packets/00139331 [13:20:52]Write 301 bytes [13:20:52]NVStorageSaveData done [13:20:52]OFDSenderStorePacket done [13:20:52]KKMCreateOFDPacket done [13:20:52]NVStorageSaveData kkm_last_timestamp [13:20:52]File name is /storage/kkm_last_timestamp [13:20:52]Write 4 bytes [13:20:52]NVStorageSaveData done [13:20:52]ExternCall_PrintAddStr [13:20:52]wPrintStart [13:20:52]Write to MH i2c: 01 00 00 41 07 48 [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: 01 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: 01 07 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: 01 07 00 41 07 00 00 00 00 00 FF 0F 5D [13:20:52]RasterBufferAndPrint [13:20:52]line Счет N : (1)593173 [13:20:52]line ИНН: 02508201610067 [13:20:52]line Контрольно-Кассовый Чек [13:20:52]line ПРОДАЖА [13:20:52]line ТРК (МРК, ГНК) : 52 [13:20:52]line Товар: 2710124130 [13:20:52]line Аи-92-К-5 [13:20:52]line 7.380 * 67.80 [13:20:52]line = 500.36 [13:20:52]line НДС 12% НСП 1% [13:20:52]line > о реализуемом товаре [13:20:52]line ОКРУГЛЕНИЕ: -0.36 [13:20:52]line ИТОГО: 500.00 [13:20:52]line Внесено: 500.00 [13:20:52]line СДАЧА: 0.00 [13:20:52]line НСП 1% : 4.43 [13:20:52]line НДС 12% : 53.14 [13:20:52]line Наличными: 500.00 [13:20:52]line Безнал.: 0.00 [13:20:52]line Место: АЗС № 136 "Партнер Нефть" [13:20:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:20:52]line СНО: Общий режим [13:20:52]line Чек 166 19.08.2024 13:20 [13:20:52]line Смена: 452 ФФД: 1.0 [13:20:52]line ЗНМ: 0300000067 [13:20:52]line РНМ: 0000000000092569 [13:20:52]line Версия ККМ: 001 [13:20:52]line ФМ: 0000000000871776 [13:20:52]line ФД: 139331 [13:20:52]line ФПД: 15341850688910 [13:20:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132051&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139331&fm=15341850688910&tin=02508201610067®Number=0000000000092569&sum=50000 [13:20:52]OFD Sender: Processing packet 139331 [packets to send 137, broken 136] [13:20:52]ProducePacketName [13:20:52]name=ofd_packets/00139331 [13:20:52]OFD Sender: To server: pG, [13:20:52]CommunicateWithHost lk.salyk.kg:30040 [13:20:52]ConnectInit lk.salyk.kg [13:20:52]written 0, free lines is 4095 [13:20:52]Connected sock=11 [13:20: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 37 36 0F 01 00 00 D0 E8 07 01 BF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A6 00 00 00 F4 03 04 00 B3 46 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 20 02 00 35 04 06 00 0D F4 0D 8F 7D 8E F0 1A 0A 24 AB E3 31 A0 [13:20: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 37 36 4F 00 00 00 0F 26 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 37 36 10 04 04 00 43 20 02 00 F4 03 04 00 49 ED C2 66 B6 04 01 00 00 16 E4 64 1E A6 1D 42 62 [13:20:53]CommunicateWithHost err = 0 [13:20:53]CheckOFDResponse [13:20:53]1017 (14) - 77093643461234 [13:20:53]1041 (16) - 0000000000871776 [13:20:53]1040 (4) - 139331 [13:20:53]1012 (4) - 19.08.2024 06:59 [13:20:53]1206 (1) - 0 [13:20:53]OFD Sender: Remove packet 139331 [13:20:53]ProducePacketName [13:20:53]name=ofd_packets/00139331 [13:20:53]NVStorageDeleteData [13:20:53]Write to MH i2c: 01 00 00 6C 07 73 [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: 01 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: 01 07 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: 01 07 00 6C 07 00 00 00 00 00 C5 0C 4B [13:20:53]RasterBufferAndPrint [13:20:53]line [13:20:53]line [13:20:53]line [13:20:53]line [13:20:53]line [13:20:53]written 0, free lines is 3275 [13:20:53]MH_Cut [13:20:53]Write to MH i2c: D1 01 00 73 07 01 4C [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: D1 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: D1 01 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: D1 01 00 73 07 00 4B [13:20:53]Write to MH i2c: 01 00 00 74 07 7B [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]OFD Sender: No OFD packet to send [13:20:53]*** Cut start [13:20:53]*** Partial cut [13:20:53]*** CUTSNS_PIN = 1 [13:20:53]*** CUTSNS_PIN = 0 [13:20:53]*** Brake cut motor [13:20:54]Read from MH i2c: 01 [13:20:54]MH_I2C_Read... [13:20:54]*** Stop cut motor [13:20:54]*** Cut end [13:20:54]Read from MH i2c: 01 07 00 [13:20:54]MH_I2C_Read... [13:20:54]Read from MH i2c: 01 07 00 74 07 00 00 00 00 00 FF 0F 90 [13:20:54]process_action close_receipt done [13:20:54]requested_data is exist [13:20:54]produce_requested_data [13:20:54]requested_item fm.sn is exist - process it [13:20:54]wFMCommunicate request_size=4 [13:20:54]MH_SAM_APDU [13:20:54]CAPDU: 80 11 00 00 [13:20:54]Write to MH i2c: E2 08 00 75 07 80 11 00 00 00 00 00 00 F6 [13:20:54]Write i2c OK [13:20:54]MH_I2C_Read... [13:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:54]Read from MH i2c: E2 [13:20:54]MH_I2C_Read... [13:20:54]Read from MH i2c: E2 17 00 [13:20:54]MH_I2C_Read... [13:20:54]Read from MH i2c: E2 17 00 75 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [13:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:20:54]wFMCommunicate OK [13:20:54]requested_item fd.num is exist - process it [13:20:54]SAM_PROTO_GetFieldsCounters [13:20:54]wFMCommunicate request_size=4 [13:20:54]MH_SAM_APDU [13:20:54]CAPDU: 80 13 00 00 [13:20:54]Write to MH i2c: E2 08 00 76 07 80 13 00 00 00 00 00 00 F9 [13:20:54]Write i2c OK [13:20:54]MH_I2C_Read... [13:20:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:54]Read from MH i2c: E2 [13:20:54]MH_I2C_Read... [13:20:54]Read from MH i2c: E2 62 00 [13:20:54]MH_I2C_Read... [13:20:54]Read from MH i2c: E2 62 00 76 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 43 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [13:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 43 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:54]wFMCommunicate OK [13:20:54]SAM_PROTO_GetFieldsCounters done [13:20:54]requested_item shift.num is exist - process it [13:20:54]requested_item shift.opened is exist - process it [13:20:54]req_shift_opened [13:20:54]FM_GetShiftState [13:20:54]SAM_PROTO_GetShiftState [13:20:54]wFMCommunicate request_size=4 [13:20:54]MH_SAM_APDU [13:20:54]CAPDU: 80 13 01 00 [13:20:54]Write to MH i2c: E2 08 00 77 07 80 13 01 00 00 00 00 00 FB [13:20:54]Write i2c OK [13:20:54]MH_I2C_Read... [13:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:54]Read from MH i2c: E2 [13:20:54]MH_I2C_Read... [13:20:54]Read from MH i2c: E2 0E 00 [13:20:54]MH_I2C_Read... [13:20:54]Read from MH i2c: E2 0E 00 77 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B2 [13:20:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:20:54]wFMCommunicate OK [13:20:54]SAM_PROTO_GetShiftState done [13:20:54]FM_GetShiftState done [13:20:54]req_shift_opened done [13:20:54]requested_item shift.open_date is exist - process it [13:20:54]req_shift_open_date [13:20:54]req_shift_open_date done [13:20:54]produce_requested_data done [13:20:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139331,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:20:54]process_action_free close_receipt [13:20:54]json_value_free [13:20:54]json_value_free done [13:20:54]process_json_proto returns [13:20:54]Send response to host [13:20:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139331,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:20:54]free response buf [13:20:54]execute_script done [13:20:54]execute_script returns [13:20:54]free content buf [13:20:54]Sock 9.Close socket [13:20:54]Sock 9.Thread stoped [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]accept exits with 8 [13:26:43]New connection [13:26:43]New thread 3066674532 created [13:26:43]Thread 3066817892 joined [13:26:43]Waiting for new connection... [13:26:43] Sock 8.Parse request [13:26:43]Sock 8.Check first char [13:26:43]Sock 8.First char is OK [13:26:43]request: POST /json_proto HTTP/1.0 [13:26:43]Method: POST [13:26:43]URL: /json_proto [13:26:43]Method is POST - this is cgi request [13:26:43]url: /json_proto [13:26:43]query_string will be loaded in cgi processing [13:26:43]execute_cgi json_proto POST (null) [13:26:43]execute_cgi path=json_proto method=POST [13:26:43]POST find Content-Length [13:26:43]Host: 172.17.45.67:8080 [13:26:43]Content-Length: 677 [13:26:43]Content-Type: application/json [13:26:43] [13:26:43]POST finish read [13:26:43]Found Content-Length = 677 [13:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:43]execute_script... [13:26: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)593174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:43]POST & json_proto [13:26:43]process_json_proto [13:26:43]json parsed OK: [13:26:43]protocol is kg_v1.0 [13:26:43]action value=close_receipt [13:26:43]process_action close_receipt [13:26:43]cmd_close_receipt [13:26:43]MH_GetDate [13:26:43]Write to MH i2c: F0 00 00 78 07 6E [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: F0 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: F0 09 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: F0 09 00 78 07 00 14 48 C3 66 5F 7F 2B 66 6B [13:26:43]GetLastDocTimeStamp 1724073651 [13:26:43]current date 1724074004 [13:26:43]FM_GetShiftState [13:26:43]SAM_PROTO_GetShiftState [13:26:43]wFMCommunicate request_size=4 [13:26:43]MH_SAM_APDU [13:26:43]CAPDU: 80 13 01 00 [13:26:43]Write to MH i2c: E2 08 00 79 07 80 13 01 00 00 00 00 00 FD [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:43]Read from MH i2c: E2 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 0E 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 0E 00 79 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B4 [13:26:43]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:26:43]wFMCommunicate OK [13:26:43]SAM_PROTO_GetShiftState done [13:26:43]FM_GetShiftState done [13:26:43]opened in 1724027888 [13:26:43]opened+sec_in_day 1724114288 [13:26:43]quantity*price = 60027 [13:26:43]sum+1 = 60029 [13:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 167 19.08.2024 13:26 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139332 ФПД: 219215128702717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132644&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139332&fm=219215128702717&tin=02508201610067®Number=0000000000092569&sum=60000 [13:26:44]StoreToDocumentArchive [13:26:44]shift 452 fd 139332 [13:26:44]save to /storage/0452/doc_00139332 [13:26:44]save last doc name /storage/0452/doc_00139332 to /storage/kkm_last_doc_name [13:26:44]save OK [13:26:44]Clear old archive folders... [13:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:44]tlvbuf is 011CBB20 [13:26:44]SAM_PROTO_ClearQueue [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 09 00 00 [13:26:44]Write to MH i2c: E2 08 00 86 07 80 09 00 00 00 00 00 00 FF [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 86 07 00 90 00 01 [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]SAM_PROTO_ClearQueue done [13:26:44]KKMCreateOFDPacket [13:26:44]OFDProtocolAddRootSTLVToBuf [13:26:44]FM_MakeSignedData [13:26:44]FM_MakeSignedData [13:26:44]SAM_PROTO_SignData [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 0D 01 02 [13:26:44]Write to MH i2c: E2 08 00 87 07 80 0D 01 02 00 00 00 00 07 [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 87 07 00 90 00 02 [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]wFMCommunicate request_size=255 [13:26:44]MH_SAM_APDU [13:26: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 A7 00 00 00 F4 03 04 00 14 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 20 02 00 35 04 06 00 C7 [13:26:44]Write to MH i2c: E2 02 01 88 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 A7 00 00 00 F4 03 04 00 14 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 20 02 00 35 04 06 00 C7 00 00 1C [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 88 07 00 90 00 03 [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]wFMCommunicate request_size=10 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 0D 02 02 05 5F FF E0 2E FD [13:26:44]Write to MH i2c: E2 0D 00 89 07 80 0D 02 02 05 00 5F FF E0 2E FD 00 00 7D [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 89 07 00 90 00 04 [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 0D 03 02 [13:26:44]Write to MH i2c: E2 08 00 8A 07 80 0D 03 02 00 00 00 00 0C [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 0B 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 0B 00 8A 07 00 D8 59 71 03 2D 8D 1D A6 90 00 2F [13:26:44]RAPDU: D8 59 71 03 2D 8D 1D A6 90 00 [13:26:44]wFMCommunicate OK [13:26:44]SAM_PROTO_SignData done [13:26:44]FM_MakeSignedData done [13:26:44]CreateOFDProtocolMessage [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 11 00 00 [13:26:44]Write to MH i2c: E2 08 00 8B 07 80 11 00 00 00 00 00 00 0C [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 17 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 17 00 8B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [13:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:26:44]wFMCommunicate OK [13:26:44]CreateOFDProtocolMessage done [13:26:44]OFDSenderStorePacket 139332 [13:26:44]StoreOFDPacket docnum=139332 [13:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B9 47 07 01 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 A7 00 00 00 F4 03 04 00 14 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 20 02 00 35 04 06 00 C7 5F FF E0 2E FD D8 59 71 03 2D 8D 1D A6 [13:26:44]CheckFolder [13:26:45]dirname=/storage/ofd_packets [13:26:45]CheckFolder done [13:26:45]ProducePacketName [13:26:45]name=ofd_packets/00139332 [13:26:45]NVStorageSaveData ofd_packets/00139332 [13:26:45]File name is /storage/ofd_packets/00139332 [13:26:45]Write 301 bytes [13:26:45]NVStorageSaveData done [13:26:45]OFDSenderStorePacket done [13:26:45]KKMCreateOFDPacket done [13:26:45]NVStorageSaveData kkm_last_timestamp [13:26:45]File name is /storage/kkm_last_timestamp [13:26:45]Write 4 bytes [13:26:45]NVStorageSaveData done [13:26:45]ExternCall_PrintAddStr [13:26:45]wPrintStart [13:26:45]Write to MH i2c: 01 00 00 8C 07 93 [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 07 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 07 00 8C 07 00 00 00 00 00 FF 0F A8 [13:26:45]RasterBufferAndPrint [13:26:45]line Счет N : (1)593174 [13:26:45]line ИНН: 02508201610067 [13:26:45]line Контрольно-Кассовый Чек [13:26:45]line ПРОДАЖА [13:26:45]line ТРК (МРК, ГНК) : 51 [13:26:45]line Товар: 2710124500 [13:26:45]line Аи-95-К-5 [13:26:45]line 8.090 * 74.20 [13:26:45]line = 600.28 [13:26:45]line НДС 12% НСП 1% [13:26:45]line > о реализуемом товаре [13:26:45]line ОКРУГЛЕНИЕ: -0.28 [13:26:45]line ИТОГО: 600.00 [13:26:45]line Внесено: 600.00 [13:26:45]line СДАЧА: 0.00 [13:26:45]line НСП 1% : 5.31 [13:26:45]line НДС 12% : 63.75 [13:26:45]line Наличными: 600.00 [13:26:45]line Безнал.: 0.00 [13:26:45]line Место: АЗС № 136 "Партнер Нефть" [13:26:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:26:45]line СНО: Общий режим [13:26:45]line Чек 167 19.08.2024 13:26 [13:26:45]line Смена: 452 ФФД: 1.0 [13:26:45]line ЗНМ: 0300000067 [13:26:45]line РНМ: 0000000000092569 [13:26:45]line Версия ККМ: 001 [13:26:45]line ФМ: 0000000000871776 [13:26:45]line ФД: 139332 [13:26:45]line ФПД: 219215128702717 [13:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132644&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139332&fm=219215128702717&tin=02508201610067®Number=0000000000092569&sum=60000 [13:26:45]OFD Sender: Processing packet 139332 [packets to send 137, broken 136] [13:26:45]ProducePacketName [13:26:45]name=ofd_packets/00139332 [13:26:45]OFD Sender: To server: pG, [13:26:45]CommunicateWithHost lk.salyk.kg:30040 [13:26:45]ConnectInit lk.salyk.kg [13:26:45]written 0, free lines is 4095 [13:26:45]Connected sock=10 [13:26: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 37 36 0F 01 00 00 B9 47 07 01 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 A7 00 00 00 F4 03 04 00 14 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 20 02 00 35 04 06 00 C7 5F FF E0 2E FD D8 59 71 03 2D 8D 1D A6 [13:26: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 37 36 4F 00 00 00 7A A6 47 00 D2 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 37 36 10 04 04 00 44 20 02 00 F4 03 04 00 AA EE C2 66 B6 04 01 00 00 DC C4 62 19 E4 CB 12 91 [13:26:45]CommunicateWithHost err = 0 [13:26:45]CheckOFDResponse [13:26:45]1017 (14) - 77093643461234 [13:26:45]1041 (16) - 0000000000871776 [13:26:45]1040 (4) - 139332 [13:26:45]1012 (4) - 19.08.2024 07:05 [13:26:45]1206 (1) - 0 [13:26:45]OFD Sender: Remove packet 139332 [13:26:45]ProducePacketName [13:26:45]name=ofd_packets/00139332 [13:26:45]NVStorageDeleteData [13:26:45]Write to MH i2c: 01 00 00 B7 07 BE [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 07 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 07 00 B7 07 00 00 00 00 00 D1 0C A2 [13:26:45]RasterBufferAndPrint [13:26:45]line [13:26:45]line [13:26:45]line [13:26:45]line [13:26:45]line [13:26:45]written 0, free lines is 3288 [13:26:45]MH_Cut [13:26:45]Write to MH i2c: D1 01 00 BE 07 01 97 [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: D1 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: D1 01 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: D1 01 00 BE 07 00 96 [13:26:45]Write to MH i2c: 01 00 00 BF 07 C6 [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:46]OFD Sender: No OFD packet to send [13:26:46]*** Cut start [13:26:46]*** Partial cut [13:26:46]*** CUTSNS_PIN = 1 [13:26:46]*** CUTSNS_PIN = 0 [13:26:46]*** Brake cut motor [13:26:47]Read from MH i2c: 01 [13:26:47]MH_I2C_Read... [13:26:47]*** Stop cut motor [13:26:47]*** Cut end [13:26:47]Read from MH i2c: 01 07 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 FF 0F DB [13:26:47]process_action close_receipt done [13:26:47]requested_data is exist [13:26:47]produce_requested_data [13:26:47]requested_item fm.sn is exist - process it [13:26:47]wFMCommunicate request_size=4 [13:26:47]MH_SAM_APDU [13:26:47]CAPDU: 80 11 00 00 [13:26:47]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [13:26:47]Write i2c OK [13:26:47]MH_I2C_Read... [13:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:47]Read from MH i2c: E2 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 17 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [13:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:26:47]wFMCommunicate OK [13:26:47]requested_item fd.num is exist - process it [13:26:47]SAM_PROTO_GetFieldsCounters [13:26:47]wFMCommunicate request_size=4 [13:26:47]MH_SAM_APDU [13:26:47]CAPDU: 80 13 00 00 [13:26:47]Write to MH i2c: E2 08 00 C1 07 80 13 00 00 00 00 00 00 44 [13:26:47]Write i2c OK [13:26:47]MH_I2C_Read... [13:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:47]Read from MH i2c: E2 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 62 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 62 00 C1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 44 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [13:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 44 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:47]wFMCommunicate OK [13:26:47]SAM_PROTO_GetFieldsCounters done [13:26:47]requested_item shift.num is exist - process it [13:26:47]requested_item shift.opened is exist - process it [13:26:47]req_shift_opened [13:26:47]FM_GetShiftState [13:26:47]SAM_PROTO_GetShiftState [13:26:47]wFMCommunicate request_size=4 [13:26:47]MH_SAM_APDU [13:26:47]CAPDU: 80 13 01 00 [13:26:47]Write to MH i2c: E2 08 00 C2 07 80 13 01 00 00 00 00 00 46 [13:26:47]Write i2c OK [13:26:47]MH_I2C_Read... [13:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:47]Read from MH i2c: E2 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 0E 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 0E 00 C2 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FD [13:26:47]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:26:47]wFMCommunicate OK [13:26:47]SAM_PROTO_GetShiftState done [13:26:47]FM_GetShiftState done [13:26:47]req_shift_opened done [13:26:47]requested_item shift.open_date is exist - process it [13:26:47]req_shift_open_date [13:26:47]req_shift_open_date done [13:26:47]produce_requested_data done [13:26:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139332,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:26:47]process_action_free close_receipt [13:26:47]json_value_free [13:26:47]json_value_free done [13:26:47]process_json_proto returns [13:26:47]Send response to host [13:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139332,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:26:47]free response buf [13:26:47]execute_script done [13:26:47]execute_script returns [13:26:47]free content buf [13:26:47]Sock 8.Close socket [13:26:47]Sock 8.Thread stoped [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:33]accept exits with 9 [13:30:33]New connection [13:30:33]New thread 3066817892 created [13:30:33]Thread 3066674532 joined [13:30:33]Waiting for new connection... [13:30:33] Sock 9.Parse request [13:30:33]Sock 9.Check first char [13:30:33]Sock 9.First char is OK [13:30:33]request: POST /json_proto HTTP/1.0 [13:30:33]Method: POST [13:30:33]URL: /json_proto [13:30:33]Method is POST - this is cgi request [13:30:33]url: /json_proto [13:30:33]query_string will be loaded in cgi processing [13:30:33]execute_cgi json_proto POST (null) [13:30:33]execute_cgi path=json_proto method=POST [13:30:33]POST find Content-Length [13:30:33]Host: 172.17.45.67:8080 [13:30:33]Content-Length: 677 [13:30:33]Content-Type: application/json [13:30:33] [13:30:33]POST finish read [13:30:33]Found Content-Length = 677 [13:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:30:33]execute_script... [13:30: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)593175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:30:33]POST & json_proto [13:30:33]process_json_proto [13:30:33]json parsed OK: [13:30:33]protocol is kg_v1.0 [13:30:33]action value=close_receipt [13:30:33]process_action close_receipt [13:30:33]cmd_close_receipt [13:30:33]MH_GetDate [13:30:33]Write to MH i2c: F0 00 00 C3 07 B9 [13:30:33]Write i2c OK [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: F0 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: F0 09 00 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: F0 09 00 C3 07 00 FA 48 C3 66 5F 7F 2B 66 9C [13:30:33]GetLastDocTimeStamp 1724074004 [13:30:33]current date 1724074234 [13:30:33]FM_GetShiftState [13:30:33]SAM_PROTO_GetShiftState [13:30:33]wFMCommunicate request_size=4 [13:30:33]MH_SAM_APDU [13:30:33]CAPDU: 80 13 01 00 [13:30:33]Write to MH i2c: E2 08 00 C4 07 80 13 01 00 00 00 00 00 48 [13:30:33]Write i2c OK [13:30:33]MH_I2C_Read... [13:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:33]Read from MH i2c: E2 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 0E 00 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 0E 00 C4 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FF [13:30:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:30:33]wFMCommunicate OK [13:30:33]SAM_PROTO_GetShiftState done [13:30:33]FM_GetShiftState done [13:30:33]opened in 1724027888 [13:30:33]opened+sec_in_day 1724114288 [13:30:33]quantity*price = 50036 [13:30:33]sum+1 = 50037 [13:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 168 19.08.2024 13:30 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139333 ФПД: 187309271182352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133034&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139333&fm=187309271182352&tin=02508201610067®Number=0000000000092569&sum=50000 [13:30:34]StoreToDocumentArchive [13:30:34]shift 452 fd 139333 [13:30:34]save to /storage/0452/doc_00139333 [13:30:34]save last doc name /storage/0452/doc_00139333 to /storage/kkm_last_doc_name [13:30:34]save OK [13:30:34]Clear old archive folders... [13:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:34]tlvbuf is 01207C60 [13:30:34]SAM_PROTO_ClearQueue [13:30:34]wFMCommunicate request_size=4 [13:30:34]MH_SAM_APDU [13:30:34]CAPDU: 80 09 00 00 [13:30:34]Write to MH i2c: E2 08 00 D1 07 80 09 00 00 00 00 00 00 4A [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:34]Read from MH i2c: E2 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 D1 07 00 90 00 4C [13:30:34]RAPDU: 90 00 [13:30:34]wFMCommunicate OK [13:30:34]SAM_PROTO_ClearQueue done [13:30:34]KKMCreateOFDPacket [13:30:34]OFDProtocolAddRootSTLVToBuf [13:30:34]FM_MakeSignedData [13:30:34]FM_MakeSignedData [13:30:34]SAM_PROTO_SignData [13:30:34]wFMCommunicate request_size=4 [13:30:34]MH_SAM_APDU [13:30:34]CAPDU: 80 0D 01 02 [13:30:34]Write to MH i2c: E2 08 00 D2 07 80 0D 01 02 00 00 00 00 52 [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:34]Read from MH i2c: E2 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 D2 07 00 90 00 4D [13:30:34]RAPDU: 90 00 [13:30:34]wFMCommunicate OK [13:30:34]wFMCommunicate request_size=255 [13:30:34]MH_SAM_APDU [13:30: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A8 00 00 00 F4 03 04 00 FA 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 20 02 00 35 04 06 00 AA [13:30:34]Write to MH i2c: E2 02 01 D3 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A8 00 00 00 F4 03 04 00 FA 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 20 02 00 35 04 06 00 AA 00 00 C4 [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:35]Read from MH i2c: E2 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 03 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 03 00 D3 07 00 90 00 4E [13:30:35]RAPDU: 90 00 [13:30:35]wFMCommunicate OK [13:30:35]wFMCommunicate request_size=10 [13:30:35]MH_SAM_APDU [13:30:35]CAPDU: 80 0D 02 02 05 5B 56 92 6C 10 [13:30:35]Write to MH i2c: E2 0D 00 D4 07 80 0D 02 02 05 00 5B 56 92 6C 10 00 00 1E [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:35]Read from MH i2c: E2 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 03 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [13:30:35]RAPDU: 90 00 [13:30:35]wFMCommunicate OK [13:30:35]wFMCommunicate request_size=4 [13:30:35]MH_SAM_APDU [13:30:35]CAPDU: 80 0D 03 02 [13:30:35]Write to MH i2c: E2 08 00 D5 07 80 0D 03 02 00 00 00 00 57 [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:35]Read from MH i2c: E2 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 0B 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 0B 00 D5 07 00 42 D2 68 B1 0D EB 8E F5 90 00 00 [13:30:35]RAPDU: 42 D2 68 B1 0D EB 8E F5 90 00 [13:30:35]wFMCommunicate OK [13:30:35]SAM_PROTO_SignData done [13:30:35]FM_MakeSignedData done [13:30:35]CreateOFDProtocolMessage [13:30:35]wFMCommunicate request_size=4 [13:30:35]MH_SAM_APDU [13:30:35]CAPDU: 80 11 00 00 [13:30:35]Write to MH i2c: E2 08 00 D6 07 80 11 00 00 00 00 00 00 57 [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:35]Read from MH i2c: E2 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 17 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: E2 17 00 D6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [13:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:30:35]wFMCommunicate OK [13:30:35]CreateOFDProtocolMessage done [13:30:35]OFDSenderStorePacket 139333 [13:30:35]StoreOFDPacket docnum=139333 [13:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 63 07 01 68 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A8 00 00 00 F4 03 04 00 FA 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 20 02 00 35 04 06 00 AA 5B 56 92 6C 10 42 D2 68 B1 0D EB 8E F5 [13:30:35]CheckFolder [13:30:35]dirname=/storage/ofd_packets [13:30:35]CheckFolder done [13:30:35]ProducePacketName [13:30:35]name=ofd_packets/00139333 [13:30:35]NVStorageSaveData ofd_packets/00139333 [13:30:35]File name is /storage/ofd_packets/00139333 [13:30:35]Write 301 bytes [13:30:35]NVStorageSaveData done [13:30:35]OFDSenderStorePacket done [13:30:35]KKMCreateOFDPacket done [13:30:35]NVStorageSaveData kkm_last_timestamp [13:30:35]File name is /storage/kkm_last_timestamp [13:30:35]Write 4 bytes [13:30:35]NVStorageSaveData done [13:30:35]ExternCall_PrintAddStr [13:30:35]wPrintStart [13:30:35]Write to MH i2c: 01 00 00 D7 07 DE [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: 01 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: 01 07 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [13:30:35]RasterBufferAndPrint [13:30:35]line Счет N : (1)593175 [13:30:35]line ИНН: 02508201610067 [13:30:35]line Контрольно-Кассовый Чек [13:30:35]line ПРОДАЖА [13:30:35]line ТРК (МРК, ГНК) : 42 [13:30:35]line Товар: 2710124130 [13:30:35]line Аи-92-К-5 [13:30:35]line 7.380 * 67.80 [13:30:35]line = 500.36 [13:30:35]line НДС 12% НСП 1% [13:30:35]line > о реализуемом товаре [13:30:35]line ОКРУГЛЕНИЕ: -0.36 [13:30:35]line ИТОГО: 500.00 [13:30:35]line Внесено: 500.00 [13:30:35]line СДАЧА: 0.00 [13:30:35]line НСП 1% : 4.43 [13:30:35]line НДС 12% : 53.14 [13:30:35]line Наличными: 500.00 [13:30:35]line Безнал.: 0.00 [13:30:35]line Место: АЗС № 136 "Партнер Нефть" [13:30:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:30:35]line СНО: Общий режим [13:30:35]line Чек 168 19.08.2024 13:30 [13:30:35]line Смена: 452 ФФД: 1.0 [13:30:35]line ЗНМ: 0300000067 [13:30:35]line РНМ: 0000000000092569 [13:30:35]line Версия ККМ: 001 [13:30:35]line ФМ: 0000000000871776 [13:30:35]line ФД: 139333 [13:30:35]line ФПД: 187309271182352 [13:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133034&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139333&fm=187309271182352&tin=02508201610067®Number=0000000000092569&sum=50000 [13:30:35]written 0, free lines is 4095 [13:30:35]OFD Sender: Processing packet 139333 [packets to send 137, broken 136] [13:30:35]ProducePacketName [13:30:35]name=ofd_packets/00139333 [13:30:35]OFD Sender: To server: pG, [13:30:35]CommunicateWithHost lk.salyk.kg:30040 [13:30:35]ConnectInit lk.salyk.kg [13:30:35]Connected sock=10 [13:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 63 07 01 68 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A8 00 00 00 F4 03 04 00 FA 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 20 02 00 35 04 06 00 AA 5B 56 92 6C 10 42 D2 68 B1 0D EB 8E F5 [13: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 37 36 4F 00 00 00 B6 3A 47 00 27 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 37 36 10 04 04 00 45 20 02 00 F4 03 04 00 90 EF C2 66 B6 04 01 00 00 B8 F9 29 26 C5 EB 25 8B [13:30:36]CommunicateWithHost err = 0 [13:30:36]CheckOFDResponse [13:30:36]1017 (14) - 77093643461234 [13:30:36]1041 (16) - 0000000000871776 [13:30:36]1040 (4) - 139333 [13:30:36]1012 (4) - 19.08.2024 07:09 [13:30:36]1206 (1) - 0 [13:30:36]OFD Sender: Remove packet 139333 [13:30:36]ProducePacketName [13:30:36]name=ofd_packets/00139333 [13:30:36]NVStorageDeleteData [13:30:36]Write to MH i2c: 01 00 00 02 08 0A [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: 01 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: 01 07 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 D0 0C ED [13:30:36]RasterBufferAndPrint [13:30:36]line [13:30:36]line [13:30:36]line [13:30:36]line [13:30:36]line [13:30:36]written 0, free lines is 3288 [13:30:36]MH_Cut [13:30:36]Write to MH i2c: D1 01 00 09 08 01 E3 [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: D1 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: D1 01 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: D1 01 00 09 08 00 E2 [13:30:36]Write to MH i2c: 01 00 00 0A 08 12 [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]OFD Sender: No OFD packet to send [13:30:36]*** Cut start [13:30:36]*** Partial cut [13:30:36]*** CUTSNS_PIN = 1 [13:30:36]*** CUTSNS_PIN = 0 [13:30:37]*** Brake cut motor [13:30:37]Read from MH i2c: 01 [13:30:37]MH_I2C_Read... [13:30:37]*** Stop cut motor [13:30:37]*** Cut end [13:30:37]Read from MH i2c: 01 07 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: 01 07 00 0A 08 00 00 00 00 00 FF 0F 27 [13:30:37]process_action close_receipt done [13:30:37]requested_data is exist [13:30:37]produce_requested_data [13:30:37]requested_item fm.sn is exist - process it [13:30:37]wFMCommunicate request_size=4 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 11 00 00 [13:30:37]Write to MH i2c: E2 08 00 0B 08 80 11 00 00 00 00 00 00 8D [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 17 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 17 00 0B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E4 [13:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:30:37]wFMCommunicate OK [13:30:37]requested_item fd.num is exist - process it [13:30:37]SAM_PROTO_GetFieldsCounters [13:30:37]wFMCommunicate request_size=4 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 13 00 00 [13:30:37]Write to MH i2c: E2 08 00 0C 08 80 13 00 00 00 00 00 00 90 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 62 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 62 00 0C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 45 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 45 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:37]wFMCommunicate OK [13:30:37]SAM_PROTO_GetFieldsCounters done [13:30:37]requested_item shift.num is exist - process it [13:30:37]requested_item shift.opened is exist - process it [13:30:37]req_shift_opened [13:30:37]FM_GetShiftState [13:30:37]SAM_PROTO_GetShiftState [13:30:37]wFMCommunicate request_size=4 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 13 01 00 [13:30:37]Write to MH i2c: E2 08 00 0D 08 80 13 01 00 00 00 00 00 92 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 0E 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 0E 00 0D 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 49 [13:30:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:30:37]wFMCommunicate OK [13:30:37]SAM_PROTO_GetShiftState done [13:30:37]FM_GetShiftState done [13:30:37]req_shift_opened done [13:30:37]requested_item shift.open_date is exist - process it [13:30:37]req_shift_open_date [13:30:37]req_shift_open_date done [13:30:37]produce_requested_data done [13:30:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139333,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:30:37]process_action_free close_receipt [13:30:37]json_value_free [13:30:37]json_value_free done [13:30:37]process_json_proto returns [13:30:37]Send response to host [13:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139333,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:30:37]free response buf [13:30:37]execute_script done [13:30:37]execute_script returns [13:30:37]free content buf [13:30:37]Sock 9.Close socket [13:30:37]Sock 9.Thread stoped [13:30:38]accept exits with 8 [13:30:38]New connection [13:30:38]New thread 3066674532 created [13:30:38]Thread 3066817892 joined [13:30:38]Waiting for new connection... [13:30:38] Sock 8.Parse request [13:30:38]Sock 8.Check first char [13:30:38]Sock 8.First char is OK [13:30:38]request: POST /json_proto HTTP/1.0 [13:30:38]Method: POST [13:30:38]URL: /json_proto [13:30:38]Method is POST - this is cgi request [13:30:38]url: /json_proto [13:30:38]query_string will be loaded in cgi processing [13:30:38]execute_cgi json_proto POST (null) [13:30:38]execute_cgi path=json_proto method=POST [13:30:38]POST find Content-Length [13:30:38]Host: 172.17.45.67:8080 [13:30:38]Content-Length: 677 [13:30:38]Content-Type: application/json [13:30:38] [13:30:38]POST finish read [13:30:38]Found Content-Length = 677 [13:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:38]execute_script... [13: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)593176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:38]POST & json_proto [13:30:38]process_json_proto [13:30:38]json parsed OK: [13:30:38]protocol is kg_v1.0 [13:30:38]action value=close_receipt [13:30:38]process_action close_receipt [13:30:38]cmd_close_receipt [13:30:38]MH_GetDate [13:30:38]Write to MH i2c: F0 00 00 0E 08 05 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: F0 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: F0 09 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: F0 09 00 0E 08 00 FE 48 C3 66 5F 7F 2B 66 EC [13:30:38]GetLastDocTimeStamp 1724074234 [13:30:38]current date 1724074238 [13:30:38]FM_GetShiftState [13:30:38]SAM_PROTO_GetShiftState [13:30:38]wFMCommunicate request_size=4 [13:30:38]MH_SAM_APDU [13:30:38]CAPDU: 80 13 01 00 [13:30:38]Write to MH i2c: E2 08 00 0F 08 80 13 01 00 00 00 00 00 94 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:38]Read from MH i2c: E2 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 0E 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 0E 00 0F 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4B [13:30:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:30:38]wFMCommunicate OK [13:30:38]SAM_PROTO_GetShiftState done [13:30:38]FM_GetShiftState done [13:30:38]opened in 1724027888 [13:30:38]opened+sec_in_day 1724114288 [13:30:38]quantity*price = 40002 [13:30:38]sum+1 = 40003 [13:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 169 19.08.2024 13:30 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139334 ФПД: 59152144448345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133039&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139334&fm=59152144448345&tin=02508201610067®Number=0000000000092569&sum=40000 [13:30:39]StoreToDocumentArchive [13:30:39]shift 452 fd 139334 [13:30:39]save to /storage/0452/doc_00139334 [13:30:39]save last doc name /storage/0452/doc_00139334 to /storage/kkm_last_doc_name [13:30:39]save OK [13:30:39]Clear old archive folders... [13:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:39]tlvbuf is 011CBC30 [13:30:39]SAM_PROTO_ClearQueue [13:30:39]wFMCommunicate request_size=4 [13:30:39]MH_SAM_APDU [13:30:39]CAPDU: 80 09 00 00 [13:30:39]Write to MH i2c: E2 08 00 1C 08 80 09 00 00 00 00 00 00 96 [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:39]Read from MH i2c: E2 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 03 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 03 00 1C 08 00 90 00 98 [13:30:39]RAPDU: 90 00 [13:30:39]wFMCommunicate OK [13:30:39]SAM_PROTO_ClearQueue done [13:30:39]KKMCreateOFDPacket [13:30:39]OFDProtocolAddRootSTLVToBuf [13:30:39]FM_MakeSignedData [13:30:39]FM_MakeSignedData [13:30:39]SAM_PROTO_SignData [13:30:39]wFMCommunicate request_size=4 [13:30:39]MH_SAM_APDU [13:30:39]CAPDU: 80 0D 01 02 [13:30:39]Write to MH i2c: E2 08 00 1D 08 80 0D 01 02 00 00 00 00 9E [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:39]Read from MH i2c: E2 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 03 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 03 00 1D 08 00 90 00 99 [13:30:39]RAPDU: 90 00 [13:30:39]wFMCommunicate OK [13:30:39]wFMCommunicate request_size=255 [13:30:39]MH_SAM_APDU [13: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A9 00 00 00 F4 03 04 00 FF 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 20 02 00 35 04 06 00 35 [13:30:39]Write to MH i2c: E2 02 01 1E 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A9 00 00 00 F4 03 04 00 FF 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 20 02 00 35 04 06 00 35 00 00 87 [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:40]Read from MH i2c: E2 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 03 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 03 00 1E 08 00 90 00 9A [13:30:40]RAPDU: 90 00 [13:30:40]wFMCommunicate OK [13:30:40]wFMCommunicate request_size=10 [13:30:40]MH_SAM_APDU [13:30:40]CAPDU: 80 0D 02 02 05 CC 6E 8E BB 59 [13:30:40]Write to MH i2c: E2 0D 00 1F 08 80 0D 02 02 05 00 CC 6E 8E BB 59 00 00 87 [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:40]Read from MH i2c: E2 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 03 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 03 00 1F 08 00 90 00 9B [13:30:40]RAPDU: 90 00 [13:30:40]wFMCommunicate OK [13:30:40]wFMCommunicate request_size=4 [13:30:40]MH_SAM_APDU [13:30:40]CAPDU: 80 0D 03 02 [13:30:40]Write to MH i2c: E2 08 00 20 08 80 0D 03 02 00 00 00 00 A3 [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:40]Read from MH i2c: E2 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 0B 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 0B 00 20 08 00 7B 3B EE 40 06 C6 7C A3 90 00 73 [13:30:40]RAPDU: 7B 3B EE 40 06 C6 7C A3 90 00 [13:30:40]wFMCommunicate OK [13:30:40]SAM_PROTO_SignData done [13:30:40]FM_MakeSignedData done [13:30:40]CreateOFDProtocolMessage [13:30:40]wFMCommunicate request_size=4 [13:30:40]MH_SAM_APDU [13:30:40]CAPDU: 80 11 00 00 [13:30:40]Write to MH i2c: E2 08 00 21 08 80 11 00 00 00 00 00 00 A3 [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:40]Read from MH i2c: E2 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 17 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: E2 17 00 21 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [13:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:30:40]wFMCommunicate OK [13:30:40]CreateOFDProtocolMessage done [13:30:40]OFDSenderStorePacket 139334 [13:30:40]StoreOFDPacket docnum=139334 [13:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 38 07 01 72 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A9 00 00 00 F4 03 04 00 FF 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 20 02 00 35 04 06 00 35 CC 6E 8E BB 59 7B 3B EE 40 06 C6 7C A3 [13:30:40]CheckFolder [13:30:40]dirname=/storage/ofd_packets [13:30:40]CheckFolder done [13:30:40]ProducePacketName [13:30:40]name=ofd_packets/00139334 [13:30:40]NVStorageSaveData ofd_packets/00139334 [13:30:40]File name is /storage/ofd_packets/00139334 [13:30:40]Write 301 bytes [13:30:40]NVStorageSaveData done [13:30:40]OFDSenderStorePacket done [13:30:40]KKMCreateOFDPacket done [13:30:40]NVStorageSaveData kkm_last_timestamp [13:30:40]File name is /storage/kkm_last_timestamp [13:30:40]Write 4 bytes [13:30:40]NVStorageSaveData done [13:30:40]ExternCall_PrintAddStr [13:30:40]wPrintStart [13:30:40]Write to MH i2c: 01 00 00 22 08 2A [13:30:40]OFD Sender: Processing packet 139334 [packets to send 137, broken 136] [13:30:40]ProducePacketName [13:30:40]name=ofd_packets/00139334 [13:30:40]OFD Sender: To server: pG, [13:30:40]CommunicateWithHost lk.salyk.kg:30040 [13:30:40]ConnectInit lk.salyk.kg [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: 01 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: 01 07 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: 01 07 00 22 08 00 00 00 00 00 FF 0F 3F [13:30:40]RasterBufferAndPrint [13:30:40]line Счет N : (1)593176 [13:30:40]line ИНН: 02508201610067 [13:30:40]line Контрольно-Кассовый Чек [13:30:40]line ПРОДАЖА [13:30:40]line ТРК (МРК, ГНК) : 52 [13:30:40]line Товар: 2710124130 [13:30:40]line Аи-92-К-5 [13:30:40]line 5.900 * 67.80 [13:30:40]line = 400.02 [13:30:40]line НДС 12% НСП 1% [13:30:40]line > о реализуемом товаре [13:30:40]line ОКРУГЛЕНИЕ: -0.02 [13:30:40]line ИТОГО: 400.00 [13:30:40]line Внесено: 400.00 [13:30:40]line СДАЧА: 0.00 [13:30:40]line НСП 1% : 3.54 [13:30:40]line НДС 12% : 42.48 [13:30:40]line Наличными: 400.00 [13:30:40]line Безнал.: 0.00 [13:30:40]line Место: АЗС № 136 "Партнер Нефть" [13:30:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:30:40]line СНО: Общий режим [13:30:40]line Чек 169 19.08.2024 13:30 [13:30:40]line Смена: 452 ФФД: 1.0 [13:30:40]line ЗНМ: 0300000067 [13:30:40]line РНМ: 0000000000092569 [13:30:40]line Версия ККМ: 001 [13:30:40]line ФМ: 0000000000871776 [13:30:40]line ФД: 139334 [13:30:40]line ФПД: 59152144448345 [13:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133039&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139334&fm=59152144448345&tin=02508201610067®Number=0000000000092569&sum=40000 [13:30:40]written 0, free lines is 4095 [13:30:40]Connected sock=10 [13: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 37 36 0F 01 00 00 30 38 07 01 72 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A9 00 00 00 F4 03 04 00 FF 48 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 20 02 00 35 04 06 00 35 CC 6E 8E BB 59 7B 3B EE 40 06 C6 7C A3 [13: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 37 36 4F 00 00 00 25 C0 47 00 34 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 20 02 00 F4 03 04 00 94 EF C2 66 B6 04 01 00 00 A8 4E 27 AD A9 8F 11 71 [13:30:40]CommunicateWithHost err = 0 [13:30:40]CheckOFDResponse [13:30:40]1017 (14) - 77093643461234 [13:30:40]1041 (16) - 0000000000871776 [13:30:40]1040 (4) - 139334 [13:30:40]1012 (4) - 19.08.2024 07:09 [13:30:40]1206 (1) - 0 [13:30:40]OFD Sender: Remove packet 139334 [13:30:40]ProducePacketName [13:30:40]name=ofd_packets/00139334 [13:30:40]NVStorageDeleteData [13:30:40]Write to MH i2c: 01 00 00 4D 08 55 [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: 01 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: 01 07 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 ED 0C 55 [13:30:40]RasterBufferAndPrint [13:30:40]line [13:30:40]line [13:30:40]line [13:30:40]line [13:30:40]line [13:30:40]written 0, free lines is 3321 [13:30:40]MH_Cut [13:30:40]Write to MH i2c: D1 01 00 54 08 01 2E [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: D1 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: D1 01 00 [13:30:40]MH_I2C_Read... [13:30:40]Read from MH i2c: D1 01 00 54 08 00 2D [13:30:40]Write to MH i2c: 01 00 00 55 08 5D [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:41]OFD Sender: No OFD packet to send [13:30:41]*** Cut start [13:30:41]*** Partial cut [13:30:41]*** CUTSNS_PIN = 1 [13:30:41]*** CUTSNS_PIN = 0 [13:30:41]*** Brake cut motor [13:30:41]Read from MH i2c: 01 [13:30:41]MH_I2C_Read... [13:30:41]*** Stop cut motor [13:30:41]*** Cut end [13:30:41]Read from MH i2c: 01 07 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: 01 07 00 55 08 00 00 00 00 00 FF 0F 72 [13:30:41]process_action close_receipt done [13:30:41]requested_data is exist [13:30:41]produce_requested_data [13:30:41]requested_item fm.sn is exist - process it [13:30:41]wFMCommunicate request_size=4 [13:30:41]MH_SAM_APDU [13:30:41]CAPDU: 80 11 00 00 [13:30:41]Write to MH i2c: E2 08 00 56 08 80 11 00 00 00 00 00 00 D8 [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 17 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 17 00 56 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [13:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:30:42]wFMCommunicate OK [13:30:42]requested_item fd.num is exist - process it [13:30:42]SAM_PROTO_GetFieldsCounters [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 13 00 00 [13:30:42]Write to MH i2c: E2 08 00 57 08 80 13 00 00 00 00 00 00 DB [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 62 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 62 00 57 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 46 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [13:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 46 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:42]wFMCommunicate OK [13:30:42]SAM_PROTO_GetFieldsCounters done [13:30:42]requested_item shift.num is exist - process it [13:30:42]requested_item shift.opened is exist - process it [13:30:42]req_shift_opened [13:30:42]FM_GetShiftState [13:30:42]SAM_PROTO_GetShiftState [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 13 01 00 [13:30:42]Write to MH i2c: E2 08 00 58 08 80 13 01 00 00 00 00 00 DD [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 0E 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 0E 00 58 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 94 [13:30:42]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:30:42]wFMCommunicate OK [13:30:42]SAM_PROTO_GetShiftState done [13:30:42]FM_GetShiftState done [13:30:42]req_shift_opened done [13:30:42]requested_item shift.open_date is exist - process it [13:30:42]req_shift_open_date [13:30:42]req_shift_open_date done [13:30:42]produce_requested_data done [13:30:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139334,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:30:42]process_action_free close_receipt [13:30:42]json_value_free [13:30:42]json_value_free done [13:30:42]process_json_proto returns [13:30:42]Send response to host [13:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139334,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:30:42]free response buf [13:30:42]execute_script done [13:30:42]execute_script returns [13:30:42]free content buf [13:30:42]Sock 8.Close socket [13:30:42]Sock 8.Thread stoped [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:09]accept exits with 9 [13:34:09]New connection [13:34:09]New thread 3066817892 created [13:34:09]Thread 3066674532 joined [13:34:09]Waiting for new connection... [13:34:09] Sock 9.Parse request [13:34:09]Sock 9.Check first char [13:34:09]Sock 9.First char is OK [13:34:09]request: POST /json_proto HTTP/1.0 [13:34:09]Method: POST [13:34:09]URL: /json_proto [13:34:09]Method is POST - this is cgi request [13:34:09]url: /json_proto [13:34:09]query_string will be loaded in cgi processing [13:34:09]execute_cgi json_proto POST (null) [13:34:09]execute_cgi path=json_proto method=POST [13:34:09]POST find Content-Length [13:34:09]Host: 172.17.45.67:8080 [13:34:09]Content-Length: 677 [13:34:09]Content-Type: application/json [13:34:09] [13:34:09]POST finish read [13:34:09]Found Content-Length = 677 [13:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [13:34:09]execute_script... [13:34: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)593177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [13:34:09]POST & json_proto [13:34:09]process_json_proto [13:34:09]json parsed OK: [13:34:09]protocol is kg_v1.0 [13:34:09]action value=close_receipt [13:34:09]process_action close_receipt [13:34:09]cmd_close_receipt [13:34:09]MH_GetDate [13:34:09]Write to MH i2c: F0 00 00 59 08 50 [13:34:09]Write i2c OK [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: F0 [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: F0 09 00 [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: F0 09 00 59 08 00 D2 49 C3 66 5F 7F 2B 66 0C [13:34:09]GetLastDocTimeStamp 1724074239 [13:34:09]current date 1724074450 [13:34:09]FM_GetShiftState [13:34:09]SAM_PROTO_GetShiftState [13:34:09]wFMCommunicate request_size=4 [13:34:09]MH_SAM_APDU [13:34:09]CAPDU: 80 13 01 00 [13:34:09]Write to MH i2c: E2 08 00 5A 08 80 13 01 00 00 00 00 00 DF [13:34:09]Write i2c OK [13:34:09]MH_I2C_Read... [13:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:09]Read from MH i2c: E2 [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: E2 0E 00 [13:34:09]MH_I2C_Read... [13:34:09]Read from MH i2c: E2 0E 00 5A 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 96 [13:34:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:34:09]wFMCommunicate OK [13:34:09]SAM_PROTO_GetShiftState done [13:34:09]FM_GetShiftState done [13:34:09]opened in 1724027888 [13:34:09]opened+sec_in_day 1724114288 [13:34:09]quantity*price = 20001 [13:34:09]sum+1 = 20002 [13:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 170 19.08.2024 13:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139335 ФПД: 257770632589385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133410&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139335&fm=257770632589385&tin=02508201610067®Number=0000000000092569&sum=20000 [13:34:10]StoreToDocumentArchive [13:34:10]shift 452 fd 139335 [13:34:10]save to /storage/0452/doc_00139335 [13:34:10]save last doc name /storage/0452/doc_00139335 to /storage/kkm_last_doc_name [13:34:10]save OK [13:34:10]Clear old archive folders... [13:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:10]tlvbuf is 01207C40 [13:34:10]SAM_PROTO_ClearQueue [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 09 00 00 [13:34:10]Write to MH i2c: E2 08 00 67 08 80 09 00 00 00 00 00 00 E1 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [13:34:10]RAPDU: 90 00 [13:34:10]wFMCommunicate OK [13:34:10]SAM_PROTO_ClearQueue done [13:34:10]KKMCreateOFDPacket [13:34:10]OFDProtocolAddRootSTLVToBuf [13:34:10]FM_MakeSignedData [13:34:10]FM_MakeSignedData [13:34:10]SAM_PROTO_SignData [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 0D 01 02 [13:34:10]Write to MH i2c: E2 08 00 68 08 80 0D 01 02 00 00 00 00 E9 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 68 08 00 90 00 E4 [13:34:10]RAPDU: 90 00 [13:34:10]wFMCommunicate OK [13:34:10]wFMCommunicate request_size=255 [13:34:10]MH_SAM_APDU [13:34: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 AA 00 00 00 F4 03 04 00 D2 49 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 20 02 00 35 04 06 00 EA [13:34:10]Write to MH i2c: E2 02 01 69 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 AA 00 00 00 F4 03 04 00 D2 49 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 20 02 00 35 04 06 00 EA 00 00 7A [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 69 08 00 90 00 E5 [13:34:10]RAPDU: 90 00 [13:34:10]wFMCommunicate OK [13:34:10]wFMCommunicate request_size=10 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 0D 02 02 05 70 E6 FD 30 49 [13:34:10]Write to MH i2c: E2 0D 00 6A 08 80 0D 02 02 05 00 70 E6 FD 30 49 00 00 C2 [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 03 00 6A 08 00 90 00 E6 [13:34:10]RAPDU: 90 00 [13:34:10]wFMCommunicate OK [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 0D 03 02 [13:34:10]Write to MH i2c: E2 08 00 6B 08 80 0D 03 02 00 00 00 00 EE [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 0B 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 0B 00 6B 08 00 C2 94 04 71 99 BC 46 84 90 00 D9 [13:34:10]RAPDU: C2 94 04 71 99 BC 46 84 90 00 [13:34:10]wFMCommunicate OK [13:34:10]SAM_PROTO_SignData done [13:34:10]FM_MakeSignedData done [13:34:10]CreateOFDProtocolMessage [13:34:10]wFMCommunicate request_size=4 [13:34:10]MH_SAM_APDU [13:34:10]CAPDU: 80 11 00 00 [13:34:10]Write to MH i2c: E2 08 00 6C 08 80 11 00 00 00 00 00 00 EE [13:34:10]Write i2c OK [13:34:10]MH_I2C_Read... [13:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:10]Read from MH i2c: E2 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 17 00 [13:34:10]MH_I2C_Read... [13:34:10]Read from MH i2c: E2 17 00 6C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [13:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:34:11]wFMCommunicate OK [13:34:11]CreateOFDProtocolMessage done [13:34:11]OFDSenderStorePacket 139335 [13:34:11]StoreOFDPacket docnum=139335 [13:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 83 E4 07 01 FF C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 AA 00 00 00 F4 03 04 00 D2 49 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 20 02 00 35 04 06 00 EA 70 E6 FD 30 49 C2 94 04 71 99 BC 46 84 [13:34:11]CheckFolder [13:34:11]dirname=/storage/ofd_packets [13:34:11]CheckFolder done [13:34:11]ProducePacketName [13:34:11]name=ofd_packets/00139335 [13:34:11]NVStorageSaveData ofd_packets/00139335 [13:34:11]File name is /storage/ofd_packets/00139335 [13:34:11]Write 301 bytes [13:34:11]NVStorageSaveData done [13:34:11]OFDSenderStorePacket done [13:34:11]KKMCreateOFDPacket done [13:34:11]NVStorageSaveData kkm_last_timestamp [13:34:11]File name is /storage/kkm_last_timestamp [13:34:11]Write 4 bytes [13:34:11]NVStorageSaveData done [13:34:11]ExternCall_PrintAddStr [13:34:11]wPrintStart [13:34:11]Write to MH i2c: 01 00 00 6D 08 75 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 07 00 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 FF 0F 8A [13:34:11]RasterBufferAndPrint [13:34:11]line Счет N : (1)593177 [13:34:11]line ИНН: 02508201610067 [13:34:11]line Контрольно-Кассовый Чек [13:34:11]line ПРОДАЖА [13:34:11]line ТРК (МРК, ГНК) : 52 [13:34:11]line Товар: 2710124130 [13:34:11]line Аи-92-К-5 [13:34:11]line 2.950 * 67.80 [13:34:11]line = 200.01 [13:34:11]line НДС 12% НСП 1% [13:34:11]line > о реализуемом товаре [13:34:11]line ОКРУГЛЕНИЕ: -0.01 [13:34:11]line ИТОГО: 200.00 [13:34:11]line Внесено: 200.00 [13:34:11]line СДАЧА: 0.00 [13:34:11]line НСП 1% : 1.77 [13:34:11]line НДС 12% : 21.24 [13:34:11]line Наличными: 200.00 [13:34:11]line Безнал.: 0.00 [13:34:11]line Место: АЗС № 136 "Партнер Нефть" [13:34:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:34:11]line СНО: Общий режим [13:34:11]line Чек 170 19.08.2024 13:34 [13:34:11]line Смена: 452 ФФД: 1.0 [13:34:11]line ЗНМ: 0300000067 [13:34:11]line РНМ: 0000000000092569 [13:34:11]line Версия ККМ: 001 [13:34:11]line ФМ: 0000000000871776 [13:34:11]line ФД: 139335 [13:34:11]line ФПД: 257770632589385 [13:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133410&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139335&fm=257770632589385&tin=02508201610067®Number=0000000000092569&sum=20000 [13:34:11]written 0, free lines is 4095 [13:34:11]OFD Sender: Processing packet 139335 [packets to send 137, broken 136] [13:34:11]ProducePacketName [13:34:11]name=ofd_packets/00139335 [13:34:11]OFD Sender: To server: pG, [13:34:11]CommunicateWithHost lk.salyk.kg:30040 [13:34:11]ConnectInit lk.salyk.kg [13:34:11]Write to MH i2c: 01 00 00 98 08 A0 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 07 00 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: 01 07 00 98 08 00 00 00 00 00 C6 0C 79 [13:34:11]RasterBufferAndPrint [13:34:11]line [13:34:11]line [13:34:11]line [13:34:11]line [13:34:11]line [13:34:11]written 0, free lines is 3276 [13:34:11]MH_Cut [13:34:11]Write to MH i2c: D1 01 00 9F 08 01 79 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: D1 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: D1 01 00 [13:34:11]MH_I2C_Read... [13:34:11]Read from MH i2c: D1 01 00 9F 08 00 78 [13:34:11]Write to MH i2c: 01 00 00 A0 08 A8 [13:34:11]Write i2c OK [13:34:11]MH_I2C_Read... [13:34:11]Connected sock=10 [13:34: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 37 36 0F 01 00 00 83 E4 07 01 FF C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 AA 00 00 00 F4 03 04 00 D2 49 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 20 02 00 35 04 06 00 EA 70 E6 FD 30 49 C2 94 04 71 99 BC 46 84 [13:34: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 37 36 4F 00 00 00 77 A1 47 00 DD 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 37 36 10 04 04 00 47 20 02 00 F4 03 04 00 68 F0 C2 66 B6 04 01 00 00 E8 9D A2 B6 1D 0E 98 5B [13:34:11]CommunicateWithHost err = 0 [13:34:11]CheckOFDResponse [13:34:11]1017 (14) - 77093643461234 [13:34:11]1041 (16) - 0000000000871776 [13:34:11]1040 (4) - 139335 [13:34:11]1012 (4) - 19.08.2024 07:12 [13:34:11]1206 (1) - 0 [13:34:11]OFD Sender: Remove packet 139335 [13:34:11]ProducePacketName [13:34:11]name=ofd_packets/00139335 [13:34:11]NVStorageDeleteData [13:34:12]*** Cut start [13:34:12]*** Partial cut [13:34:12]*** CUTSNS_PIN = 1 [13:34:12]*** CUTSNS_PIN = 0 [13:34:12]OFD Sender: No OFD packet to send [13:34:12]*** Brake cut motor [13:34:12]Read from MH i2c: 01 [13:34:12]MH_I2C_Read... [13:34:12]*** Stop cut motor [13:34:12]*** Cut end [13:34:12]Read from MH i2c: 01 07 00 [13:34:12]MH_I2C_Read... [13:34:12]Read from MH i2c: 01 07 00 A0 08 00 00 00 00 00 FF 0F BD [13:34:12]process_action close_receipt done [13:34:12]requested_data is exist [13:34:12]produce_requested_data [13:34:12]requested_item fm.sn is exist - process it [13:34:12]wFMCommunicate request_size=4 [13:34:12]MH_SAM_APDU [13:34:12]CAPDU: 80 11 00 00 [13:34:12]Write to MH i2c: E2 08 00 A1 08 80 11 00 00 00 00 00 00 23 [13:34:12]Write i2c OK [13:34:12]MH_I2C_Read... [13:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:12]Read from MH i2c: E2 [13:34:12]MH_I2C_Read... [13:34:12]Read from MH i2c: E2 17 00 [13:34:12]MH_I2C_Read... [13:34:12]Read from MH i2c: E2 17 00 A1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [13:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:34:12]wFMCommunicate OK [13:34:12]requested_item fd.num is exist - process it [13:34:12]SAM_PROTO_GetFieldsCounters [13:34:12]wFMCommunicate request_size=4 [13:34:12]MH_SAM_APDU [13:34:12]CAPDU: 80 13 00 00 [13:34:12]Write to MH i2c: E2 08 00 A2 08 80 13 00 00 00 00 00 00 26 [13:34:12]Write i2c OK [13:34:12]MH_I2C_Read... [13:34:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:12]Read from MH i2c: E2 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 62 00 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 62 00 A2 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 47 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [13:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 47 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:13]wFMCommunicate OK [13:34:13]SAM_PROTO_GetFieldsCounters done [13:34:13]requested_item shift.num is exist - process it [13:34:13]requested_item shift.opened is exist - process it [13:34:13]req_shift_opened [13:34:13]FM_GetShiftState [13:34:13]SAM_PROTO_GetShiftState [13:34:13]wFMCommunicate request_size=4 [13:34:13]MH_SAM_APDU [13:34:13]CAPDU: 80 13 01 00 [13:34:13]Write to MH i2c: E2 08 00 A3 08 80 13 01 00 00 00 00 00 28 [13:34:13]Write i2c OK [13:34:13]MH_I2C_Read... [13:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:13]Read from MH i2c: E2 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 0E 00 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 0E 00 A3 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DF [13:34:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:34:13]wFMCommunicate OK [13:34:13]SAM_PROTO_GetShiftState done [13:34:13]FM_GetShiftState done [13:34:13]req_shift_opened done [13:34:13]requested_item shift.open_date is exist - process it [13:34:13]req_shift_open_date [13:34:13]req_shift_open_date done [13:34:13]produce_requested_data done [13:34:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139335,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:34:13]process_action_free close_receipt [13:34:13]json_value_free [13:34:13]json_value_free done [13:34:13]process_json_proto returns [13:34:13]Send response to host [13:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139335,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:34:13]free response buf [13:34:13]execute_script done [13:34:13]execute_script returns [13:34:13]free content buf [13:34:13]Sock 9.Close socket [13:34:13]Sock 9.Thread stoped [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:56]accept exits with 8 [13:37:56]New connection [13:37:56]New thread 3066674532 created [13:37:56]Thread 3066817892 joined [13:37:56]Waiting for new connection... [13:37:56] Sock 8.Parse request [13:37:56]Sock 8.Check first char [13:37:56]Sock 8.First char is OK [13:37:56]request: POST /json_proto HTTP/1.0 [13:37:56]Method: POST [13:37:56]URL: /json_proto [13:37:56]Method is POST - this is cgi request [13:37:56]url: /json_proto [13:37:56]query_string will be loaded in cgi processing [13:37:56]execute_cgi json_proto POST (null) [13:37:56]execute_cgi path=json_proto method=POST [13:37:56]POST find Content-Length [13:37:56]Host: 172.17.45.67:8080 [13:37:56]Content-Length: 677 [13:37:56]Content-Type: application/json [13:37:56] [13:37:56]POST finish read [13:37:56]Found Content-Length = 677 [13:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:37:56]execute_script... [13:37: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)593178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:37:56]POST & json_proto [13:37:56]process_json_proto [13:37:56]json parsed OK: [13:37:56]protocol is kg_v1.0 [13:37:56]action value=close_receipt [13:37:56]process_action close_receipt [13:37:56]cmd_close_receipt [13:37:56]MH_GetDate [13:37:56]Write to MH i2c: F0 00 00 A4 08 9B [13:37:56]Write i2c OK [13:37:56]MH_I2C_Read... [13:37:56]Read from MH i2c: F0 [13:37:56]MH_I2C_Read... [13:37:56]Read from MH i2c: F0 09 00 [13:37:56]MH_I2C_Read... [13:37:56]Read from MH i2c: F0 09 00 A4 08 00 B5 4A C3 66 5F 7F 2B 66 3B [13:37:56]GetLastDocTimeStamp 1724074450 [13:37:56]current date 1724074677 [13:37:56]FM_GetShiftState [13:37:56]SAM_PROTO_GetShiftState [13:37:56]wFMCommunicate request_size=4 [13:37:56]MH_SAM_APDU [13:37:56]CAPDU: 80 13 01 00 [13:37:56]Write to MH i2c: E2 08 00 A5 08 80 13 01 00 00 00 00 00 2A [13:37:56]Write i2c OK [13:37:56]MH_I2C_Read... [13:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:56]Read from MH i2c: E2 [13:37:56]MH_I2C_Read... [13:37:56]Read from MH i2c: E2 0E 00 [13:37:56]MH_I2C_Read... [13:37:56]Read from MH i2c: E2 0E 00 A5 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E1 [13:37:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:37:56]wFMCommunicate OK [13:37:56]SAM_PROTO_GetShiftState done [13:37:56]FM_GetShiftState done [13:37:56]opened in 1724027888 [13:37:56]opened+sec_in_day 1724114288 [13:37:56]quantity*price = 50036 [13:37:56]sum+1 = 50037 [13:37:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 171 19.08.2024 13:37 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139336 ФПД: 215644677194857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133757&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139336&fm=215644677194857&tin=02508201610067®Number=0000000000092569&sum=50000 [13:37:58]StoreToDocumentArchive [13:37:58]shift 452 fd 139336 [13:37:58]save to /storage/0452/doc_00139336 [13:37:58]save last doc name /storage/0452/doc_00139336 to /storage/kkm_last_doc_name [13:37:58]save OK [13:37:58]Clear old archive folders... [13:37:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:58]tlvbuf is 01200800 [13:37:58]SAM_PROTO_ClearQueue [13:37:58]wFMCommunicate request_size=4 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 09 00 00 [13:37:58]Write to MH i2c: E2 08 00 B2 08 80 09 00 00 00 00 00 00 2C [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:58]Read from MH i2c: E2 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 B2 08 00 90 00 2E [13:37:58]RAPDU: 90 00 [13:37:58]wFMCommunicate OK [13:37:58]SAM_PROTO_ClearQueue done [13:37:58]KKMCreateOFDPacket [13:37:58]OFDProtocolAddRootSTLVToBuf [13:37:58]FM_MakeSignedData [13:37:58]FM_MakeSignedData [13:37:58]SAM_PROTO_SignData [13:37:58]wFMCommunicate request_size=4 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 0D 01 02 [13:37:58]Write to MH i2c: E2 08 00 B3 08 80 0D 01 02 00 00 00 00 34 [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:58]Read from MH i2c: E2 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 B3 08 00 90 00 2F [13:37:58]RAPDU: 90 00 [13:37:58]wFMCommunicate OK [13:37:58]wFMCommunicate request_size=255 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AB 00 00 00 F4 03 04 00 B5 4A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 20 02 00 35 04 06 00 C4 [13:37:58]Write to MH i2c: E2 02 01 B4 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AB 00 00 00 F4 03 04 00 B5 4A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 20 02 00 35 04 06 00 C4 00 00 83 [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 [13:37:58]MH_I2C_Read... [13:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:58]Read from MH i2c: E2 03 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 B4 08 00 90 00 30 [13:37:58]RAPDU: 90 00 [13:37:58]wFMCommunicate OK [13:37:58]wFMCommunicate request_size=10 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 0D 02 02 05 20 B0 61 C4 69 [13:37:58]Write to MH i2c: E2 0D 00 B5 08 80 0D 02 02 05 00 20 B0 61 C4 69 00 00 9F [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:58]Read from MH i2c: E2 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 B5 08 00 90 00 31 [13:37:58]RAPDU: 90 00 [13:37:58]wFMCommunicate OK [13:37:58]wFMCommunicate request_size=4 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 0D 03 02 [13:37:58]Write to MH i2c: E2 08 00 B6 08 80 0D 03 02 00 00 00 00 39 [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:58]Read from MH i2c: E2 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 0B 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 0B 00 B6 08 00 8C D7 32 B7 C9 B1 4E D9 90 00 27 [13:37:58]RAPDU: 8C D7 32 B7 C9 B1 4E D9 90 00 [13:37:58]wFMCommunicate OK [13:37:58]SAM_PROTO_SignData done [13:37:58]FM_MakeSignedData done [13:37:58]CreateOFDProtocolMessage [13:37:58]wFMCommunicate request_size=4 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 11 00 00 [13:37:58]Write to MH i2c: E2 08 00 B7 08 80 11 00 00 00 00 00 00 39 [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:58]Read from MH i2c: E2 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 17 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 17 00 B7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [13:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:37:58]wFMCommunicate OK [13:37:58]CreateOFDProtocolMessage done [13:37:58]OFDSenderStorePacket 139336 [13:37:58]StoreOFDPacket docnum=139336 [13:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 ED 1A 07 01 63 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AB 00 00 00 F4 03 04 00 B5 4A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 20 02 00 35 04 06 00 C4 20 B0 61 C4 69 8C D7 32 B7 C9 B1 4E D9 [13:37:58]CheckFolder [13:37:58]dirname=/storage/ofd_packets [13:37:58]CheckFolder done [13:37:58]ProducePacketName [13:37:58]name=ofd_packets/00139336 [13:37:58]NVStorageSaveData ofd_packets/00139336 [13:37:58]File name is /storage/ofd_packets/00139336 [13:37:58]Write 301 bytes [13:37:58]NVStorageSaveData done [13:37:58]OFDSenderStorePacket done [13:37:58]KKMCreateOFDPacket done [13:37:58]NVStorageSaveData kkm_last_timestamp [13:37:58]File name is /storage/kkm_last_timestamp [13:37:58]Write 4 bytes [13:37:58]NVStorageSaveData done [13:37:58]ExternCall_PrintAddStr [13:37:58]wPrintStart [13:37:58]Write to MH i2c: 01 00 00 B8 08 C0 [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: 01 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: 01 07 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: 01 07 00 B8 08 00 00 00 00 00 FF 0F D5 [13:37:58]RasterBufferAndPrint [13:37:58]line Счет N : (1)593178 [13:37:58]line ИНН: 02508201610067 [13:37:58]line Контрольно-Кассовый Чек [13:37:58]line ПРОДАЖА [13:37:58]line ТРК (МРК, ГНК) : 42 [13:37:58]line Товар: 2710124130 [13:37:58]line Аи-92-К-5 [13:37:58]line 7.380 * 67.80 [13:37:58]line = 500.36 [13:37:58]line НДС 12% НСП 1% [13:37:58]line > о реализуемом товаре [13:37:58]line ОКРУГЛЕНИЕ: -0.36 [13:37:58]line ИТОГО: 500.00 [13:37:58]line Внесено: 500.00 [13:37:58]line СДАЧА: 0.00 [13:37:58]line НСП 1% : 4.43 [13:37:58]line НДС 12% : 53.14 [13:37:58]line Наличными: 500.00 [13:37:58]line Безнал.: 0.00 [13:37:58]line Место: АЗС № 136 "Партнер Нефть" [13:37:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:37:58]line СНО: Общий режим [13:37:58]line Чек 171 19.08.2024 13:37 [13:37:58]line Смена: 452 ФФД: 1.0 [13:37:58]line ЗНМ: 0300000067 [13:37:58]line РНМ: 0000000000092569 [13:37:58]line Версия ККМ: 001 [13:37:58]line ФМ: 0000000000871776 [13:37:58]line ФД: 139336 [13:37:58]line ФПД: 215644677194857 [13:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133757&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139336&fm=215644677194857&tin=02508201610067®Number=0000000000092569&sum=50000 [13:37:58]OFD Sender: Processing packet 139336 [packets to send 137, broken 136] [13:37:58]ProducePacketName [13:37:58]name=ofd_packets/00139336 [13:37:58]OFD Sender: To server: pG, [13:37:58]CommunicateWithHost lk.salyk.kg:30040 [13:37:58]ConnectInit lk.salyk.kg [13:37:58]written 0, free lines is 4095 [13:37:59]Connected sock=10 [13:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 ED 1A 07 01 63 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AB 00 00 00 F4 03 04 00 B5 4A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 20 02 00 35 04 06 00 C4 20 B0 61 C4 69 8C D7 32 B7 C9 B1 4E D9 [13:37: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 37 36 4F 00 00 00 9F C7 47 00 44 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 20 02 00 F4 03 04 00 4B F1 C2 66 B6 04 01 00 00 FB D7 0E EC 5E FF 8F 7D [13:37:59]CommunicateWithHost err = 0 [13:37:59]CheckOFDResponse [13:37:59]1017 (14) - 77093643461234 [13:37:59]1041 (16) - 0000000000871776 [13:37:59]1040 (4) - 139336 [13:37:59]1012 (4) - 19.08.2024 07:16 [13:37:59]1206 (1) - 0 [13:37:59]OFD Sender: Remove packet 139336 [13:37:59]ProducePacketName [13:37:59]name=ofd_packets/00139336 [13:37:59]NVStorageDeleteData [13:37:59]Write to MH i2c: 01 00 00 E3 08 EB [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: 01 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: 01 07 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: 01 07 00 E3 08 00 00 00 00 00 C3 0C C1 [13:37:59]RasterBufferAndPrint [13:37:59]line [13:37:59]line [13:37:59]line [13:37:59]line [13:37:59]line [13:37:59]written 0, free lines is 3273 [13:37:59]MH_Cut [13:37:59]Write to MH i2c: D1 01 00 EA 08 01 C4 [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: D1 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: D1 01 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: D1 01 00 EA 08 00 C3 [13:37:59]Write to MH i2c: 01 00 00 EB 08 F3 [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]OFD Sender: No OFD packet to send [13:38:00]*** Cut start [13:38:00]*** Partial cut [13:38:00]*** CUTSNS_PIN = 1 [13:38:00]*** CUTSNS_PIN = 0 [13:38:00]*** Brake cut motor [13:38:00]Read from MH i2c: 01 [13:38:00]MH_I2C_Read... [13:38:00]*** Stop cut motor [13:38:00]*** Cut end [13:38:00]Read from MH i2c: 01 07 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: 01 07 00 EB 08 00 00 00 00 00 FF 0F 08 [13:38:00]process_action close_receipt done [13:38:00]requested_data is exist [13:38:00]produce_requested_data [13:38:00]requested_item fm.sn is exist - process it [13:38:00]wFMCommunicate request_size=4 [13:38:00]MH_SAM_APDU [13:38:00]CAPDU: 80 11 00 00 [13:38:00]Write to MH i2c: E2 08 00 EC 08 80 11 00 00 00 00 00 00 6E [13:38:00]Write i2c OK [13:38:00]MH_I2C_Read... [13:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:00]Read from MH i2c: E2 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 17 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 17 00 EC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C5 [13:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:38:00]wFMCommunicate OK [13:38:00]requested_item fd.num is exist - process it [13:38:00]SAM_PROTO_GetFieldsCounters [13:38:00]wFMCommunicate request_size=4 [13:38:00]MH_SAM_APDU [13:38:00]CAPDU: 80 13 00 00 [13:38:00]Write to MH i2c: E2 08 00 ED 08 80 13 00 00 00 00 00 00 71 [13:38:00]Write i2c OK [13:38:00]MH_I2C_Read... [13:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:00]Read from MH i2c: E2 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 62 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 62 00 ED 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 48 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [13:38: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 48 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:00]wFMCommunicate OK [13:38:00]SAM_PROTO_GetFieldsCounters done [13:38:00]requested_item shift.num is exist - process it [13:38:00]requested_item shift.opened is exist - process it [13:38:00]req_shift_opened [13:38:00]FM_GetShiftState [13:38:00]SAM_PROTO_GetShiftState [13:38:00]wFMCommunicate request_size=4 [13:38:00]MH_SAM_APDU [13:38:00]CAPDU: 80 13 01 00 [13:38:00]Write to MH i2c: E2 08 00 EE 08 80 13 01 00 00 00 00 00 73 [13:38:00]Write i2c OK [13:38:00]MH_I2C_Read... [13:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:00]Read from MH i2c: E2 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 0E 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 0E 00 EE 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2A [13:38:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:38:00]wFMCommunicate OK [13:38:00]SAM_PROTO_GetShiftState done [13:38:00]FM_GetShiftState done [13:38:00]req_shift_opened done [13:38:00]requested_item shift.open_date is exist - process it [13:38:00]req_shift_open_date [13:38:00]req_shift_open_date done [13:38:00]produce_requested_data done [13:38:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139336,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:38:00]process_action_free close_receipt [13:38:00]json_value_free [13:38:00]json_value_free done [13:38:00]process_json_proto returns [13:38:00]Send response to host [13:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139336,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:38:00]free response buf [13:38:00]execute_script done [13:38:00]execute_script returns [13:38:00]free content buf [13:38:00]Sock 8.Close socket [13:38:00]Sock 8.Thread stoped [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]accept exits with 9 [13:40:09]New connection [13:40:09]New thread 3066817892 created [13:40:09]Thread 3066674532 joined [13:40:09]Waiting for new connection... [13:40:09] Sock 9.Parse request [13:40:09]Sock 9.Check first char [13:40:09]Sock 9.First char is OK [13:40:09]request: POST /json_proto HTTP/1.0 [13:40:09]Method: POST [13:40:09]URL: /json_proto [13:40:09]Method is POST - this is cgi request [13:40:09]url: /json_proto [13:40:09]query_string will be loaded in cgi processing [13:40:09]execute_cgi json_proto POST (null) [13:40:09]execute_cgi path=json_proto method=POST [13:40:09]POST find Content-Length [13:40:09]Host: 172.17.45.67:8080 [13:40:09]Content-Length: 677 [13:40:09]Content-Type: application/json [13:40:09] [13:40:09]POST finish read [13:40:09]Found Content-Length = 677 [13:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:40:09]execute_script... [13:40: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)593179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:40:09]POST & json_proto [13:40:09]process_json_proto [13:40:09]json parsed OK: [13:40:09]protocol is kg_v1.0 [13:40:09]action value=close_receipt [13:40:09]process_action close_receipt [13:40:09]cmd_close_receipt [13:40:09]MH_GetDate [13:40:09]Write to MH i2c: F0 00 00 EF 08 E6 [13:40:09]Write i2c OK [13:40:09]MH_I2C_Read... [13:40:09]Read from MH i2c: F0 [13:40:09]MH_I2C_Read... [13:40:09]Read from MH i2c: F0 09 00 [13:40:09]MH_I2C_Read... [13:40:09]Read from MH i2c: F0 09 00 EF 08 00 3A 4B C3 66 5F 7F 2B 66 0C [13:40:09]GetLastDocTimeStamp 1724074677 [13:40:09]current date 1724074810 [13:40:09]FM_GetShiftState [13:40:09]SAM_PROTO_GetShiftState [13:40:09]wFMCommunicate request_size=4 [13:40:09]MH_SAM_APDU [13:40:09]CAPDU: 80 13 01 00 [13:40:09]Write to MH i2c: E2 08 00 F0 08 80 13 01 00 00 00 00 00 75 [13:40:09]Write i2c OK [13:40:09]MH_I2C_Read... [13:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:09]Read from MH i2c: E2 [13:40:09]MH_I2C_Read... [13:40:09]Read from MH i2c: E2 0E 00 [13:40:09]MH_I2C_Read... [13:40:09]Read from MH i2c: E2 0E 00 F0 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2C [13:40:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:40:09]wFMCommunicate OK [13:40:09]SAM_PROTO_GetShiftState done [13:40:09]FM_GetShiftState done [13:40:09]opened in 1724027888 [13:40:09]opened+sec_in_day 1724114288 [13:40:09]quantity*price = 50036 [13:40:09]sum+1 = 50037 [13:40:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 172 19.08.2024 13:40 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139337 ФПД: 133877073742950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139337&fm=133877073742950&tin=02508201610067®Number=0000000000092569&sum=50000 [13:40:10]StoreToDocumentArchive [13:40:10]shift 452 fd 139337 [13:40:10]save to /storage/0452/doc_00139337 [13:40:10]save last doc name /storage/0452/doc_00139337 to /storage/kkm_last_doc_name [13:40:10]save OK [13:40:10]Clear old archive folders... [13:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:10]tlvbuf is 0122F820 [13:40:10]SAM_PROTO_ClearQueue [13:40:10]wFMCommunicate request_size=4 [13:40:10]MH_SAM_APDU [13:40:10]CAPDU: 80 09 00 00 [13:40:10]Write to MH i2c: E2 08 00 FD 08 80 09 00 00 00 00 00 00 77 [13:40:10]Write i2c OK [13:40:10]MH_I2C_Read... [13:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:11]Read from MH i2c: E2 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 03 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 03 00 FD 08 00 90 00 79 [13:40:11]RAPDU: 90 00 [13:40:11]wFMCommunicate OK [13:40:11]SAM_PROTO_ClearQueue done [13:40:11]KKMCreateOFDPacket [13:40:11]OFDProtocolAddRootSTLVToBuf [13:40:11]FM_MakeSignedData [13:40:11]FM_MakeSignedData [13:40:11]SAM_PROTO_SignData [13:40:11]wFMCommunicate request_size=4 [13:40:11]MH_SAM_APDU [13:40:11]CAPDU: 80 0D 01 02 [13:40:11]Write to MH i2c: E2 08 00 FE 08 80 0D 01 02 00 00 00 00 7F [13:40:11]Write i2c OK [13:40:11]MH_I2C_Read... [13:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:11]Read from MH i2c: E2 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 03 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 03 00 FE 08 00 90 00 7A [13:40:11]RAPDU: 90 00 [13:40:11]wFMCommunicate OK [13:40:11]wFMCommunicate request_size=255 [13:40:11]MH_SAM_APDU [13:40: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AC 00 00 00 F4 03 04 00 3A 4B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 20 02 00 35 04 06 00 79 [13:40:11]Write to MH i2c: E2 02 01 FF 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AC 00 00 00 F4 03 04 00 3A 4B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 20 02 00 35 04 06 00 79 00 00 0B [13:40:11]Write i2c OK [13:40:11]MH_I2C_Read... [13:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:11]Read from MH i2c: E2 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 03 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 03 00 FF 08 00 90 00 7B [13:40:11]RAPDU: 90 00 [13:40:11]wFMCommunicate OK [13:40:11]wFMCommunicate request_size=10 [13:40:11]MH_SAM_APDU [13:40:11]CAPDU: 80 0D 02 02 05 C2 AF 6C 8C 66 [13:40:11]Write to MH i2c: E2 0D 00 00 09 80 0D 02 02 05 00 C2 AF 6C 8C 66 00 00 5C [13:40:11]Write i2c OK [13:40:11]MH_I2C_Read... [13:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:11]Read from MH i2c: E2 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 03 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 03 00 00 09 00 90 00 7D [13:40:11]RAPDU: 90 00 [13:40:11]wFMCommunicate OK [13:40:11]wFMCommunicate request_size=4 [13:40:11]MH_SAM_APDU [13:40:11]CAPDU: 80 0D 03 02 [13:40:11]Write to MH i2c: E2 08 00 01 09 80 0D 03 02 00 00 00 00 85 [13:40:11]Write i2c OK [13:40:11]MH_I2C_Read... [13:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:11]Read from MH i2c: E2 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 0B 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 0B 00 01 09 00 AE 93 2E E2 49 BE DE 43 90 00 FF [13:40:11]RAPDU: AE 93 2E E2 49 BE DE 43 90 00 [13:40:11]wFMCommunicate OK [13:40:11]SAM_PROTO_SignData done [13:40:11]FM_MakeSignedData done [13:40:11]CreateOFDProtocolMessage [13:40:11]wFMCommunicate request_size=4 [13:40:11]MH_SAM_APDU [13:40:11]CAPDU: 80 11 00 00 [13:40:11]Write to MH i2c: E2 08 00 02 09 80 11 00 00 00 00 00 00 85 [13:40:11]Write i2c OK [13:40:11]MH_I2C_Read... [13:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:11]Read from MH i2c: E2 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 17 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: E2 17 00 02 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DC [13:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:40:11]wFMCommunicate OK [13:40:11]CreateOFDProtocolMessage done [13:40:11]OFDSenderStorePacket 139337 [13:40:11]StoreOFDPacket docnum=139337 [13:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CA 85 07 01 10 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AC 00 00 00 F4 03 04 00 3A 4B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 20 02 00 35 04 06 00 79 C2 AF 6C 8C 66 AE 93 2E E2 49 BE DE 43 [13:40:11]CheckFolder [13:40:11]dirname=/storage/ofd_packets [13:40:11]CheckFolder done [13:40:11]ProducePacketName [13:40:11]name=ofd_packets/00139337 [13:40:11]NVStorageSaveData ofd_packets/00139337 [13:40:11]File name is /storage/ofd_packets/00139337 [13:40:11]Write 301 bytes [13:40:11]NVStorageSaveData done [13:40:11]OFDSenderStorePacket done [13:40:11]KKMCreateOFDPacket done [13:40:11]NVStorageSaveData kkm_last_timestamp [13:40:11]File name is /storage/kkm_last_timestamp [13:40:11]Write 4 bytes [13:40:11]NVStorageSaveData done [13:40:11]ExternCall_PrintAddStr [13:40:11]wPrintStart [13:40:11]Write to MH i2c: 01 00 00 03 09 0C [13:40:11]Write i2c OK [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: 01 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: 01 07 00 [13:40:11]MH_I2C_Read... [13:40:11]Read from MH i2c: 01 07 00 03 09 00 00 00 00 00 FF 0F 21 [13:40:11]RasterBufferAndPrint [13:40:11]line Счет N : (1)593179 [13:40:11]line ИНН: 02508201610067 [13:40:11]line Контрольно-Кассовый Чек [13:40:11]line ПРОДАЖА [13:40:11]line ТРК (МРК, ГНК) : 42 [13:40:11]line Товар: 2710124130 [13:40:11]line Аи-92-К-5 [13:40:11]line 7.380 * 67.80 [13:40:11]line = 500.36 [13:40:11]line НДС 12% НСП 1% [13:40:11]line > о реализуемом товаре [13:40:11]line ОКРУГЛЕНИЕ: -0.36 [13:40:11]line ИТОГО: 500.00 [13:40:11]line Внесено: 500.00 [13:40:11]line СДАЧА: 0.00 [13:40:11]line НСП 1% : 4.43 [13:40:11]line НДС 12% : 53.14 [13:40:11]line Наличными: 500.00 [13:40:11]line Безнал.: 0.00 [13:40:11]line Место: АЗС № 136 "Партнер Нефть" [13:40:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:40:11]line СНО: Общий режим [13:40:11]line Чек 172 19.08.2024 13:40 [13:40:11]line Смена: 452 ФФД: 1.0 [13:40:11]line ЗНМ: 0300000067 [13:40:11]line РНМ: 0000000000092569 [13:40:11]line Версия ККМ: 001 [13:40:11]line ФМ: 0000000000871776 [13:40:11]line ФД: 139337 [13:40:11]line ФПД: 133877073742950 [13:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139337&fm=133877073742950&tin=02508201610067®Number=0000000000092569&sum=50000 [13:40:11]OFD Sender: Processing packet 139337 [packets to send 137, broken 136] [13:40:11]ProducePacketName [13:40:11]name=ofd_packets/00139337 [13:40:11]OFD Sender: To server: pG, [13:40:11]CommunicateWithHost lk.salyk.kg:30040 [13:40:11]ConnectInit lk.salyk.kg [13:40:11]written 0, free lines is 4095 [13:40:11]Connected sock=10 [13:40: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 37 36 0F 01 00 00 CA 85 07 01 10 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AC 00 00 00 F4 03 04 00 3A 4B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 20 02 00 35 04 06 00 79 C2 AF 6C 8C 66 AE 93 2E E2 49 BE DE 43 [13:40:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AA A7 47 00 2E 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 37 36 10 04 04 00 49 20 02 00 F4 03 04 00 D0 F1 C2 66 B6 04 01 00 00 83 FD 00 CB 0A F9 42 9D [13:40:12]CommunicateWithHost err = 0 [13:40:12]CheckOFDResponse [13:40:12]1017 (14) - 77093643461234 [13:40:12]1041 (16) - 0000000000871776 [13:40:12]1040 (4) - 139337 [13:40:12]1012 (4) - 19.08.2024 07:18 [13:40:12]1206 (1) - 0 [13:40:12]OFD Sender: Remove packet 139337 [13:40:12]ProducePacketName [13:40:12]name=ofd_packets/00139337 [13:40:12]NVStorageDeleteData [13:40:12]Write to MH i2c: 01 00 00 2E 09 37 [13:40:12]Write i2c OK [13:40:12]MH_I2C_Read... [13:40:12]Read from MH i2c: 01 [13:40:12]MH_I2C_Read... [13:40:12]Read from MH i2c: 01 07 00 [13:40:12]MH_I2C_Read... [13:40:12]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 C2 0C 0C [13:40:12]RasterBufferAndPrint [13:40:12]line [13:40:12]line [13:40:12]line [13:40:12]line [13:40:12]line [13:40:12]written 0, free lines is 3272 [13:40:12]MH_Cut [13:40:12]Write to MH i2c: D1 01 00 35 09 01 10 [13:40:12]Write i2c OK [13:40:12]MH_I2C_Read... [13:40:12]Read from MH i2c: D1 [13:40:12]MH_I2C_Read... [13:40:12]Read from MH i2c: D1 01 00 [13:40:12]MH_I2C_Read... [13:40:12]Read from MH i2c: D1 01 00 35 09 00 0F [13:40:12]Write to MH i2c: 01 00 00 36 09 3F [13:40:12]Write i2c OK [13:40:12]MH_I2C_Read... [13:40:12]OFD Sender: No OFD packet to send [13:40:13]*** Cut start [13:40:13]*** Partial cut [13:40:13]*** CUTSNS_PIN = 1 [13:40:13]*** CUTSNS_PIN = 0 [13:40:13]*** Brake cut motor [13:40:13]Read from MH i2c: 01 [13:40:13]MH_I2C_Read... [13:40:13]*** Stop cut motor [13:40:13]*** Cut end [13:40:13]Read from MH i2c: 01 07 00 [13:40:13]MH_I2C_Read... [13:40:13]Read from MH i2c: 01 07 00 36 09 00 00 00 00 00 FF 0F 54 [13:40:13]process_action close_receipt done [13:40:13]requested_data is exist [13:40:13]produce_requested_data [13:40:13]requested_item fm.sn is exist - process it [13:40:13]wFMCommunicate request_size=4 [13:40:13]MH_SAM_APDU [13:40:13]CAPDU: 80 11 00 00 [13:40:13]Write to MH i2c: E2 08 00 37 09 80 11 00 00 00 00 00 00 BA [13:40:13]Write i2c OK [13:40:13]MH_I2C_Read... [13:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:13]Read from MH i2c: E2 [13:40:13]MH_I2C_Read... [13:40:13]Read from MH i2c: E2 17 00 [13:40:13]MH_I2C_Read... [13:40:13]Read from MH i2c: E2 17 00 37 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 11 [13:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:40:13]wFMCommunicate OK [13:40:13]requested_item fd.num is exist - process it [13:40:13]SAM_PROTO_GetFieldsCounters [13:40:13]wFMCommunicate request_size=4 [13:40:13]MH_SAM_APDU [13:40:13]CAPDU: 80 13 00 00 [13:40:13]Write to MH i2c: E2 08 00 38 09 80 13 00 00 00 00 00 00 BD [13:40:13]Write i2c OK [13:40:13]MH_I2C_Read... [13:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:13]Read from MH i2c: E2 [13:40:13]MH_I2C_Read... [13:40:13]Read from MH i2c: E2 62 00 [13:40:13]MH_I2C_Read... [13:40:13]Read from MH i2c: E2 62 00 38 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 49 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [13:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 49 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:13]wFMCommunicate OK [13:40:13]SAM_PROTO_GetFieldsCounters done [13:40:13]requested_item shift.num is exist - process it [13:40:13]requested_item shift.opened is exist - process it [13:40:13]req_shift_opened [13:40:13]FM_GetShiftState [13:40:13]SAM_PROTO_GetShiftState [13:40:13]wFMCommunicate request_size=4 [13:40:13]MH_SAM_APDU [13:40:13]CAPDU: 80 13 01 00 [13:40:13]Write to MH i2c: E2 08 00 39 09 80 13 01 00 00 00 00 00 BF [13:40:13]Write i2c OK [13:40:13]MH_I2C_Read... [13:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:13]Read from MH i2c: E2 [13:40:13]MH_I2C_Read... [13:40:13]Read from MH i2c: E2 0E 00 [13:40:13]MH_I2C_Read... [13:40:13]Read from MH i2c: E2 0E 00 39 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 76 [13:40:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:40:13]wFMCommunicate OK [13:40:13]SAM_PROTO_GetShiftState done [13:40:13]FM_GetShiftState done [13:40:13]req_shift_opened done [13:40:13]requested_item shift.open_date is exist - process it [13:40:13]req_shift_open_date [13:40:13]req_shift_open_date done [13:40:13]produce_requested_data done [13:40:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139337,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:40:13]process_action_free close_receipt [13:40:13]json_value_free [13:40:13]json_value_free done [13:40:13]process_json_proto returns [13:40:13]Send response to host [13:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139337,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:40:13]free response buf [13:40:13]execute_script done [13:40:13]execute_script returns [13:40:13]free content buf [13:40:13]Sock 9.Close socket [13:40:13]Sock 9.Thread stoped [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]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:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:43]accept exits with 8 [13:46:43]New connection [13:46:43]New thread 3066674532 created [13:46:43]Thread 3066817892 joined [13:46:43]Waiting for new connection... [13:46:43] Sock 8.Parse request [13:46:43]Sock 8.Check first char [13:46:43]Sock 8.First char is OK [13:46:43]request: POST /json_proto HTTP/1.0 [13:46:43]Method: POST [13:46:43]URL: /json_proto [13:46:43]Method is POST - this is cgi request [13:46:43]url: /json_proto [13:46:43]query_string will be loaded in cgi processing [13:46:43]execute_cgi json_proto POST (null) [13:46:43]execute_cgi path=json_proto method=POST [13:46:43]POST find Content-Length [13:46:43]Host: 172.17.45.67:8080 [13:46:43]Content-Length: 677 [13:46:43]Content-Type: application/json [13:46:43] [13:46:43]POST finish read [13:46:43]Found Content-Length = 677 [13:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:46:43]execute_script... [13:46: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)593180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:46:43]POST & json_proto [13:46:43]process_json_proto [13:46:43]json parsed OK: [13:46:43]protocol is kg_v1.0 [13:46:43]action value=close_receipt [13:46:43]process_action close_receipt [13:46:43]cmd_close_receipt [13:46:43]MH_GetDate [13:46:43]Write to MH i2c: F0 00 00 3A 09 32 [13:46:43]Write i2c OK [13:46:43]MH_I2C_Read... [13:46:43]Read from MH i2c: F0 [13:46:43]MH_I2C_Read... [13:46:43]Read from MH i2c: F0 09 00 [13:46:43]MH_I2C_Read... [13:46:43]Read from MH i2c: F0 09 00 3A 09 00 C4 4C C3 66 5F 7F 2B 66 E3 [13:46:43]GetLastDocTimeStamp 1724074810 [13:46:43]current date 1724075204 [13:46:43]FM_GetShiftState [13:46:43]SAM_PROTO_GetShiftState [13:46:43]wFMCommunicate request_size=4 [13:46:43]MH_SAM_APDU [13:46:43]CAPDU: 80 13 01 00 [13:46:43]Write to MH i2c: E2 08 00 3B 09 80 13 01 00 00 00 00 00 C1 [13:46:43]Write i2c OK [13:46:43]MH_I2C_Read... [13:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:43]Read from MH i2c: E2 [13:46:43]MH_I2C_Read... [13:46:43]Read from MH i2c: E2 0E 00 [13:46:43]MH_I2C_Read... [13:46:43]Read from MH i2c: E2 0E 00 3B 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 78 [13:46:43]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:46:43]wFMCommunicate OK [13:46:43]SAM_PROTO_GetShiftState done [13:46:43]FM_GetShiftState done [13:46:43]opened in 1724027888 [13:46:43]opened+sec_in_day 1724114288 [13:46:43]quantity*price = 50036 [13:46:43]sum+1 = 50037 [13:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 173 19.08.2024 13:46 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139338 ФПД: 111296471397706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134644&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139338&fm=111296471397706&tin=02508201610067®Number=0000000000092569&sum=50000 [13:46:44]StoreToDocumentArchive [13:46:44]shift 452 fd 139338 [13:46:44]save to /storage/0452/doc_00139338 [13:46:44]save last doc name /storage/0452/doc_00139338 to /storage/kkm_last_doc_name [13:46:44]save OK [13:46:44]Clear old archive folders... [13:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:44]tlvbuf is 0122AD50 [13:46:44]SAM_PROTO_ClearQueue [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 09 00 00 [13:46:44]Write to MH i2c: E2 08 00 48 09 80 09 00 00 00 00 00 00 C3 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [13:46:44]RAPDU: 90 00 [13:46:44]wFMCommunicate OK [13:46:44]SAM_PROTO_ClearQueue done [13:46:44]KKMCreateOFDPacket [13:46:44]OFDProtocolAddRootSTLVToBuf [13:46:44]FM_MakeSignedData [13:46:44]FM_MakeSignedData [13:46:44]SAM_PROTO_SignData [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 0D 01 02 [13:46:44]Write to MH i2c: E2 08 00 49 09 80 0D 01 02 00 00 00 00 CB [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 03 00 49 09 00 90 00 C6 [13:46:44]RAPDU: 90 00 [13:46:44]wFMCommunicate OK [13:46:44]wFMCommunicate request_size=255 [13:46:44]MH_SAM_APDU [13:46: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AD 00 00 00 F4 03 04 00 C4 4C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 20 02 00 35 04 06 00 65 [13:46:44]Write to MH i2c: E2 02 01 4A 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AD 00 00 00 F4 03 04 00 C4 4C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 20 02 00 35 04 06 00 65 00 00 D0 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:45]Read from MH i2c: E2 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 03 00 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 03 00 4A 09 00 90 00 C7 [13:46:45]RAPDU: 90 00 [13:46:45]wFMCommunicate OK [13:46:45]wFMCommunicate request_size=10 [13:46:45]MH_SAM_APDU [13:46:45]CAPDU: 80 0D 02 02 05 39 3A A4 75 4A [13:46:45]Write to MH i2c: E2 0D 00 4B 09 80 0D 02 02 05 00 39 3A A4 75 4A 00 00 AE [13:46:45]Write i2c OK [13:46:45]MH_I2C_Read... [13:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:45]Read from MH i2c: E2 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 03 00 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 03 00 4B 09 00 90 00 C8 [13:46:45]RAPDU: 90 00 [13:46:45]wFMCommunicate OK [13:46:45]wFMCommunicate request_size=4 [13:46:45]MH_SAM_APDU [13:46:45]CAPDU: 80 0D 03 02 [13:46:45]Write to MH i2c: E2 08 00 4C 09 80 0D 03 02 00 00 00 00 D0 [13:46:45]Write i2c OK [13:46:45]MH_I2C_Read... [13:46:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:45]Read from MH i2c: E2 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 0B 00 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 0B 00 4C 09 00 67 03 F6 0E ED 90 5B 04 90 00 1B [13:46:45]RAPDU: 67 03 F6 0E ED 90 5B 04 90 00 [13:46:45]wFMCommunicate OK [13:46:45]SAM_PROTO_SignData done [13:46:45]FM_MakeSignedData done [13:46:45]CreateOFDProtocolMessage [13:46:45]wFMCommunicate request_size=4 [13:46:45]MH_SAM_APDU [13:46:45]CAPDU: 80 11 00 00 [13:46:45]Write to MH i2c: E2 08 00 4D 09 80 11 00 00 00 00 00 00 D0 [13:46:45]Write i2c OK [13:46:45]MH_I2C_Read... [13:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:45]Read from MH i2c: E2 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 17 00 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: E2 17 00 4D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [13:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:46:45]wFMCommunicate OK [13:46:45]CreateOFDProtocolMessage done [13:46:45]OFDSenderStorePacket 139338 [13:46:45]StoreOFDPacket docnum=139338 [13:46:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F 94 07 01 18 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AD 00 00 00 F4 03 04 00 C4 4C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 20 02 00 35 04 06 00 65 39 3A A4 75 4A 67 03 F6 0E ED 90 5B 04 [13:46:45]CheckFolder [13:46:45]dirname=/storage/ofd_packets [13:46:45]CheckFolder done [13:46:45]ProducePacketName [13:46:45]name=ofd_packets/00139338 [13:46:45]NVStorageSaveData ofd_packets/00139338 [13:46:45]File name is /storage/ofd_packets/00139338 [13:46:45]Write 301 bytes [13:46:45]NVStorageSaveData done [13:46:45]OFDSenderStorePacket done [13:46:45]KKMCreateOFDPacket done [13:46:45]NVStorageSaveData kkm_last_timestamp [13:46:45]File name is /storage/kkm_last_timestamp [13:46:45]Write 4 bytes [13:46:45]NVStorageSaveData done [13:46:45]ExternCall_PrintAddStr [13:46:45]wPrintStart [13:46:45]Write to MH i2c: 01 00 00 4E 09 57 [13:46:45]Write i2c OK [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: 01 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: 01 07 00 [13:46:45]MH_I2C_Read... [13:46:45]Read from MH i2c: 01 07 00 4E 09 00 00 00 00 00 FF 0F 6C [13:46:45]RasterBufferAndPrint [13:46:45]line Счет N : (1)593180 [13:46:45]line ИНН: 02508201610067 [13:46:45]line Контрольно-Кассовый Чек [13:46:45]line ПРОДАЖА [13:46:45]line ТРК (МРК, ГНК) : 62 [13:46:45]line Товар: 2710124130 [13:46:45]line Аи-92-К-5 [13:46:45]line 7.380 * 67.80 [13:46:45]line = 500.36 [13:46:45]line НДС 12% НСП 1% [13:46:45]line > о реализуемом товаре [13:46:45]line ОКРУГЛЕНИЕ: -0.36 [13:46:45]line ИТОГО: 500.00 [13:46:45]line Внесено: 500.00 [13:46:45]line СДАЧА: 0.00 [13:46:45]line НСП 1% : 4.43 [13:46:45]line НДС 12% : 53.14 [13:46:45]line Наличными: 500.00 [13:46:45]line Безнал.: 0.00 [13:46:45]line Место: АЗС № 136 "Партнер Нефть" [13:46:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:46:45]line СНО: Общий режим [13:46:45]line Чек 173 19.08.2024 13:46 [13:46:45]line Смена: 452 ФФД: 1.0 [13:46:45]line ЗНМ: 0300000067 [13:46:45]line РНМ: 0000000000092569 [13:46:45]line Версия ККМ: 001 [13:46:45]line ФМ: 0000000000871776 [13:46:45]line ФД: 139338 [13:46:45]line ФПД: 111296471397706 [13:46:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134644&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139338&fm=111296471397706&tin=02508201610067®Number=0000000000092569&sum=50000 [13:46:45]OFD Sender: Processing packet 139338 [packets to send 137, broken 136] [13:46:45]ProducePacketName [13:46:45]name=ofd_packets/00139338 [13:46:45]OFD Sender: To server: pG, [13:46:45]CommunicateWithHost lk.salyk.kg:30040 [13:46:45]ConnectInit lk.salyk.kg [13:46:45]written 0, free lines is 4095 [13:46:45]Connected sock=10 [13:46: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 37 36 0F 01 00 00 0F 94 07 01 18 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 AD 00 00 00 F4 03 04 00 C4 4C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 20 02 00 35 04 06 00 65 39 3A A4 75 4A 67 03 F6 0E ED 90 5B 04 [13:46: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 37 36 4F 00 00 00 AF 9D 47 00 38 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 37 36 10 04 04 00 4A 20 02 00 F4 03 04 00 5A F3 C2 66 B6 04 01 00 00 B0 34 46 0D 9A B4 21 6B [13:46:45]CommunicateWithHost err = 0 [13:46:45]CheckOFDResponse [13:46:45]1017 (14) - 77093643461234 [13:46:45]1041 (16) - 0000000000871776 [13:46:45]1040 (4) - 139338 [13:46:45]1012 (4) - 19.08.2024 07:25 [13:46:45]1206 (1) - 0 [13:46:45]OFD Sender: Remove packet 139338 [13:46:45]ProducePacketName [13:46:45]name=ofd_packets/00139338 [13:46:45]NVStorageDeleteData [13:46:46]Write to MH i2c: 01 00 00 79 09 82 [13:46:46]Write i2c OK [13:46:46]MH_I2C_Read... [13:46:46]Read from MH i2c: 01 [13:46:46]MH_I2C_Read... [13:46:46]Read from MH i2c: 01 07 00 [13:46:46]MH_I2C_Read... [13:46:46]Read from MH i2c: 01 07 00 79 09 00 00 00 00 00 C7 0C 5C [13:46:46]RasterBufferAndPrint [13:46:46]line [13:46:46]line [13:46:46]line [13:46:46]line [13:46:46]line [13:46:46]written 0, free lines is 3277 [13:46:46]MH_Cut [13:46:46]Write to MH i2c: D1 01 00 80 09 01 5B [13:46:46]Write i2c OK [13:46:46]MH_I2C_Read... [13:46:46]Read from MH i2c: D1 [13:46:46]MH_I2C_Read... [13:46:46]Read from MH i2c: D1 01 00 [13:46:46]MH_I2C_Read... [13:46:46]Read from MH i2c: D1 01 00 80 09 00 5A [13:46:46]Write to MH i2c: 01 00 00 81 09 8A [13:46:46]Write i2c OK [13:46:46]MH_I2C_Read... [13:46:46]OFD Sender: No OFD packet to send [13:46:46]*** Cut start [13:46:46]*** Partial cut [13:46:46]*** CUTSNS_PIN = 1 [13:46:46]*** CUTSNS_PIN = 0 [13:46:46]*** Brake cut motor [13:46:47]Read from MH i2c: 01 [13:46:47]MH_I2C_Read... [13:46:47]*** Stop cut motor [13:46:47]*** Cut end [13:46:47]Read from MH i2c: 01 07 00 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: 01 07 00 81 09 00 00 00 00 00 FF 0F 9F [13:46:47]process_action close_receipt done [13:46:47]requested_data is exist [13:46:47]produce_requested_data [13:46:47]requested_item fm.sn is exist - process it [13:46:47]wFMCommunicate request_size=4 [13:46:47]MH_SAM_APDU [13:46:47]CAPDU: 80 11 00 00 [13:46:47]Write to MH i2c: E2 08 00 82 09 80 11 00 00 00 00 00 00 05 [13:46:47]Write i2c OK [13:46:47]MH_I2C_Read... [13:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:47]Read from MH i2c: E2 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 17 00 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 17 00 82 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5C [13:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:46:47]wFMCommunicate OK [13:46:47]requested_item fd.num is exist - process it [13:46:47]SAM_PROTO_GetFieldsCounters [13:46:47]wFMCommunicate request_size=4 [13:46:47]MH_SAM_APDU [13:46:47]CAPDU: 80 13 00 00 [13:46:47]Write to MH i2c: E2 08 00 83 09 80 13 00 00 00 00 00 00 08 [13:46:47]Write i2c OK [13:46:47]MH_I2C_Read... [13:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:47]Read from MH i2c: E2 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 62 00 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 62 00 83 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [13:46: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:47]wFMCommunicate OK [13:46:47]SAM_PROTO_GetFieldsCounters done [13:46:47]requested_item shift.num is exist - process it [13:46:47]requested_item shift.opened is exist - process it [13:46:47]req_shift_opened [13:46:47]FM_GetShiftState [13:46:47]SAM_PROTO_GetShiftState [13:46:47]wFMCommunicate request_size=4 [13:46:47]MH_SAM_APDU [13:46:47]CAPDU: 80 13 01 00 [13:46:47]Write to MH i2c: E2 08 00 84 09 80 13 01 00 00 00 00 00 0A [13:46:47]Write i2c OK [13:46:47]MH_I2C_Read... [13:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:47]Read from MH i2c: E2 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 0E 00 [13:46:47]MH_I2C_Read... [13:46:47]Read from MH i2c: E2 0E 00 84 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C1 [13:46:47]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:46:47]wFMCommunicate OK [13:46:47]SAM_PROTO_GetShiftState done [13:46:47]FM_GetShiftState done [13:46:47]req_shift_opened done [13:46:47]requested_item shift.open_date is exist - process it [13:46:47]req_shift_open_date [13:46:47]req_shift_open_date done [13:46:47]produce_requested_data done [13:46:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139338,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:46:47]process_action_free close_receipt [13:46:47]json_value_free [13:46:47]json_value_free done [13:46:47]process_json_proto returns [13:46:47]Send response to host [13:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139338,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:46:47]free response buf [13:46:47]execute_script done [13:46:47]execute_script returns [13:46:47]free content buf [13:46:47]Sock 8.Close socket [13:46:47]Sock 8.Thread stoped [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:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:13]accept exits with 9 [13:49:13]New connection [13:49:13]New thread 3066817892 created [13:49:13]Thread 3066674532 joined [13:49:13]Waiting for new connection... [13:49:13] Sock 9.Parse request [13:49:13]Sock 9.Check first char [13:49:13]Sock 9.First char is OK [13:49:13]request: POST /json_proto HTTP/1.0 [13:49:13]Method: POST [13:49:13]URL: /json_proto [13:49:13]Method is POST - this is cgi request [13:49:13]url: /json_proto [13:49:13]query_string will be loaded in cgi processing [13:49:13]execute_cgi json_proto POST (null) [13:49:13]execute_cgi path=json_proto method=POST [13:49:13]POST find Content-Length [13:49:13]Host: 172.17.45.67:8080 [13:49:13]Content-Length: 682 [13:49:13]Content-Type: application/json [13:49:13] [13:49:13]POST finish read [13:49:13]Found Content-Length = 682 [13:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:49:13]execute_script... [13:49:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:49:13]POST & json_proto [13:49:13]process_json_proto [13:49:13]json parsed OK: [13:49:13]protocol is kg_v1.0 [13:49:13]action value=close_receipt [13:49:13]process_action close_receipt [13:49:13]cmd_close_receipt [13:49:13]MH_GetDate [13:49:13]Write to MH i2c: F0 00 00 85 09 7D [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: F0 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: F0 09 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: F0 09 00 85 09 00 5A 4D C3 66 5F 7F 2B 66 C5 [13:49:13]GetLastDocTimeStamp 1724075204 [13:49:13]current date 1724075354 [13:49:13]FM_GetShiftState [13:49:13]SAM_PROTO_GetShiftState [13:49:13]wFMCommunicate request_size=4 [13:49:13]MH_SAM_APDU [13:49:13]CAPDU: 80 13 01 00 [13:49:13]Write to MH i2c: E2 08 00 86 09 80 13 01 00 00 00 00 00 0C [13:49:13]Write i2c OK [13:49:13]MH_I2C_Read... [13:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:13]Read from MH i2c: E2 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 0E 00 [13:49:13]MH_I2C_Read... [13:49:13]Read from MH i2c: E2 0E 00 86 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C3 [13:49:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:49:13]wFMCommunicate OK [13:49:13]SAM_PROTO_GetShiftState done [13:49:13]FM_GetShiftState done [13:49:13]opened in 1724027888 [13:49:13]opened+sec_in_day 1724114288 [13:49:13]quantity*price = 100005 [13:49:13]sum+1 = 100006 [13:49:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 174 19.08.2024 13:49 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139339 ФПД: 125270630607147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134914&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139339&fm=125270630607147&tin=02508201610067®Number=0000000000092569&sum=100000 [13:49:14]StoreToDocumentArchive [13:49:14]shift 452 fd 139339 [13:49:14]save to /storage/0452/doc_00139339 [13:49:14]save last doc name /storage/0452/doc_00139339 to /storage/kkm_last_doc_name [13:49:14]save OK [13:49:14]Clear old archive folders... [13:49:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:14]tlvbuf is B6D875F0 [13:49:14]SAM_PROTO_ClearQueue [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 09 00 00 [13:49:14]Write to MH i2c: E2 08 00 93 09 80 09 00 00 00 00 00 00 0E [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 93 09 00 90 00 10 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]SAM_PROTO_ClearQueue done [13:49:14]KKMCreateOFDPacket [13:49:14]OFDProtocolAddRootSTLVToBuf [13:49:14]FM_MakeSignedData [13:49:14]FM_MakeSignedData [13:49:14]SAM_PROTO_SignData [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 01 02 [13:49:14]Write to MH i2c: E2 08 00 94 09 80 0D 01 02 00 00 00 00 16 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 94 09 00 90 00 11 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]wFMCommunicate request_size=255 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 5A 4D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 20 02 00 35 04 06 00 71 [13:49:14]Write to MH i2c: E2 02 01 95 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 5A 4D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 20 02 00 35 04 06 00 71 00 00 4F [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 95 09 00 90 00 12 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]wFMCommunicate request_size=10 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 02 02 05 EE D7 70 29 2B [13:49:14]Write to MH i2c: E2 0D 00 96 09 80 0D 02 02 05 00 EE D7 70 29 2B 00 00 AC [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 03 00 96 09 00 90 00 13 [13:49:14]RAPDU: 90 00 [13:49:14]wFMCommunicate OK [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 0D 03 02 [13:49:14]Write to MH i2c: E2 08 00 97 09 80 0D 03 02 00 00 00 00 1B [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 0B 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 0B 00 97 09 00 1F C8 48 D9 4A 14 E8 CF 90 00 39 [13:49:14]RAPDU: 1F C8 48 D9 4A 14 E8 CF 90 00 [13:49:14]wFMCommunicate OK [13:49:14]SAM_PROTO_SignData done [13:49:14]FM_MakeSignedData done [13:49:14]CreateOFDProtocolMessage [13:49:14]wFMCommunicate request_size=4 [13:49:14]MH_SAM_APDU [13:49:14]CAPDU: 80 11 00 00 [13:49:14]Write to MH i2c: E2 08 00 98 09 80 11 00 00 00 00 00 00 1B [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:14]Read from MH i2c: E2 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 17 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: E2 17 00 98 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [13:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:49:14]wFMCommunicate OK [13:49:14]CreateOFDProtocolMessage done [13:49:14]OFDSenderStorePacket 139339 [13:49:14]StoreOFDPacket docnum=139339 [13:49:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E3 AC 07 01 43 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 5A 4D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 20 02 00 35 04 06 00 71 EE D7 70 29 2B 1F C8 48 D9 4A 14 E8 CF [13:49:14]CheckFolder [13:49:14]dirname=/storage/ofd_packets [13:49:14]CheckFolder done [13:49:14]ProducePacketName [13:49:14]name=ofd_packets/00139339 [13:49:14]NVStorageSaveData ofd_packets/00139339 [13:49:14]File name is /storage/ofd_packets/00139339 [13:49:14]Write 301 bytes [13:49:14]NVStorageSaveData done [13:49:14]OFDSenderStorePacket done [13:49:14]KKMCreateOFDPacket done [13:49:14]NVStorageSaveData kkm_last_timestamp [13:49:14]File name is /storage/kkm_last_timestamp [13:49:14]Write 4 bytes [13:49:14]NVStorageSaveData done [13:49:14]ExternCall_PrintAddStr [13:49:14]wPrintStart [13:49:14]Write to MH i2c: 01 00 00 99 09 A2 [13:49:14]Write i2c OK [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: 01 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: 01 07 00 [13:49:14]MH_I2C_Read... [13:49:14]Read from MH i2c: 01 07 00 99 09 00 00 00 00 00 FF 0F B7 [13:49:14]RasterBufferAndPrint [13:49:14]line Счет N : (1)593181 [13:49:14]line ИНН: 02508201610067 [13:49:14]line Контрольно-Кассовый Чек [13:49:14]line ПРОДАЖА [13:49:14]line ТРК (МРК, ГНК) : 42 [13:49:14]line Товар: 2710124130 [13:49:14]line Аи-92-К-5 [13:49:14]line 14.750 * 67.80 [13:49:14]line = 1000.05 [13:49:14]line НДС 12% НСП 1% [13:49:14]line > о реализуемом товаре [13:49:14]line ОКРУГЛЕНИЕ: -0.05 [13:49:14]line ИТОГО: 1000.00 [13:49:14]line Внесено: 1000.00 [13:49:14]line СДАЧА: 0.00 [13:49:14]line НСП 1% : 8.85 [13:49:14]line НДС 12% : 106.20 [13:49:14]line Наличными: 1000.00 [13:49:14]line Безнал.: 0.00 [13:49:14]line Место: АЗС № 136 "Партнер Нефть" [13:49:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:49:14]line СНО: Общий режим [13:49:14]line Чек 174 19.08.2024 13:49 [13:49:14]line Смена: 452 ФФД: 1.0 [13:49:14]line ЗНМ: 0300000067 [13:49:14]line РНМ: 0000000000092569 [13:49:14]line Версия ККМ: 001 [13:49:14]line ФМ: 0000000000871776 [13:49:14]line ФД: 139339 [13:49:14]line ФПД: 125270630607147 [13:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134914&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139339&fm=125270630607147&tin=02508201610067®Number=0000000000092569&sum=100000 [13:49:15]OFD Sender: Processing packet 139339 [packets to send 137, broken 136] [13:49:15]ProducePacketName [13:49:15]name=ofd_packets/00139339 [13:49:15]OFD Sender: To server: pG, [13:49:15]CommunicateWithHost lk.salyk.kg:30040 [13:49:15]ConnectInit lk.salyk.kg [13:49:15]written 0, free lines is 4095 [13:49:15]Connected sock=10 [13:49:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E3 AC 07 01 43 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 5A 4D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 20 02 00 35 04 06 00 71 EE D7 70 29 2B 1F C8 48 D9 4A 14 E8 CF [13:49:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2C EB 47 00 C4 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 37 36 10 04 04 00 4B 20 02 00 F4 03 04 00 EF F3 C2 66 B6 04 01 00 00 BD C8 A3 DE C3 DE 1E DA [13:49:15]CommunicateWithHost err = 0 [13:49:15]CheckOFDResponse [13:49:15]1017 (14) - 77093643461234 [13:49:15]1041 (16) - 0000000000871776 [13:49:15]1040 (4) - 139339 [13:49:15]1012 (4) - 19.08.2024 07:27 [13:49:15]1206 (1) - 0 [13:49:15]OFD Sender: Remove packet 139339 [13:49:15]ProducePacketName [13:49:15]name=ofd_packets/00139339 [13:49:15]NVStorageDeleteData [13:49:15]Write to MH i2c: 01 00 00 C4 09 CD [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 07 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: 01 07 00 C4 09 00 00 00 00 00 C4 0C A4 [13:49:15]RasterBufferAndPrint [13:49:15]line [13:49:15]line [13:49:15]line [13:49:15]line [13:49:15]line [13:49:15]written 0, free lines is 3274 [13:49:15]MH_Cut [13:49:15]Write to MH i2c: D1 01 00 CB 09 01 A6 [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: D1 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: D1 01 00 [13:49:15]MH_I2C_Read... [13:49:15]Read from MH i2c: D1 01 00 CB 09 00 A5 [13:49:15]Write to MH i2c: 01 00 00 CC 09 D5 [13:49:15]Write i2c OK [13:49:15]MH_I2C_Read... [13:49:15]OFD Sender: No OFD packet to send [13:49:16]*** Cut start [13:49:16]*** Partial cut [13:49:16]*** CUTSNS_PIN = 1 [13:49:16]*** CUTSNS_PIN = 0 [13:49:16]*** Brake cut motor [13:49:16]Read from MH i2c: 01 [13:49:16]MH_I2C_Read... [13:49:16]*** Stop cut motor [13:49:16]*** Cut end [13:49:16]Read from MH i2c: 01 07 00 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: 01 07 00 CC 09 00 00 00 00 00 FF 0F EA [13:49:16]process_action close_receipt done [13:49:16]requested_data is exist [13:49:16]produce_requested_data [13:49:16]requested_item fm.sn is exist - process it [13:49:16]wFMCommunicate request_size=4 [13:49:16]MH_SAM_APDU [13:49:16]CAPDU: 80 11 00 00 [13:49:16]Write to MH i2c: E2 08 00 CD 09 80 11 00 00 00 00 00 00 50 [13:49:16]Write i2c OK [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 [13:49:16]MH_I2C_Read... [13:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:16]Read from MH i2c: E2 17 00 [13:49:16]MH_I2C_Read... [13:49:16]Read from MH i2c: E2 17 00 CD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A7 [13:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:49:16]wFMCommunicate OK [13:49:16]requested_item fd.num is exist - process it [13:49:16]SAM_PROTO_GetFieldsCounters [13:49:16]wFMCommunicate request_size=4 [13:49:16]MH_SAM_APDU [13:49:16]CAPDU: 80 13 00 00 [13:49:16]Write to MH i2c: E2 08 00 CE 09 80 13 00 00 00 00 00 00 53 [13:49:16]Write i2c OK [13:49:16]MH_I2C_Read... [13:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:17]Read from MH i2c: E2 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 62 00 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 62 00 CE 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [13:49:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:17]wFMCommunicate OK [13:49:17]SAM_PROTO_GetFieldsCounters done [13:49:17]requested_item shift.num is exist - process it [13:49:17]requested_item shift.opened is exist - process it [13:49:17]req_shift_opened [13:49:17]FM_GetShiftState [13:49:17]SAM_PROTO_GetShiftState [13:49:17]wFMCommunicate request_size=4 [13:49:17]MH_SAM_APDU [13:49:17]CAPDU: 80 13 01 00 [13:49:17]Write to MH i2c: E2 08 00 CF 09 80 13 01 00 00 00 00 00 55 [13:49:17]Write i2c OK [13:49:17]MH_I2C_Read... [13:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:17]Read from MH i2c: E2 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 0E 00 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 0E 00 CF 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0C [13:49:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:49:17]wFMCommunicate OK [13:49:17]SAM_PROTO_GetShiftState done [13:49:17]FM_GetShiftState done [13:49:17]req_shift_opened done [13:49:17]requested_item shift.open_date is exist - process it [13:49:17]req_shift_open_date [13:49:17]req_shift_open_date done [13:49:17]produce_requested_data done [13:49:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139339,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:49:17]process_action_free close_receipt [13:49:17]json_value_free [13:49:17]json_value_free done [13:49:17]process_json_proto returns [13:49:17]Send response to host [13:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139339,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:49:17]free response buf [13:49:17]execute_script done [13:49:17]execute_script returns [13:49:17]free content buf [13:49:17]Sock 9.Close socket [13:49:17]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:54:58]accept exits with 8 [13:54:58]New connection [13:54:58]New thread 3066674532 created [13:54:58]Thread 3066817892 joined [13:54:58]Waiting for new connection... [13:54:58] Sock 8.Parse request [13:54:58]Sock 8.Check first char [13:54:58]Sock 8.First char is OK [13:54:58]request: POST /json_proto HTTP/1.0 [13:54:58]Method: POST [13:54:58]URL: /json_proto [13:54:58]Method is POST - this is cgi request [13:54:58]url: /json_proto [13:54:58]query_string will be loaded in cgi processing [13:54:58]execute_cgi json_proto POST (null) [13:54:58]execute_cgi path=json_proto method=POST [13:54:58]POST find Content-Length [13:54:58]Host: 172.17.45.67:8080 [13:54:58]Content-Length: 682 [13:54:58]Content-Type: application/json [13:54:58] [13:54:58]POST finish read [13:54:58]Found Content-Length = 682 [13:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:54:58]execute_script... [13:54:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:54:58]POST & json_proto [13:54:58]process_json_proto [13:54:58]json parsed OK: [13:54:58]protocol is kg_v1.0 [13:54:58]action value=close_receipt [13:54:58]process_action close_receipt [13:54:58]cmd_close_receipt [13:54:58]MH_GetDate [13:54:58]Write to MH i2c: F0 00 00 D0 09 C8 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: F0 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: F0 09 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: F0 09 00 D0 09 00 B3 4E C3 66 5F 7F 2B 66 6A [13:54:58]GetLastDocTimeStamp 1724075354 [13:54:58]current date 1724075699 [13:54:58]FM_GetShiftState [13:54:58]SAM_PROTO_GetShiftState [13:54:58]wFMCommunicate request_size=4 [13:54:58]MH_SAM_APDU [13:54:58]CAPDU: 80 13 01 00 [13:54:58]Write to MH i2c: E2 08 00 D1 09 80 13 01 00 00 00 00 00 57 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:58]Read from MH i2c: E2 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 0E 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 0E 00 D1 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0E [13:54:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:54:58]wFMCommunicate OK [13:54:58]SAM_PROTO_GetShiftState done [13:54:58]FM_GetShiftState done [13:54:58]opened in 1724027888 [13:54:58]opened+sec_in_day 1724114288 [13:54:58]quantity*price = 100005 [13:54:58]sum+1 = 100006 [13:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 175 19.08.2024 13:54 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139340 ФПД: 44694418760002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T135459&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139340&fm=44694418760002&tin=02508201610067®Number=0000000000092569&sum=100000 [13:54:59]StoreToDocumentArchive [13:54:59]shift 452 fd 139340 [13:54:59]save to /storage/0452/doc_00139340 [13:54:59]save last doc name /storage/0452/doc_00139340 to /storage/kkm_last_doc_name [13:54:59]save OK [13:54:59]Clear old archive folders... [13:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:59]tlvbuf is 01237710 [13:54:59]SAM_PROTO_ClearQueue [13:54:59]wFMCommunicate request_size=4 [13:54:59]MH_SAM_APDU [13:54:59]CAPDU: 80 09 00 00 [13:54:59]Write to MH i2c: E2 08 00 DE 09 80 09 00 00 00 00 00 00 59 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:59]Read from MH i2c: E2 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 DE 09 00 90 00 5B [13:54:59]RAPDU: 90 00 [13:54:59]wFMCommunicate OK [13:54:59]SAM_PROTO_ClearQueue done [13:54:59]KKMCreateOFDPacket [13:54:59]OFDProtocolAddRootSTLVToBuf [13:54:59]FM_MakeSignedData [13:54:59]FM_MakeSignedData [13:54:59]SAM_PROTO_SignData [13:54:59]wFMCommunicate request_size=4 [13:54:59]MH_SAM_APDU [13:54:59]CAPDU: 80 0D 01 02 [13:54:59]Write to MH i2c: E2 08 00 DF 09 80 0D 01 02 00 00 00 00 61 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:59]Read from MH i2c: E2 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 DF 09 00 90 00 5C [13:54:59]RAPDU: 90 00 [13:54:59]wFMCommunicate OK [13:54:59]wFMCommunicate request_size=255 [13:54:59]MH_SAM_APDU [13:54:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B3 4E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 20 02 00 35 04 06 00 28 [13:54:59]Write to MH i2c: E2 02 01 E0 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B3 4E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 20 02 00 35 04 06 00 28 00 00 AD [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 03 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 03 00 E0 09 00 90 00 5D [13:55:00]RAPDU: 90 00 [13:55:00]wFMCommunicate OK [13:55:00]wFMCommunicate request_size=10 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 0D 02 02 05 A6 3A F4 21 42 [13:55:00]Write to MH i2c: E2 0D 00 E1 09 80 0D 02 02 05 00 A6 3A F4 21 42 00 00 A5 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 03 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 03 00 E1 09 00 90 00 5E [13:55:00]RAPDU: 90 00 [13:55:00]wFMCommunicate OK [13:55:00]wFMCommunicate request_size=4 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 0D 03 02 [13:55:00]Write to MH i2c: E2 08 00 E2 09 80 0D 03 02 00 00 00 00 66 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 0B 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 0B 00 E2 09 00 84 28 B7 75 8F 32 3B 6F 90 00 AA [13:55:00]RAPDU: 84 28 B7 75 8F 32 3B 6F 90 00 [13:55:00]wFMCommunicate OK [13:55:00]SAM_PROTO_SignData done [13:55:00]FM_MakeSignedData done [13:55:00]CreateOFDProtocolMessage [13:55:00]wFMCommunicate request_size=4 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 11 00 00 [13:55:00]Write to MH i2c: E2 08 00 E3 09 80 11 00 00 00 00 00 00 66 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 17 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 17 00 E3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [13:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:55:00]wFMCommunicate OK [13:55:00]CreateOFDProtocolMessage done [13:55:00]OFDSenderStorePacket 139340 [13:55:00]StoreOFDPacket docnum=139340 [13:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AC 97 07 01 86 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B3 4E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 20 02 00 35 04 06 00 28 A6 3A F4 21 42 84 28 B7 75 8F 32 3B 6F [13:55:00]CheckFolder [13:55:00]dirname=/storage/ofd_packets [13:55:00]CheckFolder done [13:55:00]ProducePacketName [13:55:00]name=ofd_packets/00139340 [13:55:00]NVStorageSaveData ofd_packets/00139340 [13:55:00]File name is /storage/ofd_packets/00139340 [13:55:00]Write 301 bytes [13:55:00]NVStorageSaveData done [13:55:00]OFDSenderStorePacket done [13:55:00]KKMCreateOFDPacket done [13:55:00]NVStorageSaveData kkm_last_timestamp [13:55:00]File name is /storage/kkm_last_timestamp [13:55:00]Write 4 bytes [13:55:00]NVStorageSaveData done [13:55:00]ExternCall_PrintAddStr [13:55:00]wPrintStart [13:55:00]Write to MH i2c: 01 00 00 E4 09 ED [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 07 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 07 00 E4 09 00 00 00 00 00 FF 0F 02 [13:55:00]RasterBufferAndPrint [13:55:00]line Счет N : (1)593182 [13:55:00]line ИНН: 02508201610067 [13:55:00]line Контрольно-Кассовый Чек [13:55:00]line ПРОДАЖА [13:55:00]line ТРК (МРК, ГНК) : 42 [13:55:00]line Товар: 2710124130 [13:55:00]line Аи-92-К-5 [13:55:00]line 14.750 * 67.80 [13:55:00]line = 1000.05 [13:55:00]line НДС 12% НСП 1% [13:55:00]line > о реализуемом товаре [13:55:00]line ОКРУГЛЕНИЕ: -0.05 [13:55:00]line ИТОГО: 1000.00 [13:55:00]line Внесено: 1000.00 [13:55:00]line СДАЧА: 0.00 [13:55:00]line НСП 1% : 8.85 [13:55:00]line НДС 12% : 106.20 [13:55:00]line Наличными: 1000.00 [13:55:00]line Безнал.: 0.00 [13:55:00]line Место: АЗС № 136 "Партнер Нефть" [13:55:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:55:00]line СНО: Общий режим [13:55:00]line Чек 175 19.08.2024 13:54 [13:55:00]line Смена: 452 ФФД: 1.0 [13:55:00]line ЗНМ: 0300000067 [13:55:00]line РНМ: 0000000000092569 [13:55:00]line Версия ККМ: 001 [13:55:00]line ФМ: 0000000000871776 [13:55:00]line ФД: 139340 [13:55:00]line ФПД: 44694418760002 [13:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T135459&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139340&fm=44694418760002&tin=02508201610067®Number=0000000000092569&sum=100000 [13:55:00]written 0, free lines is 4095 [13:55:00]OFD Sender: Processing packet 139340 [packets to send 137, broken 136] [13:55:00]ProducePacketName [13:55:00]name=ofd_packets/00139340 [13:55:00]OFD Sender: To server: pG, [13:55:00]CommunicateWithHost lk.salyk.kg:30040 [13:55:00]ConnectInit lk.salyk.kg [13:55:00]Connected sock=10 [13:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AC 97 07 01 86 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B3 4E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 20 02 00 35 04 06 00 28 A6 3A F4 21 42 84 28 B7 75 8F 32 3B 6F [13:55:00]Write to MH i2c: 01 00 00 0F 0A 19 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 07 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 CB 0C F7 [13:55:00]RasterBufferAndPrint [13:55:00]line [13:55:00]line [13:55:00]line [13:55:00]line [13:55:00]line [13:55:00]written 0, free lines is 3280 [13:55: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 37 36 4F 00 00 00 69 3D 47 00 40 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 37 36 10 04 04 00 4C 20 02 00 F4 03 04 00 49 F5 C2 66 B6 04 01 00 00 68 C3 C7 0B 12 9A 61 60 [13:55:00]CommunicateWithHost err = 0 [13:55:00]CheckOFDResponse [13:55:00]1017 (14) - 77093643461234 [13:55:00]1041 (16) - 0000000000871776 [13:55:00]1040 (4) - 139340 [13:55:00]1012 (4) - 19.08.2024 07:33 [13:55:00]1206 (1) - 0 [13:55:00]OFD Sender: Remove packet 139340 [13:55:00]ProducePacketName [13:55:00]name=ofd_packets/00139340 [13:55:00]NVStorageDeleteData [13:55:00]MH_Cut [13:55:00]Write to MH i2c: D1 01 00 16 0A 01 F2 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: D1 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: D1 01 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: D1 01 00 16 0A 00 F1 [13:55:00]Write to MH i2c: 01 00 00 17 0A 21 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:01]OFD Sender: No OFD packet to send [13:55:01]*** Cut start [13:55:01]*** Partial cut [13:55:01]*** CUTSNS_PIN = 1 [13:55:01]*** CUTSNS_PIN = 0 [13:55:01]*** Brake cut motor [13:55:01]Read from MH i2c: 01 [13:55:01]MH_I2C_Read... [13:55:01]*** Stop cut motor [13:55:01]*** Cut end [13:55:01]Read from MH i2c: 01 07 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: 01 07 00 17 0A 00 00 00 00 00 FF 0F 36 [13:55:01]process_action close_receipt done [13:55:01]requested_data is exist [13:55:01]produce_requested_data [13:55:01]requested_item fm.sn is exist - process it [13:55:01]wFMCommunicate request_size=4 [13:55:01]MH_SAM_APDU [13:55:01]CAPDU: 80 11 00 00 [13:55:01]Write to MH i2c: E2 08 00 18 0A 80 11 00 00 00 00 00 00 9C [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 17 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 17 00 18 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F3 [13:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:55:02]wFMCommunicate OK [13:55:02]requested_item fd.num is exist - process it [13:55:02]SAM_PROTO_GetFieldsCounters [13:55:02]wFMCommunicate request_size=4 [13:55:02]MH_SAM_APDU [13:55:02]CAPDU: 80 13 00 00 [13:55:02]Write to MH i2c: E2 08 00 19 0A 80 13 00 00 00 00 00 00 9F [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 62 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 62 00 19 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [13:55:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:02]wFMCommunicate OK [13:55:02]SAM_PROTO_GetFieldsCounters done [13:55:02]requested_item shift.num is exist - process it [13:55:02]requested_item shift.opened is exist - process it [13:55:02]req_shift_opened [13:55:02]FM_GetShiftState [13:55:02]SAM_PROTO_GetShiftState [13:55:02]wFMCommunicate request_size=4 [13:55:02]MH_SAM_APDU [13:55:02]CAPDU: 80 13 01 00 [13:55:02]Write to MH i2c: E2 08 00 1A 0A 80 13 01 00 00 00 00 00 A1 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 1A 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 58 [13:55:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [13:55:02]wFMCommunicate OK [13:55:02]SAM_PROTO_GetShiftState done [13:55:02]FM_GetShiftState done [13:55:02]req_shift_opened done [13:55:02]requested_item shift.open_date is exist - process it [13:55:02]req_shift_open_date [13:55:02]req_shift_open_date done [13:55:02]produce_requested_data done [13:55:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139340,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [13:55:02]process_action_free close_receipt [13:55:02]json_value_free [13:55:02]json_value_free done [13:55:02]process_json_proto returns [13:55:02]Send response to host [13:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139340,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [13:55:02]free response buf [13:55:02]execute_script done [13:55:02]execute_script returns [13:55:02]free content buf [13:55:02]Sock 8.Close socket [13:55:02]Sock 8.Thread stoped [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]accept exits with 9 [14:10:02]New connection [14:10:02]New thread 3066817892 created [14:10:02]Thread 3066674532 joined [14:10:02]Waiting for new connection... [14:10:02] Sock 9.Parse request [14:10:02]Sock 9.Check first char [14:10:02]Sock 9.First char is OK [14:10:02]request: POST /json_proto HTTP/1.0 [14:10:02]Method: POST [14:10:02]URL: /json_proto [14:10:02]Method is POST - this is cgi request [14:10:02]url: /json_proto [14:10:02]query_string will be loaded in cgi processing [14:10:02]execute_cgi json_proto POST (null) [14:10:02]execute_cgi path=json_proto method=POST [14:10:02]POST find Content-Length [14:10:02]Host: 172.17.45.67:8080 [14:10:02]Content-Length: 682 [14:10:02]Content-Type: application/json [14:10:02] [14:10:02]POST finish read [14:10:02]Found Content-Length = 682 [14:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:10:02]execute_script... [14:10: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)593183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:10:02]POST & json_proto [14:10:02]process_json_proto [14:10:02]json parsed OK: [14:10:02]protocol is kg_v1.0 [14:10:02]action value=close_receipt [14:10:02]process_action close_receipt [14:10:02]cmd_close_receipt [14:10:02]MH_GetDate [14:10:02]Write to MH i2c: F0 00 00 1B 0A 14 [14:10:02]Write i2c OK [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: F0 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: F0 09 00 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: F0 09 00 1B 0A 00 3B 52 C3 66 5F 7F 2B 66 42 [14:10:02]GetLastDocTimeStamp 1724075699 [14:10:02]current date 1724076603 [14:10:02]FM_GetShiftState [14:10:02]SAM_PROTO_GetShiftState [14:10:02]wFMCommunicate request_size=4 [14:10:02]MH_SAM_APDU [14:10:02]CAPDU: 80 13 01 00 [14:10:02]Write to MH i2c: E2 08 00 1C 0A 80 13 01 00 00 00 00 00 A3 [14:10:02]Write i2c OK [14:10:02]MH_I2C_Read... [14:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:02]Read from MH i2c: E2 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: E2 0E 00 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: E2 0E 00 1C 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5A [14:10:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:10:02]wFMCommunicate OK [14:10:02]SAM_PROTO_GetShiftState done [14:10:02]FM_GetShiftState done [14:10:02]opened in 1724027888 [14:10:02]opened+sec_in_day 1724114288 [14:10:02]quantity*price = 100021 [14:10:02]sum+1 = 100023 [14:10:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 176 19.08.2024 14:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139341 ФПД: 139027014477985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141003&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139341&fm=139027014477985&tin=02508201610067®Number=0000000000092569&sum=100000 [14:10:03]StoreToDocumentArchive [14:10:03]shift 452 fd 139341 [14:10:03]save to /storage/0452/doc_00139341 [14:10:03]save last doc name /storage/0452/doc_00139341 to /storage/kkm_last_doc_name [14:10:03]save OK [14:10:03]Clear old archive folders... [14:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:03]tlvbuf is 0122B740 [14:10:03]SAM_PROTO_ClearQueue [14:10:03]wFMCommunicate request_size=4 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 09 00 00 [14:10:03]Write to MH i2c: E2 08 00 29 0A 80 09 00 00 00 00 00 00 A5 [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 29 0A 00 90 00 A7 [14:10:03]RAPDU: 90 00 [14:10:03]wFMCommunicate OK [14:10:03]SAM_PROTO_ClearQueue done [14:10:03]KKMCreateOFDPacket [14:10:03]OFDProtocolAddRootSTLVToBuf [14:10:03]FM_MakeSignedData [14:10:03]FM_MakeSignedData [14:10:03]SAM_PROTO_SignData [14:10:03]wFMCommunicate request_size=4 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 0D 01 02 [14:10:03]Write to MH i2c: E2 08 00 2A 0A 80 0D 01 02 00 00 00 00 AD [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 2A 0A 00 90 00 A8 [14:10:03]RAPDU: 90 00 [14:10:03]wFMCommunicate OK [14:10:03]wFMCommunicate request_size=255 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 3B 52 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 20 02 00 35 04 06 00 7E [14:10:03]Write to MH i2c: E2 02 01 2B 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 3B 52 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 20 02 00 35 04 06 00 7E 00 00 7B [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 2B 0A 00 90 00 A9 [14:10:03]RAPDU: 90 00 [14:10:03]wFMCommunicate OK [14:10:03]wFMCommunicate request_size=10 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 0D 02 02 05 71 BF CF E8 A1 [14:10:03]Write to MH i2c: E2 0D 00 2C 0A 80 0D 02 02 05 00 71 BF CF E8 A1 00 00 42 [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [14:10:03]RAPDU: 90 00 [14:10:03]wFMCommunicate OK [14:10:03]wFMCommunicate request_size=4 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 0D 03 02 [14:10:03]Write to MH i2c: E2 08 00 2D 0A 80 0D 03 02 00 00 00 00 B2 [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 0B 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 0B 00 2D 0A 00 25 BF C7 E7 67 71 8B 95 90 00 3D [14:10:03]RAPDU: 25 BF C7 E7 67 71 8B 95 90 00 [14:10:03]wFMCommunicate OK [14:10:03]SAM_PROTO_SignData done [14:10:03]FM_MakeSignedData done [14:10:03]CreateOFDProtocolMessage [14:10:03]wFMCommunicate request_size=4 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 11 00 00 [14:10:03]Write to MH i2c: E2 08 00 2E 0A 80 11 00 00 00 00 00 00 B2 [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 17 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 17 00 2E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [14:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:10:03]wFMCommunicate OK [14:10:03]CreateOFDProtocolMessage done [14:10:03]OFDSenderStorePacket 139341 [14:10:03]StoreOFDPacket docnum=139341 [14:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 75 B8 07 01 7D CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 3B 52 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 20 02 00 35 04 06 00 7E 71 BF CF E8 A1 25 BF C7 E7 67 71 8B 95 [14:10:03]CheckFolder [14:10:03]dirname=/storage/ofd_packets [14:10:03]CheckFolder done [14:10:03]ProducePacketName [14:10:03]name=ofd_packets/00139341 [14:10:03]NVStorageSaveData ofd_packets/00139341 [14:10:03]File name is /storage/ofd_packets/00139341 [14:10:03]Write 301 bytes [14:10:03]NVStorageSaveData done [14:10:03]OFDSenderStorePacket done [14:10:03]KKMCreateOFDPacket done [14:10:03]NVStorageSaveData kkm_last_timestamp [14:10:03]File name is /storage/kkm_last_timestamp [14:10:03]Write 4 bytes [14:10:03]NVStorageSaveData done [14:10:03]ExternCall_PrintAddStr [14:10:03]wPrintStart [14:10:03]Write to MH i2c: 01 00 00 2F 0A 39 [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: 01 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: 01 07 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 FF 0F 4E [14:10:03]RasterBufferAndPrint [14:10:03]line Счет N : (1)593183 [14:10:03]line ИНН: 02508201610067 [14:10:03]line Контрольно-Кассовый Чек [14:10:03]line ПРОДАЖА [14:10:03]line ТРК (МРК, ГНК) : 41 [14:10:03]line Товар: 2710124500 [14:10:03]line Аи-95-К-5 [14:10:03]line 13.480 * 74.20 [14:10:03]line = 1000.22 [14:10:03]line НДС 12% НСП 1% [14:10:03]line > о реализуемом товаре [14:10:03]line ОКРУГЛЕНИЕ: -0.22 [14:10:03]line ИТОГО: 1000.00 [14:10:03]line Внесено: 1000.00 [14:10:03]line СДАЧА: 0.00 [14:10:03]line НСП 1% : 8.85 [14:10:03]line НДС 12% : 106.22 [14:10:03]line Наличными: 1000.00 [14:10:03]line Безнал.: 0.00 [14:10:03]line Место: АЗС № 136 "Партнер Нефть" [14:10:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:10:03]line СНО: Общий режим [14:10:03]line Чек 176 19.08.2024 14:10 [14:10:03]line Смена: 452 ФФД: 1.0 [14:10:03]line ЗНМ: 0300000067 [14:10:03]line РНМ: 0000000000092569 [14:10:03]line Версия ККМ: 001 [14:10:03]line ФМ: 0000000000871776 [14:10:03]line ФД: 139341 [14:10:03]line ФПД: 139027014477985 [14:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141003&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139341&fm=139027014477985&tin=02508201610067®Number=0000000000092569&sum=100000 [14:10:04]OFD Sender: Processing packet 139341 [packets to send 137, broken 136] [14:10:04]ProducePacketName [14:10:04]name=ofd_packets/00139341 [14:10:04]OFD Sender: To server: pG, [14:10:04]CommunicateWithHost lk.salyk.kg:30040 [14:10:04]ConnectInit lk.salyk.kg [14:10:04]written 0, free lines is 4095 [14:10:04]Connected sock=10 [14:10: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 37 36 0F 01 00 00 75 B8 07 01 7D CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 3B 52 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 20 02 00 35 04 06 00 7E 71 BF CF E8 A1 25 BF C7 E7 67 71 8B 95 [14:10: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 37 36 4F 00 00 00 4C 2B 47 00 C9 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 37 36 10 04 04 00 4D 20 02 00 F4 03 04 00 D1 F8 C2 66 B6 04 01 00 00 ED FE 1B 06 22 43 6F 61 [14:10:04]CommunicateWithHost err = 0 [14:10:04]CheckOFDResponse [14:10:04]1017 (14) - 77093643461234 [14:10:04]1041 (16) - 0000000000871776 [14:10:04]1040 (4) - 139341 [14:10:04]1012 (4) - 19.08.2024 07:48 [14:10:04]1206 (1) - 0 [14:10:04]OFD Sender: Remove packet 139341 [14:10:04]ProducePacketName [14:10:04]name=ofd_packets/00139341 [14:10:04]NVStorageDeleteData [14:10:04]Write to MH i2c: 01 00 00 5A 0A 64 [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 07 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 DC 0C 53 [14:10:04]RasterBufferAndPrint [14:10:04]line [14:10:04]line [14:10:04]line [14:10:04]line [14:10:04]line [14:10:04]written 0, free lines is 3299 [14:10:04]MH_Cut [14:10:04]Write to MH i2c: D1 01 00 61 0A 01 3D [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: D1 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: D1 01 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: D1 01 00 61 0A 00 3C [14:10:04]Write to MH i2c: 01 00 00 62 0A 6C [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:05]OFD Sender: No OFD packet to send [14:10:05]*** Cut start [14:10:05]*** Partial cut [14:10:05]*** CUTSNS_PIN = 1 [14:10:05]*** CUTSNS_PIN = 0 [14:10:05]*** Brake cut motor [14:10:05]Read from MH i2c: 01 [14:10:05]MH_I2C_Read... [14:10:05]*** Stop cut motor [14:10:05]*** Cut end [14:10:05]Read from MH i2c: 01 07 00 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 FF 0F 81 [14:10:05]process_action close_receipt done [14:10:05]requested_data is exist [14:10:05]produce_requested_data [14:10:05]requested_item fm.sn is exist - process it [14:10:05]wFMCommunicate request_size=4 [14:10:05]MH_SAM_APDU [14:10:05]CAPDU: 80 11 00 00 [14:10:05]Write to MH i2c: E2 08 00 63 0A 80 11 00 00 00 00 00 00 E7 [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:06]Read from MH i2c: E2 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 17 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 17 00 63 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [14:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:10:06]wFMCommunicate OK [14:10:06]requested_item fd.num is exist - process it [14:10:06]SAM_PROTO_GetFieldsCounters [14:10:06]wFMCommunicate request_size=4 [14:10:06]MH_SAM_APDU [14:10:06]CAPDU: 80 13 00 00 [14:10:06]Write to MH i2c: E2 08 00 64 0A 80 13 00 00 00 00 00 00 EA [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:06]Read from MH i2c: E2 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 62 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 62 00 64 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [14:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:06]wFMCommunicate OK [14:10:06]SAM_PROTO_GetFieldsCounters done [14:10:06]requested_item shift.num is exist - process it [14:10:06]requested_item shift.opened is exist - process it [14:10:06]req_shift_opened [14:10:06]FM_GetShiftState [14:10:06]SAM_PROTO_GetShiftState [14:10:06]wFMCommunicate request_size=4 [14:10:06]MH_SAM_APDU [14:10:06]CAPDU: 80 13 01 00 [14:10:06]Write to MH i2c: E2 08 00 65 0A 80 13 01 00 00 00 00 00 EC [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:06]Read from MH i2c: E2 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 0E 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 0E 00 65 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A3 [14:10:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:10:06]wFMCommunicate OK [14:10:06]SAM_PROTO_GetShiftState done [14:10:06]FM_GetShiftState done [14:10:06]req_shift_opened done [14:10:06]requested_item shift.open_date is exist - process it [14:10:06]req_shift_open_date [14:10:06]req_shift_open_date done [14:10:06]produce_requested_data done [14:10:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139341,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:10:06]process_action_free close_receipt [14:10:06]json_value_free [14:10:06]json_value_free done [14:10:06]process_json_proto returns [14:10:06]Send response to host [14:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139341,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:10:06]free response buf [14:10:06]execute_script done [14:10:06]execute_script returns [14:10:06]free content buf [14:10:06]Sock 9.Close socket [14:10:06]Sock 9.Thread stoped [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:11]accept exits with 8 [14:12:11]New connection [14:12:11]New thread 3066674532 created [14:12:11]Thread 3066817892 joined [14:12:11]Waiting for new connection... [14:12:11] Sock 8.Parse request [14:12:11]Sock 8.Check first char [14:12:11]Sock 8.First char is OK [14:12:11]request: POST /json_proto HTTP/1.0 [14:12:11]Method: POST [14:12:11]URL: /json_proto [14:12:11]Method is POST - this is cgi request [14:12:11]url: /json_proto [14:12:11]query_string will be loaded in cgi processing [14:12:11]execute_cgi json_proto POST (null) [14:12:11]execute_cgi path=json_proto method=POST [14:12:11]POST find Content-Length [14:12:11]Host: 172.17.45.67:8080 [14:12:11]Content-Length: 677 [14:12:11]Content-Type: application/json [14:12:11] [14:12:11]POST finish read [14:12:11]Found Content-Length = 677 [14:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:12:11]execute_script... [14:12: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)593184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:12:11]POST & json_proto [14:12:11]process_json_proto [14:12:11]json parsed OK: [14:12:11]protocol is kg_v1.0 [14:12:11]action value=close_receipt [14:12:11]process_action close_receipt [14:12:11]cmd_close_receipt [14:12:11]MH_GetDate [14:12:11]Write to MH i2c: F0 00 00 66 0A 5F [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: F0 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: F0 09 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: F0 09 00 66 0A 00 BC 52 C3 66 5F 7F 2B 66 0E [14:12:11]GetLastDocTimeStamp 1724076603 [14:12:11]current date 1724076732 [14:12:11]FM_GetShiftState [14:12:11]SAM_PROTO_GetShiftState [14:12:11]wFMCommunicate request_size=4 [14:12:11]MH_SAM_APDU [14:12:11]CAPDU: 80 13 01 00 [14:12:11]Write to MH i2c: E2 08 00 67 0A 80 13 01 00 00 00 00 00 EE [14:12:11]Write i2c OK [14:12:11]MH_I2C_Read... [14:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:11]Read from MH i2c: E2 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 0E 00 [14:12:11]MH_I2C_Read... [14:12:11]Read from MH i2c: E2 0E 00 67 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A5 [14:12:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:12:11]wFMCommunicate OK [14:12:11]SAM_PROTO_GetShiftState done [14:12:11]FM_GetShiftState done [14:12:11]opened in 1724027888 [14:12:11]opened+sec_in_day 1724114288 [14:12:11]quantity*price = 50036 [14:12:11]sum+1 = 50037 [14:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 177 19.08.2024 14:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139342 ФПД: 32173532622433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141212&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139342&fm=32173532622433&tin=02508201610067®Number=0000000000092569&sum=50000 [14:12:12]StoreToDocumentArchive [14:12:12]shift 452 fd 139342 [14:12:12]save to /storage/0452/doc_00139342 [14:12:12]save last doc name /storage/0452/doc_00139342 to /storage/kkm_last_doc_name [14:12:12]save OK [14:12:12]Clear old archive folders... [14:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:12]tlvbuf is 012142F0 [14:12:12]SAM_PROTO_ClearQueue [14:12:12]wFMCommunicate request_size=4 [14:12:12]MH_SAM_APDU [14:12:12]CAPDU: 80 09 00 00 [14:12:12]Write to MH i2c: E2 08 00 74 0A 80 09 00 00 00 00 00 00 F0 [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:12]Read from MH i2c: E2 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 03 00 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 03 00 74 0A 00 90 00 F2 [14:12:12]RAPDU: 90 00 [14:12:12]wFMCommunicate OK [14:12:12]SAM_PROTO_ClearQueue done [14:12:12]KKMCreateOFDPacket [14:12:12]OFDProtocolAddRootSTLVToBuf [14:12:12]FM_MakeSignedData [14:12:12]FM_MakeSignedData [14:12:12]SAM_PROTO_SignData [14:12:12]wFMCommunicate request_size=4 [14:12:12]MH_SAM_APDU [14:12:12]CAPDU: 80 0D 01 02 [14:12:12]Write to MH i2c: E2 08 00 75 0A 80 0D 01 02 00 00 00 00 F8 [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:12]Read from MH i2c: E2 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 03 00 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [14:12:12]RAPDU: 90 00 [14:12:12]wFMCommunicate OK [14:12:12]wFMCommunicate request_size=255 [14:12:12]MH_SAM_APDU [14:12: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B1 00 00 00 F4 03 04 00 BC 52 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 20 02 00 35 04 06 00 1D [14:12:12]Write to MH i2c: E2 02 01 76 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B1 00 00 00 F4 03 04 00 BC 52 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 20 02 00 35 04 06 00 1D 00 00 BB [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:12]Read from MH i2c: E2 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 03 00 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [14:12:12]RAPDU: 90 00 [14:12:12]wFMCommunicate OK [14:12:12]wFMCommunicate request_size=10 [14:12:12]MH_SAM_APDU [14:12:12]CAPDU: 80 0D 02 02 05 42 FB FB AE 61 [14:12:12]Write to MH i2c: E2 0D 00 77 0A 80 0D 02 02 05 00 42 FB FB AE 61 00 00 4C [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:12]Read from MH i2c: E2 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 03 00 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [14:12:12]RAPDU: 90 00 [14:12:12]wFMCommunicate OK [14:12:12]wFMCommunicate request_size=4 [14:12:12]MH_SAM_APDU [14:12:12]CAPDU: 80 0D 03 02 [14:12:12]Write to MH i2c: E2 08 00 78 0A 80 0D 03 02 00 00 00 00 FD [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:12]Read from MH i2c: E2 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 0B 00 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 0B 00 78 0A 00 C4 C6 5E 2B 06 F7 4E 43 90 00 9F [14:12:12]RAPDU: C4 C6 5E 2B 06 F7 4E 43 90 00 [14:12:12]wFMCommunicate OK [14:12:12]SAM_PROTO_SignData done [14:12:12]FM_MakeSignedData done [14:12:12]CreateOFDProtocolMessage [14:12:12]wFMCommunicate request_size=4 [14:12:12]MH_SAM_APDU [14:12:12]CAPDU: 80 11 00 00 [14:12:12]Write to MH i2c: E2 08 00 79 0A 80 11 00 00 00 00 00 00 FD [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 17 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 17 00 79 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [14:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:12:13]wFMCommunicate OK [14:12:13]CreateOFDProtocolMessage done [14:12:13]OFDSenderStorePacket 139342 [14:12:13]StoreOFDPacket docnum=139342 [14:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 A1 07 01 50 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B1 00 00 00 F4 03 04 00 BC 52 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 20 02 00 35 04 06 00 1D 42 FB FB AE 61 C4 C6 5E 2B 06 F7 4E 43 [14:12:13]CheckFolder [14:12:13]dirname=/storage/ofd_packets [14:12:13]CheckFolder done [14:12:13]ProducePacketName [14:12:13]name=ofd_packets/00139342 [14:12:13]NVStorageSaveData ofd_packets/00139342 [14:12:13]File name is /storage/ofd_packets/00139342 [14:12:13]Write 301 bytes [14:12:13]NVStorageSaveData done [14:12:13]OFDSenderStorePacket done [14:12:13]KKMCreateOFDPacket done [14:12:13]NVStorageSaveData kkm_last_timestamp [14:12:13]File name is /storage/kkm_last_timestamp [14:12:13]Write 4 bytes [14:12:13]OFD Sender: Processing packet 139342 [packets to send 137, broken 136] [14:12:13]ProducePacketName [14:12:13]name=ofd_packets/00139342 [14:12:13]OFD Sender: To server: pG, [14:12:13]CommunicateWithHost lk.salyk.kg:30040 [14:12:13]ConnectInit lk.salyk.kg [14:12:13]NVStorageSaveData done [14:12:13]ExternCall_PrintAddStr [14:12:13]wPrintStart [14:12:13]Write to MH i2c: 01 00 00 7A 0A 84 [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 07 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 07 00 7A 0A 00 00 00 00 00 FF 0F 99 [14:12:13]RasterBufferAndPrint [14:12:13]line Счет N : (1)593184 [14:12:13]line ИНН: 02508201610067 [14:12:13]line Контрольно-Кассовый Чек [14:12:13]line ПРОДАЖА [14:12:13]line ТРК (МРК, ГНК) : 62 [14:12:13]line Товар: 2710124130 [14:12:13]line Аи-92-К-5 [14:12:13]line 7.380 * 67.80 [14:12:13]line = 500.36 [14:12:13]line НДС 12% НСП 1% [14:12:13]line > о реализуемом товаре [14:12:13]line ОКРУГЛЕНИЕ: -0.36 [14:12:13]line ИТОГО: 500.00 [14:12:13]line Внесено: 500.00 [14:12:13]line СДАЧА: 0.00 [14:12:13]line НСП 1% : 4.43 [14:12:13]line НДС 12% : 53.14 [14:12:13]line Наличными: 500.00 [14:12:13]line Безнал.: 0.00 [14:12:13]line Место: АЗС № 136 "Партнер Нефть" [14:12:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:12:13]line СНО: Общий режим [14:12:13]line Чек 177 19.08.2024 14:12 [14:12:13]line Смена: 452 ФФД: 1.0 [14:12:13]line ЗНМ: 0300000067 [14:12:13]line РНМ: 0000000000092569 [14:12:13]line Версия ККМ: 001 [14:12:13]line ФМ: 0000000000871776 [14:12:13]line ФД: 139342 [14:12:13]line ФПД: 32173532622433 [14:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141212&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139342&fm=32173532622433&tin=02508201610067®Number=0000000000092569&sum=50000 [14:12:13]Connected sock=11 [14:12: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 37 36 0F 01 00 00 48 A1 07 01 50 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B1 00 00 00 F4 03 04 00 BC 52 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 20 02 00 35 04 06 00 1D 42 FB FB AE 61 C4 C6 5E 2B 06 F7 4E 43 [14:12:13]written 0, free lines is 4095 [14:12: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 37 36 4F 00 00 00 F1 03 47 00 50 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 37 36 10 04 04 00 4E 20 02 00 F4 03 04 00 52 F9 C2 66 B6 04 01 00 00 9D 56 6C F0 84 07 F0 D2 [14:12:13]CommunicateWithHost err = 0 [14:12:13]CheckOFDResponse [14:12:13]1017 (14) - 77093643461234 [14:12:13]1041 (16) - 0000000000871776 [14:12:13]1040 (4) - 139342 [14:12:13]1012 (4) - 19.08.2024 07:50 [14:12:13]1206 (1) - 0 [14:12:13]OFD Sender: Remove packet 139342 [14:12:13]ProducePacketName [14:12:13]name=ofd_packets/00139342 [14:12:13]NVStorageDeleteData [14:12:13]Write to MH i2c: 01 00 00 A5 0A AF [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 07 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 C8 0C 8A [14:12:13]RasterBufferAndPrint [14:12:13]line [14:12:13]line [14:12:13]line [14:12:13]line [14:12:13]line [14:12:13]written 0, free lines is 3278 [14:12:13]MH_Cut [14:12:13]Write to MH i2c: D1 01 00 AC 0A 01 88 [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: D1 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: D1 01 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: D1 01 00 AC 0A 00 87 [14:12:13]Write to MH i2c: 01 00 00 AD 0A B7 [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:14]OFD Sender: No OFD packet to send [14:12:14]*** Cut start [14:12:14]*** Partial cut [14:12:14]*** CUTSNS_PIN = 1 [14:12:14]*** CUTSNS_PIN = 0 [14:12:14]*** Brake cut motor [14:12:15]Read from MH i2c: 01 [14:12:15]MH_I2C_Read... [14:12:15]*** Stop cut motor [14:12:15]*** Cut end [14:12:15]Read from MH i2c: 01 07 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: 01 07 00 AD 0A 00 00 00 00 00 FF 0F CC [14:12:15]process_action close_receipt done [14:12:15]requested_data is exist [14:12:15]produce_requested_data [14:12:15]requested_item fm.sn is exist - process it [14:12:15]wFMCommunicate request_size=4 [14:12:15]MH_SAM_APDU [14:12:15]CAPDU: 80 11 00 00 [14:12:15]Write to MH i2c: E2 08 00 AE 0A 80 11 00 00 00 00 00 00 32 [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:15]Read from MH i2c: E2 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 17 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 17 00 AE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 89 [14:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:12:15]wFMCommunicate OK [14:12:15]requested_item fd.num is exist - process it [14:12:15]SAM_PROTO_GetFieldsCounters [14:12:15]wFMCommunicate request_size=4 [14:12:15]MH_SAM_APDU [14:12:15]CAPDU: 80 13 00 00 [14:12:15]Write to MH i2c: E2 08 00 AF 0A 80 13 00 00 00 00 00 00 35 [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:15]Read from MH i2c: E2 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 62 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 62 00 AF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [14:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:15]wFMCommunicate OK [14:12:15]SAM_PROTO_GetFieldsCounters done [14:12:15]requested_item shift.num is exist - process it [14:12:15]requested_item shift.opened is exist - process it [14:12:15]req_shift_opened [14:12:15]FM_GetShiftState [14:12:15]SAM_PROTO_GetShiftState [14:12:15]wFMCommunicate request_size=4 [14:12:15]MH_SAM_APDU [14:12:15]CAPDU: 80 13 01 00 [14:12:15]Write to MH i2c: E2 08 00 B0 0A 80 13 01 00 00 00 00 00 37 [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 [14:12:15]MH_I2C_Read... [14:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:15]Read from MH i2c: E2 0E 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 0E 00 B0 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EE [14:12:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:12:15]wFMCommunicate OK [14:12:15]SAM_PROTO_GetShiftState done [14:12:15]FM_GetShiftState done [14:12:15]req_shift_opened done [14:12:15]requested_item shift.open_date is exist - process it [14:12:15]req_shift_open_date [14:12:15]req_shift_open_date done [14:12:15]produce_requested_data done [14:12:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139342,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:12:15]process_action_free close_receipt [14:12:15]json_value_free [14:12:15]json_value_free done [14:12:15]process_json_proto returns [14:12:15]Send response to host [14:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139342,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:12:15]free response buf [14:12:15]execute_script done [14:12:15]execute_script returns [14:12:15]free content buf [14:12:15]Sock 8.Close socket [14:12:15]Sock 8.Thread stoped [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]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:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:26:59]accept exits with 9 [14:26:59]New connection [14:26:59]New thread 3066817892 created [14:26:59]Thread 3066674532 joined [14:26:59]Waiting for new connection... [14:26:59] Sock 9.Parse request [14:26:59]Sock 9.Check first char [14:26:59]Sock 9.First char is OK [14:26:59]request: POST /json_proto HTTP/1.0 [14:26:59]Method: POST [14:26:59]URL: /json_proto [14:26:59]Method is POST - this is cgi request [14:26:59]url: /json_proto [14:26:59]query_string will be loaded in cgi processing [14:26:59]execute_cgi json_proto POST (null) [14:26:59]execute_cgi path=json_proto method=POST [14:26:59]POST find Content-Length [14:26:59]Host: 172.17.45.67:8080 [14:26:59]Content-Length: 677 [14:26:59]Content-Type: application/json [14:26:59] [14:26:59]POST finish read [14:26:59]Found Content-Length = 677 [14:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:59]execute_script... [14:26: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)593185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:59]POST & json_proto [14:26:59]process_json_proto [14:26:59]json parsed OK: [14:26:59]protocol is kg_v1.0 [14:26:59]action value=close_receipt [14:26:59]process_action close_receipt [14:26:59]cmd_close_receipt [14:26:59]MH_GetDate [14:26:59]Write to MH i2c: F0 00 00 B1 0A AA [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: F0 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: F0 09 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: F0 09 00 B1 0A 00 34 56 C3 66 5F 7F 2B 66 D5 [14:26:59]GetLastDocTimeStamp 1724076732 [14:26:59]current date 1724077620 [14:26:59]FM_GetShiftState [14:26:59]SAM_PROTO_GetShiftState [14:26:59]wFMCommunicate request_size=4 [14:26:59]MH_SAM_APDU [14:26:59]CAPDU: 80 13 01 00 [14:26:59]Write to MH i2c: E2 08 00 B2 0A 80 13 01 00 00 00 00 00 39 [14:26:59]Write i2c OK [14:26:59]MH_I2C_Read... [14:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:59]Read from MH i2c: E2 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 0E 00 [14:26:59]MH_I2C_Read... [14:26:59]Read from MH i2c: E2 0E 00 B2 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F0 [14:26:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:26:59]wFMCommunicate OK [14:26:59]SAM_PROTO_GetShiftState done [14:26:59]FM_GetShiftState done [14:26:59]opened in 1724027888 [14:26:59]opened+sec_in_day 1724114288 [14:26:59]quantity*price = 60027 [14:26:59]sum+1 = 60029 [14:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 178 19.08.2024 14:27 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139343 ФПД: 227905313732123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T142700&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139343&fm=227905313732123&tin=02508201610067®Number=0000000000092569&sum=60000 [14:27:00]StoreToDocumentArchive [14:27:00]shift 452 fd 139343 [14:27:00]save to /storage/0452/doc_00139343 [14:27:00]save last doc name /storage/0452/doc_00139343 to /storage/kkm_last_doc_name [14:27:00]save OK [14:27:00]Clear old archive folders... [14:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:00]tlvbuf is 0122AED0 [14:27:00]SAM_PROTO_ClearQueue [14:27:00]wFMCommunicate request_size=4 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 09 00 00 [14:27:00]Write to MH i2c: E2 08 00 BF 0A 80 09 00 00 00 00 00 00 3B [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [14:27:00]RAPDU: 90 00 [14:27:00]wFMCommunicate OK [14:27:00]SAM_PROTO_ClearQueue done [14:27:00]KKMCreateOFDPacket [14:27:00]OFDProtocolAddRootSTLVToBuf [14:27:00]FM_MakeSignedData [14:27:00]FM_MakeSignedData [14:27:00]SAM_PROTO_SignData [14:27:00]wFMCommunicate request_size=4 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 0D 01 02 [14:27:00]Write to MH i2c: E2 08 00 C0 0A 80 0D 01 02 00 00 00 00 43 [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:00]Read from MH i2c: E2 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 [14:27:00]MH_I2C_Read... [14:27:00]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [14:27:00]RAPDU: 90 00 [14:27:00]wFMCommunicate OK [14:27:00]wFMCommunicate request_size=255 [14:27:00]MH_SAM_APDU [14:27:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 B2 00 00 00 F4 03 04 00 34 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 20 02 00 35 04 06 00 CF [14:27:00]Write to MH i2c: E2 02 01 C1 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 B2 00 00 00 F4 03 04 00 34 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 20 02 00 35 04 06 00 CF 00 00 A4 [14:27:00]Write i2c OK [14:27:00]MH_I2C_Read... [14:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:01]Read from MH i2c: E2 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: E2 03 00 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: E2 03 00 C1 0A 00 90 00 3F [14:27:01]RAPDU: 90 00 [14:27:01]wFMCommunicate OK [14:27:01]wFMCommunicate request_size=10 [14:27:01]MH_SAM_APDU [14:27:01]CAPDU: 80 0D 02 02 05 47 57 44 76 1B [14:27:01]Write to MH i2c: E2 0D 00 C2 0A 80 0D 02 02 05 00 47 57 44 76 1B 00 00 C3 [14:27:01]Write i2c OK [14:27:01]MH_I2C_Read... [14:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:01]Read from MH i2c: E2 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: E2 03 00 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [14:27:01]RAPDU: 90 00 [14:27:01]wFMCommunicate OK [14:27:01]wFMCommunicate request_size=4 [14:27:01]MH_SAM_APDU [14:27:01]CAPDU: 80 0D 03 02 [14:27:01]Write to MH i2c: E2 08 00 C3 0A 80 0D 03 02 00 00 00 00 48 [14:27:01]Write i2c OK [14:27:01]MH_I2C_Read... [14:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:01]Read from MH i2c: E2 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: E2 0B 00 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: E2 0B 00 C3 0A 00 73 8B B0 CD 7A 69 E0 7E 90 00 05 [14:27:01]RAPDU: 73 8B B0 CD 7A 69 E0 7E 90 00 [14:27:01]wFMCommunicate OK [14:27:01]SAM_PROTO_SignData done [14:27:01]FM_MakeSignedData done [14:27:01]CreateOFDProtocolMessage [14:27:01]wFMCommunicate request_size=4 [14:27:01]MH_SAM_APDU [14:27:01]CAPDU: 80 11 00 00 [14:27:01]Write to MH i2c: E2 08 00 C4 0A 80 11 00 00 00 00 00 00 48 [14:27:01]Write i2c OK [14:27:01]MH_I2C_Read... [14:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:01]Read from MH i2c: E2 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: E2 17 00 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: E2 17 00 C4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9F [14:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:27:01]wFMCommunicate OK [14:27:01]CreateOFDProtocolMessage done [14:27:01]OFDSenderStorePacket 139343 [14:27:01]StoreOFDPacket docnum=139343 [14:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8F B4 07 01 BB AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 B2 00 00 00 F4 03 04 00 34 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 20 02 00 35 04 06 00 CF 47 57 44 76 1B 73 8B B0 CD 7A 69 E0 7E [14:27:01]CheckFolder [14:27:01]dirname=/storage/ofd_packets [14:27:01]CheckFolder done [14:27:01]ProducePacketName [14:27:01]name=ofd_packets/00139343 [14:27:01]NVStorageSaveData ofd_packets/00139343 [14:27:01]File name is /storage/ofd_packets/00139343 [14:27:01]Write 301 bytes [14:27:01]NVStorageSaveData done [14:27:01]OFDSenderStorePacket done [14:27:01]KKMCreateOFDPacket done [14:27:01]NVStorageSaveData kkm_last_timestamp [14:27:01]File name is /storage/kkm_last_timestamp [14:27:01]Write 4 bytes [14:27:01]NVStorageSaveData done [14:27:01]ExternCall_PrintAddStr [14:27:01]wPrintStart [14:27:01]Write to MH i2c: 01 00 00 C5 0A CF [14:27:01]Write i2c OK [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: 01 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: 01 07 00 [14:27:01]MH_I2C_Read... [14:27:01]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 FF 0F E4 [14:27:01]RasterBufferAndPrint [14:27:01]line Счет N : (1)593185 [14:27:01]line ИНН: 02508201610067 [14:27:01]line Контрольно-Кассовый Чек [14:27:01]line ПРОДАЖА [14:27:01]line ТРК (МРК, ГНК) : 51 [14:27:01]line Товар: 2710124500 [14:27:01]line Аи-95-К-5 [14:27:01]line 8.090 * 74.20 [14:27:01]line = 600.28 [14:27:01]line НДС 12% НСП 1% [14:27:01]line > о реализуемом товаре [14:27:01]line ОКРУГЛЕНИЕ: -0.28 [14:27:01]line ИТОГО: 600.00 [14:27:01]line Внесено: 600.00 [14:27:01]line СДАЧА: 0.00 [14:27:01]line НСП 1% : 5.31 [14:27:01]line НДС 12% : 63.75 [14:27:01]line Наличными: 600.00 [14:27:01]line Безнал.: 0.00 [14:27:01]line Место: АЗС № 136 "Партнер Нефть" [14:27:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:27:01]line СНО: Общий режим [14:27:01]line Чек 178 19.08.2024 14:27 [14:27:01]line Смена: 452 ФФД: 1.0 [14:27:01]line ЗНМ: 0300000067 [14:27:01]line РНМ: 0000000000092569 [14:27:01]line Версия ККМ: 001 [14:27:01]line ФМ: 0000000000871776 [14:27:01]line ФД: 139343 [14:27:01]line ФПД: 227905313732123 [14:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T142700&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139343&fm=227905313732123&tin=02508201610067®Number=0000000000092569&sum=60000 [14:27:01]OFD Sender: Processing packet 139343 [packets to send 137, broken 136] [14:27:01]ProducePacketName [14:27:01]name=ofd_packets/00139343 [14:27:01]OFD Sender: To server: pG, [14:27:01]CommunicateWithHost lk.salyk.kg:30040 [14:27:01]ConnectInit lk.salyk.kg [14:27:01]written 0, free lines is 4095 [14:27:01]Connected sock=10 [14:27: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 37 36 0F 01 00 00 8F B4 07 01 BB AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 B2 00 00 00 F4 03 04 00 34 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 20 02 00 35 04 06 00 CF 47 57 44 76 1B 73 8B B0 CD 7A 69 E0 7E [14:27: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 37 36 4F 00 00 00 2F 72 47 00 63 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 20 02 00 F4 03 04 00 CA FC C2 66 B6 04 01 00 00 91 34 1C 93 E6 85 D1 59 [14:27:02]CommunicateWithHost err = 0 [14:27:02]CheckOFDResponse [14:27:02]1017 (14) - 77093643461234 [14:27:02]1041 (16) - 0000000000871776 [14:27:02]1040 (4) - 139343 [14:27:02]1012 (4) - 19.08.2024 08:05 [14:27:02]1206 (1) - 0 [14:27:02]OFD Sender: Remove packet 139343 [14:27:02]ProducePacketName [14:27:02]name=ofd_packets/00139343 [14:27:02]NVStorageDeleteData [14:27:02]Write to MH i2c: 01 00 00 F0 0A FA [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: 01 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: 01 07 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 D6 0C E3 [14:27:02]RasterBufferAndPrint [14:27:02]line [14:27:02]line [14:27:02]line [14:27:02]line [14:27:02]line [14:27:02]written 0, free lines is 3297 [14:27:02]MH_Cut [14:27:02]Write to MH i2c: D1 01 00 F7 0A 01 D3 [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: D1 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: D1 01 00 [14:27:02]MH_I2C_Read... [14:27:02]Read from MH i2c: D1 01 00 F7 0A 00 D2 [14:27:02]Write to MH i2c: 01 00 00 F8 0A 02 [14:27:02]Write i2c OK [14:27:02]MH_I2C_Read... [14:27:02]OFD Sender: No OFD packet to send [14:27:02]*** Cut start [14:27:02]*** Partial cut [14:27:02]*** CUTSNS_PIN = 1 [14:27:02]*** CUTSNS_PIN = 0 [14:27:03]*** Brake cut motor [14:27:03]Read from MH i2c: 01 [14:27:03]MH_I2C_Read... [14:27:03]*** Stop cut motor [14:27:03]*** Cut end [14:27:03]Read from MH i2c: 01 07 00 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: 01 07 00 F8 0A 00 00 00 00 00 FF 0F 17 [14:27:03]process_action close_receipt done [14:27:03]requested_data is exist [14:27:03]produce_requested_data [14:27:03]requested_item fm.sn is exist - process it [14:27:03]wFMCommunicate request_size=4 [14:27:03]MH_SAM_APDU [14:27:03]CAPDU: 80 11 00 00 [14:27:03]Write to MH i2c: E2 08 00 F9 0A 80 11 00 00 00 00 00 00 7D [14:27:03]Write i2c OK [14:27:03]MH_I2C_Read... [14:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:03]Read from MH i2c: E2 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 17 00 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 17 00 F9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [14:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:27:03]wFMCommunicate OK [14:27:03]requested_item fd.num is exist - process it [14:27:03]SAM_PROTO_GetFieldsCounters [14:27:03]wFMCommunicate request_size=4 [14:27:03]MH_SAM_APDU [14:27:03]CAPDU: 80 13 00 00 [14:27:03]Write to MH i2c: E2 08 00 FA 0A 80 13 00 00 00 00 00 00 80 [14:27:03]Write i2c OK [14:27:03]MH_I2C_Read... [14:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:03]Read from MH i2c: E2 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 62 00 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 62 00 FA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [14:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:03]wFMCommunicate OK [14:27:03]SAM_PROTO_GetFieldsCounters done [14:27:03]requested_item shift.num is exist - process it [14:27:03]requested_item shift.opened is exist - process it [14:27:03]req_shift_opened [14:27:03]FM_GetShiftState [14:27:03]SAM_PROTO_GetShiftState [14:27:03]wFMCommunicate request_size=4 [14:27:03]MH_SAM_APDU [14:27:03]CAPDU: 80 13 01 00 [14:27:03]Write to MH i2c: E2 08 00 FB 0A 80 13 01 00 00 00 00 00 82 [14:27:03]Write i2c OK [14:27:03]MH_I2C_Read... [14:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:03]Read from MH i2c: E2 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 0E 00 [14:27:03]MH_I2C_Read... [14:27:03]Read from MH i2c: E2 0E 00 FB 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 39 [14:27:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:27:03]wFMCommunicate OK [14:27:03]SAM_PROTO_GetShiftState done [14:27:03]FM_GetShiftState done [14:27:03]req_shift_opened done [14:27:03]requested_item shift.open_date is exist - process it [14:27:03]req_shift_open_date [14:27:03]req_shift_open_date done [14:27:03]produce_requested_data done [14:27:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139343,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:27:03]process_action_free close_receipt [14:27:03]json_value_free [14:27:03]json_value_free done [14:27:03]process_json_proto returns [14:27:03]Send response to host [14:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139343,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:27:03]free response buf [14:27:03]execute_script done [14:27:03]execute_script returns [14:27:03]free content buf [14:27:03]Sock 9.Close socket [14:27:03]Sock 9.Thread stoped [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:56]accept exits with 8 [14:28:56]New connection [14:28:56]New thread 3066674532 created [14:28:56]Thread 3066817892 joined [14:28:56]Waiting for new connection... [14:28:56] Sock 8.Parse request [14:28:56]Sock 8.Check first char [14:28:56]Sock 8.First char is OK [14:28:56]request: POST /json_proto HTTP/1.0 [14:28:56]Method: POST [14:28:56]URL: /json_proto [14:28:56]Method is POST - this is cgi request [14:28:56]url: /json_proto [14:28:56]query_string will be loaded in cgi processing [14:28:56]execute_cgi json_proto POST (null) [14:28:56]execute_cgi path=json_proto method=POST [14:28:56]POST find Content-Length [14:28:56]Host: 172.17.45.67:8080 [14:28:56]Content-Length: 658 [14:28:56]Content-Type: application/json [14:28:56] [14:28:56]POST finish read [14:28:56]Found Content-Length = 658 [14:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:56]execute_script... [14:28: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)593187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:56]POST & json_proto [14:28:56]process_json_proto [14:28:56]json parsed OK: [14:28:56]protocol is kg_v1.0 [14:28:56]action value=close_receipt [14:28:56]process_action close_receipt [14:28:56]cmd_close_receipt [14:28:56]MH_GetDate [14:28:56]Write to MH i2c: F0 00 00 FC 0A F5 [14:28:56]Write i2c OK [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: F0 [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: F0 09 00 [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: F0 09 00 FC 0A 00 AA 56 C3 66 5F 7F 2B 66 96 [14:28:56]GetLastDocTimeStamp 1724077620 [14:28:56]current date 1724077738 [14:28:56]FM_GetShiftState [14:28:56]SAM_PROTO_GetShiftState [14:28:56]wFMCommunicate request_size=4 [14:28:56]MH_SAM_APDU [14:28:56]CAPDU: 80 13 01 00 [14:28:56]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [14:28:56]Write i2c OK [14:28:56]MH_I2C_Read... [14:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:56]Read from MH i2c: E2 [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: E2 0E 00 [14:28:56]MH_I2C_Read... [14:28:56]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3B [14:28:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:28:56]wFMCommunicate OK [14:28:56]SAM_PROTO_GetShiftState done [14:28:56]FM_GetShiftState done [14:28:56]opened in 1724027888 [14:28:56]opened+sec_in_day 1724114288 [14:28:56]quantity*price = 60062 [14:28:56]sum+1 = 60063 [14:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 179 19.08.2024 14:28 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139344 ФПД: 8017832817332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T142858&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139344&fm=8017832817332&tin=02508201610067®Number=0000000000092569&sum=60000 [14:28:58]StoreToDocumentArchive [14:28:58]shift 452 fd 139344 [14:28:58]save to /storage/0452/doc_00139344 [14:28:58]save last doc name /storage/0452/doc_00139344 to /storage/kkm_last_doc_name [14:28:58]save OK [14:28:58]Clear old archive folders... [14:28:58]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:28:58]tlvbuf is 01200770 [14:28:58]SAM_PROTO_ClearQueue [14:28:58]wFMCommunicate request_size=4 [14:28:58]MH_SAM_APDU [14:28:58]CAPDU: 80 09 00 00 [14:28:58]Write to MH i2c: E2 08 00 0A 0B 80 09 00 00 00 00 00 00 87 [14:28:58]Write i2c OK [14:28:58]MH_I2C_Read... [14:28:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:58]Read from MH i2c: E2 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 03 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [14:28:58]RAPDU: 90 00 [14:28:58]wFMCommunicate OK [14:28:58]SAM_PROTO_ClearQueue done [14:28:58]KKMCreateOFDPacket [14:28:58]OFDProtocolAddRootSTLVToBuf [14:28:58]FM_MakeSignedData [14:28:58]FM_MakeSignedData [14:28:58]SAM_PROTO_SignData [14:28:58]wFMCommunicate request_size=4 [14:28:58]MH_SAM_APDU [14:28:58]CAPDU: 80 0D 01 02 [14:28:58]Write to MH i2c: E2 08 00 0B 0B 80 0D 01 02 00 00 00 00 8F [14:28:58]Write i2c OK [14:28:58]MH_I2C_Read... [14:28:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:58]Read from MH i2c: E2 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 03 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 03 00 0B 0B 00 90 00 8A [14:28:58]RAPDU: 90 00 [14:28:58]wFMCommunicate OK [14:28:58]wFMCommunicate request_size=253 [14:28:58]MH_SAM_APDU [14:28:58]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 B3 00 00 00 F4 03 04 00 AA 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 20 02 00 35 04 06 00 07 4A CC 13 B2 B4 [14:28:58]Write to MH i2c: E2 00 01 0C 0B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 B3 00 00 00 F4 03 04 00 AA 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 20 02 00 35 04 06 00 07 4A CC 13 B2 B4 00 00 63 [14:28:58]Write i2c OK [14:28:58]MH_I2C_Read... [14:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:58]Read from MH i2c: E2 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 03 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [14:28:58]RAPDU: 90 00 [14:28:58]wFMCommunicate OK [14:28:58]wFMCommunicate request_size=4 [14:28:58]MH_SAM_APDU [14:28:58]CAPDU: 80 0D 03 02 [14:28:58]Write to MH i2c: E2 08 00 0D 0B 80 0D 03 02 00 00 00 00 93 [14:28:58]Write i2c OK [14:28:58]MH_I2C_Read... [14:28:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:58]Read from MH i2c: E2 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 0B 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 0B 00 0D 0B 00 9C A6 8B 12 01 4C B0 E1 90 00 51 [14:28:58]RAPDU: 9C A6 8B 12 01 4C B0 E1 90 00 [14:28:58]wFMCommunicate OK [14:28:58]SAM_PROTO_SignData done [14:28:58]FM_MakeSignedData done [14:28:58]CreateOFDProtocolMessage [14:28:58]wFMCommunicate request_size=4 [14:28:58]MH_SAM_APDU [14:28:58]CAPDU: 80 11 00 00 [14:28:58]Write to MH i2c: E2 08 00 0E 0B 80 11 00 00 00 00 00 00 93 [14:28:58]Write i2c OK [14:28:58]MH_I2C_Read... [14:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:58]Read from MH i2c: E2 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 17 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: E2 17 00 0E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [14:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:28:58]wFMCommunicate OK [14:28:58]CreateOFDProtocolMessage done [14:28:58]OFDSenderStorePacket 139344 [14:28:58]StoreOFDPacket docnum=139344 [14:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 87 96 00 01 F6 5F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 B3 00 00 00 F4 03 04 00 AA 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 20 02 00 35 04 06 00 07 4A CC 13 B2 B4 9C A6 8B 12 01 4C B0 E1 [14:28:58]CheckFolder [14:28:58]dirname=/storage/ofd_packets [14:28:58]CheckFolder done [14:28:58]ProducePacketName [14:28:58]name=ofd_packets/00139344 [14:28:58]NVStorageSaveData ofd_packets/00139344 [14:28:58]File name is /storage/ofd_packets/00139344 [14:28:58]Write 294 bytes [14:28:58]NVStorageSaveData done [14:28:58]OFDSenderStorePacket done [14:28:58]KKMCreateOFDPacket done [14:28:58]NVStorageSaveData kkm_last_timestamp [14:28:58]File name is /storage/kkm_last_timestamp [14:28:58]Write 4 bytes [14:28:58]NVStorageSaveData done [14:28:58]ExternCall_PrintAddStr [14:28:58]wPrintStart [14:28:58]Write to MH i2c: 01 00 00 0F 0B 1A [14:28:58]Write i2c OK [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: 01 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: 01 07 00 [14:28:58]MH_I2C_Read... [14:28:58]Read from MH i2c: 01 07 00 0F 0B 00 00 00 00 00 FF 0F 2F [14:28:58]RasterBufferAndPrint [14:28:58]line Счет N : (1)593187 [14:28:58]line ИНН: 02508201610067 [14:28:58]line Контрольно-Кассовый Чек [14:28:58]line ПРОДАЖА [14:28:58]line ТРК (МРК, ГНК) : 43 [14:28:58]line Товар: 2710124130 [14:28:58]line SU-92 [14:28:58]line 8.730 * 68.80 [14:28:58]line = 600.62 [14:28:58]line НДС 12% НСП 1% [14:28:58]line > о реализуемом товаре [14:28:58]line ОКРУГЛЕНИЕ: -0.62 [14:28:58]line ИТОГО: 600.00 [14:28:58]line Внесено: 600.00 [14:28:58]line СДАЧА: 0.00 [14:28:58]line НСП 1% : 5.31 [14:28:58]line НДС 12% : 63.78 [14:28:58]line Наличными: 600.00 [14:28:58]line Безнал.: 0.00 [14:28:58]line Место: АЗС № 136 "Партнер Нефть" [14:28:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:28:58]line СНО: Общий режим [14:28:58]line Чек 179 19.08.2024 14:28 [14:28:58]line Смена: 452 ФФД: 1.0 [14:28:58]line ЗНМ: 0300000067 [14:28:58]line РНМ: 0000000000092569 [14:28:58]line Версия ККМ: 001 [14:28:58]line ФМ: 0000000000871776 [14:28:58]line ФД: 139344 [14:28:58]line ФПД: 8017832817332 [14:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T142858&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139344&fm=8017832817332&tin=02508201610067®Number=0000000000092569&sum=60000 [14:28:58]OFD Sender: Processing packet 139344 [packets to send 137, broken 136] [14:28:58]ProducePacketName [14:28:58]name=ofd_packets/00139344 [14:28:58]OFD Sender: To server: pG, [14:28:58]CommunicateWithHost lk.salyk.kg:30040 [14:28:58]ConnectInit lk.salyk.kg [14:28:58]written 0, free lines is 4095 [14:28:59]Connected sock=10 [14:28: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 37 36 08 01 00 00 87 96 00 01 F6 5F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 B3 00 00 00 F4 03 04 00 AA 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 20 02 00 35 04 06 00 07 4A CC 13 B2 B4 9C A6 8B 12 01 4C B0 E1 [14:28: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 37 36 4F 00 00 00 B4 FE 47 00 3C 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 20 02 00 F4 03 04 00 3F FD C2 66 B6 04 01 00 00 12 A0 11 C7 94 D3 A5 EE [14:28:59]CommunicateWithHost err = 0 [14:28:59]CheckOFDResponse [14:28:59]1017 (14) - 77093643461234 [14:28:59]1041 (16) - 0000000000871776 [14:28:59]1040 (4) - 139344 [14:28:59]1012 (4) - 19.08.2024 08:07 [14:28:59]1206 (1) - 0 [14:28:59]OFD Sender: Remove packet 139344 [14:28:59]ProducePacketName [14:28:59]name=ofd_packets/00139344 [14:28:59]NVStorageDeleteData [14:28:59]Write to MH i2c: 01 00 00 3A 0B 45 [14:28:59]Write i2c OK [14:28:59]MH_I2C_Read... [14:28:59]Read from MH i2c: 01 [14:28:59]MH_I2C_Read... [14:28:59]Read from MH i2c: 01 07 00 [14:28:59]MH_I2C_Read... [14:28:59]Read from MH i2c: 01 07 00 3A 0B 00 00 00 00 00 E1 0C 39 [14:28:59]RasterBufferAndPrint [14:28:59]line [14:28:59]line [14:28:59]line [14:28:59]line [14:28:59]line [14:28:59]written 0, free lines is 3303 [14:28:59]MH_Cut [14:28:59]Write to MH i2c: D1 01 00 41 0B 01 1E [14:28:59]Write i2c OK [14:28:59]MH_I2C_Read... [14:28:59]Read from MH i2c: D1 [14:28:59]MH_I2C_Read... [14:28:59]Read from MH i2c: D1 01 00 [14:28:59]MH_I2C_Read... [14:28:59]Read from MH i2c: D1 01 00 41 0B 00 1D [14:28:59]Write to MH i2c: 01 00 00 42 0B 4D [14:28:59]Write i2c OK [14:28:59]MH_I2C_Read... [14:28:59]OFD Sender: No OFD packet to send [14:29:00]*** Cut start [14:29:00]*** Partial cut [14:29:00]*** CUTSNS_PIN = 1 [14:29:00]*** CUTSNS_PIN = 0 [14:29:00]*** Brake cut motor [14:29:00]Read from MH i2c: 01 [14:29:00]MH_I2C_Read... [14:29:00]*** Stop cut motor [14:29:00]*** Cut end [14:29:00]Read from MH i2c: 01 07 00 [14:29:00]MH_I2C_Read... [14:29:00]Read from MH i2c: 01 07 00 42 0B 00 00 00 00 00 FF 0F 62 [14:29:00]process_action close_receipt done [14:29:00]requested_data is exist [14:29:00]produce_requested_data [14:29:00]requested_item fm.sn is exist - process it [14:29:00]wFMCommunicate request_size=4 [14:29:00]MH_SAM_APDU [14:29:00]CAPDU: 80 11 00 00 [14:29:00]Write to MH i2c: E2 08 00 43 0B 80 11 00 00 00 00 00 00 C8 [14:29:00]Write i2c OK [14:29:00]MH_I2C_Read... [14:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:00]Read from MH i2c: E2 [14:29:00]MH_I2C_Read... [14:29:00]Read from MH i2c: E2 17 00 [14:29:00]MH_I2C_Read... [14:29:00]Read from MH i2c: E2 17 00 43 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [14:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:29:00]wFMCommunicate OK [14:29:00]requested_item fd.num is exist - process it [14:29:00]SAM_PROTO_GetFieldsCounters [14:29:00]wFMCommunicate request_size=4 [14:29:00]MH_SAM_APDU [14:29:00]CAPDU: 80 13 00 00 [14:29:00]Write to MH i2c: E2 08 00 44 0B 80 13 00 00 00 00 00 00 CB [14:29:00]Write i2c OK [14:29:00]MH_I2C_Read... [14:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:00]Read from MH i2c: E2 [14:29:00]MH_I2C_Read... [14:29:00]Read from MH i2c: E2 62 00 [14:29:00]MH_I2C_Read... [14:29:00]Read from MH i2c: E2 62 00 44 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 50 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [14:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 50 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:00]wFMCommunicate OK [14:29:00]SAM_PROTO_GetFieldsCounters done [14:29:00]requested_item shift.num is exist - process it [14:29:00]requested_item shift.opened is exist - process it [14:29:00]req_shift_opened [14:29:00]FM_GetShiftState [14:29:00]SAM_PROTO_GetShiftState [14:29:00]wFMCommunicate request_size=4 [14:29:00]MH_SAM_APDU [14:29:00]CAPDU: 80 13 01 00 [14:29:00]Write to MH i2c: E2 08 00 45 0B 80 13 01 00 00 00 00 00 CD [14:29:00]Write i2c OK [14:29:00]MH_I2C_Read... [14:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:00]Read from MH i2c: E2 [14:29:00]MH_I2C_Read... [14:29:00]Read from MH i2c: E2 0E 00 [14:29:00]MH_I2C_Read... [14:29:00]Read from MH i2c: E2 0E 00 45 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 84 [14:29:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:29:00]wFMCommunicate OK [14:29:00]SAM_PROTO_GetShiftState done [14:29:00]FM_GetShiftState done [14:29:00]req_shift_opened done [14:29:00]requested_item shift.open_date is exist - process it [14:29:00]req_shift_open_date [14:29:00]req_shift_open_date done [14:29:00]produce_requested_data done [14:29:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139344,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:29:00]process_action_free close_receipt [14:29:00]json_value_free [14:29:00]json_value_free done [14:29:00]process_json_proto returns [14:29:00]Send response to host [14:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139344,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:29:00]free response buf [14:29:00]execute_script done [14:29:00]execute_script returns [14:29:00]free content buf [14:29:00]Sock 8.Close socket [14:29:00]Sock 8.Thread stoped [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:18]accept exits with 9 [14:29:18]New connection [14:29:18]New thread 3066817892 created [14:29:18]Thread 3066674532 joined [14:29:18]Waiting for new connection... [14:29:18] Sock 9.Parse request [14:29:18]Sock 9.Check first char [14:29:18]Sock 9.First char is OK [14:29:18]request: POST /json_proto HTTP/1.0 [14:29:18]Method: POST [14:29:18]URL: /json_proto [14:29:18]Method is POST - this is cgi request [14:29:18]url: /json_proto [14:29:18]query_string will be loaded in cgi processing [14:29:18]execute_cgi json_proto POST (null) [14:29:18]execute_cgi path=json_proto method=POST [14:29:18]POST find Content-Length [14:29:18]Host: 172.17.45.67:8080 [14:29:18]Content-Length: 677 [14:29:18]Content-Type: application/json [14:29:18] [14:29:18]POST finish read [14:29:18]Found Content-Length = 677 [14:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.050, "sum" : 410.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:18]execute_script... [14:29: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)593186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.050, "sum" : 410.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:18]POST & json_proto [14:29:18]process_json_proto [14:29:18]json parsed OK: [14:29:18]protocol is kg_v1.0 [14:29:18]action value=close_receipt [14:29:18]process_action close_receipt [14:29:18]cmd_close_receipt [14:29:18]MH_GetDate [14:29:18]Write to MH i2c: F0 00 00 46 0B 40 [14:29:18]Write i2c OK [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: F0 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: F0 09 00 [14:29:18]MH_I2C_Read... [14:29:18]Read from MH i2c: F0 09 00 46 0B 00 C0 56 C3 66 5F 7F 2B 66 F7 [14:29:18]GetLastDocTimeStamp 1724077738 [14:29:18]current date 1724077760 [14:29:18]FM_GetShiftState [14:29:18]SAM_PROTO_GetShiftState [14:29:18]wFMCommunicate request_size=4 [14:29:18]MH_SAM_APDU [14:29:18]CAPDU: 80 13 01 00 [14:29:18]Write to MH i2c: E2 08 00 47 0B 80 13 01 00 00 00 00 00 CF [14:29:18]Write i2c OK [14:29:18]MH_I2C_Read... [14:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:19]Read from MH i2c: E2 [14:29:19]MH_I2C_Read... [14:29:19]Read from MH i2c: E2 0E 00 [14:29:19]MH_I2C_Read... [14:29:19]Read from MH i2c: E2 0E 00 47 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 86 [14:29:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:29:19]wFMCommunicate OK [14:29:19]SAM_PROTO_GetShiftState done [14:29:19]FM_GetShiftState done [14:29:19]opened in 1724027888 [14:29:19]opened+sec_in_day 1724114288 [14:29:19]quantity*price = 41019 [14:29:19]sum+1 = 41020 [14:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.56 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 180 19.08.2024 14:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139345 ФПД: 82986579462634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T142920&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139345&fm=82986579462634&tin=02508201610067®Number=0000000000092569&sum=41000 [14:29:20]StoreToDocumentArchive [14:29:20]shift 452 fd 139345 [14:29:20]save to /storage/0452/doc_00139345 [14:29:20]save last doc name /storage/0452/doc_00139345 to /storage/kkm_last_doc_name [14:29:20]save OK [14:29:20]Clear old archive folders... [14:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:20]tlvbuf is 012779B0 [14:29:20]SAM_PROTO_ClearQueue [14:29:20]wFMCommunicate request_size=4 [14:29:20]MH_SAM_APDU [14:29:20]CAPDU: 80 09 00 00 [14:29:20]Write to MH i2c: E2 08 00 54 0B 80 09 00 00 00 00 00 00 D1 [14:29:20]Write i2c OK [14:29:20]MH_I2C_Read... [14:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:20]Read from MH i2c: E2 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 03 00 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [14:29:20]RAPDU: 90 00 [14:29:20]wFMCommunicate OK [14:29:20]SAM_PROTO_ClearQueue done [14:29:20]KKMCreateOFDPacket [14:29:20]OFDProtocolAddRootSTLVToBuf [14:29:20]FM_MakeSignedData [14:29:20]FM_MakeSignedData [14:29:20]SAM_PROTO_SignData [14:29:20]wFMCommunicate request_size=4 [14:29:20]MH_SAM_APDU [14:29:20]CAPDU: 80 0D 01 02 [14:29:20]Write to MH i2c: E2 08 00 55 0B 80 0D 01 02 00 00 00 00 D9 [14:29:20]Write i2c OK [14:29:20]MH_I2C_Read... [14:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:20]Read from MH i2c: E2 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 03 00 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [14:29:20]RAPDU: 90 00 [14:29:20]wFMCommunicate OK [14:29:20]wFMCommunicate request_size=255 [14:29:20]MH_SAM_APDU [14:29: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 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 C0 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 20 02 00 35 04 06 00 4B [14:29:20]Write to MH i2c: E2 02 01 56 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 C0 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 20 02 00 35 04 06 00 4B 00 00 9E [14:29:20]Write i2c OK [14:29:20]MH_I2C_Read... [14:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:20]Read from MH i2c: E2 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 03 00 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [14:29:20]RAPDU: 90 00 [14:29:20]wFMCommunicate OK [14:29:20]wFMCommunicate request_size=10 [14:29:20]MH_SAM_APDU [14:29:20]CAPDU: 80 0D 02 02 05 79 D1 97 09 EA [14:29:20]Write to MH i2c: E2 0D 00 57 0B 80 0D 02 02 05 00 79 D1 97 09 EA 00 00 BA [14:29:20]Write i2c OK [14:29:20]MH_I2C_Read... [14:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:20]Read from MH i2c: E2 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 03 00 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 03 00 57 0B 00 90 00 D6 [14:29:20]RAPDU: 90 00 [14:29:20]wFMCommunicate OK [14:29:20]wFMCommunicate request_size=4 [14:29:20]MH_SAM_APDU [14:29:20]CAPDU: 80 0D 03 02 [14:29:20]Write to MH i2c: E2 08 00 58 0B 80 0D 03 02 00 00 00 00 DE [14:29:20]Write i2c OK [14:29:20]MH_I2C_Read... [14:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:20]Read from MH i2c: E2 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 0B 00 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 0B 00 58 0B 00 FC D5 3E 17 0B 08 06 7C 90 00 9A [14:29:20]RAPDU: FC D5 3E 17 0B 08 06 7C 90 00 [14:29:20]wFMCommunicate OK [14:29:20]SAM_PROTO_SignData done [14:29:20]FM_MakeSignedData done [14:29:20]CreateOFDProtocolMessage [14:29:20]wFMCommunicate request_size=4 [14:29:20]MH_SAM_APDU [14:29:20]CAPDU: 80 11 00 00 [14:29:20]Write to MH i2c: E2 08 00 59 0B 80 11 00 00 00 00 00 00 DE [14:29:20]Write i2c OK [14:29:20]MH_I2C_Read... [14:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:20]Read from MH i2c: E2 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 17 00 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: E2 17 00 59 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [14:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:29:20]wFMCommunicate OK [14:29:20]CreateOFDProtocolMessage done [14:29:20]OFDSenderStorePacket 139345 [14:29:20]StoreOFDPacket docnum=139345 [14:29:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5E 28 07 01 3D 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 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 C0 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 20 02 00 35 04 06 00 4B 79 D1 97 09 EA FC D5 3E 17 0B 08 06 7C [14:29:20]CheckFolder [14:29:20]dirname=/storage/ofd_packets [14:29:20]CheckFolder done [14:29:20]ProducePacketName [14:29:20]name=ofd_packets/00139345 [14:29:20]NVStorageSaveData ofd_packets/00139345 [14:29:20]File name is /storage/ofd_packets/00139345 [14:29:20]Write 301 bytes [14:29:20]NVStorageSaveData done [14:29:20]OFDSenderStorePacket done [14:29:20]KKMCreateOFDPacket done [14:29:20]NVStorageSaveData kkm_last_timestamp [14:29:20]File name is /storage/kkm_last_timestamp [14:29:20]Write 4 bytes [14:29:20]NVStorageSaveData done [14:29:20]ExternCall_PrintAddStr [14:29:20]wPrintStart [14:29:20]Write to MH i2c: 01 00 00 5A 0B 65 [14:29:20]Write i2c OK [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: 01 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: 01 07 00 [14:29:20]MH_I2C_Read... [14:29:20]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 FF 0F 7A [14:29:20]RasterBufferAndPrint [14:29:20]line Счет N : (1)593186 [14:29:20]line ИНН: 02508201610067 [14:29:20]line Контрольно-Кассовый Чек [14:29:20]line ПРОДАЖА [14:29:20]line ТРК (МРК, ГНК) : 62 [14:29:20]line Товар: 2710124130 [14:29:20]line Аи-92-К-5 [14:29:20]line 6.050 * 67.80 [14:29:20]line = 410.19 [14:29:20]line НДС 12% НСП 1% [14:29:20]line > о реализуемом товаре [14:29:20]line ОКРУГЛЕНИЕ: -0.19 [14:29:20]line ИТОГО: 410.00 [14:29:20]line Внесено: 410.00 [14:29:20]line СДАЧА: 0.00 [14:29:20]line НСП 1% : 3.63 [14:29:20]line НДС 12% : 43.56 [14:29:20]line Наличными: 410.00 [14:29:20]line Безнал.: 0.00 [14:29:20]line Место: АЗС № 136 "Партнер Нефть" [14:29:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:29:20]line СНО: Общий режим [14:29:20]line Чек 180 19.08.2024 14:29 [14:29:20]line Смена: 452 ФФД: 1.0 [14:29:20]line ЗНМ: 0300000067 [14:29:20]line РНМ: 0000000000092569 [14:29:20]line Версия ККМ: 001 [14:29:20]line ФМ: 0000000000871776 [14:29:20]line ФД: 139345 [14:29:20]line ФПД: 82986579462634 [14:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T142920&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139345&fm=82986579462634&tin=02508201610067®Number=0000000000092569&sum=41000 [14:29:21]written 0, free lines is 4095 [14:29:21]OFD Sender: Processing packet 139345 [packets to send 137, broken 136] [14:29:21]ProducePacketName [14:29:21]name=ofd_packets/00139345 [14:29:21]OFD Sender: To server: pG, [14:29:21]CommunicateWithHost lk.salyk.kg:30040 [14:29:21]ConnectInit lk.salyk.kg [14:29:21]Connected sock=8 [14:29: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 37 36 0F 01 00 00 5E 28 07 01 3D 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 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 C0 56 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 20 02 00 35 04 06 00 4B 79 D1 97 09 EA FC D5 3E 17 0B 08 06 7C [14:29: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 37 36 4F 00 00 00 8E EF 47 00 CC 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 37 36 10 04 04 00 51 20 02 00 F4 03 04 00 55 FD C2 66 B6 04 01 00 00 77 06 E1 15 1E 4A 32 CC [14:29:21]CommunicateWithHost err = 0 [14:29:21]CheckOFDResponse [14:29:21]1017 (14) - 77093643461234 [14:29:21]1041 (16) - 0000000000871776 [14:29:21]1040 (4) - 139345 [14:29:21]1012 (4) - 19.08.2024 08:07 [14:29:21]1206 (1) - 0 [14:29:21]OFD Sender: Remove packet 139345 [14:29:21]ProducePacketName [14:29:21]name=ofd_packets/00139345 [14:29:21]NVStorageDeleteData [14:29:21]Write to MH i2c: 01 00 00 85 0B 90 [14:29:21]Write i2c OK [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: 01 [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: 01 07 00 [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: 01 07 00 85 0B 00 00 00 00 00 DF 0C 82 [14:29:21]RasterBufferAndPrint [14:29:21]line [14:29:21]line [14:29:21]line [14:29:21]line [14:29:21]line [14:29:21]written 0, free lines is 3303 [14:29:21]MH_Cut [14:29:21]Write to MH i2c: D1 01 00 8C 0B 01 69 [14:29:21]Write i2c OK [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: D1 [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: D1 01 00 [14:29:21]MH_I2C_Read... [14:29:21]Read from MH i2c: D1 01 00 8C 0B 00 68 [14:29:21]Write to MH i2c: 01 00 00 8D 0B 98 [14:29:21]Write i2c OK [14:29:21]MH_I2C_Read... [14:29:21]OFD Sender: No OFD packet to send [14:29:22]*** Cut start [14:29:22]*** Partial cut [14:29:22]*** CUTSNS_PIN = 1 [14:29:22]*** CUTSNS_PIN = 0 [14:29:22]*** Brake cut motor [14:29:22]Read from MH i2c: 01 [14:29:22]MH_I2C_Read... [14:29:22]*** Stop cut motor [14:29:22]*** Cut end [14:29:22]Read from MH i2c: 01 07 00 [14:29:22]MH_I2C_Read... [14:29:22]Read from MH i2c: 01 07 00 8D 0B 00 00 00 00 00 FF 0F AD [14:29:22]process_action close_receipt done [14:29:22]requested_data is exist [14:29:22]produce_requested_data [14:29:22]requested_item fm.sn is exist - process it [14:29:22]wFMCommunicate request_size=4 [14:29:22]MH_SAM_APDU [14:29:22]CAPDU: 80 11 00 00 [14:29:22]Write to MH i2c: E2 08 00 8E 0B 80 11 00 00 00 00 00 00 13 [14:29:22]Write i2c OK [14:29:22]MH_I2C_Read... [14:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:22]Read from MH i2c: E2 [14:29:22]MH_I2C_Read... [14:29:22]Read from MH i2c: E2 17 00 [14:29:22]MH_I2C_Read... [14:29:22]Read from MH i2c: E2 17 00 8E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [14:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:29:22]wFMCommunicate OK [14:29:22]requested_item fd.num is exist - process it [14:29:22]SAM_PROTO_GetFieldsCounters [14:29:22]wFMCommunicate request_size=4 [14:29:22]MH_SAM_APDU [14:29:22]CAPDU: 80 13 00 00 [14:29:22]Write to MH i2c: E2 08 00 8F 0B 80 13 00 00 00 00 00 00 16 [14:29:22]Write i2c OK [14:29:22]MH_I2C_Read... [14:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:22]Read from MH i2c: E2 [14:29:22]MH_I2C_Read... [14:29:22]Read from MH i2c: E2 62 00 [14:29:22]MH_I2C_Read... [14:29:22]Read from MH i2c: E2 62 00 8F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 51 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [14:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 51 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:23]wFMCommunicate OK [14:29:23]SAM_PROTO_GetFieldsCounters done [14:29:23]requested_item shift.num is exist - process it [14:29:23]requested_item shift.opened is exist - process it [14:29:23]req_shift_opened [14:29:23]FM_GetShiftState [14:29:23]SAM_PROTO_GetShiftState [14:29:23]wFMCommunicate request_size=4 [14:29:23]MH_SAM_APDU [14:29:23]CAPDU: 80 13 01 00 [14:29:23]Write to MH i2c: E2 08 00 90 0B 80 13 01 00 00 00 00 00 18 [14:29:23]Write i2c OK [14:29:23]MH_I2C_Read... [14:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:23]Read from MH i2c: E2 [14:29:23]MH_I2C_Read... [14:29:23]Read from MH i2c: E2 0E 00 [14:29:23]MH_I2C_Read... [14:29:23]Read from MH i2c: E2 0E 00 90 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CF [14:29:23]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:29:23]wFMCommunicate OK [14:29:23]SAM_PROTO_GetShiftState done [14:29:23]FM_GetShiftState done [14:29:23]req_shift_opened done [14:29:23]requested_item shift.open_date is exist - process it [14:29:23]req_shift_open_date [14:29:23]req_shift_open_date done [14:29:23]produce_requested_data done [14:29:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139345,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:29:23]process_action_free close_receipt [14:29:23]json_value_free [14:29:23]json_value_free done [14:29:23]process_json_proto returns [14:29:23]Send response to host [14:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139345,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:29:23]free response buf [14:29:23]execute_script done [14:29:23]execute_script returns [14:29:23]free content buf [14:29:23]Sock 9.Close socket [14:29:23]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:14]accept exits with 10 [14:33:14]New connection [14:33:14]New thread 3066674532 created [14:33:14]Thread 3066817892 joined [14:33:14]Waiting for new connection... [14:33:14] Sock 10.Parse request [14:33:14]Sock 10.Check first char [14:33:14]Sock 10.First char is OK [14:33:14]request: POST /json_proto HTTP/1.0 [14:33:14]Method: POST [14:33:14]URL: /json_proto [14:33:14]Method is POST - this is cgi request [14:33:14]url: /json_proto [14:33:14]query_string will be loaded in cgi processing [14:33:14]execute_cgi json_proto POST (null) [14:33:14]execute_cgi path=json_proto method=POST [14:33:14]POST find Content-Length [14:33:14]Host: 172.17.45.67:8080 [14:33:14]Content-Length: 677 [14:33:14]Content-Type: application/json [14:33:14] [14:33:14]POST finish read [14:33:14]Found Content-Length = 677 [14:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:14]execute_script... [14:33: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)593188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:14]POST & json_proto [14:33:14]process_json_proto [14:33:14]json parsed OK: [14:33:14]protocol is kg_v1.0 [14:33:14]action value=close_receipt [14:33:14]process_action close_receipt [14:33:14]cmd_close_receipt [14:33:14]MH_GetDate [14:33:14]Write to MH i2c: F0 00 00 91 0B 8B [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: F0 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: F0 09 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: F0 09 00 91 0B 00 AC 57 C3 66 5F 7F 2B 66 2F [14:33:14]GetLastDocTimeStamp 1724077760 [14:33:14]current date 1724077996 [14:33:14]FM_GetShiftState [14:33:14]SAM_PROTO_GetShiftState [14:33:14]wFMCommunicate request_size=4 [14:33:14]MH_SAM_APDU [14:33:14]CAPDU: 80 13 01 00 [14:33:14]Write to MH i2c: E2 08 00 92 0B 80 13 01 00 00 00 00 00 1A [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:15]Read from MH i2c: E2 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 0E 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 0E 00 92 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D1 [14:33:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:33:15]wFMCommunicate OK [14:33:15]SAM_PROTO_GetShiftState done [14:33:15]FM_GetShiftState done [14:33:15]opened in 1724027888 [14:33:15]opened+sec_in_day 1724114288 [14:33:15]quantity*price = 60003 [14:33:15]sum+1 = 60004 [14:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 181 19.08.2024 14:33 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139346 ФПД: 197816387280457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T143316&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139346&fm=197816387280457&tin=02508201610067®Number=0000000000092569&sum=60000 [14:33:16]StoreToDocumentArchive [14:33:16]shift 452 fd 139346 [14:33:16]save to /storage/0452/doc_00139346 [14:33:16]save last doc name /storage/0452/doc_00139346 to /storage/kkm_last_doc_name [14:33:16]save OK [14:33:16]Clear old archive folders... [14:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:16]tlvbuf is 01278BA0 [14:33:16]SAM_PROTO_ClearQueue [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 09 00 00 [14:33:16]Write to MH i2c: E2 08 00 9F 0B 80 09 00 00 00 00 00 00 1C [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 03 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [14:33:16]RAPDU: 90 00 [14:33:16]wFMCommunicate OK [14:33:16]SAM_PROTO_ClearQueue done [14:33:16]KKMCreateOFDPacket [14:33:16]OFDProtocolAddRootSTLVToBuf [14:33:16]FM_MakeSignedData [14:33:16]FM_MakeSignedData [14:33:16]SAM_PROTO_SignData [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 0D 01 02 [14:33:16]Write to MH i2c: E2 08 00 A0 0B 80 0D 01 02 00 00 00 00 24 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 03 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [14:33:16]RAPDU: 90 00 [14:33:16]wFMCommunicate OK [14:33:16]wFMCommunicate request_size=255 [14:33:16]MH_SAM_APDU [14:33: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B5 00 00 00 F4 03 04 00 AC 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 20 02 00 35 04 06 00 B3 [14:33:16]Write to MH i2c: E2 02 01 A1 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B5 00 00 00 F4 03 04 00 AC 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 20 02 00 35 04 06 00 B3 00 00 41 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 03 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 03 00 A1 0B 00 90 00 20 [14:33:16]RAPDU: 90 00 [14:33:16]wFMCommunicate OK [14:33:16]wFMCommunicate request_size=10 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 0D 02 02 05 E9 B7 7E 9E 49 [14:33:16]Write to MH i2c: E2 0D 00 A2 0B 80 0D 02 02 05 00 E9 B7 7E 9E 49 00 00 36 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 03 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 03 00 A2 0B 00 90 00 21 [14:33:16]RAPDU: 90 00 [14:33:16]wFMCommunicate OK [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 0D 03 02 [14:33:16]Write to MH i2c: E2 08 00 A3 0B 80 0D 03 02 00 00 00 00 29 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 0B 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 0B 00 A3 0B 00 AF 6D 19 CB 3C 51 6F AF 90 00 D5 [14:33:16]RAPDU: AF 6D 19 CB 3C 51 6F AF 90 00 [14:33:16]wFMCommunicate OK [14:33:16]SAM_PROTO_SignData done [14:33:16]FM_MakeSignedData done [14:33:16]CreateOFDProtocolMessage [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 11 00 00 [14:33:16]Write to MH i2c: E2 08 00 A4 0B 80 11 00 00 00 00 00 00 29 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 17 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 17 00 A4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [14:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:33:16]wFMCommunicate OK [14:33:16]CreateOFDProtocolMessage done [14:33:16]OFDSenderStorePacket 139346 [14:33:16]StoreOFDPacket docnum=139346 [14:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 18 F7 07 01 BE 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B5 00 00 00 F4 03 04 00 AC 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 20 02 00 35 04 06 00 B3 E9 B7 7E 9E 49 AF 6D 19 CB 3C 51 6F AF [14:33:16]CheckFolder [14:33:16]dirname=/storage/ofd_packets [14:33:16]CheckFolder done [14:33:16]ProducePacketName [14:33:16]name=ofd_packets/00139346 [14:33:16]NVStorageSaveData ofd_packets/00139346 [14:33:16]File name is /storage/ofd_packets/00139346 [14:33:16]Write 301 bytes [14:33:16]NVStorageSaveData done [14:33:16]OFDSenderStorePacket done [14:33:16]KKMCreateOFDPacket done [14:33:16]NVStorageSaveData kkm_last_timestamp [14:33:16]File name is /storage/kkm_last_timestamp [14:33:16]Write 4 bytes [14:33:16]NVStorageSaveData done [14:33:16]ExternCall_PrintAddStr [14:33:16]wPrintStart [14:33:16]Write to MH i2c: 01 00 00 A5 0B B0 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: 01 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: 01 07 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: 01 07 00 A5 0B 00 00 00 00 00 FF 0F C5 [14:33:16]RasterBufferAndPrint [14:33:16]line Счет N : (1)593188 [14:33:16]line ИНН: 02508201610067 [14:33:16]line Контрольно-Кассовый Чек [14:33:16]line ПРОДАЖА [14:33:16]line ТРК (МРК, ГНК) : 42 [14:33:16]line Товар: 2710124130 [14:33:16]line Аи-92-К-5 [14:33:16]line 8.850 * 67.80 [14:33:16]line = 600.03 [14:33:16]line НДС 12% НСП 1% [14:33:16]line > о реализуемом товаре [14:33:16]line ОКРУГЛЕНИЕ: -0.03 [14:33:16]line ИТОГО: 600.00 [14:33:16]line Внесено: 600.00 [14:33:16]line СДАЧА: 0.00 [14:33:16]line НСП 1% : 5.31 [14:33:16]line НДС 12% : 63.72 [14:33:16]line Наличными: 600.00 [14:33:16]line Безнал.: 0.00 [14:33:16]line Место: АЗС № 136 "Партнер Нефть" [14:33:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:33:16]line СНО: Общий режим [14:33:16]line Чек 181 19.08.2024 14:33 [14:33:16]line Смена: 452 ФФД: 1.0 [14:33:16]line ЗНМ: 0300000067 [14:33:16]line РНМ: 0000000000092569 [14:33:16]line Версия ККМ: 001 [14:33:16]line ФМ: 0000000000871776 [14:33:16]line ФД: 139346 [14:33:16]line ФПД: 197816387280457 [14:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T143316&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139346&fm=197816387280457&tin=02508201610067®Number=0000000000092569&sum=60000 [14:33:16]written 0, free lines is 4095 [14:33:16]OFD Sender: Processing packet 139346 [packets to send 137, broken 136] [14:33:16]ProducePacketName [14:33:16]name=ofd_packets/00139346 [14:33:16]OFD Sender: To server: pG, [14:33:16]CommunicateWithHost lk.salyk.kg:30040 [14:33:16]ConnectInit lk.salyk.kg [14:33:16]Connected sock=8 [14:33: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 37 36 0F 01 00 00 18 F7 07 01 BE 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B5 00 00 00 F4 03 04 00 AC 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 20 02 00 35 04 06 00 B3 E9 B7 7E 9E 49 AF 6D 19 CB 3C 51 6F AF [14:33:17]Write to MH i2c: 01 00 00 D0 0B DB [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: 01 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: 01 07 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: 01 07 00 D0 0B 00 00 00 00 00 D8 0C C6 [14:33:17]RasterBufferAndPrint [14:33:17]line [14:33:17]line [14:33:17]line [14:33:17]line [14:33:17]line [14:33:17]written 0, free lines is 3296 [14:33: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 37 36 4F 00 00 00 D2 43 47 00 CD 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 37 36 10 04 04 00 52 20 02 00 F4 03 04 00 41 FE C2 66 B6 04 01 00 00 00 25 B1 84 D9 D2 D9 4B [14:33:17]CommunicateWithHost err = 0 [14:33:17]CheckOFDResponse [14:33:17]1017 (14) - 77093643461234 [14:33:17]1041 (16) - 0000000000871776 [14:33:17]1040 (4) - 139346 [14:33:17]1012 (4) - 19.08.2024 08:11 [14:33:17]1206 (1) - 0 [14:33:17]OFD Sender: Remove packet 139346 [14:33:17]ProducePacketName [14:33:17]name=ofd_packets/00139346 [14:33:17]NVStorageDeleteData [14:33:17]MH_Cut [14:33:17]Write to MH i2c: D1 01 00 D7 0B 01 B4 [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: D1 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: D1 01 00 [14:33:17]MH_I2C_Read... [14:33:17]Read from MH i2c: D1 01 00 D7 0B 00 B3 [14:33:17]Write to MH i2c: 01 00 00 D8 0B E3 [14:33:17]Write i2c OK [14:33:17]MH_I2C_Read... [14:33:17]OFD Sender: No OFD packet to send [14:33:17]*** Cut start [14:33:17]*** Partial cut [14:33:17]*** CUTSNS_PIN = 1 [14:33:17]*** CUTSNS_PIN = 0 [14:33:18]*** Brake cut motor [14:33:18]Read from MH i2c: 01 [14:33:18]MH_I2C_Read... [14:33:18]*** Stop cut motor [14:33:18]*** Cut end [14:33:18]Read from MH i2c: 01 07 00 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: 01 07 00 D8 0B 00 00 00 00 00 FF 0F F8 [14:33:18]process_action close_receipt done [14:33:18]requested_data is exist [14:33:18]produce_requested_data [14:33:18]requested_item fm.sn is exist - process it [14:33:18]wFMCommunicate request_size=4 [14:33:18]MH_SAM_APDU [14:33:18]CAPDU: 80 11 00 00 [14:33:18]Write to MH i2c: E2 08 00 D9 0B 80 11 00 00 00 00 00 00 5E [14:33:18]Write i2c OK [14:33:18]MH_I2C_Read... [14:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:18]Read from MH i2c: E2 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: E2 17 00 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: E2 17 00 D9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [14:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:33:18]wFMCommunicate OK [14:33:18]requested_item fd.num is exist - process it [14:33:18]SAM_PROTO_GetFieldsCounters [14:33:18]wFMCommunicate request_size=4 [14:33:18]MH_SAM_APDU [14:33:18]CAPDU: 80 13 00 00 [14:33:18]Write to MH i2c: E2 08 00 DA 0B 80 13 00 00 00 00 00 00 61 [14:33:18]Write i2c OK [14:33:18]MH_I2C_Read... [14:33:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:18]Read from MH i2c: E2 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: E2 62 00 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: E2 62 00 DA 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 52 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [14:33: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 52 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:18]wFMCommunicate OK [14:33:18]SAM_PROTO_GetFieldsCounters done [14:33:18]requested_item shift.num is exist - process it [14:33:18]requested_item shift.opened is exist - process it [14:33:18]req_shift_opened [14:33:18]FM_GetShiftState [14:33:18]SAM_PROTO_GetShiftState [14:33:18]wFMCommunicate request_size=4 [14:33:18]MH_SAM_APDU [14:33:18]CAPDU: 80 13 01 00 [14:33:18]Write to MH i2c: E2 08 00 DB 0B 80 13 01 00 00 00 00 00 63 [14:33:18]Write i2c OK [14:33:18]MH_I2C_Read... [14:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:18]Read from MH i2c: E2 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: E2 0E 00 [14:33:18]MH_I2C_Read... [14:33:18]Read from MH i2c: E2 0E 00 DB 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1A [14:33:18]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:33:18]wFMCommunicate OK [14:33:18]SAM_PROTO_GetShiftState done [14:33:18]FM_GetShiftState done [14:33:18]req_shift_opened done [14:33:18]requested_item shift.open_date is exist - process it [14:33:18]req_shift_open_date [14:33:18]req_shift_open_date done [14:33:18]produce_requested_data done [14:33:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139346,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:33:18]process_action_free close_receipt [14:33:18]json_value_free [14:33:18]json_value_free done [14:33:18]process_json_proto returns [14:33:18]Send response to host [14:33:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139346,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:33:18]free response buf [14:33:18]execute_script done [14:33:18]execute_script returns [14:33:18]free content buf [14:33:18]Sock 10.Close socket [14:33:18]Sock 10.Thread stoped [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:30]accept exits with 9 [14:33:30]New connection [14:33:30]New thread 3066817892 created [14:33:30]Thread 3066674532 joined [14:33:30]Waiting for new connection... [14:33:30] Sock 9.Parse request [14:33:30]Sock 9.Check first char [14:33:30]Sock 9.First char is OK [14:33:30]request: POST /json_proto HTTP/1.0 [14:33:30]Method: POST [14:33:30]URL: /json_proto [14:33:30]Method is POST - this is cgi request [14:33:30]url: /json_proto [14:33:30]query_string will be loaded in cgi processing [14:33:30]execute_cgi json_proto POST (null) [14:33:30]execute_cgi path=json_proto method=POST [14:33:30]POST find Content-Length [14:33:30]Host: 172.17.45.67:8080 [14:33:30]Content-Length: 677 [14:33:30]Content-Type: application/json [14:33:30] [14:33:30]POST finish read [14:33:30]Found Content-Length = 677 [14:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:33:30]execute_script... [14:33:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:33:30]POST & json_proto [14:33:30]process_json_proto [14:33:30]json parsed OK: [14:33:30]protocol is kg_v1.0 [14:33:30]action value=close_receipt [14:33:30]process_action close_receipt [14:33:30]cmd_close_receipt [14:33:30]MH_GetDate [14:33:30]Write to MH i2c: F0 00 00 DC 0B D6 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: F0 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: F0 09 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: F0 09 00 DC 0B 00 BB 57 C3 66 5F 7F 2B 66 89 [14:33:30]GetLastDocTimeStamp 1724077996 [14:33:30]current date 1724078011 [14:33:30]FM_GetShiftState [14:33:30]SAM_PROTO_GetShiftState [14:33:30]wFMCommunicate request_size=4 [14:33:30]MH_SAM_APDU [14:33:30]CAPDU: 80 13 01 00 [14:33:30]Write to MH i2c: E2 08 00 DD 0B 80 13 01 00 00 00 00 00 65 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0E 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0E 00 DD 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1C [14:33:30]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:33:30]wFMCommunicate OK [14:33:30]SAM_PROTO_GetShiftState done [14:33:30]FM_GetShiftState done [14:33:30]opened in 1724027888 [14:33:30]opened+sec_in_day 1724114288 [14:33:30]quantity*price = 50036 [14:33:30]sum+1 = 50037 [14:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 182 19.08.2024 14:33 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139347 ФПД: 162057636749157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T143331&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139347&fm=162057636749157&tin=02508201610067®Number=0000000000092569&sum=50000 [14:33:31]StoreToDocumentArchive [14:33:31]shift 452 fd 139347 [14:33:31]save to /storage/0452/doc_00139347 [14:33:31]save last doc name /storage/0452/doc_00139347 to /storage/kkm_last_doc_name [14:33:31]save OK [14:33:31]Clear old archive folders... [14:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:31]tlvbuf is 0123A6A0 [14:33:31]SAM_PROTO_ClearQueue [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 09 00 00 [14:33:31]Write to MH i2c: E2 08 00 EA 0B 80 09 00 00 00 00 00 00 67 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 03 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 03 00 EA 0B 00 90 00 69 [14:33:31]RAPDU: 90 00 [14:33:31]wFMCommunicate OK [14:33:31]SAM_PROTO_ClearQueue done [14:33:31]KKMCreateOFDPacket [14:33:31]OFDProtocolAddRootSTLVToBuf [14:33:31]FM_MakeSignedData [14:33:31]FM_MakeSignedData [14:33:31]SAM_PROTO_SignData [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 0D 01 02 [14:33:31]Write to MH i2c: E2 08 00 EB 0B 80 0D 01 02 00 00 00 00 6F [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 03 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 03 00 EB 0B 00 90 00 6A [14:33:31]RAPDU: 90 00 [14:33:31]wFMCommunicate OK [14:33:31]wFMCommunicate request_size=255 [14:33:31]MH_SAM_APDU [14:33: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B6 00 00 00 F4 03 04 00 BB 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 20 02 00 35 04 06 00 93 [14:33:31]Write to MH i2c: E2 02 01 EC 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B6 00 00 00 F4 03 04 00 BB 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 20 02 00 35 04 06 00 93 00 00 B6 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 03 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 03 00 EC 0B 00 90 00 6B [14:33:31]RAPDU: 90 00 [14:33:31]wFMCommunicate OK [14:33:31]wFMCommunicate request_size=10 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 0D 02 02 05 63 FB DF 1F 65 [14:33:31]Write to MH i2c: E2 0D 00 ED 0B 80 0D 02 02 05 00 63 FB DF 1F 65 00 00 3D [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 03 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 03 00 ED 0B 00 90 00 6C [14:33:31]RAPDU: 90 00 [14:33:31]wFMCommunicate OK [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 0D 03 02 [14:33:31]Write to MH i2c: E2 08 00 EE 0B 80 0D 03 02 00 00 00 00 74 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 0B 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 0B 00 EE 0B 00 94 4E 18 CD B4 29 11 81 90 00 AB [14:33:31]RAPDU: 94 4E 18 CD B4 29 11 81 90 00 [14:33:31]wFMCommunicate OK [14:33:31]SAM_PROTO_SignData done [14:33:31]FM_MakeSignedData done [14:33:31]CreateOFDProtocolMessage [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 11 00 00 [14:33:31]Write to MH i2c: E2 08 00 EF 0B 80 11 00 00 00 00 00 00 74 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:32]Read from MH i2c: E2 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 17 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: E2 17 00 EF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [14:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:33:32]wFMCommunicate OK [14:33:32]CreateOFDProtocolMessage done [14:33:32]OFDSenderStorePacket 139347 [14:33:32]StoreOFDPacket docnum=139347 [14:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 E5 07 01 D1 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B6 00 00 00 F4 03 04 00 BB 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 20 02 00 35 04 06 00 93 63 FB DF 1F 65 94 4E 18 CD B4 29 11 81 [14:33:32]CheckFolder [14:33:32]dirname=/storage/ofd_packets [14:33:32]CheckFolder done [14:33:32]ProducePacketName [14:33:32]name=ofd_packets/00139347 [14:33:32]NVStorageSaveData ofd_packets/00139347 [14:33:32]File name is /storage/ofd_packets/00139347 [14:33:32]Write 301 bytes [14:33:32]NVStorageSaveData done [14:33:32]OFDSenderStorePacket done [14:33:32]KKMCreateOFDPacket done [14:33:32]NVStorageSaveData kkm_last_timestamp [14:33:32]File name is /storage/kkm_last_timestamp [14:33:32]Write 4 bytes [14:33:32]NVStorageSaveData done [14:33:32]ExternCall_PrintAddStr [14:33:32]wPrintStart [14:33:32]Write to MH i2c: 01 00 00 F0 0B FB [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 07 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 07 00 F0 0B 00 00 00 00 00 FF 0F 10 [14:33:32]RasterBufferAndPrint [14:33:32]line Счет N : (1)593190 [14:33:32]line ИНН: 02508201610067 [14:33:32]line Контрольно-Кассовый Чек [14:33:32]line ПРОДАЖА [14:33:32]line ТРК (МРК, ГНК) : 52 [14:33:32]line Товар: 2710124130 [14:33:32]line Аи-92-К-5 [14:33:32]line 7.380 * 67.80 [14:33:32]line = 500.36 [14:33:32]line НДС 12% НСП 1% [14:33:32]line > о реализуемом товаре [14:33:32]line ОКРУГЛЕНИЕ: -0.36 [14:33:32]line ИТОГО: 500.00 [14:33:32]line Внесено: 500.00 [14:33:32]line СДАЧА: 0.00 [14:33:32]line НСП 1% : 4.43 [14:33:32]line НДС 12% : 53.14 [14:33:32]line Наличными: 500.00 [14:33:32]line Безнал.: 0.00 [14:33:32]line Место: АЗС № 136 "Партнер Нефть" [14:33:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:33:32]line СНО: Общий режим [14:33:32]line Чек 182 19.08.2024 14:33 [14:33:32]line Смена: 452 ФФД: 1.0 [14:33:32]line ЗНМ: 0300000067 [14:33:32]line РНМ: 0000000000092569 [14:33:32]line Версия ККМ: 001 [14:33:32]line ФМ: 0000000000871776 [14:33:32]line ФД: 139347 [14:33:32]line ФПД: 162057636749157 [14:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T143331&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139347&fm=162057636749157&tin=02508201610067®Number=0000000000092569&sum=50000 [14:33:32]OFD Sender: Processing packet 139347 [packets to send 137, broken 136] [14:33:32]ProducePacketName [14:33:32]name=ofd_packets/00139347 [14:33:32]OFD Sender: To server: pG, [14:33:32]CommunicateWithHost lk.salyk.kg:30040 [14:33:32]ConnectInit lk.salyk.kg [14:33:32]written 0, free lines is 4095 [14:33:32]Connected sock=10 [14:33: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 37 36 0F 01 00 00 D1 E5 07 01 D1 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 B6 00 00 00 F4 03 04 00 BB 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 20 02 00 35 04 06 00 93 63 FB DF 1F 65 94 4E 18 CD B4 29 11 81 [14:33: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 37 36 4F 00 00 00 D3 B8 47 00 B7 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 37 36 10 04 04 00 53 20 02 00 F4 03 04 00 51 FE C2 66 B6 04 01 00 00 70 EF E8 F6 C4 03 44 BD [14:33:32]CommunicateWithHost err = 0 [14:33:32]CheckOFDResponse [14:33:32]1017 (14) - 77093643461234 [14:33:32]1041 (16) - 0000000000871776 [14:33:32]1040 (4) - 139347 [14:33:32]1012 (4) - 19.08.2024 08:12 [14:33:32]1206 (1) - 0 [14:33:32]OFD Sender: Remove packet 139347 [14:33:32]ProducePacketName [14:33:32]name=ofd_packets/00139347 [14:33:32]NVStorageDeleteData [14:33:32]Write to MH i2c: 01 00 00 1B 0C 27 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 07 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 07 00 1B 0C 00 00 00 00 00 DE 0C 18 [14:33:32]RasterBufferAndPrint [14:33:32]line [14:33:32]line [14:33:32]line [14:33:32]line [14:33:32]line [14:33:32]written 0, free lines is 3301 [14:33:32]MH_Cut [14:33:32]Write to MH i2c: D1 01 00 22 0C 01 00 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: D1 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: D1 01 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: D1 01 00 22 0C 00 FF [14:33:32]Write to MH i2c: 01 00 00 23 0C 2F [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:33]OFD Sender: No OFD packet to send [14:33:33]*** Cut start [14:33:33]*** Partial cut [14:33:33]*** CUTSNS_PIN = 1 [14:33:33]*** CUTSNS_PIN = 0 [14:33:33]*** Brake cut motor [14:33:34]Read from MH i2c: 01 [14:33:34]MH_I2C_Read... [14:33:34]*** Stop cut motor [14:33:34]*** Cut end [14:33:34]Read from MH i2c: 01 07 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: 01 07 00 23 0C 00 00 00 00 00 FF 0F 44 [14:33:34]process_action close_receipt done [14:33:34]requested_data is exist [14:33:34]produce_requested_data [14:33:34]requested_item fm.sn is exist - process it [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 11 00 00 [14:33:34]Write to MH i2c: E2 08 00 24 0C 80 11 00 00 00 00 00 00 AA [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:34]Read from MH i2c: E2 17 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 17 00 24 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [14:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:33:34]wFMCommunicate OK [14:33:34]requested_item fd.num is exist - process it [14:33:34]SAM_PROTO_GetFieldsCounters [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 13 00 00 [14:33:34]Write to MH i2c: E2 08 00 25 0C 80 13 00 00 00 00 00 00 AD [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 62 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 62 00 25 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 53 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [14:33:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 53 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:34]wFMCommunicate OK [14:33:34]SAM_PROTO_GetFieldsCounters done [14:33:34]requested_item shift.num is exist - process it [14:33:34]requested_item shift.opened is exist - process it [14:33:34]req_shift_opened [14:33:34]FM_GetShiftState [14:33:34]SAM_PROTO_GetShiftState [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 13 01 00 [14:33:34]Write to MH i2c: E2 08 00 26 0C 80 13 01 00 00 00 00 00 AF [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 0E 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 0E 00 26 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 66 [14:33:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:33:34]wFMCommunicate OK [14:33:34]SAM_PROTO_GetShiftState done [14:33:34]FM_GetShiftState done [14:33:34]req_shift_opened done [14:33:34]requested_item shift.open_date is exist - process it [14:33:34]req_shift_open_date [14:33:34]req_shift_open_date done [14:33:34]produce_requested_data done [14:33:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139347,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:33:34]process_action_free close_receipt [14:33:34]json_value_free [14:33:34]json_value_free done [14:33:34]process_json_proto returns [14:33:34]Send response to host [14:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139347,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:33:34]free response buf [14:33:34]execute_script done [14:33:34]execute_script returns [14:33:34]free content buf [14:33:34]Sock 9.Close socket [14:33:34]Sock 9.Thread stoped [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:04]accept exits with 8 [14:34:04]New connection [14:34:04]New thread 3066674532 created [14:34:04]Thread 3066817892 joined [14:34:04]Waiting for new connection... [14:34:04] Sock 8.Parse request [14:34:04]Sock 8.Check first char [14:34:04]Sock 8.First char is OK [14:34:04]request: POST /json_proto HTTP/1.0 [14:34:04]Method: POST [14:34:04]URL: /json_proto [14:34:04]Method is POST - this is cgi request [14:34:04]url: /json_proto [14:34:04]query_string will be loaded in cgi processing [14:34:04]execute_cgi json_proto POST (null) [14:34:04]execute_cgi path=json_proto method=POST [14:34:04]POST find Content-Length [14:34:04]Host: 172.17.45.67:8080 [14:34:04]Content-Length: 677 [14:34:04]Content-Type: application/json [14:34:04] [14:34:04]POST finish read [14:34:04]Found Content-Length = 677 [14:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.510, "sum" : 170.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:04]execute_script... [14:34:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.510, "sum" : 170.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:04]POST & json_proto [14:34:04]process_json_proto [14:34:04]json parsed OK: [14:34:04]protocol is kg_v1.0 [14:34:04]action value=close_receipt [14:34:04]process_action close_receipt [14:34:04]cmd_close_receipt [14:34:04]MH_GetDate [14:34:04]Write to MH i2c: F0 00 00 27 0C 22 [14:34:04]Write i2c OK [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: F0 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: F0 09 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: F0 09 00 27 0C 00 DD 57 C3 66 5F 7F 2B 66 F7 [14:34:04]GetLastDocTimeStamp 1724078011 [14:34:04]current date 1724078045 [14:34:04]FM_GetShiftState [14:34:04]SAM_PROTO_GetShiftState [14:34:04]wFMCommunicate request_size=4 [14:34:04]MH_SAM_APDU [14:34:04]CAPDU: 80 13 01 00 [14:34:04]Write to MH i2c: E2 08 00 28 0C 80 13 01 00 00 00 00 00 B1 [14:34:04]Write i2c OK [14:34:04]MH_I2C_Read... [14:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:04]Read from MH i2c: E2 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 0E 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 0E 00 28 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 68 [14:34:04]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:34:04]wFMCommunicate OK [14:34:04]SAM_PROTO_GetShiftState done [14:34:04]FM_GetShiftState done [14:34:04]opened in 1724027888 [14:34:04]opened+sec_in_day 1724114288 [14:34:04]quantity*price = 17017 [14:34:04]sum+1 = 17019 [14:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.07 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 183 19.08.2024 14:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139348 ФПД: 34915712146360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T143405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139348&fm=34915712146360&tin=02508201610067®Number=0000000000092569&sum=17000 [14:34:05]StoreToDocumentArchive [14:34:05]shift 452 fd 139348 [14:34:05]save to /storage/0452/doc_00139348 [14:34:05]save last doc name /storage/0452/doc_00139348 to /storage/kkm_last_doc_name [14:34:05]save OK [14:34:05]Clear old archive folders... [14:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:05]tlvbuf is 01277FA0 [14:34:05]SAM_PROTO_ClearQueue [14:34:05]wFMCommunicate request_size=4 [14:34:05]MH_SAM_APDU [14:34:05]CAPDU: 80 09 00 00 [14:34:05]Write to MH i2c: E2 08 00 35 0C 80 09 00 00 00 00 00 00 B3 [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:05]Read from MH i2c: E2 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [14:34:05]RAPDU: 90 00 [14:34:05]wFMCommunicate OK [14:34:05]SAM_PROTO_ClearQueue done [14:34:05]KKMCreateOFDPacket [14:34:05]OFDProtocolAddRootSTLVToBuf [14:34:05]FM_MakeSignedData [14:34:05]FM_MakeSignedData [14:34:05]SAM_PROTO_SignData [14:34:05]wFMCommunicate request_size=4 [14:34:05]MH_SAM_APDU [14:34:05]CAPDU: 80 0D 01 02 [14:34:05]Write to MH i2c: E2 08 00 36 0C 80 0D 01 02 00 00 00 00 BB [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:05]Read from MH i2c: E2 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 36 0C 00 90 00 B6 [14:34:05]RAPDU: 90 00 [14:34:05]wFMCommunicate OK [14:34:05]wFMCommunicate request_size=255 [14:34:05]MH_SAM_APDU [14:34: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 CE 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 DD 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 20 02 00 35 04 06 00 1F [14:34:05]Write to MH i2c: E2 02 01 37 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 DD 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 20 02 00 35 04 06 00 1F 00 00 67 [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:05]Read from MH i2c: E2 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 37 0C 00 90 00 B7 [14:34:05]RAPDU: 90 00 [14:34:05]wFMCommunicate OK [14:34:05]wFMCommunicate request_size=10 [14:34:05]MH_SAM_APDU [14:34:05]CAPDU: 80 0D 02 02 05 C1 72 9E 9B B8 [14:34:05]Write to MH i2c: E2 0D 00 38 0C 80 0D 02 02 05 00 C1 72 9E 9B B8 00 00 EC [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:05]Read from MH i2c: E2 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 38 0C 00 90 00 B8 [14:34:05]RAPDU: 90 00 [14:34:05]wFMCommunicate OK [14:34:05]wFMCommunicate request_size=4 [14:34:05]MH_SAM_APDU [14:34:05]CAPDU: 80 0D 03 02 [14:34:05]Write to MH i2c: E2 08 00 39 0C 80 0D 03 02 00 00 00 00 C0 [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 0B 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 0B 00 39 0C 00 A1 02 2B F6 06 3A CB 7C 90 00 0C [14:34:06]RAPDU: A1 02 2B F6 06 3A CB 7C 90 00 [14:34:06]wFMCommunicate OK [14:34:06]SAM_PROTO_SignData done [14:34:06]FM_MakeSignedData done [14:34:06]CreateOFDProtocolMessage [14:34:06]wFMCommunicate request_size=4 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 11 00 00 [14:34:06]Write to MH i2c: E2 08 00 3A 0C 80 11 00 00 00 00 00 00 C0 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 17 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 17 00 3A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [14:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:34:06]wFMCommunicate OK [14:34:06]CreateOFDProtocolMessage done [14:34:06]OFDSenderStorePacket 139348 [14:34:06]StoreOFDPacket docnum=139348 [14:34:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BE 94 07 01 6C 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 DD 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 20 02 00 35 04 06 00 1F C1 72 9E 9B B8 A1 02 2B F6 06 3A CB 7C [14:34:06]CheckFolder [14:34:06]dirname=/storage/ofd_packets [14:34:06]CheckFolder done [14:34:06]ProducePacketName [14:34:06]name=ofd_packets/00139348 [14:34:06]NVStorageSaveData ofd_packets/00139348 [14:34:06]File name is /storage/ofd_packets/00139348 [14:34:06]Write 301 bytes [14:34:06]NVStorageSaveData done [14:34:06]OFDSenderStorePacket done [14:34:06]KKMCreateOFDPacket done [14:34:06]NVStorageSaveData kkm_last_timestamp [14:34:06]File name is /storage/kkm_last_timestamp [14:34:06]Write 4 bytes [14:34:06]NVStorageSaveData done [14:34:06]ExternCall_PrintAddStr [14:34:06]wPrintStart [14:34:06]Write to MH i2c: 01 00 00 3B 0C 47 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 07 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 FF 0F 5C [14:34:06]RasterBufferAndPrint [14:34:06]line Счет N : (1)593191 [14:34:06]line ИНН: 02508201610067 [14:34:06]line Контрольно-Кассовый Чек [14:34:06]line ПРОДАЖА [14:34:06]line ТРК (МРК, ГНК) : 62 [14:34:06]line Товар: 2710124130 [14:34:06]line Аи-92-К-5 [14:34:06]line 2.510 * 67.80 [14:34:06]line = 170.18 [14:34:06]line НДС 12% НСП 1% [14:34:06]line > о реализуемом товаре [14:34:06]line ОКРУГЛЕНИЕ: -0.18 [14:34:06]line ИТОГО: 170.00 [14:34:06]line Внесено: 170.00 [14:34:06]line СДАЧА: 0.00 [14:34:06]line НСП 1% : 1.51 [14:34:06]line НДС 12% : 18.07 [14:34:06]line Наличными: 170.00 [14:34:06]line Безнал.: 0.00 [14:34:06]line Место: АЗС № 136 "Партнер Нефть" [14:34:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:34:06]line СНО: Общий режим [14:34:06]line Чек 183 19.08.2024 14:34 [14:34:06]line Смена: 452 ФФД: 1.0 [14:34:06]line ЗНМ: 0300000067 [14:34:06]line РНМ: 0000000000092569 [14:34:06]line Версия ККМ: 001 [14:34:06]line ФМ: 0000000000871776 [14:34:06]line ФД: 139348 [14:34:06]line ФПД: 34915712146360 [14:34:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T143405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139348&fm=34915712146360&tin=02508201610067®Number=0000000000092569&sum=17000 [14:34:06]OFD Sender: Processing packet 139348 [packets to send 137, broken 136] [14:34:06]ProducePacketName [14:34:06]name=ofd_packets/00139348 [14:34:06]OFD Sender: To server: pG, [14:34:06]CommunicateWithHost lk.salyk.kg:30040 [14:34:06]ConnectInit lk.salyk.kg [14:34:06]written 0, free lines is 4095 [14:34:06]Connected sock=10 [14:34: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 37 36 0F 01 00 00 BE 94 07 01 6C 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 DD 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 20 02 00 35 04 06 00 1F C1 72 9E 9B B8 A1 02 2B F6 06 3A CB 7C [14:34: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 37 36 4F 00 00 00 2C B7 47 00 6B 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 37 36 10 04 04 00 54 20 02 00 F4 03 04 00 73 FE C2 66 B6 04 01 00 00 EB 65 95 48 8F 19 09 15 [14:34:06]CommunicateWithHost err = 0 [14:34:06]CheckOFDResponse [14:34:06]1017 (14) - 77093643461234 [14:34:06]1041 (16) - 0000000000871776 [14:34:06]1040 (4) - 139348 [14:34:06]1012 (4) - 19.08.2024 08:12 [14:34:06]1206 (1) - 0 [14:34:06]OFD Sender: Remove packet 139348 [14:34:06]ProducePacketName [14:34:06]name=ofd_packets/00139348 [14:34:06]NVStorageDeleteData [14:34:06]Write to MH i2c: 01 00 00 66 0C 72 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 07 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 07 00 66 0C 00 00 00 00 00 E4 0C 69 [14:34:06]RasterBufferAndPrint [14:34:06]line [14:34:06]line [14:34:06]line [14:34:06]line [14:34:06]line [14:34:06]written 0, free lines is 3306 [14:34:06]MH_Cut [14:34:06]Write to MH i2c: D1 01 00 6D 0C 01 4B [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: D1 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: D1 01 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: D1 01 00 6D 0C 00 4A [14:34:06]Write to MH i2c: 01 00 00 6E 0C 7A [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:07]OFD Sender: No OFD packet to send [14:34:07]*** Cut start [14:34:07]*** Partial cut [14:34:07]*** CUTSNS_PIN = 1 [14:34:07]*** CUTSNS_PIN = 0 [14:34:07]*** Brake cut motor [14:34:08]Read from MH i2c: 01 [14:34:08]MH_I2C_Read... [14:34:08]*** Stop cut motor [14:34:08]*** Cut end [14:34:08]Read from MH i2c: 01 07 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: 01 07 00 6E 0C 00 00 00 00 00 FF 0F 8F [14:34:08]process_action close_receipt done [14:34:08]requested_data is exist [14:34:08]produce_requested_data [14:34:08]requested_item fm.sn is exist - process it [14:34:08]wFMCommunicate request_size=4 [14:34:08]MH_SAM_APDU [14:34:08]CAPDU: 80 11 00 00 [14:34:08]Write to MH i2c: E2 08 00 6F 0C 80 11 00 00 00 00 00 00 F5 [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:08]Read from MH i2c: E2 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 17 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 17 00 6F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [14:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:34:08]wFMCommunicate OK [14:34:08]requested_item fd.num is exist - process it [14:34:08]SAM_PROTO_GetFieldsCounters [14:34:08]wFMCommunicate request_size=4 [14:34:08]MH_SAM_APDU [14:34:08]CAPDU: 80 13 00 00 [14:34:08]Write to MH i2c: E2 08 00 70 0C 80 13 00 00 00 00 00 00 F8 [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:08]Read from MH i2c: E2 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 62 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 62 00 70 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [14:34:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:08]wFMCommunicate OK [14:34:08]SAM_PROTO_GetFieldsCounters done [14:34:08]requested_item shift.num is exist - process it [14:34:08]requested_item shift.opened is exist - process it [14:34:08]req_shift_opened [14:34:08]FM_GetShiftState [14:34:08]SAM_PROTO_GetShiftState [14:34:08]wFMCommunicate request_size=4 [14:34:08]MH_SAM_APDU [14:34:08]CAPDU: 80 13 01 00 [14:34:08]Write to MH i2c: E2 08 00 71 0C 80 13 01 00 00 00 00 00 FA [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:08]Read from MH i2c: E2 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 0E 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 0E 00 71 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B1 [14:34:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:34:08]wFMCommunicate OK [14:34:08]SAM_PROTO_GetShiftState done [14:34:08]FM_GetShiftState done [14:34:08]req_shift_opened done [14:34:08]requested_item shift.open_date is exist - process it [14:34:08]req_shift_open_date [14:34:08]req_shift_open_date done [14:34:08]produce_requested_data done [14:34:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139348,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:34:08]process_action_free close_receipt [14:34:08]json_value_free [14:34:08]json_value_free done [14:34:08]process_json_proto returns [14:34:08]Send response to host [14:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139348,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:34:08]free response buf [14:34:08]execute_script done [14:34:08]execute_script returns [14:34:08]free content buf [14:34:08]Sock 8.Close socket [14:34:08]Sock 8.Thread stoped [14:34:09]accept exits with 9 [14:34:09]New connection [14:34:09]New thread 3066817892 created [14:34:09]Thread 3066674532 joined [14:34:09]Waiting for new connection... [14:34:09] Sock 9.Parse request [14:34:09]Sock 9.Check first char [14:34:09]Sock 9.First char is OK [14:34:09]request: POST /json_proto HTTP/1.0 [14:34:09]Method: POST [14:34:09]URL: /json_proto [14:34:09]Method is POST - this is cgi request [14:34:09]url: /json_proto [14:34:09]query_string will be loaded in cgi processing [14:34:09]execute_cgi json_proto POST (null) [14:34:09]execute_cgi path=json_proto method=POST [14:34:09]POST find Content-Length [14:34:09]Host: 172.17.45.67:8080 [14:34:09]Content-Length: 792 [14:34:09]Content-Type: application/json [14:34:09] [14:34:09]POST finish read [14:34:09]Found Content-Length = 792 [14:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:09]execute_script... [14:34: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)593189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:09]POST & json_proto [14:34:09]process_json_proto [14:34:09]json parsed OK: [14:34:09]protocol is kg_v1.0 [14:34:09]action value=close_receipt [14:34:09]process_action close_receipt [14:34:09]cmd_close_receipt [14:34:09]MH_GetDate [14:34:09]Write to MH i2c: F0 00 00 72 0C 6D [14:34:09]Write i2c OK [14:34:09]MH_I2C_Read... [14:34:09]Read from MH i2c: F0 [14:34:09]MH_I2C_Read... [14:34:09]Read from MH i2c: F0 09 00 [14:34:09]MH_I2C_Read... [14:34:09]Read from MH i2c: F0 09 00 72 0C 00 E2 57 C3 66 5F 7F 2B 66 47 [14:34:09]GetLastDocTimeStamp 1724078045 [14:34:09]current date 1724078050 [14:34:09]FM_GetShiftState [14:34:09]SAM_PROTO_GetShiftState [14:34:09]wFMCommunicate request_size=4 [14:34:09]MH_SAM_APDU [14:34:09]CAPDU: 80 13 01 00 [14:34:09]Write to MH i2c: E2 08 00 73 0C 80 13 01 00 00 00 00 00 FC [14:34:09]Write i2c OK [14:34:09]MH_I2C_Read... [14:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:09]Read from MH i2c: E2 [14:34:09]MH_I2C_Read... [14:34:09]Read from MH i2c: E2 0E 00 [14:34:09]MH_I2C_Read... [14:34:09]Read from MH i2c: E2 0E 00 73 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B3 [14:34:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:34:09]wFMCommunicate OK [14:34:09]SAM_PROTO_GetShiftState done [14:34:09]FM_GetShiftState done [14:34:09]opened in 1724027888 [14:34:09]opened+sec_in_day 1724114288 [14:34:09]quantity*price = 0 [14:34:09]sum+1 = 1 [14:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 184 19.08.2024 14:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139349 ФПД: 9828051091149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T143411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139349&fm=9828051091149&tin=02508201610067®Number=0000000000092569&sum=0 [14:34:10]StoreToDocumentArchive [14:34:10]shift 452 fd 139349 [14:34:10]save to /storage/0452/doc_00139349 [14:34:10]save last doc name /storage/0452/doc_00139349 to /storage/kkm_last_doc_name [14:34:10]save OK [14:34:10]Clear old archive folders... [14:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:10]tlvbuf is 0123CB90 [14:34:10]SAM_PROTO_ClearQueue [14:34:10]wFMCommunicate request_size=4 [14:34:10]MH_SAM_APDU [14:34:10]CAPDU: 80 09 00 00 [14:34:10]Write to MH i2c: E2 08 00 80 0C 80 09 00 00 00 00 00 00 FE [14:34:10]Write i2c OK [14:34:10]MH_I2C_Read... [14:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:10]Read from MH i2c: E2 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 03 00 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [14:34:10]RAPDU: 90 00 [14:34:10]wFMCommunicate OK [14:34:10]SAM_PROTO_ClearQueue done [14:34:10]KKMCreateOFDPacket [14:34:10]OFDProtocolAddRootSTLVToBuf [14:34:10]FM_MakeSignedData [14:34:10]FM_MakeSignedData [14:34:10]SAM_PROTO_SignData [14:34:10]wFMCommunicate request_size=4 [14:34:10]MH_SAM_APDU [14:34:10]CAPDU: 80 0D 01 02 [14:34:10]Write to MH i2c: E2 08 00 81 0C 80 0D 01 02 00 00 00 00 06 [14:34:10]Write i2c OK [14:34:10]MH_I2C_Read... [14:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:10]Read from MH i2c: E2 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 03 00 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 03 00 81 0C 00 90 00 01 [14:34:10]RAPDU: 90 00 [14:34:10]wFMCommunicate OK [14:34:10]wFMCommunicate request_size=255 [14:34:10]MH_SAM_APDU [14:34: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 60 6D 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 B8 00 00 00 F4 03 04 00 E3 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 20 02 00 35 04 06 00 08 [14:34:10]Write to MH i2c: E2 02 01 82 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 B8 00 00 00 F4 03 04 00 E3 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 20 02 00 35 04 06 00 08 00 00 46 [14:34:10]Write i2c OK [14:34:10]MH_I2C_Read... [14:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:11]Read from MH i2c: E2 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 03 00 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 03 00 82 0C 00 90 00 02 [14:34:11]RAPDU: 90 00 [14:34:11]wFMCommunicate OK [14:34:11]wFMCommunicate request_size=10 [14:34:11]MH_SAM_APDU [14:34:11]CAPDU: 80 0D 02 02 05 F0 45 7E 7E CD [14:34:11]Write to MH i2c: E2 0D 00 83 0C 80 0D 02 02 05 00 F0 45 7E 7E CD 00 00 11 [14:34:11]Write i2c OK [14:34:11]MH_I2C_Read... [14:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:11]Read from MH i2c: E2 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 03 00 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 03 00 83 0C 00 90 00 03 [14:34:11]RAPDU: 90 00 [14:34:11]wFMCommunicate OK [14:34:11]wFMCommunicate request_size=4 [14:34:11]MH_SAM_APDU [14:34:11]CAPDU: 80 0D 03 02 [14:34:11]Write to MH i2c: E2 08 00 84 0C 80 0D 03 02 00 00 00 00 0B [14:34:11]Write i2c OK [14:34:11]MH_I2C_Read... [14:34:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:11]Read from MH i2c: E2 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 0B 00 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 0B 00 84 0C 00 D0 64 73 29 A1 79 21 E3 90 00 FA [14:34:11]RAPDU: D0 64 73 29 A1 79 21 E3 90 00 [14:34:11]wFMCommunicate OK [14:34:11]SAM_PROTO_SignData done [14:34:11]FM_MakeSignedData done [14:34:11]CreateOFDProtocolMessage [14:34:11]wFMCommunicate request_size=4 [14:34:11]MH_SAM_APDU [14:34:11]CAPDU: 80 11 00 00 [14:34:11]Write to MH i2c: E2 08 00 85 0C 80 11 00 00 00 00 00 00 0B [14:34:11]Write i2c OK [14:34:11]MH_I2C_Read... [14:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:11]Read from MH i2c: E2 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 17 00 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 17 00 85 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [14:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:34:11]wFMCommunicate OK [14:34:11]CreateOFDProtocolMessage done [14:34:11]OFDSenderStorePacket 139349 [14:34:11]StoreOFDPacket docnum=139349 [14:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7E AE 07 01 A3 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 60 6D 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 B8 00 00 00 F4 03 04 00 E3 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 20 02 00 35 04 06 00 08 F0 45 7E 7E CD D0 64 73 29 A1 79 21 E3 [14:34:11]CheckFolder [14:34:11]dirname=/storage/ofd_packets [14:34:11]CheckFolder done [14:34:11]ProducePacketName [14:34:11]name=ofd_packets/00139349 [14:34:11]NVStorageSaveData ofd_packets/00139349 [14:34:11]File name is /storage/ofd_packets/00139349 [14:34:11]Write 301 bytes [14:34:11]NVStorageSaveData done [14:34:11]OFDSenderStorePacket done [14:34:11]KKMCreateOFDPacket done [14:34:11]NVStorageSaveData kkm_last_timestamp [14:34:11]File name is /storage/kkm_last_timestamp [14:34:11]Write 4 bytes [14:34:11]NVStorageSaveData done [14:34:11]ExternCall_PrintAddStr [14:34:11]wPrintStart [14:34:11]Write to MH i2c: 01 00 00 86 0C 92 [14:34:11]Write i2c OK [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: 01 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: 01 07 00 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: 01 07 00 86 0C 00 00 00 00 00 FF 0F A7 [14:34:11]RasterBufferAndPrint [14:34:11]line Счет N : (1)593189 [14:34:11]line ИНН: 02508201610067 [14:34:11]line Контрольно-Кассовый Чек [14:34:11]line ПРОДАЖА [14:34:11]line ТРК (МРК, ГНК) : 32 [14:34:11]line Товар: 2710124130 [14:34:11]line Аи-92-К-5 [14:34:11]line 28.000 * 0.00 [14:34:11]line = 0.00 [14:34:11]line НДС 12% НСП 1% [14:34:11]line > о реализуемом товаре [14:34:11]line ИТОГО: 0.00 [14:34:11]line НСП 1% : 0.00 [14:34:11]line НДС 12% : 0.00 [14:34:11]line Наличными: 0.00 [14:34:11]line Безнал.: 0.00 [14:34:11]line Место: АЗС № 136 "Партнер Нефть" [14:34:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:34:11]line СНО: Общий режим [14:34:11]line Чек 184 19.08.2024 14:34 [14:34:11]line Смена: 452 ФФД: 1.0 [14:34:11]line ЗНМ: 0300000067 [14:34:11]line РНМ: 0000000000092569 [14:34:11]line Версия ККМ: 001 [14:34:11]line Талоны: Топливная Карта [14:34:11]line 99761 [14:34:11]line ФМ: 0000000000871776 [14:34:11]line ФД: 139349 [14:34:11]line ФПД: 9828051091149 [14:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T143411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139349&fm=9828051091149&tin=02508201610067®Number=0000000000092569&sum=0 [14:34:11]OFD Sender: Processing packet 139349 [packets to send 137, broken 136] [14:34:11]ProducePacketName [14:34:11]name=ofd_packets/00139349 [14:34:11]OFD Sender: To server: pG, [14:34:11]CommunicateWithHost lk.salyk.kg:30040 [14:34:11]ConnectInit lk.salyk.kg [14:34:11]written 0, free lines is 4095 [14:34:11]Connected sock=10 [14:34: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 37 36 0F 01 00 00 7E AE 07 01 A3 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 60 6D 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 B8 00 00 00 F4 03 04 00 E3 57 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 20 02 00 35 04 06 00 08 F0 45 7E 7E CD D0 64 73 29 A1 79 21 E3 [14:34: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 37 36 4F 00 00 00 46 30 47 00 94 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 37 36 10 04 04 00 55 20 02 00 F4 03 04 00 78 FE C2 66 B6 04 01 00 00 94 0E 89 22 F6 71 18 2F [14:34:12]CommunicateWithHost err = 0 [14:34:12]CheckOFDResponse [14:34:12]1017 (14) - 77093643461234 [14:34:12]1041 (16) - 0000000000871776 [14:34:12]1040 (4) - 139349 [14:34:12]1012 (4) - 19.08.2024 08:12 [14:34:12]1206 (1) - 0 [14:34:12]OFD Sender: Remove packet 139349 [14:34:12]ProducePacketName [14:34:12]name=ofd_packets/00139349 [14:34:12]NVStorageDeleteData [14:34:12]Write to MH i2c: 01 00 00 B0 0C BC [14:34:12]Write i2c OK [14:34:12]MH_I2C_Read... [14:34:12]Read from MH i2c: 01 [14:34:12]MH_I2C_Read... [14:34:12]Read from MH i2c: 01 07 00 [14:34:12]MH_I2C_Read... [14:34:12]Read from MH i2c: 01 07 00 B0 0C 00 00 00 00 00 EA 0C B9 [14:34:12]RasterBufferAndPrint [14:34:12]line [14:34:12]line [14:34:12]line [14:34:12]line [14:34:12]line [14:34:12]written 0, free lines is 3319 [14:34:12]MH_Cut [14:34:12]Write to MH i2c: D1 01 00 B7 0C 01 95 [14:34:12]Write i2c OK [14:34:12]MH_I2C_Read... [14:34:12]Read from MH i2c: D1 [14:34:12]MH_I2C_Read... [14:34:12]Read from MH i2c: D1 01 00 [14:34:12]MH_I2C_Read... [14:34:12]Read from MH i2c: D1 01 00 B7 0C 00 94 [14:34:12]Write to MH i2c: 01 00 00 B8 0C C4 [14:34:12]Write i2c OK [14:34:12]MH_I2C_Read... [14:34:12]OFD Sender: No OFD packet to send [14:34:12]*** Cut start [14:34:12]*** Partial cut [14:34:12]*** CUTSNS_PIN = 1 [14:34:12]*** CUTSNS_PIN = 0 [14:34:13]*** Brake cut motor [14:34:13]Read from MH i2c: 01 [14:34:13]MH_I2C_Read... [14:34:13]*** Stop cut motor [14:34:13]*** Cut end [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 B8 0C 00 00 00 00 00 FF 0F D9 [14:34:13]process_action close_receipt done [14:34:13]requested_data is exist [14:34:13]produce_requested_data [14:34:13]requested_item fm.sn is exist - process it [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 B9 0C 80 11 00 00 00 00 00 00 3F [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 B9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 96 [14:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:34:13]wFMCommunicate OK [14:34:13]requested_item fd.num is exist - process it [14:34:13]SAM_PROTO_GetFieldsCounters [14:34:13]wFMCommunicate request_size=4 [14:34:13]MH_SAM_APDU [14:34:13]CAPDU: 80 13 00 00 [14:34:13]Write to MH i2c: E2 08 00 BA 0C 80 13 00 00 00 00 00 00 42 [14:34:13]Write i2c OK [14:34:13]MH_I2C_Read... [14:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:13]Read from MH i2c: E2 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 62 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 62 00 BA 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [14:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:13]wFMCommunicate OK [14:34:13]SAM_PROTO_GetFieldsCounters done [14:34:13]requested_item shift.num is exist - process it [14:34:13]requested_item shift.opened is exist - process it [14:34:13]req_shift_opened [14:34:13]FM_GetShiftState [14:34:13]SAM_PROTO_GetShiftState [14:34:13]wFMCommunicate request_size=4 [14:34:13]MH_SAM_APDU [14:34:13]CAPDU: 80 13 01 00 [14:34:13]Write to MH i2c: E2 08 00 BB 0C 80 13 01 00 00 00 00 00 44 [14:34:13]Write i2c OK [14:34:13]MH_I2C_Read... [14:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:13]Read from MH i2c: E2 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 0E 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 0E 00 BB 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FB [14:34:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:34:13]wFMCommunicate OK [14:34:13]SAM_PROTO_GetShiftState done [14:34:13]FM_GetShiftState done [14:34:13]req_shift_opened done [14:34:13]requested_item shift.open_date is exist - process it [14:34:13]req_shift_open_date [14:34:13]req_shift_open_date done [14:34:13]produce_requested_data done [14:34:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139349,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:34:13]process_action_free close_receipt [14:34:13]json_value_free [14:34:13]json_value_free done [14:34:13]process_json_proto returns [14:34:13]Send response to host [14:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139349,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:34:13]free response buf [14:34:13]execute_script done [14:34:13]execute_script returns [14:34:13]free content buf [14:34:13]Sock 9.Close socket [14:34:13]Sock 9.Thread stoped [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]accept exits with 8 [14:41:08]New connection [14:41:08]New thread 3066674532 created [14:41:08]Thread 3066817892 joined [14:41:08]Waiting for new connection... [14:41:08] Sock 8.Parse request [14:41:08]Sock 8.Check first char [14:41:08]Sock 8.First char is OK [14:41:08]request: POST /json_proto HTTP/1.0 [14:41:08]Method: POST [14:41:08]URL: /json_proto [14:41:08]Method is POST - this is cgi request [14:41:08]url: /json_proto [14:41:08]query_string will be loaded in cgi processing [14:41:08]execute_cgi json_proto POST (null) [14:41:08]execute_cgi path=json_proto method=POST [14:41:08]POST find Content-Length [14:41:08]Host: 172.17.45.67:8080 [14:41:08]Content-Length: 687 [14:41:08]Content-Type: application/json [14:41:08] [14:41:08]POST finish read [14:41:08]Found Content-Length = 687 [14:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:41:08]execute_script... [14:41: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)593192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:41:08]POST & json_proto [14:41:08]process_json_proto [14:41:08]json parsed OK: [14:41:08]protocol is kg_v1.0 [14:41:08]action value=close_receipt [14:41:08]process_action close_receipt [14:41:08]cmd_close_receipt [14:41:08]MH_GetDate [14:41:08]Write to MH i2c: F0 00 00 BC 0C B7 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: F0 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: F0 09 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: F0 09 00 BC 0C 00 85 59 C3 66 5F 7F 2B 66 36 [14:41:08]GetLastDocTimeStamp 1724078051 [14:41:08]current date 1724078469 [14:41:08]FM_GetShiftState [14:41:08]SAM_PROTO_GetShiftState [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 13 01 00 [14:41:08]Write to MH i2c: E2 08 00 BD 0C 80 13 01 00 00 00 00 00 46 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 0E 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 0E 00 BD 0C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FD [14:41:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:41:08]wFMCommunicate OK [14:41:08]SAM_PROTO_GetShiftState done [14:41:08]FM_GetShiftState done [14:41:08]opened in 1724027888 [14:41:08]opened+sec_in_day 1724114288 [14:41:08]quantity*price = 100050 [14:41:08]sum+1 = 100052 [14:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 185 19.08.2024 14:41 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139350 ФПД: 147975624084914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144109&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139350&fm=147975624084914&tin=02508201610067®Number=0000000000092569&sum=100000 [14:41:09]StoreToDocumentArchive [14:41:09]shift 452 fd 139350 [14:41:09]save to /storage/0452/doc_00139350 [14:41:09]save last doc name /storage/0452/doc_00139350 to /storage/kkm_last_doc_name [14:41:09]save OK [14:41:09]Clear old archive folders... [14:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:41:09]tlvbuf is 0122C2A0 [14:41:09]SAM_PROTO_ClearQueue [14:41:09]wFMCommunicate request_size=4 [14:41:09]MH_SAM_APDU [14:41:09]CAPDU: 80 09 00 00 [14:41:09]Write to MH i2c: E2 08 00 CA 0C 80 09 00 00 00 00 00 00 48 [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:09]Read from MH i2c: E2 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 03 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 03 00 CA 0C 00 90 00 4A [14:41:09]RAPDU: 90 00 [14:41:09]wFMCommunicate OK [14:41:09]SAM_PROTO_ClearQueue done [14:41:09]KKMCreateOFDPacket [14:41:09]OFDProtocolAddRootSTLVToBuf [14:41:09]FM_MakeSignedData [14:41:09]FM_MakeSignedData [14:41:09]SAM_PROTO_SignData [14:41:09]wFMCommunicate request_size=4 [14:41:09]MH_SAM_APDU [14:41:09]CAPDU: 80 0D 01 02 [14:41:09]Write to MH i2c: E2 08 00 CB 0C 80 0D 01 02 00 00 00 00 50 [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:09]Read from MH i2c: E2 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 03 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 03 00 CB 0C 00 90 00 4B [14:41:09]RAPDU: 90 00 [14:41:09]wFMCommunicate OK [14:41:09]wFMCommunicate request_size=255 [14:41:09]MH_SAM_APDU [14:41:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 85 59 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 20 02 00 35 04 06 00 [14:41:09]Write to MH i2c: E2 02 01 CC 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 85 59 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 20 02 00 35 04 06 00 00 00 C4 [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:09]Read from MH i2c: E2 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 03 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 03 00 CC 0C 00 90 00 4C [14:41:09]RAPDU: 90 00 [14:41:09]wFMCommunicate OK [14:41:09]wFMCommunicate request_size=11 [14:41:09]MH_SAM_APDU [14:41:09]CAPDU: 80 0D 02 02 06 86 95 42 82 4D B2 [14:41:09]Write to MH i2c: E2 0E 00 CD 0C 80 0D 02 02 06 00 86 95 42 82 4D B2 00 00 3D [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:09]Read from MH i2c: E2 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 03 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 03 00 CD 0C 00 90 00 4D [14:41:09]RAPDU: 90 00 [14:41:09]wFMCommunicate OK [14:41:09]wFMCommunicate request_size=4 [14:41:09]MH_SAM_APDU [14:41:09]CAPDU: 80 0D 03 02 [14:41:09]Write to MH i2c: E2 08 00 CE 0C 80 0D 03 02 00 00 00 00 55 [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:09]Read from MH i2c: E2 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 0B 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 0B 00 CE 0C 00 67 15 DF A0 E0 BA 30 86 90 00 A1 [14:41:09]RAPDU: 67 15 DF A0 E0 BA 30 86 90 00 [14:41:09]wFMCommunicate OK [14:41:09]SAM_PROTO_SignData done [14:41:09]FM_MakeSignedData done [14:41:09]CreateOFDProtocolMessage [14:41:09]wFMCommunicate request_size=4 [14:41:09]MH_SAM_APDU [14:41:09]CAPDU: 80 11 00 00 [14:41:09]Write to MH i2c: E2 08 00 CF 0C 80 11 00 00 00 00 00 00 55 [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:09]Read from MH i2c: E2 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 17 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: E2 17 00 CF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [14:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:41:09]wFMCommunicate OK [14:41:09]CreateOFDProtocolMessage done [14:41:09]OFDSenderStorePacket 139350 [14:41:09]StoreOFDPacket docnum=139350 [14:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 CA 7E 08 01 EB 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 85 59 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 20 02 00 35 04 06 00 86 95 42 82 4D B2 67 15 DF A0 E0 BA 30 86 [14:41:09]CheckFolder [14:41:09]dirname=/storage/ofd_packets [14:41:09]CheckFolder done [14:41:09]ProducePacketName [14:41:09]name=ofd_packets/00139350 [14:41:09]NVStorageSaveData ofd_packets/00139350 [14:41:09]File name is /storage/ofd_packets/00139350 [14:41:09]Write 302 bytes [14:41:09]NVStorageSaveData done [14:41:09]OFDSenderStorePacket done [14:41:09]KKMCreateOFDPacket done [14:41:09]NVStorageSaveData kkm_last_timestamp [14:41:09]File name is /storage/kkm_last_timestamp [14:41:09]Write 4 bytes [14:41:09]NVStorageSaveData done [14:41:09]ExternCall_PrintAddStr [14:41:09]wPrintStart [14:41:09]Write to MH i2c: 01 00 00 D0 0C DC [14:41:09]Write i2c OK [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: 01 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: 01 07 00 [14:41:09]MH_I2C_Read... [14:41:09]Read from MH i2c: 01 07 00 D0 0C 00 00 00 00 00 FF 0F F1 [14:41:09]RasterBufferAndPrint [14:41:09]line Счет N : (1)593192 [14:41:09]line ИНН: 02508201610067 [14:41:09]line Контрольно-Кассовый Чек [14:41:09]line ПРОДАЖА [14:41:09]line ТРК (МРК, ГНК) : 34 [14:41:09]line Товар: 2710194210 [14:41:09]line ДТ(л)-К-5 [14:41:09]line 13.130 * 76.20 [14:41:09]line = 1000.51 [14:41:09]line НДС 12% НСП 1% [14:41:09]line > о реализуемом товаре [14:41:09]line ОКРУГЛЕНИЕ: -0.51 [14:41:09]line ИТОГО: 1000.00 [14:41:09]line Внесено: 1000.00 [14:41:09]line СДАЧА: 0.00 [14:41:09]line НСП 1% : 8.85 [14:41:09]line НДС 12% : 106.25 [14:41:09]line Наличными: 1000.00 [14:41:09]line Безнал.: 0.00 [14:41:09]line Место: АЗС № 136 "Партнер Нефть" [14:41:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:41:09]line СНО: Общий режим [14:41:09]line Чек 185 19.08.2024 14:41 [14:41:09]line Смена: 452 ФФД: 1.0 [14:41:09]line ЗНМ: 0300000067 [14:41:09]line РНМ: 0000000000092569 [14:41:09]line Версия ККМ: 001 [14:41:09]line ФМ: 0000000000871776 [14:41:09]line ФД: 139350 [14:41:09]line ФПД: 147975624084914 [14:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144109&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139350&fm=147975624084914&tin=02508201610067®Number=0000000000092569&sum=100000 [14:41:10]OFD Sender: Processing packet 139350 [packets to send 137, broken 136] [14:41:10]ProducePacketName [14:41:10]name=ofd_packets/00139350 [14:41:10]OFD Sender: To server: pG, [14:41:10]CommunicateWithHost lk.salyk.kg:30040 [14:41:10]ConnectInit lk.salyk.kg [14:41:10]written 0, free lines is 4095 [14:41:10]Connected sock=10 [14:41: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 37 36 10 01 00 00 CA 7E 08 01 EB 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 85 59 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 20 02 00 35 04 06 00 86 95 42 82 4D B2 67 15 DF A0 E0 BA 30 86 [14:41: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 37 36 4F 00 00 00 C3 34 47 00 3D 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 37 36 10 04 04 00 56 20 02 00 F4 03 04 00 1A 00 C3 66 B6 04 01 00 00 27 20 60 80 13 EA EF 41 [14:41:10]CommunicateWithHost err = 0 [14:41:10]CheckOFDResponse [14:41:10]1017 (14) - 77093643461234 [14:41:10]1041 (16) - 0000000000871776 [14:41:10]1040 (4) - 139350 [14:41:10]1012 (4) - 19.08.2024 08:19 [14:41:10]1206 (1) - 0 [14:41:10]OFD Sender: Remove packet 139350 [14:41:10]ProducePacketName [14:41:10]name=ofd_packets/00139350 [14:41:10]NVStorageDeleteData [14:41:10]Write to MH i2c: 01 00 00 FB 0C 07 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 07 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 E3 0C FD [14:41:10]RasterBufferAndPrint [14:41:10]line [14:41:10]line [14:41:10]line [14:41:10]line [14:41:10]line [14:41:10]written 0, free lines is 3305 [14:41:10]MH_Cut [14:41:10]Write to MH i2c: D1 01 00 02 0D 01 E1 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: D1 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: D1 01 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: D1 01 00 02 0D 00 E0 [14:41:10]Write to MH i2c: 01 00 00 03 0D 10 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:11]OFD Sender: No OFD packet to send [14:41:11]*** Cut start [14:41:11]*** Partial cut [14:41:11]*** CUTSNS_PIN = 1 [14:41:11]*** CUTSNS_PIN = 0 [14:41:11]*** Brake cut motor [14:41:11]Read from MH i2c: 01 [14:41:11]MH_I2C_Read... [14:41:11]*** Stop cut motor [14:41:11]*** Cut end [14:41:11]Read from MH i2c: 01 07 00 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: 01 07 00 03 0D 00 00 00 00 00 FF 0F 25 [14:41:11]process_action close_receipt done [14:41:11]requested_data is exist [14:41:11]produce_requested_data [14:41:11]requested_item fm.sn is exist - process it [14:41:11]wFMCommunicate request_size=4 [14:41:11]MH_SAM_APDU [14:41:11]CAPDU: 80 11 00 00 [14:41:11]Write to MH i2c: E2 08 00 04 0D 80 11 00 00 00 00 00 00 8B [14:41:11]Write i2c OK [14:41:11]MH_I2C_Read... [14:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:11]Read from MH i2c: E2 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 17 00 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 17 00 04 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [14:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:41:11]wFMCommunicate OK [14:41:11]requested_item fd.num is exist - process it [14:41:11]SAM_PROTO_GetFieldsCounters [14:41:11]wFMCommunicate request_size=4 [14:41:11]MH_SAM_APDU [14:41:11]CAPDU: 80 13 00 00 [14:41:11]Write to MH i2c: E2 08 00 05 0D 80 13 00 00 00 00 00 00 8E [14:41:11]Write i2c OK [14:41:11]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 62 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 62 00 05 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [14:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:12]wFMCommunicate OK [14:41:12]SAM_PROTO_GetFieldsCounters done [14:41:12]requested_item shift.num is exist - process it [14:41:12]requested_item shift.opened is exist - process it [14:41:12]req_shift_opened [14:41:12]FM_GetShiftState [14:41:12]SAM_PROTO_GetShiftState [14:41:12]wFMCommunicate request_size=4 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 13 01 00 [14:41:12]Write to MH i2c: E2 08 00 06 0D 80 13 01 00 00 00 00 00 90 [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 0E 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 0E 00 06 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 47 [14:41:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:41:12]wFMCommunicate OK [14:41:12]SAM_PROTO_GetShiftState done [14:41:12]FM_GetShiftState done [14:41:12]req_shift_opened done [14:41:12]requested_item shift.open_date is exist - process it [14:41:12]req_shift_open_date [14:41:12]req_shift_open_date done [14:41:12]produce_requested_data done [14:41:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139350,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:41:12]process_action_free close_receipt [14:41:12]json_value_free [14:41:12]json_value_free done [14:41:12]process_json_proto returns [14:41:12]Send response to host [14:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139350,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:41:12]free response buf [14:41:12]execute_script done [14:41:12]execute_script returns [14:41:12]free content buf [14:41:12]Sock 8.Close socket [14:41:12]Sock 8.Thread stoped [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:40]accept exits with 9 [14:42:40]New connection [14:42:40]New thread 3066817892 created [14:42:40]Thread 3066674532 joined [14:42:40]Waiting for new connection... [14:42:40] Sock 9.Parse request [14:42:40]Sock 9.Check first char [14:42:40]Sock 9.First char is OK [14:42:40]request: POST /json_proto HTTP/1.0 [14:42:40]Method: POST [14:42:40]URL: /json_proto [14:42:40]Method is POST - this is cgi request [14:42:40]url: /json_proto [14:42:40]query_string will be loaded in cgi processing [14:42:40]execute_cgi json_proto POST (null) [14:42:40]execute_cgi path=json_proto method=POST [14:42:40]POST find Content-Length [14:42:40]Host: 172.17.45.67:8080 [14:42:40]Content-Length: 682 [14:42:40]Content-Type: application/json [14:42:40] [14:42:40]POST finish read [14:42:40]Found Content-Length = 682 [14:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:42:40]execute_script... [14:42: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)593193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:42:40]POST & json_proto [14:42:40]process_json_proto [14:42:40]json parsed OK: [14:42:40]protocol is kg_v1.0 [14:42:40]action value=close_receipt [14:42:40]process_action close_receipt [14:42:40]cmd_close_receipt [14:42:40]MH_GetDate [14:42:40]Write to MH i2c: F0 00 00 07 0D 03 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: F0 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: F0 09 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: F0 09 00 07 0D 00 E2 59 C3 66 5F 7F 2B 66 DF [14:42:40]GetLastDocTimeStamp 1724078469 [14:42:40]current date 1724078562 [14:42:40]FM_GetShiftState [14:42:40]SAM_PROTO_GetShiftState [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 13 01 00 [14:42:40]Write to MH i2c: E2 08 00 08 0D 80 13 01 00 00 00 00 00 92 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0E 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0E 00 08 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 49 [14:42:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_GetShiftState done [14:42:40]FM_GetShiftState done [14:42:40]opened in 1724027888 [14:42:40]opened+sec_in_day 1724114288 [14:42:40]quantity*price = 100021 [14:42:40]sum+1 = 100023 [14:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 186 19.08.2024 14:42 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139351 ФПД: 219496619084286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144242&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139351&fm=219496619084286&tin=02508201610067®Number=0000000000092569&sum=100000 [14:42:42]StoreToDocumentArchive [14:42:42]shift 452 fd 139351 [14:42:42]save to /storage/0452/doc_00139351 [14:42:42]save last doc name /storage/0452/doc_00139351 to /storage/kkm_last_doc_name [14:42:42]save OK [14:42:42]Clear old archive folders... [14:42:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:42]tlvbuf is 011E8C40 [14:42:42]SAM_PROTO_ClearQueue [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 09 00 00 [14:42:42]Write to MH i2c: E2 08 00 15 0D 80 09 00 00 00 00 00 00 94 [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 03 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 03 00 15 0D 00 90 00 96 [14:42:42]RAPDU: 90 00 [14:42:42]wFMCommunicate OK [14:42:42]SAM_PROTO_ClearQueue done [14:42:42]KKMCreateOFDPacket [14:42:42]OFDProtocolAddRootSTLVToBuf [14:42:42]FM_MakeSignedData [14:42:42]FM_MakeSignedData [14:42:42]SAM_PROTO_SignData [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 0D 01 02 [14:42:42]Write to MH i2c: E2 08 00 16 0D 80 0D 01 02 00 00 00 00 9C [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 03 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 03 00 16 0D 00 90 00 97 [14:42:42]RAPDU: 90 00 [14:42:42]wFMCommunicate OK [14:42:42]wFMCommunicate request_size=255 [14:42:42]MH_SAM_APDU [14:42: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E2 59 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 20 02 00 35 04 06 00 C7 [14:42:42]Write to MH i2c: E2 02 01 17 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E2 59 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 20 02 00 35 04 06 00 C7 00 00 75 [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 03 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 03 00 17 0D 00 90 00 98 [14:42:42]RAPDU: 90 00 [14:42:42]wFMCommunicate OK [14:42:42]wFMCommunicate request_size=10 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 0D 02 02 05 A1 8A 02 89 FE [14:42:42]Write to MH i2c: E2 0D 00 18 0D 80 0D 02 02 05 00 A1 8A 02 89 FE 00 00 5D [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 03 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 03 00 18 0D 00 90 00 99 [14:42:42]RAPDU: 90 00 [14:42:42]wFMCommunicate OK [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 0D 03 02 [14:42:42]Write to MH i2c: E2 08 00 19 0D 80 0D 03 02 00 00 00 00 A1 [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0B 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0B 00 19 0D 00 F3 32 C6 B8 1E 3E 27 09 90 00 D1 [14:42:42]RAPDU: F3 32 C6 B8 1E 3E 27 09 90 00 [14:42:42]wFMCommunicate OK [14:42:42]SAM_PROTO_SignData done [14:42:42]FM_MakeSignedData done [14:42:42]CreateOFDProtocolMessage [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 11 00 00 [14:42:42]Write to MH i2c: E2 08 00 1A 0D 80 11 00 00 00 00 00 00 A1 [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 17 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 17 00 1A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F8 [14:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:42:42]wFMCommunicate OK [14:42:42]CreateOFDProtocolMessage done [14:42:42]OFDSenderStorePacket 139351 [14:42:42]StoreOFDPacket docnum=139351 [14:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7E CD 07 01 75 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E2 59 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 20 02 00 35 04 06 00 C7 A1 8A 02 89 FE F3 32 C6 B8 1E 3E 27 09 [14:42:42]CheckFolder [14:42:42]dirname=/storage/ofd_packets [14:42:42]CheckFolder done [14:42:42]ProducePacketName [14:42:42]name=ofd_packets/00139351 [14:42:42]NVStorageSaveData ofd_packets/00139351 [14:42:42]File name is /storage/ofd_packets/00139351 [14:42:42]Write 301 bytes [14:42:42]NVStorageSaveData done [14:42:42]OFDSenderStorePacket done [14:42:42]KKMCreateOFDPacket done [14:42:42]NVStorageSaveData kkm_last_timestamp [14:42:42]File name is /storage/kkm_last_timestamp [14:42:42]Write 4 bytes [14:42:42]NVStorageSaveData done [14:42:42]ExternCall_PrintAddStr [14:42:42]wPrintStart [14:42:42]Write to MH i2c: 01 00 00 1B 0D 28 [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: 01 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: 01 07 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: 01 07 00 1B 0D 00 00 00 00 00 FF 0F 3D [14:42:42]RasterBufferAndPrint [14:42:42]line Счет N : (1)593193 [14:42:42]line ИНН: 02508201610067 [14:42:42]line Контрольно-Кассовый Чек [14:42:42]line ПРОДАЖА [14:42:42]line ТРК (МРК, ГНК) : 61 [14:42:42]line Товар: 2710124500 [14:42:42]line Аи-95-К-5 [14:42:42]line 13.480 * 74.20 [14:42:42]line = 1000.22 [14:42:42]line НДС 12% НСП 1% [14:42:42]line > о реализуемом товаре [14:42:42]line ОКРУГЛЕНИЕ: -0.22 [14:42:42]line ИТОГО: 1000.00 [14:42:42]line Внесено: 1000.00 [14:42:42]line СДАЧА: 0.00 [14:42:42]line НСП 1% : 8.85 [14:42:42]line НДС 12% : 106.22 [14:42:42]line Наличными: 1000.00 [14:42:42]line Безнал.: 0.00 [14:42:42]line Место: АЗС № 136 "Партнер Нефть" [14:42:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:42:42]line СНО: Общий режим [14:42:42]line Чек 186 19.08.2024 14:42 [14:42:42]line Смена: 452 ФФД: 1.0 [14:42:42]line ЗНМ: 0300000067 [14:42:42]line РНМ: 0000000000092569 [14:42:42]line Версия ККМ: 001 [14:42:42]line ФМ: 0000000000871776 [14:42:42]line ФД: 139351 [14:42:42]line ФПД: 219496619084286 [14:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144242&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139351&fm=219496619084286&tin=02508201610067®Number=0000000000092569&sum=100000 [14:42:42]OFD Sender: Processing packet 139351 [packets to send 137, broken 136] [14:42:42]ProducePacketName [14:42:42]name=ofd_packets/00139351 [14:42:42]OFD Sender: To server: pG, [14:42:42]CommunicateWithHost lk.salyk.kg:30040 [14:42:42]ConnectInit lk.salyk.kg [14:42:42]written 0, free lines is 4095 [14:42:43]Connected sock=10 [14:42: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 37 36 0F 01 00 00 7E CD 07 01 75 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E2 59 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 20 02 00 35 04 06 00 C7 A1 8A 02 89 FE F3 32 C6 B8 1E 3E 27 09 [14:42: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 37 36 4F 00 00 00 10 09 47 00 31 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 37 36 10 04 04 00 57 20 02 00 F4 03 04 00 77 00 C3 66 B6 04 01 00 00 EC 4D 2A 31 1A 16 5D B2 [14:42:43]CommunicateWithHost err = 0 [14:42:43]CheckOFDResponse [14:42:43]1017 (14) - 77093643461234 [14:42:43]1041 (16) - 0000000000871776 [14:42:43]1040 (4) - 139351 [14:42:43]1012 (4) - 19.08.2024 08:21 [14:42:43]1206 (1) - 0 [14:42:43]OFD Sender: Remove packet 139351 [14:42:43]ProducePacketName [14:42:43]name=ofd_packets/00139351 [14:42:43]NVStorageDeleteData [14:42:43]Write to MH i2c: 01 00 00 46 0D 53 [14:42:43]Write i2c OK [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: 01 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: 01 07 00 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 E0 0C 46 [14:42:43]RasterBufferAndPrint [14:42:43]line [14:42:43]line [14:42:43]line [14:42:43]line [14:42:43]line [14:42:43]written 0, free lines is 3302 [14:42:43]MH_Cut [14:42:43]Write to MH i2c: D1 01 00 4D 0D 01 2C [14:42:43]Write i2c OK [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: D1 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: D1 01 00 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: D1 01 00 4D 0D 00 2B [14:42:43]Write to MH i2c: 01 00 00 4E 0D 5B [14:42:43]Write i2c OK [14:42:43]MH_I2C_Read... [14:42:43]OFD Sender: No OFD packet to send [14:42:44]*** Cut start [14:42:44]*** Partial cut [14:42:44]*** CUTSNS_PIN = 1 [14:42:44]*** CUTSNS_PIN = 0 [14:42:44]*** Brake cut motor [14:42:44]Read from MH i2c: 01 [14:42:44]MH_I2C_Read... [14:42:44]*** Stop cut motor [14:42:44]*** Cut end [14:42:44]Read from MH i2c: 01 07 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: 01 07 00 4E 0D 00 00 00 00 00 FF 0F 70 [14:42:44]process_action close_receipt done [14:42:44]requested_data is exist [14:42:44]produce_requested_data [14:42:44]requested_item fm.sn is exist - process it [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 11 00 00 [14:42:44]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 17 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2D [14:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:42:44]wFMCommunicate OK [14:42:44]requested_item fd.num is exist - process it [14:42:44]SAM_PROTO_GetFieldsCounters [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 13 00 00 [14:42:44]Write to MH i2c: E2 08 00 50 0D 80 13 00 00 00 00 00 00 D9 [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 62 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 62 00 50 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [14:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:44]wFMCommunicate OK [14:42:44]SAM_PROTO_GetFieldsCounters done [14:42:44]requested_item shift.num is exist - process it [14:42:44]requested_item shift.opened is exist - process it [14:42:44]req_shift_opened [14:42:44]FM_GetShiftState [14:42:44]SAM_PROTO_GetShiftState [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 13 01 00 [14:42:44]Write to MH i2c: E2 08 00 51 0D 80 13 01 00 00 00 00 00 DB [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:44]Read from MH i2c: E2 0E 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 0E 00 51 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 92 [14:42:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:42:44]wFMCommunicate OK [14:42:44]SAM_PROTO_GetShiftState done [14:42:44]FM_GetShiftState done [14:42:44]req_shift_opened done [14:42:44]requested_item shift.open_date is exist - process it [14:42:44]req_shift_open_date [14:42:44]req_shift_open_date done [14:42:44]produce_requested_data done [14:42:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139351,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:42:44]process_action_free close_receipt [14:42:44]json_value_free [14:42:44]json_value_free done [14:42:44]process_json_proto returns [14:42:44]Send response to host [14:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139351,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:42:44]free response buf [14:42:44]execute_script done [14:42:44]execute_script returns [14:42:44]free content buf [14:42:44]Sock 9.Close socket [14:42:44]Sock 9.Thread stoped [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:19]accept exits with 8 [14:43:19]New connection [14:43:19]New thread 3066674532 created [14:43:19]Thread 3066817892 joined [14:43:19]Waiting for new connection... [14:43:19] Sock 8.Parse request [14:43:19]Sock 8.Check first char [14:43:19]Sock 8.First char is OK [14:43:19]request: POST /json_proto HTTP/1.0 [14:43:19]Method: POST [14:43:19]URL: /json_proto [14:43:19]Method is POST - this is cgi request [14:43:19]url: /json_proto [14:43:19]query_string will be loaded in cgi processing [14:43:19]execute_cgi json_proto POST (null) [14:43:19]execute_cgi path=json_proto method=POST [14:43:19]POST find Content-Length [14:43:19]Host: 172.17.45.67:8080 [14:43:19]Content-Length: 818 [14:43:19]Content-Type: application/json [14:43:19] [14:43:19]POST finish read [14:43:19]Found Content-Length = 818 [14:43:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.360, "sum" : 499.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 499.00, "payments": [ { "type": 1, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:19]execute_script... [14:43: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)593194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.360, "sum" : 499.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 499.00, "payments": [ { "type": 1, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:19]POST & json_proto [14:43:19]process_json_proto [14:43:19]json parsed OK: [14:43:19]protocol is kg_v1.0 [14:43:19]action value=close_receipt [14:43:19]process_action close_receipt [14:43:19]cmd_close_receipt [14:43:19]MH_GetDate [14:43:19]Write to MH i2c: F0 00 00 52 0D 4E [14:43:19]Write i2c OK [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: F0 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: F0 09 00 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: F0 09 00 52 0D 00 08 5A C3 66 5F 7F 2B 66 51 [14:43:19]GetLastDocTimeStamp 1724078562 [14:43:19]current date 1724078600 [14:43:19]FM_GetShiftState [14:43:19]SAM_PROTO_GetShiftState [14:43:19]wFMCommunicate request_size=4 [14:43:19]MH_SAM_APDU [14:43:19]CAPDU: 80 13 01 00 [14:43:19]Write to MH i2c: E2 08 00 53 0D 80 13 01 00 00 00 00 00 DD [14:43:19]Write i2c OK [14:43:19]MH_I2C_Read... [14:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:19]Read from MH i2c: E2 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: E2 0E 00 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: E2 0E 00 53 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 94 [14:43:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:43:19]wFMCommunicate OK [14:43:19]SAM_PROTO_GetShiftState done [14:43:19]FM_GetShiftState done [14:43:19]opened in 1724027888 [14:43:19]opened+sec_in_day 1724114288 [14:43:19]quantity*price = 49900 [14:43:19]sum+1 = 49902 [14:43:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 499.00 НСП 1% : 4.42 НДС 12% : 52.99 Наличными: 0.00 Безнал.: 499.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 187 19.08.2024 14:43 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139352 ФПД: 76798566568509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144320&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139352&fm=76798566568509&tin=02508201610067®Number=0000000000092569&sum=49900 [14:43:20]StoreToDocumentArchive [14:43:20]shift 452 fd 139352 [14:43:20]save to /storage/0452/doc_00139352 [14:43:20]save last doc name /storage/0452/doc_00139352 to /storage/kkm_last_doc_name [14:43:20]save OK [14:43:20]Clear old archive folders... [14:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:20]tlvbuf is 01206840 [14:43:20]SAM_PROTO_ClearQueue [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 09 00 00 [14:43:20]Write to MH i2c: E2 08 00 60 0D 80 09 00 00 00 00 00 00 DF [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 03 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 03 00 60 0D 00 90 00 E1 [14:43:20]RAPDU: 90 00 [14:43:20]wFMCommunicate OK [14:43:20]SAM_PROTO_ClearQueue done [14:43:20]KKMCreateOFDPacket [14:43:20]OFDProtocolAddRootSTLVToBuf [14:43:20]FM_MakeSignedData [14:43:20]FM_MakeSignedData [14:43:20]SAM_PROTO_SignData [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 0D 01 02 [14:43:20]Write to MH i2c: E2 08 00 61 0D 80 0D 01 02 00 00 00 00 E7 [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 03 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 03 00 61 0D 00 90 00 E2 [14:43:20]RAPDU: 90 00 [14:43:20]wFMCommunicate OK [14:43:20]wFMCommunicate request_size=255 [14:43:20]MH_SAM_APDU [14:43: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 C0 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED C2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC C2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 08 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 20 02 00 35 04 06 00 45 [14:43:20]Write to MH i2c: E2 02 01 62 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED C2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC C2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 08 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 20 02 00 35 04 06 00 45 00 00 C4 [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 03 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 03 00 62 0D 00 90 00 E3 [14:43:21]RAPDU: 90 00 [14:43:21]wFMCommunicate OK [14:43:21]wFMCommunicate request_size=10 [14:43:21]MH_SAM_APDU [14:43:21]CAPDU: 80 0D 02 02 05 D9 0F 47 92 3D [14:43:21]Write to MH i2c: E2 0D 00 63 0D 80 0D 02 02 05 00 D9 0F 47 92 3D 00 00 F2 [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 03 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 03 00 63 0D 00 90 00 E4 [14:43:21]RAPDU: 90 00 [14:43:21]wFMCommunicate OK [14:43:21]wFMCommunicate request_size=4 [14:43:21]MH_SAM_APDU [14:43:21]CAPDU: 80 0D 03 02 [14:43:21]Write to MH i2c: E2 08 00 64 0D 80 0D 03 02 00 00 00 00 EC [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 0B 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 0B 00 64 0D 00 BB 94 5F BF 5A D0 83 8E 90 00 95 [14:43:21]RAPDU: BB 94 5F BF 5A D0 83 8E 90 00 [14:43:21]wFMCommunicate OK [14:43:21]SAM_PROTO_SignData done [14:43:21]FM_MakeSignedData done [14:43:21]CreateOFDProtocolMessage [14:43:21]wFMCommunicate request_size=4 [14:43:21]MH_SAM_APDU [14:43:21]CAPDU: 80 11 00 00 [14:43:21]Write to MH i2c: E2 08 00 65 0D 80 11 00 00 00 00 00 00 EC [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 17 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 17 00 65 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [14:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:43:21]wFMCommunicate OK [14:43:21]CreateOFDProtocolMessage done [14:43:21]OFDSenderStorePacket 139352 [14:43:21]StoreOFDPacket docnum=139352 [14:43:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8A 41 07 01 5A 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 C0 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED C2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC C2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 08 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 20 02 00 35 04 06 00 45 D9 0F 47 92 3D BB 94 5F BF 5A D0 83 8E [14:43:21]CheckFolder [14:43:21]dirname=/storage/ofd_packets [14:43:21]CheckFolder done [14:43:21]ProducePacketName [14:43:21]name=ofd_packets/00139352 [14:43:21]NVStorageSaveData ofd_packets/00139352 [14:43:21]File name is /storage/ofd_packets/00139352 [14:43:21]Write 301 bytes [14:43:21]NVStorageSaveData done [14:43:21]OFDSenderStorePacket done [14:43:21]KKMCreateOFDPacket done [14:43:21]NVStorageSaveData kkm_last_timestamp [14:43:21]File name is /storage/kkm_last_timestamp [14:43:21]Write 4 bytes [14:43:21]NVStorageSaveData done [14:43:21]ExternCall_PrintAddStr [14:43:21]wPrintStart [14:43:21]Write to MH i2c: 01 00 00 66 0D 73 [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: 01 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: 01 07 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: 01 07 00 66 0D 00 00 00 00 00 FF 0F 88 [14:43:21]RasterBufferAndPrint [14:43:21]line Счет N : (1)593194 [14:43:21]line ИНН: 02508201610067 [14:43:21]line Контрольно-Кассовый Чек [14:43:21]line ПРОДАЖА [14:43:21]line ТРК (МРК, ГНК) : 52 [14:43:21]line Товар: 2710124130 [14:43:21]line Аи-92-К-5 [14:43:21]line 7.360 * 67.80 [14:43:21]line = 499.01 [14:43:21]line НДС 12% НСП 1% [14:43:21]line > о реализуемом товаре [14:43:21]line ОКРУГЛЕНИЕ: -0.01 [14:43:21]line ИТОГО: 499.00 [14:43:21]line НСП 1% : 4.42 [14:43:21]line НДС 12% : 52.99 [14:43:21]line Наличными: 0.00 [14:43:21]line Безнал.: 499.00 [14:43:21]line Место: АЗС № 136 "Партнер Нефть" [14:43:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:43:21]line СНО: Общий режим [14:43:21]line Чек 187 19.08.2024 14:43 [14:43:21]line Смена: 452 ФФД: 1.0 [14:43:21]line ЗНМ: 0300000067 [14:43:21]line РНМ: 0000000000092569 [14:43:21]line Версия ККМ: 001 [14:43:21]line Платежная система: O! деньги [14:43:21]line ФМ: 0000000000871776 [14:43:21]line ФД: 139352 [14:43:21]line ФПД: 76798566568509 [14:43:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144320&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139352&fm=76798566568509&tin=02508201610067®Number=0000000000092569&sum=49900 [14:43:21]written 0, free lines is 4095 [14:43:21]OFD Sender: Processing packet 139352 [packets to send 137, broken 136] [14:43:21]ProducePacketName [14:43:21]name=ofd_packets/00139352 [14:43:21]OFD Sender: To server: pG, [14:43:21]CommunicateWithHost lk.salyk.kg:30040 [14:43:21]ConnectInit lk.salyk.kg [14:43:21]Connected sock=10 [14:43: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 37 36 0F 01 00 00 8A 41 07 01 5A 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 C0 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED C2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC C2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 08 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 20 02 00 35 04 06 00 45 D9 0F 47 92 3D BB 94 5F BF 5A D0 83 8E [14:43: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 37 36 4F 00 00 00 BC 5A 47 00 60 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 20 02 00 F4 03 04 00 9E 00 C3 66 B6 04 01 00 00 C6 61 50 A6 1B 88 7C C5 [14:43:21]CommunicateWithHost err = 0 [14:43:21]CheckOFDResponse [14:43:21]1017 (14) - 77093643461234 [14:43:21]1041 (16) - 0000000000871776 [14:43:21]1040 (4) - 139352 [14:43:21]1012 (4) - 19.08.2024 08:21 [14:43:21]1206 (1) - 0 [14:43:21]OFD Sender: Remove packet 139352 [14:43:21]ProducePacketName [14:43:21]name=ofd_packets/00139352 [14:43:21]NVStorageDeleteData [14:43:22]Write to MH i2c: 01 00 00 91 0D 9E [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 07 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 DC 0C 8D [14:43:22]RasterBufferAndPrint [14:43:22]line [14:43:22]line [14:43:22]line [14:43:22]line [14:43:22]line [14:43:22]written 0, free lines is 3298 [14:43:22]MH_Cut [14:43:22]Write to MH i2c: D1 01 00 98 0D 01 77 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: D1 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: D1 01 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: D1 01 00 98 0D 00 76 [14:43:22]Write to MH i2c: 01 00 00 99 0D A6 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]OFD Sender: No OFD packet to send [14:43:22]*** Cut start [14:43:22]*** Partial cut [14:43:22]*** CUTSNS_PIN = 1 [14:43:22]*** CUTSNS_PIN = 0 [14:43:22]*** Brake cut motor [14:43:23]Read from MH i2c: 01 [14:43:23]MH_I2C_Read... [14:43:23]*** Stop cut motor [14:43:23]*** Cut end [14:43:23]Read from MH i2c: 01 07 00 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: 01 07 00 99 0D 00 00 00 00 00 FF 0F BB [14:43:23]process_action close_receipt done [14:43:23]requested_data is exist [14:43:23]produce_requested_data [14:43:23]requested_item fm.sn is exist - process it [14:43:23]wFMCommunicate request_size=4 [14:43:23]MH_SAM_APDU [14:43:23]CAPDU: 80 11 00 00 [14:43:23]Write to MH i2c: E2 08 00 9A 0D 80 11 00 00 00 00 00 00 21 [14:43:23]Write i2c OK [14:43:23]MH_I2C_Read... [14:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:23]Read from MH i2c: E2 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: E2 17 00 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: E2 17 00 9A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 78 [14:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:43:23]wFMCommunicate OK [14:43:23]requested_item fd.num is exist - process it [14:43:23]SAM_PROTO_GetFieldsCounters [14:43:23]wFMCommunicate request_size=4 [14:43:23]MH_SAM_APDU [14:43:23]CAPDU: 80 13 00 00 [14:43:23]Write to MH i2c: E2 08 00 9B 0D 80 13 00 00 00 00 00 00 24 [14:43:23]Write i2c OK [14:43:23]MH_I2C_Read... [14:43:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:23]Read from MH i2c: E2 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: E2 62 00 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: E2 62 00 9B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [14:43: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:23]wFMCommunicate OK [14:43:23]SAM_PROTO_GetFieldsCounters done [14:43:23]requested_item shift.num is exist - process it [14:43:23]requested_item shift.opened is exist - process it [14:43:23]req_shift_opened [14:43:23]FM_GetShiftState [14:43:23]SAM_PROTO_GetShiftState [14:43:23]wFMCommunicate request_size=4 [14:43:23]MH_SAM_APDU [14:43:23]CAPDU: 80 13 01 00 [14:43:23]Write to MH i2c: E2 08 00 9C 0D 80 13 01 00 00 00 00 00 26 [14:43:23]Write i2c OK [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: E2 [14:43:23]MH_I2C_Read... [14:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:23]Read from MH i2c: E2 0E 00 [14:43:23]MH_I2C_Read... [14:43:23]Read from MH i2c: E2 0E 00 9C 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DD [14:43:23]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:43:23]wFMCommunicate OK [14:43:23]SAM_PROTO_GetShiftState done [14:43:23]FM_GetShiftState done [14:43:23]req_shift_opened done [14:43:23]requested_item shift.open_date is exist - process it [14:43:23]req_shift_open_date [14:43:23]req_shift_open_date done [14:43:23]produce_requested_data done [14:43:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139352,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:43:23]process_action_free close_receipt [14:43:23]json_value_free [14:43:23]json_value_free done [14:43:23]process_json_proto returns [14:43:23]Send response to host [14:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139352,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:43:23]free response buf [14:43:23]execute_script done [14:43:23]execute_script returns [14:43:23]free content buf [14:43:23]Sock 8.Close socket [14:43:23]Sock 8.Thread stoped [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:55]accept exits with 9 [14:44:55]New connection [14:44:55]New thread 3066817892 created [14:44:55]Thread 3066674532 joined [14:44:55]Waiting for new connection... [14:44:55] Sock 9.Parse request [14:44:55]Sock 9.Check first char [14:44:55]Sock 9.First char is OK [14:44:55]request: POST /json_proto HTTP/1.0 [14:44:55]Method: POST [14:44:55]URL: /json_proto [14:44:55]Method is POST - this is cgi request [14:44:55]url: /json_proto [14:44:55]query_string will be loaded in cgi processing [14:44:55]execute_cgi json_proto POST (null) [14:44:55]execute_cgi path=json_proto method=POST [14:44:55]POST find Content-Length [14:44:55]Host: 172.17.45.67:8080 [14:44:55]Content-Length: 677 [14:44:55]Content-Type: application/json [14:44:55] [14:44:55]POST finish read [14:44:55]Found Content-Length = 677 [14:44:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:44:55]execute_script... [14:44: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)593195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:44:55]POST & json_proto [14:44:55]process_json_proto [14:44:55]json parsed OK: [14:44:55]protocol is kg_v1.0 [14:44:55]action value=close_receipt [14:44:55]process_action close_receipt [14:44:55]cmd_close_receipt [14:44:55]MH_GetDate [14:44:55]Write to MH i2c: F0 00 00 9D 0D 99 [14:44:55]Write i2c OK [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: F0 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: F0 09 00 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: F0 09 00 9D 0D 00 68 5A C3 66 5F 7F 2B 66 FC [14:44:55]GetLastDocTimeStamp 1724078600 [14:44:55]current date 1724078696 [14:44:55]FM_GetShiftState [14:44:55]SAM_PROTO_GetShiftState [14:44:55]wFMCommunicate request_size=4 [14:44:55]MH_SAM_APDU [14:44:55]CAPDU: 80 13 01 00 [14:44:55]Write to MH i2c: E2 08 00 9E 0D 80 13 01 00 00 00 00 00 28 [14:44:55]Write i2c OK [14:44:55]MH_I2C_Read... [14:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:55]Read from MH i2c: E2 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: E2 0E 00 [14:44:55]MH_I2C_Read... [14:44:55]Read from MH i2c: E2 0E 00 9E 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DF [14:44:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:44:55]wFMCommunicate OK [14:44:55]SAM_PROTO_GetShiftState done [14:44:55]FM_GetShiftState done [14:44:55]opened in 1724027888 [14:44:55]opened+sec_in_day 1724114288 [14:44:55]quantity*price = 40002 [14:44:55]sum+1 = 40003 [14:44:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 188 19.08.2024 14:44 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139353 ФПД: 168318727927839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144456&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139353&fm=168318727927839&tin=02508201610067®Number=0000000000092569&sum=40000 [14:44:56]StoreToDocumentArchive [14:44:56]shift 452 fd 139353 [14:44:56]save to /storage/0452/doc_00139353 [14:44:56]save last doc name /storage/0452/doc_00139353 to /storage/kkm_last_doc_name [14:44:56]save OK [14:44:56]Clear old archive folders... [14:44:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:56]tlvbuf is 012787E0 [14:44:56]SAM_PROTO_ClearQueue [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 09 00 00 [14:44:56]Write to MH i2c: E2 08 00 AB 0D 80 09 00 00 00 00 00 00 2A [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 AB 0D 00 90 00 2C [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]SAM_PROTO_ClearQueue done [14:44:56]KKMCreateOFDPacket [14:44:56]OFDProtocolAddRootSTLVToBuf [14:44:56]FM_MakeSignedData [14:44:56]FM_MakeSignedData [14:44:56]SAM_PROTO_SignData [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 01 02 [14:44:56]Write to MH i2c: E2 08 00 AC 0D 80 0D 01 02 00 00 00 00 32 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 AC 0D 00 90 00 2D [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]wFMCommunicate request_size=255 [14:44:56]MH_SAM_APDU [14:44: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 BC 00 00 00 F4 03 04 00 68 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 20 02 00 35 04 06 00 99 [14:44:56]Write to MH i2c: E2 02 01 AD 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 BC 00 00 00 F4 03 04 00 68 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 20 02 00 35 04 06 00 99 00 00 20 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 AD 0D 00 90 00 2E [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]wFMCommunicate request_size=10 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 02 02 05 15 C1 FC B8 1F [14:44:56]Write to MH i2c: E2 0D 00 AE 0D 80 0D 02 02 05 00 15 C1 FC B8 1F 00 00 E8 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 AE 0D 00 90 00 2F [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 03 02 [14:44:56]Write to MH i2c: E2 08 00 AF 0D 80 0D 03 02 00 00 00 00 37 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 0B 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 0B 00 AF 0D 00 05 D0 E9 6D 8E 07 0B 97 90 00 9A [14:44:56]RAPDU: 05 D0 E9 6D 8E 07 0B 97 90 00 [14:44:56]wFMCommunicate OK [14:44:56]SAM_PROTO_SignData done [14:44:56]FM_MakeSignedData done [14:44:56]CreateOFDProtocolMessage [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 11 00 00 [14:44:56]Write to MH i2c: E2 08 00 B0 0D 80 11 00 00 00 00 00 00 37 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 17 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 17 00 B0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8E [14:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:44:56]wFMCommunicate OK [14:44:56]CreateOFDProtocolMessage done [14:44:56]OFDSenderStorePacket 139353 [14:44:56]StoreOFDPacket docnum=139353 [14:44:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8E 64 07 01 6A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 BC 00 00 00 F4 03 04 00 68 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 20 02 00 35 04 06 00 99 15 C1 FC B8 1F 05 D0 E9 6D 8E 07 0B 97 [14:44:56]CheckFolder [14:44:56]dirname=/storage/ofd_packets [14:44:56]CheckFolder done [14:44:56]ProducePacketName [14:44:56]name=ofd_packets/00139353 [14:44:56]NVStorageSaveData ofd_packets/00139353 [14:44:56]File name is /storage/ofd_packets/00139353 [14:44:56]Write 301 bytes [14:44:56]NVStorageSaveData done [14:44:56]OFDSenderStorePacket done [14:44:56]KKMCreateOFDPacket done [14:44:56]NVStorageSaveData kkm_last_timestamp [14:44:56]File name is /storage/kkm_last_timestamp [14:44:56]Write 4 bytes [14:44:56]NVStorageSaveData done [14:44:56]ExternCall_PrintAddStr [14:44:56]wPrintStart [14:44:56]Write to MH i2c: 01 00 00 B1 0D BE [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: 01 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: 01 07 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: 01 07 00 B1 0D 00 00 00 00 00 FF 0F D3 [14:44:56]RasterBufferAndPrint [14:44:56]line Счет N : (1)593195 [14:44:56]line ИНН: 02508201610067 [14:44:56]line Контрольно-Кассовый Чек [14:44:56]line ПРОДАЖА [14:44:56]line ТРК (МРК, ГНК) : 32 [14:44:56]line Товар: 2710124130 [14:44:56]line Аи-92-К-5 [14:44:56]line 5.900 * 67.80 [14:44:56]line = 400.02 [14:44:56]line НДС 12% НСП 1% [14:44:56]line > о реализуемом товаре [14:44:56]line ОКРУГЛЕНИЕ: -0.02 [14:44:56]line ИТОГО: 400.00 [14:44:56]line Внесено: 400.00 [14:44:56]line СДАЧА: 0.00 [14:44:56]line НСП 1% : 3.54 [14:44:56]line НДС 12% : 42.48 [14:44:56]line Наличными: 400.00 [14:44:56]line Безнал.: 0.00 [14:44:56]line Место: АЗС № 136 "Партнер Нефть" [14:44:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:44:56]line СНО: Общий режим [14:44:56]line Чек 188 19.08.2024 14:44 [14:44:56]line Смена: 452 ФФД: 1.0 [14:44:56]line ЗНМ: 0300000067 [14:44:56]line РНМ: 0000000000092569 [14:44:56]line Версия ККМ: 001 [14:44:56]line ФМ: 0000000000871776 [14:44:56]line ФД: 139353 [14:44:56]line ФПД: 168318727927839 [14:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144456&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139353&fm=168318727927839&tin=02508201610067®Number=0000000000092569&sum=40000 [14:44:57]OFD Sender: Processing packet 139353 [packets to send 137, broken 136] [14:44:57]ProducePacketName [14:44:57]name=ofd_packets/00139353 [14:44:57]OFD Sender: To server: pG, [14:44:57]CommunicateWithHost lk.salyk.kg:30040 [14:44:57]ConnectInit lk.salyk.kg [14:44:57]written 0, free lines is 4095 [14:44:57]Connected sock=10 [14:44: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 37 36 0F 01 00 00 8E 64 07 01 6A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 BC 00 00 00 F4 03 04 00 68 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 20 02 00 35 04 06 00 99 15 C1 FC B8 1F 05 D0 E9 6D 8E 07 0B 97 [14:44:57]Write to MH i2c: 01 00 00 DC 0D E9 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: 01 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: 01 07 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 EC 0C E8 [14:44:57]RasterBufferAndPrint [14:44:57]line [14:44:57]line [14:44:57]line [14:44:57]line [14:44:57]line [14:44:57]written 0, free lines is 3317 [14:44: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 37 36 4F 00 00 00 F7 65 47 00 6E 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 37 36 10 04 04 00 59 20 02 00 F4 03 04 00 FE 00 C3 66 B6 04 01 00 00 49 76 27 8C 70 0A CB ED [14:44:57]CommunicateWithHost err = 0 [14:44:57]CheckOFDResponse [14:44:57]1017 (14) - 77093643461234 [14:44:57]1041 (16) - 0000000000871776 [14:44:57]1040 (4) - 139353 [14:44:57]1012 (4) - 19.08.2024 08:23 [14:44:57]1206 (1) - 0 [14:44:57]OFD Sender: Remove packet 139353 [14:44:57]ProducePacketName [14:44:57]name=ofd_packets/00139353 [14:44:57]NVStorageDeleteData [14:44:57]MH_Cut [14:44:57]Write to MH i2c: D1 01 00 E3 0D 01 C2 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: D1 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: D1 01 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: D1 01 00 E3 0D 00 C1 [14:44:57]Write to MH i2c: 01 00 00 E4 0D F1 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:58]OFD Sender: No OFD packet to send [14:44:58]*** Cut start [14:44:58]*** Partial cut [14:44:58]*** CUTSNS_PIN = 1 [14:44:58]*** CUTSNS_PIN = 0 [14:44:58]*** Brake cut motor [14:44:59]Read from MH i2c: 01 [14:44:59]MH_I2C_Read... [14:44:59]*** Stop cut motor [14:44:59]*** Cut end [14:44:59]Read from MH i2c: 01 07 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: 01 07 00 E4 0D 00 00 00 00 00 FF 0F 06 [14:44:59]process_action close_receipt done [14:44:59]requested_data is exist [14:44:59]produce_requested_data [14:44:59]requested_item fm.sn is exist - process it [14:44:59]wFMCommunicate request_size=4 [14:44:59]MH_SAM_APDU [14:44:59]CAPDU: 80 11 00 00 [14:44:59]Write to MH i2c: E2 08 00 E5 0D 80 11 00 00 00 00 00 00 6C [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 17 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 17 00 E5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C3 [14:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:44:59]wFMCommunicate OK [14:44:59]requested_item fd.num is exist - process it [14:44:59]SAM_PROTO_GetFieldsCounters [14:44:59]wFMCommunicate request_size=4 [14:44:59]MH_SAM_APDU [14:44:59]CAPDU: 80 13 00 00 [14:44:59]Write to MH i2c: E2 08 00 E6 0D 80 13 00 00 00 00 00 00 6F [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 62 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 62 00 E6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [14:44: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:59]wFMCommunicate OK [14:44:59]SAM_PROTO_GetFieldsCounters done [14:44:59]requested_item shift.num is exist - process it [14:44:59]requested_item shift.opened is exist - process it [14:44:59]req_shift_opened [14:44:59]FM_GetShiftState [14:44:59]SAM_PROTO_GetShiftState [14:44:59]wFMCommunicate request_size=4 [14:44:59]MH_SAM_APDU [14:44:59]CAPDU: 80 13 01 00 [14:44:59]Write to MH i2c: E2 08 00 E7 0D 80 13 01 00 00 00 00 00 71 [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0E 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0E 00 E7 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 28 [14:44:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:44:59]wFMCommunicate OK [14:44:59]SAM_PROTO_GetShiftState done [14:44:59]FM_GetShiftState done [14:44:59]req_shift_opened done [14:44:59]requested_item shift.open_date is exist - process it [14:44:59]req_shift_open_date [14:44:59]req_shift_open_date done [14:44:59]produce_requested_data done [14:44:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139353,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:44:59]process_action_free close_receipt [14:44:59]json_value_free [14:44:59]json_value_free done [14:44:59]process_json_proto returns [14:44:59]Send response to host [14:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139353,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:44:59]free response buf [14:44:59]execute_script done [14:44:59]execute_script returns [14:44:59]free content buf [14:44:59]Sock 9.Close socket [14:44:59]Sock 9.Thread stoped [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:40]accept exits with 8 [14:45:40]New connection [14:45:40]New thread 3066674532 created [14:45:40]Thread 3066817892 joined [14:45:40]Waiting for new connection... [14:45:40] Sock 8.Parse request [14:45:40]Sock 8.Check first char [14:45:40]Sock 8.First char is OK [14:45:40]request: POST /json_proto HTTP/1.0 [14:45:40]Method: POST [14:45:40]URL: /json_proto [14:45:40]Method is POST - this is cgi request [14:45:40]url: /json_proto [14:45:40]query_string will be loaded in cgi processing [14:45:40]execute_cgi json_proto POST (null) [14:45:40]execute_cgi path=json_proto method=POST [14:45:40]POST find Content-Length [14:45:40]Host: 172.17.45.67:8080 [14:45:40]Content-Length: 677 [14:45:40]Content-Type: application/json [14:45:40] [14:45:40]POST finish read [14:45:40]Found Content-Length = 677 [14:45:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:45:40]execute_script... [14:45: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)593196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:45:40]POST & json_proto [14:45:40]process_json_proto [14:45:40]json parsed OK: [14:45:40]protocol is kg_v1.0 [14:45:40]action value=close_receipt [14:45:40]process_action close_receipt [14:45:40]cmd_close_receipt [14:45:40]MH_GetDate [14:45:40]Write to MH i2c: F0 00 00 E8 0D E4 [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: F0 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: F0 09 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: F0 09 00 E8 0D 00 95 5A C3 66 5F 7F 2B 66 74 [14:45:40]GetLastDocTimeStamp 1724078696 [14:45:40]current date 1724078741 [14:45:40]FM_GetShiftState [14:45:40]SAM_PROTO_GetShiftState [14:45:40]wFMCommunicate request_size=4 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 13 01 00 [14:45:40]Write to MH i2c: E2 08 00 E9 0D 80 13 01 00 00 00 00 00 73 [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 0E 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 0E 00 E9 0D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2A [14:45:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:45:40]wFMCommunicate OK [14:45:40]SAM_PROTO_GetShiftState done [14:45:40]FM_GetShiftState done [14:45:40]opened in 1724027888 [14:45:40]opened+sec_in_day 1724114288 [14:45:40]quantity*price = 50036 [14:45:40]sum+1 = 50037 [14:45:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 189 19.08.2024 14:45 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139354 ФПД: 203043701032244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144541&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139354&fm=203043701032244&tin=02508201610067®Number=0000000000092569&sum=50000 [14:45:41]StoreToDocumentArchive [14:45:41]shift 452 fd 139354 [14:45:41]save to /storage/0452/doc_00139354 [14:45:41]save last doc name /storage/0452/doc_00139354 to /storage/kkm_last_doc_name [14:45:41]save OK [14:45:41]Clear old archive folders... [14:45:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:41]tlvbuf is 01225C70 [14:45:41]SAM_PROTO_ClearQueue [14:45:41]wFMCommunicate request_size=4 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 09 00 00 [14:45:41]Write to MH i2c: E2 08 00 F6 0D 80 09 00 00 00 00 00 00 75 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 F6 0D 00 90 00 77 [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]SAM_PROTO_ClearQueue done [14:45:41]KKMCreateOFDPacket [14:45:41]OFDProtocolAddRootSTLVToBuf [14:45:41]FM_MakeSignedData [14:45:41]FM_MakeSignedData [14:45:41]SAM_PROTO_SignData [14:45:41]wFMCommunicate request_size=4 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 0D 01 02 [14:45:41]Write to MH i2c: E2 08 00 F7 0D 80 0D 01 02 00 00 00 00 7D [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 F7 0D 00 90 00 78 [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]wFMCommunicate request_size=255 [14:45:41]MH_SAM_APDU [14:45: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 95 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 20 02 00 35 04 06 00 B8 [14:45:41]Write to MH i2c: E2 02 01 F8 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 95 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 20 02 00 35 04 06 00 B8 00 00 D4 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 F8 0D 00 90 00 79 [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]wFMCommunicate request_size=10 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 0D 02 02 05 AA CB AC 85 34 [14:45:41]Write to MH i2c: E2 0D 00 F9 0D 80 0D 02 02 05 00 AA CB AC 85 34 00 00 64 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 F9 0D 00 90 00 7A [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]wFMCommunicate request_size=4 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 0D 03 02 [14:45:41]Write to MH i2c: E2 08 00 FA 0D 80 0D 03 02 00 00 00 00 82 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:42]Read from MH i2c: E2 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: E2 0B 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: E2 0B 00 FA 0D 00 FF 1D 4D D1 28 77 A6 BE 90 00 C0 [14:45:42]RAPDU: FF 1D 4D D1 28 77 A6 BE 90 00 [14:45:42]wFMCommunicate OK [14:45:42]SAM_PROTO_SignData done [14:45:42]FM_MakeSignedData done [14:45:42]CreateOFDProtocolMessage [14:45:42]wFMCommunicate request_size=4 [14:45:42]MH_SAM_APDU [14:45:42]CAPDU: 80 11 00 00 [14:45:42]Write to MH i2c: E2 08 00 FB 0D 80 11 00 00 00 00 00 00 82 [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:42]Read from MH i2c: E2 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: E2 17 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: E2 17 00 FB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D9 [14:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:45:42]wFMCommunicate OK [14:45:42]CreateOFDProtocolMessage done [14:45:42]OFDSenderStorePacket 139354 [14:45:42]StoreOFDPacket docnum=139354 [14:45:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 15 B8 07 01 D3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 95 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 20 02 00 35 04 06 00 B8 AA CB AC 85 34 FF 1D 4D D1 28 77 A6 BE [14:45:42]CheckFolder [14:45:42]dirname=/storage/ofd_packets [14:45:42]CheckFolder done [14:45:42]ProducePacketName [14:45:42]name=ofd_packets/00139354 [14:45:42]NVStorageSaveData ofd_packets/00139354 [14:45:42]File name is /storage/ofd_packets/00139354 [14:45:42]Write 301 bytes [14:45:42]NVStorageSaveData done [14:45:42]OFDSenderStorePacket done [14:45:42]KKMCreateOFDPacket done [14:45:42]NVStorageSaveData kkm_last_timestamp [14:45:42]File name is /storage/kkm_last_timestamp [14:45:42]Write 4 bytes [14:45:42]NVStorageSaveData done [14:45:42]ExternCall_PrintAddStr [14:45:42]wPrintStart [14:45:42]Write to MH i2c: 01 00 00 FC 0D 09 [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 07 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 07 00 FC 0D 00 00 00 00 00 FF 0F 1E [14:45:42]RasterBufferAndPrint [14:45:42]line Счет N : (1)593196 [14:45:42]line ИНН: 02508201610067 [14:45:42]line Контрольно-Кассовый Чек [14:45:42]line ПРОДАЖА [14:45:42]line ТРК (МРК, ГНК) : 52 [14:45:42]line Товар: 2710124130 [14:45:42]line Аи-92-К-5 [14:45:42]line 7.380 * 67.80 [14:45:42]line = 500.36 [14:45:42]line НДС 12% НСП 1% [14:45:42]line > о реализуемом товаре [14:45:42]line ОКРУГЛЕНИЕ: -0.36 [14:45:42]line ИТОГО: 500.00 [14:45:42]line Внесено: 500.00 [14:45:42]line СДАЧА: 0.00 [14:45:42]line НСП 1% : 4.43 [14:45:42]line НДС 12% : 53.14 [14:45:42]line Наличными: 500.00 [14:45:42]line Безнал.: 0.00 [14:45:42]line Место: АЗС № 136 "Партнер Нефть" [14:45:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:45:42]line СНО: Общий режим [14:45:42]line Чек 189 19.08.2024 14:45 [14:45:42]line Смена: 452 ФФД: 1.0 [14:45:42]line ЗНМ: 0300000067 [14:45:42]line РНМ: 0000000000092569 [14:45:42]line Версия ККМ: 001 [14:45:42]line ФМ: 0000000000871776 [14:45:42]line ФД: 139354 [14:45:42]line ФПД: 203043701032244 [14:45:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144541&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139354&fm=203043701032244&tin=02508201610067®Number=0000000000092569&sum=50000 [14:45:42]OFD Sender: Processing packet 139354 [packets to send 137, broken 136] [14:45:42]ProducePacketName [14:45:42]name=ofd_packets/00139354 [14:45:42]OFD Sender: To server: pG, [14:45:42]CommunicateWithHost lk.salyk.kg:30040 [14:45:42]ConnectInit lk.salyk.kg [14:45:42]written 0, free lines is 4095 [14:45:42]Connected sock=10 [14:45: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 37 36 0F 01 00 00 15 B8 07 01 D3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 95 5A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 20 02 00 35 04 06 00 B8 AA CB AC 85 34 FF 1D 4D D1 28 77 A6 BE [14:45: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 37 36 4F 00 00 00 47 02 47 00 59 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 20 02 00 F4 03 04 00 2B 01 C3 66 B6 04 01 00 00 5A 2D 71 40 8D E7 8B B8 [14:45:42]CommunicateWithHost err = 0 [14:45:42]CheckOFDResponse [14:45:42]1017 (14) - 77093643461234 [14:45:42]1041 (16) - 0000000000871776 [14:45:42]1040 (4) - 139354 [14:45:42]1012 (4) - 19.08.2024 08:24 [14:45:42]1206 (1) - 0 [14:45:42]OFD Sender: Remove packet 139354 [14:45:42]ProducePacketName [14:45:42]name=ofd_packets/00139354 [14:45:42]NVStorageDeleteData [14:45:42]Write to MH i2c: 01 00 00 27 0E 35 [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 07 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 07 00 27 0E 00 00 00 00 00 E4 0C 2C [14:45:42]RasterBufferAndPrint [14:45:42]line [14:45:42]line [14:45:42]line [14:45:42]line [14:45:42]line [14:45:42]written 0, free lines is 3306 [14:45:42]MH_Cut [14:45:42]Write to MH i2c: D1 01 00 2E 0E 01 0E [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: D1 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: D1 01 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: D1 01 00 2E 0E 00 0D [14:45:42]Write to MH i2c: 01 00 00 2F 0E 3D [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:43]OFD Sender: No OFD packet to send [14:45:43]*** Cut start [14:45:43]*** Partial cut [14:45:43]*** CUTSNS_PIN = 1 [14:45:43]*** CUTSNS_PIN = 0 [14:45:43]*** Brake cut motor [14:45:44]Read from MH i2c: 01 [14:45:44]MH_I2C_Read... [14:45:44]*** Stop cut motor [14:45:44]*** Cut end [14:45:44]Read from MH i2c: 01 07 00 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: 01 07 00 2F 0E 00 00 00 00 00 FF 0F 52 [14:45:44]process_action close_receipt done [14:45:44]requested_data is exist [14:45:44]produce_requested_data [14:45:44]requested_item fm.sn is exist - process it [14:45:44]wFMCommunicate request_size=4 [14:45:44]MH_SAM_APDU [14:45:44]CAPDU: 80 11 00 00 [14:45:44]Write to MH i2c: E2 08 00 30 0E 80 11 00 00 00 00 00 00 B8 [14:45:44]Write i2c OK [14:45:44]MH_I2C_Read... [14:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:44]Read from MH i2c: E2 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 17 00 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 17 00 30 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [14:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:45:44]wFMCommunicate OK [14:45:44]requested_item fd.num is exist - process it [14:45:44]SAM_PROTO_GetFieldsCounters [14:45:44]wFMCommunicate request_size=4 [14:45:44]MH_SAM_APDU [14:45:44]CAPDU: 80 13 00 00 [14:45:44]Write to MH i2c: E2 08 00 31 0E 80 13 00 00 00 00 00 00 BB [14:45:44]Write i2c OK [14:45:44]MH_I2C_Read... [14:45:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:44]Read from MH i2c: E2 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 62 00 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 62 00 31 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [14:45: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:44]wFMCommunicate OK [14:45:44]SAM_PROTO_GetFieldsCounters done [14:45:44]requested_item shift.num is exist - process it [14:45:44]requested_item shift.opened is exist - process it [14:45:44]req_shift_opened [14:45:44]FM_GetShiftState [14:45:44]SAM_PROTO_GetShiftState [14:45:44]wFMCommunicate request_size=4 [14:45:44]MH_SAM_APDU [14:45:44]CAPDU: 80 13 01 00 [14:45:44]Write to MH i2c: E2 08 00 32 0E 80 13 01 00 00 00 00 00 BD [14:45:44]Write i2c OK [14:45:44]MH_I2C_Read... [14:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:44]Read from MH i2c: E2 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 0E 00 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 0E 00 32 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 74 [14:45:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:45:44]wFMCommunicate OK [14:45:44]SAM_PROTO_GetShiftState done [14:45:44]FM_GetShiftState done [14:45:44]req_shift_opened done [14:45:44]requested_item shift.open_date is exist - process it [14:45:44]req_shift_open_date [14:45:44]req_shift_open_date done [14:45:44]produce_requested_data done [14:45:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139354,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:45:44]process_action_free close_receipt [14:45:44]json_value_free [14:45:44]json_value_free done [14:45:44]process_json_proto returns [14:45:44]Send response to host [14:45:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139354,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:45:44]free response buf [14:45:44]execute_script done [14:45:44]execute_script returns [14:45:44]free content buf [14:45:44]Sock 8.Close socket [14:45:44]Sock 8.Thread stoped [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47: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:37]accept exits with 9 [14:47:37]New connection [14:47:37]New thread 3066817892 created [14:47:37]Thread 3066674532 joined [14:47:37]Waiting for new connection... [14:47:37] Sock 9.Parse request [14:47:37]Sock 9.Check first char [14:47:37]Sock 9.First char is OK [14:47:37]request: POST /json_proto HTTP/1.0 [14:47:37]Method: POST [14:47:37]URL: /json_proto [14:47:37]Method is POST - this is cgi request [14:47:37]url: /json_proto [14:47:37]query_string will be loaded in cgi processing [14:47:37]execute_cgi json_proto POST (null) [14:47:37]execute_cgi path=json_proto method=POST [14:47:37]POST find Content-Length [14:47:37]Host: 172.17.45.67:8080 [14:47:37]Content-Length: 677 [14:47:37]Content-Type: application/json [14:47:37] [14:47:37]POST finish read [14:47:37]Found Content-Length = 677 [14:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:37]execute_script... [14:47: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)593197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:37]POST & json_proto [14:47:37]process_json_proto [14:47:37]json parsed OK: [14:47:37]protocol is kg_v1.0 [14:47:37]action value=close_receipt [14:47:37]process_action close_receipt [14:47:37]cmd_close_receipt [14:47:37]MH_GetDate [14:47:37]Write to MH i2c: F0 00 00 33 0E 30 [14:47:37]Write i2c OK [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: F0 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: F0 09 00 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: F0 09 00 33 0E 00 0A 5B C3 66 5F 7F 2B 66 36 [14:47:37]GetLastDocTimeStamp 1724078741 [14:47:37]current date 1724078858 [14:47:37]FM_GetShiftState [14:47:37]SAM_PROTO_GetShiftState [14:47:37]wFMCommunicate request_size=4 [14:47:37]MH_SAM_APDU [14:47:37]CAPDU: 80 13 01 00 [14:47:37]Write to MH i2c: E2 08 00 34 0E 80 13 01 00 00 00 00 00 BF [14:47:37]Write i2c OK [14:47:37]MH_I2C_Read... [14:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:37]Read from MH i2c: E2 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 0E 00 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 0E 00 34 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 76 [14:47:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:47:37]wFMCommunicate OK [14:47:37]SAM_PROTO_GetShiftState done [14:47:37]FM_GetShiftState done [14:47:37]opened in 1724027888 [14:47:37]opened+sec_in_day 1724114288 [14:47:37]quantity*price = 60003 [14:47:37]sum+1 = 60004 [14:47:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 190 19.08.2024 14:47 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139355 ФПД: 66686582026548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144738&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139355&fm=66686582026548&tin=02508201610067®Number=0000000000092569&sum=60000 [14:47:38]StoreToDocumentArchive [14:47:38]shift 452 fd 139355 [14:47:38]save to /storage/0452/doc_00139355 [14:47:38]save last doc name /storage/0452/doc_00139355 to /storage/kkm_last_doc_name [14:47:38]save OK [14:47:38]Clear old archive folders... [14:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:38]tlvbuf is 0120A150 [14:47:38]SAM_PROTO_ClearQueue [14:47:38]wFMCommunicate request_size=4 [14:47:38]MH_SAM_APDU [14:47:38]CAPDU: 80 09 00 00 [14:47:38]Write to MH i2c: E2 08 00 41 0E 80 09 00 00 00 00 00 00 C1 [14:47:38]Write i2c OK [14:47:38]MH_I2C_Read... [14:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:38]Read from MH i2c: E2 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: E2 03 00 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: E2 03 00 41 0E 00 90 00 C3 [14:47:38]RAPDU: 90 00 [14:47:38]wFMCommunicate OK [14:47:38]SAM_PROTO_ClearQueue done [14:47:38]KKMCreateOFDPacket [14:47:38]OFDProtocolAddRootSTLVToBuf [14:47:38]FM_MakeSignedData [14:47:38]FM_MakeSignedData [14:47:38]SAM_PROTO_SignData [14:47:38]wFMCommunicate request_size=4 [14:47:38]MH_SAM_APDU [14:47:38]CAPDU: 80 0D 01 02 [14:47:38]Write to MH i2c: E2 08 00 42 0E 80 0D 01 02 00 00 00 00 C9 [14:47:38]Write i2c OK [14:47:38]MH_I2C_Read... [14:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:38]Read from MH i2c: E2 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: E2 03 00 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: E2 03 00 42 0E 00 90 00 C4 [14:47:38]RAPDU: 90 00 [14:47:38]wFMCommunicate OK [14:47:38]wFMCommunicate request_size=255 [14:47:38]MH_SAM_APDU [14:47: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 BE 00 00 00 F4 03 04 00 0A 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 20 02 00 35 04 06 00 3C [14:47:38]Write to MH i2c: E2 02 01 43 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 BE 00 00 00 F4 03 04 00 0A 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 20 02 00 35 04 06 00 3C 00 00 E3 [14:47:38]Write i2c OK [14:47:38]MH_I2C_Read... [14:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:38]Read from MH i2c: E2 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: E2 03 00 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: E2 03 00 43 0E 00 90 00 C5 [14:47:38]RAPDU: 90 00 [14:47:38]wFMCommunicate OK [14:47:38]wFMCommunicate request_size=10 [14:47:38]MH_SAM_APDU [14:47:38]CAPDU: 80 0D 02 02 05 A6 AE 08 71 34 [14:47:38]Write to MH i2c: E2 0D 00 44 0E 80 0D 02 02 05 00 A6 AE 08 71 34 00 00 D7 [14:47:38]Write i2c OK [14:47:38]MH_I2C_Read... [14:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:38]Read from MH i2c: E2 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: E2 03 00 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: E2 03 00 44 0E 00 90 00 C6 [14:47:38]RAPDU: 90 00 [14:47:38]wFMCommunicate OK [14:47:38]wFMCommunicate request_size=4 [14:47:38]MH_SAM_APDU [14:47:38]CAPDU: 80 0D 03 02 [14:47:38]Write to MH i2c: E2 08 00 45 0E 80 0D 03 02 00 00 00 00 CE [14:47:38]Write i2c OK [14:47:38]MH_I2C_Read... [14:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:39]Read from MH i2c: E2 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 0B 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 0B 00 45 0E 00 DC EB 18 C0 FC B7 E9 2B 90 00 35 [14:47:39]RAPDU: DC EB 18 C0 FC B7 E9 2B 90 00 [14:47:39]wFMCommunicate OK [14:47:39]SAM_PROTO_SignData done [14:47:39]FM_MakeSignedData done [14:47:39]CreateOFDProtocolMessage [14:47:39]wFMCommunicate request_size=4 [14:47:39]MH_SAM_APDU [14:47:39]CAPDU: 80 11 00 00 [14:47:39]Write to MH i2c: E2 08 00 46 0E 80 11 00 00 00 00 00 00 CE [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:39]Read from MH i2c: E2 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 17 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 17 00 46 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 25 [14:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:47:39]wFMCommunicate OK [14:47:39]CreateOFDProtocolMessage done [14:47:39]OFDSenderStorePacket 139355 [14:47:39]StoreOFDPacket docnum=139355 [14:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 B1 07 01 98 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 BE 00 00 00 F4 03 04 00 0A 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 20 02 00 35 04 06 00 3C A6 AE 08 71 34 DC EB 18 C0 FC B7 E9 2B [14:47:39]CheckFolder [14:47:39]dirname=/storage/ofd_packets [14:47:39]CheckFolder done [14:47:39]ProducePacketName [14:47:39]name=ofd_packets/00139355 [14:47:39]NVStorageSaveData ofd_packets/00139355 [14:47:39]File name is /storage/ofd_packets/00139355 [14:47:39]Write 301 bytes [14:47:39]NVStorageSaveData done [14:47:39]OFDSenderStorePacket done [14:47:39]KKMCreateOFDPacket done [14:47:39]NVStorageSaveData kkm_last_timestamp [14:47:39]File name is /storage/kkm_last_timestamp [14:47:39]Write 4 bytes [14:47:39]NVStorageSaveData done [14:47:39]ExternCall_PrintAddStr [14:47:39]wPrintStart [14:47:39]Write to MH i2c: 01 00 00 47 0E 55 [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: 01 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: 01 07 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: 01 07 00 47 0E 00 00 00 00 00 FF 0F 6A [14:47:39]RasterBufferAndPrint [14:47:39]line Счет N : (1)593197 [14:47:39]line ИНН: 02508201610067 [14:47:39]line Контрольно-Кассовый Чек [14:47:39]line ПРОДАЖА [14:47:39]line ТРК (МРК, ГНК) : 32 [14:47:39]line Товар: 2710124130 [14:47:39]line Аи-92-К-5 [14:47:39]line 8.850 * 67.80 [14:47:39]line = 600.03 [14:47:39]line НДС 12% НСП 1% [14:47:39]line > о реализуемом товаре [14:47:39]line ОКРУГЛЕНИЕ: -0.03 [14:47:39]line ИТОГО: 600.00 [14:47:39]line Внесено: 600.00 [14:47:39]line СДАЧА: 0.00 [14:47:39]line НСП 1% : 5.31 [14:47:39]line НДС 12% : 63.72 [14:47:39]line Наличными: 600.00 [14:47:39]line Безнал.: 0.00 [14:47:39]line Место: АЗС № 136 "Партнер Нефть" [14:47:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:47:39]line СНО: Общий режим [14:47:39]line Чек 190 19.08.2024 14:47 [14:47:39]line Смена: 452 ФФД: 1.0 [14:47:39]line ЗНМ: 0300000067 [14:47:39]line РНМ: 0000000000092569 [14:47:39]line Версия ККМ: 001 [14:47:39]line ФМ: 0000000000871776 [14:47:39]line ФД: 139355 [14:47:39]line ФПД: 66686582026548 [14:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144738&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139355&fm=66686582026548&tin=02508201610067®Number=0000000000092569&sum=60000 [14:47:39]OFD Sender: Processing packet 139355 [packets to send 137, broken 136] [14:47:39]ProducePacketName [14:47:39]name=ofd_packets/00139355 [14:47:39]OFD Sender: To server: pG, [14:47:39]CommunicateWithHost lk.salyk.kg:30040 [14:47:39]ConnectInit lk.salyk.kg [14:47:39]written 0, free lines is 4095 [14:47:39]Connected sock=10 [14:47: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 37 36 0F 01 00 00 26 B1 07 01 98 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 BE 00 00 00 F4 03 04 00 0A 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 20 02 00 35 04 06 00 3C A6 AE 08 71 34 DC EB 18 C0 FC B7 E9 2B [14:47: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 37 36 4F 00 00 00 F4 41 47 00 CD 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 37 36 10 04 04 00 5B 20 02 00 F4 03 04 00 A0 01 C3 66 B6 04 01 00 00 16 18 2B 2A 26 31 D5 A3 [14:47:39]CommunicateWithHost err = 0 [14:47:39]CheckOFDResponse [14:47:39]1017 (14) - 77093643461234 [14:47:39]1041 (16) - 0000000000871776 [14:47:39]1040 (4) - 139355 [14:47:39]1012 (4) - 19.08.2024 08:26 [14:47:39]1206 (1) - 0 [14:47:39]OFD Sender: Remove packet 139355 [14:47:39]ProducePacketName [14:47:39]name=ofd_packets/00139355 [14:47:39]NVStorageDeleteData [14:47:39]Write to MH i2c: 01 00 00 72 0E 80 [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: 01 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: 01 07 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 EA 0C 7D [14:47:39]RasterBufferAndPrint [14:47:39]line [14:47:39]line [14:47:39]line [14:47:39]line [14:47:39]line [14:47:39]written 0, free lines is 3312 [14:47:39]MH_Cut [14:47:39]Write to MH i2c: D1 01 00 79 0E 01 59 [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: D1 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: D1 01 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: D1 01 00 79 0E 00 58 [14:47:39]Write to MH i2c: 01 00 00 7A 0E 88 [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:40]OFD Sender: No OFD packet to send [14:47:40]*** Cut start [14:47:40]*** Partial cut [14:47:40]*** CUTSNS_PIN = 1 [14:47:40]*** CUTSNS_PIN = 0 [14:47:40]*** Brake cut motor [14:47:41]Read from MH i2c: 01 [14:47:41]MH_I2C_Read... [14:47:41]*** Stop cut motor [14:47:41]*** Cut end [14:47:41]Read from MH i2c: 01 07 00 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: 01 07 00 7A 0E 00 00 00 00 00 FF 0F 9D [14:47:41]process_action close_receipt done [14:47:41]requested_data is exist [14:47:41]produce_requested_data [14:47:41]requested_item fm.sn is exist - process it [14:47:41]wFMCommunicate request_size=4 [14:47:41]MH_SAM_APDU [14:47:41]CAPDU: 80 11 00 00 [14:47:41]Write to MH i2c: E2 08 00 7B 0E 80 11 00 00 00 00 00 00 03 [14:47:41]Write i2c OK [14:47:41]MH_I2C_Read... [14:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:41]Read from MH i2c: E2 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: E2 17 00 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: E2 17 00 7B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [14:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:47:41]wFMCommunicate OK [14:47:41]requested_item fd.num is exist - process it [14:47:41]SAM_PROTO_GetFieldsCounters [14:47:41]wFMCommunicate request_size=4 [14:47:41]MH_SAM_APDU [14:47:41]CAPDU: 80 13 00 00 [14:47:41]Write to MH i2c: E2 08 00 7C 0E 80 13 00 00 00 00 00 00 06 [14:47:41]Write i2c OK [14:47:41]MH_I2C_Read... [14:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:41]Read from MH i2c: E2 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: E2 62 00 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: E2 62 00 7C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [14:47: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:41]wFMCommunicate OK [14:47:41]SAM_PROTO_GetFieldsCounters done [14:47:41]requested_item shift.num is exist - process it [14:47:41]requested_item shift.opened is exist - process it [14:47:41]req_shift_opened [14:47:41]FM_GetShiftState [14:47:41]SAM_PROTO_GetShiftState [14:47:41]wFMCommunicate request_size=4 [14:47:41]MH_SAM_APDU [14:47:41]CAPDU: 80 13 01 00 [14:47:41]Write to MH i2c: E2 08 00 7D 0E 80 13 01 00 00 00 00 00 08 [14:47:41]Write i2c OK [14:47:41]MH_I2C_Read... [14:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:41]Read from MH i2c: E2 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: E2 0E 00 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: E2 0E 00 7D 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BF [14:47:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:47:41]wFMCommunicate OK [14:47:41]SAM_PROTO_GetShiftState done [14:47:41]FM_GetShiftState done [14:47:41]req_shift_opened done [14:47:41]requested_item shift.open_date is exist - process it [14:47:41]req_shift_open_date [14:47:41]req_shift_open_date done [14:47:41]produce_requested_data done [14:47:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139355,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:47:41]process_action_free close_receipt [14:47:41]json_value_free [14:47:41]json_value_free done [14:47:41]process_json_proto returns [14:47:41]Send response to host [14:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139355,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:47:41]free response buf [14:47:41]execute_script done [14:47:41]execute_script returns [14:47:41]free content buf [14:47:41]Sock 9.Close socket [14:47:41]Sock 9.Thread stoped [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:51]accept exits with 8 [14:49:51]New connection [14:49:51]New thread 3066674532 created [14:49:51]Thread 3066817892 joined [14:49:51]Waiting for new connection... [14:49:51] Sock 8.Parse request [14:49:51]Sock 8.Check first char [14:49:51]Sock 8.First char is OK [14:49:51]request: POST /json_proto HTTP/1.0 [14:49:51]Method: POST [14:49:51]URL: /json_proto [14:49:51]Method is POST - this is cgi request [14:49:51]url: /json_proto [14:49:51]query_string will be loaded in cgi processing [14:49:51]execute_cgi json_proto POST (null) [14:49:51]execute_cgi path=json_proto method=POST [14:49:51]POST find Content-Length [14:49:51]Host: 172.17.45.67:8080 [14:49:51]Content-Length: 678 [14:49:51]Content-Type: application/json [14:49:51] [14:49:51]POST finish read [14:49:51]Found Content-Length = 678 [14:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:51]execute_script... [14:49:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:51]POST & json_proto [14:49:51]process_json_proto [14:49:51]json parsed OK: [14:49:51]protocol is kg_v1.0 [14:49:51]action value=close_receipt [14:49:51]process_action close_receipt [14:49:51]cmd_close_receipt [14:49:51]MH_GetDate [14:49:51]Write to MH i2c: F0 00 00 7E 0E 7B [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: F0 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: F0 09 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: F0 09 00 7E 0E 00 90 5B C3 66 5F 7F 2B 66 07 [14:49:51]GetLastDocTimeStamp 1724078858 [14:49:51]current date 1724078992 [14:49:51]FM_GetShiftState [14:49:51]SAM_PROTO_GetShiftState [14:49:51]wFMCommunicate request_size=4 [14:49:51]MH_SAM_APDU [14:49:51]CAPDU: 80 13 01 00 [14:49:51]Write to MH i2c: E2 08 00 7F 0E 80 13 01 00 00 00 00 00 0A [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 0E 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 0E 00 7F 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C1 [14:49:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:49:51]wFMCommunicate OK [14:49:51]SAM_PROTO_GetShiftState done [14:49:51]FM_GetShiftState done [14:49:51]opened in 1724027888 [14:49:51]opened+sec_in_day 1724114288 [14:49:51]quantity*price = 70037 [14:49:51]sum+1 = 70038 [14:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 191 19.08.2024 14:49 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139356 ФПД: 142818951141890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144952&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139356&fm=142818951141890&tin=02508201610067®Number=0000000000092569&sum=70000 [14:49:52]StoreToDocumentArchive [14:49:52]shift 452 fd 139356 [14:49:52]save to /storage/0452/doc_00139356 [14:49:52]save last doc name /storage/0452/doc_00139356 to /storage/kkm_last_doc_name [14:49:52]save OK [14:49:52]Clear old archive folders... [14:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:52]tlvbuf is 011EB460 [14:49:52]SAM_PROTO_ClearQueue [14:49:52]wFMCommunicate request_size=4 [14:49:52]MH_SAM_APDU [14:49:52]CAPDU: 80 09 00 00 [14:49:52]Write to MH i2c: E2 08 00 8C 0E 80 09 00 00 00 00 00 00 0C [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:52]Read from MH i2c: E2 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 03 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 03 00 8C 0E 00 90 00 0E [14:49:52]RAPDU: 90 00 [14:49:52]wFMCommunicate OK [14:49:52]SAM_PROTO_ClearQueue done [14:49:52]KKMCreateOFDPacket [14:49:52]OFDProtocolAddRootSTLVToBuf [14:49:52]FM_MakeSignedData [14:49:52]FM_MakeSignedData [14:49:52]SAM_PROTO_SignData [14:49:52]wFMCommunicate request_size=4 [14:49:52]MH_SAM_APDU [14:49:52]CAPDU: 80 0D 01 02 [14:49:52]Write to MH i2c: E2 08 00 8D 0E 80 0D 01 02 00 00 00 00 14 [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:52]Read from MH i2c: E2 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 03 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 03 00 8D 0E 00 90 00 0F [14:49:52]RAPDU: 90 00 [14:49:52]wFMCommunicate OK [14:49:52]wFMCommunicate request_size=255 [14:49:52]MH_SAM_APDU [14:49:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 BF 00 00 00 F4 03 04 00 90 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 20 02 00 35 04 06 00 81 [14:49:52]Write to MH i2c: E2 02 01 8E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 BF 00 00 00 F4 03 04 00 90 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 20 02 00 35 04 06 00 81 00 00 1B [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 8E 0E 00 90 00 10 [14:49:53]RAPDU: 90 00 [14:49:53]wFMCommunicate OK [14:49:53]wFMCommunicate request_size=10 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 0D 02 02 05 E4 A0 D9 9A 02 [14:49:53]Write to MH i2c: E2 0D 00 8F 0E 80 0D 02 02 05 00 E4 A0 D9 9A 02 00 00 1A [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 8F 0E 00 90 00 11 [14:49:53]RAPDU: 90 00 [14:49:53]wFMCommunicate OK [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 0D 03 02 [14:49:53]Write to MH i2c: E2 08 00 90 0E 80 0D 03 02 00 00 00 00 19 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 0B 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 0B 00 90 0E 00 28 7E 5F 97 DC 6A B9 C0 90 00 75 [14:49:53]RAPDU: 28 7E 5F 97 DC 6A B9 C0 90 00 [14:49:53]wFMCommunicate OK [14:49:53]SAM_PROTO_SignData done [14:49:53]FM_MakeSignedData done [14:49:53]CreateOFDProtocolMessage [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 11 00 00 [14:49:53]Write to MH i2c: E2 08 00 91 0E 80 11 00 00 00 00 00 00 19 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 17 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 17 00 91 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [14:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:49:53]wFMCommunicate OK [14:49:53]CreateOFDProtocolMessage done [14:49:53]OFDSenderStorePacket 139356 [14:49:53]StoreOFDPacket docnum=139356 [14:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 31 A9 07 01 40 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 BF 00 00 00 F4 03 04 00 90 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 20 02 00 35 04 06 00 81 E4 A0 D9 9A 02 28 7E 5F 97 DC 6A B9 C0 [14:49:53]CheckFolder [14:49:53]dirname=/storage/ofd_packets [14:49:53]CheckFolder done [14:49:53]ProducePacketName [14:49:53]name=ofd_packets/00139356 [14:49:53]NVStorageSaveData ofd_packets/00139356 [14:49:53]File name is /storage/ofd_packets/00139356 [14:49:53]Write 301 bytes [14:49:53]NVStorageSaveData done [14:49:53]OFDSenderStorePacket done [14:49:53]KKMCreateOFDPacket done [14:49:53]NVStorageSaveData kkm_last_timestamp [14:49:53]File name is /storage/kkm_last_timestamp [14:49:53]Write 4 bytes [14:49:53]NVStorageSaveData done [14:49:53]ExternCall_PrintAddStr [14:49:53]wPrintStart [14:49:53]Write to MH i2c: 01 00 00 92 0E A0 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: 01 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: 01 07 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: 01 07 00 92 0E 00 00 00 00 00 FF 0F B5 [14:49:53]RasterBufferAndPrint [14:49:53]line Счет N : (1)593199 [14:49:53]line ИНН: 02508201610067 [14:49:53]line Контрольно-Кассовый Чек [14:49:53]line ПРОДАЖА [14:49:53]line ТРК (МРК, ГНК) : 62 [14:49:53]line Товар: 2710124130 [14:49:53]line Аи-92-К-5 [14:49:53]line 10.330 * 67.80 [14:49:53]line = 700.37 [14:49:53]line НДС 12% НСП 1% [14:49:53]line > о реализуемом товаре [14:49:53]line ОКРУГЛЕНИЕ: -0.37 [14:49:53]line ИТОГО: 700.00 [14:49:53]line Внесено: 700.00 [14:49:53]line СДАЧА: 0.00 [14:49:53]line НСП 1% : 6.20 [14:49:53]line НДС 12% : 74.38 [14:49:53]line Наличными: 700.00 [14:49:53]line Безнал.: 0.00 [14:49:53]line Место: АЗС № 136 "Партнер Нефть" [14:49:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:49:53]line СНО: Общий режим [14:49:53]line Чек 191 19.08.2024 14:49 [14:49:53]line Смена: 452 ФФД: 1.0 [14:49:53]line ЗНМ: 0300000067 [14:49:53]line РНМ: 0000000000092569 [14:49:53]line Версия ККМ: 001 [14:49:53]line ФМ: 0000000000871776 [14:49:53]line ФД: 139356 [14:49:53]line ФПД: 142818951141890 [14:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144952&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139356&fm=142818951141890&tin=02508201610067®Number=0000000000092569&sum=70000 [14:49:53]written 0, free lines is 4095 [14:49:53]OFD Sender: Processing packet 139356 [packets to send 137, broken 136] [14:49:53]ProducePacketName [14:49:53]name=ofd_packets/00139356 [14:49:53]OFD Sender: To server: pG, [14:49:53]CommunicateWithHost lk.salyk.kg:30040 [14:49:53]ConnectInit lk.salyk.kg [14:49:53]Connected sock=10 [14:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 31 A9 07 01 40 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 BF 00 00 00 F4 03 04 00 90 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 20 02 00 35 04 06 00 81 E4 A0 D9 9A 02 28 7E 5F 97 DC 6A B9 C0 [14:49: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 37 36 4F 00 00 00 AA 80 47 00 9B 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 37 36 10 04 04 00 5C 20 02 00 F4 03 04 00 26 02 C3 66 B6 04 01 00 00 50 E7 34 B0 F5 E7 DF 57 [14:49:54]CommunicateWithHost err = 0 [14:49:54]CheckOFDResponse [14:49:54]1017 (14) - 77093643461234 [14:49:54]1041 (16) - 0000000000871776 [14:49:54]1040 (4) - 139356 [14:49:54]1012 (4) - 19.08.2024 08:28 [14:49:54]1206 (1) - 0 [14:49:54]OFD Sender: Remove packet 139356 [14:49:54]ProducePacketName [14:49:54]name=ofd_packets/00139356 [14:49:54]NVStorageDeleteData [14:49:54]Write to MH i2c: 01 00 00 BD 0E CB [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 BD 0E 00 00 00 00 00 D3 0C B1 [14:49:54]RasterBufferAndPrint [14:49:54]line [14:49:54]line [14:49:54]line [14:49:54]line [14:49:54]line [14:49:54]written 0, free lines is 3287 [14:49:54]MH_Cut [14:49:54]Write to MH i2c: D1 01 00 C4 0E 01 A4 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: D1 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: D1 01 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: D1 01 00 C4 0E 00 A3 [14:49:54]Write to MH i2c: 01 00 00 C5 0E D3 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]OFD Sender: No OFD packet to send [14:49:54]*** Cut start [14:49:54]*** Partial cut [14:49:54]*** CUTSNS_PIN = 1 [14:49:54]*** CUTSNS_PIN = 0 [14:49:55]*** Brake cut motor [14:49:55]Read from MH i2c: 01 [14:49:55]MH_I2C_Read... [14:49:55]*** Stop cut motor [14:49:55]*** Cut end [14:49:55]Read from MH i2c: 01 07 00 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: 01 07 00 C5 0E 00 00 00 00 00 FF 0F E8 [14:49:55]process_action close_receipt done [14:49:55]requested_data is exist [14:49:55]produce_requested_data [14:49:55]requested_item fm.sn is exist - process it [14:49:55]wFMCommunicate request_size=4 [14:49:55]MH_SAM_APDU [14:49:55]CAPDU: 80 11 00 00 [14:49:55]Write to MH i2c: E2 08 00 C6 0E 80 11 00 00 00 00 00 00 4E [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:55]Read from MH i2c: E2 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: E2 17 00 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: E2 17 00 C6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [14:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:49:55]wFMCommunicate OK [14:49:55]requested_item fd.num is exist - process it [14:49:55]SAM_PROTO_GetFieldsCounters [14:49:55]wFMCommunicate request_size=4 [14:49:55]MH_SAM_APDU [14:49:55]CAPDU: 80 13 00 00 [14:49:55]Write to MH i2c: E2 08 00 C7 0E 80 13 00 00 00 00 00 00 51 [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:55]Read from MH i2c: E2 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: E2 62 00 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: E2 62 00 C7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [14:49:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:55]wFMCommunicate OK [14:49:55]SAM_PROTO_GetFieldsCounters done [14:49:55]requested_item shift.num is exist - process it [14:49:55]requested_item shift.opened is exist - process it [14:49:55]req_shift_opened [14:49:55]FM_GetShiftState [14:49:55]SAM_PROTO_GetShiftState [14:49:55]wFMCommunicate request_size=4 [14:49:55]MH_SAM_APDU [14:49:55]CAPDU: 80 13 01 00 [14:49:55]Write to MH i2c: E2 08 00 C8 0E 80 13 01 00 00 00 00 00 53 [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:55]Read from MH i2c: E2 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: E2 0E 00 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: E2 0E 00 C8 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0A [14:49:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:49:55]wFMCommunicate OK [14:49:55]SAM_PROTO_GetShiftState done [14:49:55]FM_GetShiftState done [14:49:55]req_shift_opened done [14:49:55]requested_item shift.open_date is exist - process it [14:49:55]req_shift_open_date [14:49:55]req_shift_open_date done [14:49:55]produce_requested_data done [14:49:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139356,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:49:55]process_action_free close_receipt [14:49:55]json_value_free [14:49:55]json_value_free done [14:49:55]process_json_proto returns [14:49:55]Send response to host [14:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139356,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:49:55]free response buf [14:49:55]execute_script done [14:49:55]execute_script returns [14:49:55]free content buf [14:49:55]Sock 8.Close socket [14:49:55]Sock 8.Thread stoped [14:49:55]accept exits with 9 [14:49:55]New connection [14:49:55]New thread 3066817892 created [14:49:55]Thread 3066674532 joined [14:49:55]Waiting for new connection... [14:49:55] Sock 9.Parse request [14:49:55]Sock 9.Check first char [14:49:55]Sock 9.First char is OK [14:49:55]request: POST /json_proto HTTP/1.0 [14:49:55]Method: POST [14:49:55]URL: /json_proto [14:49:55]Method is POST - this is cgi request [14:49:55]url: /json_proto [14:49:55]query_string will be loaded in cgi processing [14:49:55]execute_cgi json_proto POST (null) [14:49:55]execute_cgi path=json_proto method=POST [14:49:55]POST find Content-Length [14:49:55]Host: 172.17.45.67:8080 [14:49:55]Content-Length: 678 [14:49:55]Content-Type: application/json [14:49:55] [14:49:55]POST finish read [14:49:55]Found Content-Length = 678 [14:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:55]execute_script... [14:49: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)593198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:55]POST & json_proto [14:49:55]process_json_proto [14:49:55]json parsed OK: [14:49:55]protocol is kg_v1.0 [14:49:55]action value=close_receipt [14:49:55]process_action close_receipt [14:49:55]cmd_close_receipt [14:49:55]MH_GetDate [14:49:55]Write to MH i2c: F0 00 00 C9 0E C6 [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: F0 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: F0 09 00 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: F0 09 00 C9 0E 00 95 5B C3 66 5F 7F 2B 66 57 [14:49:55]GetLastDocTimeStamp 1724078992 [14:49:55]current date 1724078997 [14:49:55]FM_GetShiftState [14:49:55]SAM_PROTO_GetShiftState [14:49:55]wFMCommunicate request_size=4 [14:49:55]MH_SAM_APDU [14:49:55]CAPDU: 80 13 01 00 [14:49:55]Write to MH i2c: E2 08 00 CA 0E 80 13 01 00 00 00 00 00 55 [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 0E 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 0E 00 CA 0E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0C [14:49:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:49:56]wFMCommunicate OK [14:49:56]SAM_PROTO_GetShiftState done [14:49:56]FM_GetShiftState done [14:49:56]opened in 1724027888 [14:49:56]opened+sec_in_day 1724114288 [14:49:56]quantity*price = 70037 [14:49:56]sum+1 = 70038 [14:49:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 192 19.08.2024 14:49 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139357 ФПД: 207115483865668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144957&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139357&fm=207115483865668&tin=02508201610067®Number=0000000000092569&sum=70000 [14:49:57]StoreToDocumentArchive [14:49:57]shift 452 fd 139357 [14:49:57]save to /storage/0452/doc_00139357 [14:49:57]save last doc name /storage/0452/doc_00139357 to /storage/kkm_last_doc_name [14:49:57]save OK [14:49:57]Clear old archive folders... [14:49:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:57]tlvbuf is 011F9C80 [14:49:57]SAM_PROTO_ClearQueue [14:49:57]wFMCommunicate request_size=4 [14:49:57]MH_SAM_APDU [14:49:57]CAPDU: 80 09 00 00 [14:49:57]Write to MH i2c: E2 08 00 D7 0E 80 09 00 00 00 00 00 00 57 [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:57]Read from MH i2c: E2 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 03 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 03 00 D7 0E 00 90 00 59 [14:49:57]RAPDU: 90 00 [14:49:57]wFMCommunicate OK [14:49:57]SAM_PROTO_ClearQueue done [14:49:57]KKMCreateOFDPacket [14:49:57]OFDProtocolAddRootSTLVToBuf [14:49:57]FM_MakeSignedData [14:49:57]FM_MakeSignedData [14:49:57]SAM_PROTO_SignData [14:49:57]wFMCommunicate request_size=4 [14:49:57]MH_SAM_APDU [14:49:57]CAPDU: 80 0D 01 02 [14:49:57]Write to MH i2c: E2 08 00 D8 0E 80 0D 01 02 00 00 00 00 5F [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:57]Read from MH i2c: E2 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 03 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 03 00 D8 0E 00 90 00 5A [14:49:57]RAPDU: 90 00 [14:49:57]wFMCommunicate OK [14:49:57]wFMCommunicate request_size=255 [14:49:57]MH_SAM_APDU [14:49:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 C0 00 00 00 F4 03 04 00 95 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 20 02 00 35 04 06 00 BC [14:49:57]Write to MH i2c: E2 02 01 D9 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 C0 00 00 00 F4 03 04 00 95 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 20 02 00 35 04 06 00 BC 00 00 A8 [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:57]Read from MH i2c: E2 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 03 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 03 00 D9 0E 00 90 00 5B [14:49:57]RAPDU: 90 00 [14:49:57]wFMCommunicate OK [14:49:57]wFMCommunicate request_size=10 [14:49:57]MH_SAM_APDU [14:49:57]CAPDU: 80 0D 02 02 05 5E D4 D7 E2 44 [14:49:57]Write to MH i2c: E2 0D 00 DA 0E 80 0D 02 02 05 00 5E D4 D7 E2 44 00 00 9B [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:57]Read from MH i2c: E2 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 03 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 03 00 DA 0E 00 90 00 5C [14:49:57]RAPDU: 90 00 [14:49:57]wFMCommunicate OK [14:49:57]wFMCommunicate request_size=4 [14:49:57]MH_SAM_APDU [14:49:57]CAPDU: 80 0D 03 02 [14:49:57]Write to MH i2c: E2 08 00 DB 0E 80 0D 03 02 00 00 00 00 64 [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:58]Read from MH i2c: E2 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 0B 00 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 0B 00 DB 0E 00 2C 60 85 CB A4 1D A4 CD 90 00 73 [14:49:58]RAPDU: 2C 60 85 CB A4 1D A4 CD 90 00 [14:49:58]wFMCommunicate OK [14:49:58]SAM_PROTO_SignData done [14:49:58]FM_MakeSignedData done [14:49:58]CreateOFDProtocolMessage [14:49:58]wFMCommunicate request_size=4 [14:49:58]MH_SAM_APDU [14:49:58]CAPDU: 80 11 00 00 [14:49:58]Write to MH i2c: E2 08 00 DC 0E 80 11 00 00 00 00 00 00 64 [14:49:58]Write i2c OK [14:49:58]MH_I2C_Read... [14:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:58]Read from MH i2c: E2 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 17 00 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 17 00 DC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [14:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:49:58]wFMCommunicate OK [14:49:58]CreateOFDProtocolMessage done [14:49:58]OFDSenderStorePacket 139357 [14:49:58]StoreOFDPacket docnum=139357 [14:49:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0E 72 07 01 87 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 C0 00 00 00 F4 03 04 00 95 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 20 02 00 35 04 06 00 BC 5E D4 D7 E2 44 2C 60 85 CB A4 1D A4 CD [14:49:58]CheckFolder [14:49:58]dirname=/storage/ofd_packets [14:49:58]CheckFolder done [14:49:58]ProducePacketName [14:49:58]name=ofd_packets/00139357 [14:49:58]NVStorageSaveData ofd_packets/00139357 [14:49:58]File name is /storage/ofd_packets/00139357 [14:49:58]Write 301 bytes [14:49:58]NVStorageSaveData done [14:49:58]OFDSenderStorePacket done [14:49:58]KKMCreateOFDPacket done [14:49:58]NVStorageSaveData kkm_last_timestamp [14:49:58]File name is /storage/kkm_last_timestamp [14:49:58]Write 4 bytes [14:49:58]NVStorageSaveData done [14:49:58]ExternCall_PrintAddStr [14:49:58]wPrintStart [14:49:58]Write to MH i2c: 01 00 00 DD 0E EB [14:49:58]Write i2c OK [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: 01 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: 01 07 00 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: 01 07 00 DD 0E 00 00 00 00 00 FF 0F 00 [14:49:58]RasterBufferAndPrint [14:49:58]line Счет N : (1)593198 [14:49:58]line ИНН: 02508201610067 [14:49:58]line Контрольно-Кассовый Чек [14:49:58]line ПРОДАЖА [14:49:58]line ТРК (МРК, ГНК) : 52 [14:49:58]line Товар: 2710124130 [14:49:58]line Аи-92-К-5 [14:49:58]line 10.330 * 67.80 [14:49:58]line = 700.37 [14:49:58]line НДС 12% НСП 1% [14:49:58]line > о реализуемом товаре [14:49:58]line ОКРУГЛЕНИЕ: -0.37 [14:49:58]line ИТОГО: 700.00 [14:49:58]line Внесено: 700.00 [14:49:58]line СДАЧА: 0.00 [14:49:58]line НСП 1% : 6.20 [14:49:58]line НДС 12% : 74.38 [14:49:58]line Наличными: 700.00 [14:49:58]line Безнал.: 0.00 [14:49:58]line Место: АЗС № 136 "Партнер Нефть" [14:49:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:49:58]line СНО: Общий режим [14:49:58]line Чек 192 19.08.2024 14:49 [14:49:58]line Смена: 452 ФФД: 1.0 [14:49:58]line ЗНМ: 0300000067 [14:49:58]line РНМ: 0000000000092569 [14:49:58]line Версия ККМ: 001 [14:49:58]line ФМ: 0000000000871776 [14:49:58]line ФД: 139357 [14:49:58]line ФПД: 207115483865668 [14:49:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144957&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139357&fm=207115483865668&tin=02508201610067®Number=0000000000092569&sum=70000 [14:49:58]OFD Sender: Processing packet 139357 [packets to send 137, broken 136] [14:49:58]ProducePacketName [14:49:58]name=ofd_packets/00139357 [14:49:58]OFD Sender: To server: pG, [14:49:58]CommunicateWithHost lk.salyk.kg:30040 [14:49:58]ConnectInit lk.salyk.kg [14:49:58]written 0, free lines is 4095 [14:49:58]Connected sock=10 [14:49: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 37 36 0F 01 00 00 0E 72 07 01 87 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 C0 00 00 00 F4 03 04 00 95 5B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 20 02 00 35 04 06 00 BC 5E D4 D7 E2 44 2C 60 85 CB A4 1D A4 CD [14:49:58]Write to MH i2c: 01 00 00 08 0F 17 [14:49:58]Write i2c OK [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: 01 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: 01 07 00 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 F3 0C 1D [14:49:58]RasterBufferAndPrint [14:49:58]line [14:49:58]line [14:49:58]line [14:49:58]line [14:49:58]line [14:49:58]written 0, free lines is 3328 [14:49:58]MH_Cut [14:49:58]Write to MH i2c: D1 01 00 0F 0F 01 F0 [14:49:58]Write i2c OK [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: D1 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: D1 01 00 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: D1 01 00 0F 0F 00 EF [14:49:58]Write to MH i2c: 01 00 00 10 0F 1F [14:49:58]Write i2c OK [14:49:58]MH_I2C_Read... [14:49: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 37 36 4F 00 00 00 28 75 47 00 F3 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 37 36 10 04 04 00 5D 20 02 00 F4 03 04 00 2B 02 C3 66 B6 04 01 00 00 0D 09 EE A9 9E 99 AB DB [14:49:59]CommunicateWithHost err = 0 [14:49:59]CheckOFDResponse [14:49:59]1017 (14) - 77093643461234 [14:49:59]1041 (16) - 0000000000871776 [14:49:59]1040 (4) - 139357 [14:49:59]1012 (4) - 19.08.2024 08:28 [14:49:59]1206 (1) - 0 [14:49:59]OFD Sender: Remove packet 139357 [14:49:59]ProducePacketName [14:49:59]name=ofd_packets/00139357 [14:49:59]NVStorageDeleteData [14:49:59]OFD Sender: No OFD packet to send [14:49:59]*** Cut start [14:49:59]*** Partial cut [14:49:59]*** CUTSNS_PIN = 1 [14:49:59]*** CUTSNS_PIN = 0 [14:49:59]*** Brake cut motor [14:50:00]Read from MH i2c: 01 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: *** Stop cut motor [14:50:00]01 *** Cut end [14:50:00]07 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 FF 0F 34 [14:50:00]process_action close_receipt done [14:50:00]requested_data is exist [14:50:00]produce_requested_data [14:50:00]requested_item fm.sn is exist - process it [14:50:00]wFMCommunicate request_size=4 [14:50:00]MH_SAM_APDU [14:50:00]CAPDU: 80 11 00 00 [14:50:00]Write to MH i2c: E2 08 00 11 0F 80 11 00 00 00 00 00 00 9A [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 17 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 17 00 11 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [14:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:50:00]wFMCommunicate OK [14:50:00]requested_item fd.num is exist - process it [14:50:00]SAM_PROTO_GetFieldsCounters [14:50:00]wFMCommunicate request_size=4 [14:50:00]MH_SAM_APDU [14:50:00]CAPDU: 80 13 00 00 [14:50:00]Write to MH i2c: E2 08 00 12 0F 80 13 00 00 00 00 00 00 9D [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 62 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 62 00 12 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [14:50: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:00]wFMCommunicate OK [14:50:00]SAM_PROTO_GetFieldsCounters done [14:50:00]requested_item shift.num is exist - process it [14:50:00]requested_item shift.opened is exist - process it [14:50:00]req_shift_opened [14:50:00]FM_GetShiftState [14:50:00]SAM_PROTO_GetShiftState [14:50:00]wFMCommunicate request_size=4 [14:50:00]MH_SAM_APDU [14:50:00]CAPDU: 80 13 01 00 [14:50:00]Write to MH i2c: E2 08 00 13 0F 80 13 01 00 00 00 00 00 9F [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 0E 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 0E 00 13 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 56 [14:50:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:50:00]wFMCommunicate OK [14:50:00]SAM_PROTO_GetShiftState done [14:50:00]FM_GetShiftState done [14:50:00]req_shift_opened done [14:50:00]requested_item shift.open_date is exist - process it [14:50:00]req_shift_open_date [14:50:00]req_shift_open_date done [14:50:00]produce_requested_data done [14:50:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139357,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:50:00]process_action_free close_receipt [14:50:00]json_value_free [14:50:00]json_value_free done [14:50:00]process_json_proto returns [14:50:00]Send response to host [14:50:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139357,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:50:00]free response buf [14:50:00]execute_script done [14:50:00]execute_script returns [14:50:00]free content buf [14:50:00]Sock 9.Close socket [14:50:00]Sock 9.Thread stoped [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:56]accept exits with 8 [14:53:56]New connection [14:53:56]New thread 3066674532 created [14:53:56]Thread 3066817892 joined [14:53:56]Waiting for new connection... [14:53:56] Sock 8.Parse request [14:53:56]Sock 8.Check first char [14:53:56]Sock 8.First char is OK [14:53:56]request: POST /json_proto HTTP/1.0 [14:53:56]Method: POST [14:53:56]URL: /json_proto [14:53:56]Method is POST - this is cgi request [14:53:56]url: /json_proto [14:53:56]query_string will be loaded in cgi processing [14:53:56]execute_cgi json_proto POST (null) [14:53:56]execute_cgi path=json_proto method=POST [14:53:56]POST find Content-Length [14:53:56]Host: 172.17.45.67:8080 [14:53:56]Content-Length: 677 [14:53:56]Content-Type: application/json [14:53:56] [14:53:56]POST finish read [14:53:56]Found Content-Length = 677 [14:53:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:53:56]execute_script... [14:53: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)593200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:53:56]POST & json_proto [14:53:56]process_json_proto [14:53:56]json parsed OK: [14:53:56]protocol is kg_v1.0 [14:53:56]action value=close_receipt [14:53:56]process_action close_receipt [14:53:56]cmd_close_receipt [14:53:56]MH_GetDate [14:53:56]Write to MH i2c: F0 00 00 14 0F 12 [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: F0 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: F0 09 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: F0 09 00 14 0F 00 85 5C C3 66 5F 7F 2B 66 94 [14:53:56]GetLastDocTimeStamp 1724078997 [14:53:56]current date 1724079237 [14:53:56]FM_GetShiftState [14:53:56]SAM_PROTO_GetShiftState [14:53:56]wFMCommunicate request_size=4 [14:53:56]MH_SAM_APDU [14:53:56]CAPDU: 80 13 01 00 [14:53:56]Write to MH i2c: E2 08 00 15 0F 80 13 01 00 00 00 00 00 A1 [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:56]Read from MH i2c: E2 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 0E 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 0E 00 15 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 58 [14:53:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:53:56]wFMCommunicate OK [14:53:56]SAM_PROTO_GetShiftState done [14:53:56]FM_GetShiftState done [14:53:56]opened in 1724027888 [14:53:56]opened+sec_in_day 1724114288 [14:53:56]quantity*price = 50036 [14:53:56]sum+1 = 50037 [14:53:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 193 19.08.2024 14:53 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139358 ФПД: 57253171242241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T145357&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139358&fm=57253171242241&tin=02508201610067®Number=0000000000092569&sum=50000 [14:53:57]StoreToDocumentArchive [14:53:57]shift 452 fd 139358 [14:53:57]save to /storage/0452/doc_00139358 [14:53:57]save last doc name /storage/0452/doc_00139358 to /storage/kkm_last_doc_name [14:53:57]save OK [14:53:57]Clear old archive folders... [14:53:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:57]tlvbuf is 011EBB60 [14:53:57]SAM_PROTO_ClearQueue [14:53:57]wFMCommunicate request_size=4 [14:53:57]MH_SAM_APDU [14:53:57]CAPDU: 80 09 00 00 [14:53:57]Write to MH i2c: E2 08 00 22 0F 80 09 00 00 00 00 00 00 A3 [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:57]Read from MH i2c: E2 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 03 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 03 00 22 0F 00 90 00 A5 [14:53:57]RAPDU: 90 00 [14:53:57]wFMCommunicate OK [14:53:57]SAM_PROTO_ClearQueue done [14:53:57]KKMCreateOFDPacket [14:53:57]OFDProtocolAddRootSTLVToBuf [14:53:57]FM_MakeSignedData [14:53:57]FM_MakeSignedData [14:53:57]SAM_PROTO_SignData [14:53:57]wFMCommunicate request_size=4 [14:53:57]MH_SAM_APDU [14:53:57]CAPDU: 80 0D 01 02 [14:53:57]Write to MH i2c: E2 08 00 23 0F 80 0D 01 02 00 00 00 00 AB [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:57]Read from MH i2c: E2 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 03 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 03 00 23 0F 00 90 00 A6 [14:53:57]RAPDU: 90 00 [14:53:57]wFMCommunicate OK [14:53:57]wFMCommunicate request_size=255 [14:53:57]MH_SAM_APDU [14:53: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 C1 00 00 00 F4 03 04 00 85 5C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 20 02 00 35 04 06 00 34 [14:53:57]Write to MH i2c: E2 02 01 24 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 C1 00 00 00 F4 03 04 00 85 5C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 20 02 00 35 04 06 00 34 00 00 78 [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:57]Read from MH i2c: E2 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 03 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 03 00 24 0F 00 90 00 A7 [14:53:57]RAPDU: 90 00 [14:53:57]wFMCommunicate OK [14:53:57]wFMCommunicate request_size=10 [14:53:57]MH_SAM_APDU [14:53:57]CAPDU: 80 0D 02 02 05 12 4A EF 25 01 [14:53:57]Write to MH i2c: E2 0D 00 25 0F 80 0D 02 02 05 00 12 4A EF 25 01 00 00 29 [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:57]Read from MH i2c: E2 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 03 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 03 00 25 0F 00 90 00 A8 [14:53:57]RAPDU: 90 00 [14:53:57]wFMCommunicate OK [14:53:57]wFMCommunicate request_size=4 [14:53:57]MH_SAM_APDU [14:53:57]CAPDU: 80 0D 03 02 [14:53:57]Write to MH i2c: E2 08 00 26 0F 80 0D 03 02 00 00 00 00 B0 [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:57]Read from MH i2c: E2 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 0B 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 0B 00 26 0F 00 7A 04 67 B3 90 4C 5C D4 90 00 55 [14:53:57]RAPDU: 7A 04 67 B3 90 4C 5C D4 90 00 [14:53:57]wFMCommunicate OK [14:53:57]SAM_PROTO_SignData done [14:53:57]FM_MakeSignedData done [14:53:57]CreateOFDProtocolMessage [14:53:57]wFMCommunicate request_size=4 [14:53:57]MH_SAM_APDU [14:53:57]CAPDU: 80 11 00 00 [14:53:57]Write to MH i2c: E2 08 00 27 0F 80 11 00 00 00 00 00 00 B0 [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:57]Read from MH i2c: E2 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 17 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 17 00 27 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 07 [14:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:53:57]wFMCommunicate OK [14:53:57]CreateOFDProtocolMessage done [14:53:57]OFDSenderStorePacket 139358 [14:53:57]StoreOFDPacket docnum=139358 [14:53:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A6 1F 07 01 20 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 C1 00 00 00 F4 03 04 00 85 5C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 20 02 00 35 04 06 00 34 12 4A EF 25 01 7A 04 67 B3 90 4C 5C D4 [14:53:57]CheckFolder [14:53:57]dirname=/storage/ofd_packets [14:53:57]CheckFolder done [14:53:57]ProducePacketName [14:53:57]name=ofd_packets/00139358 [14:53:57]NVStorageSaveData ofd_packets/00139358 [14:53:57]File name is /storage/ofd_packets/00139358 [14:53:57]Write 301 bytes [14:53:57]NVStorageSaveData done [14:53:57]OFDSenderStorePacket done [14:53:57]KKMCreateOFDPacket done [14:53:57]NVStorageSaveData kkm_last_timestamp [14:53:57]File name is /storage/kkm_last_timestamp [14:53:57]Write 4 bytes [14:53:57]NVStorageSaveData done [14:53:57]ExternCall_PrintAddStr [14:53:57]wPrintStart [14:53:57]Write to MH i2c: 01 00 00 28 0F 37 [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: 01 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: 01 07 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: 01 07 00 28 0F 00 00 00 00 00 FF 0F 4C [14:53:57]RasterBufferAndPrint [14:53:57]line Счет N : (1)593200 [14:53:57]line ИНН: 02508201610067 [14:53:57]line Контрольно-Кассовый Чек [14:53:57]line ПРОДАЖА [14:53:57]line ТРК (МРК, ГНК) : 52 [14:53:57]line Товар: 2710124130 [14:53:57]line Аи-92-К-5 [14:53:57]line 7.380 * 67.80 [14:53:57]line = 500.36 [14:53:57]line НДС 12% НСП 1% [14:53:57]line > о реализуемом товаре [14:53:57]line ОКРУГЛЕНИЕ: -0.36 [14:53:57]line ИТОГО: 500.00 [14:53:57]line Внесено: 500.00 [14:53:57]line СДАЧА: 0.00 [14:53:57]line НСП 1% : 4.43 [14:53:57]line НДС 12% : 53.14 [14:53:57]line Наличными: 500.00 [14:53:57]line Безнал.: 0.00 [14:53:57]line Место: АЗС № 136 "Партнер Нефть" [14:53:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:53:57]line СНО: Общий режим [14:53:57]line Чек 193 19.08.2024 14:53 [14:53:57]line Смена: 452 ФФД: 1.0 [14:53:57]line ЗНМ: 0300000067 [14:53:57]line РНМ: 0000000000092569 [14:53:57]line Версия ККМ: 001 [14:53:57]line ФМ: 0000000000871776 [14:53:57]line ФД: 139358 [14:53:57]line ФПД: 57253171242241 [14:53:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T145357&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139358&fm=57253171242241&tin=02508201610067®Number=0000000000092569&sum=50000 [14:53:58]OFD Sender: Processing packet 139358 [packets to send 137, broken 136] [14:53:58]ProducePacketName [14:53:58]name=ofd_packets/00139358 [14:53:58]OFD Sender: To server: pG, [14:53:58]CommunicateWithHost lk.salyk.kg:30040 [14:53:58]ConnectInit lk.salyk.kg [14:53:58]written 0, free lines is 4095 [14:53:58]Connected sock=10 [14:53: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 37 36 0F 01 00 00 A6 1F 07 01 20 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 C1 00 00 00 F4 03 04 00 85 5C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 20 02 00 35 04 06 00 34 12 4A EF 25 01 7A 04 67 B3 90 4C 5C D4 [14:53: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 37 36 4F 00 00 00 59 1C 47 00 43 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 37 36 10 04 04 00 5E 20 02 00 F4 03 04 00 1B 03 C3 66 B6 04 01 00 00 F4 BB 6A 0D 20 DB E0 7A [14:53:58]CommunicateWithHost err = 0 [14:53:58]CheckOFDResponse [14:53:58]1017 (14) - 77093643461234 [14:53:58]1041 (16) - 0000000000871776 [14:53:58]1040 (4) - 139358 [14:53:58]1012 (4) - 19.08.2024 08:32 [14:53:58]1206 (1) - 0 [14:53:58]OFD Sender: Remove packet 139358 [14:53:58]ProducePacketName [14:53:58]name=ofd_packets/00139358 [14:53:58]NVStorageDeleteData [14:53:58]Write to MH i2c: 01 00 00 53 0F 62 [14:53:58]Write i2c OK [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: 01 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: 01 07 00 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 E0 0C 55 [14:53:58]RasterBufferAndPrint [14:53:58]line [14:53:58]line [14:53:58]line [14:53:58]line [14:53:58]line [14:53:58]written 0, free lines is 3305 [14:53:58]MH_Cut [14:53:58]Write to MH i2c: D1 01 00 5A 0F 01 3B [14:53:58]Write i2c OK [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: D1 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: D1 01 00 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: D1 01 00 5A 0F 00 3A [14:53:58]Write to MH i2c: 01 00 00 5B 0F 6A [14:53:58]Write i2c OK [14:53:58]MH_I2C_Read... [14:53:59]OFD Sender: No OFD packet to send [14:53:59]*** Cut start [14:53:59]*** Partial cut [14:53:59]*** CUTSNS_PIN = 1 [14:53:59]*** CUTSNS_PIN = 0 [14:53:59]*** Brake cut motor [14:53:59]Read from MH i2c: 01 [14:53:59]MH_I2C_Read... [14:53:59]*** Stop cut motor [14:53:59]*** Cut end [14:53:59]Read from MH i2c: 01 07 00 [14:53:59]MH_I2C_Read... [14:53:59]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 FF 0F 7F [14:53:59]process_action close_receipt done [14:53:59]requested_data is exist [14:53:59]produce_requested_data [14:53:59]requested_item fm.sn is exist - process it [14:53:59]wFMCommunicate request_size=4 [14:53:59]MH_SAM_APDU [14:53:59]CAPDU: 80 11 00 00 [14:53:59]Write to MH i2c: E2 08 00 5C 0F 80 11 00 00 00 00 00 00 E5 [14:53:59]Write i2c OK [14:53:59]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 17 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 17 00 5C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [14:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:54:00]wFMCommunicate OK [14:54:00]requested_item fd.num is exist - process it [14:54:00]SAM_PROTO_GetFieldsCounters [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 13 00 00 [14:54:00]Write to MH i2c: E2 08 00 5D 0F 80 13 00 00 00 00 00 00 E8 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 62 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 62 00 5D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [14:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:00]wFMCommunicate OK [14:54:00]SAM_PROTO_GetFieldsCounters done [14:54:00]requested_item shift.num is exist - process it [14:54:00]requested_item shift.opened is exist - process it [14:54:00]req_shift_opened [14:54:00]FM_GetShiftState [14:54:00]SAM_PROTO_GetShiftState [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 13 01 00 [14:54:00]Write to MH i2c: E2 08 00 5E 0F 80 13 01 00 00 00 00 00 EA [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 0E 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 0E 00 5E 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A1 [14:54:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:54:00]wFMCommunicate OK [14:54:00]SAM_PROTO_GetShiftState done [14:54:00]FM_GetShiftState done [14:54:00]req_shift_opened done [14:54:00]requested_item shift.open_date is exist - process it [14:54:00]req_shift_open_date [14:54:00]req_shift_open_date done [14:54:00]produce_requested_data done [14:54:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139358,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:54:00]process_action_free close_receipt [14:54:00]json_value_free [14:54:00]json_value_free done [14:54:00]process_json_proto returns [14:54:00]Send response to host [14:54:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139358,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:54:00]free response buf [14:54:00]execute_script done [14:54:00]execute_script returns [14:54:00]free content buf [14:54:00]Sock 8.Close socket [14:54:00]Sock 8.Thread stoped [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:50]accept exits with 9 [14:59:50]New connection [14:59:50]New thread 3066817892 created [14:59:50]Thread 3066674532 joined [14:59:50]Waiting for new connection... [14:59:50] Sock 9.Parse request [14:59:50]Sock 9.Check first char [14:59:50]Sock 9.First char is OK [14:59:50]request: POST /json_proto HTTP/1.0 [14:59:50]Method: POST [14:59:50]URL: /json_proto [14:59:50]Method is POST - this is cgi request [14:59:50]url: /json_proto [14:59:50]query_string will be loaded in cgi processing [14:59:50]execute_cgi json_proto POST (null) [14:59:50]execute_cgi path=json_proto method=POST [14:59:50]POST find Content-Length [14:59:50]Host: 172.17.45.67:8080 [14:59:50]Content-Length: 677 [14:59:50]Content-Type: application/json [14:59:50] [14:59:50]POST finish read [14:59:50]Found Content-Length = 677 [14:59:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:59:50]execute_script... [14:59:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:59:50]POST & json_proto [14:59:50]process_json_proto [14:59:50]json parsed OK: [14:59:50]protocol is kg_v1.0 [14:59:50]action value=close_receipt [14:59:50]process_action close_receipt [14:59:50]cmd_close_receipt [14:59:50]MH_GetDate [14:59:50]Write to MH i2c: F0 00 00 5F 0F 5D [14:59:50]Write i2c OK [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: F0 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: F0 09 00 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: F0 09 00 5F 0F 00 E7 5D C3 66 5F 7F 2B 66 42 [14:59:50]GetLastDocTimeStamp 1724079237 [14:59:50]current date 1724079591 [14:59:50]FM_GetShiftState [14:59:50]SAM_PROTO_GetShiftState [14:59:50]wFMCommunicate request_size=4 [14:59:50]MH_SAM_APDU [14:59:50]CAPDU: 80 13 01 00 [14:59:50]Write to MH i2c: E2 08 00 60 0F 80 13 01 00 00 00 00 00 EC [14:59:50]Write i2c OK [14:59:50]MH_I2C_Read... [14:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:50]Read from MH i2c: E2 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 0E 00 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 0E 00 60 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A3 [14:59:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:59:50]wFMCommunicate OK [14:59:50]SAM_PROTO_GetShiftState done [14:59:50]FM_GetShiftState done [14:59:50]opened in 1724027888 [14:59:50]opened+sec_in_day 1724114288 [14:59:50]quantity*price = 50036 [14:59:50]sum+1 = 50037 [14:59:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 194 19.08.2024 14:59 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139359 ФПД: 177791920180526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T145951&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139359&fm=177791920180526&tin=02508201610067®Number=0000000000092569&sum=50000 [14:59:51]StoreToDocumentArchive [14:59:51]shift 452 fd 139359 [14:59:51]save to /storage/0452/doc_00139359 [14:59:51]save last doc name /storage/0452/doc_00139359 to /storage/kkm_last_doc_name [14:59:51]save OK [14:59:51]Clear old archive folders... [14:59:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:51]tlvbuf is B6E879A0 [14:59:51]SAM_PROTO_ClearQueue [14:59:51]wFMCommunicate request_size=4 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 09 00 00 [14:59:51]Write to MH i2c: E2 08 00 6D 0F 80 09 00 00 00 00 00 00 EE [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 6D 0F 00 90 00 F0 [14:59:51]RAPDU: 90 00 [14:59:51]wFMCommunicate OK [14:59:51]SAM_PROTO_ClearQueue done [14:59:51]KKMCreateOFDPacket [14:59:51]OFDProtocolAddRootSTLVToBuf [14:59:51]FM_MakeSignedData [14:59:51]FM_MakeSignedData [14:59:51]SAM_PROTO_SignData [14:59:51]wFMCommunicate request_size=4 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 0D 01 02 [14:59:51]Write to MH i2c: E2 08 00 6E 0F 80 0D 01 02 00 00 00 00 F6 [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 6E 0F 00 90 00 F1 [14:59:51]RAPDU: 90 00 [14:59:51]wFMCommunicate OK [14:59:51]wFMCommunicate request_size=255 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 C2 00 00 00 F4 03 04 00 E7 5D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 20 02 00 35 04 06 00 A1 [14:59:51]Write to MH i2c: E2 02 01 6F 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 C2 00 00 00 F4 03 04 00 E7 5D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 20 02 00 35 04 06 00 A1 00 00 95 [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 6F 0F 00 90 00 F2 [14:59:51]RAPDU: 90 00 [14:59:51]wFMCommunicate OK [14:59:51]wFMCommunicate request_size=10 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 0D 02 02 05 B3 68 3F 0D 2E [14:59:51]Write to MH i2c: E2 0D 00 70 0F 80 0D 02 02 05 00 B3 68 3F 0D 2E 00 00 98 [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:52]Read from MH i2c: E2 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: E2 03 00 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: E2 03 00 70 0F 00 90 00 F3 [14:59:52]RAPDU: 90 00 [14:59:52]wFMCommunicate OK [14:59:52]wFMCommunicate request_size=4 [14:59:52]MH_SAM_APDU [14:59:52]CAPDU: 80 0D 03 02 [14:59:52]Write to MH i2c: E2 08 00 71 0F 80 0D 03 02 00 00 00 00 FB [14:59:52]Write i2c OK [14:59:52]MH_I2C_Read... [14:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:52]Read from MH i2c: E2 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: E2 0B 00 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: E2 0B 00 71 0F 00 FE 62 9A B7 56 87 FF 40 90 00 C9 [14:59:52]RAPDU: FE 62 9A B7 56 87 FF 40 90 00 [14:59:52]wFMCommunicate OK [14:59:52]SAM_PROTO_SignData done [14:59:52]FM_MakeSignedData done [14:59:52]CreateOFDProtocolMessage [14:59:52]wFMCommunicate request_size=4 [14:59:52]MH_SAM_APDU [14:59:52]CAPDU: 80 11 00 00 [14:59:52]Write to MH i2c: E2 08 00 72 0F 80 11 00 00 00 00 00 00 FB [14:59:52]Write i2c OK [14:59:52]MH_I2C_Read... [14:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:52]Read from MH i2c: E2 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: E2 17 00 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: E2 17 00 72 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 52 [14:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:59:52]wFMCommunicate OK [14:59:52]CreateOFDProtocolMessage done [14:59:52]OFDSenderStorePacket 139359 [14:59:52]StoreOFDPacket docnum=139359 [14:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AE BE 07 01 9D 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 C2 00 00 00 F4 03 04 00 E7 5D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 20 02 00 35 04 06 00 A1 B3 68 3F 0D 2E FE 62 9A B7 56 87 FF 40 [14:59:52]CheckFolder [14:59:52]dirname=/storage/ofd_packets [14:59:52]CheckFolder done [14:59:52]ProducePacketName [14:59:52]name=ofd_packets/00139359 [14:59:52]NVStorageSaveData ofd_packets/00139359 [14:59:52]File name is /storage/ofd_packets/00139359 [14:59:52]Write 301 bytes [14:59:52]NVStorageSaveData done [14:59:52]OFDSenderStorePacket done [14:59:52]KKMCreateOFDPacket done [14:59:52]NVStorageSaveData kkm_last_timestamp [14:59:52]File name is /storage/kkm_last_timestamp [14:59:52]Write 4 bytes [14:59:52]NVStorageSaveData done [14:59:52]ExternCall_PrintAddStr [14:59:52]wPrintStart [14:59:52]Write to MH i2c: 01 00 00 73 0F 82 [14:59:52]Write i2c OK [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: 01 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: 01 07 00 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: 01 07 00 73 0F 00 00 00 00 00 FF 0F 97 [14:59:52]RasterBufferAndPrint [14:59:52]line Счет N : (1)593201 [14:59:52]line ИНН: 02508201610067 [14:59:52]line Контрольно-Кассовый Чек [14:59:52]line ПРОДАЖА [14:59:52]line ТРК (МРК, ГНК) : 42 [14:59:52]line Товар: 2710124130 [14:59:52]line Аи-92-К-5 [14:59:52]line 7.380 * 67.80 [14:59:52]line = 500.36 [14:59:52]line НДС 12% НСП 1% [14:59:52]line > о реализуемом товаре [14:59:52]line ОКРУГЛЕНИЕ: -0.36 [14:59:52]line ИТОГО: 500.00 [14:59:52]line Внесено: 500.00 [14:59:52]line СДАЧА: 0.00 [14:59:52]line НСП 1% : 4.43 [14:59:52]line НДС 12% : 53.14 [14:59:52]line Наличными: 500.00 [14:59:52]line Безнал.: 0.00 [14:59:52]line Место: АЗС № 136 "Партнер Нефть" [14:59:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:59:52]line СНО: Общий режим [14:59:52]line Чек 194 19.08.2024 14:59 [14:59:52]line Смена: 452 ФФД: 1.0 [14:59:52]line ЗНМ: 0300000067 [14:59:52]line РНМ: 0000000000092569 [14:59:52]line Версия ККМ: 001 [14:59:52]line ФМ: 0000000000871776 [14:59:52]line ФД: 139359 [14:59:52]line ФПД: 177791920180526 [14:59:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T145951&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139359&fm=177791920180526&tin=02508201610067®Number=0000000000092569&sum=50000 [14:59:52]OFD Sender: Processing packet 139359 [packets to send 137, broken 136] [14:59:52]ProducePacketName [14:59:52]name=ofd_packets/00139359 [14:59:52]OFD Sender: To server: pG, [14:59:52]CommunicateWithHost lk.salyk.kg:30040 [14:59:52]ConnectInit lk.salyk.kg [14:59:52]written 0, free lines is 4095 [14:59:52]Connected sock=10 [14:59:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AE BE 07 01 9D 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 C2 00 00 00 F4 03 04 00 E7 5D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 20 02 00 35 04 06 00 A1 B3 68 3F 0D 2E FE 62 9A B7 56 87 FF 40 [14:59: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 37 36 4F 00 00 00 53 D5 47 00 48 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 37 36 10 04 04 00 5F 20 02 00 F4 03 04 00 7D 04 C3 66 B6 04 01 00 00 56 AA 20 C8 07 12 42 CA [14:59:52]CommunicateWithHost err = 0 [14:59:52]CheckOFDResponse [14:59:52]1017 (14) - 77093643461234 [14:59:52]1041 (16) - 0000000000871776 [14:59:52]1040 (4) - 139359 [14:59:52]1012 (4) - 19.08.2024 08:38 [14:59:52]1206 (1) - 0 [14:59:52]OFD Sender: Remove packet 139359 [14:59:52]ProducePacketName [14:59:52]name=ofd_packets/00139359 [14:59:52]NVStorageDeleteData [14:59:52]Write to MH i2c: 01 00 00 9E 0F AD [14:59:52]Write i2c OK [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: 01 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: 01 07 00 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: 01 07 00 9E 0F 00 00 00 00 00 D3 0C 93 [14:59:52]RasterBufferAndPrint [14:59:52]line [14:59:52]line [14:59:52]line [14:59:52]line [14:59:52]line [14:59:52]written 0, free lines is 3289 [14:59:52]MH_Cut [14:59:52]Write to MH i2c: D1 01 00 A5 0F 01 86 [14:59:52]Write i2c OK [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: D1 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: D1 01 00 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: D1 01 00 A5 0F 00 85 [14:59:52]Write to MH i2c: 01 00 00 A6 0F B5 [14:59:52]Write i2c OK [14:59:52]MH_I2C_Read... [14:59:53]OFD Sender: No OFD packet to send [14:59:53]*** Cut start [14:59:53]*** Partial cut [14:59:53]*** CUTSNS_PIN = 1 [14:59:53]*** CUTSNS_PIN = 0 [14:59:53]*** Brake cut motor [14:59:54]Read from MH i2c: 01 [14:59:54]MH_I2C_Read... [14:59:54]*** Stop cut motor [14:59:54]*** Cut end [14:59:54]Read from MH i2c: 01 07 00 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: 01 07 00 A6 0F 00 00 00 00 00 FF 0F CA [14:59:54]process_action close_receipt done [14:59:54]requested_data is exist [14:59:54]produce_requested_data [14:59:54]requested_item fm.sn is exist - process it [14:59:54]wFMCommunicate request_size=4 [14:59:54]MH_SAM_APDU [14:59:54]CAPDU: 80 11 00 00 [14:59:54]Write to MH i2c: E2 08 00 A7 0F 80 11 00 00 00 00 00 00 30 [14:59:54]Write i2c OK [14:59:54]MH_I2C_Read... [14:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:54]Read from MH i2c: E2 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 17 00 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 17 00 A7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 87 [14:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:59:54]wFMCommunicate OK [14:59:54]requested_item fd.num is exist - process it [14:59:54]SAM_PROTO_GetFieldsCounters [14:59:54]wFMCommunicate request_size=4 [14:59:54]MH_SAM_APDU [14:59:54]CAPDU: 80 13 00 00 [14:59:54]Write to MH i2c: E2 08 00 A8 0F 80 13 00 00 00 00 00 00 33 [14:59:54]Write i2c OK [14:59:54]MH_I2C_Read... [14:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:54]Read from MH i2c: E2 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 62 00 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 62 00 A8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [14:59:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:54]wFMCommunicate OK [14:59:54]SAM_PROTO_GetFieldsCounters done [14:59:54]requested_item shift.num is exist - process it [14:59:54]requested_item shift.opened is exist - process it [14:59:54]req_shift_opened [14:59:54]FM_GetShiftState [14:59:54]SAM_PROTO_GetShiftState [14:59:54]wFMCommunicate request_size=4 [14:59:54]MH_SAM_APDU [14:59:54]CAPDU: 80 13 01 00 [14:59:54]Write to MH i2c: E2 08 00 A9 0F 80 13 01 00 00 00 00 00 35 [14:59:54]Write i2c OK [14:59:54]MH_I2C_Read... [14:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:54]Read from MH i2c: E2 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 0E 00 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 0E 00 A9 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EC [14:59:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [14:59:54]wFMCommunicate OK [14:59:54]SAM_PROTO_GetShiftState done [14:59:54]FM_GetShiftState done [14:59:54]req_shift_opened done [14:59:54]requested_item shift.open_date is exist - process it [14:59:54]req_shift_open_date [14:59:54]req_shift_open_date done [14:59:54]produce_requested_data done [14:59:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139359,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [14:59:54]process_action_free close_receipt [14:59:54]json_value_free [14:59:54]json_value_free done [14:59:54]process_json_proto returns [14:59:54]Send response to host [14:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139359,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [14:59:54]free response buf [14:59:54]execute_script done [14:59:54]execute_script returns [14:59:54]free content buf [14:59:54]Sock 9.Close socket [14:59:54]Sock 9.Thread stoped [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:25]accept exits with 8 [15:00:25]New connection [15:00:25]New thread 3066674532 created [15:00:25]Thread 3066817892 joined [15:00:25]Waiting for new connection... [15:00:25] Sock 8.Parse request [15:00:25]Sock 8.Check first char [15:00:25]Sock 8.First char is OK [15:00:25]request: POST /json_proto HTTP/1.0 [15:00:25]Method: POST [15:00:25]URL: /json_proto [15:00:25]Method is POST - this is cgi request [15:00:25]url: /json_proto [15:00:25]query_string will be loaded in cgi processing [15:00:25]execute_cgi json_proto POST (null) [15:00:25]execute_cgi path=json_proto method=POST [15:00:25]POST find Content-Length [15:00:25]Host: 172.17.45.67:8080 [15:00:25]Content-Length: 682 [15:00:25]Content-Type: application/json [15:00:25] [15:00:25]POST finish read [15:00:25]Found Content-Length = 682 [15:00:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 8.400, "sum" : 640.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:25]execute_script... [15:00: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)593202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 8.400, "sum" : 640.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:25]POST & json_proto [15:00:25]process_json_proto [15:00:25]json parsed OK: [15:00:25]protocol is kg_v1.0 [15:00:25]action value=close_receipt [15:00:25]process_action close_receipt [15:00:25]cmd_close_receipt [15:00:25]MH_GetDate [15:00:25]Write to MH i2c: F0 00 00 AA 0F A8 [15:00:25]Write i2c OK [15:00:25]MH_I2C_Read... [15:00:25]Read from MH i2c: F0 [15:00:25]MH_I2C_Read... [15:00:25]Read from MH i2c: F0 09 00 [15:00:25]MH_I2C_Read... [15:00:25]Read from MH i2c: F0 09 00 AA 0F 00 0A 5E C3 66 5F 7F 2B 66 B1 [15:00:25]GetLastDocTimeStamp 1724079591 [15:00:25]current date 1724079626 [15:00:25]FM_GetShiftState [15:00:25]SAM_PROTO_GetShiftState [15:00:25]wFMCommunicate request_size=4 [15:00:25]MH_SAM_APDU [15:00:25]CAPDU: 80 13 01 00 [15:00:25]Write to MH i2c: E2 08 00 AB 0F 80 13 01 00 00 00 00 00 37 [15:00:25]Write i2c OK [15:00:25]MH_I2C_Read... [15:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:25]Read from MH i2c: E2 [15:00:25]MH_I2C_Read... [15:00:25]Read from MH i2c: E2 0E 00 [15:00:25]MH_I2C_Read... [15:00:25]Read from MH i2c: E2 0E 00 AB 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EE [15:00:25]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:00:25]wFMCommunicate OK [15:00:25]SAM_PROTO_GetShiftState done [15:00:25]FM_GetShiftState done [15:00:25]opened in 1724027888 [15:00:25]opened+sec_in_day 1724114288 [15:00:25]quantity*price = 64008 [15:00:25]sum+1 = 64009 [15:00:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.66 НДС 12% : 67.97 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 195 19.08.2024 15:00 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139360 ФПД: 7556479063362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150026&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139360&fm=7556479063362&tin=02508201610067®Number=0000000000092569&sum=64000 [15:00:26]StoreToDocumentArchive [15:00:26]shift 452 fd 139360 [15:00:26]save to /storage/0452/doc_00139360 [15:00:26]save last doc name /storage/0452/doc_00139360 to /storage/kkm_last_doc_name [15:00:26]save OK [15:00:26]Clear old archive folders... [15:00:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:00:26]tlvbuf is 012147F0 [15:00:26]SAM_PROTO_ClearQueue [15:00:26]wFMCommunicate request_size=4 [15:00:26]MH_SAM_APDU [15:00:26]CAPDU: 80 09 00 00 [15:00:26]Write to MH i2c: E2 08 00 B8 0F 80 09 00 00 00 00 00 00 39 [15:00:26]Write i2c OK [15:00:26]MH_I2C_Read... [15:00:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:26]Read from MH i2c: E2 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 03 00 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 03 00 B8 0F 00 90 00 3B [15:00:26]RAPDU: 90 00 [15:00:26]wFMCommunicate OK [15:00:26]SAM_PROTO_ClearQueue done [15:00:26]KKMCreateOFDPacket [15:00:26]OFDProtocolAddRootSTLVToBuf [15:00:26]FM_MakeSignedData [15:00:26]FM_MakeSignedData [15:00:26]SAM_PROTO_SignData [15:00:26]wFMCommunicate request_size=4 [15:00:26]MH_SAM_APDU [15:00:26]CAPDU: 80 0D 01 02 [15:00:26]Write to MH i2c: E2 08 00 B9 0F 80 0D 01 02 00 00 00 00 41 [15:00:26]Write i2c OK [15:00:26]MH_I2C_Read... [15:00:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:26]Read from MH i2c: E2 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 03 00 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [15:00:26]RAPDU: 90 00 [15:00:26]wFMCommunicate OK [15:00:26]wFMCommunicate request_size=255 [15:00:26]MH_SAM_APDU [15:00:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 20 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 08 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0A 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 20 02 00 35 04 06 00 [15:00:26]Write to MH i2c: E2 02 01 BA 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 20 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 08 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0A 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 20 02 00 35 04 06 00 00 00 D1 [15:00:26]Write i2c OK [15:00:26]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [15:00:27]RAPDU: 90 00 [15:00:27]wFMCommunicate OK [15:00:27]wFMCommunicate request_size=11 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 0D 02 02 06 06 DF 61 40 15 42 [15:00:27]Write to MH i2c: E2 0E 00 BB 0F 80 0D 02 02 06 00 06 DF 61 40 15 42 00 00 2D [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 BB 0F 00 90 00 3E [15:00:27]RAPDU: 90 00 [15:00:27]wFMCommunicate OK [15:00:27]wFMCommunicate request_size=4 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 0D 03 02 [15:00:27]Write to MH i2c: E2 08 00 BC 0F 80 0D 03 02 00 00 00 00 46 [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 0B 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 0B 00 BC 0F 00 87 5E 27 CA 25 91 FC 8D 90 00 5C [15:00:27]RAPDU: 87 5E 27 CA 25 91 FC 8D 90 00 [15:00:27]wFMCommunicate OK [15:00:27]SAM_PROTO_SignData done [15:00:27]FM_MakeSignedData done [15:00:27]CreateOFDProtocolMessage [15:00:27]wFMCommunicate request_size=4 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 11 00 00 [15:00:27]Write to MH i2c: E2 08 00 BD 0F 80 11 00 00 00 00 00 00 46 [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 17 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 17 00 BD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9D [15:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:00:27]wFMCommunicate OK [15:00:27]CreateOFDProtocolMessage done [15:00:27]OFDSenderStorePacket 139360 [15:00:27]StoreOFDPacket docnum=139360 [15:00:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 DC C1 08 01 D1 BA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 20 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 08 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0A 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 20 02 00 35 04 06 00 06 DF 61 40 15 42 87 5E 27 CA 25 91 FC 8D [15:00:27]CheckFolder [15:00:27]dirname=/storage/ofd_packets [15:00:27]CheckFolder done [15:00:27]ProducePacketName [15:00:27]name=ofd_packets/00139360 [15:00:27]NVStorageSaveData ofd_packets/00139360 [15:00:27]File name is /storage/ofd_packets/00139360 [15:00:27]Write 302 bytes [15:00:27]NVStorageSaveData done [15:00:27]OFDSenderStorePacket done [15:00:27]KKMCreateOFDPacket done [15:00:27]NVStorageSaveData kkm_last_timestamp [15:00:27]File name is /storage/kkm_last_timestamp [15:00:27]Write 4 bytes [15:00:27]NVStorageSaveData done [15:00:27]ExternCall_PrintAddStr [15:00:27]wPrintStart [15:00:27]Write to MH i2c: 01 00 00 BE 0F CD [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: 01 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: 01 07 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: 01 07 00 BE 0F 00 00 00 00 00 FF 0F E2 [15:00:27]RasterBufferAndPrint [15:00:27]line Счет N : (1)593202 [15:00:27]line ИНН: 02508201610067 [15:00:27]line Контрольно-Кассовый Чек [15:00:27]line ПРОДАЖА [15:00:27]line ТРК (МРК, ГНК) : 21 [15:00:27]line Товар: 2710194210 [15:00:27]line ДТ(л)-К-5 [15:00:27]line 8.400 * 76.20 [15:00:27]line = 640.08 [15:00:27]line НДС 12% НСП 1% [15:00:27]line > о реализуемом товаре [15:00:27]line ОКРУГЛЕНИЕ: -0.08 [15:00:27]line ИТОГО: 640.00 [15:00:27]line Внесено: 640.00 [15:00:27]line СДАЧА: 0.00 [15:00:27]line НСП 1% : 5.66 [15:00:27]line НДС 12% : 67.97 [15:00:27]line Наличными: 640.00 [15:00:27]line Безнал.: 0.00 [15:00:27]line Место: АЗС № 136 "Партнер Нефть" [15:00:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:00:27]line СНО: Общий режим [15:00:27]line Чек 195 19.08.2024 15:00 [15:00:27]line Смена: 452 ФФД: 1.0 [15:00:27]line ЗНМ: 0300000067 [15:00:27]line РНМ: 0000000000092569 [15:00:27]line Версия ККМ: 001 [15:00:27]line ФМ: 0000000000871776 [15:00:27]line ФД: 139360 [15:00:27]line ФПД: 7556479063362 [15:00:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150026&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139360&fm=7556479063362&tin=02508201610067®Number=0000000000092569&sum=64000 [15:00:27]OFD Sender: Processing packet 139360 [packets to send 137, broken 136] [15:00:27]ProducePacketName [15:00:27]name=ofd_packets/00139360 [15:00:27]OFD Sender: To server: pG, [15:00:27]CommunicateWithHost lk.salyk.kg:30040 [15:00:27]ConnectInit lk.salyk.kg [15:00:27]written 0, free lines is 4095 [15:00:27]Connected sock=10 [15:00: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 37 36 10 01 00 00 DC C1 08 01 D1 BA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 20 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 08 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0A 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 20 02 00 35 04 06 00 06 DF 61 40 15 42 87 5E 27 CA 25 91 FC 8D [15:00: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 37 36 4F 00 00 00 E6 AC 47 00 4D A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 20 02 00 F4 03 04 00 A0 04 C3 66 B6 04 01 00 00 8B 18 FF 1F 73 86 01 CE [15:00:27]CommunicateWithHost err = 0 [15:00:27]CheckOFDResponse [15:00:27]1017 (14) - 77093643461234 [15:00:27]1041 (16) - 0000000000871776 [15:00:27]1040 (4) - 139360 [15:00:27]1012 (4) - 19.08.2024 08:38 [15:00:27]1206 (1) - 0 [15:00:27]OFD Sender: Remove packet 139360 [15:00:27]ProducePacketName [15:00:27]name=ofd_packets/00139360 [15:00:27]NVStorageDeleteData [15:00:27]Write to MH i2c: 01 00 00 E9 0F F8 [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: 01 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: 01 07 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: 01 07 00 E9 0F 00 00 00 00 00 DA 0C E5 [15:00:27]RasterBufferAndPrint [15:00:27]line [15:00:27]line [15:00:27]line [15:00:27]line [15:00:27]line [15:00:27]written 0, free lines is 3298 [15:00:28]MH_Cut [15:00:28]Write to MH i2c: D1 01 00 F0 0F 01 D1 [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: D1 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: D1 01 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: D1 01 00 F0 0F 00 D0 [15:00:28]Write to MH i2c: 01 00 00 F1 0F 00 [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]OFD Sender: No OFD packet to send [15:00:28]*** Cut start [15:00:28]*** Partial cut [15:00:28]*** CUTSNS_PIN = 1 [15:00:28]*** CUTSNS_PIN = 0 [15:00:28]*** Brake cut motor [15:00:29]Read from MH i2c: 01 [15:00:29]MH_I2C_Read... [15:00:29]*** Stop cut motor [15:00:29]*** Cut end [15:00:29]Read from MH i2c: 01 07 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: 01 07 00 F1 0F 00 00 00 00 00 FF 0F 15 [15:00:29]process_action close_receipt done [15:00:29]requested_data is exist [15:00:29]produce_requested_data [15:00:29]requested_item fm.sn is exist - process it [15:00:29]wFMCommunicate request_size=4 [15:00:29]MH_SAM_APDU [15:00:29]CAPDU: 80 11 00 00 [15:00:29]Write to MH i2c: E2 08 00 F2 0F 80 11 00 00 00 00 00 00 7B [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:29]Read from MH i2c: E2 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 17 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 17 00 F2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [15:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:00:29]wFMCommunicate OK [15:00:29]requested_item fd.num is exist - process it [15:00:29]SAM_PROTO_GetFieldsCounters [15:00:29]wFMCommunicate request_size=4 [15:00:29]MH_SAM_APDU [15:00:29]CAPDU: 80 13 00 00 [15:00:29]Write to MH i2c: E2 08 00 F3 0F 80 13 00 00 00 00 00 00 7E [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:29]Read from MH i2c: E2 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 62 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 62 00 F3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [15:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:29]wFMCommunicate OK [15:00:29]SAM_PROTO_GetFieldsCounters done [15:00:29]requested_item shift.num is exist - process it [15:00:29]requested_item shift.opened is exist - process it [15:00:29]req_shift_opened [15:00:29]FM_GetShiftState [15:00:29]SAM_PROTO_GetShiftState [15:00:29]wFMCommunicate request_size=4 [15:00:29]MH_SAM_APDU [15:00:29]CAPDU: 80 13 01 00 [15:00:29]Write to MH i2c: E2 08 00 F4 0F 80 13 01 00 00 00 00 00 80 [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:29]Read from MH i2c: E2 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 0E 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 0E 00 F4 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 37 [15:00:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:00:29]wFMCommunicate OK [15:00:29]SAM_PROTO_GetShiftState done [15:00:29]FM_GetShiftState done [15:00:29]req_shift_opened done [15:00:29]requested_item shift.open_date is exist - process it [15:00:29]req_shift_open_date [15:00:29]req_shift_open_date done [15:00:29]produce_requested_data done [15:00:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139360,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:00:29]process_action_free close_receipt [15:00:29]json_value_free [15:00:29]json_value_free done [15:00:29]process_json_proto returns [15:00:29]Send response to host [15:00:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139360,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:00:29]free response buf [15:00:29]execute_script done [15:00:29]execute_script returns [15:00:29]free content buf [15:00:29]Sock 8.Close socket [15:00:29]Sock 8.Thread stoped [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:42]accept exits with 9 [15:01:42]New connection [15:01:42]New thread 3066817892 created [15:01:42]Thread 3066674532 joined [15:01:42]Waiting for new connection... [15:01:42] Sock 9.Parse request [15:01:42]Sock 9.Check first char [15:01:42]Sock 9.First char is OK [15:01:42]request: POST /json_proto HTTP/1.0 [15:01:42]Method: POST [15:01:42]URL: /json_proto [15:01:42]Method is POST - this is cgi request [15:01:42]url: /json_proto [15:01:42]query_string will be loaded in cgi processing [15:01:42]execute_cgi json_proto POST (null) [15:01:42]execute_cgi path=json_proto method=POST [15:01:42]POST find Content-Length [15:01:42]Host: 172.17.45.67:8080 [15:01:42]Content-Length: 677 [15:01:42]Content-Type: application/json [15:01:42] [15:01:42]POST finish read [15:01:42]Found Content-Length = 677 [15:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:01:42]execute_script... [15:01: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)593203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:01:42]POST & json_proto [15:01:42]process_json_proto [15:01:42]json parsed OK: [15:01:42]protocol is kg_v1.0 [15:01:42]action value=close_receipt [15:01:42]process_action close_receipt [15:01:42]cmd_close_receipt [15:01:42]MH_GetDate [15:01:42]Write to MH i2c: F0 00 00 F5 0F F3 [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 09 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 09 00 F5 0F 00 57 5E C3 66 5F 7F 2B 66 49 [15:01:42]GetLastDocTimeStamp 1724079626 [15:01:42]current date 1724079703 [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 F6 0F 80 13 01 00 00 00 00 00 82 [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 F6 0F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 39 [15:01:42]RAPDU: 09 00 01 F0 93 C2 66 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]opened in 1724027888 [15:01:42]opened+sec_in_day 1724114288 [15:01:42]quantity*price = 40068 [15:01:42]sum+1 = 40069 [15:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 196 19.08.2024 15:01 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139361 ФПД: 38595476276881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150143&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139361&fm=38595476276881&tin=02508201610067®Number=0000000000092569&sum=40000 [15:01:43]StoreToDocumentArchive [15:01:43]shift 452 fd 139361 [15:01:43]save to /storage/0452/doc_00139361 [15:01:43]save last doc name /storage/0452/doc_00139361 to /storage/kkm_last_doc_name [15:01:43]save OK [15:01:43]Clear old archive folders... [15:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:43]tlvbuf is 01234C70 [15:01:43]SAM_PROTO_ClearQueue [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 09 00 00 [15:01:43]Write to MH i2c: E2 08 00 03 10 80 09 00 00 00 00 00 00 85 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [15:01:43]RAPDU: 90 00 [15:01:43]wFMCommunicate OK [15:01:43]SAM_PROTO_ClearQueue done [15:01:43]KKMCreateOFDPacket [15:01:43]OFDProtocolAddRootSTLVToBuf [15:01:43]FM_MakeSignedData [15:01:43]FM_MakeSignedData [15:01:43]SAM_PROTO_SignData [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 0D 01 02 [15:01:43]Write to MH i2c: E2 08 00 04 10 80 0D 01 02 00 00 00 00 8D [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 04 10 00 90 00 88 [15:01:43]RAPDU: 90 00 [15:01:43]wFMCommunicate OK [15:01:43]wFMCommunicate request_size=255 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 C4 00 00 00 F4 03 04 00 57 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 20 02 00 35 04 06 00 23 [15:01:43]Write to MH i2c: E2 02 01 05 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 C4 00 00 00 F4 03 04 00 57 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 20 02 00 35 04 06 00 23 00 00 E2 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 05 10 00 90 00 89 [15:01:44]RAPDU: 90 00 [15:01:44]wFMCommunicate OK [15:01:44]wFMCommunicate request_size=10 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 0D 02 02 05 1A 35 A7 46 91 [15:01:44]Write to MH i2c: E2 0D 00 06 10 80 0D 02 02 05 00 1A 35 A7 46 91 00 00 67 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 06 10 00 90 00 8A [15:01:44]RAPDU: 90 00 [15:01:44]wFMCommunicate OK [15:01:44]wFMCommunicate request_size=4 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 0D 03 02 [15:01:44]Write to MH i2c: E2 08 00 07 10 80 0D 03 02 00 00 00 00 92 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 0B 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 0B 00 07 10 00 80 36 F8 04 D2 59 76 21 90 00 07 [15:01:44]RAPDU: 80 36 F8 04 D2 59 76 21 90 00 [15:01:44]wFMCommunicate OK [15:01:44]SAM_PROTO_SignData done [15:01:44]FM_MakeSignedData done [15:01:44]CreateOFDProtocolMessage [15:01:44]wFMCommunicate request_size=4 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 11 00 00 [15:01:44]Write to MH i2c: E2 08 00 08 10 80 11 00 00 00 00 00 00 92 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 17 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 17 00 08 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E9 [15:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:01:44]wFMCommunicate OK [15:01:44]CreateOFDProtocolMessage done [15:01:44]OFDSenderStorePacket 139361 [15:01:44]StoreOFDPacket docnum=139361 [15:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DB 6E 07 01 69 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 C4 00 00 00 F4 03 04 00 57 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 20 02 00 35 04 06 00 23 1A 35 A7 46 91 80 36 F8 04 D2 59 76 21 [15:01:44]CheckFolder [15:01:44]dirname=/storage/ofd_packets [15:01:44]CheckFolder done [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00139361 [15:01:44]NVStorageSaveData ofd_packets/00139361 [15:01:44]File name is /storage/ofd_packets/00139361 [15:01:44]Write 301 bytes [15:01:44]NVStorageSaveData done [15:01:44]OFDSenderStorePacket done [15:01:44]KKMCreateOFDPacket done [15:01:44]NVStorageSaveData kkm_last_timestamp [15:01:44]File name is /storage/kkm_last_timestamp [15:01:44]Write 4 bytes [15:01:44]NVStorageSaveData done [15:01:44]ExternCall_PrintAddStr [15:01:44]wPrintStart [15:01:44]Write to MH i2c: 01 00 00 09 10 19 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 09 10 00 00 00 00 00 FF 0F 2E [15:01:44]RasterBufferAndPrint [15:01:44]line Счет N : (1)593203 [15:01:44]line ИНН: 02508201610067 [15:01:44]line Контрольно-Кассовый Чек [15:01:44]line ПРОДАЖА [15:01:44]line ТРК (МРК, ГНК) : 41 [15:01:44]line Товар: 2710124500 [15:01:44]line Аи-95-К-5 [15:01:44]line 5.400 * 74.20 [15:01:44]line = 400.68 [15:01:44]line НДС 12% НСП 1% [15:01:44]line > о реализуемом товаре [15:01:44]line ОКРУГЛЕНИЕ: -0.68 [15:01:44]line ИТОГО: 400.00 [15:01:44]line Внесено: 400.00 [15:01:44]line СДАЧА: 0.00 [15:01:44]line НСП 1% : 3.55 [15:01:44]line НДС 12% : 42.55 [15:01:44]line Наличными: 400.00 [15:01:44]line Безнал.: 0.00 [15:01:44]line Место: АЗС № 136 "Партнер Нефть" [15:01:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:01:44]line СНО: Общий режим [15:01:44]line Чек 196 19.08.2024 15:01 [15:01:44]line Смена: 452 ФФД: 1.0 [15:01:44]line ЗНМ: 0300000067 [15:01:44]line РНМ: 0000000000092569 [15:01:44]line Версия ККМ: 001 [15:01:44]line ФМ: 0000000000871776 [15:01:44]line ФД: 139361 [15:01:44]line ФПД: 38595476276881 [15:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150143&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139361&fm=38595476276881&tin=02508201610067®Number=0000000000092569&sum=40000 [15:01:44]OFD Sender: Processing packet 139361 [packets to send 137, broken 136] [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00139361 [15:01:44]OFD Sender: To server: pG, [15:01:44]CommunicateWithHost lk.salyk.kg:30040 [15:01:44]ConnectInit lk.salyk.kg [15:01:44]written 0, free lines is 4095 [15:01:44]Connected sock=10 [15:01: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 37 36 0F 01 00 00 DB 6E 07 01 69 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 C4 00 00 00 F4 03 04 00 57 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 20 02 00 35 04 06 00 23 1A 35 A7 46 91 80 36 F8 04 D2 59 76 21 [15:01: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 37 36 4F 00 00 00 2B C4 47 00 0E 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 37 36 10 04 04 00 61 20 02 00 F4 03 04 00 ED 04 C3 66 B6 04 01 00 00 F1 43 80 BA 2A 54 01 34 [15:01:44]CommunicateWithHost err = 0 [15:01:44]CheckOFDResponse [15:01:44]1017 (14) - 77093643461234 [15:01:44]1041 (16) - 0000000000871776 [15:01:44]1040 (4) - 139361 [15:01:44]1012 (4) - 19.08.2024 08:40 [15:01:44]1206 (1) - 0 [15:01:44]OFD Sender: Remove packet 139361 [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00139361 [15:01:44]NVStorageDeleteData [15:01:45]Write to MH i2c: 01 00 00 34 10 44 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: 01 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: 01 07 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: 01 07 00 34 10 00 00 00 00 00 DD 0C 34 [15:01:45]RasterBufferAndPrint [15:01:45]line [15:01:45]line [15:01:45]line [15:01:45]line [15:01:45]line [15:01:45]written 0, free lines is 3299 [15:01:45]MH_Cut [15:01:45]Write to MH i2c: D1 01 00 3B 10 01 1D [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: D1 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: D1 01 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: D1 01 00 3B 10 00 1C [15:01:45]Write to MH i2c: 01 00 00 3C 10 4C [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]OFD Sender: No OFD packet to send [15:01:45]*** Cut start [15:01:45]*** Partial cut [15:01:45]*** CUTSNS_PIN = 1 [15:01:45]*** CUTSNS_PIN = 0 [15:01:45]*** Brake cut motor [15:01:46]Read from MH i2c: 01 [15:01:46]MH_I2C_Read... [15:01:46]*** Stop cut motor [15:01:46]*** Cut end [15:01:46]Read from MH i2c: 01 07 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: 01 07 00 3C 10 00 00 00 00 00 FF 0F 61 [15:01:46]process_action close_receipt done [15:01:46]requested_data is exist [15:01:46]produce_requested_data [15:01:46]requested_item fm.sn is exist - process it [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 11 00 00 [15:01:46]Write to MH i2c: E2 08 00 3D 10 80 11 00 00 00 00 00 00 C7 [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 17 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 17 00 3D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [15:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:01:46]wFMCommunicate OK [15:01:46]requested_item fd.num is exist - process it [15:01:46]SAM_PROTO_GetFieldsCounters [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 13 00 00 [15:01:46]Write to MH i2c: E2 08 00 3E 10 80 13 00 00 00 00 00 00 CA [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 62 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 62 00 3E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:46]wFMCommunicate OK [15:01:46]SAM_PROTO_GetFieldsCounters done [15:01:46]requested_item shift.num is exist - process it [15:01:46]requested_item shift.opened is exist - process it [15:01:46]req_shift_opened [15:01:46]FM_GetShiftState [15:01:46]SAM_PROTO_GetShiftState [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 13 01 00 [15:01:46]Write to MH i2c: E2 08 00 3F 10 80 13 01 00 00 00 00 00 CC [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 0E 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 0E 00 3F 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 83 [15:01:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:01:46]wFMCommunicate OK [15:01:46]SAM_PROTO_GetShiftState done [15:01:46]FM_GetShiftState done [15:01:46]req_shift_opened done [15:01:46]requested_item shift.open_date is exist - process it [15:01:46]req_shift_open_date [15:01:46]req_shift_open_date done [15:01:46]produce_requested_data done [15:01:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139361,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:01:46]process_action_free close_receipt [15:01:46]json_value_free [15:01:46]json_value_free done [15:01:46]process_json_proto returns [15:01:46]Send response to host [15:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139361,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:01:46]free response buf [15:01:46]execute_script done [15:01:46]execute_script returns [15:01:46]free content buf [15:01:46]Sock 9.Close socket [15:01:46]Sock 9.Thread stoped [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]accept exits with 8 [15:03:45]New connection [15:03:45]New thread 3066674532 created [15:03:45]Thread 3066817892 joined [15:03:45]Waiting for new connection... [15:03:45] Sock 8.Parse request [15:03:45]Sock 8.Check first char [15:03:45]Sock 8.First char is OK [15:03:45]request: POST /json_proto HTTP/1.0 [15:03:45]Method: POST [15:03:45]URL: /json_proto [15:03:45]Method is POST - this is cgi request [15:03:45]url: /json_proto [15:03:45]query_string will be loaded in cgi processing [15:03:45]execute_cgi json_proto POST (null) [15:03:45]execute_cgi path=json_proto method=POST [15:03:45]POST find Content-Length [15:03:45]Host: 172.17.45.67:8080 [15:03:45]Content-Length: 677 [15:03:45]Content-Type: application/json [15:03:45] [15:03:45]POST finish read [15:03:45]Found Content-Length = 677 [15:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:03:45]execute_script... [15:03: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)593205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:03:45]POST & json_proto [15:03:45]process_json_proto [15:03:45]json parsed OK: [15:03:45]protocol is kg_v1.0 [15:03:45]action value=close_receipt [15:03:45]process_action close_receipt [15:03:45]cmd_close_receipt [15:03:45]MH_GetDate [15:03:45]Write to MH i2c: F0 00 00 40 10 3F [15:03:45]Write i2c OK [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: F0 [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: F0 09 00 [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: F0 09 00 40 10 00 D2 5E C3 66 5F 7F 2B 66 10 [15:03:45]GetLastDocTimeStamp 1724079703 [15:03:45]current date 1724079826 [15:03:45]FM_GetShiftState [15:03:45]SAM_PROTO_GetShiftState [15:03:45]wFMCommunicate request_size=4 [15:03:45]MH_SAM_APDU [15:03:45]CAPDU: 80 13 01 00 [15:03:45]Write to MH i2c: E2 08 00 41 10 80 13 01 00 00 00 00 00 CE [15:03:45]Write i2c OK [15:03:45]MH_I2C_Read... [15:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:45]Read from MH i2c: E2 [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: E2 0E 00 [15:03:45]MH_I2C_Read... [15:03:45]Read from MH i2c: E2 0E 00 41 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 85 [15:03:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:03:45]wFMCommunicate OK [15:03:45]SAM_PROTO_GetShiftState done [15:03:45]FM_GetShiftState done [15:03:45]opened in 1724027888 [15:03:45]opened+sec_in_day 1724114288 [15:03:45]quantity*price = 20001 [15:03:45]sum+1 = 20002 [15:03:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 197 19.08.2024 15:03 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139362 ФПД: 52841042006195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150346&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139362&fm=52841042006195&tin=02508201610067®Number=0000000000092569&sum=20000 [15:03:46]StoreToDocumentArchive [15:03:46]shift 452 fd 139362 [15:03:46]save to /storage/0452/doc_00139362 [15:03:46]save last doc name /storage/0452/doc_00139362 to /storage/kkm_last_doc_name [15:03:46]save OK [15:03:46]Clear old archive folders... [15:03:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:46]tlvbuf is 01213910 [15:03:46]SAM_PROTO_ClearQueue [15:03:46]wFMCommunicate request_size=4 [15:03:46]MH_SAM_APDU [15:03:46]CAPDU: 80 09 00 00 [15:03:46]Write to MH i2c: E2 08 00 4E 10 80 09 00 00 00 00 00 00 D0 [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:46]Read from MH i2c: E2 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 03 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 03 00 4E 10 00 90 00 D2 [15:03:46]RAPDU: 90 00 [15:03:46]wFMCommunicate OK [15:03:46]SAM_PROTO_ClearQueue done [15:03:46]KKMCreateOFDPacket [15:03:46]OFDProtocolAddRootSTLVToBuf [15:03:46]FM_MakeSignedData [15:03:46]FM_MakeSignedData [15:03:46]SAM_PROTO_SignData [15:03:46]wFMCommunicate request_size=4 [15:03:46]MH_SAM_APDU [15:03:46]CAPDU: 80 0D 01 02 [15:03:46]Write to MH i2c: E2 08 00 4F 10 80 0D 01 02 00 00 00 00 D8 [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:46]Read from MH i2c: E2 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 03 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 03 00 4F 10 00 90 00 D3 [15:03:46]RAPDU: 90 00 [15:03:46]wFMCommunicate OK [15:03:46]wFMCommunicate request_size=255 [15:03:46]MH_SAM_APDU [15:03: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 C5 00 00 00 F4 03 04 00 D2 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 20 02 00 35 04 06 00 30 [15:03:46]Write to MH i2c: E2 02 01 50 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 C5 00 00 00 F4 03 04 00 D2 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 20 02 00 35 04 06 00 30 00 00 FA [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:46]Read from MH i2c: E2 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 03 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 03 00 50 10 00 90 00 D4 [15:03:46]RAPDU: 90 00 [15:03:46]wFMCommunicate OK [15:03:46]wFMCommunicate request_size=10 [15:03:46]MH_SAM_APDU [15:03:46]CAPDU: 80 0D 02 02 05 0F 03 89 D0 B3 [15:03:46]Write to MH i2c: E2 0D 00 51 10 80 0D 02 02 05 00 0F 03 89 D0 B3 00 00 03 [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:46]Read from MH i2c: E2 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 03 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 03 00 51 10 00 90 00 D5 [15:03:46]RAPDU: 90 00 [15:03:46]wFMCommunicate OK [15:03:46]wFMCommunicate request_size=4 [15:03:46]MH_SAM_APDU [15:03:46]CAPDU: 80 0D 03 02 [15:03:46]Write to MH i2c: E2 08 00 52 10 80 0D 03 02 00 00 00 00 DD [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:46]Read from MH i2c: E2 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 0B 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 0B 00 52 10 00 86 C3 7D 46 1F 03 0D 92 90 00 AB [15:03:46]RAPDU: 86 C3 7D 46 1F 03 0D 92 90 00 [15:03:46]wFMCommunicate OK [15:03:46]SAM_PROTO_SignData done [15:03:46]FM_MakeSignedData done [15:03:46]CreateOFDProtocolMessage [15:03:46]wFMCommunicate request_size=4 [15:03:46]MH_SAM_APDU [15:03:46]CAPDU: 80 11 00 00 [15:03:46]Write to MH i2c: E2 08 00 53 10 80 11 00 00 00 00 00 00 DD [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:46]Read from MH i2c: E2 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 17 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: E2 17 00 53 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 34 [15:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:03:46]wFMCommunicate OK [15:03:46]CreateOFDProtocolMessage done [15:03:46]OFDSenderStorePacket 139362 [15:03:46]StoreOFDPacket docnum=139362 [15:03:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B2 08 07 01 CE 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 C5 00 00 00 F4 03 04 00 D2 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 20 02 00 35 04 06 00 30 0F 03 89 D0 B3 86 C3 7D 46 1F 03 0D 92 [15:03:46]CheckFolder [15:03:46]dirname=/storage/ofd_packets [15:03:46]CheckFolder done [15:03:46]ProducePacketName [15:03:46]name=ofd_packets/00139362 [15:03:46]NVStorageSaveData ofd_packets/00139362 [15:03:46]File name is /storage/ofd_packets/00139362 [15:03:46]Write 301 bytes [15:03:46]NVStorageSaveData done [15:03:46]OFDSenderStorePacket done [15:03:46]KKMCreateOFDPacket done [15:03:46]NVStorageSaveData kkm_last_timestamp [15:03:46]File name is /storage/kkm_last_timestamp [15:03:46]Write 4 bytes [15:03:46]NVStorageSaveData done [15:03:46]ExternCall_PrintAddStr [15:03:46]wPrintStart [15:03:46]Write to MH i2c: 01 00 00 54 10 64 [15:03:46]Write i2c OK [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: 01 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: 01 07 00 [15:03:46]MH_I2C_Read... [15:03:46]Read from MH i2c: 01 07 00 54 10 00 00 00 00 00 FF 0F 79 [15:03:46]RasterBufferAndPrint [15:03:46]line Счет N : (1)593205 [15:03:46]line ИНН: 02508201610067 [15:03:46]line Контрольно-Кассовый Чек [15:03:46]line ПРОДАЖА [15:03:46]line ТРК (МРК, ГНК) : 52 [15:03:46]line Товар: 2710124130 [15:03:46]line Аи-92-К-5 [15:03:46]line 2.950 * 67.80 [15:03:46]line = 200.01 [15:03:46]line НДС 12% НСП 1% [15:03:46]line > о реализуемом товаре [15:03:46]line ОКРУГЛЕНИЕ: -0.01 [15:03:46]line ИТОГО: 200.00 [15:03:46]line Внесено: 200.00 [15:03:46]line СДАЧА: 0.00 [15:03:46]line НСП 1% : 1.77 [15:03:46]line НДС 12% : 21.24 [15:03:46]line Наличными: 200.00 [15:03:46]line Безнал.: 0.00 [15:03:46]line Место: АЗС № 136 "Партнер Нефть" [15:03:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:03:46]line СНО: Общий режим [15:03:46]line Чек 197 19.08.2024 15:03 [15:03:46]line Смена: 452 ФФД: 1.0 [15:03:46]line ЗНМ: 0300000067 [15:03:46]line РНМ: 0000000000092569 [15:03:46]line Версия ККМ: 001 [15:03:46]line ФМ: 0000000000871776 [15:03:46]line ФД: 139362 [15:03:46]line ФПД: 52841042006195 [15:03:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150346&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139362&fm=52841042006195&tin=02508201610067®Number=0000000000092569&sum=20000 [15:03:46]written 0, free lines is 4095 [15:03:46]OFD Sender: Processing packet 139362 [packets to send 137, broken 136] [15:03:46]ProducePacketName [15:03:46]name=ofd_packets/00139362 [15:03:46]OFD Sender: To server: pG, [15:03:46]CommunicateWithHost lk.salyk.kg:30040 [15:03:46]ConnectInit lk.salyk.kg [15:03:47]Connected sock=11 [15:03: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 37 36 0F 01 00 00 B2 08 07 01 CE 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 C5 00 00 00 F4 03 04 00 D2 5E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 20 02 00 35 04 06 00 30 0F 03 89 D0 B3 86 C3 7D 46 1F 03 0D 92 [15:03:47]Write to MH i2c: 01 00 00 7F 10 8F [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: 01 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: 01 07 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 CD 0C 6F [15:03:47]RasterBufferAndPrint [15:03:47]line [15:03:47]line [15:03:47]line [15:03:47]line [15:03:47]line [15:03:47]written 0, free lines is 3283 [15:03:47]MH_Cut [15:03:47]Write to MH i2c: D1 01 00 86 10 01 68 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: D1 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: D1 01 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: D1 01 00 86 10 00 67 [15:03:47]Write to MH i2c: 01 00 00 87 10 97 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03: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 37 36 4F 00 00 00 E1 4A 47 00 76 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 37 36 10 04 04 00 62 20 02 00 F4 03 04 00 67 05 C3 66 B6 04 01 00 00 B7 43 11 37 D0 38 40 C3 [15:03:47]CommunicateWithHost err = 0 [15:03:47]CheckOFDResponse [15:03:47]1017 (14) - 77093643461234 [15:03:47]1041 (16) - 0000000000871776 [15:03:47]1040 (4) - 139362 [15:03:47]1012 (4) - 19.08.2024 08:42 [15:03:47]1206 (1) - 0 [15:03:47]OFD Sender: Remove packet 139362 [15:03:47]ProducePacketName [15:03:47]name=ofd_packets/00139362 [15:03:47]NVStorageDeleteData [15:03:47]OFD Sender: No OFD packet to send [15:03:48]*** Cut start [15:03:48]*** Partial cut [15:03:48]*** CUTSNS_PIN = 1 [15:03:48]*** CUTSNS_PIN = 0 [15:03:48]*** Brake cut motor [15:03:48]Read from MH i2c: 01 [15:03:48]MH_I2C_Read... [15:03:48]*** Stop cut motor [15:03:48]*** Cut end [15:03:48]Read from MH i2c: 01 07 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 07 00 87 10 00 00 00 00 00 FF 0F AC [15:03:48]process_action close_receipt done [15:03:48]requested_data is exist [15:03:48]produce_requested_data [15:03:48]requested_item fm.sn is exist - process it [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 11 00 00 [15:03:48]Write to MH i2c: E2 08 00 88 10 80 11 00 00 00 00 00 00 12 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 17 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 17 00 88 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [15:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:03:48]wFMCommunicate OK [15:03:48]requested_item fd.num is exist - process it [15:03:48]SAM_PROTO_GetFieldsCounters [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 13 00 00 [15:03:48]Write to MH i2c: E2 08 00 89 10 80 13 00 00 00 00 00 00 15 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 62 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 62 00 89 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [15:03: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:48]wFMCommunicate OK [15:03:48]SAM_PROTO_GetFieldsCounters done [15:03:48]requested_item shift.num is exist - process it [15:03:48]requested_item shift.opened is exist - process it [15:03:48]req_shift_opened [15:03:48]FM_GetShiftState [15:03:48]SAM_PROTO_GetShiftState [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 13 01 00 [15:03:48]Write to MH i2c: E2 08 00 8A 10 80 13 01 00 00 00 00 00 17 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 0E 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 0E 00 8A 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CE [15:03:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:03:48]wFMCommunicate OK [15:03:48]SAM_PROTO_GetShiftState done [15:03:48]FM_GetShiftState done [15:03:48]req_shift_opened done [15:03:48]requested_item shift.open_date is exist - process it [15:03:48]req_shift_open_date [15:03:48]req_shift_open_date done [15:03:48]produce_requested_data done [15:03:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139362,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:03:48]process_action_free close_receipt [15:03:48]json_value_free [15:03:48]json_value_free done [15:03:48]process_json_proto returns [15:03:48]Send response to host [15:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139362,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:03:48]free response buf [15:03:48]execute_script done [15:03:48]execute_script returns [15:03:48]free content buf [15:03:48]Sock 8.Close socket [15:03:48]Sock 8.Thread stoped [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:41]accept exits with 9 [15:04:41]New connection [15:04:41]New thread 3066817892 created [15:04:41]Thread 3066674532 joined [15:04:41]Waiting for new connection... [15:04:41] Sock 9.Parse request [15:04:41]Sock 9.Check first char [15:04:41]Sock 9.First char is OK [15:04:41]request: POST /json_proto HTTP/1.0 [15:04:41]Method: POST [15:04:41]URL: /json_proto [15:04:41]Method is POST - this is cgi request [15:04:41]url: /json_proto [15:04:41]query_string will be loaded in cgi processing [15:04:41]execute_cgi json_proto POST (null) [15:04:41]execute_cgi path=json_proto method=POST [15:04:41]POST find Content-Length [15:04:41]Host: 172.17.45.67:8080 [15:04:41]Content-Length: 754 [15:04:41]Content-Type: application/json [15:04:41] [15:04:41]POST finish read [15:04:41]Found Content-Length = 754 [15:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30096152", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:41]execute_script... [15: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)593204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30096152", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:41]POST & json_proto [15:04:41]process_json_proto [15:04:41]json parsed OK: [15:04:41]protocol is kg_v1.0 [15:04:41]action value=close_receipt [15:04:41]process_action close_receipt [15:04:41]cmd_close_receipt [15:04:41]MH_GetDate [15:04:41]Write to MH i2c: F0 00 00 8B 10 8A [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: F0 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: F0 09 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: F0 09 00 8B 10 00 0A 5F C3 66 5F 7F 2B 66 94 [15:04:41]GetLastDocTimeStamp 1724079826 [15:04:41]current date 1724079882 [15:04:41]FM_GetShiftState [15:04:41]SAM_PROTO_GetShiftState [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 13 01 00 [15:04:41]Write to MH i2c: E2 08 00 8C 10 80 13 01 00 00 00 00 00 19 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 0E 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 0E 00 8C 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D0 [15:04:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:04:41]wFMCommunicate OK [15:04:41]SAM_PROTO_GetShiftState done [15:04:41]FM_GetShiftState done [15:04:41]opened in 1724027888 [15:04:41]opened+sec_in_day 1724114288 [15:04:41]quantity*price = 0 [15:04:41]sum+1 = 1 [15:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 198 19.08.2024 15:04 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096152 ФМ: 0000000000871776 ФД: 139363 ФПД: 242322737557900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139363&fm=242322737557900&tin=02508201610067®Number=0000000000092569&sum=0 [15:04:42]StoreToDocumentArchive [15:04:42]shift 452 fd 139363 [15:04:42]save to /storage/0452/doc_00139363 [15:04:42]save last doc name /storage/0452/doc_00139363 to /storage/kkm_last_doc_name [15:04:42]save OK [15:04:42]Clear old archive folders... [15:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:42]tlvbuf is 01288880 [15:04:42]SAM_PROTO_ClearQueue [15:04:42]wFMCommunicate request_size=4 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 09 00 00 [15:04:42]Write to MH i2c: E2 08 00 99 10 80 09 00 00 00 00 00 00 1B [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 99 10 00 90 00 1D [15:04:42]RAPDU: 90 00 [15:04:42]wFMCommunicate OK [15:04:42]SAM_PROTO_ClearQueue done [15:04:42]KKMCreateOFDPacket [15:04:42]OFDProtocolAddRootSTLVToBuf [15:04:42]FM_MakeSignedData [15:04:42]FM_MakeSignedData [15:04:42]SAM_PROTO_SignData [15:04:42]wFMCommunicate request_size=4 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 0D 01 02 [15:04:42]Write to MH i2c: E2 08 00 9A 10 80 0D 01 02 00 00 00 00 23 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 9A 10 00 90 00 1E [15:04:42]RAPDU: 90 00 [15:04:42]wFMCommunicate OK [15:04:42]wFMCommunicate request_size=255 [15:04:42]MH_SAM_APDU [15: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 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 C6 00 00 00 F4 03 04 00 0A 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 20 02 00 35 04 06 00 DC [15:04:42]Write to MH i2c: E2 02 01 9B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 0A 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 20 02 00 35 04 06 00 DC 00 00 23 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 9B 10 00 90 00 1F [15:04:42]RAPDU: 90 00 [15:04:42]wFMCommunicate OK [15:04:42]wFMCommunicate request_size=10 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 0D 02 02 05 64 28 B1 71 8C [15:04:42]Write to MH i2c: E2 0D 00 9C 10 80 0D 02 02 05 00 64 28 B1 71 8C 00 00 6A [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 03 00 9C 10 00 90 00 20 [15:04:42]RAPDU: 90 00 [15:04:42]wFMCommunicate OK [15:04:42]wFMCommunicate request_size=4 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 0D 03 02 [15:04:42]Write to MH i2c: E2 08 00 9D 10 80 0D 03 02 00 00 00 00 28 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 0B 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 0B 00 9D 10 00 7B BE D5 A5 62 67 9D 30 90 00 72 [15:04:42]RAPDU: 7B BE D5 A5 62 67 9D 30 90 00 [15:04:42]wFMCommunicate OK [15:04:42]SAM_PROTO_SignData done [15:04:42]FM_MakeSignedData done [15:04:42]CreateOFDProtocolMessage [15:04:42]wFMCommunicate request_size=4 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 11 00 00 [15:04:42]Write to MH i2c: E2 08 00 9E 10 80 11 00 00 00 00 00 00 28 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 17 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 17 00 9E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [15:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:04:42]wFMCommunicate OK [15:04:42]CreateOFDProtocolMessage done [15:04:42]OFDSenderStorePacket 139363 [15:04:42]StoreOFDPacket docnum=139363 [15:04:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DC 74 07 01 1D FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 0A 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 20 02 00 35 04 06 00 DC 64 28 B1 71 8C 7B BE D5 A5 62 67 9D 30 [15:04:42]CheckFolder [15:04:42]dirname=/storage/ofd_packets [15:04:42]CheckFolder done [15:04:42]ProducePacketName [15:04:42]name=ofd_packets/00139363 [15:04:42]NVStorageSaveData ofd_packets/00139363 [15:04:42]File name is /storage/ofd_packets/00139363 [15:04:42]Write 301 bytes [15:04:42]NVStorageSaveData done [15:04:42]OFDSenderStorePacket done [15:04:42]KKMCreateOFDPacket done [15:04:42]NVStorageSaveData kkm_last_timestamp [15:04:42]File name is /storage/kkm_last_timestamp [15:04:42]OFD Sender: Processing packet 139363 [packets to send 137, broken 136] [15:04:42]ProducePacketName [15:04:42]name=ofd_packets/00139363 [15:04:42]OFD Sender: To server: pG, [15:04:42]CommunicateWithHost lk.salyk.kg:30040 [15:04:42]ConnectInit lk.salyk.kg [15:04:42]Write 4 bytes [15:04:42]NVStorageSaveData done [15:04:42]ExternCall_PrintAddStr [15:04:42]wPrintStart [15:04:42]Write to MH i2c: 01 00 00 9F 10 AF [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 9F 10 00 00 00 00 00 FF 0F C4 [15:04:42]RasterBufferAndPrint [15:04:42]line Счет N : (1)593204 [15:04:42]line ИНН: 02508201610067 [15:04:42]line Контрольно-Кассовый Чек [15:04:42]line ПРОДАЖА [15:04:42]line ТРК (МРК, ГНК) : 62 [15:04:42]line Товар: 2710124130 [15:04:42]line Аи-92-К-5 [15:04:42]line 20.000 * 0.00 [15:04:42]line = 0.00 [15:04:42]line НДС 12% НСП 1% [15:04:42]line > о реализуемом товаре [15:04:42]line ИТОГО: 0.00 [15:04:42]line НСП 1% : 0.00 [15:04:42]line НДС 12% : 0.00 [15:04:42]line Наличными: 0.00 [15:04:42]line Безнал.: 0.00 [15:04:42]line Место: АЗС № 136 "Партнер Нефть" [15:04:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:04:42]line СНО: Общий режим [15:04:42]line Чек 198 19.08.2024 15:04 [15:04:42]line Смена: 452 ФФД: 1.0 [15:04:42]line ЗНМ: 0300000067 [15:04:42]line РНМ: 0000000000092569 [15:04:42]line Версия ККМ: 001 [15:04:42]line Талоны: ТК ГПНА Online [15:04:42]line 30096152 [15:04:42]line ФМ: 0000000000871776 [15:04:42]line ФД: 139363 [15:04:42]line ФПД: 242322737557900 [15:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139363&fm=242322737557900&tin=02508201610067®Number=0000000000092569&sum=0 [15:04:43]Connected sock=11 [15:04:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DC 74 07 01 1D FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 0A 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 20 02 00 35 04 06 00 DC 64 28 B1 71 8C 7B BE D5 A5 62 67 9D 30 [15:04:43]written 0, free lines is 4095 [15:04: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 37 36 4F 00 00 00 DF 96 47 00 94 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 37 36 10 04 04 00 63 20 02 00 F4 03 04 00 A0 05 C3 66 B6 04 01 00 00 15 AF FE 6A 24 49 FE C5 [15:04:43]CommunicateWithHost err = 0 [15:04:43]CheckOFDResponse [15:04:43]1017 (14) - 77093643461234 [15:04:43]1041 (16) - 0000000000871776 [15:04:43]1040 (4) - 139363 [15:04:43]1012 (4) - 19.08.2024 08:43 [15:04:43]1206 (1) - 0 [15:04:43]OFD Sender: Remove packet 139363 [15:04:43]ProducePacketName [15:04:43]name=ofd_packets/00139363 [15:04:43]NVStorageDeleteData [15:04:43]Write to MH i2c: 01 00 00 C9 10 D9 [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: 01 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: 01 07 00 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 E5 0C D1 [15:04:43]RasterBufferAndPrint [15:04:43]line [15:04:43]line [15:04:43]line [15:04:43]line [15:04:43]line [15:04:43]written 0, free lines is 3311 [15:04:43]MH_Cut [15:04:43]Write to MH i2c: D1 01 00 D0 10 01 B2 [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: D1 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: D1 01 00 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: D1 01 00 D0 10 00 B1 [15:04:43]Write to MH i2c: 01 00 00 D1 10 E1 [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:43]OFD Sender: No OFD packet to send [15:04:44]*** Cut start [15:04:44]*** Partial cut [15:04:44]*** CUTSNS_PIN = 1 [15:04:44]*** CUTSNS_PIN = 0 [15:04:44]*** Brake cut motor [15:04:45]Read from MH i2c: 01 [15:04:45]MH_I2C_Read... [15:04:45]*** Stop cut motor [15:04:45]*** Cut end [15:04:45]Read from MH i2c: 01 07 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: 01 07 00 D1 10 00 00 00 00 00 FF 0F F6 [15:04:45]process_action close_receipt done [15:04:45]requested_data is exist [15:04:45]produce_requested_data [15:04:45]requested_item fm.sn is exist - process it [15:04:45]wFMCommunicate request_size=4 [15:04:45]MH_SAM_APDU [15:04:45]CAPDU: 80 11 00 00 [15:04:45]Write to MH i2c: E2 08 00 D2 10 80 11 00 00 00 00 00 00 5C [15:04:45]Write i2c OK [15:04:45]MH_I2C_Read... [15:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:45]Read from MH i2c: E2 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 17 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 17 00 D2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B3 [15:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:04:45]wFMCommunicate OK [15:04:45]requested_item fd.num is exist - process it [15:04:45]SAM_PROTO_GetFieldsCounters [15:04:45]wFMCommunicate request_size=4 [15:04:45]MH_SAM_APDU [15:04:45]CAPDU: 80 13 00 00 [15:04:45]Write to MH i2c: E2 08 00 D3 10 80 13 00 00 00 00 00 00 5F [15:04:45]Write i2c OK [15:04:45]MH_I2C_Read... [15:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:45]Read from MH i2c: E2 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 62 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 62 00 D3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [15:04:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:45]wFMCommunicate OK [15:04:45]SAM_PROTO_GetFieldsCounters done [15:04:45]requested_item shift.num is exist - process it [15:04:45]requested_item shift.opened is exist - process it [15:04:45]req_shift_opened [15:04:45]FM_GetShiftState [15:04:45]SAM_PROTO_GetShiftState [15:04:45]wFMCommunicate request_size=4 [15:04:45]MH_SAM_APDU [15:04:45]CAPDU: 80 13 01 00 [15:04:45]Write to MH i2c: E2 08 00 D4 10 80 13 01 00 00 00 00 00 61 [15:04:45]Write i2c OK [15:04:45]MH_I2C_Read... [15:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:45]Read from MH i2c: E2 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 0E 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 0E 00 D4 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 18 [15:04:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:04:45]wFMCommunicate OK [15:04:45]SAM_PROTO_GetShiftState done [15:04:45]FM_GetShiftState done [15:04:45]req_shift_opened done [15:04:45]requested_item shift.open_date is exist - process it [15:04:45]req_shift_open_date [15:04:45]req_shift_open_date done [15:04:45]produce_requested_data done [15:04:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139363,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:04:45]process_action_free close_receipt [15:04:45]json_value_free [15:04:45]json_value_free done [15:04:45]process_json_proto returns [15:04:45]Send response to host [15:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139363,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:04:45]free response buf [15:04:45]execute_script done [15:04:45]execute_script returns [15:04:45]free content buf [15:04:45]Sock 9.Close socket [15:04:45]Sock 9.Thread stoped [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:05]accept exits with 8 [15:05:05]New connection [15:05:05]New thread 3066674532 created [15:05:05]Thread 3066817892 joined [15:05:05]Waiting for new connection... [15:05:05] Sock 8.Parse request [15:05:05]Sock 8.Check first char [15:05:05]Sock 8.First char is OK [15:05:05]request: POST /json_proto HTTP/1.0 [15:05:05]Method: POST [15:05:05]URL: /json_proto [15:05:05]Method is POST - this is cgi request [15:05:05]url: /json_proto [15:05:05]query_string will be loaded in cgi processing [15:05:05]execute_cgi json_proto POST (null) [15:05:05]execute_cgi path=json_proto method=POST [15:05:05]POST find Content-Length [15:05:05]Host: 172.17.45.67:8080 [15:05:05]Content-Length: 815 [15:05:05]Content-Type: application/json [15:05:05] [15:05:05]POST finish read [15:05:05]Found Content-Length = 815 [15:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:05]execute_script... [15:05:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:05]POST & json_proto [15:05:05]process_json_proto [15:05:05]json parsed OK: [15:05:05]protocol is kg_v1.0 [15:05:05]action value=close_receipt [15:05:05]process_action close_receipt [15:05:05]cmd_close_receipt [15:05:05]MH_GetDate [15:05:05]Write to MH i2c: F0 00 00 D5 10 D4 [15:05:05]Write i2c OK [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: F0 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: F0 09 00 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: F0 09 00 D5 10 00 22 5F C3 66 5F 7F 2B 66 F6 [15:05:05]GetLastDocTimeStamp 1724079882 [15:05:05]current date 1724079906 [15:05:05]FM_GetShiftState [15:05:05]SAM_PROTO_GetShiftState [15:05:05]wFMCommunicate request_size=4 [15:05:05]MH_SAM_APDU [15:05:05]CAPDU: 80 13 01 00 [15:05:05]Write to MH i2c: E2 08 00 D6 10 80 13 01 00 00 00 00 00 63 [15:05:05]Write i2c OK [15:05:05]MH_I2C_Read... [15:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:05]Read from MH i2c: E2 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: E2 0E 00 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: E2 0E 00 D6 10 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 1A [15:05:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:05:05]wFMCommunicate OK [15:05:05]SAM_PROTO_GetShiftState done [15:05:05]FM_GetShiftState done [15:05:05]opened in 1724027888 [15:05:05]opened+sec_in_day 1724114288 [15:05:05]quantity*price = 50017 [15:05:05]sum+1 = 50019 [15:05:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 199 19.08.2024 15:05 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139364 ФПД: 230508980172402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150506&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139364&fm=230508980172402&tin=02508201610067®Number=0000000000092569&sum=50000 [15:05:06]StoreToDocumentArchive [15:05:06]shift 452 fd 139364 [15:05:06]save to /storage/0452/doc_00139364 [15:05:06]save last doc name /storage/0452/doc_00139364 to /storage/kkm_last_doc_name [15:05:06]save OK [15:05:06]Clear old archive folders... [15:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:05:06]tlvbuf is 01263E30 [15:05:06]SAM_PROTO_ClearQueue [15:05:06]wFMCommunicate request_size=4 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 09 00 00 [15:05:06]Write to MH i2c: E2 08 00 E3 10 80 09 00 00 00 00 00 00 65 [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 E3 10 00 90 00 67 [15:05:06]RAPDU: 90 00 [15:05:06]wFMCommunicate OK [15:05:06]SAM_PROTO_ClearQueue done [15:05:06]KKMCreateOFDPacket [15:05:06]OFDProtocolAddRootSTLVToBuf [15:05:06]FM_MakeSignedData [15:05:06]FM_MakeSignedData [15:05:06]SAM_PROTO_SignData [15:05:06]wFMCommunicate request_size=4 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 0D 01 02 [15:05:06]Write to MH i2c: E2 08 00 E4 10 80 0D 01 02 00 00 00 00 6D [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 E4 10 00 90 00 68 [15:05:06]RAPDU: 90 00 [15:05:06]wFMCommunicate OK [15:05:06]wFMCommunicate request_size=253 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 22 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 20 02 00 35 04 06 00 D1 A5 8D E1 76 72 [15:05:06]Write to MH i2c: E2 00 01 E5 10 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 22 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 20 02 00 35 04 06 00 D1 A5 8D E1 76 72 00 00 0E [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:07]Read from MH i2c: E2 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 03 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 03 00 E5 10 00 90 00 69 [15:05:07]RAPDU: 90 00 [15:05:07]wFMCommunicate OK [15:05:07]wFMCommunicate request_size=4 [15:05:07]MH_SAM_APDU [15:05:07]CAPDU: 80 0D 03 02 [15:05:07]Write to MH i2c: E2 08 00 E6 10 80 0D 03 02 00 00 00 00 71 [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:07]Read from MH i2c: E2 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 0B 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 0B 00 E6 10 00 F4 16 83 FC 37 F7 0C 59 90 00 8E [15:05:07]RAPDU: F4 16 83 FC 37 F7 0C 59 90 00 [15:05:07]wFMCommunicate OK [15:05:07]SAM_PROTO_SignData done [15:05:07]FM_MakeSignedData done [15:05:07]CreateOFDProtocolMessage [15:05:07]wFMCommunicate request_size=4 [15:05:07]MH_SAM_APDU [15:05:07]CAPDU: 80 11 00 00 [15:05:07]Write to MH i2c: E2 08 00 E7 10 80 11 00 00 00 00 00 00 71 [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:07]Read from MH i2c: E2 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 17 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 17 00 E7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [15:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:05:07]wFMCommunicate OK [15:05:07]CreateOFDProtocolMessage done [15:05:07]OFDSenderStorePacket 139364 [15:05:07]StoreOFDPacket docnum=139364 [15:05:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 9E 3D 00 01 B2 9A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 22 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 20 02 00 35 04 06 00 D1 A5 8D E1 76 72 F4 16 83 FC 37 F7 0C 59 [15:05:07]CheckFolder [15:05:07]dirname=/storage/ofd_packets [15:05:07]CheckFolder done [15:05:07]ProducePacketName [15:05:07]name=ofd_packets/00139364 [15:05:07]NVStorageSaveData ofd_packets/00139364 [15:05:07]File name is /storage/ofd_packets/00139364 [15:05:07]Write 294 bytes [15:05:07]NVStorageSaveData done [15:05:07]OFDSenderStorePacket done [15:05:07]KKMCreateOFDPacket done [15:05:07]NVStorageSaveData kkm_last_timestamp [15:05:07]File name is /storage/kkm_last_timestamp [15:05:07]Write 4 bytes [15:05:07]NVStorageSaveData done [15:05:07]ExternCall_PrintAddStr [15:05:07]wPrintStart [15:05:07]Write to MH i2c: 01 00 00 E8 10 F8 [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: 01 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: 01 07 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: 01 07 00 E8 10 00 00 00 00 00 FF 0F 0D [15:05:07]RasterBufferAndPrint [15:05:07]line Счет N : (1)593206 [15:05:07]line ИНН: 02508201610067 [15:05:07]line Контрольно-Кассовый Чек [15:05:07]line ПРОДАЖА [15:05:07]line ТРК (МРК, ГНК) : 33 [15:05:07]line Товар: 2710124130 [15:05:07]line SU-92 [15:05:07]line 7.270 * 68.80 [15:05:07]line = 500.18 [15:05:07]line НДС 12% НСП 1% [15:05:07]line > о реализуемом товаре [15:05:07]line ОКРУГЛЕНИЕ: -0.18 [15:05:07]line ИТОГО: 500.00 [15:05:07]line НСП 1% : 4.43 [15:05:07]line НДС 12% : 53.12 [15:05:07]line Наличными: 0.00 [15:05:07]line Безнал.: 500.00 [15:05:07]line Место: АЗС № 136 "Партнер Нефть" [15:05:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:05:07]line СНО: Общий режим [15:05:07]line Чек 199 19.08.2024 15:05 [15:05:07]line Смена: 452 ФФД: 1.0 [15:05:07]line ЗНМ: 0300000067 [15:05:07]line РНМ: 0000000000092569 [15:05:07]line Версия ККМ: 001 [15:05:07]line Платежная система: Бакай Банк [15:05:07]line ФМ: 0000000000871776 [15:05:07]line ФД: 139364 [15:05:07]line ФПД: 230508980172402 [15:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150506&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139364&fm=230508980172402&tin=02508201610067®Number=0000000000092569&sum=50000 [15:05:07]OFD Sender: Processing packet 139364 [packets to send 137, broken 136] [15:05:07]ProducePacketName [15:05:07]name=ofd_packets/00139364 [15:05:07]OFD Sender: To server: pG, [15:05:07]CommunicateWithHost lk.salyk.kg:30040 [15:05:07]ConnectInit lk.salyk.kg [15:05:07]written 0, free lines is 4095 [15:05:07]Connected sock=11 [15:05:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 9E 3D 00 01 B2 9A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 22 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 20 02 00 35 04 06 00 D1 A5 8D E1 76 72 F4 16 83 FC 37 F7 0C 59 [15:05: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 37 36 4F 00 00 00 85 17 47 00 B8 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 20 02 00 F4 03 04 00 B8 05 C3 66 B6 04 01 00 00 0A 5B 40 7E C1 95 36 8D [15:05:08]CommunicateWithHost err = 0 [15:05:08]CheckOFDResponse [15:05:08]1017 (14) - 77093643461234 [15:05:08]1041 (16) - 0000000000871776 [15:05:08]1040 (4) - 139364 [15:05:08]1012 (4) - 19.08.2024 08:43 [15:05:08]1206 (1) - 0 [15:05:08]OFD Sender: Remove packet 139364 [15:05:08]ProducePacketName [15:05:08]name=ofd_packets/00139364 [15:05:08]NVStorageDeleteData [15:05:08]Write to MH i2c: 01 00 00 13 11 24 [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: 01 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: 01 07 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: 01 07 00 13 11 00 00 00 00 00 DC 0C 13 [15:05:08]RasterBufferAndPrint [15:05:08]line [15:05:08]line [15:05:08]line [15:05:08]line [15:05:08]line [15:05:08]written 0, free lines is 3298 [15:05:08]MH_Cut [15:05:08]Write to MH i2c: D1 01 00 1A 11 01 FD [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: D1 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: D1 01 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: D1 01 00 1A 11 00 FC [15:05:08]Write to MH i2c: 01 00 00 1B 11 2C [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]OFD Sender: No OFD packet to send [15:05:08]*** Cut start [15:05:08]*** Partial cut [15:05:08]*** CUTSNS_PIN = 1 [15:05:08]*** CUTSNS_PIN = 0 [15:05:08]*** Brake cut motor [15:05:09]Read from MH i2c: 01 [15:05:09]MH_I2C_Read... [15:05:09]*** Stop cut motor [15:05:09]*** Cut end [15:05:09]Read from MH i2c: 01 07 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: 01 07 00 1B 11 00 00 00 00 00 FF 0F 41 [15:05:09]process_action close_receipt done [15:05:09]requested_data is exist [15:05:09]produce_requested_data [15:05:09]requested_item fm.sn is exist - process it [15:05:09]wFMCommunicate request_size=4 [15:05:09]MH_SAM_APDU [15:05:09]CAPDU: 80 11 00 00 [15:05:09]Write to MH i2c: E2 08 00 1C 11 80 11 00 00 00 00 00 00 A7 [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:09]Read from MH i2c: E2 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 17 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 17 00 1C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [15:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:05:09]wFMCommunicate OK [15:05:09]requested_item fd.num is exist - process it [15:05:09]SAM_PROTO_GetFieldsCounters [15:05:09]wFMCommunicate request_size=4 [15:05:09]MH_SAM_APDU [15:05:09]CAPDU: 80 13 00 00 [15:05:09]Write to MH i2c: E2 08 00 1D 11 80 13 00 00 00 00 00 00 AA [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:09]Read from MH i2c: E2 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 62 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 62 00 1D 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [15:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:09]wFMCommunicate OK [15:05:09]SAM_PROTO_GetFieldsCounters done [15:05:09]requested_item shift.num is exist - process it [15:05:09]requested_item shift.opened is exist - process it [15:05:09]req_shift_opened [15:05:09]FM_GetShiftState [15:05:09]SAM_PROTO_GetShiftState [15:05:09]wFMCommunicate request_size=4 [15:05:09]MH_SAM_APDU [15:05:09]CAPDU: 80 13 01 00 [15:05:09]Write to MH i2c: E2 08 00 1E 11 80 13 01 00 00 00 00 00 AC [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:09]Read from MH i2c: E2 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 0E 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 0E 00 1E 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 63 [15:05:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:05:09]wFMCommunicate OK [15:05:09]SAM_PROTO_GetShiftState done [15:05:09]FM_GetShiftState done [15:05:09]req_shift_opened done [15:05:09]requested_item shift.open_date is exist - process it [15:05:09]req_shift_open_date [15:05:09]req_shift_open_date done [15:05:09]produce_requested_data done [15:05:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139364,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:05:09]process_action_free close_receipt [15:05:09]json_value_free [15:05:09]json_value_free done [15:05:09]process_json_proto returns [15:05:09]Send response to host [15:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139364,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:05:09]free response buf [15:05:09]execute_script done [15:05:09]execute_script returns [15:05:09]free content buf [15:05:09]Sock 8.Close socket [15:05:09]Sock 8.Thread stoped [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:05]accept exits with 9 [15:06:05]New connection [15:06:05]New thread 3066817892 created [15:06:05]Thread 3066674532 joined [15:06:05]Waiting for new connection... [15:06:05] Sock 9.Parse request [15:06:05]Sock 9.Check first char [15:06:05]Sock 9.First char is OK [15:06:05]request: POST /json_proto HTTP/1.0 [15:06:05]Method: POST [15:06:05]URL: /json_proto [15:06:05]Method is POST - this is cgi request [15:06:05]url: /json_proto [15:06:05]query_string will be loaded in cgi processing [15:06:05]execute_cgi json_proto POST (null) [15:06:05]execute_cgi path=json_proto method=POST [15:06:05]POST find Content-Length [15:06:05]Host: 172.17.45.67:8080 [15:06:05]Content-Length: 677 [15:06:05]Content-Type: application/json [15:06:05] [15:06:05]POST finish read [15:06:05]Found Content-Length = 677 [15:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:05]execute_script... [15:06: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)593207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:05]POST & json_proto [15:06:05]process_json_proto [15:06:05]json parsed OK: [15:06:05]protocol is kg_v1.0 [15:06:05]action value=close_receipt [15:06:05]process_action close_receipt [15:06:05]cmd_close_receipt [15:06:05]MH_GetDate [15:06:05]Write to MH i2c: F0 00 00 1F 11 1F [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: F0 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: F0 09 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: F0 09 00 1F 11 00 5E 5F C3 66 5F 7F 2B 66 7D [15:06:05]GetLastDocTimeStamp 1724079906 [15:06:05]current date 1724079966 [15:06:05]FM_GetShiftState [15:06:05]SAM_PROTO_GetShiftState [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 13 01 00 [15:06:05]Write to MH i2c: E2 08 00 20 11 80 13 01 00 00 00 00 00 AE [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 0E 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 0E 00 20 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 65 [15:06:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:06:05]wFMCommunicate OK [15:06:05]SAM_PROTO_GetShiftState done [15:06:05]FM_GetShiftState done [15:06:05]opened in 1724027888 [15:06:05]opened+sec_in_day 1724114288 [15:06:05]quantity*price = 30035 [15:06:05]sum+1 = 30036 [15:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 200 19.08.2024 15:06 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139365 ФПД: 258112372064290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150606&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139365&fm=258112372064290&tin=02508201610067®Number=0000000000092569&sum=30000 [15:06:06]StoreToDocumentArchive [15:06:06]shift 452 fd 139365 [15:06:06]save to /storage/0452/doc_00139365 [15:06:06]save last doc name /storage/0452/doc_00139365 to /storage/kkm_last_doc_name [15:06:06]save OK [15:06:06]Clear old archive folders... [15:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:06]tlvbuf is 011EB6F0 [15:06:06]SAM_PROTO_ClearQueue [15:06:06]wFMCommunicate request_size=4 [15:06:06]MH_SAM_APDU [15:06:06]CAPDU: 80 09 00 00 [15:06:06]Write to MH i2c: E2 08 00 2D 11 80 09 00 00 00 00 00 00 B0 [15:06:06]Write i2c OK [15:06:06]MH_I2C_Read... [15:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:06]Read from MH i2c: E2 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 03 00 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 03 00 2D 11 00 90 00 B2 [15:06:06]RAPDU: 90 00 [15:06:06]wFMCommunicate OK [15:06:06]SAM_PROTO_ClearQueue done [15:06:06]KKMCreateOFDPacket [15:06:06]OFDProtocolAddRootSTLVToBuf [15:06:06]FM_MakeSignedData [15:06:06]FM_MakeSignedData [15:06:06]SAM_PROTO_SignData [15:06:06]wFMCommunicate request_size=4 [15:06:06]MH_SAM_APDU [15:06:06]CAPDU: 80 0D 01 02 [15:06:06]Write to MH i2c: E2 08 00 2E 11 80 0D 01 02 00 00 00 00 B8 [15:06:06]Write i2c OK [15:06:06]MH_I2C_Read... [15:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:06]Read from MH i2c: E2 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 03 00 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 03 00 2E 11 00 90 00 B3 [15:06:06]RAPDU: 90 00 [15:06:06]wFMCommunicate OK [15:06:06]wFMCommunicate request_size=255 [15:06:06]MH_SAM_APDU [15:06: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 5E 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 20 02 00 35 04 06 00 EA [15:06:06]Write to MH i2c: E2 02 01 2F 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 5E 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 20 02 00 35 04 06 00 EA 00 00 44 [15:06:06]Write i2c OK [15:06:06]MH_I2C_Read... [15:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:06]Read from MH i2c: E2 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 03 00 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 03 00 2F 11 00 90 00 B4 [15:06:06]RAPDU: 90 00 [15:06:06]wFMCommunicate OK [15:06:06]wFMCommunicate request_size=10 [15:06:06]MH_SAM_APDU [15:06:06]CAPDU: 80 0D 02 02 05 C0 78 3F C0 22 [15:06:06]Write to MH i2c: E2 0D 00 30 11 80 0D 02 02 05 00 C0 78 3F C0 22 00 00 1E [15:06:06]Write i2c OK [15:06:06]MH_I2C_Read... [15:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:06]Read from MH i2c: E2 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 03 00 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 03 00 30 11 00 90 00 B5 [15:06:06]RAPDU: 90 00 [15:06:06]wFMCommunicate OK [15:06:06]wFMCommunicate request_size=4 [15:06:06]MH_SAM_APDU [15:06:06]CAPDU: 80 0D 03 02 [15:06:06]Write to MH i2c: E2 08 00 31 11 80 0D 03 02 00 00 00 00 BD [15:06:06]Write i2c OK [15:06:06]MH_I2C_Read... [15:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:06]Read from MH i2c: E2 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 0B 00 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 0B 00 31 11 00 D4 7A B2 00 DD 42 FD 43 90 00 1D [15:06:06]RAPDU: D4 7A B2 00 DD 42 FD 43 90 00 [15:06:06]wFMCommunicate OK [15:06:06]SAM_PROTO_SignData done [15:06:06]FM_MakeSignedData done [15:06:06]CreateOFDProtocolMessage [15:06:06]wFMCommunicate request_size=4 [15:06:06]MH_SAM_APDU [15:06:06]CAPDU: 80 11 00 00 [15:06:06]Write to MH i2c: E2 08 00 32 11 80 11 00 00 00 00 00 00 BD [15:06:06]Write i2c OK [15:06:06]MH_I2C_Read... [15:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:06]Read from MH i2c: E2 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 17 00 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 17 00 32 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [15:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:06:06]wFMCommunicate OK [15:06:06]CreateOFDProtocolMessage done [15:06:06]OFDSenderStorePacket 139365 [15:06:06]StoreOFDPacket docnum=139365 [15:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FA A7 07 01 64 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 5E 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 20 02 00 35 04 06 00 EA C0 78 3F C0 22 D4 7A B2 00 DD 42 FD 43 [15:06:06]CheckFolder [15:06:06]dirname=/storage/ofd_packets [15:06:06]CheckFolder done [15:06:06]ProducePacketName [15:06:06]name=ofd_packets/00139365 [15:06:06]NVStorageSaveData ofd_packets/00139365 [15:06:06]File name is /storage/ofd_packets/00139365 [15:06:06]Write 301 bytes [15:06:06]NVStorageSaveData done [15:06:06]OFDSenderStorePacket done [15:06:06]KKMCreateOFDPacket done [15:06:06]NVStorageSaveData kkm_last_timestamp [15:06:06]File name is /storage/kkm_last_timestamp [15:06:06]Write 4 bytes [15:06:06]NVStorageSaveData done [15:06:06]ExternCall_PrintAddStr [15:06:06]wPrintStart [15:06:06]Write to MH i2c: 01 00 00 33 11 44 [15:06:06]Write i2c OK [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: 01 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: 01 07 00 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: 01 07 00 33 11 00 00 00 00 00 FF 0F 59 [15:06:06]RasterBufferAndPrint [15:06:06]line Счет N : (1)593207 [15:06:06]line ИНН: 02508201610067 [15:06:06]line Контрольно-Кассовый Чек [15:06:06]line ПРОДАЖА [15:06:06]line ТРК (МРК, ГНК) : 52 [15:06:06]line Товар: 2710124130 [15:06:06]line Аи-92-К-5 [15:06:06]line 4.430 * 67.80 [15:06:06]line = 300.35 [15:06:06]line НДС 12% НСП 1% [15:06:06]line > о реализуемом товаре [15:06:06]line ОКРУГЛЕНИЕ: -0.35 [15:06:06]line ИТОГО: 300.00 [15:06:06]line Внесено: 300.00 [15:06:06]line СДАЧА: 0.00 [15:06:06]line НСП 1% : 2.66 [15:06:06]line НДС 12% : 31.90 [15:06:06]line Наличными: 300.00 [15:06:06]line Безнал.: 0.00 [15:06:06]line Место: АЗС № 136 "Партнер Нефть" [15:06:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:06:06]line СНО: Общий режим [15:06:06]line Чек 200 19.08.2024 15:06 [15:06:06]line Смена: 452 ФФД: 1.0 [15:06:06]line ЗНМ: 0300000067 [15:06:06]line РНМ: 0000000000092569 [15:06:06]line Версия ККМ: 001 [15:06:06]line ФМ: 0000000000871776 [15:06:06]line ФД: 139365 [15:06:06]line ФПД: 258112372064290 [15:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150606&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139365&fm=258112372064290&tin=02508201610067®Number=0000000000092569&sum=30000 [15:06:07]OFD Sender: Processing packet 139365 [packets to send 137, broken 136] [15:06:07]ProducePacketName [15:06:07]name=ofd_packets/00139365 [15:06:07]OFD Sender: To server: pG, [15:06:07]CommunicateWithHost lk.salyk.kg:30040 [15:06:07]ConnectInit lk.salyk.kg [15:06:07]written 0, free lines is 4095 [15:06:07]Connected sock=10 [15:06: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 37 36 0F 01 00 00 FA A7 07 01 64 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 5E 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 20 02 00 35 04 06 00 EA C0 78 3F C0 22 D4 7A B2 00 DD 42 FD 43 [15:06: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 37 36 4F 00 00 00 6B 3F 47 00 45 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 37 36 10 04 04 00 65 20 02 00 F4 03 04 00 F4 05 C3 66 B6 04 01 00 00 08 4D DC D4 98 33 5B ED [15:06:07]CommunicateWithHost err = 0 [15:06:07]CheckOFDResponse [15:06:07]1017 (14) - 77093643461234 [15:06:07]1041 (16) - 0000000000871776 [15:06:07]1040 (4) - 139365 [15:06:07]1012 (4) - 19.08.2024 08:44 [15:06:07]1206 (1) - 0 [15:06:07]OFD Sender: Remove packet 139365 [15:06:07]ProducePacketName [15:06:07]name=ofd_packets/00139365 [15:06:07]NVStorageDeleteData [15:06:07]Write to MH i2c: 01 00 00 5E 11 6F [15:06:07]Write i2c OK [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: 01 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: 01 07 00 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: 01 07 00 5E 11 00 00 00 00 00 D2 0C 54 [15:06:07]RasterBufferAndPrint [15:06:07]line [15:06:07]line [15:06:07]line [15:06:07]line [15:06:07]line [15:06:07]written 0, free lines is 3289 [15:06:07]MH_Cut [15:06:07]Write to MH i2c: D1 01 00 65 11 01 48 [15:06:07]Write i2c OK [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: D1 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: D1 01 00 [15:06:07]MH_I2C_Read... [15:06:07]Read from MH i2c: D1 01 00 65 11 00 47 [15:06:07]Write to MH i2c: 01 00 00 66 11 77 [15:06:07]Write i2c OK [15:06:07]MH_I2C_Read... [15:06:08]OFD Sender: No OFD packet to send [15:06:08]*** Cut start [15:06:08]*** Partial cut [15:06:08]*** CUTSNS_PIN = 1 [15:06:08]*** CUTSNS_PIN = 0 [15:06:08]*** Brake cut motor [15:06:08]Read from MH i2c: 01 [15:06:08]MH_I2C_Read... [15:06:08]*** Stop cut motor [15:06:08]*** Cut end [15:06:08]Read from MH i2c: 01 07 00 [15:06:08]MH_I2C_Read... [15:06:08]Read from MH i2c: 01 07 00 66 11 00 00 00 00 00 FF 0F 8C [15:06:08]process_action close_receipt done [15:06:08]requested_data is exist [15:06:08]produce_requested_data [15:06:08]requested_item fm.sn is exist - process it [15:06:08]wFMCommunicate request_size=4 [15:06:08]MH_SAM_APDU [15:06:08]CAPDU: 80 11 00 00 [15:06:08]Write to MH i2c: E2 08 00 67 11 80 11 00 00 00 00 00 00 F2 [15:06:08]Write i2c OK [15:06:08]MH_I2C_Read... [15:06:09]Read from MH i2c: E2 [15:06:09]MH_I2C_Read... [15:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:09]Read from MH i2c: E2 17 00 [15:06:09]MH_I2C_Read... [15:06:09]Read from MH i2c: E2 17 00 67 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [15:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:06:09]wFMCommunicate OK [15:06:09]requested_item fd.num is exist - process it [15:06:09]SAM_PROTO_GetFieldsCounters [15:06:09]wFMCommunicate request_size=4 [15:06:09]MH_SAM_APDU [15:06:09]CAPDU: 80 13 00 00 [15:06:09]Write to MH i2c: E2 08 00 68 11 80 13 00 00 00 00 00 00 F5 [15:06:09]Write i2c OK [15:06:09]MH_I2C_Read... [15:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:09]Read from MH i2c: E2 [15:06:09]MH_I2C_Read... [15:06:09]Read from MH i2c: E2 62 00 [15:06:09]MH_I2C_Read... [15:06:09]Read from MH i2c: E2 62 00 68 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [15:06: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:09]wFMCommunicate OK [15:06:09]SAM_PROTO_GetFieldsCounters done [15:06:09]requested_item shift.num is exist - process it [15:06:09]requested_item shift.opened is exist - process it [15:06:09]req_shift_opened [15:06:09]FM_GetShiftState [15:06:09]SAM_PROTO_GetShiftState [15:06:09]wFMCommunicate request_size=4 [15:06:09]MH_SAM_APDU [15:06:09]CAPDU: 80 13 01 00 [15:06:09]Write to MH i2c: E2 08 00 69 11 80 13 01 00 00 00 00 00 F7 [15:06:09]Write i2c OK [15:06:09]MH_I2C_Read... [15:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:09]Read from MH i2c: E2 [15:06:09]MH_I2C_Read... [15:06:09]Read from MH i2c: E2 0E 00 [15:06:09]MH_I2C_Read... [15:06:09]Read from MH i2c: E2 0E 00 69 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AE [15:06:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:06:09]wFMCommunicate OK [15:06:09]SAM_PROTO_GetShiftState done [15:06:09]FM_GetShiftState done [15:06:09]req_shift_opened done [15:06:09]requested_item shift.open_date is exist - process it [15:06:09]req_shift_open_date [15:06:09]req_shift_open_date done [15:06:09]produce_requested_data done [15:06:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139365,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:06:09]process_action_free close_receipt [15:06:09]json_value_free [15:06:09]json_value_free done [15:06:09]process_json_proto returns [15:06:09]Send response to host [15:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139365,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:06:09]free response buf [15:06:09]execute_script done [15:06:09]execute_script returns [15:06:09]free content buf [15:06:09]Sock 9.Close socket [15:06:09]Sock 9.Thread stoped [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:56]accept exits with 8 [15:06:56]New connection [15:06:56]New thread 3066674532 created [15:06:56]Thread 3066817892 joined [15:06:56]Waiting for new connection... [15:06:56] Sock 8.Parse request [15:06:56]Sock 8.Check first char [15:06:56]Sock 8.First char is OK [15:06:56]request: POST /json_proto HTTP/1.0 [15:06:56]Method: POST [15:06:56]URL: /json_proto [15:06:56]Method is POST - this is cgi request [15:06:56]url: /json_proto [15:06:56]query_string will be loaded in cgi processing [15:06:56]execute_cgi json_proto POST (null) [15:06:56]execute_cgi path=json_proto method=POST [15:06:56]POST find Content-Length [15:06:56]Host: 172.17.45.67:8080 [15:06:56]Content-Length: 677 [15:06:56]Content-Type: application/json [15:06:56] [15:06:56]POST finish read [15:06:56]Found Content-Length = 677 [15:06:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.400, "sum" : 230.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:56]execute_script... [15:06: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)593208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.400, "sum" : 230.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:56]POST & json_proto [15:06:56]process_json_proto [15:06:56]json parsed OK: [15:06:56]protocol is kg_v1.0 [15:06:56]action value=close_receipt [15:06:56]process_action close_receipt [15:06:56]cmd_close_receipt [15:06:56]MH_GetDate [15:06:56]Write to MH i2c: F0 00 00 6A 11 6A [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: F0 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: F0 09 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: F0 09 00 6A 11 00 92 5F C3 66 5F 7F 2B 66 FC [15:06:56]GetLastDocTimeStamp 1724079966 [15:06:56]current date 1724080018 [15:06:56]FM_GetShiftState [15:06:56]SAM_PROTO_GetShiftState [15:06:56]wFMCommunicate request_size=4 [15:06:56]MH_SAM_APDU [15:06:56]CAPDU: 80 13 01 00 [15:06:56]Write to MH i2c: E2 08 00 6B 11 80 13 01 00 00 00 00 00 F9 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:56]Read from MH i2c: E2 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 6B 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B0 [15:06:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:06:56]wFMCommunicate OK [15:06:56]SAM_PROTO_GetShiftState done [15:06:56]FM_GetShiftState done [15:06:56]opened in 1724027888 [15:06:56]opened+sec_in_day 1724114288 [15:06:56]quantity*price = 23052 [15:06:56]sum+1 = 23053 [15:06:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.48 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 201 19.08.2024 15:06 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139366 ФПД: 200255422931037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150658&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139366&fm=200255422931037&tin=02508201610067®Number=0000000000092569&sum=23000 [15:06:58]StoreToDocumentArchive [15:06:58]shift 452 fd 139366 [15:06:58]save to /storage/0452/doc_00139366 [15:06:58]save last doc name /storage/0452/doc_00139366 to /storage/kkm_last_doc_name [15:06:58]save OK [15:06:58]Clear old archive folders... [15:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:58]tlvbuf is 011EB8C0 [15:06:58]SAM_PROTO_ClearQueue [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 09 00 00 [15:06:58]Write to MH i2c: E2 08 00 78 11 80 09 00 00 00 00 00 00 FB [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 78 11 00 90 00 FD [15:06:58]RAPDU: 90 00 [15:06:58]wFMCommunicate OK [15:06:58]SAM_PROTO_ClearQueue done [15:06:58]KKMCreateOFDPacket [15:06:58]OFDProtocolAddRootSTLVToBuf [15:06:58]FM_MakeSignedData [15:06:58]FM_MakeSignedData [15:06:58]SAM_PROTO_SignData [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 0D 01 02 [15:06:58]Write to MH i2c: E2 08 00 79 11 80 0D 01 02 00 00 00 00 03 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 79 11 00 90 00 FE [15:06:58]RAPDU: 90 00 [15:06:58]wFMCommunicate OK [15:06:58]wFMCommunicate request_size=255 [15:06:58]MH_SAM_APDU [15: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 48 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 92 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 20 02 00 35 04 06 00 B6 [15:06:58]Write to MH i2c: E2 02 01 7A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 92 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 20 02 00 35 04 06 00 B6 00 00 15 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]OFD Sender: No OFD packet to send [15:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 7A 11 00 90 00 FF [15:06:58]RAPDU: 90 00 [15:06:58]wFMCommunicate OK [15:06:58]wFMCommunicate request_size=10 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 0D 02 02 05 21 99 59 20 5D [15:06:58]Write to MH i2c: E2 0D 00 7B 11 80 0D 02 02 05 00 21 99 59 20 5D 00 00 A0 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 7B 11 00 90 00 00 [15:06:58]RAPDU: 90 00 [15:06:58]wFMCommunicate OK [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 0D 03 02 [15:06:58]Write to MH i2c: E2 08 00 7C 11 80 0D 03 02 00 00 00 00 08 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 0B 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 0B 00 7C 11 00 5F 2A DE 57 73 EA 2D 04 90 00 55 [15:06:58]RAPDU: 5F 2A DE 57 73 EA 2D 04 90 00 [15:06:58]wFMCommunicate OK [15:06:58]SAM_PROTO_SignData done [15:06:58]FM_MakeSignedData done [15:06:58]CreateOFDProtocolMessage [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 11 00 00 [15:06:58]Write to MH i2c: E2 08 00 7D 11 80 11 00 00 00 00 00 00 08 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 17 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 17 00 7D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [15:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:06:58]wFMCommunicate OK [15:06:58]CreateOFDProtocolMessage done [15:06:58]OFDSenderStorePacket 139366 [15:06:58]StoreOFDPacket docnum=139366 [15:06:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 63 75 07 01 56 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 48 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 92 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 20 02 00 35 04 06 00 B6 21 99 59 20 5D 5F 2A DE 57 73 EA 2D 04 [15:06:58]CheckFolder [15:06:58]dirname=/storage/ofd_packets [15:06:58]CheckFolder done [15:06:58]ProducePacketName [15:06:58]name=ofd_packets/00139366 [15:06:58]NVStorageSaveData ofd_packets/00139366 [15:06:58]File name is /storage/ofd_packets/00139366 [15:06:58]Write 301 bytes [15:06:58]NVStorageSaveData done [15:06:58]OFDSenderStorePacket done [15:06:58]KKMCreateOFDPacket done [15:06:58]NVStorageSaveData kkm_last_timestamp [15:06:58]File name is /storage/kkm_last_timestamp [15:06:58]Write 4 bytes [15:06:58]NVStorageSaveData done [15:06:58]ExternCall_PrintAddStr [15:06:58]wPrintStart [15:06:58]Write to MH i2c: 01 00 00 7E 11 8F [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 7E 11 00 00 00 00 00 FF 0F A4 [15:06:58]RasterBufferAndPrint [15:06:58]line Счет N : (1)593208 [15:06:58]line ИНН: 02508201610067 [15:06:58]line Контрольно-Кассовый Чек [15:06:58]line ПРОДАЖА [15:06:58]line ТРК (МРК, ГНК) : 42 [15:06:58]line Товар: 2710124130 [15:06:58]line Аи-92-К-5 [15:06:58]line 3.400 * 67.80 [15:06:58]line = 230.52 [15:06:58]line НДС 12% НСП 1% [15:06:58]line > о реализуемом товаре [15:06:58]line ОКРУГЛЕНИЕ: -0.52 [15:06:58]line ИТОГО: 230.00 [15:06:58]line Внесено: 230.00 [15:06:58]line СДАЧА: 0.00 [15:06:58]line НСП 1% : 2.04 [15:06:58]line НДС 12% : 24.48 [15:06:58]line Наличными: 230.00 [15:06:58]line Безнал.: 0.00 [15:06:58]line Место: АЗС № 136 "Партнер Нефть" [15:06:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:06:58]line СНО: Общий режим [15:06:58]line Чек 201 19.08.2024 15:06 [15:06:58]line Смена: 452 ФФД: 1.0 [15:06:58]line ЗНМ: 0300000067 [15:06:58]line РНМ: 0000000000092569 [15:06:58]line Версия ККМ: 001 [15:06:58]line ФМ: 0000000000871776 [15:06:58]line ФД: 139366 [15:06:58]line ФПД: 200255422931037 [15:06:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150658&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139366&fm=200255422931037&tin=02508201610067®Number=0000000000092569&sum=23000 [15:06:58]OFD Sender: Processing packet 139366 [packets to send 137, broken 136] [15:06:58]ProducePacketName [15:06:58]name=ofd_packets/00139366 [15:06:58]OFD Sender: To server: pG, [15:06:58]CommunicateWithHost lk.salyk.kg:30040 [15:06:58]ConnectInit lk.salyk.kg [15:06:58]written 0, free lines is 4095 [15:06:59]Connected sock=10 [15: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 37 36 0F 01 00 00 63 75 07 01 56 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 48 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 92 5F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 20 02 00 35 04 06 00 B6 21 99 59 20 5D 5F 2A DE 57 73 EA 2D 04 [15:06: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 37 36 4F 00 00 00 8D F4 47 00 CF BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 20 02 00 F4 03 04 00 27 06 C3 66 B6 04 01 00 00 E4 D9 65 BA C1 77 47 F3 [15:06:59]CommunicateWithHost err = 0 [15:06:59]CheckOFDResponse [15:06:59]1017 (14) - 77093643461234 [15:06:59]1041 (16) - 0000000000871776 [15:06:59]1040 (4) - 139366 [15:06:59]1012 (4) - 19.08.2024 08:45 [15:06:59]1206 (1) - 0 [15:06:59]OFD Sender: Remove packet 139366 [15:06:59]ProducePacketName [15:06:59]name=ofd_packets/00139366 [15:06:59]NVStorageDeleteData [15:06:59]Write to MH i2c: 01 00 00 A9 11 BA [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: 01 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: 01 07 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: 01 07 00 A9 11 00 00 00 00 00 DA 0C A7 [15:06:59]RasterBufferAndPrint [15:06:59]line [15:06:59]line [15:06:59]line [15:06:59]line [15:06:59]line [15:06:59]written 0, free lines is 3297 [15:06:59]MH_Cut [15:06:59]Write to MH i2c: D1 01 00 B0 11 01 93 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: D1 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: D1 01 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: D1 01 00 B0 11 00 92 [15:06:59]Write to MH i2c: 01 00 00 B1 11 C2 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]OFD Sender: No OFD packet to send [15:07:00]*** Cut start [15:07:00]*** Partial cut [15:07:00]*** CUTSNS_PIN = 1 [15:07:00]*** CUTSNS_PIN = 0 [15:07:00]*** Brake cut motor [15:07:00]Read from MH i2c: 01 [15:07:00]MH_I2C_Read... [15:07:00]*** Stop cut motor [15:07:00]*** Cut end [15:07:00]Read from MH i2c: 01 07 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 07 00 B1 11 00 00 00 00 00 FF 0F D7 [15:07:00]process_action close_receipt done [15:07:00]requested_data is exist [15:07:00]produce_requested_data [15:07:00]requested_item fm.sn is exist - process it [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 11 00 00 [15:07:00]Write to MH i2c: E2 08 00 B2 11 80 11 00 00 00 00 00 00 3D [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 B2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [15:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:07:00]wFMCommunicate OK [15:07:00]requested_item fd.num is exist - process it [15:07:00]SAM_PROTO_GetFieldsCounters [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 13 00 00 [15:07:00]Write to MH i2c: E2 08 00 B3 11 80 13 00 00 00 00 00 00 40 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 62 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 62 00 B3 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_GetFieldsCounters done [15:07:00]requested_item shift.num is exist - process it [15:07:00]requested_item shift.opened is exist - process it [15:07:00]req_shift_opened [15:07:00]FM_GetShiftState [15:07:00]SAM_PROTO_GetShiftState [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 13 01 00 [15:07:00]Write to MH i2c: E2 08 00 B4 11 80 13 01 00 00 00 00 00 42 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0E 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0E 00 B4 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F9 [15:07:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_GetShiftState done [15:07:00]FM_GetShiftState done [15:07:00]req_shift_opened done [15:07:00]requested_item shift.open_date is exist - process it [15:07:00]req_shift_open_date [15:07:00]req_shift_open_date done [15:07:00]produce_requested_data done [15:07:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139366,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:07:00]process_action_free close_receipt [15:07:00]json_value_free [15:07:00]json_value_free done [15:07:00]process_json_proto returns [15:07:00]Send response to host [15:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139366,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:07:00]free response buf [15:07:00]execute_script done [15:07:00]execute_script returns [15:07:00]free content buf [15:07:00]Sock 8.Close socket [15:07:00]Sock 8.Thread stoped [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:07]accept exits with 9 [15:10:07]New connection [15:10:07]New thread 3066817892 created [15:10:07]Thread 3066674532 joined [15:10:07]Waiting for new connection... [15:10:07] Sock 9.Parse request [15:10:07]Sock 9.Check first char [15:10:07]Sock 9.First char is OK [15:10:07]request: POST /json_proto HTTP/1.0 [15:10:07]Method: POST [15:10:07]URL: /json_proto [15:10:07]Method is POST - this is cgi request [15:10:07]url: /json_proto [15:10:07]query_string will be loaded in cgi processing [15:10:07]execute_cgi json_proto POST (null) [15:10:07]execute_cgi path=json_proto method=POST [15:10:07]POST find Content-Length [15:10:07]Host: 172.17.45.67:8080 [15:10:07]Content-Length: 677 [15:10:07]Content-Type: application/json [15:10:07] [15:10:07]POST finish read [15:10:07]Found Content-Length = 677 [15:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:10:07]execute_script... [15:10: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)593209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:10:07]POST & json_proto [15:10:07]process_json_proto [15:10:07]json parsed OK: [15:10:07]protocol is kg_v1.0 [15:10:07]action value=close_receipt [15:10:07]process_action close_receipt [15:10:07]cmd_close_receipt [15:10:07]MH_GetDate [15:10:07]Write to MH i2c: F0 00 00 B5 11 B5 [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: F0 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: F0 09 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: F0 09 00 B5 11 00 50 60 C3 66 5F 7F 2B 66 06 [15:10:07]GetLastDocTimeStamp 1724080018 [15:10:07]current date 1724080208 [15:10:07]FM_GetShiftState [15:10:07]SAM_PROTO_GetShiftState [15:10:07]wFMCommunicate request_size=4 [15:10:07]MH_SAM_APDU [15:10:07]CAPDU: 80 13 01 00 [15:10:07]Write to MH i2c: E2 08 00 B6 11 80 13 01 00 00 00 00 00 44 [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:07]Read from MH i2c: E2 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 0E 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 0E 00 B6 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FB [15:10:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:10:07]wFMCommunicate OK [15:10:07]SAM_PROTO_GetShiftState done [15:10:07]FM_GetShiftState done [15:10:07]opened in 1724027888 [15:10:07]opened+sec_in_day 1724114288 [15:10:07]quantity*price = 50036 [15:10:07]sum+1 = 50037 [15:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 202 19.08.2024 15:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139367 ФПД: 134208031461374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151009&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139367&fm=134208031461374&tin=02508201610067®Number=0000000000092569&sum=50000 [15:10:08]StoreToDocumentArchive [15:10:08]shift 452 fd 139367 [15:10:08]save to /storage/0452/doc_00139367 [15:10:08]save last doc name /storage/0452/doc_00139367 to /storage/kkm_last_doc_name [15:10:08]save OK [15:10:08]Clear old archive folders... [15:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:08]tlvbuf is 0127E6B0 [15:10:08]SAM_PROTO_ClearQueue [15:10:08]wFMCommunicate request_size=4 [15:10:08]MH_SAM_APDU [15:10:08]CAPDU: 80 09 00 00 [15:10:08]Write to MH i2c: E2 08 00 C3 11 80 09 00 00 00 00 00 00 46 [15:10:08]Write i2c OK [15:10:08]MH_I2C_Read... [15:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:08]Read from MH i2c: E2 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 03 00 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: E2 03 00 C3 11 00 90 00 48 [15:10:08]RAPDU: 90 00 [15:10:08]wFMCommunicate OK [15:10:08]SAM_PROTO_ClearQueue done [15:10:08]KKMCreateOFDPacket [15:10:08]OFDProtocolAddRootSTLVToBuf [15:10:08]FM_MakeSignedData [15:10:08]FM_MakeSignedData [15:10:08]SAM_PROTO_SignData [15:10:08]wFMCommunicate request_size=4 [15:10:08]MH_SAM_APDU [15:10:08]CAPDU: 80 0D 01 02 [15:10:08]Write to MH i2c: E2 08 00 C4 11 80 0D 01 02 00 00 00 00 4E [15:10:08]Write i2c OK [15:10:08]MH_I2C_Read... [15:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 C4 11 00 90 00 49 [15:10:09]RAPDU: 90 00 [15:10:09]wFMCommunicate OK [15:10:09]wFMCommunicate request_size=255 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 CA 00 00 00 F4 03 04 00 51 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 20 02 00 35 04 06 00 7A [15:10:09]Write to MH i2c: E2 02 01 C5 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 CA 00 00 00 F4 03 04 00 51 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 20 02 00 35 04 06 00 7A 00 00 43 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 C5 11 00 90 00 4A [15:10:09]RAPDU: 90 00 [15:10:09]wFMCommunicate OK [15:10:09]wFMCommunicate request_size=10 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 0D 02 02 05 0F BE 0A 8F FE [15:10:09]Write to MH i2c: E2 0D 00 C6 11 80 0D 02 02 05 00 0F BE 0A 8F FE 00 00 BF [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 03 00 C6 11 00 90 00 4B [15:10:09]RAPDU: 90 00 [15:10:09]wFMCommunicate OK [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 0D 03 02 [15:10:09]Write to MH i2c: E2 08 00 C7 11 80 0D 03 02 00 00 00 00 53 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 0B 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 0B 00 C7 11 00 38 06 3F B7 FA C5 53 8C 90 00 26 [15:10:09]RAPDU: 38 06 3F B7 FA C5 53 8C 90 00 [15:10:09]wFMCommunicate OK [15:10:09]SAM_PROTO_SignData done [15:10:09]FM_MakeSignedData done [15:10:09]CreateOFDProtocolMessage [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 11 00 00 [15:10:09]Write to MH i2c: E2 08 00 C8 11 80 11 00 00 00 00 00 00 53 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 17 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 17 00 C8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [15:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:10:09]wFMCommunicate OK [15:10:09]CreateOFDProtocolMessage done [15:10:09]OFDSenderStorePacket 139367 [15:10:09]StoreOFDPacket docnum=139367 [15:10:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E ED 07 01 03 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 CA 00 00 00 F4 03 04 00 51 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 20 02 00 35 04 06 00 7A 0F BE 0A 8F FE 38 06 3F B7 FA C5 53 8C [15:10:09]CheckFolder [15:10:09]dirname=/storage/ofd_packets [15:10:09]CheckFolder done [15:10:09]ProducePacketName [15:10:09]name=ofd_packets/00139367 [15:10:09]NVStorageSaveData ofd_packets/00139367 [15:10:09]File name is /storage/ofd_packets/00139367 [15:10:09]Write 301 bytes [15:10:09]NVStorageSaveData done [15:10:09]OFDSenderStorePacket done [15:10:09]KKMCreateOFDPacket done [15:10:09]NVStorageSaveData kkm_last_timestamp [15:10:09]File name is /storage/kkm_last_timestamp [15:10:09]Write 4 bytes [15:10:09]NVStorageSaveData done [15:10:09]ExternCall_PrintAddStr [15:10:09]wPrintStart [15:10:09]Write to MH i2c: 01 00 00 C9 11 DA [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: 01 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: 01 07 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: 01 07 00 C9 11 00 00 00 00 00 FF 0F EF [15:10:09]RasterBufferAndPrint [15:10:09]line Счет N : (1)593209 [15:10:09]line ИНН: 02508201610067 [15:10:09]line Контрольно-Кассовый Чек [15:10:09]line ПРОДАЖА [15:10:09]line ТРК (МРК, ГНК) : 62 [15:10:09]line Товар: 2710124130 [15:10:09]line Аи-92-К-5 [15:10:09]line 7.380 * 67.80 [15:10:09]line = 500.36 [15:10:09]line НДС 12% НСП 1% [15:10:09]line > о реализуемом товаре [15:10:09]line ОКРУГЛЕНИЕ: -0.36 [15:10:09]line ИТОГО: 500.00 [15:10:09]line Внесено: 500.00 [15:10:09]line СДАЧА: 0.00 [15:10:09]line НСП 1% : 4.43 [15:10:09]line НДС 12% : 53.14 [15:10:09]line Наличными: 500.00 [15:10:09]line Безнал.: 0.00 [15:10:09]line Место: АЗС № 136 "Партнер Нефть" [15:10:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:10:09]line СНО: Общий режим [15:10:09]line Чек 202 19.08.2024 15:10 [15:10:09]line Смена: 452 ФФД: 1.0 [15:10:09]line ЗНМ: 0300000067 [15:10:09]line РНМ: 0000000000092569 [15:10:09]line Версия ККМ: 001 [15:10:09]line ФМ: 0000000000871776 [15:10:09]line ФД: 139367 [15:10:09]line ФПД: 134208031461374 [15:10:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151009&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139367&fm=134208031461374&tin=02508201610067®Number=0000000000092569&sum=50000 [15:10:09]OFD Sender: Processing packet 139367 [packets to send 137, broken 136] [15:10:09]ProducePacketName [15:10:09]name=ofd_packets/00139367 [15:10:09]OFD Sender: To server: pG, [15:10:09]CommunicateWithHost lk.salyk.kg:30040 [15:10:09]ConnectInit lk.salyk.kg [15:10:09]written 0, free lines is 4095 [15:10:09]Connected sock=10 [15:10: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 37 36 0F 01 00 00 3E ED 07 01 03 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 CA 00 00 00 F4 03 04 00 51 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 20 02 00 35 04 06 00 7A 0F BE 0A 8F FE 38 06 3F B7 FA C5 53 8C [15:10: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 37 36 4F 00 00 00 B0 6C 47 00 33 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 37 36 10 04 04 00 67 20 02 00 F4 03 04 00 E6 06 C3 66 B6 04 01 00 00 1B AC C3 A7 8E 07 A6 21 [15:10:10]CommunicateWithHost err = 0 [15:10:10]CheckOFDResponse [15:10:10]1017 (14) - 77093643461234 [15:10:10]1041 (16) - 0000000000871776 [15:10:10]1040 (4) - 139367 [15:10:10]1012 (4) - 19.08.2024 08:48 [15:10:10]1206 (1) - 0 [15:10:10]OFD Sender: Remove packet 139367 [15:10:10]ProducePacketName [15:10:10]name=ofd_packets/00139367 [15:10:10]NVStorageDeleteData [15:10:10]Write to MH i2c: 01 00 00 F4 11 05 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 F7 0C 0F [15:10:10]RasterBufferAndPrint [15:10:10]line [15:10:10]line [15:10:10]line [15:10:10]line [15:10:10]line [15:10:10]written 0, free lines is 3327 [15:10:10]MH_Cut [15:10:10]Write to MH i2c: D1 01 00 FB 11 01 DE [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: D1 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: D1 01 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: D1 01 00 FB 11 00 DD [15:10:10]Write to MH i2c: 01 00 00 FC 11 0D [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]OFD Sender: No OFD packet to send [15:10:10]*** Cut start [15:10:10]*** Partial cut [15:10:10]*** CUTSNS_PIN = 1 [15:10:11]*** CUTSNS_PIN = 0 [15:10:11]*** Brake cut motor [15:10:11]Read from MH i2c: 01 [15:10:11]MH_I2C_Read... [15:10:11]*** Stop cut motor [15:10:11]*** Cut end [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 FC 11 00 00 00 00 00 FF 0F 22 [15:10:11]process_action close_receipt done [15:10:11]requested_data is exist [15:10:11]produce_requested_data [15:10:11]requested_item fm.sn is exist - process it [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 FD 11 80 11 00 00 00 00 00 00 88 [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 FD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [15:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:10:11]wFMCommunicate OK [15:10:11]requested_item fd.num is exist - process it [15:10:11]SAM_PROTO_GetFieldsCounters [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 13 00 00 [15:10:11]Write to MH i2c: E2 08 00 FE 11 80 13 00 00 00 00 00 00 8B [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 62 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 62 00 FE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:11]wFMCommunicate OK [15:10:11]SAM_PROTO_GetFieldsCounters done [15:10:11]requested_item shift.num is exist - process it [15:10:11]requested_item shift.opened is exist - process it [15:10:11]req_shift_opened [15:10:11]FM_GetShiftState [15:10:11]SAM_PROTO_GetShiftState [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 13 01 00 [15:10:11]Write to MH i2c: E2 08 00 FF 11 80 13 01 00 00 00 00 00 8D [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 0E 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 0E 00 FF 11 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 44 [15:10:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:10:11]wFMCommunicate OK [15:10:11]SAM_PROTO_GetShiftState done [15:10:11]FM_GetShiftState done [15:10:11]req_shift_opened done [15:10:11]requested_item shift.open_date is exist - process it [15:10:11]req_shift_open_date [15:10:11]req_shift_open_date done [15:10:11]produce_requested_data done [15:10:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139367,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:10:11]process_action_free close_receipt [15:10:11]json_value_free [15:10:11]json_value_free done [15:10:11]process_json_proto returns [15:10:11]Send response to host [15:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139367,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:10:11]free response buf [15:10:11]execute_script done [15:10:11]execute_script returns [15:10:11]free content buf [15:10:11]Sock 9.Close socket [15:10:11]Sock 9.Thread stoped [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]accept exits with 8 [15:11:30]New connection [15:11:30]New thread 3066674532 created [15:11:30]Thread 3066817892 joined [15:11:30]Waiting for new connection... [15:11:30] Sock 8.Parse request [15:11:30]Sock 8.Check first char [15:11:30]Sock 8.First char is OK [15:11:30]request: POST /json_proto HTTP/1.0 [15:11:30]Method: POST [15:11:30]URL: /json_proto [15:11:30]Method is POST - this is cgi request [15:11:30]url: /json_proto [15:11:30]query_string will be loaded in cgi processing [15:11:30]execute_cgi json_proto POST (null) [15:11:30]execute_cgi path=json_proto method=POST [15:11:30]POST find Content-Length [15:11:30]Host: 172.17.45.67:8080 [15:11:30]Content-Length: 677 [15:11:30]Content-Type: application/json [15:11:30] [15:11:30]POST finish read [15:11:30]Found Content-Length = 677 [15:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:11:30]execute_script... [15: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)593210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:11:30]POST & json_proto [15:11:30]process_json_proto [15:11:30]json parsed OK: [15:11:30]protocol is kg_v1.0 [15:11:30]action value=close_receipt [15:11:30]process_action close_receipt [15:11:30]cmd_close_receipt [15:11:30]MH_GetDate [15:11:30]Write to MH i2c: F0 00 00 00 12 01 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: F0 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: F0 09 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: F0 09 00 00 12 00 A3 60 C3 66 5F 7F 2B 66 A5 [15:11:30]GetLastDocTimeStamp 1724080209 [15:11:30]current date 1724080291 [15:11:30]FM_GetShiftState [15:11:30]SAM_PROTO_GetShiftState [15:11:30]wFMCommunicate request_size=4 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 13 01 00 [15:11:30]Write to MH i2c: E2 08 00 01 12 80 13 01 00 00 00 00 00 90 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 0E 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 0E 00 01 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 47 [15:11:30]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:11:30]wFMCommunicate OK [15:11:30]SAM_PROTO_GetShiftState done [15:11:30]FM_GetShiftState done [15:11:30]opened in 1724027888 [15:11:30]opened+sec_in_day 1724114288 [15:11:30]quantity*price = 50036 [15:11:30]sum+1 = 50037 [15:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 203 19.08.2024 15:11 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139368 ФПД: 90769442363356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151131&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139368&fm=90769442363356&tin=02508201610067®Number=0000000000092569&sum=50000 [15:11:31]StoreToDocumentArchive [15:11:31]shift 452 fd 139368 [15:11:31]save to /storage/0452/doc_00139368 [15:11:31]save last doc name /storage/0452/doc_00139368 to /storage/kkm_last_doc_name [15:11:31]save OK [15:11:31]Clear old archive folders... [15:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:31]tlvbuf is 012008C0 [15:11:31]SAM_PROTO_ClearQueue [15:11:31]wFMCommunicate request_size=4 [15:11:31]MH_SAM_APDU [15:11:31]CAPDU: 80 09 00 00 [15:11:31]Write to MH i2c: E2 08 00 0E 12 80 09 00 00 00 00 00 00 92 [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:31]Read from MH i2c: E2 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 0E 12 00 90 00 94 [15:11:31]RAPDU: 90 00 [15:11:31]wFMCommunicate OK [15:11:31]SAM_PROTO_ClearQueue done [15:11:31]KKMCreateOFDPacket [15:11:31]OFDProtocolAddRootSTLVToBuf [15:11:31]FM_MakeSignedData [15:11:31]FM_MakeSignedData [15:11:31]SAM_PROTO_SignData [15:11:31]wFMCommunicate request_size=4 [15:11:31]MH_SAM_APDU [15:11:31]CAPDU: 80 0D 01 02 [15:11:31]Write to MH i2c: E2 08 00 0F 12 80 0D 01 02 00 00 00 00 9A [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:31]Read from MH i2c: E2 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 03 00 0F 12 00 90 00 95 [15:11:31]RAPDU: 90 00 [15:11:31]wFMCommunicate OK [15:11:31]wFMCommunicate request_size=255 [15:11:31]MH_SAM_APDU [15: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A3 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 20 02 00 35 04 06 00 52 [15:11:32]Write to MH i2c: E2 02 01 10 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A3 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 20 02 00 35 04 06 00 52 00 00 BB [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 03 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 03 00 10 12 00 90 00 96 [15:11:32]RAPDU: 90 00 [15:11:32]wFMCommunicate OK [15:11:32]wFMCommunicate request_size=10 [15:11:32]MH_SAM_APDU [15:11:32]CAPDU: 80 0D 02 02 05 8D E8 5E 57 DC [15:11:32]Write to MH i2c: E2 0D 00 11 12 80 0D 02 02 05 00 8D E8 5E 57 DC 00 00 AD [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 03 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [15:11:32]RAPDU: 90 00 [15:11:32]wFMCommunicate OK [15:11:32]wFMCommunicate request_size=4 [15:11:32]MH_SAM_APDU [15:11:32]CAPDU: 80 0D 03 02 [15:11:32]Write to MH i2c: E2 08 00 12 12 80 0D 03 02 00 00 00 00 9F [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 0B 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 0B 00 12 12 00 A2 B0 ED FC 25 90 CE D6 90 00 34 [15:11:32]RAPDU: A2 B0 ED FC 25 90 CE D6 90 00 [15:11:32]wFMCommunicate OK [15:11:32]SAM_PROTO_SignData done [15:11:32]FM_MakeSignedData done [15:11:32]CreateOFDProtocolMessage [15:11:32]wFMCommunicate request_size=4 [15:11:32]MH_SAM_APDU [15:11:32]CAPDU: 80 11 00 00 [15:11:32]Write to MH i2c: E2 08 00 13 12 80 11 00 00 00 00 00 00 9F [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 17 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 17 00 13 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [15:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:11:32]wFMCommunicate OK [15:11:32]CreateOFDProtocolMessage done [15:11:32]OFDSenderStorePacket 139368 [15:11:32]StoreOFDPacket docnum=139368 [15:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 09 07 01 C9 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A3 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 20 02 00 35 04 06 00 52 8D E8 5E 57 DC A2 B0 ED FC 25 90 CE D6 [15:11:32]CheckFolder [15:11:32]dirname=/storage/ofd_packets [15:11:32]CheckFolder done [15:11:32]ProducePacketName [15:11:32]name=ofd_packets/00139368 [15:11:32]NVStorageSaveData ofd_packets/00139368 [15:11:32]File name is /storage/ofd_packets/00139368 [15:11:32]Write 301 bytes [15:11:32]NVStorageSaveData done [15:11:32]OFDSenderStorePacket done [15:11:32]KKMCreateOFDPacket done [15:11:32]NVStorageSaveData kkm_last_timestamp [15:11:32]File name is /storage/kkm_last_timestamp [15:11:32]Write 4 bytes [15:11:32]NVStorageSaveData done [15:11:32]ExternCall_PrintAddStr [15:11:32]wPrintStart [15:11:32]Write to MH i2c: 01 00 00 14 12 26 [15:11:32]OFD Sender: Processing packet 139368 [packets to send 137, broken 136] [15:11:32]ProducePacketName [15:11:32]name=ofd_packets/00139368 [15:11:32]OFD Sender: To server: pG, [15:11:32]CommunicateWithHost lk.salyk.kg:30040 [15:11:32]ConnectInit lk.salyk.kg [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 07 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 07 00 14 12 00 00 00 00 00 FF 0F 3B [15:11:32]RasterBufferAndPrint [15:11:32]line Счет N : (1)593210 [15:11:32]line ИНН: 02508201610067 [15:11:32]line Контрольно-Кассовый Чек [15:11:32]line ПРОДАЖА [15:11:32]line ТРК (МРК, ГНК) : 52 [15:11:32]line Товар: 2710124130 [15:11:32]line Аи-92-К-5 [15:11:32]line 7.380 * 67.80 [15:11:32]line = 500.36 [15:11:32]line НДС 12% НСП 1% [15:11:32]line > о реализуемом товаре [15:11:32]line ОКРУГЛЕНИЕ: -0.36 [15:11:32]line ИТОГО: 500.00 [15:11:32]line Внесено: 500.00 [15:11:32]line СДАЧА: 0.00 [15:11:32]line НСП 1% : 4.43 [15:11:32]line НДС 12% : 53.14 [15:11:32]line Наличными: 500.00 [15:11:32]line Безнал.: 0.00 [15:11:32]line Место: АЗС № 136 "Партнер Нефть" [15:11:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:11:32]line СНО: Общий режим [15:11:32]line Чек 203 19.08.2024 15:11 [15:11:32]line Смена: 452 ФФД: 1.0 [15:11:32]line ЗНМ: 0300000067 [15:11:32]line РНМ: 0000000000092569 [15:11:32]line Версия ККМ: 001 [15:11:32]line ФМ: 0000000000871776 [15:11:32]line ФД: 139368 [15:11:32]line ФПД: 90769442363356 [15:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151131&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139368&fm=90769442363356&tin=02508201610067®Number=0000000000092569&sum=50000 [15:11:32]Connected sock=10 [15: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 37 36 0F 01 00 00 80 09 07 01 C9 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 A3 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 20 02 00 35 04 06 00 52 8D E8 5E 57 DC A2 B0 ED FC 25 90 CE D6 [15:11:32]written 0, free lines is 4095 [15:11:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EF 22 47 00 C9 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 37 36 10 04 04 00 68 20 02 00 F4 03 04 00 39 07 C3 66 B6 04 01 00 00 DD 1B 92 B0 2F 21 0F DE [15:11:33]CommunicateWithHost err = 0 [15:11:33]CheckOFDResponse [15:11:33]1017 (14) - 77093643461234 [15:11:33]1041 (16) - 0000000000871776 [15:11:33]1040 (4) - 139368 [15:11:33]1012 (4) - 19.08.2024 08:50 [15:11:33]1206 (1) - 0 [15:11:33]OFD Sender: Remove packet 139368 [15:11:33]ProducePacketName [15:11:33]name=ofd_packets/00139368 [15:11:33]NVStorageDeleteData [15:11:33]Write to MH i2c: 01 00 00 3F 12 51 [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: 01 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: 01 07 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: 01 07 00 3F 12 00 00 00 00 00 D5 0C 39 [15:11:33]RasterBufferAndPrint [15:11:33]line [15:11:33]line [15:11:33]line [15:11:33]line [15:11:33]line [15:11:33]written 0, free lines is 3293 [15:11:33]MH_Cut [15:11:33]Write to MH i2c: D1 01 00 46 12 01 2A [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: D1 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: D1 01 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: D1 01 00 46 12 00 29 [15:11:33]Write to MH i2c: 01 00 00 47 12 59 [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]OFD Sender: No OFD packet to send [15:11:34]*** Cut start [15:11:34]*** Partial cut [15:11:34]*** CUTSNS_PIN = 1 [15:11:34]*** CUTSNS_PIN = 0 [15:11:34]*** Brake cut motor [15:11:34]Read from MH i2c: 01 [15:11:34]MH_I2C_Read... [15:11:34]*** Stop cut motor [15:11:34]*** Cut end [15:11:34]Read from MH i2c: 01 07 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: 01 07 00 47 12 00 00 00 00 00 FF 0F 6E [15:11:34]process_action close_receipt done [15:11:34]requested_data is exist [15:11:34]produce_requested_data [15:11:34]requested_item fm.sn is exist - process it [15:11:34]wFMCommunicate request_size=4 [15:11:34]MH_SAM_APDU [15:11:34]CAPDU: 80 11 00 00 [15:11:34]Write to MH i2c: E2 08 00 48 12 80 11 00 00 00 00 00 00 D4 [15:11:34]Write i2c OK [15:11:34]MH_I2C_Read... [15:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:34]Read from MH i2c: E2 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 17 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 17 00 48 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2B [15:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:11:34]wFMCommunicate OK [15:11:34]requested_item fd.num is exist - process it [15:11:34]SAM_PROTO_GetFieldsCounters [15:11:34]wFMCommunicate request_size=4 [15:11:34]MH_SAM_APDU [15:11:34]CAPDU: 80 13 00 00 [15:11:34]Write to MH i2c: E2 08 00 49 12 80 13 00 00 00 00 00 00 D7 [15:11:34]Write i2c OK [15:11:34]MH_I2C_Read... [15:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:34]Read from MH i2c: E2 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 62 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 62 00 49 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [15:11: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:34]wFMCommunicate OK [15:11:34]SAM_PROTO_GetFieldsCounters done [15:11:34]requested_item shift.num is exist - process it [15:11:34]requested_item shift.opened is exist - process it [15:11:34]req_shift_opened [15:11:34]FM_GetShiftState [15:11:34]SAM_PROTO_GetShiftState [15:11:34]wFMCommunicate request_size=4 [15:11:34]MH_SAM_APDU [15:11:34]CAPDU: 80 13 01 00 [15:11:34]Write to MH i2c: E2 08 00 4A 12 80 13 01 00 00 00 00 00 D9 [15:11:34]Write i2c OK [15:11:34]MH_I2C_Read... [15:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:34]Read from MH i2c: E2 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 0E 00 [15:11:34]MH_I2C_Read... [15:11:34]Read from MH i2c: E2 0E 00 4A 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 90 [15:11:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:11:34]wFMCommunicate OK [15:11:34]SAM_PROTO_GetShiftState done [15:11:34]FM_GetShiftState done [15:11:34]req_shift_opened done [15:11:34]requested_item shift.open_date is exist - process it [15:11:34]req_shift_open_date [15:11:34]req_shift_open_date done [15:11:34]produce_requested_data done [15:11:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139368,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:11:34]process_action_free close_receipt [15:11:34]json_value_free [15:11:34]json_value_free done [15:11:34]process_json_proto returns [15:11:34]Send response to host [15:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139368,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:11:34]free response buf [15:11:34]execute_script done [15:11:34]execute_script returns [15:11:34]free content buf [15:11:34]Sock 8.Close socket [15:11:34]Sock 8.Thread stoped [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:11]accept exits with 9 [15:12:11]New connection [15:12:11]New thread 3066817892 created [15:12:11]Thread 3066674532 joined [15:12:11]Waiting for new connection... [15:12:11] Sock 9.Parse request [15:12:11]Sock 9.Check first char [15:12:11]Sock 9.First char is OK [15:12:11]request: POST /json_proto HTTP/1.0 [15:12:11]Method: POST [15:12:11]URL: /json_proto [15:12:11]Method is POST - this is cgi request [15:12:11]url: /json_proto [15:12:11]query_string will be loaded in cgi processing [15:12:11]execute_cgi json_proto POST (null) [15:12:11]execute_cgi path=json_proto method=POST [15:12:11]POST find Content-Length [15:12:11]Host: 172.17.45.67:8080 [15:12:11]Content-Length: 677 [15:12:11]Content-Type: application/json [15:12:11] [15:12:11]POST finish read [15:12:11]Found Content-Length = 677 [15:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:12:11]execute_script... [15:12: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)593211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:12:11]POST & json_proto [15:12:11]process_json_proto [15:12:11]json parsed OK: [15:12:11]protocol is kg_v1.0 [15:12:11]action value=close_receipt [15:12:11]process_action close_receipt [15:12:11]cmd_close_receipt [15:12:11]MH_GetDate [15:12:11]Write to MH i2c: F0 00 00 4B 12 4C [15:12:11]Write i2c OK [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: F0 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: F0 09 00 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: F0 09 00 4B 12 00 CC 60 C3 66 5F 7F 2B 66 19 [15:12:11]GetLastDocTimeStamp 1724080291 [15:12:11]current date 1724080332 [15:12:11]FM_GetShiftState [15:12:11]SAM_PROTO_GetShiftState [15:12:11]wFMCommunicate request_size=4 [15:12:11]MH_SAM_APDU [15:12:11]CAPDU: 80 13 01 00 [15:12:11]Write to MH i2c: E2 08 00 4C 12 80 13 01 00 00 00 00 00 DB [15:12:11]Write i2c OK [15:12:11]MH_I2C_Read... [15:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:11]Read from MH i2c: E2 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: E2 0E 00 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: E2 0E 00 4C 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 92 [15:12:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:12:11]wFMCommunicate OK [15:12:11]SAM_PROTO_GetShiftState done [15:12:11]FM_GetShiftState done [15:12:11]opened in 1724027888 [15:12:11]opened+sec_in_day 1724114288 [15:12:11]quantity*price = 20001 [15:12:11]sum+1 = 20002 [15:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 204 19.08.2024 15:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139369 ФПД: 204276247409617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151212&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139369&fm=204276247409617&tin=02508201610067®Number=0000000000092569&sum=20000 [15:12:12]StoreToDocumentArchive [15:12:12]shift 452 fd 139369 [15:12:12]save to /storage/0452/doc_00139369 [15:12:12]save last doc name /storage/0452/doc_00139369 to /storage/kkm_last_doc_name [15:12:12]save OK [15:12:12]Clear old archive folders... [15:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:12]tlvbuf is 011E52F0 [15:12:12]SAM_PROTO_ClearQueue [15:12:12]wFMCommunicate request_size=4 [15:12:12]MH_SAM_APDU [15:12:12]CAPDU: 80 09 00 00 [15:12:12]Write to MH i2c: E2 08 00 59 12 80 09 00 00 00 00 00 00 DD [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:12]Read from MH i2c: E2 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 03 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 03 00 59 12 00 90 00 DF [15:12:12]RAPDU: 90 00 [15:12:12]wFMCommunicate OK [15:12:12]SAM_PROTO_ClearQueue done [15:12:12]KKMCreateOFDPacket [15:12:12]OFDProtocolAddRootSTLVToBuf [15:12:12]FM_MakeSignedData [15:12:12]FM_MakeSignedData [15:12:12]SAM_PROTO_SignData [15:12:12]wFMCommunicate request_size=4 [15:12:12]MH_SAM_APDU [15:12:12]CAPDU: 80 0D 01 02 [15:12:12]Write to MH i2c: E2 08 00 5A 12 80 0D 01 02 00 00 00 00 E5 [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:12]Read from MH i2c: E2 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 03 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 03 00 5A 12 00 90 00 E0 [15:12:12]RAPDU: 90 00 [15:12:12]wFMCommunicate OK [15:12:12]wFMCommunicate request_size=255 [15:12:12]MH_SAM_APDU [15:12: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 CC 00 00 00 F4 03 04 00 CC 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 20 02 00 35 04 06 00 B9 [15:12:12]Write to MH i2c: E2 02 01 5B 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 CC 00 00 00 F4 03 04 00 CC 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 20 02 00 35 04 06 00 B9 00 00 9A [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:12]Read from MH i2c: E2 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 03 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [15:12:12]RAPDU: 90 00 [15:12:12]wFMCommunicate OK [15:12:12]wFMCommunicate request_size=10 [15:12:12]MH_SAM_APDU [15:12:12]CAPDU: 80 0D 02 02 05 C9 C5 29 B3 D1 [15:12:12]Write to MH i2c: E2 0D 00 5C 12 80 0D 02 02 05 00 C9 C5 29 B3 D1 00 00 2D [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:12]Read from MH i2c: E2 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 03 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [15:12:12]RAPDU: 90 00 [15:12:12]wFMCommunicate OK [15:12:12]wFMCommunicate request_size=4 [15:12:12]MH_SAM_APDU [15:12:12]CAPDU: 80 0D 03 02 [15:12:12]Write to MH i2c: E2 08 00 5D 12 80 0D 03 02 00 00 00 00 EA [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:12]Read from MH i2c: E2 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 0B 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 0B 00 5D 12 00 D7 82 35 A2 75 82 7F D4 90 00 65 [15:12:12]RAPDU: D7 82 35 A2 75 82 7F D4 90 00 [15:12:12]wFMCommunicate OK [15:12:12]SAM_PROTO_SignData done [15:12:12]FM_MakeSignedData done [15:12:12]CreateOFDProtocolMessage [15:12:12]wFMCommunicate request_size=4 [15:12:12]MH_SAM_APDU [15:12:12]CAPDU: 80 11 00 00 [15:12:12]Write to MH i2c: E2 08 00 5E 12 80 11 00 00 00 00 00 00 EA [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:12]Read from MH i2c: E2 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 17 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: E2 17 00 5E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 41 [15:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:12:12]wFMCommunicate OK [15:12:12]CreateOFDProtocolMessage done [15:12:12]OFDSenderStorePacket 139369 [15:12:12]StoreOFDPacket docnum=139369 [15:12:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 07 07 01 EA 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 CC 00 00 00 F4 03 04 00 CC 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 20 02 00 35 04 06 00 B9 C9 C5 29 B3 D1 D7 82 35 A2 75 82 7F D4 [15:12:12]CheckFolder [15:12:12]dirname=/storage/ofd_packets [15:12:12]CheckFolder done [15:12:12]ProducePacketName [15:12:12]name=ofd_packets/00139369 [15:12:12]NVStorageSaveData ofd_packets/00139369 [15:12:12]File name is /storage/ofd_packets/00139369 [15:12:12]Write 301 bytes [15:12:12]NVStorageSaveData done [15:12:12]OFDSenderStorePacket done [15:12:12]KKMCreateOFDPacket done [15:12:12]NVStorageSaveData kkm_last_timestamp [15:12:12]File name is /storage/kkm_last_timestamp [15:12:12]Write 4 bytes [15:12:12]NVStorageSaveData done [15:12:12]OFD Sender: Processing packet 139369 [packets to send 137, broken 136] [15:12:12]ProducePacketName [15:12:12]name=ofd_packets/00139369 [15:12:12]OFD Sender: To server: pG, [15:12:12]CommunicateWithHost lk.salyk.kg:30040 [15:12:12]ConnectInit lk.salyk.kg [15:12:12]ExternCall_PrintAddStr [15:12:12]wPrintStart [15:12:12]Write to MH i2c: 01 00 00 5F 12 71 [15:12:12]Write i2c OK [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: 01 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: 01 07 00 [15:12:12]MH_I2C_Read... [15:12:12]Read from MH i2c: 01 07 00 5F 12 00 00 00 00 00 FF 0F 86 [15:12:12]RasterBufferAndPrint [15:12:12]line Счет N : (1)593211 [15:12:12]line ИНН: 02508201610067 [15:12:12]line Контрольно-Кассовый Чек [15:12:12]line ПРОДАЖА [15:12:12]line ТРК (МРК, ГНК) : 42 [15:12:12]line Товар: 2710124130 [15:12:12]line Аи-92-К-5 [15:12:12]line 2.950 * 67.80 [15:12:12]line = 200.01 [15:12:12]line НДС 12% НСП 1% [15:12:12]line > о реализуемом товаре [15:12:12]line ОКРУГЛЕНИЕ: -0.01 [15:12:12]line ИТОГО: 200.00 [15:12:12]line Внесено: 200.00 [15:12:12]line СДАЧА: 0.00 [15:12:12]line НСП 1% : 1.77 [15:12:12]line НДС 12% : 21.24 [15:12:12]line Наличными: 200.00 [15:12:12]line Безнал.: 0.00 [15:12:12]line Место: АЗС № 136 "Партнер Нефть" [15:12:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:12:12]line СНО: Общий режим [15:12:12]line Чек 204 19.08.2024 15:12 [15:12:12]line Смена: 452 ФФД: 1.0 [15:12:12]line ЗНМ: 0300000067 [15:12:12]line РНМ: 0000000000092569 [15:12:12]line Версия ККМ: 001 [15:12:12]line ФМ: 0000000000871776 [15:12:12]line ФД: 139369 [15:12:12]line ФПД: 204276247409617 [15:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151212&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139369&fm=204276247409617&tin=02508201610067®Number=0000000000092569&sum=20000 [15:12:13]Connected sock=11 [15:12: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 37 36 0F 01 00 00 E8 07 07 01 EA 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 CC 00 00 00 F4 03 04 00 CC 60 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 20 02 00 35 04 06 00 B9 C9 C5 29 B3 D1 D7 82 35 A2 75 82 7F D4 [15:12:13]written 0, free lines is 4095 [15:12: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 37 36 4F 00 00 00 27 54 47 00 B8 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 37 36 10 04 04 00 69 20 02 00 F4 03 04 00 62 07 C3 66 B6 04 01 00 00 67 A1 9C 23 52 A7 C6 66 [15:12:13]CommunicateWithHost err = 0 [15:12:13]CheckOFDResponse [15:12:13]1017 (14) - 77093643461234 [15:12:13]1041 (16) - 0000000000871776 [15:12:13]1040 (4) - 139369 [15:12:13]1012 (4) - 19.08.2024 08:50 [15:12:13]1206 (1) - 0 [15:12:13]OFD Sender: Remove packet 139369 [15:12:13]ProducePacketName [15:12:13]name=ofd_packets/00139369 [15:12:13]NVStorageDeleteData [15:12:13]Write to MH i2c: 01 00 00 8A 12 9C [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: 01 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: 01 07 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 CE 0C 7D [15:12:13]RasterBufferAndPrint [15:12:13]line [15:12:13]line [15:12:13]line [15:12:13]line [15:12:13]line [15:12:13]written 0, free lines is 3287 [15:12:13]MH_Cut [15:12:13]Write to MH i2c: D1 01 00 91 12 01 75 [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: D1 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: D1 01 00 [15:12:13]MH_I2C_Read... [15:12:13]Read from MH i2c: D1 01 00 91 12 00 74 [15:12:13]Write to MH i2c: 01 00 00 92 12 A4 [15:12:13]Write i2c OK [15:12:13]MH_I2C_Read... [15:12:14]OFD Sender: No OFD packet to send [15:12:14]*** Cut start [15:12:14]*** Partial cut [15:12:14]*** CUTSNS_PIN = 1 [15:12:14]*** CUTSNS_PIN = 0 [15:12:14]*** Brake cut motor [15:12:15]Read from MH i2c: 01 [15:12:15]MH_I2C_Read... [15:12:15]*** Stop cut motor [15:12:15]*** Cut end [15:12:15]Read from MH i2c: 01 07 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: 01 07 00 92 12 00 00 00 00 00 FF 0F B9 [15:12:15]process_action close_receipt done [15:12:15]requested_data is exist [15:12:15]produce_requested_data [15:12:15]requested_item fm.sn is exist - process it [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 11 00 00 [15:12:15]Write to MH i2c: E2 08 00 93 12 80 11 00 00 00 00 00 00 1F [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 17 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 17 00 93 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 76 [15:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:12:15]wFMCommunicate OK [15:12:15]requested_item fd.num is exist - process it [15:12:15]SAM_PROTO_GetFieldsCounters [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 13 00 00 [15:12:15]Write to MH i2c: E2 08 00 94 12 80 13 00 00 00 00 00 00 22 [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 62 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 62 00 94 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [15:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:15]wFMCommunicate OK [15:12:15]SAM_PROTO_GetFieldsCounters done [15:12:15]requested_item shift.num is exist - process it [15:12:15]requested_item shift.opened is exist - process it [15:12:15]req_shift_opened [15:12:15]FM_GetShiftState [15:12:15]SAM_PROTO_GetShiftState [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 13 01 00 [15:12:15]Write to MH i2c: E2 08 00 95 12 80 13 01 00 00 00 00 00 24 [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 0E 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 0E 00 95 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DB [15:12:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:12:15]wFMCommunicate OK [15:12:15]SAM_PROTO_GetShiftState done [15:12:15]FM_GetShiftState done [15:12:15]req_shift_opened done [15:12:15]requested_item shift.open_date is exist - process it [15:12:15]req_shift_open_date [15:12:15]req_shift_open_date done [15:12:15]produce_requested_data done [15:12:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139369,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:12:15]process_action_free close_receipt [15:12:15]json_value_free [15:12:15]json_value_free done [15:12:15]process_json_proto returns [15:12:15]Send response to host [15:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139369,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:12:15]free response buf [15:12:15]execute_script done [15:12:15]execute_script returns [15:12:15]free content buf [15:12:15]Sock 9.Close socket [15:12:15]Sock 9.Thread stoped [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:42]accept exits with 8 [15:13:42]New connection [15:13:42]New thread 3066674532 created [15:13:42]Thread 3066817892 joined [15:13:42]Waiting for new connection... [15:13:42] Sock 8.Parse request [15:13:42]Sock 8.Check first char [15:13:42]Sock 8.First char is OK [15:13:42]request: POST /json_proto HTTP/1.0 [15:13:42]Method: POST [15:13:42]URL: /json_proto [15:13:42]Method is POST - this is cgi request [15:13:42]url: /json_proto [15:13:42]query_string will be loaded in cgi processing [15:13:42]execute_cgi json_proto POST (null) [15:13:42]execute_cgi path=json_proto method=POST [15:13:42]POST find Content-Length [15:13:42]Host: 172.17.45.67:8080 [15:13:42]Content-Length: 687 [15:13:42]Content-Type: application/json [15:13:42] [15:13:42]POST finish read [15:13:42]Found Content-Length = 687 [15:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:42]execute_script... [15:13: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)593212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:42]POST & json_proto [15:13:42]process_json_proto [15:13:42]json parsed OK: [15:13:42]protocol is kg_v1.0 [15:13:42]action value=close_receipt [15:13:42]process_action close_receipt [15:13:42]cmd_close_receipt [15:13:42]MH_GetDate [15:13:42]Write to MH i2c: F0 00 00 96 12 97 [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: F0 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: F0 09 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: F0 09 00 96 12 00 28 61 C3 66 5F 7F 2B 66 C1 [15:13:42]GetLastDocTimeStamp 1724080332 [15:13:42]current date 1724080424 [15:13:42]FM_GetShiftState [15:13:42]SAM_PROTO_GetShiftState [15:13:42]wFMCommunicate request_size=4 [15:13:42]MH_SAM_APDU [15:13:42]CAPDU: 80 13 01 00 [15:13:42]Write to MH i2c: E2 08 00 97 12 80 13 01 00 00 00 00 00 26 [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:43]Read from MH i2c: E2 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 0E 00 [15:13:43]MH_I2C_Read... [15:13:43]Read from MH i2c: E2 0E 00 97 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DD [15:13:43]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:13:43]wFMCommunicate OK [15:13:43]SAM_PROTO_GetShiftState done [15:13:43]FM_GetShiftState done [15:13:43]opened in 1724027888 [15:13:43]opened+sec_in_day 1724114288 [15:13:43]quantity*price = 160020 [15:13:43]sum+1 = 160021 [15:13:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 205 19.08.2024 15:13 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139370 ФПД: 113602402426579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151344&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139370&fm=113602402426579&tin=02508201610067®Number=0000000000092569&sum=160000 [15:13:44]StoreToDocumentArchive [15:13:44]shift 452 fd 139370 [15:13:44]save to /storage/0452/doc_00139370 [15:13:44]save last doc name /storage/0452/doc_00139370 to /storage/kkm_last_doc_name [15:13:44]save OK [15:13:44]Clear old archive folders... [15:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:13:44]tlvbuf is 01239CF0 [15:13:44]SAM_PROTO_ClearQueue [15:13:44]wFMCommunicate request_size=4 [15:13:44]MH_SAM_APDU [15:13:44]CAPDU: 80 09 00 00 [15:13:44]Write to MH i2c: E2 08 00 A4 12 80 09 00 00 00 00 00 00 28 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:44]Read from MH i2c: E2 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 03 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [15:13:44]RAPDU: 90 00 [15:13:44]wFMCommunicate OK [15:13:44]SAM_PROTO_ClearQueue done [15:13:44]KKMCreateOFDPacket [15:13:44]OFDProtocolAddRootSTLVToBuf [15:13:44]FM_MakeSignedData [15:13:44]FM_MakeSignedData [15:13:44]SAM_PROTO_SignData [15:13:44]wFMCommunicate request_size=4 [15:13:44]MH_SAM_APDU [15:13:44]CAPDU: 80 0D 01 02 [15:13:44]Write to MH i2c: E2 08 00 A5 12 80 0D 01 02 00 00 00 00 30 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:44]Read from MH i2c: E2 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 03 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 03 00 A5 12 00 90 00 2B [15:13:44]RAPDU: 90 00 [15:13:44]wFMCommunicate OK [15:13:44]wFMCommunicate request_size=255 [15:13:44]MH_SAM_APDU [15:13:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 28 61 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 20 02 00 35 04 06 00 [15:13:44]Write to MH i2c: E2 02 01 A6 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 28 61 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 20 02 00 35 04 06 00 00 00 27 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:44]Read from MH i2c: E2 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 03 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 03 00 A6 12 00 90 00 2C [15:13:44]RAPDU: 90 00 [15:13:44]wFMCommunicate OK [15:13:44]wFMCommunicate request_size=11 [15:13:44]MH_SAM_APDU [15:13:44]CAPDU: 80 0D 02 02 06 67 52 1E D7 9E D3 [15:13:44]Write to MH i2c: E2 0E 00 A7 12 80 0D 02 02 06 00 67 52 1E D7 9E D3 00 00 5E [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:44]Read from MH i2c: E2 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 03 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 03 00 A7 12 00 90 00 2D [15:13:44]RAPDU: 90 00 [15:13:44]wFMCommunicate OK [15:13:44]wFMCommunicate request_size=4 [15:13:44]MH_SAM_APDU [15:13:44]CAPDU: 80 0D 03 02 [15:13:44]Write to MH i2c: E2 08 00 A8 12 80 0D 03 02 00 00 00 00 35 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:44]Read from MH i2c: E2 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 0B 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 0B 00 A8 12 00 9E 89 98 6A 56 CE 47 A4 90 00 6E [15:13:44]RAPDU: 9E 89 98 6A 56 CE 47 A4 90 00 [15:13:44]wFMCommunicate OK [15:13:44]SAM_PROTO_SignData done [15:13:44]FM_MakeSignedData done [15:13:44]CreateOFDProtocolMessage [15:13:44]wFMCommunicate request_size=4 [15:13:44]MH_SAM_APDU [15:13:44]CAPDU: 80 11 00 00 [15:13:44]Write to MH i2c: E2 08 00 A9 12 80 11 00 00 00 00 00 00 35 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:44]Read from MH i2c: E2 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 17 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: E2 17 00 A9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [15:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:13:44]wFMCommunicate OK [15:13:44]CreateOFDProtocolMessage done [15:13:44]OFDSenderStorePacket 139370 [15:13:44]StoreOFDPacket docnum=139370 [15:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 E5 1A 08 01 01 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 28 61 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 20 02 00 35 04 06 00 67 52 1E D7 9E D3 9E 89 98 6A 56 CE 47 A4 [15:13:44]CheckFolder [15:13:44]dirname=/storage/ofd_packets [15:13:44]CheckFolder done [15:13:44]ProducePacketName [15:13:44]name=ofd_packets/00139370 [15:13:44]NVStorageSaveData ofd_packets/00139370 [15:13:44]File name is /storage/ofd_packets/00139370 [15:13:44]Write 302 bytes [15:13:44]NVStorageSaveData done [15:13:44]OFDSenderStorePacket done [15:13:44]KKMCreateOFDPacket done [15:13:44]NVStorageSaveData kkm_last_timestamp [15:13:44]File name is /storage/kkm_last_timestamp [15:13:44]Write 4 bytes [15:13:44]NVStorageSaveData done [15:13:44]ExternCall_PrintAddStr [15:13:44]wPrintStart [15:13:44]Write to MH i2c: 01 00 00 AA 12 BC [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 07 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: 01 07 00 AA 12 00 00 00 00 00 FF 0F D1 [15:13:44]RasterBufferAndPrint [15:13:44]line Счет N : (1)593212 [15:13:44]line ИНН: 02508201610067 [15:13:44]line Контрольно-Кассовый Чек [15:13:44]line ПРОДАЖА [15:13:44]line ТРК (МРК, ГНК) : 21 [15:13:44]line Товар: 2710194210 [15:13:44]line ДТ(л)-К-5 [15:13:44]line 21.000 * 76.20 [15:13:44]line = 1600.20 [15:13:44]line НДС 12% НСП 1% [15:13:44]line > о реализуемом товаре [15:13:44]line ОКРУГЛЕНИЕ: -0.20 [15:13:44]line ИТОГО: 1600.00 [15:13:44]line Внесено: 1600.00 [15:13:44]line СДАЧА: 0.00 [15:13:44]line НСП 1% : 14.16 [15:13:44]line НДС 12% : 169.93 [15:13:44]line Наличными: 1600.00 [15:13:44]line Безнал.: 0.00 [15:13:44]line Место: АЗС № 136 "Партнер Нефть" [15:13:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:13:44]line СНО: Общий режим [15:13:44]line Чек 205 19.08.2024 15:13 [15:13:44]line Смена: 452 ФФД: 1.0 [15:13:44]line ЗНМ: 0300000067 [15:13:44]line РНМ: 0000000000092569 [15:13:44]line Версия ККМ: 001 [15:13:44]line ФМ: 0000000000871776 [15:13:44]line ФД: 139370 [15:13:44]line ФПД: 113602402426579 [15:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151344&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139370&fm=113602402426579&tin=02508201610067®Number=0000000000092569&sum=160000 [15:13:45]OFD Sender: Processing packet 139370 [packets to send 137, broken 136] [15:13:45]ProducePacketName [15:13:45]name=ofd_packets/00139370 [15:13:45]OFD Sender: To server: pG, [15:13:45]CommunicateWithHost lk.salyk.kg:30040 [15:13:45]ConnectInit lk.salyk.kg [15:13:45]written 0, free lines is 4095 [15:13:45]Connected sock=9 [15:13: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 37 36 10 01 00 00 E5 1A 08 01 01 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 28 61 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 20 02 00 35 04 06 00 67 52 1E D7 9E D3 9E 89 98 6A 56 CE 47 A4 [15:13: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 37 36 4F 00 00 00 2A 48 47 00 75 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 37 36 10 04 04 00 6A 20 02 00 F4 03 04 00 BD 07 C3 66 B6 04 01 00 00 2B 89 1A A0 CF D7 F8 71 [15:13:45]CommunicateWithHost err = 0 [15:13:45]CheckOFDResponse [15:13:45]1017 (14) - 77093643461234 [15:13:45]1041 (16) - 0000000000871776 [15:13:45]1040 (4) - 139370 [15:13:45]1012 (4) - 19.08.2024 08:52 [15:13:45]1206 (1) - 0 [15:13:45]OFD Sender: Remove packet 139370 [15:13:45]ProducePacketName [15:13:45]name=ofd_packets/00139370 [15:13:45]NVStorageDeleteData [15:13:45]Write to MH i2c: 01 00 00 D5 12 E7 [15:13:45]Write i2c OK [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: 01 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: 01 07 00 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: 01 07 00 D5 12 00 00 00 00 00 D5 0C CF [15:13:45]RasterBufferAndPrint [15:13:45]line [15:13:45]line [15:13:45]line [15:13:45]line [15:13:45]line [15:13:45]written 0, free lines is 3293 [15:13:45]MH_Cut [15:13:45]Write to MH i2c: D1 01 00 DC 12 01 C0 [15:13:45]Write i2c OK [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: D1 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: D1 01 00 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: D1 01 00 DC 12 00 BF [15:13:45]Write to MH i2c: 01 00 00 DD 12 EF [15:13:45]Write i2c OK [15:13:45]MH_I2C_Read... [15:13:45]OFD Sender: No OFD packet to send [15:13:46]*** Cut start [15:13:46]*** Partial cut [15:13:46]*** CUTSNS_PIN = 1 [15:13:46]*** CUTSNS_PIN = 0 [15:13:46]*** Brake cut motor [15:13:46]Read from MH i2c: 01 [15:13:46]MH_I2C_Read... [15:13:46]*** Stop cut motor [15:13:46]*** Cut end [15:13:46]Read from MH i2c: 01 07 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: 01 07 00 DD 12 00 00 00 00 00 FF 0F 04 [15:13:46]process_action close_receipt done [15:13:46]requested_data is exist [15:13:46]produce_requested_data [15:13:46]requested_item fm.sn is exist - process it [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 11 00 00 [15:13:46]Write to MH i2c: E2 08 00 DE 12 80 11 00 00 00 00 00 00 6A [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 17 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 17 00 DE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C1 [15:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:13:46]wFMCommunicate OK [15:13:46]requested_item fd.num is exist - process it [15:13:46]SAM_PROTO_GetFieldsCounters [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 13 00 00 [15:13:46]Write to MH i2c: E2 08 00 DF 12 80 13 00 00 00 00 00 00 6D [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 62 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 62 00 DF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:46]wFMCommunicate OK [15:13:46]SAM_PROTO_GetFieldsCounters done [15:13:46]requested_item shift.num is exist - process it [15:13:46]requested_item shift.opened is exist - process it [15:13:46]req_shift_opened [15:13:46]FM_GetShiftState [15:13:46]SAM_PROTO_GetShiftState [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 13 01 00 [15:13:46]Write to MH i2c: E2 08 00 E0 12 80 13 01 00 00 00 00 00 6F [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 0E 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 0E 00 E0 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 26 [15:13:47]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:13:47]wFMCommunicate OK [15:13:47]SAM_PROTO_GetShiftState done [15:13:47]FM_GetShiftState done [15:13:47]req_shift_opened done [15:13:47]requested_item shift.open_date is exist - process it [15:13:47]req_shift_open_date [15:13:47]req_shift_open_date done [15:13:47]produce_requested_data done [15:13:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139370,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:13:47]process_action_free close_receipt [15:13:47]json_value_free [15:13:47]json_value_free done [15:13:47]process_json_proto returns [15:13:47]Send response to host [15:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139370,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:13:47]free response buf [15:13:47]execute_script done [15:13:47]execute_script returns [15:13:47]free content buf [15:13:47]Sock 8.Close socket [15:13:47]Sock 8.Thread stoped [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:44]accept exits with 10 [15:15:44]New connection [15:15:44]New thread 3066817892 created [15:15:44]Thread 3066674532 joined [15:15:44]Waiting for new connection... [15:15:44] Sock 10.Parse request [15:15:44]Sock 10.Check first char [15:15:44]Sock 10.First char is OK [15:15:44]request: POST /json_proto HTTP/1.0 [15:15:44]Method: POST [15:15:44]URL: /json_proto [15:15:44]Method is POST - this is cgi request [15:15:44]url: /json_proto [15:15:44]query_string will be loaded in cgi processing [15:15:44]execute_cgi json_proto POST (null) [15:15:44]execute_cgi path=json_proto method=POST [15:15:44]POST find Content-Length [15:15:44]Host: 172.17.45.67:8080 [15:15:44]Content-Length: 682 [15:15:44]Content-Type: application/json [15:15:44] [15:15:44]POST finish read [15:15:44]Found Content-Length = 682 [15:15:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 25.880, "sum" : 1920.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1920.00, "total" : 1920.00, "payments": [ { "type": 0, "sum" : 1920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:44]execute_script... [15:15: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)593213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 25.880, "sum" : 1920.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1920.00, "total" : 1920.00, "payments": [ { "type": 0, "sum" : 1920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:44]POST & json_proto [15:15:44]process_json_proto [15:15:44]json parsed OK: [15:15:44]protocol is kg_v1.0 [15:15:44]action value=close_receipt [15:15:44]process_action close_receipt [15:15:44]cmd_close_receipt [15:15:44]MH_GetDate [15:15:44]Write to MH i2c: F0 00 00 E1 12 E2 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: F0 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: F0 09 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: F0 09 00 E1 12 00 A1 61 C3 66 5F 7F 2B 66 85 [15:15:44]GetLastDocTimeStamp 1724080424 [15:15:44]current date 1724080545 [15:15:44]FM_GetShiftState [15:15:44]SAM_PROTO_GetShiftState [15:15:44]wFMCommunicate request_size=4 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 13 01 00 [15:15:44]Write to MH i2c: E2 08 00 E2 12 80 13 01 00 00 00 00 00 71 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 0E 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 0E 00 E2 12 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 28 [15:15:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:15:44]wFMCommunicate OK [15:15:44]SAM_PROTO_GetShiftState done [15:15:44]FM_GetShiftState done [15:15:44]opened in 1724027888 [15:15:44]opened+sec_in_day 1724114288 [15:15:44]quantity*price = 192029 [15:15:44]sum+1 = 192031 [15:15:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1920.00 Внесено: 1920.00 СДАЧА: 0.00 НСП 1% : 16.99 НДС 12% : 203.93 Наличными: 1920.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 206 19.08.2024 15:15 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139371 ФПД: 95398642925836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151545&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139371&fm=95398642925836&tin=02508201610067®Number=0000000000092569&sum=192000 [15:15:45]StoreToDocumentArchive [15:15:45]shift 452 fd 139371 [15:15:45]save to /storage/0452/doc_00139371 [15:15:45]save last doc name /storage/0452/doc_00139371 to /storage/kkm_last_doc_name [15:15:45]save OK [15:15:45]Clear old archive folders... [15:15:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:45]tlvbuf is 012143A0 [15:15:45]SAM_PROTO_ClearQueue [15:15:45]wFMCommunicate request_size=4 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 09 00 00 [15:15:45]Write to MH i2c: E2 08 00 EF 12 80 09 00 00 00 00 00 00 73 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 03 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [15:15:45]RAPDU: 90 00 [15:15:45]wFMCommunicate OK [15:15:45]SAM_PROTO_ClearQueue done [15:15:45]KKMCreateOFDPacket [15:15:45]OFDProtocolAddRootSTLVToBuf [15:15:45]FM_MakeSignedData [15:15:45]FM_MakeSignedData [15:15:45]SAM_PROTO_SignData [15:15:45]wFMCommunicate request_size=4 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 0D 01 02 [15:15:45]Write to MH i2c: E2 08 00 F0 12 80 0D 01 02 00 00 00 00 7B [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 03 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [15:15:45]RAPDU: 90 00 [15:15:45]wFMCommunicate OK [15:15:45]wFMCommunicate request_size=255 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 65 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 4F 00 00 00 00 07 04 06 00 00 EE 02 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 A1 61 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 20 02 00 35 04 06 00 56 [15:15:45]Write to MH i2c: E2 02 01 F1 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 65 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 4F 00 00 00 00 07 04 06 00 00 EE 02 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 A1 61 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 20 02 00 35 04 06 00 56 00 00 58 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 03 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [15:15:45]RAPDU: 90 00 [15:15:45]wFMCommunicate OK [15:15:45]wFMCommunicate request_size=10 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 0D 02 02 05 C3 BA 39 41 0C [15:15:45]Write to MH i2c: E2 0D 00 F2 12 80 0D 02 02 05 00 C3 BA 39 41 0C 00 00 8B [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 03 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [15:15:45]RAPDU: 90 00 [15:15:45]wFMCommunicate OK [15:15:45]wFMCommunicate request_size=4 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 0D 03 02 [15:15:45]Write to MH i2c: E2 08 00 F3 12 80 0D 03 02 00 00 00 00 80 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 0B 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 0B 00 F3 12 00 94 C7 65 86 7A B5 BC 5C 90 00 0E [15:15:45]RAPDU: 94 C7 65 86 7A B5 BC 5C 90 00 [15:15:45]wFMCommunicate OK [15:15:45]SAM_PROTO_SignData done [15:15:45]FM_MakeSignedData done [15:15:45]CreateOFDProtocolMessage [15:15:45]wFMCommunicate request_size=4 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 11 00 00 [15:15:45]Write to MH i2c: E2 08 00 F4 12 80 11 00 00 00 00 00 00 80 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 17 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 17 00 F4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D7 [15:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:15:45]wFMCommunicate OK [15:15:45]CreateOFDProtocolMessage done [15:15:45]OFDSenderStorePacket 139371 [15:15:45]StoreOFDPacket docnum=139371 [15:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2C AC 07 01 93 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 65 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 4F 00 00 00 00 07 04 06 00 00 EE 02 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 A1 61 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 20 02 00 35 04 06 00 56 C3 BA 39 41 0C 94 C7 65 86 7A B5 BC 5C [15:15:45]CheckFolder [15:15:45]dirname=/storage/ofd_packets [15:15:45]CheckFolder done [15:15:45]ProducePacketName [15:15:45]name=ofd_packets/00139371 [15:15:45]NVStorageSaveData ofd_packets/00139371 [15:15:45]File name is /storage/ofd_packets/00139371 [15:15:45]Write 301 bytes [15:15:45]NVStorageSaveData done [15:15:45]OFDSenderStorePacket done [15:15:45]KKMCreateOFDPacket done [15:15:45]NVStorageSaveData kkm_last_timestamp [15:15:45]File name is /storage/kkm_last_timestamp [15:15:45]Write 4 bytes [15:15:45]NVStorageSaveData done [15:15:45]ExternCall_PrintAddStr [15:15:45]wPrintStart [15:15:45]Write to MH i2c: 01 00 00 F5 12 07 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 07 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 07 00 F5 12 00 00 00 00 00 FF 0F 1C [15:15:45]RasterBufferAndPrint [15:15:45]line Счет N : (1)593213 [15:15:45]line ИНН: 02508201610067 [15:15:45]line Контрольно-Кассовый Чек [15:15:45]line ПРОДАЖА [15:15:45]line ТРК (МРК, ГНК) : 61 [15:15:45]line Товар: 2710124500 [15:15:45]line Аи-95-К-5 [15:15:45]line 25.880 * 74.20 [15:15:45]line = 1920.30 [15:15:45]line НДС 12% НСП 1% [15:15:45]line > о реализуемом товаре [15:15:45]line ОКРУГЛЕНИЕ: -0.30 [15:15:45]line ИТОГО: 1920.00 [15:15:45]line Внесено: 1920.00 [15:15:45]line СДАЧА: 0.00 [15:15:45]line НСП 1% : 16.99 [15:15:45]line НДС 12% : 203.93 [15:15:45]line Наличными: 1920.00 [15:15:45]line Безнал.: 0.00 [15:15:45]line Место: АЗС № 136 "Партнер Нефть" [15:15:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:15:45]line СНО: Общий режим [15:15:45]line Чек 206 19.08.2024 15:15 [15:15:45]line Смена: 452 ФФД: 1.0 [15:15:45]line ЗНМ: 0300000067 [15:15:45]line РНМ: 0000000000092569 [15:15:45]line Версия ККМ: 001 [15:15:45]line ФМ: 0000000000871776 [15:15:45]line ФД: 139371 [15:15:45]line ФПД: 95398642925836 [15:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T151545&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139371&fm=95398642925836&tin=02508201610067®Number=0000000000092569&sum=192000 [15:15:46]written 0, free lines is 4095 [15:15:46]OFD Sender: Processing packet 139371 [packets to send 137, broken 136] [15:15:46]ProducePacketName [15:15:46]name=ofd_packets/00139371 [15:15:46]OFD Sender: To server: pG, [15:15:46]CommunicateWithHost lk.salyk.kg:30040 [15:15:46]ConnectInit lk.salyk.kg [15:15:46]Connected sock=11 [15:15: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 37 36 0F 01 00 00 2C AC 07 01 93 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 65 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 4F 00 00 00 00 07 04 06 00 00 EE 02 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 A1 61 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 20 02 00 35 04 06 00 56 C3 BA 39 41 0C 94 C7 65 86 7A B5 BC 5C [15:15:46]Write to MH i2c: 01 00 00 20 13 33 [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 20 13 00 00 00 00 00 D6 0C 1C [15:15:46]RasterBufferAndPrint [15:15:46]line [15:15:46]line [15:15:46]line [15:15:46]line [15:15:46]line [15:15:46]written 0, free lines is 3293 [15:15:46]MH_Cut [15:15:46]Write to MH i2c: D1 01 00 27 13 01 0C [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: D1 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: D1 01 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: D1 01 00 27 13 00 0B [15:15:46]Write to MH i2c: 01 00 00 28 13 3B [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15: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 37 36 4F 00 00 00 DF 8D 47 00 75 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 37 36 10 04 04 00 6B 20 02 00 F4 03 04 00 37 08 C3 66 B6 04 01 00 00 DA 8A ED F4 A9 EB F2 36 [15:15:46]CommunicateWithHost err = 0 [15:15:46]CheckOFDResponse [15:15:46]1017 (14) - 77093643461234 [15:15:46]1041 (16) - 0000000000871776 [15:15:46]1040 (4) - 139371 [15:15:46]1012 (4) - 19.08.2024 08:54 [15:15:46]1206 (1) - 0 [15:15:46]OFD Sender: Remove packet 139371 [15:15:46]ProducePacketName [15:15:46]name=ofd_packets/00139371 [15:15:46]NVStorageDeleteData [15:15:47]OFD Sender: No OFD packet to send [15:15:47]*** Cut start [15:15:47]*** Partial cut [15:15:47]*** CUTSNS_PIN = 1 [15:15:47]*** CUTSNS_PIN = 0 [15:15:47]*** Brake cut motor [15:15:47]Read from MH i2c: 01 [15:15:47]MH_I2C_Read... [15:15:47]*** Stop cut motor [15:15:47]*** Cut end [15:15:47]Read from MH i2c: 01 07 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: 01 07 00 28 13 00 00 00 00 00 FF 0F 50 [15:15:47]process_action close_receipt done [15:15:47]requested_data is exist [15:15:47]produce_requested_data [15:15:47]requested_item fm.sn is exist - process it [15:15:47]wFMCommunicate request_size=4 [15:15:47]MH_SAM_APDU [15:15:47]CAPDU: 80 11 00 00 [15:15:47]Write to MH i2c: E2 08 00 29 13 80 11 00 00 00 00 00 00 B6 [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]*** 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 29 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0D [15:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:15:48]wFMCommunicate OK [15:15:48]requested_item fd.num is exist - process it [15:15:48]SAM_PROTO_GetFieldsCounters [15:15:48]wFMCommunicate request_size=4 [15:15:48]MH_SAM_APDU [15:15:48]CAPDU: 80 13 00 00 [15:15:48]Write to MH i2c: E2 08 00 2A 13 80 13 00 00 00 00 00 00 B9 [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:48]Read from MH i2c: E2 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 62 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 62 00 2A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [15:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:48]wFMCommunicate OK [15:15:48]SAM_PROTO_GetFieldsCounters done [15:15:48]requested_item shift.num is exist - process it [15:15:48]requested_item shift.opened is exist - process it [15:15:48]req_shift_opened [15:15:48]FM_GetShiftState [15:15:48]SAM_PROTO_GetShiftState [15:15:48]wFMCommunicate request_size=4 [15:15:48]MH_SAM_APDU [15:15:48]CAPDU: 80 13 01 00 [15:15:48]Write to MH i2c: E2 08 00 2B 13 80 13 01 00 00 00 00 00 BB [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:48]Read from MH i2c: E2 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 0E 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 0E 00 2B 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 72 [15:15:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:15:48]wFMCommunicate OK [15:15:48]SAM_PROTO_GetShiftState done [15:15:48]FM_GetShiftState done [15:15:48]req_shift_opened done [15:15:48]requested_item shift.open_date is exist - process it [15:15:48]req_shift_open_date [15:15:48]req_shift_open_date done [15:15:48]produce_requested_data done [15:15:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139371,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:15:48]process_action_free close_receipt [15:15:48]json_value_free [15:15:48]json_value_free done [15:15:48]process_json_proto returns [15:15:48]Send response to host [15:15:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139371,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:15:48]free response buf [15:15:48]execute_script done [15:15:48]execute_script returns [15:15:48]free content buf [15:15:48]Sock 10.Close socket [15:15:48]Sock 10.Thread stoped [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [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:55]accept exits with 8 [15:23:55]New connection [15:23:55]New thread 3066674532 created [15:23:55]Thread 3066817892 joined [15:23:55]Waiting for new connection... [15:23:55] Sock 8.Parse request [15:23:55]Sock 8.Check first char [15:23:55]Sock 8.First char is OK [15:23:55]request: POST /json_proto HTTP/1.0 [15:23:55]Method: POST [15:23:55]URL: /json_proto [15:23:55]Method is POST - this is cgi request [15:23:55]url: /json_proto [15:23:55]query_string will be loaded in cgi processing [15:23:55]execute_cgi json_proto POST (null) [15:23:55]execute_cgi path=json_proto method=POST [15:23:55]POST find Content-Length [15:23:55]Host: 172.17.45.67:8080 [15:23:55]Content-Length: 677 [15:23:55]Content-Type: application/json [15:23:55] [15:23:55]POST finish read [15:23:55]Found Content-Length = 677 [15:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:23:55]execute_script... [15:23: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)593214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:23:55]POST & json_proto [15:23:55]process_json_proto [15:23:55]json parsed OK: [15:23:55]protocol is kg_v1.0 [15:23:55]action value=close_receipt [15:23:55]process_action close_receipt [15:23:55]cmd_close_receipt [15:23:55]MH_GetDate [15:23:55]Write to MH i2c: F0 00 00 2C 13 2E [15:23:55]Write i2c OK [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: F0 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: F0 09 00 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: F0 09 00 2C 13 00 8D 63 C3 66 5F 7F 2B 66 BF [15:23:55]GetLastDocTimeStamp 1724080545 [15:23:55]current date 1724081037 [15:23:55]FM_GetShiftState [15:23:55]SAM_PROTO_GetShiftState [15:23:55]wFMCommunicate request_size=4 [15:23:55]MH_SAM_APDU [15:23:55]CAPDU: 80 13 01 00 [15:23:55]Write to MH i2c: E2 08 00 2D 13 80 13 01 00 00 00 00 00 BD [15:23:55]Write i2c OK [15:23:55]MH_I2C_Read... [15:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:55]Read from MH i2c: E2 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: E2 0E 00 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: E2 0E 00 2D 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 74 [15:23:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:23:55]wFMCommunicate OK [15:23:55]SAM_PROTO_GetShiftState done [15:23:55]FM_GetShiftState done [15:23:55]opened in 1724027888 [15:23:55]opened+sec_in_day 1724114288 [15:23:55]quantity*price = 60027 [15:23:55]sum+1 = 60029 [15:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 207 19.08.2024 15:23 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139372 ФПД: 261006715855495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152357&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139372&fm=261006715855495&tin=02508201610067®Number=0000000000092569&sum=60000 [15:23:57]StoreToDocumentArchive [15:23:57]shift 452 fd 139372 [15:23:57]save to /storage/0452/doc_00139372 [15:23:57]save last doc name /storage/0452/doc_00139372 to /storage/kkm_last_doc_name [15:23:57]save OK [15:23:57]Clear old archive folders... [15:23:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:57]tlvbuf is 011EBEE0 [15:23:57]SAM_PROTO_ClearQueue [15:23:57]wFMCommunicate request_size=4 [15:23:57]MH_SAM_APDU [15:23:57]CAPDU: 80 09 00 00 [15:23:57]Write to MH i2c: E2 08 00 3A 13 80 09 00 00 00 00 00 00 BF [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 03 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [15:23:57]RAPDU: 90 00 [15:23:57]wFMCommunicate OK [15:23:57]SAM_PROTO_ClearQueue done [15:23:57]KKMCreateOFDPacket [15:23:57]OFDProtocolAddRootSTLVToBuf [15:23:57]FM_MakeSignedData [15:23:57]FM_MakeSignedData [15:23:57]SAM_PROTO_SignData [15:23:57]wFMCommunicate request_size=4 [15:23:57]MH_SAM_APDU [15:23:57]CAPDU: 80 0D 01 02 [15:23:57]Write to MH i2c: E2 08 00 3B 13 80 0D 01 02 00 00 00 00 C7 [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 03 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 03 00 3B 13 00 90 00 C2 [15:23:57]RAPDU: 90 00 [15:23:57]wFMCommunicate OK [15:23:57]wFMCommunicate request_size=255 [15:23:57]MH_SAM_APDU [15:23: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 CF 00 00 00 F4 03 04 00 8D 63 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 20 02 00 35 04 06 00 ED [15:23:57]Write to MH i2c: E2 02 01 3C 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 CF 00 00 00 F4 03 04 00 8D 63 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 20 02 00 35 04 06 00 ED 00 00 E6 [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 03 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 03 00 3C 13 00 90 00 C3 [15:23:57]RAPDU: 90 00 [15:23:57]wFMCommunicate OK [15:23:57]wFMCommunicate request_size=10 [15:23:57]MH_SAM_APDU [15:23:57]CAPDU: 80 0D 02 02 05 62 5C 95 22 87 [15:23:57]Write to MH i2c: E2 0D 00 3D 13 80 0D 02 02 05 00 62 5C 95 22 87 00 00 D0 [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 03 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 03 00 3D 13 00 90 00 C4 [15:23:57]RAPDU: 90 00 [15:23:57]wFMCommunicate OK [15:23:57]wFMCommunicate request_size=4 [15:23:57]MH_SAM_APDU [15:23:57]CAPDU: 80 0D 03 02 [15:23:57]Write to MH i2c: E2 08 00 3E 13 80 0D 03 02 00 00 00 00 CC [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 0B 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 0B 00 3E 13 00 E7 B4 CC D2 EF 47 45 50 90 00 D1 [15:23:57]RAPDU: E7 B4 CC D2 EF 47 45 50 90 00 [15:23:57]wFMCommunicate OK [15:23:57]SAM_PROTO_SignData done [15:23:57]FM_MakeSignedData done [15:23:57]CreateOFDProtocolMessage [15:23:57]wFMCommunicate request_size=4 [15:23:57]MH_SAM_APDU [15:23:57]CAPDU: 80 11 00 00 [15:23:57]Write to MH i2c: E2 08 00 3F 13 80 11 00 00 00 00 00 00 CC [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 17 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 17 00 3F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [15:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:23:57]wFMCommunicate OK [15:23:57]CreateOFDProtocolMessage done [15:23:57]OFDSenderStorePacket 139372 [15:23:57]StoreOFDPacket docnum=139372 [15:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AF 19 07 01 66 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 CF 00 00 00 F4 03 04 00 8D 63 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 20 02 00 35 04 06 00 ED 62 5C 95 22 87 E7 B4 CC D2 EF 47 45 50 [15:23:57]CheckFolder [15:23:57]dirname=/storage/ofd_packets [15:23:57]CheckFolder done [15:23:57]ProducePacketName [15:23:57]name=ofd_packets/00139372 [15:23:57]NVStorageSaveData ofd_packets/00139372 [15:23:57]File name is /storage/ofd_packets/00139372 [15:23:57]Write 301 bytes [15:23:57]NVStorageSaveData done [15:23:57]OFDSenderStorePacket done [15:23:57]KKMCreateOFDPacket done [15:23:57]NVStorageSaveData kkm_last_timestamp [15:23:57]File name is /storage/kkm_last_timestamp [15:23:57]Write 4 bytes [15:23:57]NVStorageSaveData done [15:23:57]ExternCall_PrintAddStr [15:23:57]wPrintStart [15:23:57]Write to MH i2c: 01 00 00 40 13 53 [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: 01 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: 01 07 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: 01 07 00 40 13 00 00 00 00 00 FF 0F 68 [15:23:57]RasterBufferAndPrint [15:23:57]line Счет N : (1)593214 [15:23:57]line ИНН: 02508201610067 [15:23:57]line Контрольно-Кассовый Чек [15:23:57]line ПРОДАЖА [15:23:57]line ТРК (МРК, ГНК) : 61 [15:23:57]line Товар: 2710124500 [15:23:57]line Аи-95-К-5 [15:23:57]line 8.090 * 74.20 [15:23:57]line = 600.28 [15:23:57]line НДС 12% НСП 1% [15:23:57]line > о реализуемом товаре [15:23:57]line ОКРУГЛЕНИЕ: -0.28 [15:23:57]line ИТОГО: 600.00 [15:23:57]line Внесено: 600.00 [15:23:57]line СДАЧА: 0.00 [15:23:57]line НСП 1% : 5.31 [15:23:57]line НДС 12% : 63.75 [15:23:57]line Наличными: 600.00 [15:23:57]line Безнал.: 0.00 [15:23:57]line Место: АЗС № 136 "Партнер Нефть" [15:23:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:23:57]line СНО: Общий режим [15:23:57]line Чек 207 19.08.2024 15:23 [15:23:57]line Смена: 452 ФФД: 1.0 [15:23:57]line ЗНМ: 0300000067 [15:23:57]line РНМ: 0000000000092569 [15:23:57]line Версия ККМ: 001 [15:23:57]line ФМ: 0000000000871776 [15:23:57]line ФД: 139372 [15:23:57]line ФПД: 261006715855495 [15:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152357&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139372&fm=261006715855495&tin=02508201610067®Number=0000000000092569&sum=60000 [15:23:57]written 0, free lines is 4095 [15:23:57]OFD Sender: Processing packet 139372 [packets to send 137, broken 136] [15:23:57]ProducePacketName [15:23:57]name=ofd_packets/00139372 [15:23:57]OFD Sender: To server: pG, [15:23:57]CommunicateWithHost lk.salyk.kg:30040 [15:23:57]ConnectInit lk.salyk.kg [15:23:58]Connected sock=10 [15:23: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 37 36 0F 01 00 00 AF 19 07 01 66 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 CF 00 00 00 F4 03 04 00 8D 63 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 20 02 00 35 04 06 00 ED 62 5C 95 22 87 E7 B4 CC D2 EF 47 45 50 [15:23: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 37 36 4F 00 00 00 FF AD 47 00 D2 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 37 36 10 04 04 00 6C 20 02 00 F4 03 04 00 22 0A C3 66 B6 04 01 00 00 9A 30 35 CC B1 C0 F1 8A [15:23:58]CommunicateWithHost err = 0 [15:23:58]CheckOFDResponse [15:23:58]1017 (14) - 77093643461234 [15:23:58]1041 (16) - 0000000000871776 [15:23:58]1040 (4) - 139372 [15:23:58]1012 (4) - 19.08.2024 09:02 [15:23:58]1206 (1) - 0 [15:23:58]OFD Sender: Remove packet 139372 [15:23:58]ProducePacketName [15:23:58]name=ofd_packets/00139372 [15:23:58]NVStorageDeleteData [15:23:58]Write to MH i2c: 01 00 00 6B 13 7E [15:23:58]Write i2c OK [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: 01 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: 01 07 00 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: 01 07 00 6B 13 00 00 00 00 00 C8 0C 59 [15:23:58]RasterBufferAndPrint [15:23:58]line [15:23:58]line [15:23:58]line [15:23:58]line [15:23:58]line [15:23:58]written 0, free lines is 3278 [15:23:58]MH_Cut [15:23:58]Write to MH i2c: D1 01 00 72 13 01 57 [15:23:58]Write i2c OK [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: D1 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: D1 01 00 [15:23:58]MH_I2C_Read... [15:23:58]Read from MH i2c: D1 01 00 72 13 00 56 [15:23:58]Write to MH i2c: 01 00 00 73 13 86 [15:23:58]Write i2c OK [15:23:58]MH_I2C_Read... [15:23:58]OFD Sender: No OFD packet to send [15:23:59]*** Cut start [15:23:59]*** Partial cut [15:23:59]*** CUTSNS_PIN = 1 [15:23:59]*** CUTSNS_PIN = 0 [15:23:59]*** Brake cut motor [15:23:59]Read from MH i2c: 01 [15:23:59]MH_I2C_Read... [15:23:59]*** Stop cut motor [15:23:59]*** Cut end [15:23:59]Read from MH i2c: 01 07 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [15:23:59]process_action close_receipt done [15:23:59]requested_data is exist [15:23:59]produce_requested_data [15:23:59]requested_item fm.sn is exist - process it [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 11 00 00 [15:23:59]Write to MH i2c: E2 08 00 74 13 80 11 00 00 00 00 00 00 01 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 17 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 17 00 74 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [15:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:23:59]wFMCommunicate OK [15:23:59]requested_item fd.num is exist - process it [15:23:59]SAM_PROTO_GetFieldsCounters [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 13 00 00 [15:23:59]Write to MH i2c: E2 08 00 75 13 80 13 00 00 00 00 00 00 04 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 62 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 62 00 75 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [15:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:59]wFMCommunicate OK [15:23:59]SAM_PROTO_GetFieldsCounters done [15:23:59]requested_item shift.num is exist - process it [15:23:59]requested_item shift.opened is exist - process it [15:23:59]req_shift_opened [15:23:59]FM_GetShiftState [15:23:59]SAM_PROTO_GetShiftState [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 13 01 00 [15:23:59]Write to MH i2c: E2 08 00 76 13 80 13 01 00 00 00 00 00 06 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 0E 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 0E 00 76 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BD [15:23:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:23:59]wFMCommunicate OK [15:23:59]SAM_PROTO_GetShiftState done [15:23:59]FM_GetShiftState done [15:23:59]req_shift_opened done [15:23:59]requested_item shift.open_date is exist - process it [15:23:59]req_shift_open_date [15:23:59]req_shift_open_date done [15:23:59]produce_requested_data done [15:23:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139372,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:23:59]process_action_free close_receipt [15:23:59]json_value_free [15:23:59]json_value_free done [15:23:59]process_json_proto returns [15:23:59]Send response to host [15:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139372,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:23:59]free response buf [15:23:59]execute_script done [15:23:59]execute_script returns [15:23:59]free content buf [15:23:59]Sock 8.Close socket [15:23:59]Sock 8.Thread stoped [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:27]accept exits with 9 [15:24:27]New connection [15:24:27]New thread 3066817892 created [15:24:27]Thread 3066674532 joined [15:24:27]Waiting for new connection... [15:24:27] Sock 9.Parse request [15:24:27]Sock 9.Check first char [15:24:27]Sock 9.First char is OK [15:24:27]request: POST /json_proto HTTP/1.0 [15:24:27]Method: POST [15:24:27]URL: /json_proto [15:24:27]Method is POST - this is cgi request [15:24:27]url: /json_proto [15:24:27]query_string will be loaded in cgi processing [15:24:27]execute_cgi json_proto POST (null) [15:24:27]execute_cgi path=json_proto method=POST [15:24:27]POST find Content-Length [15:24:27]Host: 172.17.45.67:8080 [15:24:27]Content-Length: 677 [15:24:27]Content-Type: application/json [15:24:27] [15:24:27]POST finish read [15:24:27]Found Content-Length = 677 [15:24:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:24:27]execute_script... [15:24: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)593215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:24:27]POST & json_proto [15:24:27]process_json_proto [15:24:27]json parsed OK: [15:24:27]protocol is kg_v1.0 [15:24:27]action value=close_receipt [15:24:27]process_action close_receipt [15:24:27]cmd_close_receipt [15:24:27]MH_GetDate [15:24:27]Write to MH i2c: F0 00 00 77 13 79 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: F0 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: F0 09 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: F0 09 00 77 13 00 AC 63 C3 66 5F 7F 2B 66 29 [15:24:27]GetLastDocTimeStamp 1724081037 [15:24:27]current date 1724081068 [15:24:27]FM_GetShiftState [15:24:27]SAM_PROTO_GetShiftState [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 13 01 00 [15:24:27]Write to MH i2c: E2 08 00 78 13 80 13 01 00 00 00 00 00 08 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 0E 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 0E 00 78 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BF [15:24:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:24:27]wFMCommunicate OK [15:24:27]SAM_PROTO_GetShiftState done [15:24:27]FM_GetShiftState done [15:24:27]opened in 1724027888 [15:24:27]opened+sec_in_day 1724114288 [15:24:27]quantity*price = 20001 [15:24:27]sum+1 = 20002 [15:24:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 208 19.08.2024 15:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139373 ФПД: 216593007185171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152428&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139373&fm=216593007185171&tin=02508201610067®Number=0000000000092569&sum=20000 [15:24:28]StoreToDocumentArchive [15:24:28]shift 452 fd 139373 [15:24:28]save to /storage/0452/doc_00139373 [15:24:28]save last doc name /storage/0452/doc_00139373 to /storage/kkm_last_doc_name [15:24:28]save OK [15:24:28]Clear old archive folders... [15:24:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:28]tlvbuf is 01239F40 [15:24:28]SAM_PROTO_ClearQueue [15:24:28]wFMCommunicate request_size=4 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 09 00 00 [15:24:28]Write to MH i2c: E2 08 00 85 13 80 09 00 00 00 00 00 00 0A [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [15:24:28]RAPDU: 90 00 [15:24:28]wFMCommunicate OK [15:24:28]SAM_PROTO_ClearQueue done [15:24:28]KKMCreateOFDPacket [15:24:28]OFDProtocolAddRootSTLVToBuf [15:24:28]FM_MakeSignedData [15:24:28]FM_MakeSignedData [15:24:28]SAM_PROTO_SignData [15:24:28]wFMCommunicate request_size=4 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 0D 01 02 [15:24:28]Write to MH i2c: E2 08 00 86 13 80 0D 01 02 00 00 00 00 12 [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 86 13 00 90 00 0D [15:24:28]RAPDU: 90 00 [15:24:28]wFMCommunicate OK [15:24:28]wFMCommunicate request_size=255 [15:24:28]MH_SAM_APDU [15:24: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 D0 00 00 00 F4 03 04 00 AC 63 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 20 02 00 35 04 06 00 C4 [15:24:28]Write to MH i2c: E2 02 01 87 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 D0 00 00 00 F4 03 04 00 AC 63 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 20 02 00 35 04 06 00 C4 00 00 BD [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]OFD Sender: No OFD packet to send [15:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 87 13 00 90 00 0E [15:24:28]RAPDU: 90 00 [15:24:28]wFMCommunicate OK [15:24:28]wFMCommunicate request_size=10 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 0D 02 02 05 FD 7D 41 0D 13 [15:24:28]Write to MH i2c: E2 0D 00 88 13 80 0D 02 02 05 00 FD 7D 41 0D 13 00 00 FA [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 03 00 88 13 00 90 00 0F [15:24:28]RAPDU: 90 00 [15:24:28]wFMCommunicate OK [15:24:28]wFMCommunicate request_size=4 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 0D 03 02 [15:24:28]Write to MH i2c: E2 08 00 89 13 80 0D 03 02 00 00 00 00 17 [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:29]Read from MH i2c: E2 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 0B 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 0B 00 89 13 00 9E 6F C6 1F 13 3D 1A 31 90 00 A5 [15:24:29]RAPDU: 9E 6F C6 1F 13 3D 1A 31 90 00 [15:24:29]wFMCommunicate OK [15:24:29]SAM_PROTO_SignData done [15:24:29]FM_MakeSignedData done [15:24:29]CreateOFDProtocolMessage [15:24:29]wFMCommunicate request_size=4 [15:24:29]MH_SAM_APDU [15:24:29]CAPDU: 80 11 00 00 [15:24:29]Write to MH i2c: E2 08 00 8A 13 80 11 00 00 00 00 00 00 17 [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:29]Read from MH i2c: E2 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 17 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 17 00 8A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6E [15:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:24:29]wFMCommunicate OK [15:24:29]CreateOFDProtocolMessage done [15:24:29]OFDSenderStorePacket 139373 [15:24:29]StoreOFDPacket docnum=139373 [15:24:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E3 24 07 01 64 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 D0 00 00 00 F4 03 04 00 AC 63 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 20 02 00 35 04 06 00 C4 FD 7D 41 0D 13 9E 6F C6 1F 13 3D 1A 31 [15:24:29]CheckFolder [15:24:29]dirname=/storage/ofd_packets [15:24:29]CheckFolder done [15:24:29]ProducePacketName [15:24:29]name=ofd_packets/00139373 [15:24:29]NVStorageSaveData ofd_packets/00139373 [15:24:29]File name is /storage/ofd_packets/00139373 [15:24:29]Write 301 bytes [15:24:29]NVStorageSaveData done [15:24:29]OFDSenderStorePacket done [15:24:29]KKMCreateOFDPacket done [15:24:29]NVStorageSaveData kkm_last_timestamp [15:24:29]File name is /storage/kkm_last_timestamp [15:24:29]Write 4 bytes [15:24:29]NVStorageSaveData done [15:24:29]ExternCall_PrintAddStr [15:24:29]wPrintStart [15:24:29]Write to MH i2c: 01 00 00 8B 13 9E [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 07 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 07 00 8B 13 00 00 00 00 00 FF 0F B3 [15:24:29]RasterBufferAndPrint [15:24:29]line Счет N : (1)593215 [15:24:29]line ИНН: 02508201610067 [15:24:29]line Контрольно-Кассовый Чек [15:24:29]line ПРОДАЖА [15:24:29]line ТРК (МРК, ГНК) : 42 [15:24:29]line Товар: 2710124130 [15:24:29]line Аи-92-К-5 [15:24:29]line 2.950 * 67.80 [15:24:29]line = 200.01 [15:24:29]line НДС 12% НСП 1% [15:24:29]line > о реализуемом товаре [15:24:29]line ОКРУГЛЕНИЕ: -0.01 [15:24:29]line ИТОГО: 200.00 [15:24:29]line Внесено: 200.00 [15:24:29]line СДАЧА: 0.00 [15:24:29]line НСП 1% : 1.77 [15:24:29]line НДС 12% : 21.24 [15:24:29]line Наличными: 200.00 [15:24:29]line Безнал.: 0.00 [15:24:29]line Место: АЗС № 136 "Партнер Нефть" [15:24:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:24:29]line СНО: Общий режим [15:24:29]line Чек 208 19.08.2024 15:24 [15:24:29]line Смена: 452 ФФД: 1.0 [15:24:29]line ЗНМ: 0300000067 [15:24:29]line РНМ: 0000000000092569 [15:24:29]line Версия ККМ: 001 [15:24:29]line ФМ: 0000000000871776 [15:24:29]line ФД: 139373 [15:24:29]line ФПД: 216593007185171 [15:24:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152428&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139373&fm=216593007185171&tin=02508201610067®Number=0000000000092569&sum=20000 [15:24:29]OFD Sender: Processing packet 139373 [packets to send 137, broken 136] [15:24:29]ProducePacketName [15:24:29]name=ofd_packets/00139373 [15:24:29]OFD Sender: To server: pG, [15:24:29]CommunicateWithHost lk.salyk.kg:30040 [15:24:29]ConnectInit lk.salyk.kg [15:24:29]written 0, free lines is 4095 [15:24:29]Connected sock=10 [15:24: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 37 36 0F 01 00 00 E3 24 07 01 64 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 D0 00 00 00 F4 03 04 00 AC 63 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 20 02 00 35 04 06 00 C4 FD 7D 41 0D 13 9E 6F C6 1F 13 3D 1A 31 [15:24:29]Write to MH i2c: 01 00 00 B6 13 C9 [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 07 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 CB 0C A7 [15:24:29]RasterBufferAndPrint [15:24:29]line [15:24:29]line [15:24:29]line [15:24:29]line [15:24:29]line [15:24:29]written 0, free lines is 3281 [15:24:29]MH_Cut [15:24:29]Write to MH i2c: D1 01 00 BD 13 01 A2 [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: D1 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: D1 01 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: D1 01 00 BD 13 00 A1 [15:24:29]Write to MH i2c: 01 00 00 BE 13 D1 [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24: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 37 36 4F 00 00 00 FE 66 47 00 82 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 37 36 10 04 04 00 6D 20 02 00 F4 03 04 00 42 0A C3 66 B6 04 01 00 00 F2 66 21 31 FF E7 43 CA [15:24:30]CommunicateWithHost err = 0 [15:24:30]CheckOFDResponse [15:24:30]1017 (14) - 77093643461234 [15:24:30]1041 (16) - 0000000000871776 [15:24:30]1040 (4) - 139373 [15:24:30]1012 (4) - 19.08.2024 09:02 [15:24:30]1206 (1) - 0 [15:24:30]OFD Sender: Remove packet 139373 [15:24:30]ProducePacketName [15:24:30]name=ofd_packets/00139373 [15:24:30]NVStorageDeleteData [15:24:30]OFD Sender: No OFD packet to send [15:24:30]*** Cut start [15:24:30]*** Partial cut [15:24:30]*** CUTSNS_PIN = 1 [15:24:30]*** CUTSNS_PIN = 0 [15:24:30]*** Brake cut motor [15:24:31]Read from MH i2c: 01 [15:24:31]MH_I2C_Read... [15:24:31]*** Stop cut motor [15:24:31]*** Cut end [15:24:31]Read from MH i2c: 01 07 00 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: 01 07 00 BE 13 00 00 00 00 00 FF 0F E6 [15:24:31]process_action close_receipt done [15:24:31]requested_data is exist [15:24:31]produce_requested_data [15:24:31]requested_item fm.sn is exist - process it [15:24:31]wFMCommunicate request_size=4 [15:24:31]MH_SAM_APDU [15:24:31]CAPDU: 80 11 00 00 [15:24:31]Write to MH i2c: E2 08 00 BF 13 80 11 00 00 00 00 00 00 4C [15:24:31]Write i2c OK [15:24:31]MH_I2C_Read... [15:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:31]Read from MH i2c: E2 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 17 00 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 17 00 BF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A3 [15:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:24:31]wFMCommunicate OK [15:24:31]requested_item fd.num is exist - process it [15:24:31]SAM_PROTO_GetFieldsCounters [15:24:31]wFMCommunicate request_size=4 [15:24:31]MH_SAM_APDU [15:24:31]CAPDU: 80 13 00 00 [15:24:31]Write to MH i2c: E2 08 00 C0 13 80 13 00 00 00 00 00 00 4F [15:24:31]Write i2c OK [15:24:31]MH_I2C_Read... [15:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:31]Read from MH i2c: E2 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 62 00 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 62 00 C0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:31]wFMCommunicate OK [15:24:31]SAM_PROTO_GetFieldsCounters done [15:24:31]requested_item shift.num is exist - process it [15:24:31]requested_item shift.opened is exist - process it [15:24:31]req_shift_opened [15:24:31]FM_GetShiftState [15:24:31]SAM_PROTO_GetShiftState [15:24:31]wFMCommunicate request_size=4 [15:24:31]MH_SAM_APDU [15:24:31]CAPDU: 80 13 01 00 [15:24:31]Write to MH i2c: E2 08 00 C1 13 80 13 01 00 00 00 00 00 51 [15:24:31]Write i2c OK [15:24:31]MH_I2C_Read... [15:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:31]Read from MH i2c: E2 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 0E 00 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 0E 00 C1 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 08 [15:24:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:24:31]wFMCommunicate OK [15:24:31]SAM_PROTO_GetShiftState done [15:24:31]FM_GetShiftState done [15:24:31]req_shift_opened done [15:24:31]requested_item shift.open_date is exist - process it [15:24:31]req_shift_open_date [15:24:31]req_shift_open_date done [15:24:31]produce_requested_data done [15:24:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139373,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:24:31]process_action_free close_receipt [15:24:31]json_value_free [15:24:31]json_value_free done [15:24:31]process_json_proto returns [15:24:31]Send response to host [15:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139373,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:24:31]free response buf [15:24:31]execute_script done [15:24:31]execute_script returns [15:24:31]free content buf [15:24:31]Sock 9.Close socket [15:24:31]Sock 9.Thread stoped [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:53]accept exits with 8 [15:31:53]New connection [15:31:53]New thread 3066674532 created [15:31:53]Thread 3066817892 joined [15:31:53]Waiting for new connection... [15:31:53] Sock 8.Parse request [15:31:53]Sock 8.Check first char [15:31:53]Sock 8.First char is OK [15:31:53]request: POST /json_proto HTTP/1.0 [15:31:53]Method: POST [15:31:53]URL: /json_proto [15:31:53]Method is POST - this is cgi request [15:31:53]url: /json_proto [15:31:53]query_string will be loaded in cgi processing [15:31:53]execute_cgi json_proto POST (null) [15:31:53]execute_cgi path=json_proto method=POST [15:31:53]POST find Content-Length [15:31:53]Host: 172.17.45.67:8080 [15:31:53]Content-Length: 677 [15:31:53]Content-Type: application/json [15:31:53] [15:31:53]POST finish read [15:31:53]Found Content-Length = 677 [15:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:31:53]execute_script... [15:31:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:31:53]POST & json_proto [15:31:53]process_json_proto [15:31:53]json parsed OK: [15:31:53]protocol is kg_v1.0 [15:31:53]action value=close_receipt [15:31:53]process_action close_receipt [15:31:53]cmd_close_receipt [15:31:53]MH_GetDate [15:31:53]Write to MH i2c: F0 00 00 C2 13 C4 [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: F0 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: F0 09 00 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: F0 09 00 C2 13 00 6A 65 C3 66 5F 7F 2B 66 34 [15:31:53]GetLastDocTimeStamp 1724081068 [15:31:53]current date 1724081514 [15:31:53]FM_GetShiftState [15:31:53]SAM_PROTO_GetShiftState [15:31:53]wFMCommunicate request_size=4 [15:31:53]MH_SAM_APDU [15:31:53]CAPDU: 80 13 01 00 [15:31:53]Write to MH i2c: E2 08 00 C3 13 80 13 01 00 00 00 00 00 53 [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:53]Read from MH i2c: E2 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: E2 0E 00 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: E2 0E 00 C3 13 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0A [15:31:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:31:53]wFMCommunicate OK [15:31:53]SAM_PROTO_GetShiftState done [15:31:53]FM_GetShiftState done [15:31:53]opened in 1724027888 [15:31:53]opened+sec_in_day 1724114288 [15:31:53]quantity*price = 50036 [15:31:53]sum+1 = 50037 [15:31:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 209 19.08.2024 15:31 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139374 ФПД: 15218292781829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153154&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139374&fm=15218292781829&tin=02508201610067®Number=0000000000092569&sum=50000 [15:31:54]StoreToDocumentArchive [15:31:54]shift 452 fd 139374 [15:31:54]save to /storage/0452/doc_00139374 [15:31:54]save last doc name /storage/0452/doc_00139374 to /storage/kkm_last_doc_name [15:31:54]save OK [15:31:54]Clear old archive folders... [15:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:54]tlvbuf is 012640D0 [15:31:54]SAM_PROTO_ClearQueue [15:31:54]wFMCommunicate request_size=4 [15:31:54]MH_SAM_APDU [15:31:54]CAPDU: 80 09 00 00 [15:31:54]Write to MH i2c: E2 08 00 D0 13 80 09 00 00 00 00 00 00 55 [15:31:54]Write i2c OK [15:31:54]MH_I2C_Read... [15:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:54]Read from MH i2c: E2 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 D0 13 00 90 00 57 [15:31:54]RAPDU: 90 00 [15:31:54]wFMCommunicate OK [15:31:54]SAM_PROTO_ClearQueue done [15:31:54]KKMCreateOFDPacket [15:31:54]OFDProtocolAddRootSTLVToBuf [15:31:54]FM_MakeSignedData [15:31:54]FM_MakeSignedData [15:31:54]SAM_PROTO_SignData [15:31:54]wFMCommunicate request_size=4 [15:31:54]MH_SAM_APDU [15:31:54]CAPDU: 80 0D 01 02 [15:31:54]Write to MH i2c: E2 08 00 D1 13 80 0D 01 02 00 00 00 00 5D [15:31:54]Write i2c OK [15:31:54]MH_I2C_Read... [15:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:54]Read from MH i2c: E2 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 D1 13 00 90 00 58 [15:31:54]RAPDU: 90 00 [15:31:54]wFMCommunicate OK [15:31:54]wFMCommunicate request_size=255 [15:31:54]MH_SAM_APDU [15:31:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 D1 00 00 00 F4 03 04 00 6A 65 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 20 02 00 35 04 06 00 0D [15:31:54]Write to MH i2c: E2 02 01 D2 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 D1 00 00 00 F4 03 04 00 6A 65 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 20 02 00 35 04 06 00 0D 00 00 11 [15:31:54]Write i2c OK [15:31:54]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 03 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 03 00 D2 13 00 90 00 59 [15:31:55]RAPDU: 90 00 [15:31:55]wFMCommunicate OK [15:31:55]wFMCommunicate request_size=10 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 0D 02 02 05 D7 48 EF 73 05 [15:31:55]Write to MH i2c: E2 0D 00 D3 13 80 0D 02 02 05 00 D7 48 EF 73 05 00 00 F0 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 03 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 03 00 D3 13 00 90 00 5A [15:31:55]RAPDU: 90 00 [15:31:55]wFMCommunicate OK [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 0D 03 02 [15:31:55]Write to MH i2c: E2 08 00 D4 13 80 0D 03 02 00 00 00 00 62 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0B 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0B 00 D4 13 00 EE 04 6E 94 BE DB 83 01 90 00 74 [15:31:55]RAPDU: EE 04 6E 94 BE DB 83 01 90 00 [15:31:55]wFMCommunicate OK [15:31:55]SAM_PROTO_SignData done [15:31:55]FM_MakeSignedData done [15:31:55]CreateOFDProtocolMessage [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 11 00 00 [15:31:55]Write to MH i2c: E2 08 00 D5 13 80 11 00 00 00 00 00 00 62 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 17 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 17 00 D5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B9 [15:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:31:55]wFMCommunicate OK [15:31:55]CreateOFDProtocolMessage done [15:31:55]OFDSenderStorePacket 139374 [15:31:55]StoreOFDPacket docnum=139374 [15:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B D5 07 01 DE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 D1 00 00 00 F4 03 04 00 6A 65 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 20 02 00 35 04 06 00 0D D7 48 EF 73 05 EE 04 6E 94 BE DB 83 01 [15:31:55]CheckFolder [15:31:55]dirname=/storage/ofd_packets [15:31:55]CheckFolder done [15:31:55]ProducePacketName [15:31:55]name=ofd_packets/00139374 [15:31:55]NVStorageSaveData ofd_packets/00139374 [15:31:55]File name is /storage/ofd_packets/00139374 [15:31:55]Write 301 bytes [15:31:55]NVStorageSaveData done [15:31:55]OFDSenderStorePacket done [15:31:55]KKMCreateOFDPacket done [15:31:55]NVStorageSaveData kkm_last_timestamp [15:31:55]File name is /storage/kkm_last_timestamp [15:31:55]Write 4 bytes [15:31:55]NVStorageSaveData done [15:31:55]ExternCall_PrintAddStr [15:31:55]wPrintStart [15:31:55]Write to MH i2c: 01 00 00 D6 13 E9 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 07 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 07 00 D6 13 00 00 00 00 00 FF 0F FE [15:31:55]RasterBufferAndPrint [15:31:55]line Счет N : (1)593216 [15:31:55]line ИНН: 02508201610067 [15:31:55]line Контрольно-Кассовый Чек [15:31:55]line ПРОДАЖА [15:31:55]line ТРК (МРК, ГНК) : 52 [15:31:55]line Товар: 2710124130 [15:31:55]line Аи-92-К-5 [15:31:55]line 7.380 * 67.80 [15:31:55]line = 500.36 [15:31:55]line НДС 12% НСП 1% [15:31:55]line > о реализуемом товаре [15:31:55]line ОКРУГЛЕНИЕ: -0.36 [15:31:55]line ИТОГО: 500.00 [15:31:55]line Внесено: 500.00 [15:31:55]line СДАЧА: 0.00 [15:31:55]line НСП 1% : 4.43 [15:31:55]line НДС 12% : 53.14 [15:31:55]line Наличными: 500.00 [15:31:55]line Безнал.: 0.00 [15:31:55]line Место: АЗС № 136 "Партнер Нефть" [15:31:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:31:55]line СНО: Общий режим [15:31:55]line Чек 209 19.08.2024 15:31 [15:31:55]line Смена: 452 ФФД: 1.0 [15:31:55]line ЗНМ: 0300000067 [15:31:55]line РНМ: 0000000000092569 [15:31:55]line Версия ККМ: 001 [15:31:55]line ФМ: 0000000000871776 [15:31:55]line ФД: 139374 [15:31:55]line ФПД: 15218292781829 [15:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153154&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139374&fm=15218292781829&tin=02508201610067®Number=0000000000092569&sum=50000 [15:31:55]OFD Sender: Processing packet 139374 [packets to send 137, broken 136] [15:31:55]ProducePacketName [15:31:55]name=ofd_packets/00139374 [15:31:55]OFD Sender: To server: pG, [15:31:55]CommunicateWithHost lk.salyk.kg:30040 [15:31:55]ConnectInit lk.salyk.kg [15:31:55]written 0, free lines is 4095 [15:31:55]Connected sock=10 [15:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B D5 07 01 DE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 D1 00 00 00 F4 03 04 00 6A 65 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 20 02 00 35 04 06 00 0D D7 48 EF 73 05 EE 04 6E 94 BE DB 83 01 [15:31:56]Write to MH i2c: 01 00 00 01 14 15 [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: 01 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: 01 07 00 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: 01 07 00 01 14 00 00 00 00 00 CF 0C F7 [15:31:56]RasterBufferAndPrint [15:31:56]line [15:31:56]line [15:31:56]line [15:31:56]line [15:31:56]line [15:31:56]written 0, free lines is 3286 [15:31:56]MH_Cut [15:31:56]Write to MH i2c: D1 01 00 08 14 01 EE [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: D1 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: D1 01 00 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: D1 01 00 08 14 00 ED [15:31:56]Write to MH i2c: 01 00 00 09 14 1D [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31: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 37 36 4F 00 00 00 58 FF 47 00 2C 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 37 36 10 04 04 00 6E 20 02 00 F4 03 04 00 00 0C C3 66 B6 04 01 00 00 E9 61 4D 5B 91 52 47 D7 [15:31:56]CommunicateWithHost err = 0 [15:31:56]CheckOFDResponse [15:31:56]1017 (14) - 77093643461234 [15:31:56]1041 (16) - 0000000000871776 [15:31:56]1040 (4) - 139374 [15:31:56]1012 (4) - 19.08.2024 09:10 [15:31:56]1206 (1) - 0 [15:31:56]OFD Sender: Remove packet 139374 [15:31:56]ProducePacketName [15:31:56]name=ofd_packets/00139374 [15:31:56]NVStorageDeleteData [15:31:56]OFD Sender: No OFD packet to send [15:31:56]*** Cut start [15:31:56]*** Partial cut [15:31:56]*** CUTSNS_PIN = 1 [15:31:56]*** CUTSNS_PIN = 0 [15:31:57]*** Brake cut motor [15:31:57]Read from MH i2c: 01 [15:31:57]MH_I2C_Read... [15:31:57]*** Stop cut motor [15:31:57]*** Cut end [15:31:57]Read from MH i2c: 01 07 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: 01 07 00 09 14 00 00 00 00 00 FF 0F 32 [15:31:57]process_action close_receipt done [15:31:57]requested_data is exist [15:31:57]produce_requested_data [15:31:57]requested_item fm.sn is exist - process it [15:31:57]wFMCommunicate request_size=4 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 11 00 00 [15:31:57]Write to MH i2c: E2 08 00 0A 14 80 11 00 00 00 00 00 00 98 [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:57]Read from MH i2c: E2 17 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 17 00 0A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EF [15:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:31:57]wFMCommunicate OK [15:31:57]requested_item fd.num is exist - process it [15:31:57]SAM_PROTO_GetFieldsCounters [15:31:57]wFMCommunicate request_size=4 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 13 00 00 [15:31:57]Write to MH i2c: E2 08 00 0B 14 80 13 00 00 00 00 00 00 9B [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 62 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 62 00 0B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [15:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:57]wFMCommunicate OK [15:31:57]SAM_PROTO_GetFieldsCounters done [15:31:57]requested_item shift.num is exist - process it [15:31:57]requested_item shift.opened is exist - process it [15:31:57]req_shift_opened [15:31:57]FM_GetShiftState [15:31:57]SAM_PROTO_GetShiftState [15:31:57]wFMCommunicate request_size=4 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 13 01 00 [15:31:57]Write to MH i2c: E2 08 00 0C 14 80 13 01 00 00 00 00 00 9D [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 0E 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 0E 00 0C 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 54 [15:31:57]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:31:57]wFMCommunicate OK [15:31:57]SAM_PROTO_GetShiftState done [15:31:57]FM_GetShiftState done [15:31:57]req_shift_opened done [15:31:57]requested_item shift.open_date is exist - process it [15:31:57]req_shift_open_date [15:31:57]req_shift_open_date done [15:31:57]produce_requested_data done [15:31:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139374,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:31:57]process_action_free close_receipt [15:31:57]json_value_free [15:31:57]json_value_free done [15:31:57]process_json_proto returns [15:31:57]Send response to host [15:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139374,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:31:57]free response buf [15:31:57]execute_script done [15:31:57]execute_script returns [15:31:57]free content buf [15:31:57]Sock 8.Close socket [15:31:57]Sock 8.Thread stoped [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:15]accept exits with 9 [15:37:15]New connection [15:37:15]New thread 3066817892 created [15:37:15]Thread 3066674532 joined [15:37:15]Waiting for new connection... [15:37:15] Sock 9.Parse request [15:37:15]Sock 9.Check first char [15:37:15]Sock 9.First char is OK [15:37:15]request: POST /json_proto HTTP/1.0 [15:37:15]Method: POST [15:37:15]URL: /json_proto [15:37:15]Method is POST - this is cgi request [15:37:15]url: /json_proto [15:37:15]query_string will be loaded in cgi processing [15:37:15]execute_cgi json_proto POST (null) [15:37:15]execute_cgi path=json_proto method=POST [15:37:15]POST find Content-Length [15:37:15]Host: 172.17.45.67:8080 [15:37:15]Content-Length: 677 [15:37:15]Content-Type: application/json [15:37:15] [15:37:15]POST finish read [15:37:15]Found Content-Length = 677 [15:37:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:37:15]execute_script... [15:37: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)593217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:37:15]POST & json_proto [15:37:15]process_json_proto [15:37:15]json parsed OK: [15:37:15]protocol is kg_v1.0 [15:37:15]action value=close_receipt [15:37:15]process_action close_receipt [15:37:15]cmd_close_receipt [15:37:15]MH_GetDate [15:37:15]Write to MH i2c: F0 00 00 0D 14 10 [15:37:15]Write i2c OK [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: F0 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: F0 09 00 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: F0 09 00 0D 14 00 AC 66 C3 66 5F 7F 2B 66 C3 [15:37:15]GetLastDocTimeStamp 1724081514 [15:37:15]current date 1724081836 [15:37:15]FM_GetShiftState [15:37:15]SAM_PROTO_GetShiftState [15:37:15]wFMCommunicate request_size=4 [15:37:15]MH_SAM_APDU [15:37:15]CAPDU: 80 13 01 00 [15:37:15]Write to MH i2c: E2 08 00 0E 14 80 13 01 00 00 00 00 00 9F [15:37:15]Write i2c OK [15:37:15]MH_I2C_Read... [15:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:15]Read from MH i2c: E2 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 0E 00 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 0E 00 0E 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 56 [15:37:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:37:15]wFMCommunicate OK [15:37:15]SAM_PROTO_GetShiftState done [15:37:15]FM_GetShiftState done [15:37:15]opened in 1724027888 [15:37:15]opened+sec_in_day 1724114288 [15:37:15]quantity*price = 40002 [15:37:15]sum+1 = 40003 [15:37:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 210 19.08.2024 15:37 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139375 ФПД: 229640839550754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153716&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139375&fm=229640839550754&tin=02508201610067®Number=0000000000092569&sum=40000 [15:37:16]StoreToDocumentArchive [15:37:16]shift 452 fd 139375 [15:37:16]save to /storage/0452/doc_00139375 [15:37:16]save last doc name /storage/0452/doc_00139375 to /storage/kkm_last_doc_name [15:37:16]save OK [15:37:16]Clear old archive folders... [15:37:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:16]tlvbuf is 01239D60 [15:37:16]SAM_PROTO_ClearQueue [15:37:16]wFMCommunicate request_size=4 [15:37:16]MH_SAM_APDU [15:37:16]CAPDU: 80 09 00 00 [15:37:16]Write to MH i2c: E2 08 00 1B 14 80 09 00 00 00 00 00 00 A1 [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:16]Read from MH i2c: E2 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 03 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 03 00 1B 14 00 90 00 A3 [15:37:16]RAPDU: 90 00 [15:37:16]wFMCommunicate OK [15:37:16]SAM_PROTO_ClearQueue done [15:37:16]KKMCreateOFDPacket [15:37:16]OFDProtocolAddRootSTLVToBuf [15:37:16]FM_MakeSignedData [15:37:16]FM_MakeSignedData [15:37:16]SAM_PROTO_SignData [15:37:16]wFMCommunicate request_size=4 [15:37:16]MH_SAM_APDU [15:37:16]CAPDU: 80 0D 01 02 [15:37:16]Write to MH i2c: E2 08 00 1C 14 80 0D 01 02 00 00 00 00 A9 [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:16]Read from MH i2c: E2 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 03 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [15:37:16]RAPDU: 90 00 [15:37:16]wFMCommunicate OK [15:37:16]wFMCommunicate request_size=255 [15:37:16]MH_SAM_APDU [15:37: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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 AC 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 20 02 00 35 04 06 00 D0 [15:37:16]Write to MH i2c: E2 02 01 1D 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 AC 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 20 02 00 35 04 06 00 D0 00 00 4A [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:16]Read from MH i2c: E2 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 03 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [15:37:16]RAPDU: 90 00 [15:37:16]wFMCommunicate OK [15:37:16]wFMCommunicate request_size=10 [15:37:16]MH_SAM_APDU [15:37:16]CAPDU: 80 0D 02 02 05 DB 6C AA D7 22 [15:37:16]Write to MH i2c: E2 0D 00 1E 14 80 0D 02 02 05 00 DB 6C AA D7 22 00 00 A0 [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:16]Read from MH i2c: E2 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 03 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [15:37:16]RAPDU: 90 00 [15:37:16]wFMCommunicate OK [15:37:16]wFMCommunicate request_size=4 [15:37:16]MH_SAM_APDU [15:37:16]CAPDU: 80 0D 03 02 [15:37:16]Write to MH i2c: E2 08 00 1F 14 80 0D 03 02 00 00 00 00 AE [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:16]Read from MH i2c: E2 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 0B 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: E2 0B 00 1F 14 00 20 1B FE 48 0F 83 7F BF 90 00 00 [15:37:16]RAPDU: 20 1B FE 48 0F 83 7F BF 90 00 [15:37:16]wFMCommunicate OK [15:37:16]SAM_PROTO_SignData done [15:37:16]FM_MakeSignedData done [15:37:16]CreateOFDProtocolMessage [15:37:16]wFMCommunicate request_size=4 [15:37:16]MH_SAM_APDU [15:37:16]CAPDU: 80 11 00 00 [15:37:16]Write to MH i2c: E2 08 00 20 14 80 11 00 00 00 00 00 00 AE [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:17]Read from MH i2c: E2 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: E2 17 00 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: E2 17 00 20 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 05 [15:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:37:17]wFMCommunicate OK [15:37:17]CreateOFDProtocolMessage done [15:37:17]OFDSenderStorePacket 139375 [15:37:17]StoreOFDPacket docnum=139375 [15:37:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F 93 07 01 50 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 AC 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 20 02 00 35 04 06 00 D0 DB 6C AA D7 22 20 1B FE 48 0F 83 7F BF [15:37:17]CheckFolder [15:37:17]dirname=/storage/ofd_packets [15:37:17]CheckFolder done [15:37:17]ProducePacketName [15:37:17]name=ofd_packets/00139375 [15:37:17]NVStorageSaveData ofd_packets/00139375 [15:37:17]File name is /storage/ofd_packets/00139375 [15:37:17]Write 301 bytes [15:37:17]NVStorageSaveData done [15:37:17]OFDSenderStorePacket done [15:37:17]KKMCreateOFDPacket done [15:37:17]NVStorageSaveData kkm_last_timestamp [15:37:17]File name is /storage/kkm_last_timestamp [15:37:17]Write 4 bytes [15:37:17]NVStorageSaveData done [15:37:17]ExternCall_PrintAddStr [15:37:17]wPrintStart [15:37:17]Write to MH i2c: 01 00 00 21 14 35 [15:37:17]Write i2c OK [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: 01 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: 01 07 00 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: 01 07 00 21 14 00 00 00 00 00 FF 0F 4A [15:37:17]RasterBufferAndPrint [15:37:17]line Счет N : (1)593217 [15:37:17]line ИНН: 02508201610067 [15:37:17]line Контрольно-Кассовый Чек [15:37:17]line ПРОДАЖА [15:37:17]line ТРК (МРК, ГНК) : 52 [15:37:17]line Товар: 2710124130 [15:37:17]line Аи-92-К-5 [15:37:17]line 5.900 * 67.80 [15:37:17]line = 400.02 [15:37:17]line НДС 12% НСП 1% [15:37:17]line > о реализуемом товаре [15:37:17]line ОКРУГЛЕНИЕ: -0.02 [15:37:17]line ИТОГО: 400.00 [15:37:17]line Внесено: 400.00 [15:37:17]line СДАЧА: 0.00 [15:37:17]line НСП 1% : 3.54 [15:37:17]line НДС 12% : 42.48 [15:37:17]line Наличными: 400.00 [15:37:17]line Безнал.: 0.00 [15:37:17]line Место: АЗС № 136 "Партнер Нефть" [15:37:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:37:17]line СНО: Общий режим [15:37:17]line Чек 210 19.08.2024 15:37 [15:37:17]line Смена: 452 ФФД: 1.0 [15:37:17]line ЗНМ: 0300000067 [15:37:17]line РНМ: 0000000000092569 [15:37:17]line Версия ККМ: 001 [15:37:17]line ФМ: 0000000000871776 [15:37:17]line ФД: 139375 [15:37:17]line ФПД: 229640839550754 [15:37:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153716&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139375&fm=229640839550754&tin=02508201610067®Number=0000000000092569&sum=40000 [15:37:17]written 0, free lines is 4095 [15:37:17]OFD Sender: Processing packet 139375 [packets to send 137, broken 136] [15:37:17]ProducePacketName [15:37:17]name=ofd_packets/00139375 [15:37:17]OFD Sender: To server: pG, [15:37:17]CommunicateWithHost lk.salyk.kg:30040 [15:37:17]ConnectInit lk.salyk.kg [15:37:17]Connected sock=10 [15:37: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 37 36 0F 01 00 00 2F 93 07 01 50 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 AC 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 20 02 00 35 04 06 00 D0 DB 6C AA D7 22 20 1B FE 48 0F 83 7F BF [15:37: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 37 36 4F 00 00 00 C5 31 47 00 2F 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 37 36 10 04 04 00 6F 20 02 00 F4 03 04 00 42 0D C3 66 B6 04 01 00 00 91 6F 13 7F DB 08 34 22 [15:37:17]CommunicateWithHost err = 0 [15:37:17]CheckOFDResponse [15:37:17]1017 (14) - 77093643461234 [15:37:17]1041 (16) - 0000000000871776 [15:37:17]1040 (4) - 139375 [15:37:17]1012 (4) - 19.08.2024 09:15 [15:37:17]1206 (1) - 0 [15:37:17]OFD Sender: Remove packet 139375 [15:37:17]ProducePacketName [15:37:17]name=ofd_packets/00139375 [15:37:17]NVStorageDeleteData [15:37:17]Write to MH i2c: 01 00 00 4C 14 60 [15:37:17]Write i2c OK [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: 01 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: 01 07 00 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: 01 07 00 4C 14 00 00 00 00 00 D4 0C 47 [15:37:17]RasterBufferAndPrint [15:37:17]line [15:37:17]line [15:37:17]line [15:37:17]line [15:37:17]line [15:37:17]written 0, free lines is 3292 [15:37:17]MH_Cut [15:37:17]Write to MH i2c: D1 01 00 53 14 01 39 [15:37:17]Write i2c OK [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: D1 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: D1 01 00 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: D1 01 00 53 14 00 38 [15:37:17]Write to MH i2c: 01 00 00 54 14 68 [15:37:17]Write i2c OK [15:37:17]MH_I2C_Read... [15:37:18]OFD Sender: No OFD packet to send [15:37:18]*** Cut start [15:37:18]*** Partial cut [15:37:18]*** CUTSNS_PIN = 1 [15:37:18]*** CUTSNS_PIN = 0 [15:37:18]*** Brake cut motor [15:37:19]Read from MH i2c: 01 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: 01 07 00 [15:37:19]MH_I2C_Read... [15:37:19]*** Stop cut motor [15:37:19]*** Cut end [15:37:19]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 FF 0F 7D [15:37:19]process_action close_receipt done [15:37:19]requested_data is exist [15:37:19]produce_requested_data [15:37:19]requested_item fm.sn is exist - process it [15:37:19]wFMCommunicate request_size=4 [15:37:19]MH_SAM_APDU [15:37:19]CAPDU: 80 11 00 00 [15:37:19]Write to MH i2c: E2 08 00 55 14 80 11 00 00 00 00 00 00 E3 [15:37:19]Write i2c OK [15:37:19]MH_I2C_Read... [15:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:19]Read from MH i2c: E2 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: E2 17 00 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: E2 17 00 55 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3A [15:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:37:19]wFMCommunicate OK [15:37:19]requested_item fd.num is exist - process it [15:37:19]SAM_PROTO_GetFieldsCounters [15:37:19]wFMCommunicate request_size=4 [15:37:19]MH_SAM_APDU [15:37:19]CAPDU: 80 13 00 00 [15:37:19]Write to MH i2c: E2 08 00 56 14 80 13 00 00 00 00 00 00 E6 [15:37:19]Write i2c OK [15:37:19]MH_I2C_Read... [15:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:19]Read from MH i2c: E2 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: E2 62 00 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: E2 62 00 56 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [15:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:19]wFMCommunicate OK [15:37:19]SAM_PROTO_GetFieldsCounters done [15:37:19]requested_item shift.num is exist - process it [15:37:19]requested_item shift.opened is exist - process it [15:37:19]req_shift_opened [15:37:19]FM_GetShiftState [15:37:19]SAM_PROTO_GetShiftState [15:37:19]wFMCommunicate request_size=4 [15:37:19]MH_SAM_APDU [15:37:19]CAPDU: 80 13 01 00 [15:37:19]Write to MH i2c: E2 08 00 57 14 80 13 01 00 00 00 00 00 E8 [15:37:19]Write i2c OK [15:37:19]MH_I2C_Read... [15:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:19]Read from MH i2c: E2 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: E2 0E 00 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: E2 0E 00 57 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9F [15:37:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:37:19]wFMCommunicate OK [15:37:19]SAM_PROTO_GetShiftState done [15:37:19]FM_GetShiftState done [15:37:19]req_shift_opened done [15:37:19]requested_item shift.open_date is exist - process it [15:37:19]req_shift_open_date [15:37:19]req_shift_open_date done [15:37:19]produce_requested_data done [15:37:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139375,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:37:19]process_action_free close_receipt [15:37:19]json_value_free [15:37:19]json_value_free done [15:37:19]process_json_proto returns [15:37:19]Send response to host [15:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139375,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:37:19]free response buf [15:37:19]execute_script done [15:37:19]execute_script returns [15:37:19]free content buf [15:37:19]Sock 9.Close socket [15:37:19]Sock 9.Thread stoped [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:41]accept exits with 8 [15:37:41]New connection [15:37:41]New thread 3066674532 created [15:37:41]Thread 3066817892 joined [15:37:41]Waiting for new connection... [15:37:41] Sock 8.Parse request [15:37:41]Sock 8.Check first char [15:37:41]Sock 8.First char is OK [15:37:41]request: POST /json_proto HTTP/1.0 [15:37:41]Method: POST [15:37:41]URL: /json_proto [15:37:41]Method is POST - this is cgi request [15:37:41]url: /json_proto [15:37:41]query_string will be loaded in cgi processing [15:37:41]execute_cgi json_proto POST (null) [15:37:41]execute_cgi path=json_proto method=POST [15:37:41]POST find Content-Length [15:37:41]Host: 172.17.45.67:8080 [15:37:41]Content-Length: 682 [15:37:41]Content-Type: application/json [15:37:41] [15:37:41]POST finish read [15:37:41]Found Content-Length = 682 [15:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:37:41]execute_script... [15:37: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)593218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:37:41]POST & json_proto [15:37:41]process_json_proto [15:37:41]json parsed OK: [15:37:41]protocol is kg_v1.0 [15:37:41]action value=close_receipt [15:37:41]process_action close_receipt [15:37:41]cmd_close_receipt [15:37:41]MH_GetDate [15:37:41]Write to MH i2c: F0 00 00 58 14 5B [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: F0 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: F0 09 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: F0 09 00 58 14 00 C6 66 C3 66 5F 7F 2B 66 28 [15:37:41]GetLastDocTimeStamp 1724081836 [15:37:41]current date 1724081862 [15:37:41]FM_GetShiftState [15:37:41]SAM_PROTO_GetShiftState [15:37:41]wFMCommunicate request_size=4 [15:37:41]MH_SAM_APDU [15:37:41]CAPDU: 80 13 01 00 [15:37:41]Write to MH i2c: E2 08 00 59 14 80 13 01 00 00 00 00 00 EA [15:37:41]Write i2c OK [15:37:41]MH_I2C_Read... [15:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:41]Read from MH i2c: E2 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 0E 00 [15:37:41]MH_I2C_Read... [15:37:41]Read from MH i2c: E2 0E 00 59 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A1 [15:37:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:37:41]wFMCommunicate OK [15:37:41]SAM_PROTO_GetShiftState done [15:37:41]FM_GetShiftState done [15:37:41]opened in 1724027888 [15:37:41]opened+sec_in_day 1724114288 [15:37:41]quantity*price = 100005 [15:37:41]sum+1 = 100006 [15:37:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 211 19.08.2024 15:37 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139376 ФПД: 143505778478089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153742&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139376&fm=143505778478089&tin=02508201610067®Number=0000000000092569&sum=100000 [15:37:42]StoreToDocumentArchive [15:37:42]shift 452 fd 139376 [15:37:42]save to /storage/0452/doc_00139376 [15:37:42]save last doc name /storage/0452/doc_00139376 to /storage/kkm_last_doc_name [15:37:42]save OK [15:37:42]Clear old archive folders... [15:37:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:42]tlvbuf is 01263E10 [15:37:42]SAM_PROTO_ClearQueue [15:37:42]wFMCommunicate request_size=4 [15:37:42]MH_SAM_APDU [15:37:42]CAPDU: 80 09 00 00 [15:37:42]Write to MH i2c: E2 08 00 66 14 80 09 00 00 00 00 00 00 EC [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:42]Read from MH i2c: E2 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 03 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [15:37:42]RAPDU: 90 00 [15:37:42]wFMCommunicate OK [15:37:42]SAM_PROTO_ClearQueue done [15:37:42]KKMCreateOFDPacket [15:37:42]OFDProtocolAddRootSTLVToBuf [15:37:42]FM_MakeSignedData [15:37:42]FM_MakeSignedData [15:37:42]SAM_PROTO_SignData [15:37:42]wFMCommunicate request_size=4 [15:37:42]MH_SAM_APDU [15:37:42]CAPDU: 80 0D 01 02 [15:37:42]Write to MH i2c: E2 08 00 67 14 80 0D 01 02 00 00 00 00 F4 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:42]Read from MH i2c: E2 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 03 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [15:37:42]RAPDU: 90 00 [15:37:42]wFMCommunicate OK [15:37:42]wFMCommunicate request_size=255 [15:37:42]MH_SAM_APDU [15:37: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 20 02 00 35 04 06 00 82 [15:37:42]Write to MH i2c: E2 02 01 68 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 20 02 00 35 04 06 00 82 00 00 0D [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:42]Read from MH i2c: E2 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 03 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 03 00 68 14 00 90 00 F0 [15:37:42]RAPDU: 90 00 [15:37:42]wFMCommunicate OK [15:37:42]wFMCommunicate request_size=10 [15:37:42]MH_SAM_APDU [15:37:42]CAPDU: 80 0D 02 02 05 84 8A F3 0C 09 [15:37:42]Write to MH i2c: E2 0D 00 69 14 80 0D 02 02 05 00 84 8A F3 0C 09 00 00 17 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:42]Read from MH i2c: E2 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 03 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 03 00 69 14 00 90 00 F1 [15:37:42]RAPDU: 90 00 [15:37:42]wFMCommunicate OK [15:37:42]wFMCommunicate request_size=4 [15:37:42]MH_SAM_APDU [15:37:42]CAPDU: 80 0D 03 02 [15:37:42]Write to MH i2c: E2 08 00 6A 14 80 0D 03 02 00 00 00 00 F9 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:42]Read from MH i2c: E2 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 0B 00 [15:37:42]MH_I2C_Read... [15:37:42]Read from MH i2c: E2 0B 00 6A 14 00 62 A2 EB 2C 3E 0E 69 85 90 00 4F [15:37:42]RAPDU: 62 A2 EB 2C 3E 0E 69 85 90 00 [15:37:42]wFMCommunicate OK [15:37:42]SAM_PROTO_SignData done [15:37:42]FM_MakeSignedData done [15:37:42]CreateOFDProtocolMessage [15:37:42]wFMCommunicate request_size=4 [15:37:42]MH_SAM_APDU [15:37:42]CAPDU: 80 11 00 00 [15:37:42]Write to MH i2c: E2 08 00 6B 14 80 11 00 00 00 00 00 00 F9 [15:37:42]Write i2c OK [15:37:42]MH_I2C_Read... [15:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:43]Read from MH i2c: E2 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 17 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: E2 17 00 6B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 50 [15:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:37:43]wFMCommunicate OK [15:37:43]CreateOFDProtocolMessage done [15:37:43]OFDSenderStorePacket 139376 [15:37:43]StoreOFDPacket docnum=139376 [15:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F6 15 07 01 20 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 20 02 00 35 04 06 00 82 84 8A F3 0C 09 62 A2 EB 2C 3E 0E 69 85 [15:37:43]CheckFolder [15:37:43]dirname=/storage/ofd_packets [15:37:43]CheckFolder done [15:37:43]ProducePacketName [15:37:43]name=ofd_packets/00139376 [15:37:43]NVStorageSaveData ofd_packets/00139376 [15:37:43]File name is /storage/ofd_packets/00139376 [15:37:43]Write 301 bytes [15:37:43]NVStorageSaveData done [15:37:43]OFDSenderStorePacket done [15:37:43]KKMCreateOFDPacket done [15:37:43]NVStorageSaveData kkm_last_timestamp [15:37:43]File name is /storage/kkm_last_timestamp [15:37:43]Write 4 bytes [15:37:43]NVStorageSaveData done [15:37:43]ExternCall_PrintAddStr [15:37:43]wPrintStart [15:37:43]Write to MH i2c: 01 00 00 6C 14 80 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: 01 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: 01 07 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: 01 07 00 6C 14 00 00 00 00 00 FF 0F 95 [15:37:43]RasterBufferAndPrint [15:37:43]line Счет N : (1)593218 [15:37:43]line ИНН: 02508201610067 [15:37:43]line Контрольно-Кассовый Чек [15:37:43]line ПРОДАЖА [15:37:43]line ТРК (МРК, ГНК) : 32 [15:37:43]line Товар: 2710124130 [15:37:43]line Аи-92-К-5 [15:37:43]line 14.750 * 67.80 [15:37:43]line = 1000.05 [15:37:43]line НДС 12% НСП 1% [15:37:43]line > о реализуемом товаре [15:37:43]line ОКРУГЛЕНИЕ: -0.05 [15:37:43]line ИТОГО: 1000.00 [15:37:43]line Внесено: 1000.00 [15:37:43]line СДАЧА: 0.00 [15:37:43]line НСП 1% : 8.85 [15:37:43]line НДС 12% : 106.20 [15:37:43]line Наличными: 1000.00 [15:37:43]line Безнал.: 0.00 [15:37:43]line Место: АЗС № 136 "Партнер Нефть" [15:37:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:37:43]line СНО: Общий режим [15:37:43]line Чек 211 19.08.2024 15:37 [15:37:43]line Смена: 452 ФФД: 1.0 [15:37:43]line ЗНМ: 0300000067 [15:37:43]line РНМ: 0000000000092569 [15:37:43]line Версия ККМ: 001 [15:37:43]line ФМ: 0000000000871776 [15:37:43]line ФД: 139376 [15:37:43]line ФПД: 143505778478089 [15:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153742&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139376&fm=143505778478089&tin=02508201610067®Number=0000000000092569&sum=100000 [15:37:43]written 0, free lines is 4095 [15:37:43]OFD Sender: Processing packet 139376 [packets to send 137, broken 136] [15:37:43]ProducePacketName [15:37:43]name=ofd_packets/00139376 [15:37:43]OFD Sender: To server: pG, [15:37:43]CommunicateWithHost lk.salyk.kg:30040 [15:37:43]ConnectInit lk.salyk.kg [15:37:43]Connected sock=10 [15:37: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 37 36 0F 01 00 00 F6 15 07 01 20 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 C6 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 20 02 00 35 04 06 00 82 84 8A F3 0C 09 62 A2 EB 2C 3E 0E 69 85 [15:37:43]Write to MH i2c: 01 00 00 97 14 AB [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: 01 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: 01 07 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: 01 07 00 97 14 00 00 00 00 00 CC 0C 8A [15:37:43]RasterBufferAndPrint [15:37:43]line [15:37:43]line [15:37:43]line [15:37:43]line [15:37:43]line [15:37:43]written 0, free lines is 3282 [15:37:43]MH_Cut [15:37:43]Write to MH i2c: D1 01 00 9E 14 01 84 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: D1 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: D1 01 00 [15:37:43]MH_I2C_Read... [15:37:43]Read from MH i2c: D1 01 00 9E 14 00 83 [15:37:43]Write to MH i2c: 01 00 00 9F 14 B3 [15:37:43]Write i2c OK [15:37:43]MH_I2C_Read... [15:37: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 37 36 4F 00 00 00 53 70 47 00 1F 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 37 36 10 04 04 00 70 20 02 00 F4 03 04 00 5C 0D C3 66 B6 04 01 00 00 34 A9 B6 FB 2E 6E EC FC [15:37:43]CommunicateWithHost err = 0 [15:37:43]CheckOFDResponse [15:37:43]1017 (14) - 77093643461234 [15:37:43]1041 (16) - 0000000000871776 [15:37:43]1040 (4) - 139376 [15:37:43]1012 (4) - 19.08.2024 09:16 [15:37:43]1206 (1) - 0 [15:37:43]OFD Sender: Remove packet 139376 [15:37:43]ProducePacketName [15:37:43]name=ofd_packets/00139376 [15:37:43]NVStorageDeleteData [15:37:44]OFD Sender: No OFD packet to send [15:37:44]*** Cut start [15:37:44]*** Partial cut [15:37:44]*** CUTSNS_PIN = 1 [15:37:44]*** CUTSNS_PIN = 0 [15:37:44]*** Brake cut motor [15:37:45]Read from MH i2c: 01 [15:37:45]MH_I2C_Read... [15:37:45]*** Stop cut motor [15:37:45]*** Cut end [15:37:45]Read from MH i2c: 01 07 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 FF 0F C8 [15:37:45]process_action close_receipt done [15:37:45]requested_data is exist [15:37:45]produce_requested_data [15:37:45]requested_item fm.sn is exist - process it [15:37:45]wFMCommunicate request_size=4 [15:37:45]MH_SAM_APDU [15:37:45]CAPDU: 80 11 00 00 [15:37:45]Write to MH i2c: E2 08 00 A0 14 80 11 00 00 00 00 00 00 2E [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:45]Read from MH i2c: E2 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 17 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 17 00 A0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [15:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:37:45]wFMCommunicate OK [15:37:45]requested_item fd.num is exist - process it [15:37:45]SAM_PROTO_GetFieldsCounters [15:37:45]wFMCommunicate request_size=4 [15:37:45]MH_SAM_APDU [15:37:45]CAPDU: 80 13 00 00 [15:37:45]Write to MH i2c: E2 08 00 A1 14 80 13 00 00 00 00 00 00 31 [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:45]Read from MH i2c: E2 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 62 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 62 00 A1 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [15:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:45]wFMCommunicate OK [15:37:45]SAM_PROTO_GetFieldsCounters done [15:37:45]requested_item shift.num is exist - process it [15:37:45]requested_item shift.opened is exist - process it [15:37:45]req_shift_opened [15:37:45]FM_GetShiftState [15:37:45]SAM_PROTO_GetShiftState [15:37:45]wFMCommunicate request_size=4 [15:37:45]MH_SAM_APDU [15:37:45]CAPDU: 80 13 01 00 [15:37:45]Write to MH i2c: E2 08 00 A2 14 80 13 01 00 00 00 00 00 33 [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:45]Read from MH i2c: E2 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 0E 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 0E 00 A2 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EA [15:37:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:37:45]wFMCommunicate OK [15:37:45]SAM_PROTO_GetShiftState done [15:37:45]FM_GetShiftState done [15:37:45]req_shift_opened done [15:37:45]requested_item shift.open_date is exist - process it [15:37:45]req_shift_open_date [15:37:45]req_shift_open_date done [15:37:45]produce_requested_data done [15:37:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139376,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:37:45]process_action_free close_receipt [15:37:45]json_value_free [15:37:45]json_value_free done [15:37:45]process_json_proto returns [15:37:45]Send response to host [15:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139376,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:37:45]free response buf [15:37:45]execute_script done [15:37:45]execute_script returns [15:37:45]free content buf [15:37:45]Sock 8.Close socket [15:37:45]Sock 8.Thread stoped [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:27]accept exits with 9 [15:38:27]New connection [15:38:27]New thread 3066817892 created [15:38:27]Thread 3066674532 joined [15:38:27]Waiting for new connection... [15:38:27] Sock 9.Parse request [15:38:27]Sock 9.Check first char [15:38:27]Sock 9.First char is OK [15:38:27]request: POST /json_proto HTTP/1.0 [15:38:27]Method: POST [15:38:27]URL: /json_proto [15:38:27]Method is POST - this is cgi request [15:38:27]url: /json_proto [15:38:27]query_string will be loaded in cgi processing [15:38:27]execute_cgi json_proto POST (null) [15:38:27]execute_cgi path=json_proto method=POST [15:38:27]POST find Content-Length [15:38:27]Host: 172.17.45.67:8080 [15:38:27]Content-Length: 677 [15:38:27]Content-Type: application/json [15:38:27] [15:38:27]POST finish read [15:38:27]Found Content-Length = 677 [15:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:38:27]execute_script... [15:38: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)593219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:38:27]POST & json_proto [15:38:27]process_json_proto [15:38:27]json parsed OK: [15:38:27]protocol is kg_v1.0 [15:38:27]action value=close_receipt [15:38:27]process_action close_receipt [15:38:27]cmd_close_receipt [15:38:27]MH_GetDate [15:38:27]Write to MH i2c: F0 00 00 A3 14 A6 [15:38:27]Write i2c OK [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: F0 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: F0 09 00 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: F0 09 00 A3 14 00 F5 66 C3 66 5F 7F 2B 66 A2 [15:38:27]GetLastDocTimeStamp 1724081862 [15:38:27]current date 1724081909 [15:38:27]FM_GetShiftState [15:38:27]SAM_PROTO_GetShiftState [15:38:27]wFMCommunicate request_size=4 [15:38:27]MH_SAM_APDU [15:38:27]CAPDU: 80 13 01 00 [15:38:27]Write to MH i2c: E2 08 00 A4 14 80 13 01 00 00 00 00 00 35 [15:38:27]Write i2c OK [15:38:27]MH_I2C_Read... [15:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:27]Read from MH i2c: E2 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 0E 00 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 0E 00 A4 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EC [15:38:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:38:27]wFMCommunicate OK [15:38:27]SAM_PROTO_GetShiftState done [15:38:27]FM_GetShiftState done [15:38:27]opened in 1724027888 [15:38:27]opened+sec_in_day 1724114288 [15:38:27]quantity*price = 50010 [15:38:27]sum+1 = 50012 [15:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 212 19.08.2024 15:38 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139377 ФПД: 158299139648263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153829&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139377&fm=158299139648263&tin=02508201610067®Number=0000000000092569&sum=50000 [15:38:29]StoreToDocumentArchive [15:38:29]shift 452 fd 139377 [15:38:29]save to /storage/0452/doc_00139377 [15:38:29]save last doc name /storage/0452/doc_00139377 to /storage/kkm_last_doc_name [15:38:29]save OK [15:38:29]Clear old archive folders... [15:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:29]tlvbuf is 012372D0 [15:38:29]SAM_PROTO_ClearQueue [15:38:29]wFMCommunicate request_size=4 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 09 00 00 [15:38:29]Write to MH i2c: E2 08 00 B1 14 80 09 00 00 00 00 00 00 37 [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 03 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 03 00 B1 14 00 90 00 39 [15:38:29]RAPDU: 90 00 [15:38:29]wFMCommunicate OK [15:38:29]SAM_PROTO_ClearQueue done [15:38:29]KKMCreateOFDPacket [15:38:29]OFDProtocolAddRootSTLVToBuf [15:38:29]FM_MakeSignedData [15:38:29]FM_MakeSignedData [15:38:29]SAM_PROTO_SignData [15:38:29]wFMCommunicate request_size=4 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 0D 01 02 [15:38:29]Write to MH i2c: E2 08 00 B2 14 80 0D 01 02 00 00 00 00 3F [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:29]Read from MH i2c: E2 03 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 03 00 B2 14 00 90 00 3A [15:38:29]RAPDU: 90 00 [15:38:29]wFMCommunicate OK [15:38:29]wFMCommunicate request_size=255 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F5 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 20 02 00 35 04 06 00 8F [15:38:29]Write to MH i2c: E2 02 01 B3 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F5 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 20 02 00 35 04 06 00 8F 00 00 EF [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 03 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 03 00 B3 14 00 90 00 3B [15:38:29]RAPDU: 90 00 [15:38:29]wFMCommunicate OK [15:38:29]wFMCommunicate request_size=10 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 0D 02 02 05 F8 E3 FC AB 07 [15:38:29]Write to MH i2c: E2 0D 00 B4 14 80 0D 02 02 05 00 F8 E3 FC AB 07 00 00 D5 [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 03 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 03 00 B4 14 00 90 00 3C [15:38:29]RAPDU: 90 00 [15:38:29]wFMCommunicate OK [15:38:29]wFMCommunicate request_size=4 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 0D 03 02 [15:38:29]Write to MH i2c: E2 08 00 B5 14 80 0D 03 02 00 00 00 00 44 [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]OFD Sender: No OFD packet to send [15:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 0B 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 0B 00 B5 14 00 34 BC D2 9E 75 86 3F 37 90 00 16 [15:38:29]RAPDU: 34 BC D2 9E 75 86 3F 37 90 00 [15:38:29]wFMCommunicate OK [15:38:29]SAM_PROTO_SignData done [15:38:29]FM_MakeSignedData done [15:38:29]CreateOFDProtocolMessage [15:38:29]wFMCommunicate request_size=4 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 11 00 00 [15:38:29]Write to MH i2c: E2 08 00 B6 14 80 11 00 00 00 00 00 00 44 [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 17 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 17 00 B6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [15:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:38:29]wFMCommunicate OK [15:38:29]CreateOFDProtocolMessage done [15:38:29]OFDSenderStorePacket 139377 [15:38:29]StoreOFDPacket docnum=139377 [15:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F7 22 07 01 D3 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F5 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 20 02 00 35 04 06 00 8F F8 E3 FC AB 07 34 BC D2 9E 75 86 3F 37 [15:38:29]CheckFolder [15:38:29]dirname=/storage/ofd_packets [15:38:29]CheckFolder done [15:38:29]ProducePacketName [15:38:29]name=ofd_packets/00139377 [15:38:29]NVStorageSaveData ofd_packets/00139377 [15:38:29]File name is /storage/ofd_packets/00139377 [15:38:29]Write 301 bytes [15:38:29]NVStorageSaveData done [15:38:29]OFDSenderStorePacket done [15:38:29]KKMCreateOFDPacket done [15:38:29]NVStorageSaveData kkm_last_timestamp [15:38:29]File name is /storage/kkm_last_timestamp [15:38:29]Write 4 bytes [15:38:29]NVStorageSaveData done [15:38:29]ExternCall_PrintAddStr [15:38:29]wPrintStart [15:38:29]Write to MH i2c: 01 00 00 B7 14 CB [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: 01 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: 01 07 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: 01 07 00 B7 14 00 00 00 00 00 FF 0F E0 [15:38:29]RasterBufferAndPrint [15:38:29]line Счет N : (1)593219 [15:38:29]line ИНН: 02508201610067 [15:38:29]line Контрольно-Кассовый Чек [15:38:29]line ПРОДАЖА [15:38:29]line ТРК (МРК, ГНК) : 41 [15:38:29]line Товар: 2710124500 [15:38:29]line Аи-95-К-5 [15:38:29]line 6.740 * 74.20 [15:38:29]line = 500.11 [15:38:29]line НДС 12% НСП 1% [15:38:29]line > о реализуемом товаре [15:38:29]line ОКРУГЛЕНИЕ: -0.11 [15:38:29]line ИТОГО: 500.00 [15:38:29]line Внесено: 500.00 [15:38:29]line СДАЧА: 0.00 [15:38:29]line НСП 1% : 4.43 [15:38:29]line НДС 12% : 53.11 [15:38:29]line Наличными: 500.00 [15:38:29]line Безнал.: 0.00 [15:38:29]line Место: АЗС № 136 "Партнер Нефть" [15:38:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:38:29]line СНО: Общий режим [15:38:29]line Чек 212 19.08.2024 15:38 [15:38:29]line Смена: 452 ФФД: 1.0 [15:38:29]line ЗНМ: 0300000067 [15:38:29]line РНМ: 0000000000092569 [15:38:29]line Версия ККМ: 001 [15:38:29]line ФМ: 0000000000871776 [15:38:29]line ФД: 139377 [15:38:29]line ФПД: 158299139648263 [15:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153829&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139377&fm=158299139648263&tin=02508201610067®Number=0000000000092569&sum=50000 [15:38:29]OFD Sender: Processing packet 139377 [packets to send 137, broken 136] [15:38:29]ProducePacketName [15:38:29]name=ofd_packets/00139377 [15:38:29]OFD Sender: To server: pG, [15:38:29]CommunicateWithHost lk.salyk.kg:30040 [15:38:29]ConnectInit lk.salyk.kg [15:38:29]written 0, free lines is 4095 [15:38:30]Connected sock=10 [15:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F7 22 07 01 D3 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F5 66 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 20 02 00 35 04 06 00 8F F8 E3 FC AB 07 34 BC D2 9E 75 86 3F 37 [15:38:30]Write to MH i2c: 01 00 00 E2 14 F6 [15:38:30]Write i2c OK [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: 01 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: 01 07 00 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 D4 0C DD [15:38:30]RasterBufferAndPrint [15:38:30]line [15:38:30]line [15:38:30]line [15:38:30]line [15:38:30]line [15:38:30]written 0, free lines is 3288 [15:38:30]MH_Cut [15:38:30]Write to MH i2c: D1 01 00 E9 14 01 CF [15:38:30]Write i2c OK [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: D1 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: D1 01 00 [15:38:30]MH_I2C_Read... [15:38:30]Read from MH i2c: D1 01 00 E9 14 00 CE [15:38:30]Write to MH i2c: 01 00 00 EA 14 FE [15:38:30]Write i2c OK [15:38:30]MH_I2C_Read... [15:38: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 37 36 4F 00 00 00 8D B3 47 00 81 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 37 36 10 04 04 00 71 20 02 00 F4 03 04 00 8B 0D C3 66 B6 04 01 00 00 21 D5 89 B3 DD 2E B8 70 [15:38:30]CommunicateWithHost err = 0 [15:38:30]CheckOFDResponse [15:38:30]1017 (14) - 77093643461234 [15:38:30]1041 (16) - 0000000000871776 [15:38:30]1040 (4) - 139377 [15:38:30]1012 (4) - 19.08.2024 09:16 [15:38:30]1206 (1) - 0 [15:38:30]OFD Sender: Remove packet 139377 [15:38:30]ProducePacketName [15:38:30]name=ofd_packets/00139377 [15:38:30]NVStorageDeleteData [15:38:31]*** Cut start [15:38:31]*** Partial cut [15:38:31]*** CUTSNS_PIN = 1 [15:38:31]*** CUTSNS_PIN = 0 [15:38:31]OFD Sender: No OFD packet to send [15:38:31]*** Brake cut motor [15:38:31]Read from MH i2c: 01 [15:38:31]MH_I2C_Read... [15:38:31]*** Stop cut motor [15:38:31]*** Cut end [15:38:31]Read from MH i2c: 01 07 00 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: 01 07 00 EA 14 00 00 00 00 00 FF 0F 13 [15:38:31]process_action close_receipt done [15:38:31]requested_data is exist [15:38:31]produce_requested_data [15:38:31]requested_item fm.sn is exist - process it [15:38:31]wFMCommunicate request_size=4 [15:38:31]MH_SAM_APDU [15:38:31]CAPDU: 80 11 00 00 [15:38:31]Write to MH i2c: E2 08 00 EB 14 80 11 00 00 00 00 00 00 79 [15:38:31]Write i2c OK [15:38:31]MH_I2C_Read... [15:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:31]Read from MH i2c: E2 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 17 00 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 17 00 EB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [15:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:38:31]wFMCommunicate OK [15:38:31]requested_item fd.num is exist - process it [15:38:31]SAM_PROTO_GetFieldsCounters [15:38:31]wFMCommunicate request_size=4 [15:38:31]MH_SAM_APDU [15:38:31]CAPDU: 80 13 00 00 [15:38:31]Write to MH i2c: E2 08 00 EC 14 80 13 00 00 00 00 00 00 7C [15:38:31]Write i2c OK [15:38:31]MH_I2C_Read... [15:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:31]Read from MH i2c: E2 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 62 00 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 62 00 EC 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:38: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:31]wFMCommunicate OK [15:38:31]SAM_PROTO_GetFieldsCounters done [15:38:31]requested_item shift.num is exist - process it [15:38:31]requested_item shift.opened is exist - process it [15:38:31]req_shift_opened [15:38:31]FM_GetShiftState [15:38:31]SAM_PROTO_GetShiftState [15:38:31]wFMCommunicate request_size=4 [15:38:31]MH_SAM_APDU [15:38:31]CAPDU: 80 13 01 00 [15:38:31]Write to MH i2c: E2 08 00 ED 14 80 13 01 00 00 00 00 00 7E [15:38:31]Write i2c OK [15:38:31]MH_I2C_Read... [15:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:31]Read from MH i2c: E2 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 0E 00 [15:38:31]MH_I2C_Read... [15:38:31]Read from MH i2c: E2 0E 00 ED 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 35 [15:38:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:38:31]wFMCommunicate OK [15:38:31]SAM_PROTO_GetShiftState done [15:38:31]FM_GetShiftState done [15:38:31]req_shift_opened done [15:38:31]requested_item shift.open_date is exist - process it [15:38:31]req_shift_open_date [15:38:31]req_shift_open_date done [15:38:31]produce_requested_data done [15:38:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139377,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:38:31]process_action_free close_receipt [15:38:31]json_value_free [15:38:31]json_value_free done [15:38:31]process_json_proto returns [15:38:31]Send response to host [15:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139377,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:38:31]free response buf [15:38:31]execute_script done [15:38:31]execute_script returns [15:38:31]free content buf [15:38:31]Sock 9.Close socket [15:38:31]Sock 9.Thread stoped [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40: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:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:41:59]accept exits with 8 [15:41:59]New connection [15:41:59]New thread 3066674532 created [15:41:59]Thread 3066817892 joined [15:41:59]Waiting for new connection... [15:41:59] Sock 8.Parse request [15:41:59]Sock 8.Check first char [15:41:59]Sock 8.First char is OK [15:41:59]request: POST /json_proto HTTP/1.0 [15:41:59]Method: POST [15:41:59]URL: /json_proto [15:41:59]Method is POST - this is cgi request [15:41:59]url: /json_proto [15:41:59]query_string will be loaded in cgi processing [15:41:59]execute_cgi json_proto POST (null) [15:41:59]execute_cgi path=json_proto method=POST [15:41:59]POST find Content-Length [15:41:59]Host: 172.17.45.67:8080 [15:41:59]Content-Length: 677 [15:41:59]Content-Type: application/json [15:41:59] [15:41:59]POST finish read [15:41:59]Found Content-Length = 677 [15:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:41:59]execute_script... [15:41: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)593220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:41:59]POST & json_proto [15:41:59]process_json_proto [15:41:59]json parsed OK: [15:41:59]protocol is kg_v1.0 [15:41:59]action value=close_receipt [15:41:59]process_action close_receipt [15:41:59]cmd_close_receipt [15:41:59]MH_GetDate [15:41:59]Write to MH i2c: F0 00 00 EE 14 F1 [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: F0 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: F0 09 00 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: F0 09 00 EE 14 00 C8 67 C3 66 5F 7F 2B 66 C1 [15:41:59]GetLastDocTimeStamp 1724081909 [15:41:59]current date 1724082120 [15:41:59]FM_GetShiftState [15:41:59]SAM_PROTO_GetShiftState [15:41:59]wFMCommunicate request_size=4 [15:41:59]MH_SAM_APDU [15:41:59]CAPDU: 80 13 01 00 [15:41:59]Write to MH i2c: E2 08 00 EF 14 80 13 01 00 00 00 00 00 80 [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:59]Read from MH i2c: E2 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 0E 00 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 0E 00 EF 14 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 37 [15:41:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:41:59]wFMCommunicate OK [15:41:59]SAM_PROTO_GetShiftState done [15:41:59]FM_GetShiftState done [15:41:59]opened in 1724027888 [15:41:59]opened+sec_in_day 1724114288 [15:41:59]quantity*price = 20001 [15:41:59]sum+1 = 20002 [15:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 213 19.08.2024 15:42 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139378 ФПД: 184288019300360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154200&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139378&fm=184288019300360&tin=02508201610067®Number=0000000000092569&sum=20000 [15:42:00]StoreToDocumentArchive [15:42:00]shift 452 fd 139378 [15:42:00]save to /storage/0452/doc_00139378 [15:42:00]save last doc name /storage/0452/doc_00139378 to /storage/kkm_last_doc_name [15:42:00]save OK [15:42:00]Clear old archive folders... [15:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:00]tlvbuf is 0123A5E0 [15:42:00]SAM_PROTO_ClearQueue [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 09 00 00 [15:42:00]Write to MH i2c: E2 08 00 FC 14 80 09 00 00 00 00 00 00 82 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 FC 14 00 90 00 84 [15:42:00]RAPDU: 90 00 [15:42:00]wFMCommunicate OK [15:42:00]SAM_PROTO_ClearQueue done [15:42:00]KKMCreateOFDPacket [15:42:00]OFDProtocolAddRootSTLVToBuf [15:42:00]FM_MakeSignedData [15:42:00]FM_MakeSignedData [15:42:00]SAM_PROTO_SignData [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 0D 01 02 [15:42:00]Write to MH i2c: E2 08 00 FD 14 80 0D 01 02 00 00 00 00 8A [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 FD 14 00 90 00 85 [15:42:00]RAPDU: 90 00 [15:42:00]wFMCommunicate OK [15:42:00]wFMCommunicate request_size=255 [15:42:00]MH_SAM_APDU [15:42: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 D5 00 00 00 F4 03 04 00 C8 67 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 20 02 00 35 04 06 00 A7 [15:42:00]Write to MH i2c: E2 02 01 FE 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 D5 00 00 00 F4 03 04 00 C8 67 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 20 02 00 35 04 06 00 A7 00 00 42 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [15:42:00]RAPDU: 90 00 [15:42:00]wFMCommunicate OK [15:42:00]wFMCommunicate request_size=10 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 0D 02 02 05 9B E5 ED 40 08 [15:42:00]Write to MH i2c: E2 0D 00 FF 14 80 0D 02 02 05 00 9B E5 ED 40 08 00 00 4C [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [15:42:00]RAPDU: 90 00 [15:42:00]wFMCommunicate OK [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 0D 03 02 [15:42:00]Write to MH i2c: E2 08 00 00 15 80 0D 03 02 00 00 00 00 90 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:01]Read from MH i2c: E2 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: E2 0B 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: E2 0B 00 00 15 00 B2 D2 C4 29 0C F8 83 F9 90 00 82 [15:42:01]RAPDU: B2 D2 C4 29 0C F8 83 F9 90 00 [15:42:01]wFMCommunicate OK [15:42:01]SAM_PROTO_SignData done [15:42:01]FM_MakeSignedData done [15:42:01]CreateOFDProtocolMessage [15:42:01]wFMCommunicate request_size=4 [15:42:01]MH_SAM_APDU [15:42:01]CAPDU: 80 11 00 00 [15:42:01]Write to MH i2c: E2 08 00 01 15 80 11 00 00 00 00 00 00 90 [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:01]Read from MH i2c: E2 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: E2 17 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: E2 17 00 01 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E7 [15:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:42:01]wFMCommunicate OK [15:42:01]CreateOFDProtocolMessage done [15:42:01]OFDSenderStorePacket 139378 [15:42:01]StoreOFDPacket docnum=139378 [15:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 98 A6 07 01 0B 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 D5 00 00 00 F4 03 04 00 C8 67 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 20 02 00 35 04 06 00 A7 9B E5 ED 40 08 B2 D2 C4 29 0C F8 83 F9 [15:42:01]CheckFolder [15:42:01]dirname=/storage/ofd_packets [15:42:01]CheckFolder done [15:42:01]ProducePacketName [15:42:01]name=ofd_packets/00139378 [15:42:01]NVStorageSaveData ofd_packets/00139378 [15:42:01]File name is /storage/ofd_packets/00139378 [15:42:01]Write 301 bytes [15:42:01]NVStorageSaveData done [15:42:01]OFDSenderStorePacket done [15:42:01]KKMCreateOFDPacket done [15:42:01]NVStorageSaveData kkm_last_timestamp [15:42:01]File name is /storage/kkm_last_timestamp [15:42:01]Write 4 bytes [15:42:01]NVStorageSaveData done [15:42:01]OFD Sender: Processing packet 139378 [packets to send 137, broken 136] [15:42:01]ProducePacketName [15:42:01]name=ofd_packets/00139378 [15:42:01]OFD Sender: To server: pG, [15:42:01]CommunicateWithHost lk.salyk.kg:30040 [15:42:01]ConnectInit lk.salyk.kg [15:42:01]ExternCall_PrintAddStr [15:42:01]wPrintStart [15:42:01]Write to MH i2c: 01 00 00 02 15 17 [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 07 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 07 00 02 15 00 00 00 00 00 FF 0F 2C [15:42:01]RasterBufferAndPrint [15:42:01]line Счет N : (1)593220 [15:42:01]line ИНН: 02508201610067 [15:42:01]line Контрольно-Кассовый Чек [15:42:01]line ПРОДАЖА [15:42:01]line ТРК (МРК, ГНК) : 42 [15:42:01]line Товар: 2710124130 [15:42:01]line Аи-92-К-5 [15:42:01]line 2.950 * 67.80 [15:42:01]line = 200.01 [15:42:01]line НДС 12% НСП 1% [15:42:01]line > о реализуемом товаре [15:42:01]line ОКРУГЛЕНИЕ: -0.01 [15:42:01]line ИТОГО: 200.00 [15:42:01]line Внесено: 200.00 [15:42:01]line СДАЧА: 0.00 [15:42:01]line НСП 1% : 1.77 [15:42:01]line НДС 12% : 21.24 [15:42:01]line Наличными: 200.00 [15:42:01]line Безнал.: 0.00 [15:42:01]line Место: АЗС № 136 "Партнер Нефть" [15:42:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:42:01]line СНО: Общий режим [15:42:01]line Чек 213 19.08.2024 15:42 [15:42:01]line Смена: 452 ФФД: 1.0 [15:42:01]line ЗНМ: 0300000067 [15:42:01]line РНМ: 0000000000092569 [15:42:01]line Версия ККМ: 001 [15:42:01]line ФМ: 0000000000871776 [15:42:01]line ФД: 139378 [15:42:01]line ФПД: 184288019300360 [15:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154200&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139378&fm=184288019300360&tin=02508201610067®Number=0000000000092569&sum=20000 [15:42:01]Connected sock=11 [15:42: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 37 36 0F 01 00 00 98 A6 07 01 0B 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 D5 00 00 00 F4 03 04 00 C8 67 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 20 02 00 35 04 06 00 A7 9B E5 ED 40 08 B2 D2 C4 29 0C F8 83 F9 [15:42:01]written 0, free lines is 4095 [15:42: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 37 36 4F 00 00 00 96 8F 47 00 FD 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 37 36 10 04 04 00 72 20 02 00 F4 03 04 00 5E 0E C3 66 B6 04 01 00 00 F3 1D 44 B8 83 9D B4 E7 [15:42:01]CommunicateWithHost err = 0 [15:42:01]CheckOFDResponse [15:42:01]1017 (14) - 77093643461234 [15:42:01]1041 (16) - 0000000000871776 [15:42:01]1040 (4) - 139378 [15:42:01]1012 (4) - 19.08.2024 09:20 [15:42:01]1206 (1) - 0 [15:42:01]OFD Sender: Remove packet 139378 [15:42:01]ProducePacketName [15:42:01]name=ofd_packets/00139378 [15:42:01]NVStorageDeleteData [15:42:01]Write to MH i2c: 01 00 00 2D 15 42 [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 07 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 D0 0C 25 [15:42:01]RasterBufferAndPrint [15:42:01]line [15:42:01]line [15:42:01]line [15:42:01]line [15:42:01]line [15:42:01]written 0, free lines is 3287 [15:42:01]MH_Cut [15:42:01]Write to MH i2c: D1 01 00 34 15 01 1B [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: D1 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: D1 01 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: D1 01 00 34 15 00 1A [15:42:01]Write to MH i2c: 01 00 00 35 15 4A [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:02]OFD Sender: No OFD packet to send [15:42:02]*** Cut start [15:42:02]*** Partial cut [15:42:02]*** CUTSNS_PIN = 1 [15:42:02]*** CUTSNS_PIN = 0 [15:42:02]*** Brake cut motor [15:42:03]Read from MH i2c: 01 [15:42:03]MH_I2C_Read... [15:42:03]*** Stop cut motor [15:42:03]*** Cut end [15:42:03]Read from MH i2c: 01 07 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 FF 0F 5F [15:42:03]process_action close_receipt done [15:42:03]requested_data is exist [15:42:03]produce_requested_data [15:42:03]requested_item fm.sn is exist - process it [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 11 00 00 [15:42:03]Write to MH i2c: E2 08 00 36 15 80 11 00 00 00 00 00 00 C5 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 17 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 17 00 36 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1C [15:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:42:03]wFMCommunicate OK [15:42:03]requested_item fd.num is exist - process it [15:42:03]SAM_PROTO_GetFieldsCounters [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 13 00 00 [15:42:03]Write to MH i2c: E2 08 00 37 15 80 13 00 00 00 00 00 00 C8 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 62 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 62 00 37 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [15:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:03]wFMCommunicate OK [15:42:03]SAM_PROTO_GetFieldsCounters done [15:42:03]requested_item shift.num is exist - process it [15:42:03]requested_item shift.opened is exist - process it [15:42:03]req_shift_opened [15:42:03]FM_GetShiftState [15:42:03]SAM_PROTO_GetShiftState [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 13 01 00 [15:42:03]Write to MH i2c: E2 08 00 38 15 80 13 01 00 00 00 00 00 CA [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 0E 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 0E 00 38 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 81 [15:42:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:42:03]wFMCommunicate OK [15:42:03]SAM_PROTO_GetShiftState done [15:42:03]FM_GetShiftState done [15:42:03]req_shift_opened done [15:42:03]requested_item shift.open_date is exist - process it [15:42:03]req_shift_open_date [15:42:03]req_shift_open_date done [15:42:03]produce_requested_data done [15:42:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139378,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:42:03]process_action_free close_receipt [15:42:03]json_value_free [15:42:03]json_value_free done [15:42:03]process_json_proto returns [15:42:03]Send response to host [15:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139378,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:42:03]free response buf [15:42:03]execute_script done [15:42:03]execute_script returns [15:42:03]free content buf [15:42:03]Sock 8.Close socket [15:42:03]Sock 8.Thread stoped [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:29]accept exits with 9 [15:43:29]New connection [15:43:29]New thread 3066817892 created [15:43:29]Thread 3066674532 joined [15:43:29]Waiting for new connection... [15:43:29] Sock 9.Parse request [15:43:29]Sock 9.Check first char [15:43:29]Sock 9.First char is OK [15:43:29]request: POST /json_proto HTTP/1.0 [15:43:29]Method: POST [15:43:29]URL: /json_proto [15:43:29]Method is POST - this is cgi request [15:43:29]url: /json_proto [15:43:29]query_string will be loaded in cgi processing [15:43:29]execute_cgi json_proto POST (null) [15:43:29]execute_cgi path=json_proto method=POST [15:43:29]POST find Content-Length [15:43:29]Host: 172.17.45.67:8080 [15:43:29]Content-Length: 682 [15:43:29]Content-Type: application/json [15:43:29] [15:43:29]POST finish read [15:43:29]Found Content-Length = 682 [15:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:43:29]execute_script... [15:43: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)593221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:43:29]POST & json_proto [15:43:29]process_json_proto [15:43:29]json parsed OK: [15:43:29]protocol is kg_v1.0 [15:43:29]action value=close_receipt [15:43:29]process_action close_receipt [15:43:29]cmd_close_receipt [15:43:29]MH_GetDate [15:43:29]Write to MH i2c: F0 00 00 39 15 3D [15:43:29]Write i2c OK [15:43:29]MH_I2C_Read... [15:43:29]Read from MH i2c: F0 [15:43:29]MH_I2C_Read... [15:43:29]Read from MH i2c: F0 09 00 [15:43:29]MH_I2C_Read... [15:43:29]Read from MH i2c: F0 09 00 39 15 00 23 68 C3 66 5F 7F 2B 66 69 [15:43:29]GetLastDocTimeStamp 1724082120 [15:43:29]current date 1724082211 [15:43:29]FM_GetShiftState [15:43:29]SAM_PROTO_GetShiftState [15:43:29]wFMCommunicate request_size=4 [15:43:29]MH_SAM_APDU [15:43:29]CAPDU: 80 13 01 00 [15:43:29]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [15:43:29]Write i2c OK [15:43:29]MH_I2C_Read... [15:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:29]Read from MH i2c: E2 [15:43:29]MH_I2C_Read... [15:43:29]Read from MH i2c: E2 0E 00 [15:43:29]MH_I2C_Read... [15:43:29]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 83 [15:43:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:43:29]wFMCommunicate OK [15:43:29]SAM_PROTO_GetShiftState done [15:43:29]FM_GetShiftState done [15:43:29]opened in 1724027888 [15:43:29]opened+sec_in_day 1724114288 [15:43:29]quantity*price = 100005 [15:43:29]sum+1 = 100006 [15:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 214 19.08.2024 15:43 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139379 ФПД: 140705768749018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154331&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139379&fm=140705768749018&tin=02508201610067®Number=0000000000092569&sum=100000 [15:43:31]StoreToDocumentArchive [15:43:31]shift 452 fd 139379 [15:43:31]save to /storage/0452/doc_00139379 [15:43:31]save last doc name /storage/0452/doc_00139379 to /storage/kkm_last_doc_name [15:43:31]save OK [15:43:31]Clear old archive folders... [15:43:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:31]tlvbuf is 011EB060 [15:43:31]SAM_PROTO_ClearQueue [15:43:31]wFMCommunicate request_size=4 [15:43:31]MH_SAM_APDU [15:43:31]CAPDU: 80 09 00 00 [15:43:31]Write to MH i2c: E2 08 00 47 15 80 09 00 00 00 00 00 00 CE [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:31]Read from MH i2c: E2 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 03 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [15:43:31]RAPDU: 90 00 [15:43:31]wFMCommunicate OK [15:43:31]SAM_PROTO_ClearQueue done [15:43:31]KKMCreateOFDPacket [15:43:31]OFDProtocolAddRootSTLVToBuf [15:43:31]FM_MakeSignedData [15:43:31]FM_MakeSignedData [15:43:31]SAM_PROTO_SignData [15:43:31]wFMCommunicate request_size=4 [15:43:31]MH_SAM_APDU [15:43:31]CAPDU: 80 0D 01 02 [15:43:31]Write to MH i2c: E2 08 00 48 15 80 0D 01 02 00 00 00 00 D6 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:31]Read from MH i2c: E2 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 03 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [15:43:31]RAPDU: 90 00 [15:43:31]wFMCommunicate OK [15:43:31]wFMCommunicate request_size=255 [15:43:31]MH_SAM_APDU [15:43: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 23 68 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 20 02 00 35 04 06 00 7F [15:43:31]Write to MH i2c: E2 02 01 49 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 23 68 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 20 02 00 35 04 06 00 7F 00 00 51 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:31]Read from MH i2c: E2 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 03 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [15:43:31]RAPDU: 90 00 [15:43:31]wFMCommunicate OK [15:43:31]wFMCommunicate request_size=10 [15:43:31]MH_SAM_APDU [15:43:31]CAPDU: 80 0D 02 02 05 F8 9D 5D 37 DA [15:43:31]Write to MH i2c: E2 0D 00 4A 15 80 0D 02 02 05 00 F8 9D 5D 37 DA 00 00 E6 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:31]Read from MH i2c: E2 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 03 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [15:43:31]RAPDU: 90 00 [15:43:31]wFMCommunicate OK [15:43:31]wFMCommunicate request_size=4 [15:43:31]MH_SAM_APDU [15:43:31]CAPDU: 80 0D 03 02 [15:43:31]Write to MH i2c: E2 08 00 4B 15 80 0D 03 02 00 00 00 00 DB [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:31]Read from MH i2c: E2 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 0B 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 0B 00 4B 15 00 F1 73 CE 26 04 2D C1 3C 90 00 62 [15:43:31]RAPDU: F1 73 CE 26 04 2D C1 3C 90 00 [15:43:31]wFMCommunicate OK [15:43:31]SAM_PROTO_SignData done [15:43:31]FM_MakeSignedData done [15:43:31]CreateOFDProtocolMessage [15:43:31]wFMCommunicate request_size=4 [15:43:31]MH_SAM_APDU [15:43:31]CAPDU: 80 11 00 00 [15:43:31]Write to MH i2c: E2 08 00 4C 15 80 11 00 00 00 00 00 00 DB [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:31]Read from MH i2c: E2 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 17 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 17 00 4C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 32 [15:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:43:31]wFMCommunicate OK [15:43:31]CreateOFDProtocolMessage done [15:43:31]OFDSenderStorePacket 139379 [15:43:31]StoreOFDPacket docnum=139379 [15:43:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E7 AD 07 01 7A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 23 68 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 20 02 00 35 04 06 00 7F F8 9D 5D 37 DA F1 73 CE 26 04 2D C1 3C [15:43:31]CheckFolder [15:43:31]dirname=/storage/ofd_packets [15:43:31]CheckFolder done [15:43:31]ProducePacketName [15:43:31]name=ofd_packets/00139379 [15:43:31]NVStorageSaveData ofd_packets/00139379 [15:43:31]File name is /storage/ofd_packets/00139379 [15:43:31]Write 301 bytes [15:43:31]NVStorageSaveData done [15:43:31]OFDSenderStorePacket done [15:43:31]KKMCreateOFDPacket done [15:43:31]NVStorageSaveData kkm_last_timestamp [15:43:31]File name is /storage/kkm_last_timestamp [15:43:31]Write 4 bytes [15:43:31]NVStorageSaveData done [15:43:31]ExternCall_PrintAddStr [15:43:31]wPrintStart [15:43:31]Write to MH i2c: 01 00 00 4D 15 62 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: 01 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: 01 07 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 FF 0F 77 [15:43:31]RasterBufferAndPrint [15:43:31]line Счет N : (1)593221 [15:43:31]line ИНН: 02508201610067 [15:43:31]line Контрольно-Кассовый Чек [15:43:31]line ПРОДАЖА [15:43:31]line ТРК (МРК, ГНК) : 62 [15:43:31]line Товар: 2710124130 [15:43:31]line Аи-92-К-5 [15:43:31]line 14.750 * 67.80 [15:43:31]line = 1000.05 [15:43:31]line НДС 12% НСП 1% [15:43:31]line > о реализуемом товаре [15:43:31]line ОКРУГЛЕНИЕ: -0.05 [15:43:31]line ИТОГО: 1000.00 [15:43:31]line Внесено: 1000.00 [15:43:31]line СДАЧА: 0.00 [15:43:31]line НСП 1% : 8.85 [15:43:31]line НДС 12% : 106.20 [15:43:31]line Наличными: 1000.00 [15:43:31]line Безнал.: 0.00 [15:43:31]line Место: АЗС № 136 "Партнер Нефть" [15:43:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:43:31]line СНО: Общий режим [15:43:31]line Чек 214 19.08.2024 15:43 [15:43:31]line Смена: 452 ФФД: 1.0 [15:43:31]line ЗНМ: 0300000067 [15:43:31]line РНМ: 0000000000092569 [15:43:31]line Версия ККМ: 001 [15:43:31]line ФМ: 0000000000871776 [15:43:31]line ФД: 139379 [15:43:31]line ФПД: 140705768749018 [15:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154331&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139379&fm=140705768749018&tin=02508201610067®Number=0000000000092569&sum=100000 [15:43:31]OFD Sender: Processing packet 139379 [packets to send 137, broken 136] [15:43:31]ProducePacketName [15:43:31]name=ofd_packets/00139379 [15:43:31]OFD Sender: To server: pG, [15:43:31]CommunicateWithHost lk.salyk.kg:30040 [15:43:31]ConnectInit lk.salyk.kg [15:43:31]written 0, free lines is 4095 [15:43:32]Connected sock=8 [15:43: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 37 36 0F 01 00 00 E7 AD 07 01 7A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 23 68 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 20 02 00 35 04 06 00 7F F8 9D 5D 37 DA F1 73 CE 26 04 2D C1 3C [15:43: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 37 36 4F 00 00 00 69 32 47 00 8C CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 20 02 00 F4 03 04 00 B8 0E C3 66 B6 04 01 00 00 49 7D B8 DC 4D D7 E9 AB [15:43:32]CommunicateWithHost err = 0 [15:43:32]CheckOFDResponse [15:43:32]1017 (14) - 77093643461234 [15:43:32]1041 (16) - 0000000000871776 [15:43:32]1040 (4) - 139379 [15:43:32]1012 (4) - 19.08.2024 09:22 [15:43:32]1206 (1) - 0 [15:43:32]OFD Sender: Remove packet 139379 [15:43:32]ProducePacketName [15:43:32]name=ofd_packets/00139379 [15:43:32]NVStorageDeleteData [15:43:32]Write to MH i2c: 01 00 00 78 15 8D [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: 01 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: 01 07 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: 01 07 00 78 15 00 00 00 00 00 CD 0C 6D [15:43:32]RasterBufferAndPrint [15:43:32]line [15:43:32]line [15:43:32]line [15:43:32]line [15:43:32]line [15:43:32]written 0, free lines is 3283 [15:43:32]MH_Cut [15:43:32]Write to MH i2c: D1 01 00 7F 15 01 66 [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: D1 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: D1 01 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: D1 01 00 7F 15 00 65 [15:43:32]Write to MH i2c: 01 00 00 80 15 95 [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]OFD Sender: No OFD packet to send [15:43:33]*** Cut start [15:43:33]*** Partial cut [15:43:33]*** CUTSNS_PIN = 1 [15:43:33]*** CUTSNS_PIN = 0 [15:43:33]*** Brake cut motor [15:43:33]Read from MH i2c: 01 [15:43:33]MH_I2C_Read... [15:43:33]*** Stop cut motor [15:43:33]*** Cut end [15:43:33]Read from MH i2c: 01 07 00 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: 01 07 00 80 15 00 00 00 00 00 FF 0F AA [15:43:33]process_action close_receipt done [15:43:33]requested_data is exist [15:43:33]produce_requested_data [15:43:33]requested_item fm.sn is exist - process it [15:43:33]wFMCommunicate request_size=4 [15:43:33]MH_SAM_APDU [15:43:33]CAPDU: 80 11 00 00 [15:43:33]Write to MH i2c: E2 08 00 81 15 80 11 00 00 00 00 00 00 10 [15:43:33]Write i2c OK [15:43:33]MH_I2C_Read... [15:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:33]Read from MH i2c: E2 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 17 00 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 17 00 81 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 67 [15:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:43:33]wFMCommunicate OK [15:43:33]requested_item fd.num is exist - process it [15:43:33]SAM_PROTO_GetFieldsCounters [15:43:33]wFMCommunicate request_size=4 [15:43:33]MH_SAM_APDU [15:43:33]CAPDU: 80 13 00 00 [15:43:33]Write to MH i2c: E2 08 00 82 15 80 13 00 00 00 00 00 00 13 [15:43:33]Write i2c OK [15:43:33]MH_I2C_Read... [15:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:33]Read from MH i2c: E2 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 62 00 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 62 00 82 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:43: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:33]wFMCommunicate OK [15:43:33]SAM_PROTO_GetFieldsCounters done [15:43:33]requested_item shift.num is exist - process it [15:43:33]requested_item shift.opened is exist - process it [15:43:33]req_shift_opened [15:43:33]FM_GetShiftState [15:43:33]SAM_PROTO_GetShiftState [15:43:33]wFMCommunicate request_size=4 [15:43:33]MH_SAM_APDU [15:43:33]CAPDU: 80 13 01 00 [15:43:33]Write to MH i2c: E2 08 00 83 15 80 13 01 00 00 00 00 00 15 [15:43:33]Write i2c OK [15:43:33]MH_I2C_Read... [15:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:33]Read from MH i2c: E2 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 0E 00 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 0E 00 83 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CC [15:43:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:43:33]wFMCommunicate OK [15:43:33]SAM_PROTO_GetShiftState done [15:43:33]FM_GetShiftState done [15:43:33]req_shift_opened done [15:43:33]requested_item shift.open_date is exist - process it [15:43:33]req_shift_open_date [15:43:33]req_shift_open_date done [15:43:33]produce_requested_data done [15:43:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139379,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:43:33]process_action_free close_receipt [15:43:33]json_value_free [15:43:33]json_value_free done [15:43:33]process_json_proto returns [15:43:33]Send response to host [15:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139379,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:43:33]free response buf [15:43:33]execute_script done [15:43:33]execute_script returns [15:43:33]free content buf [15:43:33]Sock 9.Close socket [15:43:33]Sock 9.Thread stoped [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:30]accept exits with 10 [15:44:30]New connection [15:44:30]New thread 3066674532 created [15:44:30]Thread 3066817892 joined [15:44:30]Waiting for new connection... [15:44:30] Sock 10.Parse request [15:44:30]Sock 10.Check first char [15:44:30]Sock 10.First char is OK [15:44:30]request: POST /json_proto HTTP/1.0 [15:44:30]Method: POST [15:44:30]URL: /json_proto [15:44:30]Method is POST - this is cgi request [15:44:30]url: /json_proto [15:44:30]query_string will be loaded in cgi processing [15:44:30]execute_cgi json_proto POST (null) [15:44:30]execute_cgi path=json_proto method=POST [15:44:30]POST find Content-Length [15:44:30]Host: 172.17.45.67:8080 [15:44:30]Content-Length: 678 [15:44:30]Content-Type: application/json [15:44:30] [15:44:30]POST finish read [15:44:30]Found Content-Length = 678 [15:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:44:30]execute_script... [15:44: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)593222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:44:30]POST & json_proto [15:44:30]process_json_proto [15:44:30]json parsed OK: [15:44:30]protocol is kg_v1.0 [15:44:30]action value=close_receipt [15:44:30]process_action close_receipt [15:44:30]cmd_close_receipt [15:44:30]MH_GetDate [15:44:30]Write to MH i2c: F0 00 00 84 15 88 [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: F0 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: F0 09 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: F0 09 00 84 15 00 60 68 C3 66 5F 7F 2B 66 F1 [15:44:30]GetLastDocTimeStamp 1724082211 [15:44:30]current date 1724082272 [15:44:30]FM_GetShiftState [15:44:30]SAM_PROTO_GetShiftState [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 13 01 00 [15:44:30]Write to MH i2c: E2 08 00 85 15 80 13 01 00 00 00 00 00 17 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:31]Read from MH i2c: E2 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 0E 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 0E 00 85 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CE [15:44:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:44:31]wFMCommunicate OK [15:44:31]SAM_PROTO_GetShiftState done [15:44:31]FM_GetShiftState done [15:44:31]opened in 1724027888 [15:44:31]opened+sec_in_day 1724114288 [15:44:31]quantity*price = 70037 [15:44:31]sum+1 = 70038 [15:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 215 19.08.2024 15:44 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139380 ФПД: 28827206016197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154432&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139380&fm=28827206016197&tin=02508201610067®Number=0000000000092569&sum=70000 [15:44:32]StoreToDocumentArchive [15:44:32]shift 452 fd 139380 [15:44:32]save to /storage/0452/doc_00139380 [15:44:32]save last doc name /storage/0452/doc_00139380 to /storage/kkm_last_doc_name [15:44:32]save OK [15:44:32]Clear old archive folders... [15:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:32]tlvbuf is 011EBBF0 [15:44:32]SAM_PROTO_ClearQueue [15:44:32]wFMCommunicate request_size=4 [15:44:32]MH_SAM_APDU [15:44:32]CAPDU: 80 09 00 00 [15:44:32]Write to MH i2c: E2 08 00 92 15 80 09 00 00 00 00 00 00 19 [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:32]Read from MH i2c: E2 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 03 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [15:44:32]RAPDU: 90 00 [15:44:32]wFMCommunicate OK [15:44:32]SAM_PROTO_ClearQueue done [15:44:32]KKMCreateOFDPacket [15:44:32]OFDProtocolAddRootSTLVToBuf [15:44:32]FM_MakeSignedData [15:44:32]FM_MakeSignedData [15:44:32]SAM_PROTO_SignData [15:44:32]wFMCommunicate request_size=4 [15:44:32]MH_SAM_APDU [15:44:32]CAPDU: 80 0D 01 02 [15:44:32]Write to MH i2c: E2 08 00 93 15 80 0D 01 02 00 00 00 00 21 [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:32]Read from MH i2c: E2 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 03 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [15:44:32]RAPDU: 90 00 [15:44:32]wFMCommunicate OK [15:44:32]wFMCommunicate request_size=255 [15:44:32]MH_SAM_APDU [15:44: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 D7 00 00 00 F4 03 04 00 60 68 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 20 02 00 35 04 06 00 1A [15:44:32]Write to MH i2c: E2 02 01 94 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 D7 00 00 00 F4 03 04 00 60 68 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 20 02 00 35 04 06 00 1A 00 00 CE [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:32]Read from MH i2c: E2 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 03 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [15:44:32]RAPDU: 90 00 [15:44:32]wFMCommunicate OK [15:44:32]wFMCommunicate request_size=10 [15:44:32]MH_SAM_APDU [15:44:32]CAPDU: 80 0D 02 02 05 37 DB 5F DC C5 [15:44:32]Write to MH i2c: E2 0D 00 95 15 80 0D 02 02 05 00 37 DB 5F DC C5 00 00 40 [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:32]Read from MH i2c: E2 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 03 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [15:44:32]RAPDU: 90 00 [15:44:32]wFMCommunicate OK [15:44:32]wFMCommunicate request_size=4 [15:44:32]MH_SAM_APDU [15:44:32]CAPDU: 80 0D 03 02 [15:44:32]Write to MH i2c: E2 08 00 96 15 80 0D 03 02 00 00 00 00 26 [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:32]Read from MH i2c: E2 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 0B 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 0B 00 96 15 00 CF 8B 44 F7 91 BE 8A CA 90 00 5F [15:44:32]RAPDU: CF 8B 44 F7 91 BE 8A CA 90 00 [15:44:32]wFMCommunicate OK [15:44:32]SAM_PROTO_SignData done [15:44:32]FM_MakeSignedData done [15:44:32]CreateOFDProtocolMessage [15:44:32]wFMCommunicate request_size=4 [15:44:32]MH_SAM_APDU [15:44:32]CAPDU: 80 11 00 00 [15:44:32]Write to MH i2c: E2 08 00 97 15 80 11 00 00 00 00 00 00 26 [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:32]Read from MH i2c: E2 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 17 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 17 00 97 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [15:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:44:32]wFMCommunicate OK [15:44:32]CreateOFDProtocolMessage done [15:44:32]OFDSenderStorePacket 139380 [15:44:32]StoreOFDPacket docnum=139380 [15:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EB BA 07 01 E1 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 D7 00 00 00 F4 03 04 00 60 68 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 20 02 00 35 04 06 00 1A 37 DB 5F DC C5 CF 8B 44 F7 91 BE 8A CA [15:44:32]CheckFolder [15:44:32]dirname=/storage/ofd_packets [15:44:32]CheckFolder done [15:44:32]ProducePacketName [15:44:32]name=ofd_packets/00139380 [15:44:32]NVStorageSaveData ofd_packets/00139380 [15:44:32]File name is /storage/ofd_packets/00139380 [15:44:32]Write 301 bytes [15:44:32]NVStorageSaveData done [15:44:32]OFDSenderStorePacket done [15:44:32]KKMCreateOFDPacket done [15:44:32]NVStorageSaveData kkm_last_timestamp [15:44:32]File name is /storage/kkm_last_timestamp [15:44:32]Write 4 bytes [15:44:32]NVStorageSaveData done [15:44:32]ExternCall_PrintAddStr [15:44:32]wPrintStart [15:44:32]Write to MH i2c: 01 00 00 98 15 AD [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: 01 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: 01 07 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: 01 07 00 98 15 00 00 00 00 00 FF 0F C2 [15:44:32]RasterBufferAndPrint [15:44:32]line Счет N : (1)593222 [15:44:32]line ИНН: 02508201610067 [15:44:32]line Контрольно-Кассовый Чек [15:44:32]line ПРОДАЖА [15:44:32]line ТРК (МРК, ГНК) : 42 [15:44:32]line Товар: 2710124130 [15:44:32]line Аи-92-К-5 [15:44:32]line 10.330 * 67.80 [15:44:32]line = 700.37 [15:44:32]line НДС 12% НСП 1% [15:44:32]line > о реализуемом товаре [15:44:32]line ОКРУГЛЕНИЕ: -0.37 [15:44:32]line ИТОГО: 700.00 [15:44:32]line Внесено: 700.00 [15:44:32]line СДАЧА: 0.00 [15:44:32]line НСП 1% : 6.20 [15:44:32]line НДС 12% : 74.38 [15:44:32]line Наличными: 700.00 [15:44:32]line Безнал.: 0.00 [15:44:32]line Место: АЗС № 136 "Партнер Нефть" [15:44:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:44:32]line СНО: Общий режим [15:44:32]line Чек 215 19.08.2024 15:44 [15:44:32]line Смена: 452 ФФД: 1.0 [15:44:32]line ЗНМ: 0300000067 [15:44:32]line РНМ: 0000000000092569 [15:44:32]line Версия ККМ: 001 [15:44:32]line ФМ: 0000000000871776 [15:44:32]line ФД: 139380 [15:44:32]line ФПД: 28827206016197 [15:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154432&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139380&fm=28827206016197&tin=02508201610067®Number=0000000000092569&sum=70000 [15:44:33]written 0, free lines is 4095 [15:44:33]OFD Sender: Processing packet 139380 [packets to send 137, broken 136] [15:44:33]ProducePacketName [15:44:33]name=ofd_packets/00139380 [15:44:33]OFD Sender: To server: pG, [15:44:33]CommunicateWithHost lk.salyk.kg:30040 [15:44:33]ConnectInit lk.salyk.kg [15:44:33]Connected sock=9 [15:44: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 37 36 0F 01 00 00 EB BA 07 01 E1 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 D7 00 00 00 F4 03 04 00 60 68 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 20 02 00 35 04 06 00 1A 37 DB 5F DC C5 CF 8B 44 F7 91 BE 8A CA [15:44: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 37 36 4F 00 00 00 C5 46 47 00 2E 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 37 36 10 04 04 00 74 20 02 00 F4 03 04 00 F5 0E C3 66 B6 04 01 00 00 A0 7B D7 BC 3F 90 72 FC [15:44:33]CommunicateWithHost err = 0 [15:44:33]CheckOFDResponse [15:44:33]1017 (14) - 77093643461234 [15:44:33]1041 (16) - 0000000000871776 [15:44:33]1040 (4) - 139380 [15:44:33]1012 (4) - 19.08.2024 09:23 [15:44:33]1206 (1) - 0 [15:44:33]OFD Sender: Remove packet 139380 [15:44:33]ProducePacketName [15:44:33]name=ofd_packets/00139380 [15:44:33]NVStorageDeleteData [15:44:33]Write to MH i2c: 01 00 00 C3 15 D8 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: 01 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: 01 07 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: 01 07 00 C3 15 00 00 00 00 00 CE 0C B9 [15:44:33]RasterBufferAndPrint [15:44:33]line [15:44:33]line [15:44:33]line [15:44:33]line [15:44:33]line [15:44:33]written 0, free lines is 3285 [15:44:33]MH_Cut [15:44:33]Write to MH i2c: D1 01 00 CA 15 01 B1 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: D1 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: D1 01 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: D1 01 00 CA 15 00 B0 [15:44:33]Write to MH i2c: 01 00 00 CB 15 E0 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]OFD Sender: No OFD packet to send [15:44:34]*** Cut start [15:44:34]*** Partial cut [15:44:34]*** CUTSNS_PIN = 1 [15:44:34]*** CUTSNS_PIN = 0 [15:44:34]*** Brake cut motor [15:44:34]Read from MH i2c: 01 [15:44:34]MH_I2C_Read... [15:44:34]*** Stop cut motor [15:44:34]*** Cut end [15:44:34]Read from MH i2c: 01 07 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: 01 07 00 CB 15 00 00 00 00 00 FF 0F F5 [15:44:34]process_action close_receipt done [15:44:34]requested_data is exist [15:44:34]produce_requested_data [15:44:34]requested_item fm.sn is exist - process it [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 11 00 00 [15:44:34]Write to MH i2c: E2 08 00 CC 15 80 11 00 00 00 00 00 00 5B [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 17 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 17 00 CC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [15:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:44:34]wFMCommunicate OK [15:44:34]requested_item fd.num is exist - process it [15:44:34]SAM_PROTO_GetFieldsCounters [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 13 00 00 [15:44:34]Write to MH i2c: E2 08 00 CD 15 80 13 00 00 00 00 00 00 5E [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 62 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 62 00 CD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [15:44: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:34]wFMCommunicate OK [15:44:34]SAM_PROTO_GetFieldsCounters done [15:44:34]requested_item shift.num is exist - process it [15:44:34]requested_item shift.opened is exist - process it [15:44:34]req_shift_opened [15:44:34]FM_GetShiftState [15:44:34]SAM_PROTO_GetShiftState [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 13 01 00 [15:44:34]Write to MH i2c: E2 08 00 CE 15 80 13 01 00 00 00 00 00 60 [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0E 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0E 00 CE 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 17 [15:44:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:44:35]wFMCommunicate OK [15:44:35]SAM_PROTO_GetShiftState done [15:44:35]FM_GetShiftState done [15:44:35]req_shift_opened done [15:44:35]requested_item shift.open_date is exist - process it [15:44:35]req_shift_open_date [15:44:35]req_shift_open_date done [15:44:35]produce_requested_data done [15:44:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139380,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:44:35]process_action_free close_receipt [15:44:35]json_value_free [15:44:35]json_value_free done [15:44:35]process_json_proto returns [15:44:35]Send response to host [15:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139380,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:44:35]free response buf [15:44:35]execute_script done [15:44:35]execute_script returns [15:44:35]free content buf [15:44:35]Sock 10.Close socket [15:44:35]Sock 10.Thread stoped [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:26]accept exits with 8 [15:47:26]New connection [15:47:26]New thread 3066817892 created [15:47:26]Thread 3066674532 joined [15:47:26]Waiting for new connection... [15:47:26] Sock 8.Parse request [15:47:26]Sock 8.Check first char [15:47:26]Sock 8.First char is OK [15:47:26]request: POST /json_proto HTTP/1.0 [15:47:26]Method: POST [15:47:26]URL: /json_proto [15:47:26]Method is POST - this is cgi request [15:47:26]url: /json_proto [15:47:26]query_string will be loaded in cgi processing [15:47:26]execute_cgi json_proto POST (null) [15:47:26]execute_cgi path=json_proto method=POST [15:47:26]POST find Content-Length [15:47:26]Host: 172.17.45.67:8080 [15:47:26]Content-Length: 818 [15:47:26]Content-Type: application/json [15:47:26] [15:47:26]POST finish read [15:47:26]Found Content-Length = 818 [15:47:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:26]execute_script... [15:47:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:26]POST & json_proto [15:47:26]process_json_proto [15:47:26]json parsed OK: [15:47:26]protocol is kg_v1.0 [15:47:26]action value=close_receipt [15:47:26]process_action close_receipt [15:47:26]cmd_close_receipt [15:47:26]MH_GetDate [15:47:26]Write to MH i2c: F0 00 00 CF 15 D3 [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: F0 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: F0 09 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: F0 09 00 CF 15 00 10 69 C3 66 5F 7F 2B 66 ED [15:47:26]GetLastDocTimeStamp 1724082272 [15:47:26]current date 1724082448 [15:47:26]FM_GetShiftState [15:47:26]SAM_PROTO_GetShiftState [15:47:26]wFMCommunicate request_size=4 [15:47:26]MH_SAM_APDU [15:47:26]CAPDU: 80 13 01 00 [15:47:26]Write to MH i2c: E2 08 00 D0 15 80 13 01 00 00 00 00 00 62 [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:26]Read from MH i2c: E2 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 0E 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 0E 00 D0 15 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 19 [15:47:26]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:47:26]wFMCommunicate OK [15:47:26]SAM_PROTO_GetShiftState done [15:47:26]FM_GetShiftState done [15:47:26]opened in 1724027888 [15:47:26]opened+sec_in_day 1724114288 [15:47:26]quantity*price = 30035 [15:47:26]sum+1 = 30036 [15:47:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 216 19.08.2024 15:47 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139381 ФПД: 110736722433838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154728&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139381&fm=110736722433838&tin=02508201610067®Number=0000000000092569&sum=30000 [15:47:27]StoreToDocumentArchive [15:47:27]shift 452 fd 139381 [15:47:27]save to /storage/0452/doc_00139381 [15:47:27]save last doc name /storage/0452/doc_00139381 to /storage/kkm_last_doc_name [15:47:27]save OK [15:47:27]Clear old archive folders... [15:47:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:27]tlvbuf is 01288E00 [15:47:27]SAM_PROTO_ClearQueue [15:47:27]wFMCommunicate request_size=4 [15:47:27]MH_SAM_APDU [15:47:27]CAPDU: 80 09 00 00 [15:47:27]Write to MH i2c: E2 08 00 DD 15 80 09 00 00 00 00 00 00 64 [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [15:47:27]RAPDU: 90 00 [15:47:27]wFMCommunicate OK [15:47:27]SAM_PROTO_ClearQueue done [15:47:27]KKMCreateOFDPacket [15:47:27]OFDProtocolAddRootSTLVToBuf [15:47:27]FM_MakeSignedData [15:47:27]FM_MakeSignedData [15:47:27]SAM_PROTO_SignData [15:47:27]wFMCommunicate request_size=4 [15:47:27]MH_SAM_APDU [15:47:27]CAPDU: 80 0D 01 02 [15:47:27]Write to MH i2c: E2 08 00 DE 15 80 0D 01 02 00 00 00 00 6C [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:28]Read from MH i2c: E2 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 03 00 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [15:47:28]RAPDU: 90 00 [15:47:28]wFMCommunicate OK [15:47:28]wFMCommunicate request_size=255 [15:47:28]MH_SAM_APDU [15:47: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 10 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 20 02 00 35 04 06 00 64 [15:47:28]Write to MH i2c: E2 02 01 DF 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 10 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 20 02 00 35 04 06 00 64 00 00 4E [15:47:28]Write i2c OK [15:47:28]MH_I2C_Read... [15:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:28]Read from MH i2c: E2 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 03 00 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [15:47:28]RAPDU: 90 00 [15:47:28]wFMCommunicate OK [15:47:28]wFMCommunicate request_size=10 [15:47:28]MH_SAM_APDU [15:47:28]CAPDU: 80 0D 02 02 05 B6 E7 01 17 2E [15:47:28]Write to MH i2c: E2 0D 00 E0 15 80 0D 02 02 05 00 B6 E7 01 17 2E 00 00 5C [15:47:28]Write i2c OK [15:47:28]MH_I2C_Read... [15:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:28]Read from MH i2c: E2 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 03 00 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [15:47:28]RAPDU: 90 00 [15:47:28]wFMCommunicate OK [15:47:28]wFMCommunicate request_size=4 [15:47:28]MH_SAM_APDU [15:47:28]CAPDU: 80 0D 03 02 [15:47:28]Write to MH i2c: E2 08 00 E1 15 80 0D 03 02 00 00 00 00 71 [15:47:28]Write i2c OK [15:47:28]MH_I2C_Read... [15:47:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:28]Read from MH i2c: E2 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 0B 00 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 0B 00 E1 15 00 43 73 5E E3 EE B3 32 49 90 00 85 [15:47:28]RAPDU: 43 73 5E E3 EE B3 32 49 90 00 [15:47:28]wFMCommunicate OK [15:47:28]SAM_PROTO_SignData done [15:47:28]FM_MakeSignedData done [15:47:28]CreateOFDProtocolMessage [15:47:28]wFMCommunicate request_size=4 [15:47:28]MH_SAM_APDU [15:47:28]CAPDU: 80 11 00 00 [15:47:28]Write to MH i2c: E2 08 00 E2 15 80 11 00 00 00 00 00 00 71 [15:47:28]Write i2c OK [15:47:28]MH_I2C_Read... [15:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:28]Read from MH i2c: E2 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 17 00 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: E2 17 00 E2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [15:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:47:28]wFMCommunicate OK [15:47:28]CreateOFDProtocolMessage done [15:47:28]OFDSenderStorePacket 139381 [15:47:28]StoreOFDPacket docnum=139381 [15:47:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DA 88 07 01 71 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 10 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 20 02 00 35 04 06 00 64 B6 E7 01 17 2E 43 73 5E E3 EE B3 32 49 [15:47:28]CheckFolder [15:47:28]dirname=/storage/ofd_packets [15:47:28]CheckFolder done [15:47:28]ProducePacketName [15:47:28]name=ofd_packets/00139381 [15:47:28]NVStorageSaveData ofd_packets/00139381 [15:47:28]File name is /storage/ofd_packets/00139381 [15:47:28]Write 301 bytes [15:47:28]NVStorageSaveData done [15:47:28]OFDSenderStorePacket done [15:47:28]KKMCreateOFDPacket done [15:47:28]NVStorageSaveData kkm_last_timestamp [15:47:28]File name is /storage/kkm_last_timestamp [15:47:28]Write 4 bytes [15:47:28]NVStorageSaveData done [15:47:28]ExternCall_PrintAddStr [15:47:28]wPrintStart [15:47:28]Write to MH i2c: 01 00 00 E3 15 F8 [15:47:28]Write i2c OK [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: 01 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: 01 07 00 [15:47:28]MH_I2C_Read... [15:47:28]Read from MH i2c: 01 07 00 E3 15 00 00 00 00 00 FF 0F 0D [15:47:28]RasterBufferAndPrint [15:47:28]line Счет N : (1)593223 [15:47:28]line ИНН: 02508201610067 [15:47:28]line Контрольно-Кассовый Чек [15:47:28]line ПРОДАЖА [15:47:28]line ТРК (МРК, ГНК) : 42 [15:47:28]line Товар: 2710124130 [15:47:28]line Аи-92-К-5 [15:47:28]line 4.430 * 67.80 [15:47:28]line = 300.35 [15:47:28]line НДС 12% НСП 1% [15:47:28]line > о реализуемом товаре [15:47:28]line ОКРУГЛЕНИЕ: -0.35 [15:47:28]line ИТОГО: 300.00 [15:47:28]line НСП 1% : 2.66 [15:47:28]line НДС 12% : 31.90 [15:47:28]line Наличными: 0.00 [15:47:28]line Безнал.: 300.00 [15:47:28]line Место: АЗС № 136 "Партнер Нефть" [15:47:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:47:28]line СНО: Общий режим [15:47:28]line Чек 216 19.08.2024 15:47 [15:47:28]line Смена: 452 ФФД: 1.0 [15:47:28]line ЗНМ: 0300000067 [15:47:28]line РНМ: 0000000000092569 [15:47:28]line Версия ККМ: 001 [15:47:28]line Платежная система: O! деньги [15:47:28]line ФМ: 0000000000871776 [15:47:28]line ФД: 139381 [15:47:28]line ФПД: 110736722433838 [15:47:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154728&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139381&fm=110736722433838&tin=02508201610067®Number=0000000000092569&sum=30000 [15:47:28]OFD Sender: Processing packet 139381 [packets to send 137, broken 136] [15:47:28]ProducePacketName [15:47:28]name=ofd_packets/00139381 [15:47:28]OFD Sender: To server: pG, [15:47:28]CommunicateWithHost lk.salyk.kg:30040 [15:47:28]ConnectInit lk.salyk.kg [15:47:28]written 0, free lines is 4095 [15:47:28]Connected sock=10 [15:47:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DA 88 07 01 71 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 10 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 20 02 00 35 04 06 00 64 B6 E7 01 17 2E 43 73 5E E3 EE B3 32 49 [15:47: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 37 36 4F 00 00 00 85 F6 47 00 55 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 37 36 10 04 04 00 75 20 02 00 F4 03 04 00 A5 0F C3 66 B6 04 01 00 00 32 82 CA 45 9D 0F 19 BA [15:47:29]CommunicateWithHost err = 0 [15:47:29]CheckOFDResponse [15:47:29]1017 (14) - 77093643461234 [15:47:29]1041 (16) - 0000000000871776 [15:47:29]1040 (4) - 139381 [15:47:29]1012 (4) - 19.08.2024 09:25 [15:47:29]1206 (1) - 0 [15:47:29]OFD Sender: Remove packet 139381 [15:47:29]ProducePacketName [15:47:29]name=ofd_packets/00139381 [15:47:29]NVStorageDeleteData [15:47:29]Write to MH i2c: 01 00 00 0E 16 24 [15:47:29]Write i2c OK [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: 01 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: 01 07 00 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: 01 07 00 0E 16 00 00 00 00 00 D4 0C 0B [15:47:29]RasterBufferAndPrint [15:47:29]line [15:47:29]line [15:47:29]line [15:47:29]line [15:47:29]line [15:47:29]written 0, free lines is 3290 [15:47:29]MH_Cut [15:47:29]Write to MH i2c: D1 01 00 15 16 01 FD [15:47:29]Write i2c OK [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: D1 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: D1 01 00 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: D1 01 00 15 16 00 FC [15:47:29]Write to MH i2c: 01 00 00 16 16 2C [15:47:29]Write i2c OK [15:47:29]MH_I2C_Read... [15:47:29]OFD Sender: No OFD packet to send [15:47:29]*** Cut start [15:47:29]*** Partial cut [15:47:29]*** CUTSNS_PIN = 1 [15:47:30]*** CUTSNS_PIN = 0 [15:47:30]*** Brake cut motor [15:47:30]Read from MH i2c: 01 [15:47:30]MH_I2C_Read... [15:47:30]*** Stop cut motor [15:47:30]*** Cut end [15:47:30]Read from MH i2c: 01 07 00 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: 01 07 00 16 16 00 00 00 00 00 FF 0F 41 [15:47:30]process_action close_receipt done [15:47:30]requested_data is exist [15:47:30]produce_requested_data [15:47:30]requested_item fm.sn is exist - process it [15:47:30]wFMCommunicate request_size=4 [15:47:30]MH_SAM_APDU [15:47:30]CAPDU: 80 11 00 00 [15:47:30]Write to MH i2c: E2 08 00 17 16 80 11 00 00 00 00 00 00 A7 [15:47:30]Write i2c OK [15:47:30]MH_I2C_Read... [15:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:30]Read from MH i2c: E2 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 17 00 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 17 00 17 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [15:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:47:30]wFMCommunicate OK [15:47:30]requested_item fd.num is exist - process it [15:47:30]SAM_PROTO_GetFieldsCounters [15:47:30]wFMCommunicate request_size=4 [15:47:30]MH_SAM_APDU [15:47:30]CAPDU: 80 13 00 00 [15:47:30]Write to MH i2c: E2 08 00 18 16 80 13 00 00 00 00 00 00 AA [15:47:30]Write i2c OK [15:47:30]MH_I2C_Read... [15:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:30]Read from MH i2c: E2 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 62 00 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 62 00 18 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [15:47: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:30]wFMCommunicate OK [15:47:30]SAM_PROTO_GetFieldsCounters done [15:47:30]requested_item shift.num is exist - process it [15:47:30]requested_item shift.opened is exist - process it [15:47:30]req_shift_opened [15:47:30]FM_GetShiftState [15:47:30]SAM_PROTO_GetShiftState [15:47:30]wFMCommunicate request_size=4 [15:47:30]MH_SAM_APDU [15:47:30]CAPDU: 80 13 01 00 [15:47:30]Write to MH i2c: E2 08 00 19 16 80 13 01 00 00 00 00 00 AC [15:47:30]Write i2c OK [15:47:30]MH_I2C_Read... [15:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:30]Read from MH i2c: E2 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 0E 00 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 0E 00 19 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 63 [15:47:30]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:47:30]wFMCommunicate OK [15:47:30]SAM_PROTO_GetShiftState done [15:47:30]FM_GetShiftState done [15:47:30]req_shift_opened done [15:47:30]requested_item shift.open_date is exist - process it [15:47:30]req_shift_open_date [15:47:30]req_shift_open_date done [15:47:30]produce_requested_data done [15:47:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139381,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:47:30]process_action_free close_receipt [15:47:30]json_value_free [15:47:30]json_value_free done [15:47:30]process_json_proto returns [15:47:30]Send response to host [15:47:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139381,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:47:30]free response buf [15:47:30]execute_script done [15:47:30]execute_script returns [15:47:30]free content buf [15:47:30]Sock 8.Close socket [15:47:30]Sock 8.Thread stoped [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:23]accept exits with 9 [15:49:23]New connection [15:49:23]New thread 3066674532 created [15:49:23]Thread 3066817892 joined [15:49:23]Waiting for new connection... [15:49:23] Sock 9.Parse request [15:49:23]Sock 9.Check first char [15:49:23]Sock 9.First char is OK [15:49:23]request: POST /json_proto HTTP/1.0 [15:49:23]Method: POST [15:49:23]URL: /json_proto [15:49:23]Method is POST - this is cgi request [15:49:23]url: /json_proto [15:49:23]query_string will be loaded in cgi processing [15:49:23]execute_cgi json_proto POST (null) [15:49:23]execute_cgi path=json_proto method=POST [15:49:23]POST find Content-Length [15:49:23]Host: 172.17.45.67:8080 [15:49:23]Content-Length: 677 [15:49:23]Content-Type: application/json [15:49:23] [15:49:23]POST finish read [15:49:23]Found Content-Length = 677 [15:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:49:23]execute_script... [15:49: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)593225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:49:23]POST & json_proto [15:49:23]process_json_proto [15:49:23]json parsed OK: [15:49:23]protocol is kg_v1.0 [15:49:23]action value=close_receipt [15:49:23]process_action close_receipt [15:49:23]cmd_close_receipt [15:49:23]MH_GetDate [15:49:23]Write to MH i2c: F0 00 00 1A 16 1F [15:49:23]Write i2c OK [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: F0 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: F0 09 00 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: F0 09 00 1A 16 00 84 69 C3 66 5F 7F 2B 66 AD [15:49:23]GetLastDocTimeStamp 1724082448 [15:49:23]current date 1724082564 [15:49:23]FM_GetShiftState [15:49:23]SAM_PROTO_GetShiftState [15:49:23]wFMCommunicate request_size=4 [15:49:23]MH_SAM_APDU [15:49:23]CAPDU: 80 13 01 00 [15:49:23]Write to MH i2c: E2 08 00 1B 16 80 13 01 00 00 00 00 00 AE [15:49:23]Write i2c OK [15:49:23]MH_I2C_Read... [15:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:23]Read from MH i2c: E2 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: E2 0E 00 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: E2 0E 00 1B 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 65 [15:49:23]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:49:23]wFMCommunicate OK [15:49:23]SAM_PROTO_GetShiftState done [15:49:23]FM_GetShiftState done [15:49:23]opened in 1724027888 [15:49:23]opened+sec_in_day 1724114288 [15:49:23]quantity*price = 40002 [15:49:23]sum+1 = 40003 [15:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 217 19.08.2024 15:49 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139382 ФПД: 213401882287824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154924&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139382&fm=213401882287824&tin=02508201610067®Number=0000000000092569&sum=40000 [15:49:24]StoreToDocumentArchive [15:49:24]shift 452 fd 139382 [15:49:24]save to /storage/0452/doc_00139382 [15:49:24]save last doc name /storage/0452/doc_00139382 to /storage/kkm_last_doc_name [15:49:24]save OK [15:49:24]Clear old archive folders... [15:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:24]tlvbuf is B6EB94F0 [15:49:24]SAM_PROTO_ClearQueue [15:49:24]wFMCommunicate request_size=4 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 09 00 00 [15:49:24]Write to MH i2c: E2 08 00 28 16 80 09 00 00 00 00 00 00 B0 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 [15:49:24]MH_I2C_Read... [15:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:24]Read from MH i2c: E2 03 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [15:49:24]RAPDU: 90 00 [15:49:24]wFMCommunicate OK [15:49:24]SAM_PROTO_ClearQueue done [15:49:24]KKMCreateOFDPacket [15:49:24]OFDProtocolAddRootSTLVToBuf [15:49:24]FM_MakeSignedData [15:49:24]FM_MakeSignedData [15:49:24]SAM_PROTO_SignData [15:49:24]wFMCommunicate request_size=4 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 0D 01 02 [15:49:24]Write to MH i2c: E2 08 00 29 16 80 0D 01 02 00 00 00 00 B8 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:24]Read from MH i2c: E2 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 03 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [15:49:24]RAPDU: 90 00 [15:49:24]wFMCommunicate OK [15:49:24]wFMCommunicate request_size=255 [15:49:24]MH_SAM_APDU [15:49: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 D9 00 00 00 F4 03 04 00 84 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 20 02 00 35 04 06 00 C2 [15:49:24]Write to MH i2c: E2 02 01 2A 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 D9 00 00 00 F4 03 04 00 84 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 20 02 00 35 04 06 00 C2 00 00 34 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]OFD Sender: No OFD packet to send [15:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:24]Read from MH i2c: E2 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 03 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 03 00 2A 16 00 90 00 B4 [15:49:24]RAPDU: 90 00 [15:49:24]wFMCommunicate OK [15:49:24]wFMCommunicate request_size=10 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 0D 02 02 05 16 7F 63 5E D0 [15:49:24]Write to MH i2c: E2 0D 00 2B 16 80 0D 02 02 05 00 16 7F 63 5E D0 00 00 EB [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 03 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [15:49:25]RAPDU: 90 00 [15:49:25]wFMCommunicate OK [15:49:25]wFMCommunicate request_size=4 [15:49:25]MH_SAM_APDU [15:49:25]CAPDU: 80 0D 03 02 [15:49:25]Write to MH i2c: E2 08 00 2C 16 80 0D 03 02 00 00 00 00 BD [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 0B 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 0B 00 2C 16 00 66 00 25 8F EF 1B E6 20 90 00 E8 [15:49:25]RAPDU: 66 00 25 8F EF 1B E6 20 90 00 [15:49:25]wFMCommunicate OK [15:49:25]SAM_PROTO_SignData done [15:49:25]FM_MakeSignedData done [15:49:25]CreateOFDProtocolMessage [15:49:25]wFMCommunicate request_size=4 [15:49:25]MH_SAM_APDU [15:49:25]CAPDU: 80 11 00 00 [15:49:25]Write to MH i2c: E2 08 00 2D 16 80 11 00 00 00 00 00 00 BD [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 17 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 17 00 2D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [15:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:49:25]wFMCommunicate OK [15:49:25]CreateOFDProtocolMessage done [15:49:25]OFDSenderStorePacket 139382 [15:49:25]StoreOFDPacket docnum=139382 [15:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D5 8D 07 01 D1 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 D9 00 00 00 F4 03 04 00 84 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 20 02 00 35 04 06 00 C2 16 7F 63 5E D0 66 00 25 8F EF 1B E6 20 [15:49:25]CheckFolder [15:49:25]dirname=/storage/ofd_packets [15:49:25]CheckFolder done [15:49:25]ProducePacketName [15:49:25]name=ofd_packets/00139382 [15:49:25]NVStorageSaveData ofd_packets/00139382 [15:49:25]File name is /storage/ofd_packets/00139382 [15:49:25]Write 301 bytes [15:49:25]NVStorageSaveData done [15:49:25]OFDSenderStorePacket done [15:49:25]KKMCreateOFDPacket done [15:49:25]NVStorageSaveData kkm_last_timestamp [15:49:25]File name is /storage/kkm_last_timestamp [15:49:25]Write 4 bytes [15:49:25]NVStorageSaveData done [15:49:25]ExternCall_PrintAddStr [15:49:25]wPrintStart [15:49:25]Write to MH i2c: 01 00 00 2E 16 44 [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 07 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 07 00 2E 16 00 00 00 00 00 FF 0F 59 [15:49:25]RasterBufferAndPrint [15:49:25]line Счет N : (1)593225 [15:49:25]line ИНН: 02508201610067 [15:49:25]line Контрольно-Кассовый Чек [15:49:25]line ПРОДАЖА [15:49:25]line ТРК (МРК, ГНК) : 62 [15:49:25]line Товар: 2710124130 [15:49:25]line Аи-92-К-5 [15:49:25]line 5.900 * 67.80 [15:49:25]line = 400.02 [15:49:25]line НДС 12% НСП 1% [15:49:25]line > о реализуемом товаре [15:49:25]line ОКРУГЛЕНИЕ: -0.02 [15:49:25]line ИТОГО: 400.00 [15:49:25]line Внесено: 400.00 [15:49:25]line СДАЧА: 0.00 [15:49:25]line НСП 1% : 3.54 [15:49:25]line НДС 12% : 42.48 [15:49:25]line Наличными: 400.00 [15:49:25]line Безнал.: 0.00 [15:49:25]line Место: АЗС № 136 "Партнер Нефть" [15:49:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:49:25]line СНО: Общий режим [15:49:25]line Чек 217 19.08.2024 15:49 [15:49:25]line Смена: 452 ФФД: 1.0 [15:49:25]line ЗНМ: 0300000067 [15:49:25]line РНМ: 0000000000092569 [15:49:25]line Версия ККМ: 001 [15:49:25]line ФМ: 0000000000871776 [15:49:25]line ФД: 139382 [15:49:25]line ФПД: 213401882287824 [15:49:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154924&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139382&fm=213401882287824&tin=02508201610067®Number=0000000000092569&sum=40000 [15:49:25]OFD Sender: Processing packet 139382 [packets to send 137, broken 136] [15:49:25]ProducePacketName [15:49:25]name=ofd_packets/00139382 [15:49:25]OFD Sender: To server: pG, [15:49:25]CommunicateWithHost lk.salyk.kg:30040 [15:49:25]ConnectInit lk.salyk.kg [15:49:25]written 0, free lines is 4095 [15:49:25]Connected sock=10 [15:49: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 37 36 0F 01 00 00 D5 8D 07 01 D1 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 D9 00 00 00 F4 03 04 00 84 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 20 02 00 35 04 06 00 C2 16 7F 63 5E D0 66 00 25 8F EF 1B E6 20 [15:49: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 37 36 4F 00 00 00 C0 64 47 00 6B 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 20 02 00 F4 03 04 00 1A 10 C3 66 B6 04 01 00 00 4F EF 3A C2 84 43 1C 1E [15:49:25]CommunicateWithHost err = 0 [15:49:25]CheckOFDResponse [15:49:25]1017 (14) - 77093643461234 [15:49:25]1041 (16) - 0000000000871776 [15:49:25]1040 (4) - 139382 [15:49:25]1012 (4) - 19.08.2024 09:27 [15:49:25]1206 (1) - 0 [15:49:25]OFD Sender: Remove packet 139382 [15:49:25]ProducePacketName [15:49:25]name=ofd_packets/00139382 [15:49:25]NVStorageDeleteData [15:49:25]Write to MH i2c: 01 00 00 59 16 6F [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 07 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 07 00 59 16 00 00 00 00 00 D4 0C 56 [15:49:25]RasterBufferAndPrint [15:49:25]line [15:49:25]line [15:49:25]line [15:49:25]line [15:49:25]line [15:49:25]written 0, free lines is 3292 [15:49:25]MH_Cut [15:49:25]Write to MH i2c: D1 01 00 60 16 01 48 [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: D1 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: D1 01 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: D1 01 00 60 16 00 47 [15:49:25]Write to MH i2c: 01 00 00 61 16 77 [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:26]OFD Sender: No OFD packet to send [15:49:26]*** Cut start [15:49:26]*** Partial cut [15:49:26]*** CUTSNS_PIN = 1 [15:49:26]*** CUTSNS_PIN = 0 [15:49:26]*** Brake cut motor [15:49:27]Read from MH i2c: 01 [15:49:27]MH_I2C_Read... [15:49:27]*** Stop cut motor [15:49:27]*** Cut end [15:49:27]Read from MH i2c: 01 07 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: 01 07 00 61 16 00 00 00 00 00 FF 0F 8C [15:49:27]process_action close_receipt done [15:49:27]requested_data is exist [15:49:27]produce_requested_data [15:49:27]requested_item fm.sn is exist - process it [15:49:27]wFMCommunicate request_size=4 [15:49:27]MH_SAM_APDU [15:49:27]CAPDU: 80 11 00 00 [15:49:27]Write to MH i2c: E2 08 00 62 16 80 11 00 00 00 00 00 00 F2 [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:27]Read from MH i2c: E2 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 17 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 17 00 62 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [15:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:49:27]wFMCommunicate OK [15:49:27]requested_item fd.num is exist - process it [15:49:27]SAM_PROTO_GetFieldsCounters [15:49:27]wFMCommunicate request_size=4 [15:49:27]MH_SAM_APDU [15:49:27]CAPDU: 80 13 00 00 [15:49:27]Write to MH i2c: E2 08 00 63 16 80 13 00 00 00 00 00 00 F5 [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:27]Read from MH i2c: E2 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 62 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 62 00 63 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [15:49: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:27]wFMCommunicate OK [15:49:27]SAM_PROTO_GetFieldsCounters done [15:49:27]requested_item shift.num is exist - process it [15:49:27]requested_item shift.opened is exist - process it [15:49:27]req_shift_opened [15:49:27]FM_GetShiftState [15:49:27]SAM_PROTO_GetShiftState [15:49:27]wFMCommunicate request_size=4 [15:49:27]MH_SAM_APDU [15:49:27]CAPDU: 80 13 01 00 [15:49:27]Write to MH i2c: E2 08 00 64 16 80 13 01 00 00 00 00 00 F7 [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 [15:49:27]MH_I2C_Read... [15:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:27]Read from MH i2c: E2 0E 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 0E 00 64 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AE [15:49:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:49:27]wFMCommunicate OK [15:49:27]SAM_PROTO_GetShiftState done [15:49:27]FM_GetShiftState done [15:49:27]req_shift_opened done [15:49:27]requested_item shift.open_date is exist - process it [15:49:27]req_shift_open_date [15:49:27]req_shift_open_date done [15:49:27]produce_requested_data done [15:49:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139382,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:49:27]process_action_free close_receipt [15:49:27]json_value_free [15:49:27]json_value_free done [15:49:27]process_json_proto returns [15:49:27]Send response to host [15:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139382,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:49:27]free response buf [15:49:27]execute_script done [15:49:27]execute_script returns [15:49:27]free content buf [15:49:27]Sock 9.Close socket [15:49:27]Sock 9.Thread stoped [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:52]accept exits with 8 [15:49:52]New connection [15:49:52]New thread 3066817892 created [15:49:52]Thread 3066674532 joined [15:49:52]Waiting for new connection... [15:49:52] Sock 8.Parse request [15:49:52]Sock 8.Check first char [15:49:52]Sock 8.First char is OK [15:49:52]request: POST /json_proto HTTP/1.0 [15:49:52]Method: POST [15:49:52]URL: /json_proto [15:49:52]Method is POST - this is cgi request [15:49:52]url: /json_proto [15:49:52]query_string will be loaded in cgi processing [15:49:52]execute_cgi json_proto POST (null) [15:49:52]execute_cgi path=json_proto method=POST [15:49:52]POST find Content-Length [15:49:52]Host: 172.17.45.67:8080 [15:49:52]Content-Length: 682 [15:49:52]Content-Type: application/json [15:49:52] [15:49:52]POST finish read [15:49:52]Found Content-Length = 682 [15:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:52]execute_script... [15:49: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)593224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:52]POST & json_proto [15:49:52]process_json_proto [15:49:52]json parsed OK: [15:49:52]protocol is kg_v1.0 [15:49:52]action value=close_receipt [15:49:52]process_action close_receipt [15:49:52]cmd_close_receipt [15:49:52]MH_GetDate [15:49:52]Write to MH i2c: F0 00 00 65 16 6A [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: F0 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: F0 09 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: F0 09 00 65 16 00 A2 69 C3 66 5F 7F 2B 66 16 [15:49:52]GetLastDocTimeStamp 1724082564 [15:49:52]current date 1724082594 [15:49:52]FM_GetShiftState [15:49:52]SAM_PROTO_GetShiftState [15:49:52]wFMCommunicate request_size=4 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 13 01 00 [15:49:52]Write to MH i2c: E2 08 00 66 16 80 13 01 00 00 00 00 00 F9 [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 0E 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 0E 00 66 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B0 [15:49:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:49:52]wFMCommunicate OK [15:49:52]SAM_PROTO_GetShiftState done [15:49:52]FM_GetShiftState done [15:49:52]opened in 1724027888 [15:49:52]opened+sec_in_day 1724114288 [15:49:52]quantity*price = 200010 [15:49:52]sum+1 = 200011 [15:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 218 19.08.2024 15:49 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139383 ФПД: 129856654972474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154954&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139383&fm=129856654972474&tin=02508201610067®Number=0000000000092569&sum=200000 [15:49:53]StoreToDocumentArchive [15:49:53]shift 452 fd 139383 [15:49:53]save to /storage/0452/doc_00139383 [15:49:53]save last doc name /storage/0452/doc_00139383 to /storage/kkm_last_doc_name [15:49:53]save OK [15:49:53]Clear old archive folders... [15:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:53]tlvbuf is 01288DC0 [15:49:53]SAM_PROTO_ClearQueue [15:49:53]wFMCommunicate request_size=4 [15:49:53]MH_SAM_APDU [15:49:53]CAPDU: 80 09 00 00 [15:49:53]Write to MH i2c: E2 08 00 73 16 80 09 00 00 00 00 00 00 FB [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:53]Read from MH i2c: E2 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 03 00 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 03 00 73 16 00 90 00 FD [15:49:53]RAPDU: 90 00 [15:49:53]wFMCommunicate OK [15:49:53]SAM_PROTO_ClearQueue done [15:49:53]KKMCreateOFDPacket [15:49:53]OFDProtocolAddRootSTLVToBuf [15:49:53]FM_MakeSignedData [15:49:53]FM_MakeSignedData [15:49:53]SAM_PROTO_SignData [15:49:53]wFMCommunicate request_size=4 [15:49:53]MH_SAM_APDU [15:49:53]CAPDU: 80 0D 01 02 [15:49:53]Write to MH i2c: E2 08 00 74 16 80 0D 01 02 00 00 00 00 03 [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:53]Read from MH i2c: E2 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 03 00 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 03 00 74 16 00 90 00 FE [15:49:53]RAPDU: 90 00 [15:49:53]wFMCommunicate OK [15:49:53]wFMCommunicate request_size=255 [15:49:53]MH_SAM_APDU [15:49: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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A2 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 20 02 00 35 04 06 00 76 [15:49:53]Write to MH i2c: E2 02 01 75 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A2 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 20 02 00 35 04 06 00 76 00 00 72 [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 03 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 03 00 75 16 00 90 00 FF [15:49:54]RAPDU: 90 00 [15:49:54]wFMCommunicate OK [15:49:54]wFMCommunicate request_size=10 [15:49:54]MH_SAM_APDU [15:49:54]CAPDU: 80 0D 02 02 05 1A 9B CA 96 3A [15:49:54]Write to MH i2c: E2 0D 00 76 16 80 0D 02 02 05 00 1A 9B CA 96 3A 00 00 5F [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 03 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 03 00 76 16 00 90 00 00 [15:49:54]RAPDU: 90 00 [15:49:54]wFMCommunicate OK [15:49:54]wFMCommunicate request_size=4 [15:49:54]MH_SAM_APDU [15:49:54]CAPDU: 80 0D 03 02 [15:49:54]Write to MH i2c: E2 08 00 77 16 80 0D 03 02 00 00 00 00 08 [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 0B 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 0B 00 77 16 00 8C C3 D1 AD A4 EB EA C5 90 00 14 [15:49:54]RAPDU: 8C C3 D1 AD A4 EB EA C5 90 00 [15:49:54]wFMCommunicate OK [15:49:54]SAM_PROTO_SignData done [15:49:54]FM_MakeSignedData done [15:49:54]CreateOFDProtocolMessage [15:49:54]wFMCommunicate request_size=4 [15:49:54]MH_SAM_APDU [15:49:54]CAPDU: 80 11 00 00 [15:49:54]Write to MH i2c: E2 08 00 78 16 80 11 00 00 00 00 00 00 08 [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 17 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 17 00 78 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [15:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:49:54]wFMCommunicate OK [15:49:54]CreateOFDProtocolMessage done [15:49:54]OFDSenderStorePacket 139383 [15:49:54]StoreOFDPacket docnum=139383 [15:49:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 79 41 07 01 35 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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A2 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 20 02 00 35 04 06 00 76 1A 9B CA 96 3A 8C C3 D1 AD A4 EB EA C5 [15:49:54]CheckFolder [15:49:54]dirname=/storage/ofd_packets [15:49:54]CheckFolder done [15:49:54]ProducePacketName [15:49:54]name=ofd_packets/00139383 [15:49:54]NVStorageSaveData ofd_packets/00139383 [15:49:54]File name is /storage/ofd_packets/00139383 [15:49:54]Write 301 bytes [15:49:54]NVStorageSaveData done [15:49:54]OFDSenderStorePacket done [15:49:54]KKMCreateOFDPacket done [15:49:54]NVStorageSaveData kkm_last_timestamp [15:49:54]File name is /storage/kkm_last_timestamp [15:49:54]Write 4 bytes [15:49:54]NVStorageSaveData done [15:49:54]OFD Sender: Processing packet 139383 [packets to send 137, broken 136] [15:49:54]ProducePacketName [15:49:54]name=ofd_packets/00139383 [15:49:54]OFD Sender: To server: pG, [15:49:54]CommunicateWithHost lk.salyk.kg:30040 [15:49:54]ConnectInit lk.salyk.kg [15:49:54]ExternCall_PrintAddStr [15:49:54]wPrintStart [15:49:54]Write to MH i2c: 01 00 00 79 16 8F [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: 01 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: 01 07 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: 01 07 00 79 16 00 00 00 00 00 FF 0F A4 [15:49:54]RasterBufferAndPrint [15:49:54]line Счет N : (1)593224 [15:49:54]line ИНН: 02508201610067 [15:49:54]line Контрольно-Кассовый Чек [15:49:54]line ПРОДАЖА [15:49:54]line ТРК (МРК, ГНК) : 52 [15:49:54]line Товар: 2710124130 [15:49:54]line Аи-92-К-5 [15:49:54]line 29.500 * 67.80 [15:49:54]line = 2000.10 [15:49:54]line НДС 12% НСП 1% [15:49:54]line > о реализуемом товаре [15:49:54]line ОКРУГЛЕНИЕ: -0.10 [15:49:54]line ИТОГО: 2000.00 [15:49:54]line Внесено: 2000.00 [15:49:54]line СДАЧА: 0.00 [15:49:54]line НСП 1% : 17.70 [15:49:54]line НДС 12% : 212.40 [15:49:54]line Наличными: 2000.00 [15:49:54]line Безнал.: 0.00 [15:49:54]line Место: АЗС № 136 "Партнер Нефть" [15:49:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:49:54]line СНО: Общий режим [15:49:54]line Чек 218 19.08.2024 15:49 [15:49:54]line Смена: 452 ФФД: 1.0 [15:49:54]line ЗНМ: 0300000067 [15:49:54]line РНМ: 0000000000092569 [15:49:54]line Версия ККМ: 001 [15:49:54]line ФМ: 0000000000871776 [15:49:54]line ФД: 139383 [15:49:54]line ФПД: 129856654972474 [15:49:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154954&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139383&fm=129856654972474&tin=02508201610067®Number=0000000000092569&sum=200000 [15:49:54]Connected sock=11 [15:49:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 79 41 07 01 35 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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 A2 69 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 20 02 00 35 04 06 00 76 1A 9B CA 96 3A 8C C3 D1 AD A4 EB EA C5 [15:49:54]written 0, free lines is 4095 [15:49: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 37 36 4F 00 00 00 43 90 47 00 10 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 37 36 10 04 04 00 77 20 02 00 F4 03 04 00 37 10 C3 66 B6 04 01 00 00 AD 5B FE B6 57 AC F6 9B [15:49:54]CommunicateWithHost err = 0 [15:49:54]CheckOFDResponse [15:49:54]1017 (14) - 77093643461234 [15:49:54]1041 (16) - 0000000000871776 [15:49:54]1040 (4) - 139383 [15:49:54]1012 (4) - 19.08.2024 09:28 [15:49:54]1206 (1) - 0 [15:49:54]OFD Sender: Remove packet 139383 [15:49:54]ProducePacketName [15:49:54]name=ofd_packets/00139383 [15:49:54]NVStorageDeleteData [15:49:55]Write to MH i2c: 01 00 00 A4 16 BA [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: 01 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: 01 07 00 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: 01 07 00 A4 16 00 00 00 00 00 D2 0C 9F [15:49:55]RasterBufferAndPrint [15:49:55]line [15:49:55]line [15:49:55]line [15:49:55]line [15:49:55]line [15:49:55]written 0, free lines is 3288 [15:49:55]MH_Cut [15:49:55]Write to MH i2c: D1 01 00 AB 16 01 93 [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: D1 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: D1 01 00 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: D1 01 00 AB 16 00 92 [15:49:55]Write to MH i2c: 01 00 00 AC 16 C2 [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]OFD Sender: No OFD packet to send [15:49:55]*** Cut start [15:49:55]*** Partial cut [15:49:55]*** CUTSNS_PIN = 1 [15:49:55]*** CUTSNS_PIN = 0 [15:49:56]*** Brake cut motor [15:49:56]Read from MH i2c: 01 [15:49:56]MH_I2C_Read... [15:49:56]*** Stop cut motor [15:49:56]*** Cut end [15:49:56]Read from MH i2c: 01 07 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: 01 07 00 AC 16 00 00 00 00 00 FF 0F D7 [15:49:56]process_action close_receipt done [15:49:56]requested_data is exist [15:49:56]produce_requested_data [15:49:56]requested_item fm.sn is exist - process it [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 11 00 00 [15:49:56]Write to MH i2c: E2 08 00 AD 16 80 11 00 00 00 00 00 00 3D [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 17 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 17 00 AD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [15:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:49:56]wFMCommunicate OK [15:49:56]requested_item fd.num is exist - process it [15:49:56]SAM_PROTO_GetFieldsCounters [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 13 00 00 [15:49:56]Write to MH i2c: E2 08 00 AE 16 80 13 00 00 00 00 00 00 40 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 62 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 62 00 AE 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:56]wFMCommunicate OK [15:49:56]SAM_PROTO_GetFieldsCounters done [15:49:56]requested_item shift.num is exist - process it [15:49:56]requested_item shift.opened is exist - process it [15:49:56]req_shift_opened [15:49:56]FM_GetShiftState [15:49:56]SAM_PROTO_GetShiftState [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 13 01 00 [15:49:56]Write to MH i2c: E2 08 00 AF 16 80 13 01 00 00 00 00 00 42 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 0E 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 0E 00 AF 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F9 [15:49:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:49:56]wFMCommunicate OK [15:49:56]SAM_PROTO_GetShiftState done [15:49:56]FM_GetShiftState done [15:49:56]req_shift_opened done [15:49:56]requested_item shift.open_date is exist - process it [15:49:56]req_shift_open_date [15:49:56]req_shift_open_date done [15:49:56]produce_requested_data done [15:49:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139383,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:49:56]process_action_free close_receipt [15:49:56]json_value_free [15:49:56]json_value_free done [15:49:56]process_json_proto returns [15:49:56]Send response to host [15:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139383,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:49:56]free response buf [15:49:56]execute_script done [15:49:56]execute_script returns [15:49:56]free content buf [15:49:56]Sock 8.Close socket [15:49:56]Sock 8.Thread stoped [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [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:48]accept exits with 9 [15:52:48]New connection [15:52:48]New thread 3066674532 created [15:52:48]Thread 3066817892 joined [15:52:48]Waiting for new connection... [15:52:48] Sock 9.Parse request [15:52:48]Sock 9.Check first char [15:52:48]Sock 9.First char is OK [15:52:48]request: POST /json_proto HTTP/1.0 [15:52:48]Method: POST [15:52:48]URL: /json_proto [15:52:48]Method is POST - this is cgi request [15:52:48]url: /json_proto [15:52:48]query_string will be loaded in cgi processing [15:52:48]execute_cgi json_proto POST (null) [15:52:48]execute_cgi path=json_proto method=POST [15:52:48]POST find Content-Length [15:52:48]Host: 172.17.45.67:8080 [15:52:48]Content-Length: 677 [15:52:48]Content-Type: application/json [15:52:48] [15:52:48]POST finish read [15:52:48]Found Content-Length = 677 [15:52:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:52:48]execute_script... [15:52: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)593226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:52:48]POST & json_proto [15:52:48]process_json_proto [15:52:48]json parsed OK: [15:52:48]protocol is kg_v1.0 [15:52:48]action value=close_receipt [15:52:48]process_action close_receipt [15:52:48]cmd_close_receipt [15:52:48]MH_GetDate [15:52:48]Write to MH i2c: F0 00 00 B0 16 B5 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: F0 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: F0 09 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: F0 09 00 B0 16 00 51 6A C3 66 5F 7F 2B 66 11 [15:52:48]GetLastDocTimeStamp 1724082594 [15:52:48]current date 1724082769 [15:52:48]FM_GetShiftState [15:52:48]SAM_PROTO_GetShiftState [15:52:48]wFMCommunicate request_size=4 [15:52:48]MH_SAM_APDU [15:52:48]CAPDU: 80 13 01 00 [15:52:48]Write to MH i2c: E2 08 00 B1 16 80 13 01 00 00 00 00 00 44 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:48]Read from MH i2c: E2 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 0E 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 0E 00 B1 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 FB [15:52:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:52:48]wFMCommunicate OK [15:52:48]SAM_PROTO_GetShiftState done [15:52:48]FM_GetShiftState done [15:52:48]opened in 1724027888 [15:52:48]opened+sec_in_day 1724114288 [15:52:48]quantity*price = 40068 [15:52:48]sum+1 = 40069 [15:52:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 219 19.08.2024 15:52 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139384 ФПД: 251242866384537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T155249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139384&fm=251242866384537&tin=02508201610067®Number=0000000000092569&sum=40000 [15:52:49]StoreToDocumentArchive [15:52:49]shift 452 fd 139384 [15:52:49]save to /storage/0452/doc_00139384 [15:52:49]save last doc name /storage/0452/doc_00139384 to /storage/kkm_last_doc_name [15:52:49]save OK [15:52:49]Clear old archive folders... [15:52:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:49]tlvbuf is 012635D0 [15:52:49]SAM_PROTO_ClearQueue [15:52:49]wFMCommunicate request_size=4 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 09 00 00 [15:52:49]Write to MH i2c: E2 08 00 BE 16 80 09 00 00 00 00 00 00 46 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 03 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 03 00 BE 16 00 90 00 48 [15:52:49]RAPDU: 90 00 [15:52:49]wFMCommunicate OK [15:52:49]SAM_PROTO_ClearQueue done [15:52:49]KKMCreateOFDPacket [15:52:49]OFDProtocolAddRootSTLVToBuf [15:52:49]FM_MakeSignedData [15:52:49]FM_MakeSignedData [15:52:49]SAM_PROTO_SignData [15:52:49]wFMCommunicate request_size=4 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 0D 01 02 [15:52:49]Write to MH i2c: E2 08 00 BF 16 80 0D 01 02 00 00 00 00 4E [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 03 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 03 00 BF 16 00 90 00 49 [15:52:49]RAPDU: 90 00 [15:52:49]wFMCommunicate OK [15:52:49]wFMCommunicate request_size=255 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 DB 00 00 00 F4 03 04 00 51 6A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 20 02 00 35 04 06 00 E4 [15:52:49]Write to MH i2c: E2 02 01 C0 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 DB 00 00 00 F4 03 04 00 51 6A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 20 02 00 35 04 06 00 E4 00 00 98 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 03 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 03 00 C0 16 00 90 00 4A [15:52:49]RAPDU: 90 00 [15:52:49]wFMCommunicate OK [15:52:49]wFMCommunicate request_size=10 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 0D 02 02 05 81 09 CD 9E 99 [15:52:49]Write to MH i2c: E2 0D 00 C1 16 80 0D 02 02 05 00 81 09 CD 9E 99 00 00 E9 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 03 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 03 00 C1 16 00 90 00 4B [15:52:49]RAPDU: 90 00 [15:52:49]wFMCommunicate OK [15:52:49]wFMCommunicate request_size=4 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 0D 03 02 [15:52:49]Write to MH i2c: E2 08 00 C2 16 80 0D 03 02 00 00 00 00 53 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 0B 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 0B 00 C2 16 00 01 72 68 1D E6 EE 6C 73 90 00 FF [15:52:49]RAPDU: 01 72 68 1D E6 EE 6C 73 90 00 [15:52:49]wFMCommunicate OK [15:52:49]SAM_PROTO_SignData done [15:52:49]FM_MakeSignedData done [15:52:49]CreateOFDProtocolMessage [15:52:49]wFMCommunicate request_size=4 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 11 00 00 [15:52:49]Write to MH i2c: E2 08 00 C3 16 80 11 00 00 00 00 00 00 53 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 17 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 17 00 C3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [15:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:52:49]wFMCommunicate OK [15:52:49]CreateOFDProtocolMessage done [15:52:49]OFDSenderStorePacket 139384 [15:52:49]StoreOFDPacket docnum=139384 [15:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C AD 07 01 5A 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 DB 00 00 00 F4 03 04 00 51 6A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 20 02 00 35 04 06 00 E4 81 09 CD 9E 99 01 72 68 1D E6 EE 6C 73 [15:52:49]CheckFolder [15:52:49]dirname=/storage/ofd_packets [15:52:49]CheckFolder done [15:52:49]ProducePacketName [15:52:49]name=ofd_packets/00139384 [15:52:49]NVStorageSaveData ofd_packets/00139384 [15:52:49]File name is /storage/ofd_packets/00139384 [15:52:49]Write 301 bytes [15:52:49]NVStorageSaveData done [15:52:49]OFDSenderStorePacket done [15:52:49]KKMCreateOFDPacket done [15:52:49]NVStorageSaveData kkm_last_timestamp [15:52:49]File name is /storage/kkm_last_timestamp [15:52:49]Write 4 bytes [15:52:49]NVStorageSaveData done [15:52:49]ExternCall_PrintAddStr [15:52:49]wPrintStart [15:52:49]Write to MH i2c: 01 00 00 C4 16 DA [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: 01 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: 01 07 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: 01 07 00 C4 16 00 00 00 00 00 FF 0F EF [15:52:49]RasterBufferAndPrint [15:52:49]line Счет N : (1)593226 [15:52:49]line ИНН: 02508201610067 [15:52:49]line Контрольно-Кассовый Чек [15:52:49]line ПРОДАЖА [15:52:49]line ТРК (МРК, ГНК) : 51 [15:52:49]line Товар: 2710124500 [15:52:49]line Аи-95-К-5 [15:52:49]line 5.400 * 74.20 [15:52:49]line = 400.68 [15:52:49]line НДС 12% НСП 1% [15:52:49]line > о реализуемом товаре [15:52:49]line ОКРУГЛЕНИЕ: -0.68 [15:52:49]line ИТОГО: 400.00 [15:52:49]line Внесено: 400.00 [15:52:49]line СДАЧА: 0.00 [15:52:49]line НСП 1% : 3.55 [15:52:49]line НДС 12% : 42.55 [15:52:49]line Наличными: 400.00 [15:52:49]line Безнал.: 0.00 [15:52:49]line Место: АЗС № 136 "Партнер Нефть" [15:52:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:52:49]line СНО: Общий режим [15:52:49]line Чек 219 19.08.2024 15:52 [15:52:49]line Смена: 452 ФФД: 1.0 [15:52:49]line ЗНМ: 0300000067 [15:52:49]line РНМ: 0000000000092569 [15:52:49]line Версия ККМ: 001 [15:52:49]line ФМ: 0000000000871776 [15:52:49]line ФД: 139384 [15:52:49]line ФПД: 251242866384537 [15:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T155249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139384&fm=251242866384537&tin=02508201610067®Number=0000000000092569&sum=40000 [15:52:50]written 0, free lines is 4095 [15:52:50]OFD Sender: Processing packet 139384 [packets to send 137, broken 136] [15:52:50]ProducePacketName [15:52:50]name=ofd_packets/00139384 [15:52:50]OFD Sender: To server: pG, [15:52:50]CommunicateWithHost lk.salyk.kg:30040 [15:52:50]ConnectInit lk.salyk.kg [15:52:50]Connected sock=8 [15:52: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 37 36 0F 01 00 00 9C AD 07 01 5A 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 DB 00 00 00 F4 03 04 00 51 6A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 20 02 00 35 04 06 00 E4 81 09 CD 9E 99 01 72 68 1D E6 EE 6C 73 [15:52: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 37 36 4F 00 00 00 C6 94 47 00 FF B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 20 02 00 F4 03 04 00 E7 10 C3 66 B6 04 01 00 00 C9 9F 2D 1C 37 ED 61 D9 [15:52:50]CommunicateWithHost err = 0 [15:52:50]CheckOFDResponse [15:52:50]1017 (14) - 77093643461234 [15:52:50]1041 (16) - 0000000000871776 [15:52:50]1040 (4) - 139384 [15:52:50]1012 (4) - 19.08.2024 09:31 [15:52:50]1206 (1) - 0 [15:52:50]OFD Sender: Remove packet 139384 [15:52:50]ProducePacketName [15:52:50]name=ofd_packets/00139384 [15:52:50]NVStorageDeleteData [15:52:50]Write to MH i2c: 01 00 00 EF 16 05 [15:52:50]Write i2c OK [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: 01 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: 01 07 00 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: 01 07 00 EF 16 00 00 00 00 00 C6 0C DE [15:52:50]RasterBufferAndPrint [15:52:50]line [15:52:50]line [15:52:50]line [15:52:50]line [15:52:50]line [15:52:50]written 0, free lines is 3276 [15:52:50]MH_Cut [15:52:50]Write to MH i2c: D1 01 00 F6 16 01 DE [15:52:50]Write i2c OK [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: D1 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: D1 01 00 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: D1 01 00 F6 16 00 DD [15:52:50]Write to MH i2c: 01 00 00 F7 16 0D [15:52:50]Write i2c OK [15:52:50]MH_I2C_Read... [15:52:51]OFD Sender: No OFD packet to send [15:52:51]*** Cut start [15:52:51]*** Partial cut [15:52:51]*** CUTSNS_PIN = 1 [15:52:51]*** CUTSNS_PIN = 0 [15:52:51]*** Brake cut motor [15:52:52]Read from MH i2c: 01 [15:52:52]MH_I2C_Read... [15:52:52]*** Stop cut motor [15:52:52]*** Cut end [15:52:52]Read from MH i2c: 01 07 00 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: 01 07 00 F7 16 00 00 00 00 00 FF 0F 22 [15:52:52]process_action close_receipt done [15:52:52]requested_data is exist [15:52:52]produce_requested_data [15:52:52]requested_item fm.sn is exist - process it [15:52:52]wFMCommunicate request_size=4 [15:52:52]MH_SAM_APDU [15:52:52]CAPDU: 80 11 00 00 [15:52:52]Write to MH i2c: E2 08 00 F8 16 80 11 00 00 00 00 00 00 88 [15:52:52]Write i2c OK [15:52:52]MH_I2C_Read... [15:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:52]Read from MH i2c: E2 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: E2 17 00 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: E2 17 00 F8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [15:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:52:52]wFMCommunicate OK [15:52:52]requested_item fd.num is exist - process it [15:52:52]SAM_PROTO_GetFieldsCounters [15:52:52]wFMCommunicate request_size=4 [15:52:52]MH_SAM_APDU [15:52:52]CAPDU: 80 13 00 00 [15:52:52]Write to MH i2c: E2 08 00 F9 16 80 13 00 00 00 00 00 00 8B [15:52:52]Write i2c OK [15:52:52]MH_I2C_Read... [15:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:52]Read from MH i2c: E2 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: E2 62 00 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: E2 62 00 F9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [15:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:52]wFMCommunicate OK [15:52:52]SAM_PROTO_GetFieldsCounters done [15:52:52]requested_item shift.num is exist - process it [15:52:52]requested_item shift.opened is exist - process it [15:52:52]req_shift_opened [15:52:52]FM_GetShiftState [15:52:52]SAM_PROTO_GetShiftState [15:52:52]wFMCommunicate request_size=4 [15:52:52]MH_SAM_APDU [15:52:52]CAPDU: 80 13 01 00 [15:52:52]Write to MH i2c: E2 08 00 FA 16 80 13 01 00 00 00 00 00 8D [15:52:52]Write i2c OK [15:52:52]MH_I2C_Read... [15:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:52]Read from MH i2c: E2 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: E2 0E 00 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: E2 0E 00 FA 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 44 [15:52:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [15:52:52]wFMCommunicate OK [15:52:52]SAM_PROTO_GetShiftState done [15:52:52]FM_GetShiftState done [15:52:52]req_shift_opened done [15:52:52]requested_item shift.open_date is exist - process it [15:52:52]req_shift_open_date [15:52:52]req_shift_open_date done [15:52:52]produce_requested_data done [15:52:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139384,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [15:52:52]process_action_free close_receipt [15:52:52]json_value_free [15:52:52]json_value_free done [15:52:52]process_json_proto returns [15:52:52]Send response to host [15:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139384,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [15:52:52]free response buf [15:52:52]execute_script done [15:52:52]execute_script returns [15:52:52]free content buf [15:52:52]Sock 9.Close socket [15:52:52]Sock 9.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:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:49]accept exits with 10 [16:00:49]New connection [16:00:49]New thread 3066817892 created [16:00:49]Thread 3066674532 joined [16:00:49]Waiting for new connection... [16:00:49] Sock 10.Parse request [16:00:49]Sock 10.Check first char [16:00:49]Sock 10.First char is OK [16:00:49]request: POST /json_proto HTTP/1.0 [16:00:49]Method: POST [16:00:49]URL: /json_proto [16:00:49]Method is POST - this is cgi request [16:00:49]url: /json_proto [16:00:49]query_string will be loaded in cgi processing [16:00:49]execute_cgi json_proto POST (null) [16:00:49]execute_cgi path=json_proto method=POST [16:00:49]POST find Content-Length [16:00:49]Host: 172.17.45.67:8080 [16:00:49]Content-Length: 677 [16:00:49]Content-Type: application/json [16:00:49] [16:00:49]POST finish read [16:00:49]Found Content-Length = 677 [16:00:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:49]execute_script... [16:00: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)593227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:49]POST & json_proto [16:00:49]process_json_proto [16:00:49]json parsed OK: [16:00:49]protocol is kg_v1.0 [16:00:49]action value=close_receipt [16:00:49]process_action close_receipt [16:00:49]cmd_close_receipt [16:00:49]MH_GetDate [16:00:49]Write to MH i2c: F0 00 00 FB 16 00 [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: F0 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: F0 09 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: F0 09 00 FB 16 00 32 6C C3 66 5F 7F 2B 66 3F [16:00:49]GetLastDocTimeStamp 1724082769 [16:00:49]current date 1724083250 [16:00:49]FM_GetShiftState [16:00:49]SAM_PROTO_GetShiftState [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 13 01 00 [16:00:49]Write to MH i2c: E2 08 00 FC 16 80 13 01 00 00 00 00 00 8F [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:49]Read from MH i2c: E2 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 0E 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 0E 00 FC 16 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 46 [16:00:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:00:49]wFMCommunicate OK [16:00:49]SAM_PROTO_GetShiftState done [16:00:49]FM_GetShiftState done [16:00:49]opened in 1724027888 [16:00:49]opened+sec_in_day 1724114288 [16:00:49]quantity*price = 60003 [16:00:49]sum+1 = 60004 [16:00:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 220 19.08.2024 16:00 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139385 ФПД: 3514855472672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160050&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139385&fm=3514855472672&tin=02508201610067®Number=0000000000092569&sum=60000 [16:00:50]StoreToDocumentArchive [16:00:50]shift 452 fd 139385 [16:00:50]save to /storage/0452/doc_00139385 [16:00:50]save last doc name /storage/0452/doc_00139385 to /storage/kkm_last_doc_name [16:00:50]save OK [16:00:50]Clear old archive folders... [16:00:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:50]tlvbuf is 01289390 [16:00:50]SAM_PROTO_ClearQueue [16:00:50]wFMCommunicate request_size=4 [16:00:50]MH_SAM_APDU [16:00:50]CAPDU: 80 09 00 00 [16:00:50]Write to MH i2c: E2 08 00 09 17 80 09 00 00 00 00 00 00 92 [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:50]Read from MH i2c: E2 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 03 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 03 00 09 17 00 90 00 94 [16:00:50]RAPDU: 90 00 [16:00:50]wFMCommunicate OK [16:00:50]SAM_PROTO_ClearQueue done [16:00:50]KKMCreateOFDPacket [16:00:50]OFDProtocolAddRootSTLVToBuf [16:00:50]FM_MakeSignedData [16:00:50]FM_MakeSignedData [16:00:50]SAM_PROTO_SignData [16:00:50]wFMCommunicate request_size=4 [16:00:50]MH_SAM_APDU [16:00:50]CAPDU: 80 0D 01 02 [16:00:50]Write to MH i2c: E2 08 00 0A 17 80 0D 01 02 00 00 00 00 9A [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:50]Read from MH i2c: E2 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 03 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 03 00 0A 17 00 90 00 95 [16:00:50]RAPDU: 90 00 [16:00:50]wFMCommunicate OK [16:00:50]wFMCommunicate request_size=255 [16:00:50]MH_SAM_APDU [16:00: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 DC 00 00 00 F4 03 04 00 32 6C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 20 02 00 35 04 06 00 03 [16:00:50]Write to MH i2c: E2 02 01 0B 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 DC 00 00 00 F4 03 04 00 32 6C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 20 02 00 35 04 06 00 03 00 00 F0 [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:50]Read from MH i2c: E2 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 03 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 03 00 0B 17 00 90 00 96 [16:00:50]RAPDU: 90 00 [16:00:50]wFMCommunicate OK [16:00:50]wFMCommunicate request_size=10 [16:00:50]MH_SAM_APDU [16:00:50]CAPDU: 80 0D 02 02 05 32 5D B6 3E 20 [16:00:50]Write to MH i2c: E2 0D 00 0C 17 80 0D 02 02 05 00 32 5D B6 3E 20 00 00 4A [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:50]Read from MH i2c: E2 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 03 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 03 00 0C 17 00 90 00 97 [16:00:50]RAPDU: 90 00 [16:00:50]wFMCommunicate OK [16:00:50]wFMCommunicate request_size=4 [16:00:50]MH_SAM_APDU [16:00:50]CAPDU: 80 0D 03 02 [16:00:50]Write to MH i2c: E2 08 00 0D 17 80 0D 03 02 00 00 00 00 9F [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:50]Read from MH i2c: E2 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 0B 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 0B 00 0D 17 00 87 D2 C0 9D D8 02 AA F9 90 00 D3 [16:00:50]RAPDU: 87 D2 C0 9D D8 02 AA F9 90 00 [16:00:50]wFMCommunicate OK [16:00:50]SAM_PROTO_SignData done [16:00:50]FM_MakeSignedData done [16:00:50]CreateOFDProtocolMessage [16:00:50]wFMCommunicate request_size=4 [16:00:50]MH_SAM_APDU [16:00:50]CAPDU: 80 11 00 00 [16:00:50]Write to MH i2c: E2 08 00 0E 17 80 11 00 00 00 00 00 00 9F [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:50]Read from MH i2c: E2 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 17 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 17 00 0E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [16:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:00:50]wFMCommunicate OK [16:00:50]CreateOFDProtocolMessage done [16:00:50]OFDSenderStorePacket 139385 [16:00:50]StoreOFDPacket docnum=139385 [16:00:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F 0F 07 01 0C 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 DC 00 00 00 F4 03 04 00 32 6C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 20 02 00 35 04 06 00 03 32 5D B6 3E 20 87 D2 C0 9D D8 02 AA F9 [16:00:50]CheckFolder [16:00:50]dirname=/storage/ofd_packets [16:00:50]CheckFolder done [16:00:50]ProducePacketName [16:00:50]name=ofd_packets/00139385 [16:00:50]NVStorageSaveData ofd_packets/00139385 [16:00:50]File name is /storage/ofd_packets/00139385 [16:00:50]Write 301 bytes [16:00:50]NVStorageSaveData done [16:00:50]OFDSenderStorePacket done [16:00:50]KKMCreateOFDPacket done [16:00:50]NVStorageSaveData kkm_last_timestamp [16:00:50]File name is /storage/kkm_last_timestamp [16:00:50]Write 4 bytes [16:00:50]NVStorageSaveData done [16:00:50]ExternCall_PrintAddStr [16:00:50]wPrintStart [16:00:50]Write to MH i2c: 01 00 00 0F 17 26 [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: 01 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: 01 07 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: 01 07 00 0F 17 00 00 00 00 00 FF 0F 3B [16:00:50]RasterBufferAndPrint [16:00:50]line Счет N : (1)593227 [16:00:50]line ИНН: 02508201610067 [16:00:50]line Контрольно-Кассовый Чек [16:00:50]line ПРОДАЖА [16:00:50]line ТРК (МРК, ГНК) : 62 [16:00:50]line Товар: 2710124130 [16:00:50]line Аи-92-К-5 [16:00:50]line 8.850 * 67.80 [16:00:50]line = 600.03 [16:00:50]line НДС 12% НСП 1% [16:00:50]line > о реализуемом товаре [16:00:50]line ОКРУГЛЕНИЕ: -0.03 [16:00:50]line ИТОГО: 600.00 [16:00:50]line Внесено: 600.00 [16:00:50]line СДАЧА: 0.00 [16:00:50]line НСП 1% : 5.31 [16:00:50]line НДС 12% : 63.72 [16:00:50]line Наличными: 600.00 [16:00:50]line Безнал.: 0.00 [16:00:50]line Место: АЗС № 136 "Партнер Нефть" [16:00:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:00:50]line СНО: Общий режим [16:00:50]line Чек 220 19.08.2024 16:00 [16:00:50]line Смена: 452 ФФД: 1.0 [16:00:50]line ЗНМ: 0300000067 [16:00:50]line РНМ: 0000000000092569 [16:00:50]line Версия ККМ: 001 [16:00:50]line ФМ: 0000000000871776 [16:00:50]line ФД: 139385 [16:00:50]line ФПД: 3514855472672 [16:00:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160050&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139385&fm=3514855472672&tin=02508201610067®Number=0000000000092569&sum=60000 [16:00:51]written 0, free lines is 4095 [16:00:51]OFD Sender: Processing packet 139385 [packets to send 137, broken 136] [16:00:51]ProducePacketName [16:00:51]name=ofd_packets/00139385 [16:00:51]OFD Sender: To server: pG, [16:00:51]CommunicateWithHost lk.salyk.kg:30040 [16:00:51]ConnectInit lk.salyk.kg [16:00:51]Connected sock=9 [16:00: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 37 36 0F 01 00 00 2F 0F 07 01 0C 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 DC 00 00 00 F4 03 04 00 32 6C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 20 02 00 35 04 06 00 03 32 5D B6 3E 20 87 D2 C0 9D D8 02 AA F9 [16:00: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 37 36 4F 00 00 00 0A 40 47 00 AB 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 20 02 00 F4 03 04 00 C8 12 C3 66 B6 04 01 00 00 FF B6 6C 36 72 F4 48 DE [16:00:51]CommunicateWithHost err = 0 [16:00:51]CheckOFDResponse [16:00:51]1017 (14) - 77093643461234 [16:00:51]1041 (16) - 0000000000871776 [16:00:51]1040 (4) - 139385 [16:00:51]1012 (4) - 19.08.2024 09:39 [16:00:51]1206 (1) - 0 [16:00:51]OFD Sender: Remove packet 139385 [16:00:51]ProducePacketName [16:00:51]name=ofd_packets/00139385 [16:00:51]NVStorageDeleteData [16:00:51]Write to MH i2c: 01 00 00 3A 17 51 [16:00:51]Write i2c OK [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: 01 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: 01 07 00 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: 01 07 00 3A 17 00 00 00 00 00 D5 0C 39 [16:00:51]RasterBufferAndPrint [16:00:51]line [16:00:51]line [16:00:51]line [16:00:51]line [16:00:51]line [16:00:51]written 0, free lines is 3292 [16:00:51]MH_Cut [16:00:51]Write to MH i2c: D1 01 00 41 17 01 2A [16:00:51]Write i2c OK [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: D1 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: D1 01 00 [16:00:51]MH_I2C_Read... [16:00:51]Read from MH i2c: D1 01 00 41 17 00 29 [16:00:51]Write to MH i2c: 01 00 00 42 17 59 [16:00:51]Write i2c OK [16:00:51]MH_I2C_Read... [16:00:52]OFD Sender: No OFD packet to send [16:00:52]*** Cut start [16:00:52]*** Partial cut [16:00:52]*** CUTSNS_PIN = 1 [16:00:52]*** CUTSNS_PIN = 0 [16:00:52]*** Brake cut motor [16:00:52]Read from MH i2c: 01 [16:00:52]MH_I2C_Read... [16:00:52]*** Stop cut motor [16:00:52]*** Cut end [16:00:52]Read from MH i2c: 01 07 00 [16:00:52]MH_I2C_Read... [16:00:52]Read from MH i2c: 01 07 00 42 17 00 00 00 00 00 FF 0F 6E [16:00:52]process_action close_receipt done [16:00:52]requested_data is exist [16:00:52]produce_requested_data [16:00:52]requested_item fm.sn is exist - process it [16:00:52]wFMCommunicate request_size=4 [16:00:52]MH_SAM_APDU [16:00:52]CAPDU: 80 11 00 00 [16:00:52]Write to MH i2c: E2 08 00 43 17 80 11 00 00 00 00 00 00 D4 [16:00:52]Write i2c OK [16:00:52]MH_I2C_Read... [16:00:52]Read from MH i2c: E2 [16:00:52]MH_I2C_Read... [16:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:52]Read from MH i2c: E2 17 00 [16:00:52]MH_I2C_Read... [16:00:52]Read from MH i2c: E2 17 00 43 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2B [16:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:00:52]wFMCommunicate OK [16:00:52]requested_item fd.num is exist - process it [16:00:52]SAM_PROTO_GetFieldsCounters [16:00:52]wFMCommunicate request_size=4 [16:00:52]MH_SAM_APDU [16:00:52]CAPDU: 80 13 00 00 [16:00:52]Write to MH i2c: E2 08 00 44 17 80 13 00 00 00 00 00 00 D7 [16:00:52]Write i2c OK [16:00:52]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 62 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 62 00 44 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [16: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:53]wFMCommunicate OK [16:00:53]SAM_PROTO_GetFieldsCounters done [16:00:53]requested_item shift.num is exist - process it [16:00:53]requested_item shift.opened is exist - process it [16:00:53]req_shift_opened [16:00:53]FM_GetShiftState [16:00:53]SAM_PROTO_GetShiftState [16:00:53]wFMCommunicate request_size=4 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 13 01 00 [16:00:53]Write to MH i2c: E2 08 00 45 17 80 13 01 00 00 00 00 00 D9 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 0E 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 0E 00 45 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 90 [16:00:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:00:53]wFMCommunicate OK [16:00:53]SAM_PROTO_GetShiftState done [16:00:53]FM_GetShiftState done [16:00:53]req_shift_opened done [16:00:53]requested_item shift.open_date is exist - process it [16:00:53]req_shift_open_date [16:00:53]req_shift_open_date done [16:00:53]produce_requested_data done [16:00:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139385,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:00:53]process_action_free close_receipt [16:00:53]json_value_free [16:00:53]json_value_free done [16:00:53]process_json_proto returns [16:00:53]Send response to host [16:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139385,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:00:53]free response buf [16:00:53]execute_script done [16:00:53]execute_script returns [16:00:53]free content buf [16:00:53]Sock 10.Close socket [16:00:53]Sock 10.Thread stoped [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]accept exits with 8 [16:06:07]New connection [16:06:07]New thread 3066674532 created [16:06:07]Thread 3066817892 joined [16:06:07]Waiting for new connection... [16:06:07] Sock 8.Parse request [16:06:07]Sock 8.Check first char [16:06:07]Sock 8.First char is OK [16:06:07]request: POST /json_proto HTTP/1.0 [16:06:07]Method: POST [16:06:07]URL: /json_proto [16:06:07]Method is POST - this is cgi request [16:06:07]url: /json_proto [16:06:07]query_string will be loaded in cgi processing [16:06:07]execute_cgi json_proto POST (null) [16:06:07]execute_cgi path=json_proto method=POST [16:06:07]POST find Content-Length [16:06:07]Host: 172.17.45.67:8080 [16:06:07]Content-Length: 663 [16:06:07]Content-Type: application/json [16:06:07] [16:06:07]POST finish read [16:06:07]Found Content-Length = 663 [16:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 28.490, "sum" : 1960.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1960.00, "total" : 1960.00, "payments": [ { "type": 0, "sum" : 1960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:07]execute_script... [16:06: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)593228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 28.490, "sum" : 1960.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1960.00, "total" : 1960.00, "payments": [ { "type": 0, "sum" : 1960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:07]POST & json_proto [16:06:07]process_json_proto [16:06:07]json parsed OK: [16:06:07]protocol is kg_v1.0 [16:06:07]action value=close_receipt [16:06:07]process_action close_receipt [16:06:07]cmd_close_receipt [16:06:07]MH_GetDate [16:06:07]Write to MH i2c: F0 00 00 46 17 4C [16:06:07]Write i2c OK [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: F0 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: F0 09 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: F0 09 00 46 17 00 70 6D C3 66 5F 7F 2B 66 CA [16:06:07]GetLastDocTimeStamp 1724083250 [16:06:07]current date 1724083568 [16:06:07]FM_GetShiftState [16:06:07]SAM_PROTO_GetShiftState [16:06:07]wFMCommunicate request_size=4 [16:06:07]MH_SAM_APDU [16:06:07]CAPDU: 80 13 01 00 [16:06:07]Write to MH i2c: E2 08 00 47 17 80 13 01 00 00 00 00 00 DB [16:06:07]Write i2c OK [16:06:07]MH_I2C_Read... [16:06:07]OFD Sender: No OFD packet to send [16:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:07]Read from MH i2c: E2 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 0E 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 0E 00 47 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 92 [16:06:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:06:07]wFMCommunicate OK [16:06:07]SAM_PROTO_GetShiftState done [16:06:07]FM_GetShiftState done [16:06:07]opened in 1724027888 [16:06:07]opened+sec_in_day 1724114288 [16:06:07]quantity*price = 196011 [16:06:07]sum+1 = 196012 [16:06:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1960.00 Внесено: 1960.00 СДАЧА: 0.00 НСП 1% : 17.35 НДС 12% : 208.15 Наличными: 1960.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 221 19.08.2024 16:06 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139386 ФПД: 33878630009186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160608&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139386&fm=33878630009186&tin=02508201610067®Number=0000000000092569&sum=196000 [16:06:08]StoreToDocumentArchive [16:06:08]shift 452 fd 139386 [16:06:08]save to /storage/0452/doc_00139386 [16:06:08]save last doc name /storage/0452/doc_00139386 to /storage/kkm_last_doc_name [16:06:08]save OK [16:06:08]Clear old archive folders... [16:06:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:06:08]tlvbuf is 01239E10 [16:06:08]SAM_PROTO_ClearQueue [16:06:08]wFMCommunicate request_size=4 [16:06:08]MH_SAM_APDU [16:06:08]CAPDU: 80 09 00 00 [16:06:08]Write to MH i2c: E2 08 00 54 17 80 09 00 00 00 00 00 00 DD [16:06:08]Write i2c OK [16:06:08]MH_I2C_Read... [16:06:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:08]Read from MH i2c: E2 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: E2 03 00 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: E2 03 00 54 17 00 90 00 DF [16:06:08]RAPDU: 90 00 [16:06:08]wFMCommunicate OK [16:06:08]SAM_PROTO_ClearQueue done [16:06:08]KKMCreateOFDPacket [16:06:08]OFDProtocolAddRootSTLVToBuf [16:06:08]FM_MakeSignedData [16:06:08]FM_MakeSignedData [16:06:08]SAM_PROTO_SignData [16:06:08]wFMCommunicate request_size=4 [16:06:08]MH_SAM_APDU [16:06:08]CAPDU: 80 0D 01 02 [16:06:08]Write to MH i2c: E2 08 00 55 17 80 0D 01 02 00 00 00 00 E5 [16:06:08]Write i2c OK [16:06:08]MH_I2C_Read... [16:06:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:08]Read from MH i2c: E2 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: E2 03 00 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: E2 03 00 55 17 00 90 00 E0 [16:06:08]RAPDU: 90 00 [16:06:08]wFMCommunicate OK [16:06:08]wFMCommunicate request_size=253 [16:06:08]MH_SAM_APDU [16:06:08]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4A 6F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 AB FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 51 00 00 00 00 07 04 06 00 A0 FD 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 70 6D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 20 02 00 35 04 06 00 1E CF FB B5 09 62 [16:06:08]Write to MH i2c: E2 00 01 56 17 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4A 6F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 AB FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 51 00 00 00 00 07 04 06 00 A0 FD 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 70 6D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 20 02 00 35 04 06 00 1E CF FB B5 09 62 00 00 FB [16:06:08]Write i2c OK [16:06:08]MH_I2C_Read... [16:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:08]Read from MH i2c: E2 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: E2 03 00 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: E2 03 00 56 17 00 90 00 E1 [16:06:08]RAPDU: 90 00 [16:06:08]wFMCommunicate OK [16:06:08]wFMCommunicate request_size=4 [16:06:08]MH_SAM_APDU [16:06:08]CAPDU: 80 0D 03 02 [16:06:08]Write to MH i2c: E2 08 00 57 17 80 0D 03 02 00 00 00 00 E9 [16:06:08]Write i2c OK [16:06:08]MH_I2C_Read... [16:06:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:08]Read from MH i2c: E2 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: E2 0B 00 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: E2 0B 00 57 17 00 B6 99 05 EC 28 CA A9 FB 90 00 C0 [16:06:08]RAPDU: B6 99 05 EC 28 CA A9 FB 90 00 [16:06:08]wFMCommunicate OK [16:06:08]SAM_PROTO_SignData done [16:06:08]FM_MakeSignedData done [16:06:08]CreateOFDProtocolMessage [16:06:08]wFMCommunicate request_size=4 [16:06:08]MH_SAM_APDU [16:06:08]CAPDU: 80 11 00 00 [16:06:08]Write to MH i2c: E2 08 00 58 17 80 11 00 00 00 00 00 00 E9 [16:06:08]Write i2c OK [16:06:08]MH_I2C_Read... [16:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:09]Read from MH i2c: E2 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 17 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 17 00 58 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [16:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:06:09]wFMCommunicate OK [16:06:09]CreateOFDProtocolMessage done [16:06:09]OFDSenderStorePacket 139386 [16:06:09]StoreOFDPacket docnum=139386 [16:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 39 93 00 01 54 A0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4A 6F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 AB FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 51 00 00 00 00 07 04 06 00 A0 FD 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 70 6D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 20 02 00 35 04 06 00 1E CF FB B5 09 62 B6 99 05 EC 28 CA A9 FB [16:06:09]CheckFolder [16:06:09]dirname=/storage/ofd_packets [16:06:09]CheckFolder done [16:06:09]ProducePacketName [16:06:09]name=ofd_packets/00139386 [16:06:09]NVStorageSaveData ofd_packets/00139386 [16:06:09]File name is /storage/ofd_packets/00139386 [16:06:09]Write 294 bytes [16:06:09]NVStorageSaveData done [16:06:09]OFDSenderStorePacket done [16:06:09]KKMCreateOFDPacket done [16:06:09]NVStorageSaveData kkm_last_timestamp [16:06:09]File name is /storage/kkm_last_timestamp [16:06:09]Write 4 bytes [16:06:09]NVStorageSaveData done [16:06:09]ExternCall_PrintAddStr [16:06:09]wPrintStart [16:06:09]Write to MH i2c: 01 00 00 59 17 70 [16:06:09]Write i2c OK [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: 01 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: 01 07 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: 01 07 00 59 17 00 00 00 00 00 FF 0F 85 [16:06:09]RasterBufferAndPrint [16:06:09]line Счет N : (1)593228 [16:06:09]line ИНН: 02508201610067 [16:06:09]line Контрольно-Кассовый Чек [16:06:09]line ПРОДАЖА [16:06:09]line ТРК (МРК, ГНК) : 33 [16:06:09]line Товар: 2710124130 [16:06:09]line SU-92 [16:06:09]line 28.490 * 68.80 [16:06:09]line = 1960.11 [16:06:09]line НДС 12% НСП 1% [16:06:09]line > о реализуемом товаре [16:06:09]line ОКРУГЛЕНИЕ: -0.11 [16:06:09]line ИТОГО: 1960.00 [16:06:09]line Внесено: 1960.00 [16:06:09]line СДАЧА: 0.00 [16:06:09]line НСП 1% : 17.35 [16:06:09]line НДС 12% : 208.15 [16:06:09]line Наличными: 1960.00 [16:06:09]line Безнал.: 0.00 [16:06:09]line Место: АЗС № 136 "Партнер Нефть" [16:06:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:06:09]line СНО: Общий режим [16:06:09]line Чек 221 19.08.2024 16:06 [16:06:09]line Смена: 452 ФФД: 1.0 [16:06:09]line ЗНМ: 0300000067 [16:06:09]line РНМ: 0000000000092569 [16:06:09]line Версия ККМ: 001 [16:06:09]line ФМ: 0000000000871776 [16:06:09]line ФД: 139386 [16:06:09]line ФПД: 33878630009186 [16:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160608&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139386&fm=33878630009186&tin=02508201610067®Number=0000000000092569&sum=196000 [16:06:09]OFD Sender: Processing packet 139386 [packets to send 137, broken 136] [16:06:09]ProducePacketName [16:06:09]name=ofd_packets/00139386 [16:06:09]OFD Sender: To server: pG, [16:06:09]CommunicateWithHost lk.salyk.kg:30040 [16:06:09]ConnectInit lk.salyk.kg [16:06:09]written 0, free lines is 4095 [16:06:09]Connected sock=10 [16:06: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 37 36 08 01 00 00 39 93 00 01 54 A0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 4A 6F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 AB FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 51 00 00 00 00 07 04 06 00 A0 FD 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 70 6D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 20 02 00 35 04 06 00 1E CF FB B5 09 62 B6 99 05 EC 28 CA A9 FB [16:06: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 37 36 4F 00 00 00 EE 10 47 00 61 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 37 36 10 04 04 00 7A 20 02 00 F4 03 04 00 06 14 C3 66 B6 04 01 00 00 4F 48 9D 71 55 9A 4B D4 [16:06:09]CommunicateWithHost err = 0 [16:06:09]CheckOFDResponse [16:06:09]1017 (14) - 77093643461234 [16:06:09]1041 (16) - 0000000000871776 [16:06:09]1040 (4) - 139386 [16:06:09]1012 (4) - 19.08.2024 09:44 [16:06:09]1206 (1) - 0 [16:06:09]OFD Sender: Remove packet 139386 [16:06:09]ProducePacketName [16:06:09]name=ofd_packets/00139386 [16:06:09]NVStorageDeleteData [16:06:09]Write to MH i2c: 01 00 00 84 17 9B [16:06:09]Write i2c OK [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: 01 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: 01 07 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: 01 07 00 84 17 00 00 00 00 00 D2 0C 80 [16:06:09]RasterBufferAndPrint [16:06:09]line [16:06:09]line [16:06:09]line [16:06:09]line [16:06:09]line [16:06:09]written 0, free lines is 3288 [16:06:09]MH_Cut [16:06:09]Write to MH i2c: D1 01 00 8B 17 01 74 [16:06:09]Write i2c OK [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: D1 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: D1 01 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: D1 01 00 8B 17 00 73 [16:06:09]Write to MH i2c: 01 00 00 8C 17 A3 [16:06:09]Write i2c OK [16:06:09]MH_I2C_Read... [16:06:10]OFD Sender: No OFD packet to send [16:06:10]*** Cut start [16:06:10]*** Partial cut [16:06:10]*** CUTSNS_PIN = 1 [16:06:10]*** CUTSNS_PIN = 0 [16:06:10]*** Brake cut motor [16:06:11]Read from MH i2c: 01 [16:06:11]MH_I2C_Read... [16:06:11]*** Stop cut motor [16:06:11]*** Cut end [16:06:11]Read from MH i2c: 01 07 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 07 00 8C 17 00 00 00 00 00 FF 0F B8 [16:06:11]process_action close_receipt done [16:06:11]requested_data is exist [16:06:11]produce_requested_data [16:06:11]requested_item fm.sn is exist - process it [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 11 00 00 [16:06:11]Write to MH i2c: E2 08 00 8D 17 80 11 00 00 00 00 00 00 1E [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 8D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [16:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:06:11]wFMCommunicate OK [16:06:11]requested_item fd.num is exist - process it [16:06:11]SAM_PROTO_GetFieldsCounters [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 13 00 00 [16:06:11]Write to MH i2c: E2 08 00 8E 17 80 13 00 00 00 00 00 00 21 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 62 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 62 00 8E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [16:06: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_GetFieldsCounters done [16:06:11]requested_item shift.num is exist - process it [16:06:11]requested_item shift.opened is exist - process it [16:06:11]req_shift_opened [16:06:11]FM_GetShiftState [16:06:11]SAM_PROTO_GetShiftState [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 13 01 00 [16:06:11]Write to MH i2c: E2 08 00 8F 17 80 13 01 00 00 00 00 00 23 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0E 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0E 00 8F 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DA [16:06:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_GetShiftState done [16:06:11]FM_GetShiftState done [16:06:11]req_shift_opened done [16:06:11]requested_item shift.open_date is exist - process it [16:06:11]req_shift_open_date [16:06:11]req_shift_open_date done [16:06:11]produce_requested_data done [16:06:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139386,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:06:11]process_action_free close_receipt [16:06:11]json_value_free [16:06:11]json_value_free done [16:06:11]process_json_proto returns [16:06:11]Send response to host [16:06:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139386,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:06:11]free response buf [16:06:11]execute_script done [16:06:11]execute_script returns [16:06:11]free content buf [16:06:11]Sock 8.Close socket [16:06:11]Sock 8.Thread stoped [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:16]accept exits with 9 [16:08:16]New connection [16:08:16]New thread 3066817892 created [16:08:16]Thread 3066674532 joined [16:08:16]Waiting for new connection... [16:08:16] Sock 9.Parse request [16:08:16]Sock 9.Check first char [16:08:16]Sock 9.First char is OK [16:08:16]request: POST /json_proto HTTP/1.0 [16:08:16]Method: POST [16:08:16]URL: /json_proto [16:08:16]Method is POST - this is cgi request [16:08:16]url: /json_proto [16:08:16]query_string will be loaded in cgi processing [16:08:16]execute_cgi json_proto POST (null) [16:08:16]execute_cgi path=json_proto method=POST [16:08:16]POST find Content-Length [16:08:16]Host: 172.17.45.67:8080 [16:08:16]Content-Length: 687 [16:08:16]Content-Type: application/json [16:08:16] [16:08:16]POST finish read [16:08:16]Found Content-Length = 687 [16:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:08:16]execute_script... [16:08: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)593229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:08:16]POST & json_proto [16:08:16]process_json_proto [16:08:16]json parsed OK: [16:08:16]protocol is kg_v1.0 [16:08:16]action value=close_receipt [16:08:16]process_action close_receipt [16:08:16]cmd_close_receipt [16:08:16]MH_GetDate [16:08:16]Write to MH i2c: F0 00 00 90 17 96 [16:08:16]Write i2c OK [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: F0 [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: F0 09 00 [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: F0 09 00 90 17 00 F1 6D C3 66 5F 7F 2B 66 95 [16:08:16]GetLastDocTimeStamp 1724083568 [16:08:16]current date 1724083697 [16:08:16]FM_GetShiftState [16:08:16]SAM_PROTO_GetShiftState [16:08:16]wFMCommunicate request_size=4 [16:08:16]MH_SAM_APDU [16:08:16]CAPDU: 80 13 01 00 [16:08:16]Write to MH i2c: E2 08 00 91 17 80 13 01 00 00 00 00 00 25 [16:08:16]Write i2c OK [16:08:16]MH_I2C_Read... [16:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:16]Read from MH i2c: E2 [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: E2 0E 00 [16:08:16]MH_I2C_Read... [16:08:16]Read from MH i2c: E2 0E 00 91 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DC [16:08:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:08:16]wFMCommunicate OK [16:08:16]SAM_PROTO_GetShiftState done [16:08:16]FM_GetShiftState done [16:08:16]opened in 1724027888 [16:08:16]opened+sec_in_day 1724114288 [16:08:16]quantity*price = 100050 [16:08:16]sum+1 = 100052 [16:08: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 222 19.08.2024 16:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139387 ФПД: 129564165824002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160817&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139387&fm=129564165824002&tin=02508201610067®Number=0000000000092569&sum=100000 [16:08:17]StoreToDocumentArchive [16:08:17]shift 452 fd 139387 [16:08:17]save to /storage/0452/doc_00139387 [16:08:17]save last doc name /storage/0452/doc_00139387 to /storage/kkm_last_doc_name [16:08:17]save OK [16:08:17]Clear old archive folders... [16:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:08:17]tlvbuf is 01263F70 [16:08:17]SAM_PROTO_ClearQueue [16:08:17]wFMCommunicate request_size=4 [16:08:17]MH_SAM_APDU [16:08:17]CAPDU: 80 09 00 00 [16:08:17]Write to MH i2c: E2 08 00 9E 17 80 09 00 00 00 00 00 00 27 [16:08:17]Write i2c OK [16:08:17]MH_I2C_Read... [16:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:17]Read from MH i2c: E2 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 9E 17 00 90 00 29 [16:08:17]RAPDU: 90 00 [16:08:17]wFMCommunicate OK [16:08:17]SAM_PROTO_ClearQueue done [16:08:17]KKMCreateOFDPacket [16:08:17]OFDProtocolAddRootSTLVToBuf [16:08:17]FM_MakeSignedData [16:08:17]FM_MakeSignedData [16:08:17]SAM_PROTO_SignData [16:08:17]wFMCommunicate request_size=4 [16:08:17]MH_SAM_APDU [16:08:17]CAPDU: 80 0D 01 02 [16:08:17]Write to MH i2c: E2 08 00 9F 17 80 0D 01 02 00 00 00 00 2F [16:08:17]Write i2c OK [16:08:17]MH_I2C_Read... [16:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:17]Read from MH i2c: E2 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 9F 17 00 90 00 2A [16:08:17]RAPDU: 90 00 [16:08:17]wFMCommunicate OK [16:08:17]wFMCommunicate request_size=255 [16:08:17]MH_SAM_APDU [16:08:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 F1 6D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 20 02 00 35 04 06 00 [16:08:17]Write to MH i2c: E2 02 01 A0 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 F1 6D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 20 02 00 35 04 06 00 00 00 6D [16:08:17]Write i2c OK [16:08:17]MH_I2C_Read... [16:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:17]Read from MH i2c: E2 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 A0 17 00 90 00 2B [16:08:17]RAPDU: 90 00 [16:08:17]wFMCommunicate OK [16:08:17]wFMCommunicate request_size=11 [16:08:17]MH_SAM_APDU [16:08:17]CAPDU: 80 0D 02 02 06 75 D6 82 14 5E 02 [16:08:17]Write to MH i2c: E2 0E 00 A1 17 80 0D 02 02 06 00 75 D6 82 14 5E 02 00 00 7F [16:08:17]Write i2c OK [16:08:17]MH_I2C_Read... [16:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:17]Read from MH i2c: E2 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 03 00 A1 17 00 90 00 2C [16:08:17]RAPDU: 90 00 [16:08:17]wFMCommunicate OK [16:08:17]wFMCommunicate request_size=4 [16:08:17]MH_SAM_APDU [16:08:17]CAPDU: 80 0D 03 02 [16:08:17]Write to MH i2c: E2 08 00 A2 17 80 0D 03 02 00 00 00 00 34 [16:08:17]Write i2c OK [16:08:17]MH_I2C_Read... [16:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:17]Read from MH i2c: E2 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 0B 00 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 0B 00 A2 17 00 73 96 CF CB 1E FC 01 63 90 00 56 [16:08:17]RAPDU: 73 96 CF CB 1E FC 01 63 90 00 [16:08:17]wFMCommunicate OK [16:08:17]SAM_PROTO_SignData done [16:08:17]FM_MakeSignedData done [16:08:17]CreateOFDProtocolMessage [16:08:17]wFMCommunicate request_size=4 [16:08:17]MH_SAM_APDU [16:08:17]CAPDU: 80 11 00 00 [16:08:17]Write to MH i2c: E2 08 00 A3 17 80 11 00 00 00 00 00 00 34 [16:08:17]Write i2c OK [16:08:17]MH_I2C_Read... [16:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:17]Read from MH i2c: E2 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 17 00 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: E2 17 00 A3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8B [16:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:08:17]wFMCommunicate OK [16:08:17]CreateOFDProtocolMessage done [16:08:17]OFDSenderStorePacket 139387 [16:08:17]StoreOFDPacket docnum=139387 [16:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 72 D2 08 01 07 50 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 F1 6D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 20 02 00 35 04 06 00 75 D6 82 14 5E 02 73 96 CF CB 1E FC 01 63 [16:08:17]CheckFolder [16:08:17]dirname=/storage/ofd_packets [16:08:17]CheckFolder done [16:08:17]ProducePacketName [16:08:17]name=ofd_packets/00139387 [16:08:17]NVStorageSaveData ofd_packets/00139387 [16:08:17]File name is /storage/ofd_packets/00139387 [16:08:17]Write 302 bytes [16:08:17]NVStorageSaveData done [16:08:17]OFDSenderStorePacket done [16:08:17]KKMCreateOFDPacket done [16:08:17]NVStorageSaveData kkm_last_timestamp [16:08:17]File name is /storage/kkm_last_timestamp [16:08:17]Write 4 bytes [16:08:17]NVStorageSaveData done [16:08:17]ExternCall_PrintAddStr [16:08:17]wPrintStart [16:08:17]Write to MH i2c: 01 00 00 A4 17 BB [16:08:17]Write i2c OK [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: 01 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: 01 07 00 [16:08:17]MH_I2C_Read... [16:08:17]Read from MH i2c: 01 07 00 A4 17 00 00 00 00 00 FF 0F D0 [16:08:17]RasterBufferAndPrint [16:08:17]line Счет N : (1)593229 [16:08:17]line ИНН: 02508201610067 [16:08:17]line Контрольно-Кассовый Чек [16:08:17]line ПРОДАЖА [16:08:17]line ТРК (МРК, ГНК) : 44 [16:08:17]line Товар: 2710194210 [16:08:17]line ДТ(л)-К-5 [16:08:17]line 13.130 * 76.20 [16:08:17]line = 1000.51 [16:08:17]line НДС 12% НСП 1% [16:08:17]line > о реализуемом товаре [16:08:17]line ОКРУГЛЕНИЕ: -0.51 [16:08:17]line ИТОГО: 1000.00 [16:08:17]line Внесено: 1000.00 [16:08:17]line СДАЧА: 0.00 [16:08:17]line НСП 1% : 8.85 [16:08:17]line НДС 12% : 106.25 [16:08:17]line Наличными: 1000.00 [16:08:17]line Безнал.: 0.00 [16:08:17]line Место: АЗС № 136 "Партнер Нефть" [16:08:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:08:17]line СНО: Общий режим [16:08:17]line Чек 222 19.08.2024 16:08 [16:08:17]line Смена: 452 ФФД: 1.0 [16:08:17]line ЗНМ: 0300000067 [16:08:17]line РНМ: 0000000000092569 [16:08:17]line Версия ККМ: 001 [16:08:17]line ФМ: 0000000000871776 [16:08:17]line ФД: 139387 [16:08:17]line ФПД: 129564165824002 [16:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160817&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139387&fm=129564165824002&tin=02508201610067®Number=0000000000092569&sum=100000 [16:08:18]OFD Sender: Processing packet 139387 [packets to send 137, broken 136] [16:08:18]ProducePacketName [16:08:18]name=ofd_packets/00139387 [16:08:18]OFD Sender: To server: pG, [16:08:18]CommunicateWithHost lk.salyk.kg:30040 [16:08:18]ConnectInit lk.salyk.kg [16:08:18]written 0, free lines is 4095 [16:08:18]Connected sock=10 [16:08:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 72 D2 08 01 07 50 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 F1 6D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 20 02 00 35 04 06 00 75 D6 82 14 5E 02 73 96 CF CB 1E FC 01 63 [16:08: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 37 36 4F 00 00 00 C1 9F 47 00 11 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 20 02 00 F4 03 04 00 87 14 C3 66 B6 04 01 00 00 80 DF 0C 44 89 F4 5C 88 [16:08:18]CommunicateWithHost err = 0 [16:08:18]CheckOFDResponse [16:08:18]1017 (14) - 77093643461234 [16:08:18]1041 (16) - 0000000000871776 [16:08:18]1040 (4) - 139387 [16:08:18]1012 (4) - 19.08.2024 09:46 [16:08:18]1206 (1) - 0 [16:08:18]OFD Sender: Remove packet 139387 [16:08:18]ProducePacketName [16:08:18]name=ofd_packets/00139387 [16:08:18]NVStorageDeleteData [16:08:18]Write to MH i2c: 01 00 00 CF 17 E6 [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: 01 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: 01 07 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: 01 07 00 CF 17 00 00 00 00 00 CD 0C C6 [16:08:18]RasterBufferAndPrint [16:08:18]line [16:08:18]line [16:08:18]line [16:08:18]line [16:08:18]line [16:08:18]written 0, free lines is 3283 [16:08:18]MH_Cut [16:08:18]Write to MH i2c: D1 01 00 D6 17 01 BF [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: D1 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: D1 01 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: D1 01 00 D6 17 00 BE [16:08:18]Write to MH i2c: 01 00 00 D7 17 EE [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:19]OFD Sender: No OFD packet to send [16:08:19]*** Cut start [16:08:19]*** Partial cut [16:08:19]*** CUTSNS_PIN = 1 [16:08:19]*** CUTSNS_PIN = 0 [16:08:19]*** Brake cut motor [16:08:19]Read from MH i2c: 01 [16:08:19]MH_I2C_Read... [16:08:19]*** Stop cut motor [16:08:19]*** Cut end [16:08:19]Read from MH i2c: 01 07 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: 01 07 00 D7 17 00 00 00 00 00 FF 0F 03 [16:08:19]process_action close_receipt done [16:08:19]requested_data is exist [16:08:19]produce_requested_data [16:08:19]requested_item fm.sn is exist - process it [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 11 00 00 [16:08:19]Write to MH i2c: E2 08 00 D8 17 80 11 00 00 00 00 00 00 69 [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 17 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 17 00 D8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [16:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:08:19]wFMCommunicate OK [16:08:19]requested_item fd.num is exist - process it [16:08:19]SAM_PROTO_GetFieldsCounters [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 13 00 00 [16:08:19]Write to MH i2c: E2 08 00 D9 17 80 13 00 00 00 00 00 00 6C [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:20]Read from MH i2c: E2 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 62 00 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 62 00 D9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [16:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:20]wFMCommunicate OK [16:08:20]SAM_PROTO_GetFieldsCounters done [16:08:20]requested_item shift.num is exist - process it [16:08:20]requested_item shift.opened is exist - process it [16:08:20]req_shift_opened [16:08:20]FM_GetShiftState [16:08:20]SAM_PROTO_GetShiftState [16:08:20]wFMCommunicate request_size=4 [16:08:20]MH_SAM_APDU [16:08:20]CAPDU: 80 13 01 00 [16:08:20]Write to MH i2c: E2 08 00 DA 17 80 13 01 00 00 00 00 00 6E [16:08:20]Write i2c OK [16:08:20]MH_I2C_Read... [16:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:20]Read from MH i2c: E2 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 0E 00 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: E2 0E 00 DA 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 25 [16:08:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:08:20]wFMCommunicate OK [16:08:20]SAM_PROTO_GetShiftState done [16:08:20]FM_GetShiftState done [16:08:20]req_shift_opened done [16:08:20]requested_item shift.open_date is exist - process it [16:08:20]req_shift_open_date [16:08:20]req_shift_open_date done [16:08:20]produce_requested_data done [16:08:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139387,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:08:20]process_action_free close_receipt [16:08:20]json_value_free [16:08:20]json_value_free done [16:08:20]process_json_proto returns [16:08:20]Send response to host [16:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139387,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:08:20]free response buf [16:08:20]execute_script done [16:08:20]execute_script returns [16:08:20]free content buf [16:08:20]Sock 9.Close socket [16:08:20]Sock 9.Thread stoped [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:54]accept exits with 8 [16:08:54]New connection [16:08:54]New thread 3066674532 created [16:08:54]Thread 3066817892 joined [16:08:54]Waiting for new connection... [16:08:54] Sock 8.Parse request [16:08:54]Sock 8.Check first char [16:08:54]Sock 8.First char is OK [16:08:54]request: POST /json_proto HTTP/1.0 [16:08:54]Method: POST [16:08:54]URL: /json_proto [16:08:54]Method is POST - this is cgi request [16:08:54]url: /json_proto [16:08:54]query_string will be loaded in cgi processing [16:08:54]execute_cgi json_proto POST (null) [16:08:54]execute_cgi path=json_proto method=POST [16:08:54]POST find Content-Length [16:08:54]Host: 172.17.45.67:8080 [16:08:54]Content-Length: 677 [16:08:54]Content-Type: application/json [16:08:54] [16:08:54]POST finish read [16:08:54]Found Content-Length = 677 [16:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]execute_script... [16:08: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)593231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]POST & json_proto [16:08:54]process_json_proto [16:08:54]json parsed OK: [16:08:54]protocol is kg_v1.0 [16:08:54]action value=close_receipt [16:08:54]process_action close_receipt [16:08:54]cmd_close_receipt [16:08:54]MH_GetDate [16:08:54]Write to MH i2c: F0 00 00 DB 17 E1 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 DB 17 00 17 6E C3 66 5F 7F 2B 66 07 [16:08:54]GetLastDocTimeStamp 1724083697 [16:08:54]current date 1724083735 [16:08:54]FM_GetShiftState [16:08:54]SAM_PROTO_GetShiftState [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 13 01 00 [16:08:54]Write to MH i2c: E2 08 00 DC 17 80 13 01 00 00 00 00 00 70 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 DC 17 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 27 [16:08:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]SAM_PROTO_GetShiftState done [16:08:54]FM_GetShiftState done [16:08:54]opened in 1724027888 [16:08:54]opened+sec_in_day 1724114288 [16:08:54]quantity*price = 30035 [16:08:54]sum+1 = 30036 [16:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 223 19.08.2024 16:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139388 ФПД: 6865589878449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160855&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139388&fm=6865589878449&tin=02508201610067®Number=0000000000092569&sum=30000 [16:08:55]StoreToDocumentArchive [16:08:55]shift 452 fd 139388 [16:08:55]save to /storage/0452/doc_00139388 [16:08:55]save last doc name /storage/0452/doc_00139388 to /storage/kkm_last_doc_name [16:08:55]save OK [16:08:55]Clear old archive folders... [16:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:55]tlvbuf is 011EBBA0 [16:08:55]SAM_PROTO_ClearQueue [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 09 00 00 [16:08:55]Write to MH i2c: E2 08 00 E9 17 80 09 00 00 00 00 00 00 72 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 E9 17 00 90 00 74 [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_ClearQueue done [16:08:55]KKMCreateOFDPacket [16:08:55]OFDProtocolAddRootSTLVToBuf [16:08:55]FM_MakeSignedData [16:08:55]FM_MakeSignedData [16:08:55]SAM_PROTO_SignData [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 01 02 [16:08:55]Write to MH i2c: E2 08 00 EA 17 80 0D 01 02 00 00 00 00 7A [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 EA 17 00 90 00 75 [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=255 [16:08:55]MH_SAM_APDU [16:08: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 17 6E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 20 02 00 35 04 06 00 06 [16:08:55]Write to MH i2c: E2 02 01 EB 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 17 6E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 20 02 00 35 04 06 00 06 00 00 18 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 EB 17 00 90 00 76 [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=10 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 02 02 05 3E 85 0B BE B1 [16:08:55]Write to MH i2c: E2 0D 00 EC 17 80 0D 02 02 05 00 3E 85 0B BE B1 00 00 C4 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 EC 17 00 90 00 77 [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 03 02 [16:08:55]Write to MH i2c: E2 08 00 ED 17 80 0D 03 02 00 00 00 00 7F [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 0B 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 0B 00 ED 17 00 B6 BC 66 28 E9 8D 75 C5 90 00 30 [16:08:55]RAPDU: B6 BC 66 28 E9 8D 75 C5 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_SignData done [16:08:55]FM_MakeSignedData done [16:08:55]CreateOFDProtocolMessage [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 11 00 00 [16:08:55]Write to MH i2c: E2 08 00 EE 17 80 11 00 00 00 00 00 00 7F [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 17 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 17 00 EE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [16:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:08:56]wFMCommunicate OK [16:08:56]CreateOFDProtocolMessage done [16:08:56]OFDSenderStorePacket 139388 [16:08:56]StoreOFDPacket docnum=139388 [16:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 41 5E 07 01 27 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 17 6E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 20 02 00 35 04 06 00 06 3E 85 0B BE B1 B6 BC 66 28 E9 8D 75 C5 [16:08:56]CheckFolder [16:08:56]dirname=/storage/ofd_packets [16:08:56]CheckFolder done [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00139388 [16:08:56]NVStorageSaveData ofd_packets/00139388 [16:08:56]File name is /storage/ofd_packets/00139388 [16:08:56]Write 301 bytes [16:08:56]NVStorageSaveData done [16:08:56]OFDSenderStorePacket done [16:08:56]KKMCreateOFDPacket done [16:08:56]NVStorageSaveData kkm_last_timestamp [16:08:56]File name is /storage/kkm_last_timestamp [16:08:56]Write 4 bytes [16:08:56]NVStorageSaveData done [16:08:56]ExternCall_PrintAddStr [16:08:56]wPrintStart [16:08:56]Write to MH i2c: 01 00 00 EF 17 06 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 EF 17 00 00 00 00 00 FF 0F 1B [16:08:56]RasterBufferAndPrint [16:08:56]line Счет N : (1)593231 [16:08:56]line ИНН: 02508201610067 [16:08:56]line Контрольно-Кассовый Чек [16:08:56]line ПРОДАЖА [16:08:56]line ТРК (МРК, ГНК) : 52 [16:08:56]line Товар: 2710124130 [16:08:56]line Аи-92-К-5 [16:08:56]line 4.430 * 67.80 [16:08:56]line = 300.35 [16:08:56]line НДС 12% НСП 1% [16:08:56]line > о реализуемом товаре [16:08:56]line ОКРУГЛЕНИЕ: -0.35 [16:08:56]line ИТОГО: 300.00 [16:08:56]line Внесено: 300.00 [16:08:56]line СДАЧА: 0.00 [16:08:56]line НСП 1% : 2.66 [16:08:56]line НДС 12% : 31.90 [16:08:56]line Наличными: 300.00 [16:08:56]line Безнал.: 0.00 [16:08:56]line Место: АЗС № 136 "Партнер Нефть" [16:08:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:08:56]line СНО: Общий режим [16:08:56]line Чек 223 19.08.2024 16:08 [16:08:56]line Смена: 452 ФФД: 1.0 [16:08:56]line ЗНМ: 0300000067 [16:08:56]line РНМ: 0000000000092569 [16:08:56]line Версия ККМ: 001 [16:08:56]line ФМ: 0000000000871776 [16:08:56]line ФД: 139388 [16:08:56]line ФПД: 6865589878449 [16:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160855&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139388&fm=6865589878449&tin=02508201610067®Number=0000000000092569&sum=30000 [16:08:56]written 0, free lines is 4095 [16:08:56]OFD Sender: Processing packet 139388 [packets to send 137, broken 136] [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00139388 [16:08:56]OFD Sender: To server: pG, [16:08:56]CommunicateWithHost lk.salyk.kg:30040 [16:08:56]ConnectInit lk.salyk.kg [16:08:56]Connected sock=10 [16:08: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 37 36 0F 01 00 00 41 5E 07 01 27 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 17 6E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 20 02 00 35 04 06 00 06 3E 85 0B BE B1 B6 BC 66 28 E9 8D 75 C5 [16:08: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 37 36 4F 00 00 00 F0 16 47 00 6E 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 37 36 10 04 04 00 7C 20 02 00 F4 03 04 00 AD 14 C3 66 B6 04 01 00 00 EF 78 BF 6E 6F 14 30 AC [16:08:56]CommunicateWithHost err = 0 [16:08:56]CheckOFDResponse [16:08:56]1017 (14) - 77093643461234 [16:08:56]1041 (16) - 0000000000871776 [16:08:56]1040 (4) - 139388 [16:08:56]1012 (4) - 19.08.2024 09:47 [16:08:56]1206 (1) - 0 [16:08:56]OFD Sender: Remove packet 139388 [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00139388 [16:08:56]NVStorageDeleteData [16:08:56]Write to MH i2c: 01 00 00 1A 18 32 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 1A 18 00 00 00 00 00 CD 0C 12 [16:08:56]RasterBufferAndPrint [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]written 0, free lines is 3283 [16:08:56]MH_Cut [16:08:56]Write to MH i2c: D1 01 00 21 18 01 0B [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 01 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 01 00 21 18 00 0A [16:08:56]Write to MH i2c: 01 00 00 22 18 3A [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:57]OFD Sender: No OFD packet to send [16:08:57]*** Cut start [16:08:57]*** Partial cut [16:08:57]*** CUTSNS_PIN = 1 [16:08:57]*** CUTSNS_PIN = 0 [16:08:57]*** Brake cut motor [16:08:58]Read from MH i2c: 01 [16:08:58]MH_I2C_Read... [16:08:58]*** Stop cut motor [16:08:58]*** Cut end [16:08:58]Read from MH i2c: 01 07 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 07 00 22 18 00 00 00 00 00 FF 0F 4F [16:08:58]process_action close_receipt done [16:08:58]requested_data is exist [16:08:58]produce_requested_data [16:08:58]requested_item fm.sn is exist - process it [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 11 00 00 [16:08:58]Write to MH i2c: E2 08 00 23 18 80 11 00 00 00 00 00 00 B5 [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 17 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 17 00 23 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [16:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:08:58]wFMCommunicate OK [16:08:58]requested_item fd.num is exist - process it [16:08:58]SAM_PROTO_GetFieldsCounters [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 13 00 00 [16:08:58]Write to MH i2c: E2 08 00 24 18 80 13 00 00 00 00 00 00 B8 [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 62 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 62 00 24 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [16:08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetFieldsCounters done [16:08:58]requested_item shift.num is exist - process it [16:08:58]requested_item shift.opened is exist - process it [16:08:58]req_shift_opened [16:08:58]FM_GetShiftState [16:08:58]SAM_PROTO_GetShiftState [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 13 01 00 [16:08:58]Write to MH i2c: E2 08 00 25 18 80 13 01 00 00 00 00 00 BA [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 25 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 71 [16:08:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetShiftState done [16:08:58]FM_GetShiftState done [16:08:58]req_shift_opened done [16:08:58]requested_item shift.open_date is exist - process it [16:08:58]req_shift_open_date [16:08:58]req_shift_open_date done [16:08:58]produce_requested_data done [16:08:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139388,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:08:58]process_action_free close_receipt [16:08:58]json_value_free [16:08:58]json_value_free done [16:08:58]process_json_proto returns [16:08:58]Send response to host [16:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139388,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:08:58]free response buf [16:08:58]execute_script done [16:08:58]execute_script returns [16:08:58]free content buf [16:08:58]Sock 8.Close socket [16:08:58]Sock 8.Thread stoped [16:09:02]OFD Sender: No OFD packet to send [16:09:06]accept exits with 9 [16:09:06]New connection [16:09:06]New thread 3066817892 created [16:09:06]Thread 3066674532 joined [16:09:06]Waiting for new connection... [16:09:06] Sock 9.Parse request [16:09:06]Sock 9.Check first char [16:09:06]Sock 9.First char is OK [16:09:06]request: POST /json_proto HTTP/1.0 [16:09:06]Method: POST [16:09:06]URL: /json_proto [16:09:06]Method is POST - this is cgi request [16:09:06]url: /json_proto [16:09:06]query_string will be loaded in cgi processing [16:09:06]execute_cgi json_proto POST (null) [16:09:06]execute_cgi path=json_proto method=POST [16:09:06]POST find Content-Length [16:09:06]Host: 172.17.45.67:8080 [16:09:06]Content-Length: 682 [16:09:06]Content-Type: application/json [16:09:06] [16:09:06]POST finish read [16:09:06]Found Content-Length = 682 [16:09:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:06]execute_script... [16:09: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)593230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:06]POST & json_proto [16:09:06]process_json_proto [16:09:06]json parsed OK: [16:09:06]protocol is kg_v1.0 [16:09:06]action value=close_receipt [16:09:06]process_action close_receipt [16:09:06]cmd_close_receipt [16:09:06]MH_GetDate [16:09:06]Write to MH i2c: F0 00 00 26 18 2D [16:09:06]Write i2c OK [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: F0 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: F0 09 00 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: F0 09 00 26 18 00 23 6E C3 66 5F 7F 2B 66 5F [16:09:06]GetLastDocTimeStamp 1724083735 [16:09:06]current date 1724083747 [16:09:06]FM_GetShiftState [16:09:06]SAM_PROTO_GetShiftState [16:09:06]wFMCommunicate request_size=4 [16:09:06]MH_SAM_APDU [16:09:06]CAPDU: 80 13 01 00 [16:09:06]Write to MH i2c: E2 08 00 27 18 80 13 01 00 00 00 00 00 BC [16:09:06]Write i2c OK [16:09:06]MH_I2C_Read... [16:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:06]Read from MH i2c: E2 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 0E 00 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 0E 00 27 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 73 [16:09:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:09:06]wFMCommunicate OK [16:09:06]SAM_PROTO_GetShiftState done [16:09:06]FM_GetShiftState done [16:09:06]opened in 1724027888 [16:09:06]opened+sec_in_day 1724114288 [16:09:06]quantity*price = 100005 [16:09:06]sum+1 = 100006 [16:09:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 224 19.08.2024 16:09 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139389 ФПД: 77102324455879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139389&fm=77102324455879&tin=02508201610067®Number=0000000000092569&sum=100000 [16:09:07]StoreToDocumentArchive [16:09:07]shift 452 fd 139389 [16:09:07]save to /storage/0452/doc_00139389 [16:09:07]save last doc name /storage/0452/doc_00139389 to /storage/kkm_last_doc_name [16:09:07]save OK [16:09:07]Clear old archive folders... [16:09:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:07]tlvbuf is 01213B40 [16:09:07]SAM_PROTO_ClearQueue [16:09:07]wFMCommunicate request_size=4 [16:09:07]MH_SAM_APDU [16:09:07]CAPDU: 80 09 00 00 [16:09:07]Write to MH i2c: E2 08 00 34 18 80 09 00 00 00 00 00 00 BE [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:07]Read from MH i2c: E2 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 34 18 00 90 00 C0 [16:09:07]RAPDU: 90 00 [16:09:07]wFMCommunicate OK [16:09:07]SAM_PROTO_ClearQueue done [16:09:07]KKMCreateOFDPacket [16:09:07]OFDProtocolAddRootSTLVToBuf [16:09:07]FM_MakeSignedData [16:09:07]FM_MakeSignedData [16:09:07]SAM_PROTO_SignData [16:09:07]wFMCommunicate request_size=4 [16:09:07]MH_SAM_APDU [16:09:07]CAPDU: 80 0D 01 02 [16:09:07]Write to MH i2c: E2 08 00 35 18 80 0D 01 02 00 00 00 00 C6 [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]OFD Sender: No OFD packet to send [16:09:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:07]Read from MH i2c: E2 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 35 18 00 90 00 C1 [16:09:07]RAPDU: 90 00 [16:09:07]wFMCommunicate OK [16:09:07]wFMCommunicate request_size=255 [16:09:07]MH_SAM_APDU [16:09: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 6E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 20 02 00 35 04 06 00 46 [16:09:07]Write to MH i2c: E2 02 01 36 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 6E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 20 02 00 35 04 06 00 46 00 00 22 [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:07]Read from MH i2c: E2 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 36 18 00 90 00 C2 [16:09:07]RAPDU: 90 00 [16:09:07]wFMCommunicate OK [16:09:07]wFMCommunicate request_size=10 [16:09:07]MH_SAM_APDU [16:09:07]CAPDU: 80 0D 02 02 05 1F C8 A9 19 C7 [16:09:07]Write to MH i2c: E2 0D 00 37 18 80 0D 02 02 05 00 1F C8 A9 19 C7 00 00 43 [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:07]Read from MH i2c: E2 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 03 00 37 18 00 90 00 C3 [16:09:07]RAPDU: 90 00 [16:09:07]wFMCommunicate OK [16:09:07]wFMCommunicate request_size=4 [16:09:07]MH_SAM_APDU [16:09:07]CAPDU: 80 0D 03 02 [16:09:07]Write to MH i2c: E2 08 00 38 18 80 0D 03 02 00 00 00 00 CB [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:07]Read from MH i2c: E2 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 0B 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 0B 00 38 18 00 36 F2 69 55 0C 5A BC A5 90 00 79 [16:09:07]RAPDU: 36 F2 69 55 0C 5A BC A5 90 00 [16:09:07]wFMCommunicate OK [16:09:07]SAM_PROTO_SignData done [16:09:07]FM_MakeSignedData done [16:09:07]CreateOFDProtocolMessage [16:09:07]wFMCommunicate request_size=4 [16:09:07]MH_SAM_APDU [16:09:07]CAPDU: 80 11 00 00 [16:09:07]Write to MH i2c: E2 08 00 39 18 80 11 00 00 00 00 00 00 CB [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:07]Read from MH i2c: E2 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 17 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: E2 17 00 39 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 22 [16:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:09:07]wFMCommunicate OK [16:09:07]CreateOFDProtocolMessage done [16:09:07]OFDSenderStorePacket 139389 [16:09:07]StoreOFDPacket docnum=139389 [16:09:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 11 5D 07 01 D6 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 6E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 20 02 00 35 04 06 00 46 1F C8 A9 19 C7 36 F2 69 55 0C 5A BC A5 [16:09:07]CheckFolder [16:09:07]dirname=/storage/ofd_packets [16:09:07]CheckFolder done [16:09:07]ProducePacketName [16:09:07]name=ofd_packets/00139389 [16:09:07]NVStorageSaveData ofd_packets/00139389 [16:09:07]File name is /storage/ofd_packets/00139389 [16:09:07]Write 301 bytes [16:09:07]NVStorageSaveData done [16:09:07]OFDSenderStorePacket done [16:09:07]KKMCreateOFDPacket done [16:09:07]NVStorageSaveData kkm_last_timestamp [16:09:07]File name is /storage/kkm_last_timestamp [16:09:07]Write 4 bytes [16:09:07]NVStorageSaveData done [16:09:07]ExternCall_PrintAddStr [16:09:07]wPrintStart [16:09:07]Write to MH i2c: 01 00 00 3A 18 52 [16:09:07]Write i2c OK [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: 01 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: 01 07 00 [16:09:07]MH_I2C_Read... [16:09:07]Read from MH i2c: 01 07 00 3A 18 00 00 00 00 00 FF 0F 67 [16:09:07]RasterBufferAndPrint [16:09:07]line Счет N : (1)593230 [16:09:07]line ИНН: 02508201610067 [16:09:07]line Контрольно-Кассовый Чек [16:09:07]line ПРОДАЖА [16:09:07]line ТРК (МРК, ГНК) : 62 [16:09:07]line Товар: 2710124130 [16:09:07]line Аи-92-К-5 [16:09:07]line 14.750 * 67.80 [16:09:07]line = 1000.05 [16:09:07]line НДС 12% НСП 1% [16:09:07]line > о реализуемом товаре [16:09:07]line ОКРУГЛЕНИЕ: -0.05 [16:09:07]line ИТОГО: 1000.00 [16:09:07]line Внесено: 1000.00 [16:09:07]line СДАЧА: 0.00 [16:09:07]line НСП 1% : 8.85 [16:09:07]line НДС 12% : 106.20 [16:09:07]line Наличными: 1000.00 [16:09:07]line Безнал.: 0.00 [16:09:07]line Место: АЗС № 136 "Партнер Нефть" [16:09:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:09:07]line СНО: Общий режим [16:09:07]line Чек 224 19.08.2024 16:09 [16:09:07]line Смена: 452 ФФД: 1.0 [16:09:07]line ЗНМ: 0300000067 [16:09:07]line РНМ: 0000000000092569 [16:09:07]line Версия ККМ: 001 [16:09:07]line ФМ: 0000000000871776 [16:09:07]line ФД: 139389 [16:09:07]line ФПД: 77102324455879 [16:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139389&fm=77102324455879&tin=02508201610067®Number=0000000000092569&sum=100000 [16:09:07]written 0, free lines is 4095 [16:09:07]OFD Sender: Processing packet 139389 [packets to send 137, broken 136] [16:09:07]ProducePacketName [16:09:07]name=ofd_packets/00139389 [16:09:07]OFD Sender: To server: pG, [16:09:07]CommunicateWithHost lk.salyk.kg:30040 [16:09:07]ConnectInit lk.salyk.kg [16:09:08]Connected sock=10 [16:09: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 37 36 0F 01 00 00 11 5D 07 01 D6 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 6E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 20 02 00 35 04 06 00 46 1F C8 A9 19 C7 36 F2 69 55 0C 5A BC A5 [16:09: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 37 36 4F 00 00 00 0B F0 47 00 C2 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 37 36 10 04 04 00 7D 20 02 00 F4 03 04 00 B8 14 C3 66 B6 04 01 00 00 09 EA 68 29 9C C4 D0 7F [16:09:08]CommunicateWithHost err = 0 [16:09:08]CheckOFDResponse [16:09:08]1017 (14) - 77093643461234 [16:09:08]1041 (16) - 0000000000871776 [16:09:08]1040 (4) - 139389 [16:09:08]1012 (4) - 19.08.2024 09:47 [16:09:08]1206 (1) - 0 [16:09:08]OFD Sender: Remove packet 139389 [16:09:08]ProducePacketName [16:09:08]name=ofd_packets/00139389 [16:09:08]NVStorageDeleteData [16:09:08]Write to MH i2c: 01 00 00 65 18 7D [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: 01 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: 01 07 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: 01 07 00 65 18 00 00 00 00 00 ED 0C 7D [16:09:08]RasterBufferAndPrint [16:09:08]line [16:09:08]line [16:09:08]line [16:09:08]line [16:09:08]line [16:09:08]written 0, free lines is 3321 [16:09:08]MH_Cut [16:09:08]Write to MH i2c: D1 01 00 6C 18 01 56 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: D1 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: D1 01 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: D1 01 00 6C 18 00 55 [16:09:08]Write to MH i2c: 01 00 00 6D 18 85 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]OFD Sender: No OFD packet to send [16:09:09]*** Cut start [16:09:09]*** Partial cut [16:09:09]*** CUTSNS_PIN = 1 [16:09:09]*** CUTSNS_PIN = 0 [16:09:09]*** Brake cut motor [16:09:09]Read from MH i2c: 01 [16:09:09]MH_I2C_Read... [16:09:09]*** Stop cut motor [16:09:09]*** Cut end [16:09:09]Read from MH i2c: 01 07 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: 01 07 00 6D 18 00 00 00 00 00 FF 0F 9A [16:09:09]process_action close_receipt done [16:09:09]requested_data is exist [16:09:09]produce_requested_data [16:09:09]requested_item fm.sn is exist - process it [16:09:09]wFMCommunicate request_size=4 [16:09:09]MH_SAM_APDU [16:09:09]CAPDU: 80 11 00 00 [16:09:09]Write to MH i2c: E2 08 00 6E 18 80 11 00 00 00 00 00 00 00 [16:09:09]Write i2c OK [16:09:09]MH_I2C_Read... [16:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:09]Read from MH i2c: E2 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 17 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 17 00 6E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 57 [16:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:09:09]wFMCommunicate OK [16:09:09]requested_item fd.num is exist - process it [16:09:09]SAM_PROTO_GetFieldsCounters [16:09:09]wFMCommunicate request_size=4 [16:09:09]MH_SAM_APDU [16:09:09]CAPDU: 80 13 00 00 [16:09:09]Write to MH i2c: E2 08 00 6F 18 80 13 00 00 00 00 00 00 03 [16:09:09]Write i2c OK [16:09:09]MH_I2C_Read... [16:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:09]Read from MH i2c: E2 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 62 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 62 00 6F 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [16:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:09]wFMCommunicate OK [16:09:09]SAM_PROTO_GetFieldsCounters done [16:09:09]requested_item shift.num is exist - process it [16:09:09]requested_item shift.opened is exist - process it [16:09:09]req_shift_opened [16:09:09]FM_GetShiftState [16:09:09]SAM_PROTO_GetShiftState [16:09:09]wFMCommunicate request_size=4 [16:09:09]MH_SAM_APDU [16:09:09]CAPDU: 80 13 01 00 [16:09:09]Write to MH i2c: E2 08 00 70 18 80 13 01 00 00 00 00 00 05 [16:09:09]Write i2c OK [16:09:09]MH_I2C_Read... [16:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:09]Read from MH i2c: E2 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 0E 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: E2 0E 00 70 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BC [16:09:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:09:09]wFMCommunicate OK [16:09:09]SAM_PROTO_GetShiftState done [16:09:09]FM_GetShiftState done [16:09:09]req_shift_opened done [16:09:09]requested_item shift.open_date is exist - process it [16:09:09]req_shift_open_date [16:09:09]req_shift_open_date done [16:09:09]produce_requested_data done [16:09:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139389,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:09:09]process_action_free close_receipt [16:09:09]json_value_free [16:09:09]json_value_free done [16:09:09]process_json_proto returns [16:09:09]Send response to host [16:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139389,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:09:09]free response buf [16:09:09]execute_script done [16:09:09]execute_script returns [16:09:09]free content buf [16:09:09]Sock 9.Close socket [16:09:09]Sock 9.Thread stoped [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]accept exits with 8 [16:15:34]New connection [16:15:34]New thread 3066674532 created [16:15:34]Thread 3066817892 joined [16:15:34]Waiting for new connection... [16:15:34] Sock 8.Parse request [16:15:34]Sock 8.Check first char [16:15:34]Sock 8.First char is OK [16:15:34]request: POST /json_proto HTTP/1.0 [16:15:34]Method: POST [16:15:34]URL: /json_proto [16:15:34]Method is POST - this is cgi request [16:15:34]url: /json_proto [16:15:34]query_string will be loaded in cgi processing [16:15:34]execute_cgi json_proto POST (null) [16:15:34]execute_cgi path=json_proto method=POST [16:15:34]POST find Content-Length [16:15:34]Host: 172.17.45.67:8080 [16:15:34]Content-Length: 677 [16:15:34]Content-Type: application/json [16:15:34] [16:15:34]POST finish read [16:15:34]Found Content-Length = 677 [16:15:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:15:34]execute_script... [16:15: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)593232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:15:34]POST & json_proto [16:15:34]process_json_proto [16:15:34]json parsed OK: [16:15:34]protocol is kg_v1.0 [16:15:34]action value=close_receipt [16:15:34]process_action close_receipt [16:15:34]cmd_close_receipt [16:15:34]MH_GetDate [16:15:34]Write to MH i2c: F0 00 00 71 18 78 [16:15:34]Write i2c OK [16:15:34]MH_I2C_Read... [16:15:34]Read from MH i2c: F0 [16:15:34]MH_I2C_Read... [16:15:34]Read from MH i2c: F0 09 00 [16:15:34]MH_I2C_Read... [16:15:34]Read from MH i2c: F0 09 00 71 18 00 A7 6F C3 66 5F 7F 2B 66 2F [16:15:34]GetLastDocTimeStamp 1724083747 [16:15:34]current date 1724084135 [16:15:34]FM_GetShiftState [16:15:34]SAM_PROTO_GetShiftState [16:15:34]wFMCommunicate request_size=4 [16:15:34]MH_SAM_APDU [16:15:34]CAPDU: 80 13 01 00 [16:15:34]Write to MH i2c: E2 08 00 72 18 80 13 01 00 00 00 00 00 07 [16:15:34]Write i2c OK [16:15:34]MH_I2C_Read... [16:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:34]Read from MH i2c: E2 [16:15:34]MH_I2C_Read... [16:15:34]Read from MH i2c: E2 0E 00 [16:15:34]MH_I2C_Read... [16:15:34]Read from MH i2c: E2 0E 00 72 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BE [16:15:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:15:34]wFMCommunicate OK [16:15:34]SAM_PROTO_GetShiftState done [16:15:34]FM_GetShiftState done [16:15:34]opened in 1724027888 [16:15:34]opened+sec_in_day 1724114288 [16:15:34]quantity*price = 50036 [16:15:34]sum+1 = 50037 [16:15:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 225 19.08.2024 16:15 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139390 ФПД: 131059094611288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T161535&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139390&fm=131059094611288&tin=02508201610067®Number=0000000000092569&sum=50000 [16:15:35]StoreToDocumentArchive [16:15:35]shift 452 fd 139390 [16:15:35]save to /storage/0452/doc_00139390 [16:15:35]save last doc name /storage/0452/doc_00139390 to /storage/kkm_last_doc_name [16:15:35]save OK [16:15:35]Clear old archive folders... [16:15:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:35]tlvbuf is 0126E5D0 [16:15:35]SAM_PROTO_ClearQueue [16:15:35]wFMCommunicate request_size=4 [16:15:35]MH_SAM_APDU [16:15:35]CAPDU: 80 09 00 00 [16:15:35]Write to MH i2c: E2 08 00 7F 18 80 09 00 00 00 00 00 00 09 [16:15:35]Write i2c OK [16:15:35]MH_I2C_Read... [16:15:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:35]Read from MH i2c: E2 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 03 00 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 03 00 7F 18 00 90 00 0B [16:15:35]RAPDU: 90 00 [16:15:35]wFMCommunicate OK [16:15:35]SAM_PROTO_ClearQueue done [16:15:35]KKMCreateOFDPacket [16:15:35]OFDProtocolAddRootSTLVToBuf [16:15:35]FM_MakeSignedData [16:15:35]FM_MakeSignedData [16:15:35]SAM_PROTO_SignData [16:15:35]wFMCommunicate request_size=4 [16:15:35]MH_SAM_APDU [16:15:35]CAPDU: 80 0D 01 02 [16:15:35]Write to MH i2c: E2 08 00 80 18 80 0D 01 02 00 00 00 00 11 [16:15:35]Write i2c OK [16:15:35]MH_I2C_Read... [16:15:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:35]Read from MH i2c: E2 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 03 00 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 03 00 80 18 00 90 00 0C [16:15:35]RAPDU: 90 00 [16:15:35]wFMCommunicate OK [16:15:35]wFMCommunicate request_size=255 [16:15:35]MH_SAM_APDU [16:15:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E1 00 00 00 F4 03 04 00 A7 6F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 20 02 00 35 04 06 00 77 [16:15:35]Write to MH i2c: E2 02 01 81 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E1 00 00 00 F4 03 04 00 A7 6F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 20 02 00 35 04 06 00 77 00 00 96 [16:15:35]Write i2c OK [16:15:35]MH_I2C_Read... [16:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:35]Read from MH i2c: E2 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 03 00 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 03 00 81 18 00 90 00 0D [16:15:35]RAPDU: 90 00 [16:15:35]wFMCommunicate OK [16:15:35]wFMCommunicate request_size=10 [16:15:35]MH_SAM_APDU [16:15:35]CAPDU: 80 0D 02 02 05 32 92 C7 65 58 [16:15:35]Write to MH i2c: E2 0D 00 82 18 80 0D 02 02 05 00 32 92 C7 65 58 00 00 66 [16:15:35]Write i2c OK [16:15:35]MH_I2C_Read... [16:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:35]Read from MH i2c: E2 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 03 00 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 03 00 82 18 00 90 00 0E [16:15:35]RAPDU: 90 00 [16:15:35]wFMCommunicate OK [16:15:35]wFMCommunicate request_size=4 [16:15:35]MH_SAM_APDU [16:15:35]CAPDU: 80 0D 03 02 [16:15:35]Write to MH i2c: E2 08 00 83 18 80 0D 03 02 00 00 00 00 16 [16:15:35]Write i2c OK [16:15:35]MH_I2C_Read... [16:15:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:35]Read from MH i2c: E2 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 0B 00 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 0B 00 83 18 00 52 CF 21 E7 CC 35 CD 43 90 00 51 [16:15:35]RAPDU: 52 CF 21 E7 CC 35 CD 43 90 00 [16:15:35]wFMCommunicate OK [16:15:35]SAM_PROTO_SignData done [16:15:35]FM_MakeSignedData done [16:15:35]CreateOFDProtocolMessage [16:15:35]wFMCommunicate request_size=4 [16:15:35]MH_SAM_APDU [16:15:35]CAPDU: 80 11 00 00 [16:15:35]Write to MH i2c: E2 08 00 84 18 80 11 00 00 00 00 00 00 16 [16:15:35]Write i2c OK [16:15:35]MH_I2C_Read... [16:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:35]Read from MH i2c: E2 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 17 00 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: E2 17 00 84 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [16:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:15:35]wFMCommunicate OK [16:15:35]CreateOFDProtocolMessage done [16:15:35]OFDSenderStorePacket 139390 [16:15:35]StoreOFDPacket docnum=139390 [16:15:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 CF 07 01 CF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E1 00 00 00 F4 03 04 00 A7 6F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 20 02 00 35 04 06 00 77 32 92 C7 65 58 52 CF 21 E7 CC 35 CD 43 [16:15:35]CheckFolder [16:15:35]dirname=/storage/ofd_packets [16:15:35]CheckFolder done [16:15:35]ProducePacketName [16:15:35]name=ofd_packets/00139390 [16:15:35]NVStorageSaveData ofd_packets/00139390 [16:15:35]File name is /storage/ofd_packets/00139390 [16:15:35]Write 301 bytes [16:15:35]NVStorageSaveData done [16:15:35]OFDSenderStorePacket done [16:15:35]KKMCreateOFDPacket done [16:15:35]NVStorageSaveData kkm_last_timestamp [16:15:35]File name is /storage/kkm_last_timestamp [16:15:35]Write 4 bytes [16:15:35]NVStorageSaveData done [16:15:35]ExternCall_PrintAddStr [16:15:35]wPrintStart [16:15:35]Write to MH i2c: 01 00 00 85 18 9D [16:15:35]Write i2c OK [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: 01 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: 01 07 00 [16:15:35]MH_I2C_Read... [16:15:35]Read from MH i2c: 01 07 00 85 18 00 00 00 00 00 FF 0F B2 [16:15:35]RasterBufferAndPrint [16:15:35]line Счет N : (1)593232 [16:15:35]line ИНН: 02508201610067 [16:15:35]line Контрольно-Кассовый Чек [16:15:35]line ПРОДАЖА [16:15:35]line ТРК (МРК, ГНК) : 52 [16:15:35]line Товар: 2710124130 [16:15:35]line Аи-92-К-5 [16:15:35]line 7.380 * 67.80 [16:15:35]line = 500.36 [16:15:35]line НДС 12% НСП 1% [16:15:35]line > о реализуемом товаре [16:15:35]line ОКРУГЛЕНИЕ: -0.36 [16:15:35]line ИТОГО: 500.00 [16:15:35]line Внесено: 500.00 [16:15:35]line СДАЧА: 0.00 [16:15:35]line НСП 1% : 4.43 [16:15:35]line НДС 12% : 53.14 [16:15:35]line Наличными: 500.00 [16:15:35]line Безнал.: 0.00 [16:15:35]line Место: АЗС № 136 "Партнер Нефть" [16:15:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:15:35]line СНО: Общий режим [16:15:35]line Чек 225 19.08.2024 16:15 [16:15:35]line Смена: 452 ФФД: 1.0 [16:15:35]line ЗНМ: 0300000067 [16:15:35]line РНМ: 0000000000092569 [16:15:35]line Версия ККМ: 001 [16:15:35]line ФМ: 0000000000871776 [16:15:35]line ФД: 139390 [16:15:35]line ФПД: 131059094611288 [16:15:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T161535&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139390&fm=131059094611288&tin=02508201610067®Number=0000000000092569&sum=50000 [16:15:36]OFD Sender: Processing packet 139390 [packets to send 137, broken 136] [16:15:36]ProducePacketName [16:15:36]name=ofd_packets/00139390 [16:15:36]OFD Sender: To server: pG, [16:15:36]CommunicateWithHost lk.salyk.kg:30040 [16:15:36]ConnectInit lk.salyk.kg [16:15:36]written 0, free lines is 4095 [16:15:36]Write to MH i2c: 01 00 00 B0 18 C8 [16:15:36]Write i2c OK [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: 01 [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: 01 07 00 [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: 01 07 00 B0 18 00 00 00 00 00 D5 0C B0 [16:15:36]RasterBufferAndPrint [16:15:36]line [16:15:36]line [16:15:36]line [16:15:36]line [16:15:36]line [16:15:36]written 0, free lines is 3289 [16:15:36]MH_Cut [16:15:36]Write to MH i2c: D1 01 00 B7 18 01 A1 [16:15:36]Write i2c OK [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: D1 [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: D1 01 00 [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: D1 01 00 B7 18 00 A0 [16:15:36]Write to MH i2c: 01 00 00 B8 18 D0 [16:15:36]Write i2c OK [16:15:36]MH_I2C_Read... [16:15:36]Connected sock=10 [16:15: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 37 36 0F 01 00 00 91 CF 07 01 CF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E1 00 00 00 F4 03 04 00 A7 6F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 20 02 00 35 04 06 00 77 32 92 C7 65 58 52 CF 21 E7 CC 35 CD 43 [16:15: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 37 36 4F 00 00 00 79 6F 47 00 E2 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 37 36 10 04 04 00 7E 20 02 00 F4 03 04 00 3D 16 C3 66 B6 04 01 00 00 D2 44 29 BE 33 A9 62 45 [16:15:36]CommunicateWithHost err = 0 [16:15:36]CheckOFDResponse [16:15:36]1017 (14) - 77093643461234 [16:15:36]1041 (16) - 0000000000871776 [16:15:36]1040 (4) - 139390 [16:15:36]1012 (4) - 19.08.2024 09:54 [16:15:36]1206 (1) - 0 [16:15:36]OFD Sender: Remove packet 139390 [16:15:36]ProducePacketName [16:15:36]name=ofd_packets/00139390 [16:15:36]NVStorageDeleteData [16:15:37]*** Cut start [16:15:37]*** Partial cut [16:15:37]*** CUTSNS_PIN = 1 [16:15:37]*** CUTSNS_PIN = 0 [16:15:37]OFD Sender: No OFD packet to send [16:15:37]*** Brake cut motor [16:15:37]Read from MH i2c: 01 [16:15:37]MH_I2C_Read... [16:15:37]*** Stop cut motor [16:15:37]*** Cut end [16:15:37]Read from MH i2c: 01 07 00 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: 01 07 00 B8 18 00 00 00 00 00 FF 0F E5 [16:15:37]process_action close_receipt done [16:15:37]requested_data is exist [16:15:37]produce_requested_data [16:15:37]requested_item fm.sn is exist - process it [16:15:37]wFMCommunicate request_size=4 [16:15:37]MH_SAM_APDU [16:15:37]CAPDU: 80 11 00 00 [16:15:37]Write to MH i2c: E2 08 00 B9 18 80 11 00 00 00 00 00 00 4B [16:15:37]Write i2c OK [16:15:37]MH_I2C_Read... [16:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:37]Read from MH i2c: E2 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: E2 17 00 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: E2 17 00 B9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [16:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:15:37]wFMCommunicate OK [16:15:37]requested_item fd.num is exist - process it [16:15:37]SAM_PROTO_GetFieldsCounters [16:15:37]wFMCommunicate request_size=4 [16:15:37]MH_SAM_APDU [16:15:37]CAPDU: 80 13 00 00 [16:15:37]Write to MH i2c: E2 08 00 BA 18 80 13 00 00 00 00 00 00 4E [16:15:37]Write i2c OK [16:15:37]MH_I2C_Read... [16:15:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:38]Read from MH i2c: E2 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 62 00 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 62 00 BA 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [16:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:38]wFMCommunicate OK [16:15:38]SAM_PROTO_GetFieldsCounters done [16:15:38]requested_item shift.num is exist - process it [16:15:38]requested_item shift.opened is exist - process it [16:15:38]req_shift_opened [16:15:38]FM_GetShiftState [16:15:38]SAM_PROTO_GetShiftState [16:15:38]wFMCommunicate request_size=4 [16:15:38]MH_SAM_APDU [16:15:38]CAPDU: 80 13 01 00 [16:15:38]Write to MH i2c: E2 08 00 BB 18 80 13 01 00 00 00 00 00 50 [16:15:38]Write i2c OK [16:15:38]MH_I2C_Read... [16:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:38]Read from MH i2c: E2 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 0E 00 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 0E 00 BB 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 07 [16:15:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:15:38]wFMCommunicate OK [16:15:38]SAM_PROTO_GetShiftState done [16:15:38]FM_GetShiftState done [16:15:38]req_shift_opened done [16:15:38]requested_item shift.open_date is exist - process it [16:15:38]req_shift_open_date [16:15:38]req_shift_open_date done [16:15:38]produce_requested_data done [16:15:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139390,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:15:38]process_action_free close_receipt [16:15:38]json_value_free [16:15:38]json_value_free done [16:15:38]process_json_proto returns [16:15:38]Send response to host [16:15:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139390,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:15:38]free response buf [16:15:38]execute_script done [16:15:38]execute_script returns [16:15:38]free content buf [16:15:38]Sock 8.Close socket [16:15:38]Sock 8.Thread stoped [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:49]accept exits with 9 [16:15:49]New connection [16:15:49]New thread 3066817892 created [16:15:49]Thread 3066674532 joined [16:15:49]Waiting for new connection... [16:15:49] Sock 9.Parse request [16:15:49]Sock 9.Check first char [16:15:49]Sock 9.First char is OK [16:15:49]request: POST /json_proto HTTP/1.0 [16:15:49]Method: POST [16:15:49]URL: /json_proto [16:15:49]Method is POST - this is cgi request [16:15:49]url: /json_proto [16:15:49]query_string will be loaded in cgi processing [16:15:49]execute_cgi json_proto POST (null) [16:15:49]execute_cgi path=json_proto method=POST [16:15:49]POST find Content-Length [16:15:49]Host: 172.17.45.67:8080 [16:15:49]Content-Length: 677 [16:15:49]Content-Type: application/json [16:15:49] [16:15:49]POST finish read [16:15:49]Found Content-Length = 677 [16:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.720, "sum" : 320.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:49]execute_script... [16:15:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.720, "sum" : 320.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:49]POST & json_proto [16:15:49]process_json_proto [16:15:49]json parsed OK: [16:15:49]protocol is kg_v1.0 [16:15:49]action value=close_receipt [16:15:49]process_action close_receipt [16:15:49]cmd_close_receipt [16:15:49]MH_GetDate [16:15:49]Write to MH i2c: F0 00 00 BC 18 C3 [16:15:49]Write i2c OK [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: F0 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: F0 09 00 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: F0 09 00 BC 18 00 B7 6F C3 66 5F 7F 2B 66 8A [16:15:49]GetLastDocTimeStamp 1724084135 [16:15:49]current date 1724084151 [16:15:49]FM_GetShiftState [16:15:49]SAM_PROTO_GetShiftState [16:15:49]wFMCommunicate request_size=4 [16:15:49]MH_SAM_APDU [16:15:49]CAPDU: 80 13 01 00 [16:15:49]Write to MH i2c: E2 08 00 BD 18 80 13 01 00 00 00 00 00 52 [16:15:49]Write i2c OK [16:15:49]MH_I2C_Read... [16:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:49]Read from MH i2c: E2 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: E2 0E 00 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: E2 0E 00 BD 18 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 09 [16:15:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:15:49]wFMCommunicate OK [16:15:49]SAM_PROTO_GetShiftState done [16:15:49]FM_GetShiftState done [16:15:49]opened in 1724027888 [16:15:49]opened+sec_in_day 1724114288 [16:15:49]quantity*price = 32001 [16:15:49]sum+1 = 32003 [16:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 226 19.08.2024 16:15 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139391 ФПД: 8385980825552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T161551&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139391&fm=8385980825552&tin=02508201610067®Number=0000000000092569&sum=32000 [16:15:51]StoreToDocumentArchive [16:15:51]shift 452 fd 139391 [16:15:51]save to /storage/0452/doc_00139391 [16:15:51]save last doc name /storage/0452/doc_00139391 to /storage/kkm_last_doc_name [16:15:51]save OK [16:15:51]Clear old archive folders... [16:15:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:51]tlvbuf is 01201330 [16:15:51]SAM_PROTO_ClearQueue [16:15:51]wFMCommunicate request_size=4 [16:15:51]MH_SAM_APDU [16:15:51]CAPDU: 80 09 00 00 [16:15:51]Write to MH i2c: E2 08 00 CA 18 80 09 00 00 00 00 00 00 54 [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:51]Read from MH i2c: E2 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 03 00 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 03 00 CA 18 00 90 00 56 [16:15:51]RAPDU: 90 00 [16:15:51]wFMCommunicate OK [16:15:51]SAM_PROTO_ClearQueue done [16:15:51]KKMCreateOFDPacket [16:15:51]OFDProtocolAddRootSTLVToBuf [16:15:51]FM_MakeSignedData [16:15:51]FM_MakeSignedData [16:15:51]SAM_PROTO_SignData [16:15:51]wFMCommunicate request_size=4 [16:15:51]MH_SAM_APDU [16:15:51]CAPDU: 80 0D 01 02 [16:15:51]Write to MH i2c: E2 08 00 CB 18 80 0D 01 02 00 00 00 00 5C [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:51]Read from MH i2c: E2 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 03 00 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 03 00 CB 18 00 90 00 57 [16:15:51]RAPDU: 90 00 [16:15:51]wFMCommunicate OK [16:15:51]wFMCommunicate request_size=255 [16:15:51]MH_SAM_APDU [16:15: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 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B7 6F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 20 02 00 35 04 06 00 07 [16:15:51]Write to MH i2c: E2 02 01 CC 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B7 6F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 20 02 00 35 04 06 00 07 00 00 0E [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:51]Read from MH i2c: E2 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 03 00 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 03 00 CC 18 00 90 00 58 [16:15:51]RAPDU: 90 00 [16:15:51]wFMCommunicate OK [16:15:51]wFMCommunicate request_size=10 [16:15:51]MH_SAM_APDU [16:15:51]CAPDU: 80 0D 02 02 05 A0 83 68 7F D0 [16:15:51]Write to MH i2c: E2 0D 00 CD 18 80 0D 02 02 05 00 A0 83 68 7F D0 00 00 43 [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:51]Read from MH i2c: E2 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 03 00 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 03 00 CD 18 00 90 00 59 [16:15:51]RAPDU: 90 00 [16:15:51]wFMCommunicate OK [16:15:51]wFMCommunicate request_size=4 [16:15:51]MH_SAM_APDU [16:15:51]CAPDU: 80 0D 03 02 [16:15:51]Write to MH i2c: E2 08 00 CE 18 80 0D 03 02 00 00 00 00 61 [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:51]Read from MH i2c: E2 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 0B 00 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 0B 00 CE 18 00 0B 5F 34 B7 9F 09 8B A1 90 00 8B [16:15:51]RAPDU: 0B 5F 34 B7 9F 09 8B A1 90 00 [16:15:51]wFMCommunicate OK [16:15:51]SAM_PROTO_SignData done [16:15:51]FM_MakeSignedData done [16:15:51]CreateOFDProtocolMessage [16:15:51]wFMCommunicate request_size=4 [16:15:51]MH_SAM_APDU [16:15:51]CAPDU: 80 11 00 00 [16:15:51]Write to MH i2c: E2 08 00 CF 18 80 11 00 00 00 00 00 00 61 [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:51]Read from MH i2c: E2 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 17 00 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: E2 17 00 CF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [16:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:15:51]wFMCommunicate OK [16:15:51]CreateOFDProtocolMessage done [16:15:51]OFDSenderStorePacket 139391 [16:15:51]StoreOFDPacket docnum=139391 [16:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C9 BF 07 01 F1 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 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B7 6F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 20 02 00 35 04 06 00 07 A0 83 68 7F D0 0B 5F 34 B7 9F 09 8B A1 [16:15:51]CheckFolder [16:15:51]dirname=/storage/ofd_packets [16:15:51]CheckFolder done [16:15:51]ProducePacketName [16:15:51]name=ofd_packets/00139391 [16:15:51]NVStorageSaveData ofd_packets/00139391 [16:15:51]File name is /storage/ofd_packets/00139391 [16:15:51]Write 301 bytes [16:15:51]NVStorageSaveData done [16:15:51]OFDSenderStorePacket done [16:15:51]KKMCreateOFDPacket done [16:15:51]NVStorageSaveData kkm_last_timestamp [16:15:51]File name is /storage/kkm_last_timestamp [16:15:51]Write 4 bytes [16:15:51]NVStorageSaveData done [16:15:51]ExternCall_PrintAddStr [16:15:51]wPrintStart [16:15:51]Write to MH i2c: 01 00 00 D0 18 E8 [16:15:51]Write i2c OK [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: 01 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: 01 07 00 [16:15:51]MH_I2C_Read... [16:15:51]Read from MH i2c: 01 07 00 D0 18 00 00 00 00 00 FF 0F FD [16:15:51]RasterBufferAndPrint [16:15:51]line Счет N : (1)593233 [16:15:51]line ИНН: 02508201610067 [16:15:51]line Контрольно-Кассовый Чек [16:15:51]line ПРОДАЖА [16:15:51]line ТРК (МРК, ГНК) : 32 [16:15:51]line Товар: 2710124130 [16:15:51]line Аи-92-К-5 [16:15:51]line 4.720 * 67.80 [16:15:51]line = 320.02 [16:15:51]line НДС 12% НСП 1% [16:15:51]line > о реализуемом товаре [16:15:51]line ОКРУГЛЕНИЕ: -0.02 [16:15:51]line ИТОГО: 320.00 [16:15:51]line Внесено: 320.00 [16:15:51]line СДАЧА: 0.00 [16:15:51]line НСП 1% : 2.83 [16:15:51]line НДС 12% : 33.98 [16:15:51]line Наличными: 320.00 [16:15:51]line Безнал.: 0.00 [16:15:51]line Место: АЗС № 136 "Партнер Нефть" [16:15:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:15:51]line СНО: Общий режим [16:15:51]line Чек 226 19.08.2024 16:15 [16:15:51]line Смена: 452 ФФД: 1.0 [16:15:51]line ЗНМ: 0300000067 [16:15:51]line РНМ: 0000000000092569 [16:15:51]line Версия ККМ: 001 [16:15:51]line ФМ: 0000000000871776 [16:15:51]line ФД: 139391 [16:15:51]line ФПД: 8385980825552 [16:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T161551&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139391&fm=8385980825552&tin=02508201610067®Number=0000000000092569&sum=32000 [16:15:51]written 0, free lines is 4095 [16:15:51]OFD Sender: Processing packet 139391 [packets to send 137, broken 136] [16:15:51]ProducePacketName [16:15:51]name=ofd_packets/00139391 [16:15:51]OFD Sender: To server: pG, [16:15:51]CommunicateWithHost lk.salyk.kg:30040 [16:15:51]ConnectInit lk.salyk.kg [16:15:52]Connected sock=10 [16:15: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 37 36 0F 01 00 00 C9 BF 07 01 F1 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 70 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 02 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B7 6F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 20 02 00 35 04 06 00 07 A0 83 68 7F D0 0B 5F 34 B7 9F 09 8B A1 [16:15: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 37 36 4F 00 00 00 52 B4 47 00 A0 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 20 02 00 F4 03 04 00 4C 16 C3 66 B6 04 01 00 00 54 1A 1A B9 96 A1 40 A3 [16:15:52]CommunicateWithHost err = 0 [16:15:52]CheckOFDResponse [16:15:52]1017 (14) - 77093643461234 [16:15:52]1041 (16) - 0000000000871776 [16:15:52]1040 (4) - 139391 [16:15:52]1012 (4) - 19.08.2024 09:54 [16:15:52]1206 (1) - 0 [16:15:52]OFD Sender: Remove packet 139391 [16:15:52]ProducePacketName [16:15:52]name=ofd_packets/00139391 [16:15:52]NVStorageDeleteData [16:15:52]Write to MH i2c: 01 00 00 FB 18 13 [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 07 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 07 00 FB 18 00 00 00 00 00 E2 0C 08 [16:15:52]RasterBufferAndPrint [16:15:52]line [16:15:52]line [16:15:52]line [16:15:52]line [16:15:52]line [16:15:52]written 0, free lines is 3304 [16:15:52]MH_Cut [16:15:52]Write to MH i2c: D1 01 00 02 19 01 ED [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: D1 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: D1 01 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: D1 01 00 02 19 00 EC [16:15:52]Write to MH i2c: 01 00 00 03 19 1C [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]OFD Sender: No OFD packet to send [16:15:53]*** Cut start [16:15:53]*** Partial cut [16:15:53]*** CUTSNS_PIN = 1 [16:15:53]*** CUTSNS_PIN = 0 [16:15:53]*** Brake cut motor [16:15:53]Read from MH i2c: 01 [16:15:53]MH_I2C_Read... [16:15:53]*** Stop cut motor [16:15:53]*** Cut end [16:15:53]Read from MH i2c: 01 07 00 [16:15:53]MH_I2C_Read... [16:15:53]Read from MH i2c: 01 07 00 03 19 00 00 00 00 00 FF 0F 31 [16:15:53]process_action close_receipt done [16:15:53]requested_data is exist [16:15:53]produce_requested_data [16:15:53]requested_item fm.sn is exist - process it [16:15:53]wFMCommunicate request_size=4 [16:15:53]MH_SAM_APDU [16:15:53]CAPDU: 80 11 00 00 [16:15:53]Write to MH i2c: E2 08 00 04 19 80 11 00 00 00 00 00 00 97 [16:15:53]Write i2c OK [16:15:53]MH_I2C_Read... [16:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:53]Read from MH i2c: E2 [16:15:53]MH_I2C_Read... [16:15:53]Read from MH i2c: E2 17 00 [16:15:53]MH_I2C_Read... [16:15:53]Read from MH i2c: E2 17 00 04 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EE [16:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:15:53]wFMCommunicate OK [16:15:53]requested_item fd.num is exist - process it [16:15:53]SAM_PROTO_GetFieldsCounters [16:15:53]wFMCommunicate request_size=4 [16:15:53]MH_SAM_APDU [16:15:53]CAPDU: 80 13 00 00 [16:15:53]Write to MH i2c: E2 08 00 05 19 80 13 00 00 00 00 00 00 9A [16:15:53]Write i2c OK [16:15:53]MH_I2C_Read... [16:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:53]Read from MH i2c: E2 [16:15:53]MH_I2C_Read... [16:15:53]Read from MH i2c: E2 62 00 [16:15:53]MH_I2C_Read... [16:15:53]Read from MH i2c: E2 62 00 05 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [16:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:53]wFMCommunicate OK [16:15:53]SAM_PROTO_GetFieldsCounters done [16:15:53]requested_item shift.num is exist - process it [16:15:53]requested_item shift.opened is exist - process it [16:15:53]req_shift_opened [16:15:53]FM_GetShiftState [16:15:53]SAM_PROTO_GetShiftState [16:15:53]wFMCommunicate request_size=4 [16:15:53]MH_SAM_APDU [16:15:53]CAPDU: 80 13 01 00 [16:15:53]Write to MH i2c: E2 08 00 06 19 80 13 01 00 00 00 00 00 9C [16:15:53]Write i2c OK [16:15:53]MH_I2C_Read... [16:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:53]Read from MH i2c: E2 [16:15:53]MH_I2C_Read... [16:15:53]Read from MH i2c: E2 0E 00 [16:15:53]MH_I2C_Read... [16:15:53]Read from MH i2c: E2 0E 00 06 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 53 [16:15:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:15:53]wFMCommunicate OK [16:15:53]SAM_PROTO_GetShiftState done [16:15:53]FM_GetShiftState done [16:15:53]req_shift_opened done [16:15:53]requested_item shift.open_date is exist - process it [16:15:53]req_shift_open_date [16:15:53]req_shift_open_date done [16:15:53]produce_requested_data done [16:15:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139391,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:15:53]process_action_free close_receipt [16:15:53]json_value_free [16:15:53]json_value_free done [16:15:53]process_json_proto returns [16:15:53]Send response to host [16:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139391,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:15:53]free response buf [16:15:53]execute_script done [16:15:53]execute_script returns [16:15:53]free content buf [16:15:53]Sock 9.Close socket [16:15:53]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]accept exits with 8 [16:19:08]New connection [16:19:08]New thread 3066674532 created [16:19:08]Thread 3066817892 joined [16:19:08]Waiting for new connection... [16:19:08] Sock 8.Parse request [16:19:08]Sock 8.Check first char [16:19:08]Sock 8.First char is OK [16:19:08]request: POST /json_proto HTTP/1.0 [16:19:08]Method: POST [16:19:08]URL: /json_proto [16:19:08]Method is POST - this is cgi request [16:19:08]url: /json_proto [16:19:08]query_string will be loaded in cgi processing [16:19:08]execute_cgi json_proto POST (null) [16:19:08]execute_cgi path=json_proto method=POST [16:19:08]POST find Content-Length [16:19:08]Host: 172.17.45.67:8080 [16:19:08]Content-Length: 682 [16:19:08]Content-Type: application/json [16:19:08] [16:19:08]POST finish read [16:19:08]Found Content-Length = 682 [16:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:08]execute_script... [16:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:08]POST & json_proto [16:19:08]process_json_proto [16:19:08]json parsed OK: [16:19:08]protocol is kg_v1.0 [16:19:08]action value=close_receipt [16:19:08]process_action close_receipt [16:19:08]cmd_close_receipt [16:19:08]MH_GetDate [16:19:08]Write to MH i2c: F0 00 00 07 19 0F [16:19:08]OFD Sender: No OFD packet to send [16:19:08]Write i2c OK [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: F0 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: F0 09 00 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: F0 09 00 07 19 00 7D 70 C3 66 5F 7F 2B 66 9D [16:19:08]GetLastDocTimeStamp 1724084151 [16:19:08]current date 1724084349 [16:19:08]FM_GetShiftState [16:19:08]SAM_PROTO_GetShiftState [16:19:08]wFMCommunicate request_size=4 [16:19:08]MH_SAM_APDU [16:19:08]CAPDU: 80 13 01 00 [16:19:08]Write to MH i2c: E2 08 00 08 19 80 13 01 00 00 00 00 00 9E [16:19:08]Write i2c OK [16:19:08]MH_I2C_Read... [16:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:08]Read from MH i2c: E2 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 0E 00 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 0E 00 08 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 55 [16:19:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:19:08]wFMCommunicate OK [16:19:08]SAM_PROTO_GetShiftState done [16:19:08]FM_GetShiftState done [16:19:08]opened in 1724027888 [16:19:08]opened+sec_in_day 1724114288 [16:19:08]quantity*price = 200010 [16:19:08]sum+1 = 200011 [16:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 227 19.08.2024 16:19 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139392 ФПД: 126500854413567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T161909&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139392&fm=126500854413567&tin=02508201610067®Number=0000000000092569&sum=200000 [16:19:09]StoreToDocumentArchive [16:19:09]shift 452 fd 139392 [16:19:09]save to /storage/0452/doc_00139392 [16:19:09]save last doc name /storage/0452/doc_00139392 to /storage/kkm_last_doc_name [16:19:09]save OK [16:19:09]Clear old archive folders... [16:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:09]tlvbuf is 011EB240 [16:19:09]SAM_PROTO_ClearQueue [16:19:09]wFMCommunicate request_size=4 [16:19:09]MH_SAM_APDU [16:19:09]CAPDU: 80 09 00 00 [16:19:09]Write to MH i2c: E2 08 00 15 19 80 09 00 00 00 00 00 00 A0 [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:09]Read from MH i2c: E2 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 03 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 03 00 15 19 00 90 00 A2 [16:19:09]RAPDU: 90 00 [16:19:09]wFMCommunicate OK [16:19:09]SAM_PROTO_ClearQueue done [16:19:09]KKMCreateOFDPacket [16:19:09]OFDProtocolAddRootSTLVToBuf [16:19:09]FM_MakeSignedData [16:19:09]FM_MakeSignedData [16:19:09]SAM_PROTO_SignData [16:19:09]wFMCommunicate request_size=4 [16:19:09]MH_SAM_APDU [16:19:09]CAPDU: 80 0D 01 02 [16:19:09]Write to MH i2c: E2 08 00 16 19 80 0D 01 02 00 00 00 00 A8 [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:09]Read from MH i2c: E2 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 03 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 03 00 16 19 00 90 00 A3 [16:19:09]RAPDU: 90 00 [16:19:09]wFMCommunicate OK [16:19:09]wFMCommunicate request_size=255 [16:19:09]MH_SAM_APDU [16:19:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7D 70 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 20 02 00 35 04 06 00 73 [16:19:09]Write to MH i2c: E2 02 01 17 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7D 70 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 20 02 00 35 04 06 00 73 00 00 08 [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:09]Read from MH i2c: E2 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 03 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 03 00 17 19 00 90 00 A4 [16:19:09]RAPDU: 90 00 [16:19:09]wFMCommunicate OK [16:19:09]wFMCommunicate request_size=10 [16:19:09]MH_SAM_APDU [16:19:09]CAPDU: 80 0D 02 02 05 0D 46 7D B8 FF [16:19:09]Write to MH i2c: E2 0D 00 18 19 80 0D 02 02 05 00 0D 46 7D B8 FF 00 00 3C [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:09]Read from MH i2c: E2 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 03 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 03 00 18 19 00 90 00 A5 [16:19:09]RAPDU: 90 00 [16:19:09]wFMCommunicate OK [16:19:09]wFMCommunicate request_size=4 [16:19:09]MH_SAM_APDU [16:19:09]CAPDU: 80 0D 03 02 [16:19:09]Write to MH i2c: E2 08 00 19 19 80 0D 03 02 00 00 00 00 AD [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:09]Read from MH i2c: E2 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 0B 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 0B 00 19 19 00 E0 1B E5 B1 DC 49 FA 0F 90 00 6D [16:19:09]RAPDU: E0 1B E5 B1 DC 49 FA 0F 90 00 [16:19:09]wFMCommunicate OK [16:19:09]SAM_PROTO_SignData done [16:19:09]FM_MakeSignedData done [16:19:09]CreateOFDProtocolMessage [16:19:09]wFMCommunicate request_size=4 [16:19:09]MH_SAM_APDU [16:19:09]CAPDU: 80 11 00 00 [16:19:09]Write to MH i2c: E2 08 00 1A 19 80 11 00 00 00 00 00 00 AD [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:09]Read from MH i2c: E2 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 17 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: E2 17 00 1A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [16:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:19:09]wFMCommunicate OK [16:19:09]CreateOFDProtocolMessage done [16:19:09]OFDSenderStorePacket 139392 [16:19:09]StoreOFDPacket docnum=139392 [16:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CF 5E 07 01 17 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7D 70 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 20 02 00 35 04 06 00 73 0D 46 7D B8 FF E0 1B E5 B1 DC 49 FA 0F [16:19:09]CheckFolder [16:19:09]dirname=/storage/ofd_packets [16:19:09]CheckFolder done [16:19:09]ProducePacketName [16:19:09]name=ofd_packets/00139392 [16:19:09]NVStorageSaveData ofd_packets/00139392 [16:19:09]File name is /storage/ofd_packets/00139392 [16:19:09]Write 301 bytes [16:19:09]NVStorageSaveData done [16:19:09]OFDSenderStorePacket done [16:19:09]KKMCreateOFDPacket done [16:19:09]NVStorageSaveData kkm_last_timestamp [16:19:09]File name is /storage/kkm_last_timestamp [16:19:09]Write 4 bytes [16:19:09]NVStorageSaveData done [16:19:09]ExternCall_PrintAddStr [16:19:09]wPrintStart [16:19:09]Write to MH i2c: 01 00 00 1B 19 34 [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: 01 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: 01 07 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: 01 07 00 1B 19 00 00 00 00 00 FF 0F 49 [16:19:09]RasterBufferAndPrint [16:19:09]line Счет N : (1)593234 [16:19:09]line ИНН: 02508201610067 [16:19:09]line Контрольно-Кассовый Чек [16:19:09]line ПРОДАЖА [16:19:09]line ТРК (МРК, ГНК) : 52 [16:19:09]line Товар: 2710124130 [16:19:09]line Аи-92-К-5 [16:19:09]line 29.500 * 67.80 [16:19:09]line = 2000.10 [16:19:09]line НДС 12% НСП 1% [16:19:09]line > о реализуемом товаре [16:19:09]line ОКРУГЛЕНИЕ: -0.10 [16:19:09]line ИТОГО: 2000.00 [16:19:09]line Внесено: 2000.00 [16:19:09]line СДАЧА: 0.00 [16:19:09]line НСП 1% : 17.70 [16:19:09]line НДС 12% : 212.40 [16:19:09]line Наличными: 2000.00 [16:19:09]line Безнал.: 0.00 [16:19:09]line Место: АЗС № 136 "Партнер Нефть" [16:19:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:19:09]line СНО: Общий режим [16:19:09]line Чек 227 19.08.2024 16:19 [16:19:09]line Смена: 452 ФФД: 1.0 [16:19:09]line ЗНМ: 0300000067 [16:19:09]line РНМ: 0000000000092569 [16:19:09]line Версия ККМ: 001 [16:19:09]line ФМ: 0000000000871776 [16:19:09]line ФД: 139392 [16:19:09]line ФПД: 126500854413567 [16:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T161909&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139392&fm=126500854413567&tin=02508201610067®Number=0000000000092569&sum=200000 [16:19:10]OFD Sender: Processing packet 139392 [packets to send 137, broken 136] [16:19:10]ProducePacketName [16:19:10]name=ofd_packets/00139392 [16:19:10]OFD Sender: To server: pG, [16:19:10]CommunicateWithHost lk.salyk.kg:30040 [16:19:10]ConnectInit lk.salyk.kg [16:19:10]written 0, free lines is 4095 [16:19:10]Connected sock=11 [16:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CF 5E 07 01 17 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7D 70 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 20 02 00 35 04 06 00 73 0D 46 7D B8 FF E0 1B E5 B1 DC 49 FA 0F [16:19:10]Write to MH i2c: 01 00 00 46 19 5F [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: 01 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: 01 07 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: 01 07 00 46 19 00 00 00 00 00 E0 0C 52 [16:19:10]RasterBufferAndPrint [16:19:10]line [16:19:10]line [16:19:10]line [16:19:10]line [16:19:10]line [16:19:10]written 0, free lines is 3302 [16:19:10]MH_Cut [16:19:10]Write to MH i2c: D1 01 00 4D 19 01 38 [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: D1 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: D1 01 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: D1 01 00 4D 19 00 37 [16:19:10]Write to MH i2c: 01 00 00 4E 19 67 [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19: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 37 36 4F 00 00 00 59 FD 47 00 E8 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 37 36 10 04 04 00 80 20 02 00 F4 03 04 00 13 17 C3 66 B6 04 01 00 00 B2 AA 65 7F AC 45 76 6F [16:19:10]CommunicateWithHost err = 0 [16:19:10]CheckOFDResponse [16:19:10]1017 (14) - 77093643461234 [16:19:10]1041 (16) - 0000000000871776 [16:19:10]1040 (4) - 139392 [16:19:10]1012 (4) - 19.08.2024 09:57 [16:19:10]1206 (1) - 0 [16:19:10]OFD Sender: Remove packet 139392 [16:19:10]ProducePacketName [16:19:10]name=ofd_packets/00139392 [16:19:10]NVStorageDeleteData [16:19:11]OFD Sender: No OFD packet to send [16:19:11]*** Cut start [16:19:11]*** Partial cut [16:19:11]*** CUTSNS_PIN = 1 [16:19:11]*** CUTSNS_PIN = 0 [16:19:11]*** Brake cut motor [16:19:11]Read from MH i2c: 01 [16:19:11]MH_I2C_Read... [16:19:11]*** Stop cut motor [16:19:11]*** Cut end [16:19:11]Read from MH i2c: 01 07 00 [16:19:11]MH_I2C_Read... [16:19:11]Read from MH i2c: 01 07 00 4E 19 00 00 00 00 00 FF 0F 7C [16:19:11]process_action close_receipt done [16:19:11]requested_data is exist [16:19:11]produce_requested_data [16:19:11]requested_item fm.sn is exist - process it [16:19:11]wFMCommunicate request_size=4 [16:19:11]MH_SAM_APDU [16:19:11]CAPDU: 80 11 00 00 [16:19:11]Write to MH i2c: E2 08 00 4F 19 80 11 00 00 00 00 00 00 E2 [16:19:11]Write i2c OK [16:19:11]MH_I2C_Read... [16:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:11]Read from MH i2c: E2 [16:19:11]MH_I2C_Read... [16:19:11]Read from MH i2c: E2 17 00 [16:19:11]MH_I2C_Read... [16:19:11]Read from MH i2c: E2 17 00 4F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [16:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:19:11]wFMCommunicate OK [16:19:11]requested_item fd.num is exist - process it [16:19:11]SAM_PROTO_GetFieldsCounters [16:19:11]wFMCommunicate request_size=4 [16:19:11]MH_SAM_APDU [16:19:11]CAPDU: 80 13 00 00 [16:19:11]Write to MH i2c: E2 08 00 50 19 80 13 00 00 00 00 00 00 E5 [16:19:11]Write i2c OK [16:19:11]MH_I2C_Read... [16:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:12]Read from MH i2c: E2 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 62 00 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 62 00 50 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [16:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:12]wFMCommunicate OK [16:19:12]SAM_PROTO_GetFieldsCounters done [16:19:12]requested_item shift.num is exist - process it [16:19:12]requested_item shift.opened is exist - process it [16:19:12]req_shift_opened [16:19:12]FM_GetShiftState [16:19:12]SAM_PROTO_GetShiftState [16:19:12]wFMCommunicate request_size=4 [16:19:12]MH_SAM_APDU [16:19:12]CAPDU: 80 13 01 00 [16:19:12]Write to MH i2c: E2 08 00 51 19 80 13 01 00 00 00 00 00 E7 [16:19:12]Write i2c OK [16:19:12]MH_I2C_Read... [16:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:12]Read from MH i2c: E2 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 0E 00 [16:19:12]MH_I2C_Read... [16:19:12]Read from MH i2c: E2 0E 00 51 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9E [16:19:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:19:12]wFMCommunicate OK [16:19:12]SAM_PROTO_GetShiftState done [16:19:12]FM_GetShiftState done [16:19:12]req_shift_opened done [16:19:12]requested_item shift.open_date is exist - process it [16:19:12]req_shift_open_date [16:19:12]req_shift_open_date done [16:19:12]produce_requested_data done [16:19:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139392,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:19:12]process_action_free close_receipt [16:19:12]json_value_free [16:19:12]json_value_free done [16:19:12]process_json_proto returns [16:19:12]Send response to host [16:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139392,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:19:12]free response buf [16:19:12]execute_script done [16:19:12]execute_script returns [16:19:12]free content buf [16:19:12]Sock 8.Close socket [16:19:12]Sock 8.Thread stoped [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:43]accept exits with 9 [16:20:43]New connection [16:20:43]New thread 3066817892 created [16:20:43]Thread 3066674532 joined [16:20:43]Waiting for new connection... [16:20:43] Sock 9.Parse request [16:20:43]Sock 9.Check first char [16:20:43]Sock 9.First char is OK [16:20:43]request: POST /json_proto HTTP/1.0 [16:20:43]Method: POST [16:20:43]URL: /json_proto [16:20:43]Method is POST - this is cgi request [16:20:43]url: /json_proto [16:20:43]query_string will be loaded in cgi processing [16:20:43]execute_cgi json_proto POST (null) [16:20:43]execute_cgi path=json_proto method=POST [16:20:43]POST find Content-Length [16:20:43]Host: 172.17.45.67:8080 [16:20:43]Content-Length: 678 [16:20:43]Content-Type: application/json [16:20:43] [16:20:43]POST finish read [16:20:43]Found Content-Length = 678 [16:20:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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:20:43]execute_script... [16:20: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)593235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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:20:43]POST & json_proto [16:20:43]process_json_proto [16:20:43]json parsed OK: [16:20:43]protocol is kg_v1.0 [16:20:43]action value=close_receipt [16:20:43]process_action close_receipt [16:20:43]cmd_close_receipt [16:20:43]MH_GetDate [16:20:43]Write to MH i2c: F0 00 00 52 19 5A [16:20:43]Write i2c OK [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: F0 [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: F0 09 00 [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: F0 09 00 52 19 00 DC 70 C3 66 5F 7F 2B 66 47 [16:20:43]GetLastDocTimeStamp 1724084349 [16:20:43]current date 1724084444 [16:20:43]FM_GetShiftState [16:20:43]SAM_PROTO_GetShiftState [16:20:43]wFMCommunicate request_size=4 [16:20:43]MH_SAM_APDU [16:20:43]CAPDU: 80 13 01 00 [16:20:43]Write to MH i2c: E2 08 00 53 19 80 13 01 00 00 00 00 00 E9 [16:20:43]Write i2c OK [16:20:43]MH_I2C_Read... [16:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:43]Read from MH i2c: E2 [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: E2 0E 00 [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: E2 0E 00 53 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A0 [16:20:43]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:20:43]wFMCommunicate OK [16:20:43]SAM_PROTO_GetShiftState done [16:20:43]FM_GetShiftState done [16:20:43]opened in 1724027888 [16:20:43]opened+sec_in_day 1724114288 [16:20:43]quantity*price = 80061 [16:20:43]sum+1 = 80063 [16:20:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 228 19.08.2024 16:20 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139393 ФПД: 140477432302615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139393&fm=140477432302615&tin=02508201610067®Number=0000000000092569&sum=80000 [16:20:44]StoreToDocumentArchive [16:20:44]shift 452 fd 139393 [16:20:44]save to /storage/0452/doc_00139393 [16:20:44]save last doc name /storage/0452/doc_00139393 to /storage/kkm_last_doc_name [16:20:44]save OK [16:20:44]Clear old archive folders... [16:20:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:44]tlvbuf is B6E87730 [16:20:44]SAM_PROTO_ClearQueue [16:20:44]wFMCommunicate request_size=4 [16:20:44]MH_SAM_APDU [16:20:44]CAPDU: 80 09 00 00 [16:20:44]Write to MH i2c: E2 08 00 60 19 80 09 00 00 00 00 00 00 EB [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:44]Read from MH i2c: E2 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 03 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 03 00 60 19 00 90 00 ED [16:20:44]RAPDU: 90 00 [16:20:44]wFMCommunicate OK [16:20:44]SAM_PROTO_ClearQueue done [16:20:44]KKMCreateOFDPacket [16:20:44]OFDProtocolAddRootSTLVToBuf [16:20:44]FM_MakeSignedData [16:20:44]FM_MakeSignedData [16:20:44]SAM_PROTO_SignData [16:20:44]wFMCommunicate request_size=4 [16:20:44]MH_SAM_APDU [16:20:44]CAPDU: 80 0D 01 02 [16:20:44]Write to MH i2c: E2 08 00 61 19 80 0D 01 02 00 00 00 00 F3 [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:44]Read from MH i2c: E2 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 03 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 03 00 61 19 00 90 00 EE [16:20:44]RAPDU: 90 00 [16:20:44]wFMCommunicate OK [16:20:44]wFMCommunicate request_size=255 [16:20:44]MH_SAM_APDU [16:20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 E4 00 00 00 F4 03 04 00 DC 70 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 20 02 00 35 04 06 00 7F [16:20:44]Write to MH i2c: E2 02 01 62 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 E4 00 00 00 F4 03 04 00 DC 70 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 20 02 00 35 04 06 00 7F 00 00 39 [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:44]Read from MH i2c: E2 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 03 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 03 00 62 19 00 90 00 EF [16:20:44]RAPDU: 90 00 [16:20:44]wFMCommunicate OK [16:20:44]wFMCommunicate request_size=10 [16:20:44]MH_SAM_APDU [16:20:44]CAPDU: 80 0D 02 02 05 C3 73 73 8C 17 [16:20:44]Write to MH i2c: E2 0D 00 63 19 80 0D 02 02 05 00 C3 73 73 8C 17 00 00 4C [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:44]Read from MH i2c: E2 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 03 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 03 00 63 19 00 90 00 F0 [16:20:44]RAPDU: 90 00 [16:20:44]wFMCommunicate OK [16:20:44]wFMCommunicate request_size=4 [16:20:44]MH_SAM_APDU [16:20:44]CAPDU: 80 0D 03 02 [16:20:44]Write to MH i2c: E2 08 00 64 19 80 0D 03 02 00 00 00 00 F8 [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:44]Read from MH i2c: E2 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 0B 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 0B 00 64 19 00 E2 56 5F 5C 4B D1 CF 8B 90 00 62 [16:20:44]RAPDU: E2 56 5F 5C 4B D1 CF 8B 90 00 [16:20:44]wFMCommunicate OK [16:20:44]SAM_PROTO_SignData done [16:20:44]FM_MakeSignedData done [16:20:44]CreateOFDProtocolMessage [16:20:44]wFMCommunicate request_size=4 [16:20:44]MH_SAM_APDU [16:20:44]CAPDU: 80 11 00 00 [16:20:44]Write to MH i2c: E2 08 00 65 19 80 11 00 00 00 00 00 00 F8 [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:44]Read from MH i2c: E2 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 17 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 17 00 65 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [16:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:20:44]wFMCommunicate OK [16:20:44]CreateOFDProtocolMessage done [16:20:44]OFDSenderStorePacket 139393 [16:20:44]StoreOFDPacket docnum=139393 [16:20:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 9F 07 01 75 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 E4 00 00 00 F4 03 04 00 DC 70 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 20 02 00 35 04 06 00 7F C3 73 73 8C 17 E2 56 5F 5C 4B D1 CF 8B [16:20:44]CheckFolder [16:20:44]dirname=/storage/ofd_packets [16:20:44]CheckFolder done [16:20:44]ProducePacketName [16:20:44]name=ofd_packets/00139393 [16:20:44]NVStorageSaveData ofd_packets/00139393 [16:20:44]File name is /storage/ofd_packets/00139393 [16:20:44]Write 301 bytes [16:20:44]NVStorageSaveData done [16:20:44]OFDSenderStorePacket done [16:20:44]KKMCreateOFDPacket done [16:20:44]NVStorageSaveData kkm_last_timestamp [16:20:44]File name is /storage/kkm_last_timestamp [16:20:44]Write 4 bytes [16:20:44]NVStorageSaveData done [16:20:44]ExternCall_PrintAddStr [16:20:44]wPrintStart [16:20:44]Write to MH i2c: 01 00 00 66 19 7F [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: 01 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: 01 07 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: 01 07 00 66 19 00 00 00 00 00 FF 0F 94 [16:20:44]RasterBufferAndPrint [16:20:44]line Счет N : (1)593235 [16:20:44]line ИНН: 02508201610067 [16:20:44]line Контрольно-Кассовый Чек [16:20:44]line ПРОДАЖА [16:20:44]line ТРК (МРК, ГНК) : 31 [16:20:44]line Товар: 2710124500 [16:20:44]line Аи-95-К-5 [16:20:44]line 10.790 * 74.20 [16:20:44]line = 800.62 [16:20:44]line НДС 12% НСП 1% [16:20:44]line > о реализуемом товаре [16:20:44]line ОКРУГЛЕНИЕ: -0.62 [16:20:44]line ИТОГО: 800.00 [16:20:44]line Внесено: 800.00 [16:20:44]line СДАЧА: 0.00 [16:20:44]line НСП 1% : 7.08 [16:20:44]line НДС 12% : 85.02 [16:20:44]line Наличными: 800.00 [16:20:44]line Безнал.: 0.00 [16:20:44]line Место: АЗС № 136 "Партнер Нефть" [16:20:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:20:44]line СНО: Общий режим [16:20:44]line Чек 228 19.08.2024 16:20 [16:20:44]line Смена: 452 ФФД: 1.0 [16:20:44]line ЗНМ: 0300000067 [16:20:44]line РНМ: 0000000000092569 [16:20:44]line Версия ККМ: 001 [16:20:44]line ФМ: 0000000000871776 [16:20:44]line ФД: 139393 [16:20:44]line ФПД: 140477432302615 [16:20:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139393&fm=140477432302615&tin=02508201610067®Number=0000000000092569&sum=80000 [16:20:44]written 0, free lines is 4095 [16:20:45]OFD Sender: Processing packet 139393 [packets to send 137, broken 136] [16:20:45]ProducePacketName [16:20:45]name=ofd_packets/00139393 [16:20:45]OFD Sender: To server: pG, [16:20:45]CommunicateWithHost lk.salyk.kg:30040 [16:20:45]ConnectInit lk.salyk.kg [16:20:45]Connected sock=10 [16:20: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 37 36 0F 01 00 00 91 9F 07 01 75 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 E4 00 00 00 F4 03 04 00 DC 70 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 20 02 00 35 04 06 00 7F C3 73 73 8C 17 E2 56 5F 5C 4B D1 CF 8B [16:20: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 37 36 4F 00 00 00 BF B8 47 00 B8 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 37 36 10 04 04 00 81 20 02 00 F4 03 04 00 72 17 C3 66 B6 04 01 00 00 5E DA C3 6E 6B E4 8C 29 [16:20:45]CommunicateWithHost err = 0 [16:20:45]CheckOFDResponse [16:20:45]1017 (14) - 77093643461234 [16:20:45]1041 (16) - 0000000000871776 [16:20:45]1040 (4) - 139393 [16:20:45]1012 (4) - 19.08.2024 09:59 [16:20:45]1206 (1) - 0 [16:20:45]OFD Sender: Remove packet 139393 [16:20:45]ProducePacketName [16:20:45]name=ofd_packets/00139393 [16:20:45]NVStorageDeleteData [16:20:45]Write to MH i2c: 01 00 00 91 19 AA [16:20:45]Write i2c OK [16:20:45]MH_I2C_Read... [16:20:45]Read from MH i2c: 01 [16:20:45]MH_I2C_Read... [16:20:45]Read from MH i2c: 01 07 00 [16:20:45]MH_I2C_Read... [16:20:45]Read from MH i2c: 01 07 00 91 19 00 00 00 00 00 DD 0C 9A [16:20:45]RasterBufferAndPrint [16:20:45]line [16:20:45]line [16:20:45]line [16:20:45]line [16:20:45]line [16:20:45]written 0, free lines is 3299 [16:20:45]MH_Cut [16:20:45]Write to MH i2c: D1 01 00 98 19 01 83 [16:20:45]Write i2c OK [16:20:45]MH_I2C_Read... [16:20:45]Read from MH i2c: D1 [16:20:45]MH_I2C_Read... [16:20:45]Read from MH i2c: D1 01 00 [16:20:45]MH_I2C_Read... [16:20:45]Read from MH i2c: D1 01 00 98 19 00 82 [16:20:45]Write to MH i2c: 01 00 00 99 19 B2 [16:20:45]Write i2c OK [16:20:45]MH_I2C_Read... [16:20:45]OFD Sender: No OFD packet to send [16:20:46]*** Cut start [16:20:46]*** Partial cut [16:20:46]*** CUTSNS_PIN = 1 [16:20:46]*** CUTSNS_PIN = 0 [16:20:46]*** Brake cut motor [16:20:46]Read from MH i2c: 01 [16:20:46]MH_I2C_Read... [16:20:46]*** Stop cut motor [16:20:46]*** Cut end [16:20:46]Read from MH i2c: 01 07 00 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: 01 07 00 99 19 00 00 00 00 00 FF 0F C7 [16:20:46]process_action close_receipt done [16:20:46]requested_data is exist [16:20:46]produce_requested_data [16:20:46]requested_item fm.sn is exist - process it [16:20:46]wFMCommunicate request_size=4 [16:20:46]MH_SAM_APDU [16:20:46]CAPDU: 80 11 00 00 [16:20:46]Write to MH i2c: E2 08 00 9A 19 80 11 00 00 00 00 00 00 2D [16:20:46]Write i2c OK [16:20:46]MH_I2C_Read... [16:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:46]Read from MH i2c: E2 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: E2 17 00 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: E2 17 00 9A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [16:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:20:46]wFMCommunicate OK [16:20:46]requested_item fd.num is exist - process it [16:20:46]SAM_PROTO_GetFieldsCounters [16:20:46]wFMCommunicate request_size=4 [16:20:46]MH_SAM_APDU [16:20:46]CAPDU: 80 13 00 00 [16:20:46]Write to MH i2c: E2 08 00 9B 19 80 13 00 00 00 00 00 00 30 [16:20:46]Write i2c OK [16:20:46]MH_I2C_Read... [16:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:46]Read from MH i2c: E2 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: E2 62 00 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: E2 62 00 9B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [16:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:46]wFMCommunicate OK [16:20:46]SAM_PROTO_GetFieldsCounters done [16:20:46]requested_item shift.num is exist - process it [16:20:46]requested_item shift.opened is exist - process it [16:20:46]req_shift_opened [16:20:46]FM_GetShiftState [16:20:46]SAM_PROTO_GetShiftState [16:20:46]wFMCommunicate request_size=4 [16:20:46]MH_SAM_APDU [16:20:46]CAPDU: 80 13 01 00 [16:20:46]Write to MH i2c: E2 08 00 9C 19 80 13 01 00 00 00 00 00 32 [16:20:46]Write i2c OK [16:20:46]MH_I2C_Read... [16:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:46]Read from MH i2c: E2 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: E2 0E 00 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: E2 0E 00 9C 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E9 [16:20:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:20:46]wFMCommunicate OK [16:20:46]SAM_PROTO_GetShiftState done [16:20:46]FM_GetShiftState done [16:20:46]req_shift_opened done [16:20:46]requested_item shift.open_date is exist - process it [16:20:46]req_shift_open_date [16:20:46]req_shift_open_date done [16:20:46]produce_requested_data done [16:20:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139393,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:20:46]process_action_free close_receipt [16:20:46]json_value_free [16:20:46]json_value_free done [16:20:46]process_json_proto returns [16:20:46]Send response to host [16:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139393,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:20:46]free response buf [16:20:46]execute_script done [16:20:46]execute_script returns [16:20:46]free content buf [16:20:46]Sock 9.Close socket [16:20:46]Sock 9.Thread stoped [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:17]accept exits with 8 [16:24:17]New connection [16:24:17]New thread 3066674532 created [16:24:17]Thread 3066817892 joined [16:24:17]Waiting for new connection... [16:24:17] Sock 8.Parse request [16:24:17]Sock 8.Check first char [16:24:17]Sock 8.First char is OK [16:24:17]request: POST /json_proto HTTP/1.0 [16:24:17]Method: POST [16:24:17]URL: /json_proto [16:24:17]Method is POST - this is cgi request [16:24:17]url: /json_proto [16:24:17]query_string will be loaded in cgi processing [16:24:17]execute_cgi json_proto POST (null) [16:24:17]execute_cgi path=json_proto method=POST [16:24:17]POST find Content-Length [16:24:17]Host: 172.17.45.67:8080 [16:24:17]Content-Length: 677 [16:24:17]Content-Type: application/json [16:24:17] [16:24:17]POST finish read [16:24:17]Found Content-Length = 677 [16:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:24:17]execute_script... [16:24: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)593236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:24:17]POST & json_proto [16:24:17]process_json_proto [16:24:17]json parsed OK: [16:24:17]protocol is kg_v1.0 [16:24:17]action value=close_receipt [16:24:17]process_action close_receipt [16:24:17]cmd_close_receipt [16:24:17]MH_GetDate [16:24:17]Write to MH i2c: F0 00 00 9D 19 A5 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: F0 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: F0 09 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: F0 09 00 9D 19 00 B3 71 C3 66 5F 7F 2B 66 6A [16:24:17]GetLastDocTimeStamp 1724084444 [16:24:17]current date 1724084659 [16:24:17]FM_GetShiftState [16:24:17]SAM_PROTO_GetShiftState [16:24:17]wFMCommunicate request_size=4 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 13 01 00 [16:24:17]Write to MH i2c: E2 08 00 9E 19 80 13 01 00 00 00 00 00 34 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 0E 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 0E 00 9E 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EB [16:24:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:24:17]wFMCommunicate OK [16:24:17]SAM_PROTO_GetShiftState done [16:24:17]FM_GetShiftState done [16:24:17]opened in 1724027888 [16:24:17]opened+sec_in_day 1724114288 [16:24:17]quantity*price = 50036 [16:24:17]sum+1 = 50037 [16:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 229 19.08.2024 16:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139394 ФПД: 29399823638442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162419&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139394&fm=29399823638442&tin=02508201610067®Number=0000000000092569&sum=50000 [16:24:18]StoreToDocumentArchive [16:24:18]shift 452 fd 139394 [16:24:18]save to /storage/0452/doc_00139394 [16:24:18]save last doc name /storage/0452/doc_00139394 to /storage/kkm_last_doc_name [16:24:18]save OK [16:24:18]Clear old archive folders... [16:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:18]tlvbuf is B6EA0A00 [16:24:18]SAM_PROTO_ClearQueue [16:24:18]wFMCommunicate request_size=4 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 09 00 00 [16:24:18]Write to MH i2c: E2 08 00 AB 19 80 09 00 00 00 00 00 00 36 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 AB 19 00 90 00 38 [16:24:18]RAPDU: 90 00 [16:24:18]wFMCommunicate OK [16:24:18]SAM_PROTO_ClearQueue done [16:24:18]KKMCreateOFDPacket [16:24:18]OFDProtocolAddRootSTLVToBuf [16:24:18]FM_MakeSignedData [16:24:18]FM_MakeSignedData [16:24:18]SAM_PROTO_SignData [16:24:18]wFMCommunicate request_size=4 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 0D 01 02 [16:24:18]Write to MH i2c: E2 08 00 AC 19 80 0D 01 02 00 00 00 00 3E [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 AC 19 00 90 00 39 [16:24:18]RAPDU: 90 00 [16:24:18]wFMCommunicate OK [16:24:18]wFMCommunicate request_size=255 [16:24:18]MH_SAM_APDU [16:24: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E5 00 00 00 F4 03 04 00 B3 71 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 20 02 00 35 04 06 00 1A [16:24:18]Write to MH i2c: E2 02 01 AD 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E5 00 00 00 F4 03 04 00 B3 71 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 20 02 00 35 04 06 00 1A 00 00 7C [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:19]Read from MH i2c: E2 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: E2 03 00 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: E2 03 00 AD 19 00 90 00 3A [16:24:19]RAPDU: 90 00 [16:24:19]wFMCommunicate OK [16:24:19]wFMCommunicate request_size=10 [16:24:19]MH_SAM_APDU [16:24:19]CAPDU: 80 0D 02 02 05 BD 2E 0B 5F AA [16:24:19]Write to MH i2c: E2 0D 00 AE 19 80 0D 02 02 05 00 BD 2E 0B 5F AA 00 00 4A [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:19]Read from MH i2c: E2 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: E2 03 00 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: E2 03 00 AE 19 00 90 00 3B [16:24:19]RAPDU: 90 00 [16:24:19]wFMCommunicate OK [16:24:19]wFMCommunicate request_size=4 [16:24:19]MH_SAM_APDU [16:24:19]CAPDU: 80 0D 03 02 [16:24:19]Write to MH i2c: E2 08 00 AF 19 80 0D 03 02 00 00 00 00 43 [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:19]Read from MH i2c: E2 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: E2 0B 00 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: E2 0B 00 AF 19 00 12 F8 89 B9 2A EC 81 60 90 00 87 [16:24:19]RAPDU: 12 F8 89 B9 2A EC 81 60 90 00 [16:24:19]wFMCommunicate OK [16:24:19]SAM_PROTO_SignData done [16:24:19]FM_MakeSignedData done [16:24:19]CreateOFDProtocolMessage [16:24:19]wFMCommunicate request_size=4 [16:24:19]MH_SAM_APDU [16:24:19]CAPDU: 80 11 00 00 [16:24:19]Write to MH i2c: E2 08 00 B0 19 80 11 00 00 00 00 00 00 43 [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:19]Read from MH i2c: E2 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: E2 17 00 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: E2 17 00 B0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [16:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:24:19]wFMCommunicate OK [16:24:19]CreateOFDProtocolMessage done [16:24:19]OFDSenderStorePacket 139394 [16:24:19]StoreOFDPacket docnum=139394 [16:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5C FD 07 01 35 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E5 00 00 00 F4 03 04 00 B3 71 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 20 02 00 35 04 06 00 1A BD 2E 0B 5F AA 12 F8 89 B9 2A EC 81 60 [16:24:19]CheckFolder [16:24:19]dirname=/storage/ofd_packets [16:24:19]CheckFolder done [16:24:19]ProducePacketName [16:24:19]name=ofd_packets/00139394 [16:24:19]NVStorageSaveData ofd_packets/00139394 [16:24:19]File name is /storage/ofd_packets/00139394 [16:24:19]Write 301 bytes [16:24:19]NVStorageSaveData done [16:24:19]OFDSenderStorePacket done [16:24:19]KKMCreateOFDPacket done [16:24:19]NVStorageSaveData kkm_last_timestamp [16:24:19]File name is /storage/kkm_last_timestamp [16:24:19]Write 4 bytes [16:24:19]NVStorageSaveData done [16:24:19]ExternCall_PrintAddStr [16:24:19]wPrintStart [16:24:19]Write to MH i2c: 01 00 00 B1 19 CA [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: 01 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: 01 07 00 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: 01 07 00 B1 19 00 00 00 00 00 FF 0F DF [16:24:19]RasterBufferAndPrint [16:24:19]line Счет N : (1)593236 [16:24:19]line ИНН: 02508201610067 [16:24:19]line Контрольно-Кассовый Чек [16:24:19]line ПРОДАЖА [16:24:19]line ТРК (МРК, ГНК) : 42 [16:24:19]line Товар: 2710124130 [16:24:19]line Аи-92-К-5 [16:24:19]line 7.380 * 67.80 [16:24:19]line = 500.36 [16:24:19]line НДС 12% НСП 1% [16:24:19]line > о реализуемом товаре [16:24:19]line ОКРУГЛЕНИЕ: -0.36 [16:24:19]line ИТОГО: 500.00 [16:24:19]line Внесено: 500.00 [16:24:19]line СДАЧА: 0.00 [16:24:19]line НСП 1% : 4.43 [16:24:19]line НДС 12% : 53.14 [16:24:19]line Наличными: 500.00 [16:24:19]line Безнал.: 0.00 [16:24:19]line Место: АЗС № 136 "Партнер Нефть" [16:24:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:24:19]line СНО: Общий режим [16:24:19]line Чек 229 19.08.2024 16:24 [16:24:19]line Смена: 452 ФФД: 1.0 [16:24:19]line ЗНМ: 0300000067 [16:24:19]line РНМ: 0000000000092569 [16:24:19]line Версия ККМ: 001 [16:24:19]line ФМ: 0000000000871776 [16:24:19]line ФД: 139394 [16:24:19]line ФПД: 29399823638442 [16:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162419&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139394&fm=29399823638442&tin=02508201610067®Number=0000000000092569&sum=50000 [16:24:19]written 0, free lines is 4095 [16:24:19]OFD Sender: Processing packet 139394 [packets to send 137, broken 136] [16:24:19]ProducePacketName [16:24:19]name=ofd_packets/00139394 [16:24:19]OFD Sender: To server: pG, [16:24:19]CommunicateWithHost lk.salyk.kg:30040 [16:24:19]ConnectInit lk.salyk.kg [16:24:19]Connected sock=10 [16:24: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 37 36 0F 01 00 00 5C FD 07 01 35 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E5 00 00 00 F4 03 04 00 B3 71 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 20 02 00 35 04 06 00 1A BD 2E 0B 5F AA 12 F8 89 B9 2A EC 81 60 [16:24: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 37 36 4F 00 00 00 9C 7A 47 00 E4 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 20 02 00 F4 03 04 00 48 18 C3 66 B6 04 01 00 00 02 8F B5 3E 7A 37 DE AA [16:24:19]CommunicateWithHost err = 0 [16:24:19]CheckOFDResponse [16:24:19]1017 (14) - 77093643461234 [16:24:19]1041 (16) - 0000000000871776 [16:24:19]1040 (4) - 139394 [16:24:19]1012 (4) - 19.08.2024 10:02 [16:24:19]1206 (1) - 0 [16:24:19]OFD Sender: Remove packet 139394 [16:24:19]ProducePacketName [16:24:19]name=ofd_packets/00139394 [16:24:19]NVStorageDeleteData [16:24:19]Write to MH i2c: 01 00 00 DC 19 F5 [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: 01 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: 01 07 00 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: 01 07 00 DC 19 00 00 00 00 00 F0 0C F8 [16:24:19]RasterBufferAndPrint [16:24:19]line [16:24:19]line [16:24:19]line [16:24:19]line [16:24:19]line [16:24:19]written 0, free lines is 3318 [16:24:19]MH_Cut [16:24:19]Write to MH i2c: D1 01 00 E3 19 01 CE [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: D1 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: D1 01 00 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: D1 01 00 E3 19 00 CD [16:24:19]Write to MH i2c: 01 00 00 E4 19 FD [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:20]OFD Sender: No OFD packet to send [16:24:20]*** Cut start [16:24:20]*** Partial cut [16:24:20]*** CUTSNS_PIN = 1 [16:24:20]*** CUTSNS_PIN = 0 [16:24:20]*** Brake cut motor [16:24:21]Read from MH i2c: 01 [16:24:21]MH_I2C_Read... [16:24:21]*** Stop cut motor [16:24:21]*** Cut end [16:24:21]Read from MH i2c: 01 07 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: 01 07 00 E4 19 00 00 00 00 00 FF 0F 12 [16:24:21]process_action close_receipt done [16:24:21]requested_data is exist [16:24:21]produce_requested_data [16:24:21]requested_item fm.sn is exist - process it [16:24:21]wFMCommunicate request_size=4 [16:24:21]MH_SAM_APDU [16:24:21]CAPDU: 80 11 00 00 [16:24:21]Write to MH i2c: E2 08 00 E5 19 80 11 00 00 00 00 00 00 78 [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:21]Read from MH i2c: E2 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 17 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 17 00 E5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [16:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:24:21]wFMCommunicate OK [16:24:21]requested_item fd.num is exist - process it [16:24:21]SAM_PROTO_GetFieldsCounters [16:24:21]wFMCommunicate request_size=4 [16:24:21]MH_SAM_APDU [16:24:21]CAPDU: 80 13 00 00 [16:24:21]Write to MH i2c: E2 08 00 E6 19 80 13 00 00 00 00 00 00 7B [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:21]Read from MH i2c: E2 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 62 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 62 00 E6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [16:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:21]wFMCommunicate OK [16:24:21]SAM_PROTO_GetFieldsCounters done [16:24:21]requested_item shift.num is exist - process it [16:24:21]requested_item shift.opened is exist - process it [16:24:21]req_shift_opened [16:24:21]FM_GetShiftState [16:24:21]SAM_PROTO_GetShiftState [16:24:21]wFMCommunicate request_size=4 [16:24:21]MH_SAM_APDU [16:24:21]CAPDU: 80 13 01 00 [16:24:21]Write to MH i2c: E2 08 00 E7 19 80 13 01 00 00 00 00 00 7D [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:21]Read from MH i2c: E2 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 0E 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 0E 00 E7 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 34 [16:24:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:24:21]wFMCommunicate OK [16:24:21]SAM_PROTO_GetShiftState done [16:24:21]FM_GetShiftState done [16:24:21]req_shift_opened done [16:24:21]requested_item shift.open_date is exist - process it [16:24:21]req_shift_open_date [16:24:21]req_shift_open_date done [16:24:21]produce_requested_data done [16:24:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139394,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:24:21]process_action_free close_receipt [16:24:21]json_value_free [16:24:21]json_value_free done [16:24:21]process_json_proto returns [16:24:21]Send response to host [16:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139394,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:24:21]free response buf [16:24:21]execute_script done [16:24:21]execute_script returns [16:24:21]free content buf [16:24:21]Sock 8.Close socket [16:24:21]Sock 8.Thread stoped [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:04]accept exits with 9 [16:25:04]New connection [16:25:04]New thread 3066817892 created [16:25:04]Thread 3066674532 joined [16:25:04]Waiting for new connection... [16:25:04] Sock 9.Parse request [16:25:04]Sock 9.Check first char [16:25:04]Sock 9.First char is OK [16:25:04]request: POST /json_proto HTTP/1.0 [16:25:04]Method: POST [16:25:04]URL: /json_proto [16:25:04]Method is POST - this is cgi request [16:25:04]url: /json_proto [16:25:04]query_string will be loaded in cgi processing [16:25:04]execute_cgi json_proto POST (null) [16:25:04]execute_cgi path=json_proto method=POST [16:25:04]POST find Content-Length [16:25:04]Host: 172.17.45.67:8080 [16:25:04]Content-Length: 677 [16:25:04]Content-Type: application/json [16:25:04] [16:25:04]POST finish read [16:25:04]Found Content-Length = 677 [16:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [16:25:04]execute_script... [16:25: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)593237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [16:25:04]POST & json_proto [16:25:04]process_json_proto [16:25:04]json parsed OK: [16:25:04]protocol is kg_v1.0 [16:25:04]action value=close_receipt [16:25:04]process_action close_receipt [16:25:04]cmd_close_receipt [16:25:04]MH_GetDate [16:25:04]Write to MH i2c: F0 00 00 E8 19 F0 [16:25:04]Write i2c OK [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: F0 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: F0 09 00 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: F0 09 00 E8 19 00 E1 71 C3 66 5F 7F 2B 66 E3 [16:25:04]GetLastDocTimeStamp 1724084659 [16:25:04]current date 1724084705 [16:25:04]FM_GetShiftState [16:25:04]SAM_PROTO_GetShiftState [16:25:04]wFMCommunicate request_size=4 [16:25:04]MH_SAM_APDU [16:25:04]CAPDU: 80 13 01 00 [16:25:04]Write to MH i2c: E2 08 00 E9 19 80 13 01 00 00 00 00 00 7F [16:25:04]Write i2c OK [16:25:04]MH_I2C_Read... [16:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:04]Read from MH i2c: E2 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: E2 0E 00 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: E2 0E 00 E9 19 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 36 [16:25:04]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:25:04]wFMCommunicate OK [16:25:04]SAM_PROTO_GetShiftState done [16:25:04]FM_GetShiftState done [16:25:04]opened in 1724027888 [16:25:04]opened+sec_in_day 1724114288 [16:25:04]quantity*price = 10034 [16:25:04]sum+1 = 10035 [16:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 230 19.08.2024 16:25 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139395 ФПД: 41251607572659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162505&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139395&fm=41251607572659&tin=02508201610067®Number=0000000000092569&sum=10000 [16:25:05]StoreToDocumentArchive [16:25:05]shift 452 fd 139395 [16:25:05]save to /storage/0452/doc_00139395 [16:25:05]save last doc name /storage/0452/doc_00139395 to /storage/kkm_last_doc_name [16:25:05]save OK [16:25:05]Clear old archive folders... [16:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:05]tlvbuf is B6EA0800 [16:25:05]SAM_PROTO_ClearQueue [16:25:05]wFMCommunicate request_size=4 [16:25:05]MH_SAM_APDU [16:25:05]CAPDU: 80 09 00 00 [16:25:05]Write to MH i2c: E2 08 00 F6 19 80 09 00 00 00 00 00 00 81 [16:25:05]Write i2c OK [16:25:05]MH_I2C_Read... [16:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:05]Read from MH i2c: E2 [16:25:05]MH_I2C_Read... [16:25:05]Read from MH i2c: E2 03 00 [16:25:05]MH_I2C_Read... [16:25:05]Read from MH i2c: E2 03 00 F6 19 00 90 00 83 [16:25:05]RAPDU: 90 00 [16:25:05]wFMCommunicate OK [16:25:05]SAM_PROTO_ClearQueue done [16:25:05]KKMCreateOFDPacket [16:25:05]OFDProtocolAddRootSTLVToBuf [16:25:05]FM_MakeSignedData [16:25:05]FM_MakeSignedData [16:25:05]SAM_PROTO_SignData [16:25:05]wFMCommunicate request_size=4 [16:25:05]MH_SAM_APDU [16:25:05]CAPDU: 80 0D 01 02 [16:25:05]Write to MH i2c: E2 08 00 F7 19 80 0D 01 02 00 00 00 00 89 [16:25:05]Write i2c OK [16:25:05]MH_I2C_Read... [16:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:05]Read from MH i2c: E2 [16:25:05]MH_I2C_Read... [16:25:05]Read from MH i2c: E2 03 00 [16:25:05]MH_I2C_Read... [16:25:05]Read from MH i2c: E2 03 00 F7 19 00 90 00 84 [16:25:05]RAPDU: 90 00 [16:25:05]wFMCommunicate OK [16:25:05]wFMCommunicate request_size=255 [16:25:05]MH_SAM_APDU [16: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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 E6 00 00 00 F4 03 04 00 E1 71 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 20 02 00 35 04 06 00 25 [16:25:05]Write to MH i2c: E2 02 01 F8 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 E6 00 00 00 F4 03 04 00 E1 71 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 20 02 00 35 04 06 00 25 00 00 3E [16:25:05]Write i2c OK [16:25:05]MH_I2C_Read... [16:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:06]Read from MH i2c: E2 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: E2 03 00 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: E2 03 00 F8 19 00 90 00 85 [16:25:06]RAPDU: 90 00 [16:25:06]wFMCommunicate OK [16:25:06]wFMCommunicate request_size=10 [16:25:06]MH_SAM_APDU [16:25:06]CAPDU: 80 0D 02 02 05 84 A3 6A 70 B3 [16:25:06]Write to MH i2c: E2 0D 00 F9 19 80 0D 02 02 05 00 84 A3 6A 70 B3 00 00 4A [16:25:06]Write i2c OK [16:25:06]MH_I2C_Read... [16:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:06]Read from MH i2c: E2 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: E2 03 00 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: E2 03 00 F9 19 00 90 00 86 [16:25:06]RAPDU: 90 00 [16:25:06]wFMCommunicate OK [16:25:06]wFMCommunicate request_size=4 [16:25:06]MH_SAM_APDU [16:25:06]CAPDU: 80 0D 03 02 [16:25:06]Write to MH i2c: E2 08 00 FA 19 80 0D 03 02 00 00 00 00 8E [16:25:06]Write i2c OK [16:25:06]MH_I2C_Read... [16:25:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:06]Read from MH i2c: E2 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: E2 0B 00 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: E2 0B 00 FA 19 00 A4 1E EF 78 7A D0 03 2B 90 00 30 [16:25:06]RAPDU: A4 1E EF 78 7A D0 03 2B 90 00 [16:25:06]wFMCommunicate OK [16:25:06]SAM_PROTO_SignData done [16:25:06]FM_MakeSignedData done [16:25:06]CreateOFDProtocolMessage [16:25:06]wFMCommunicate request_size=4 [16:25:06]MH_SAM_APDU [16:25:06]CAPDU: 80 11 00 00 [16:25:06]Write to MH i2c: E2 08 00 FB 19 80 11 00 00 00 00 00 00 8E [16:25:06]Write i2c OK [16:25:06]MH_I2C_Read... [16:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:06]Read from MH i2c: E2 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: E2 17 00 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: E2 17 00 FB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E5 [16:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:25:06]wFMCommunicate OK [16:25:06]CreateOFDProtocolMessage done [16:25:06]OFDSenderStorePacket 139395 [16:25:06]StoreOFDPacket docnum=139395 [16:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F5 97 07 01 13 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 E6 00 00 00 F4 03 04 00 E1 71 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 20 02 00 35 04 06 00 25 84 A3 6A 70 B3 A4 1E EF 78 7A D0 03 2B [16:25:06]CheckFolder [16:25:06]dirname=/storage/ofd_packets [16:25:06]CheckFolder done [16:25:06]ProducePacketName [16:25:06]name=ofd_packets/00139395 [16:25:06]NVStorageSaveData ofd_packets/00139395 [16:25:06]File name is /storage/ofd_packets/00139395 [16:25:06]Write 301 bytes [16:25:06]NVStorageSaveData done [16:25:06]OFDSenderStorePacket done [16:25:06]KKMCreateOFDPacket done [16:25:06]NVStorageSaveData kkm_last_timestamp [16:25:06]File name is /storage/kkm_last_timestamp [16:25:06]Write 4 bytes [16:25:06]NVStorageSaveData done [16:25:06]ExternCall_PrintAddStr [16:25:06]wPrintStart [16:25:06]Write to MH i2c: 01 00 00 FC 19 15 [16:25:06]Write i2c OK [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: 01 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: 01 07 00 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 FF 0F 2A [16:25:06]RasterBufferAndPrint [16:25:06]line Счет N : (1)593237 [16:25:06]line ИНН: 02508201610067 [16:25:06]line Контрольно-Кассовый Чек [16:25:06]line ПРОДАЖА [16:25:06]line ТРК (МРК, ГНК) : 52 [16:25:06]line Товар: 2710124130 [16:25:06]line Аи-92-К-5 [16:25:06]line 1.480 * 67.80 [16:25:06]line = 100.34 [16:25:06]line НДС 12% НСП 1% [16:25:06]line > о реализуемом товаре [16:25:06]line ОКРУГЛЕНИЕ: -0.34 [16:25:06]line ИТОГО: 100.00 [16:25:06]line Внесено: 100.00 [16:25:06]line СДАЧА: 0.00 [16:25:06]line НСП 1% : 0.89 [16:25:06]line НДС 12% : 10.66 [16:25:06]line Наличными: 100.00 [16:25:06]line Безнал.: 0.00 [16:25:06]line Место: АЗС № 136 "Партнер Нефть" [16:25:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:25:06]line СНО: Общий режим [16:25:06]line Чек 230 19.08.2024 16:25 [16:25:06]line Смена: 452 ФФД: 1.0 [16:25:06]line ЗНМ: 0300000067 [16:25:06]line РНМ: 0000000000092569 [16:25:06]line Версия ККМ: 001 [16:25:06]line ФМ: 0000000000871776 [16:25:06]line ФД: 139395 [16:25:06]line ФПД: 41251607572659 [16:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162505&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139395&fm=41251607572659&tin=02508201610067®Number=0000000000092569&sum=10000 [16:25:06]written 0, free lines is 4095 [16:25:06]OFD Sender: Processing packet 139395 [packets to send 137, broken 136] [16:25:06]ProducePacketName [16:25:06]name=ofd_packets/00139395 [16:25:06]OFD Sender: To server: pG, [16:25:06]CommunicateWithHost lk.salyk.kg:30040 [16:25:06]ConnectInit lk.salyk.kg [16:25:06]Connected sock=8 [16: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 37 36 0F 01 00 00 F5 97 07 01 13 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 E6 00 00 00 F4 03 04 00 E1 71 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 20 02 00 35 04 06 00 25 84 A3 6A 70 B3 A4 1E EF 78 7A D0 03 2B [16: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 37 36 4F 00 00 00 84 C8 47 00 83 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 20 02 00 F4 03 04 00 77 18 C3 66 B6 04 01 00 00 AF 22 C9 5A 83 6D 39 9A [16:25:06]CommunicateWithHost err = 0 [16:25:06]CheckOFDResponse [16:25:06]1017 (14) - 77093643461234 [16:25:06]1041 (16) - 0000000000871776 [16:25:06]1040 (4) - 139395 [16:25:06]1012 (4) - 19.08.2024 10:03 [16:25:06]1206 (1) - 0 [16:25:06]OFD Sender: Remove packet 139395 [16:25:06]ProducePacketName [16:25:06]name=ofd_packets/00139395 [16:25:06]NVStorageDeleteData [16:25:06]Write to MH i2c: 01 00 00 27 1A 41 [16:25:06]Write i2c OK [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: 01 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: 01 07 00 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: 01 07 00 27 1A 00 00 00 00 00 DA 0C 2E [16:25:06]RasterBufferAndPrint [16:25:06]line [16:25:06]line [16:25:06]line [16:25:06]line [16:25:06]line [16:25:06]written 0, free lines is 3297 [16:25:06]MH_Cut [16:25:06]Write to MH i2c: D1 01 00 2E 1A 01 1A [16:25:06]Write i2c OK [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: D1 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: D1 01 00 [16:25:06]MH_I2C_Read... [16:25:06]Read from MH i2c: D1 01 00 2E 1A 00 19 [16:25:06]Write to MH i2c: 01 00 00 2F 1A 49 [16:25:06]Write i2c OK [16:25:06]MH_I2C_Read... [16:25:07]OFD Sender: No OFD packet to send [16:25:07]*** Cut start [16:25:07]*** Partial cut [16:25:07]*** CUTSNS_PIN = 1 [16:25:07]*** CUTSNS_PIN = 0 [16:25:07]*** Brake cut motor [16:25:08]Read from MH i2c: 01 [16:25:08]MH_I2C_Read... [16:25:08]*** Stop cut motor [16:25:08]*** Cut end [16:25:08]Read from MH i2c: 01 07 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: 01 07 00 2F 1A 00 00 00 00 00 FF 0F 5E [16:25:08]process_action close_receipt done [16:25:08]requested_data is exist [16:25:08]produce_requested_data [16:25:08]requested_item fm.sn is exist - process it [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 11 00 00 [16:25:08]Write to MH i2c: E2 08 00 30 1A 80 11 00 00 00 00 00 00 C4 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 17 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 17 00 30 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1B [16:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:25:08]wFMCommunicate OK [16:25:08]requested_item fd.num is exist - process it [16:25:08]SAM_PROTO_GetFieldsCounters [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 13 00 00 [16:25:08]Write to MH i2c: E2 08 00 31 1A 80 13 00 00 00 00 00 00 C7 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 62 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 62 00 31 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [16:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:08]wFMCommunicate OK [16:25:08]SAM_PROTO_GetFieldsCounters done [16:25:08]requested_item shift.num is exist - process it [16:25:08]requested_item shift.opened is exist - process it [16:25:08]req_shift_opened [16:25:08]FM_GetShiftState [16:25:08]SAM_PROTO_GetShiftState [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 13 01 00 [16:25:08]Write to MH i2c: E2 08 00 32 1A 80 13 01 00 00 00 00 00 C9 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 0E 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 0E 00 32 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 80 [16:25:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:25:08]wFMCommunicate OK [16:25:08]SAM_PROTO_GetShiftState done [16:25:08]FM_GetShiftState done [16:25:08]req_shift_opened done [16:25:08]requested_item shift.open_date is exist - process it [16:25:08]req_shift_open_date [16:25:08]req_shift_open_date done [16:25:08]produce_requested_data done [16:25:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139395,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:25:08]process_action_free close_receipt [16:25:08]json_value_free [16:25:08]json_value_free done [16:25:08]process_json_proto returns [16:25:08]Send response to host [16:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139395,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:25:08]free response buf [16:25:08]execute_script done [16:25:08]execute_script returns [16:25:08]free content buf [16:25:08]Sock 9.Close socket [16:25:08]Sock 9.Thread stoped [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:17]accept exits with 10 [16:26:17]New connection [16:26:17]New thread 3066674532 created [16:26:17]Thread 3066817892 joined [16:26:17]Waiting for new connection... [16:26:17] Sock 10.Parse request [16:26:17]Sock 10.Check first char [16:26:17]Sock 10.First char is OK [16:26:17]request: POST /json_proto HTTP/1.0 [16:26:17]Method: POST [16:26:17]URL: /json_proto [16:26:17]Method is POST - this is cgi request [16:26:17]url: /json_proto [16:26:17]query_string will be loaded in cgi processing [16:26:17]execute_cgi json_proto POST (null) [16:26:17]execute_cgi path=json_proto method=POST [16:26:17]POST find Content-Length [16:26:17]Host: 172.17.45.67:8080 [16:26:17]Content-Length: 215 [16:26:17]Content-Type: application/json [16:26:17] [16:26:17]POST finish read [16:26:17]Found Content-Length = 215 [16:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:17]execute_script... [16:26:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:17]POST & json_proto [16:26:17]process_json_proto [16:26:17]json parsed OK: [16:26:17]protocol is kg_v1.0 [16:26:17]action value=get_value [16:26:17]process_action get_value [16:26:17]cmd_get_value [16:26:17]process_action get_value done [16:26:17]requested_data is exist [16:26:17]produce_requested_data [16:26:17]requested_item kkm.sn is exist - process it [16:26:17]requested_item kkm.ver is exist - process it [16:26:17]requested_item fm.sn is exist - process it [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 11 00 00 [16:26:17]Write to MH i2c: E2 08 00 33 1A 80 11 00 00 00 00 00 00 C7 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 17 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 17 00 33 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [16:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:26:17]wFMCommunicate OK [16:26:17]requested_item fd.num is exist - process it [16:26:17]SAM_PROTO_GetFieldsCounters [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 13 00 00 [16:26:17]Write to MH i2c: E2 08 00 34 1A 80 13 00 00 00 00 00 00 CA [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 62 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 62 00 34 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [16:26: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:17]wFMCommunicate OK [16:26:17]SAM_PROTO_GetFieldsCounters done [16:26:17]requested_item shift.num is exist - process it [16:26:17]requested_item shift.opened is exist - process it [16:26:17]req_shift_opened [16:26:17]FM_GetShiftState [16:26:17]SAM_PROTO_GetShiftState [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 13 01 00 [16:26:17]Write to MH i2c: E2 08 00 35 1A 80 13 01 00 00 00 00 00 CC [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 0E 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 0E 00 35 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 83 [16:26:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:26:17]wFMCommunicate OK [16:26:17]SAM_PROTO_GetShiftState done [16:26:17]FM_GetShiftState done [16:26:17]req_shift_opened done [16:26:17]requested_item shift.open_date is exist - process it [16:26:17]req_shift_open_date [16:26:17]req_shift_open_date done [16:26:17]produce_requested_data done [16:26:17]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139395,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:26:17]process_action_free get_value [16:26:17]json_value_free [16:26:17]json_value_free done [16:26:17]process_json_proto returns [16:26:17]Send response to host [16:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139395,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:26:17]free response buf [16:26:17]execute_script done [16:26:17]execute_script returns [16:26:17]free content buf [16:26:17]Sock 10.Close socket [16:26:17]Sock 10.Thread stoped [16:26:18]accept exits with 8 [16:26:18]New connection [16:26:18]New thread 3066817892 created [16:26:18]Thread 3066674532 joined [16:26:18]Waiting for new connection... [16:26:18] Sock 8.Parse request [16:26:18]Sock 8.Check first char [16:26:18]Sock 8.First char is OK [16:26:18]request: POST /json_proto HTTP/1.0 [16:26:18]Method: POST [16:26:18]URL: /json_proto [16:26:18]Method is POST - this is cgi request [16:26:18]url: /json_proto [16:26:18]query_string will be loaded in cgi processing [16:26:18]execute_cgi json_proto POST (null) [16:26:18]execute_cgi path=json_proto method=POST [16:26:18]POST find Content-Length [16:26:18]Host: 172.17.45.67:8080 [16:26:18]Content-Length: 331 [16:26:18]Content-Type: application/json [16:26:18] [16:26:18]POST finish read [16:26:18]Found Content-Length = 331 [16:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:26:18]execute_script... [16:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:26:18]POST & json_proto [16:26:18]process_json_proto [16:26:18]json parsed OK: [16:26:18]protocol is kg_v1.0 [16:26:18]action value=get_value [16:26:18]process_action get_value [16:26:18]cmd_get_value [16:26:18]process_action get_value done [16:26:18]requested_data is exist [16:26:18]produce_requested_data [16:26:18]requested_item fm.sale.total is exist - process it [16:26:18]SAM_PROTO_GetFMData [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 13 03 00 [16:26:18]Write to MH i2c: E2 08 00 36 1A 80 13 03 00 00 00 00 00 CF [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 FD 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 FD 00 36 1A 00 C4 04 85 04 C0 04 6E 04 04 00 FA 1C 02 00 69 04 A3 00 6F 04 04 00 79 1C 02 00 B1 04 05 00 FF 9C 8D 39 02 70 04 05 00 34 C9 7F EF 01 72 04 04 00 CB D3 0D 4A 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 95 06 83 3C 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 EB CB 0A 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 D5 [16:26:18]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 FA 1C 02 00 69 04 A3 00 6F 04 04 00 79 1C 02 00 B1 04 05 00 FF 9C 8D 39 02 70 04 05 00 34 C9 7F EF 01 72 04 04 00 CB D3 0D 4A 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 95 06 83 3C 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 EB CB 0A 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [16:26:18]wFMCommunicate OK [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 17 00 00 [16:26:18]Write to MH i2c: E2 08 00 37 1A 80 17 00 00 00 00 00 00 D1 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:26:18]Read from MH i2c: E2 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 FD 00 [16:26:18]MH_I2C_Read... [16:26:18]Read from MH i2c: E2 FD 00 37 1A 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 D6 [16:26:18]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [16:26:18]wFMCommunicate OK [16:26:18]wFMCommunicate request_size=4 [16:26:18]MH_SAM_APDU [16:26:18]CAPDU: 80 17 00 00 [16:26:18]Write to MH i2c: E2 08 00 38 1A 80 17 00 00 00 00 00 00 D2 [16:26:18]Write i2c OK [16:26:18]MH_I2C_Read... [16:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:26:19]Read from MH i2c: E2 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 FD 00 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 FD 00 38 1A 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 E7 [16:26:19]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [16:26:19]wFMCommunicate OK [16:26:19]wFMCommunicate request_size=4 [16:26:19]MH_SAM_APDU [16:26:19]CAPDU: 80 17 00 00 [16:26:19]Write to MH i2c: E2 08 00 39 1A 80 17 00 00 00 00 00 00 D3 [16:26:19]Write i2c OK [16:26:19]MH_I2C_Read... [16:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:26:19]Read from MH i2c: E2 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 FD 00 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 FD 00 39 1A 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4B [16:26:19]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:26:19]wFMCommunicate OK [16:26:19]wFMCommunicate request_size=4 [16:26:19]MH_SAM_APDU [16:26:19]CAPDU: 80 17 00 00 [16:26:19]Write to MH i2c: E2 08 00 3A 1A 80 17 00 00 00 00 00 00 D4 [16:26:19]Write i2c OK [16:26:19]MH_I2C_Read... [16:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [16:26:19]Read from MH i2c: E2 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 E1 00 [16:26:19]MH_I2C_Read... [16:26:19]Read from MH i2c: E2 E1 00 3A 1A 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 [16:26:19]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:19]wFMCommunicate OK [16:26:19]SAM_PROTO_GetFMData done [16:26:19]requested_item fm.sale_refund.total is exist - process it [16:26:19]requested_item fm.buy.total is exist - process it [16:26:19]requested_item shift.sale.total is exist - process it [16:26:19]SAM_PROTO_GetShiftData [16:26:19]wFMCommunicate request_size=4 [16:26:19]MH_SAM_APDU [16:26:19]CAPDU: 80 13 02 00 [16:26:19]Write to MH i2c: E2 08 00 3B 1A 80 13 02 00 00 00 00 00 D3 [16:26:19]Write i2c OK [16:26:19]MH_I2C_Read... [16:26:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:26:20]Read from MH i2c: E2 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 FD 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 FD 00 3B 1A 00 AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 18 FE CF 70 04 03 00 A0 27 C4 72 04 03 00 78 D6 0B 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 F2 18 16 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 72 D7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 A2 [16:26:20]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 18 FE CF 70 04 03 00 A0 27 C4 72 04 03 00 78 D6 0B 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 F2 18 16 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 72 D7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [16:26:20]wFMCommunicate OK [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 17 00 00 [16:26:20]Write to MH i2c: E2 08 00 3C 1A 80 17 00 00 00 00 00 00 D6 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:26:20]Read from MH i2c: E2 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 FD 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 FD 00 3C 1A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 EF [16:26:20]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [16:26:20]wFMCommunicate OK [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 17 00 00 [16:26:20]Write to MH i2c: E2 08 00 3D 1A 80 17 00 00 00 00 00 00 D7 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:26:20]Read from MH i2c: E2 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 FD 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 FD 00 3D 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 8B [16:26:20]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [16:26:20]wFMCommunicate OK [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 17 00 00 [16:26:20]Write to MH i2c: E2 08 00 3E 1A 80 17 00 00 00 00 00 00 D8 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:26:20]Read from MH i2c: E2 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 FD 00 [16:26:20]MH_I2C_Read... [16:26:20]Read from MH i2c: E2 FD 00 3E 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 56 [16:26:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [16:26:20]wFMCommunicate OK [16:26:20]wFMCommunicate request_size=4 [16:26:20]MH_SAM_APDU [16:26:20]CAPDU: 80 17 00 00 [16:26:20]Write to MH i2c: E2 08 00 3F 1A 80 17 00 00 00 00 00 00 D9 [16:26:20]Write i2c OK [16:26:20]MH_I2C_Read... [16:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [16:26:21]Read from MH i2c: E2 [16:26:21]MH_I2C_Read... [16:26:21]Read from MH i2c: E2 CC 00 [16:26:21]MH_I2C_Read... [16:26:21]Read from MH i2c: E2 CC 00 3F 1A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BA [16:26:21]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:26:21]wFMCommunicate OK [16:26:21]SAM_PROTO_GetShiftData done [16:26:21]requested_item shift.sale.total_cash is exist - process it [16:26:21]requested_item shift.sale_refund.total is exist - process it [16:26:21]requested_item shift.sale_refund.total_cash is exist - process it [16:26:21]requested_item shift.buy.total is exist - process it [16:26:21]requested_item shift.buy.total_cash is exist - process it [16:26:21]produce_requested_data done [16:26:21]produce_requested_data return {"fm.sale.total":95555166.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":136310.00,"shift.sale.total_cash":128552.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:26:21]process_action_free get_value [16:26:21]json_value_free [16:26:21]json_value_free done [16:26:21]process_json_proto returns [16:26:21]Send response to host [16:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95555166.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":136310.00,"shift.sale.total_cash":128552.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:26:21]free response buf [16:26:21]execute_script done [16:26:21]execute_script returns [16:26:21]free content buf [16:26:21]Sock 8.Close socket [16:26:21]Sock 8.Thread stoped [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]accept exits with 9 [16:29:02]New connection [16:29:02]New thread 3066674532 created [16:29:02]Thread 3066817892 joined [16:29:02]Waiting for new connection... [16:29:02] Sock 9.Parse request [16:29:02]Sock 9.Check first char [16:29:02]Sock 9.First char is OK [16:29:02]request: POST /json_proto HTTP/1.0 [16:29:02]Method: POST [16:29:02]URL: /json_proto [16:29:02]Method is POST - this is cgi request [16:29:02]url: /json_proto [16:29:02]query_string will be loaded in cgi processing [16:29:02]execute_cgi json_proto POST (null) [16:29:02]execute_cgi path=json_proto method=POST [16:29:02]POST find Content-Length [16:29:02]Host: 172.17.45.67:8080 [16:29:02]Content-Length: 677 [16:29:02]Content-Type: application/json [16:29:02] [16:29:02]POST finish read [16:29:02]Found Content-Length = 677 [16:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:29:02]execute_script... [16:29: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)593238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:29:02]POST & json_proto [16:29:02]process_json_proto [16:29:02]json parsed OK: [16:29:02]protocol is kg_v1.0 [16:29:02]action value=close_receipt [16:29:02]process_action close_receipt [16:29:02]cmd_close_receipt [16:29:02]MH_GetDate [16:29:02]Write to MH i2c: F0 00 00 40 1A 49 [16:29:02]Write i2c OK [16:29:02]MH_I2C_Read... [16:29:02]Read from MH i2c: F0 [16:29:02]MH_I2C_Read... [16:29:02]Read from MH i2c: F0 09 00 [16:29:02]MH_I2C_Read... [16:29:02]Read from MH i2c: F0 09 00 40 1A 00 D0 72 C3 66 5F 7F 2B 66 2C [16:29:02]GetLastDocTimeStamp 1724084705 [16:29:02]current date 1724084944 [16:29:02]FM_GetShiftState [16:29:02]SAM_PROTO_GetShiftState [16:29:02]wFMCommunicate request_size=4 [16:29:02]MH_SAM_APDU [16:29:02]CAPDU: 80 13 01 00 [16:29:02]Write to MH i2c: E2 08 00 41 1A 80 13 01 00 00 00 00 00 D8 [16:29:02]Write i2c OK [16:29:02]MH_I2C_Read... [16:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:02]Read from MH i2c: E2 [16:29:02]MH_I2C_Read... [16:29:02]Read from MH i2c: E2 0E 00 [16:29:02]MH_I2C_Read... [16:29:02]Read from MH i2c: E2 0E 00 41 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8F [16:29:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:29:02]wFMCommunicate OK [16:29:02]SAM_PROTO_GetShiftState done [16:29:02]FM_GetShiftState done [16:29:02]opened in 1724027888 [16:29:02]opened+sec_in_day 1724114288 [16:29:02]quantity*price = 50010 [16:29:02]sum+1 = 50012 [16:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 231 19.08.2024 16:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139396 ФПД: 144606843327408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162904&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139396&fm=144606843327408&tin=02508201610067®Number=0000000000092569&sum=50000 [16:29:03]StoreToDocumentArchive [16:29:03]shift 452 fd 139396 [16:29:03]save to /storage/0452/doc_00139396 [16:29:03]save last doc name /storage/0452/doc_00139396 to /storage/kkm_last_doc_name [16:29:03]save OK [16:29:03]Clear old archive folders... [16:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:03]tlvbuf is 0123A240 [16:29:03]SAM_PROTO_ClearQueue [16:29:03]wFMCommunicate request_size=4 [16:29:03]MH_SAM_APDU [16:29:03]CAPDU: 80 09 00 00 [16:29:03]Write to MH i2c: E2 08 00 4E 1A 80 09 00 00 00 00 00 00 DA [16:29:03]Write i2c OK [16:29:03]MH_I2C_Read... [16:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:03]Read from MH i2c: E2 [16:29:03]MH_I2C_Read... [16:29:03]Read from MH i2c: E2 03 00 [16:29:03]MH_I2C_Read... [16:29:03]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [16:29:03]RAPDU: 90 00 [16:29:03]wFMCommunicate OK [16:29:03]SAM_PROTO_ClearQueue done [16:29:03]KKMCreateOFDPacket [16:29:03]OFDProtocolAddRootSTLVToBuf [16:29:03]FM_MakeSignedData [16:29:03]FM_MakeSignedData [16:29:03]SAM_PROTO_SignData [16:29:03]wFMCommunicate request_size=4 [16:29:03]MH_SAM_APDU [16:29:03]CAPDU: 80 0D 01 02 [16:29:03]Write to MH i2c: E2 08 00 4F 1A 80 0D 01 02 00 00 00 00 E2 [16:29:03]Write i2c OK [16:29:03]MH_I2C_Read... [16:29:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:03]Read from MH i2c: E2 [16:29:03]MH_I2C_Read... [16:29:03]Read from MH i2c: E2 03 00 [16:29:03]MH_I2C_Read... [16:29:03]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [16:29:03]RAPDU: 90 00 [16:29:03]wFMCommunicate OK [16:29:03]wFMCommunicate request_size=255 [16:29:03]MH_SAM_APDU [16:29:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 D0 72 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 20 02 00 35 04 06 00 83 [16:29:03]Write to MH i2c: E2 02 01 50 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 D0 72 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 20 02 00 35 04 06 00 83 00 00 93 [16:29:03]Write i2c OK [16:29:03]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 03 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [16:29:04]RAPDU: 90 00 [16:29:04]wFMCommunicate OK [16:29:04]wFMCommunicate request_size=10 [16:29:04]MH_SAM_APDU [16:29:04]CAPDU: 80 0D 02 02 05 84 E7 87 53 B0 [16:29:04]Write to MH i2c: E2 0D 00 51 1A 80 0D 02 02 05 00 84 E7 87 53 B0 00 00 E4 [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 03 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [16:29:04]RAPDU: 90 00 [16:29:04]wFMCommunicate OK [16:29:04]wFMCommunicate request_size=4 [16:29:04]MH_SAM_APDU [16:29:04]CAPDU: 80 0D 03 02 [16:29:04]Write to MH i2c: E2 08 00 52 1A 80 0D 03 02 00 00 00 00 E7 [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 0B 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 0B 00 52 1A 00 30 12 F5 31 30 6C 53 7B 90 00 BA [16:29:04]RAPDU: 30 12 F5 31 30 6C 53 7B 90 00 [16:29:04]wFMCommunicate OK [16:29:04]SAM_PROTO_SignData done [16:29:04]FM_MakeSignedData done [16:29:04]CreateOFDProtocolMessage [16:29:04]wFMCommunicate request_size=4 [16:29:04]MH_SAM_APDU [16:29:04]CAPDU: 80 11 00 00 [16:29:04]Write to MH i2c: E2 08 00 53 1A 80 11 00 00 00 00 00 00 E7 [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 17 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 17 00 53 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [16:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:29:04]wFMCommunicate OK [16:29:04]CreateOFDProtocolMessage done [16:29:04]OFDSenderStorePacket 139396 [16:29:04]StoreOFDPacket docnum=139396 [16:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2A 36 07 01 0B D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 D0 72 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 20 02 00 35 04 06 00 83 84 E7 87 53 B0 30 12 F5 31 30 6C 53 7B [16:29:04]CheckFolder [16:29:04]dirname=/storage/ofd_packets [16:29:04]CheckFolder done [16:29:04]ProducePacketName [16:29:04]name=ofd_packets/00139396 [16:29:04]NVStorageSaveData ofd_packets/00139396 [16:29:04]File name is /storage/ofd_packets/00139396 [16:29:04]Write 301 bytes [16:29:04]NVStorageSaveData done [16:29:04]OFDSenderStorePacket done [16:29:04]KKMCreateOFDPacket done [16:29:04]NVStorageSaveData kkm_last_timestamp [16:29:04]File name is /storage/kkm_last_timestamp [16:29:04]Write 4 bytes [16:29:04]OFD Sender: Processing packet 139396 [packets to send 137, broken 136] [16:29:04]ProducePacketName [16:29:04]name=ofd_packets/00139396 [16:29:04]OFD Sender: To server: pG, [16:29:04]CommunicateWithHost lk.salyk.kg:30040 [16:29:04]ConnectInit lk.salyk.kg [16:29:04]NVStorageSaveData done [16:29:04]ExternCall_PrintAddStr [16:29:04]wPrintStart [16:29:04]Write to MH i2c: 01 00 00 54 1A 6E [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: 01 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: 01 07 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: 01 07 00 54 1A 00 00 00 00 00 FF 0F 83 [16:29:04]RasterBufferAndPrint [16:29:04]line Счет N : (1)593238 [16:29:04]line ИНН: 02508201610067 [16:29:04]line Контрольно-Кассовый Чек [16:29:04]line ПРОДАЖА [16:29:04]line ТРК (МРК, ГНК) : 51 [16:29:04]line Товар: 2710124500 [16:29:04]line Аи-95-К-5 [16:29:04]line 6.740 * 74.20 [16:29:04]line = 500.11 [16:29:04]line НДС 12% НСП 1% [16:29:04]line > о реализуемом товаре [16:29:04]line ОКРУГЛЕНИЕ: -0.11 [16:29:04]line ИТОГО: 500.00 [16:29:04]line Внесено: 500.00 [16:29:04]line СДАЧА: 0.00 [16:29:04]line НСП 1% : 4.43 [16:29:04]line НДС 12% : 53.11 [16:29:04]line Наличными: 500.00 [16:29:04]line Безнал.: 0.00 [16:29:04]line Место: АЗС № 136 "Партнер Нефть" [16:29:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:29:04]line СНО: Общий режим [16:29:04]line Чек 231 19.08.2024 16:29 [16:29:04]line Смена: 452 ФФД: 1.0 [16:29:04]line ЗНМ: 0300000067 [16:29:04]line РНМ: 0000000000092569 [16:29:04]line Версия ККМ: 001 [16:29:04]line ФМ: 0000000000871776 [16:29:04]line ФД: 139396 [16:29:04]line ФПД: 144606843327408 [16:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162904&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139396&fm=144606843327408&tin=02508201610067®Number=0000000000092569&sum=50000 [16:29:04]Connected sock=10 [16:29: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 37 36 0F 01 00 00 2A 36 07 01 0B D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 D0 72 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 20 02 00 35 04 06 00 83 84 E7 87 53 B0 30 12 F5 31 30 6C 53 7B [16:29:04]written 0, free lines is 4095 [16:29: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 37 36 4F 00 00 00 BB 16 47 00 86 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 37 36 10 04 04 00 84 20 02 00 F4 03 04 00 65 19 C3 66 B6 04 01 00 00 BD 37 0A AA 75 F6 40 4B [16:29:04]CommunicateWithHost err = 0 [16:29:04]CheckOFDResponse [16:29:04]1017 (14) - 77093643461234 [16:29:04]1041 (16) - 0000000000871776 [16:29:04]1040 (4) - 139396 [16:29:04]1012 (4) - 19.08.2024 10:07 [16:29:04]1206 (1) - 0 [16:29:04]OFD Sender: Remove packet 139396 [16:29:04]ProducePacketName [16:29:04]name=ofd_packets/00139396 [16:29:04]NVStorageDeleteData [16:29:05]Write to MH i2c: 01 00 00 7F 1A 99 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: 01 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: 01 07 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: 01 07 00 7F 1A 00 00 00 00 00 D6 0C 82 [16:29:05]RasterBufferAndPrint [16:29:05]line [16:29:05]line [16:29:05]line [16:29:05]line [16:29:05]line [16:29:05]written 0, free lines is 3294 [16:29:05]MH_Cut [16:29:05]Write to MH i2c: D1 01 00 86 1A 01 72 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: D1 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: D1 01 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: D1 01 00 86 1A 00 71 [16:29:05]Write to MH i2c: 01 00 00 87 1A A1 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]OFD Sender: No OFD packet to send [16:29:05]*** Cut start [16:29:05]*** Partial cut [16:29:05]*** CUTSNS_PIN = 1 [16:29:05]*** CUTSNS_PIN = 0 [16:29:06]*** Brake cut motor [16:29:06]Read from MH i2c: 01 [16:29:06]MH_I2C_Read... [16:29:06]*** Stop cut motor [16:29:06]*** Cut end [16:29:06]Read from MH i2c: 01 07 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: 01 07 00 87 1A 00 00 00 00 00 FF 0F B6 [16:29:06]process_action close_receipt done [16:29:06]requested_data is exist [16:29:06]produce_requested_data [16:29:06]requested_item fm.sn is exist - process it [16:29:06]wFMCommunicate request_size=4 [16:29:06]MH_SAM_APDU [16:29:06]CAPDU: 80 11 00 00 [16:29:06]Write to MH i2c: E2 08 00 88 1A 80 11 00 00 00 00 00 00 1C [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:06]Read from MH i2c: E2 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 17 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 17 00 88 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 73 [16:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:29:06]wFMCommunicate OK [16:29:06]requested_item fd.num is exist - process it [16:29:06]SAM_PROTO_GetFieldsCounters [16:29:06]wFMCommunicate request_size=4 [16:29:06]MH_SAM_APDU [16:29:06]CAPDU: 80 13 00 00 [16:29:06]Write to MH i2c: E2 08 00 89 1A 80 13 00 00 00 00 00 00 1F [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:06]Read from MH i2c: E2 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 62 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 62 00 89 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [16:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:06]wFMCommunicate OK [16:29:06]SAM_PROTO_GetFieldsCounters done [16:29:06]requested_item shift.num is exist - process it [16:29:06]requested_item shift.opened is exist - process it [16:29:06]req_shift_opened [16:29:06]FM_GetShiftState [16:29:06]SAM_PROTO_GetShiftState [16:29:06]wFMCommunicate request_size=4 [16:29:06]MH_SAM_APDU [16:29:06]CAPDU: 80 13 01 00 [16:29:06]Write to MH i2c: E2 08 00 8A 1A 80 13 01 00 00 00 00 00 21 [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:06]Read from MH i2c: E2 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 0E 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 0E 00 8A 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D8 [16:29:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:29:06]wFMCommunicate OK [16:29:06]SAM_PROTO_GetShiftState done [16:29:06]FM_GetShiftState done [16:29:06]req_shift_opened done [16:29:06]requested_item shift.open_date is exist - process it [16:29:06]req_shift_open_date [16:29:06]req_shift_open_date done [16:29:06]produce_requested_data done [16:29:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139396,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:29:06]process_action_free close_receipt [16:29:06]json_value_free [16:29:06]json_value_free done [16:29:06]process_json_proto returns [16:29:06]Send response to host [16:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139396,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:29:06]free response buf [16:29:06]execute_script done [16:29:06]execute_script returns [16:29:06]free content buf [16:29:06]Sock 9.Close socket [16:29:06]Sock 9.Thread stoped [16:29:09]accept exits with 8 [16:29:09]New connection [16:29:09]New thread 3066817892 created [16:29:09]Thread 3066674532 joined [16:29:09]Waiting for new connection... [16:29:09] Sock 8.Parse request [16:29:09]Sock 8.Check first char [16:29:09]Sock 8.First char is OK [16:29:09]request: POST /json_proto HTTP/1.0 [16:29:09]Method: POST [16:29:09]URL: /json_proto [16:29:09]Method is POST - this is cgi request [16:29:09]url: /json_proto [16:29:09]query_string will be loaded in cgi processing [16:29:09]execute_cgi json_proto POST (null) [16:29:09]execute_cgi path=json_proto method=POST [16:29:09]POST find Content-Length [16:29:09]Host: 172.17.45.67:8080 [16:29:09]Content-Length: 677 [16:29:09]Content-Type: application/json [16:29:09] [16:29:09]POST finish read [16:29:09]Found Content-Length = 677 [16:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:09]execute_script... [16:29: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)593239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:09]POST & json_proto [16:29:09]process_json_proto [16:29:09]json parsed OK: [16:29:09]protocol is kg_v1.0 [16:29:09]action value=close_receipt [16:29:09]process_action close_receipt [16:29:09]cmd_close_receipt [16:29:09]MH_GetDate [16:29:09]Write to MH i2c: F0 00 00 8B 1A 94 [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: F0 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: F0 09 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: F0 09 00 8B 1A 00 D6 72 C3 66 5F 7F 2B 66 7D [16:29:09]GetLastDocTimeStamp 1724084944 [16:29:09]current date 1724084950 [16:29:09]FM_GetShiftState [16:29:09]SAM_PROTO_GetShiftState [16:29:09]wFMCommunicate request_size=4 [16:29:09]MH_SAM_APDU [16:29:09]CAPDU: 80 13 01 00 [16:29:09]Write to MH i2c: E2 08 00 8C 1A 80 13 01 00 00 00 00 00 23 [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:09]Read from MH i2c: E2 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 0E 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 0E 00 8C 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DA [16:29:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:29:09]wFMCommunicate OK [16:29:09]SAM_PROTO_GetShiftState done [16:29:09]FM_GetShiftState done [16:29:09]opened in 1724027888 [16:29:09]opened+sec_in_day 1724114288 [16:29:09]quantity*price = 50036 [16:29:09]sum+1 = 50037 [16:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 232 19.08.2024 16:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139397 ФПД: 178257213266602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162910&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139397&fm=178257213266602&tin=02508201610067®Number=0000000000092569&sum=50000 [16:29:10]StoreToDocumentArchive [16:29:10]shift 452 fd 139397 [16:29:10]save to /storage/0452/doc_00139397 [16:29:10]save last doc name /storage/0452/doc_00139397 to /storage/kkm_last_doc_name [16:29:10]save OK [16:29:10]Clear old archive folders... [16:29:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:10]tlvbuf is 012B1FE0 [16:29:10]SAM_PROTO_ClearQueue [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 09 00 00 [16:29:10]Write to MH i2c: E2 08 00 99 1A 80 09 00 00 00 00 00 00 25 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [16:29:10]RAPDU: 90 00 [16:29:10]wFMCommunicate OK [16:29:10]SAM_PROTO_ClearQueue done [16:29:10]KKMCreateOFDPacket [16:29:10]OFDProtocolAddRootSTLVToBuf [16:29:10]FM_MakeSignedData [16:29:10]FM_MakeSignedData [16:29:10]SAM_PROTO_SignData [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 0D 01 02 [16:29:10]Write to MH i2c: E2 08 00 9A 1A 80 0D 01 02 00 00 00 00 2D [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]OFD Sender: No OFD packet to send [16:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [16:29:10]RAPDU: 90 00 [16:29:10]wFMCommunicate OK [16:29:10]wFMCommunicate request_size=255 [16:29:10]MH_SAM_APDU [16:29: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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E8 00 00 00 F4 03 04 00 D6 72 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 20 02 00 35 04 06 00 A2 [16:29:10]Write to MH i2c: E2 02 01 9B 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E8 00 00 00 F4 03 04 00 D6 72 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 20 02 00 35 04 06 00 A2 00 00 1D [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [16:29:10]RAPDU: 90 00 [16:29:10]wFMCommunicate OK [16:29:10]wFMCommunicate request_size=10 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 0D 02 02 05 1F BD E0 1A AA [16:29:10]Write to MH i2c: E2 0D 00 9C 1A 80 0D 02 02 05 00 1F BD E0 1A AA 00 00 BA [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 03 00 9C 1A 00 90 00 2A [16:29:10]RAPDU: 90 00 [16:29:10]wFMCommunicate OK [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 0D 03 02 [16:29:10]Write to MH i2c: E2 08 00 9D 1A 80 0D 03 02 00 00 00 00 32 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 0B 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 0B 00 9D 1A 00 C4 C1 03 60 21 9C 83 6C 90 00 C7 [16:29:10]RAPDU: C4 C1 03 60 21 9C 83 6C 90 00 [16:29:10]wFMCommunicate OK [16:29:10]SAM_PROTO_SignData done [16:29:10]FM_MakeSignedData done [16:29:10]CreateOFDProtocolMessage [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 11 00 00 [16:29:10]Write to MH i2c: E2 08 00 9E 1A 80 11 00 00 00 00 00 00 32 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 17 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 17 00 9E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 89 [16:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:29:10]wFMCommunicate OK [16:29:10]CreateOFDProtocolMessage done [16:29:10]OFDSenderStorePacket 139397 [16:29:10]StoreOFDPacket docnum=139397 [16:29:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 C8 07 01 B2 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E8 00 00 00 F4 03 04 00 D6 72 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 20 02 00 35 04 06 00 A2 1F BD E0 1A AA C4 C1 03 60 21 9C 83 6C [16:29:10]CheckFolder [16:29:10]dirname=/storage/ofd_packets [16:29:10]CheckFolder done [16:29:10]ProducePacketName [16:29:10]name=ofd_packets/00139397 [16:29:10]NVStorageSaveData ofd_packets/00139397 [16:29:10]File name is /storage/ofd_packets/00139397 [16:29:10]Write 301 bytes [16:29:10]NVStorageSaveData done [16:29:10]OFDSenderStorePacket done [16:29:10]KKMCreateOFDPacket done [16:29:10]NVStorageSaveData kkm_last_timestamp [16:29:10]File name is /storage/kkm_last_timestamp [16:29:10]Write 4 bytes [16:29:10]NVStorageSaveData done [16:29:10]ExternCall_PrintAddStr [16:29:10]wPrintStart [16:29:10]Write to MH i2c: 01 00 00 9F 1A B9 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: 01 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: 01 07 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 07 00 9F 1A 00 00 00 00 00 FF 0F CE [16:29:11]RasterBufferAndPrint [16:29:11]line Счет N : (1)593239 [16:29:11]line ИНН: 02508201610067 [16:29:11]line Контрольно-Кассовый Чек [16:29:11]line ПРОДАЖА [16:29:11]line ТРК (МРК, ГНК) : 32 [16:29:11]line Товар: 2710124130 [16:29:11]line Аи-92-К-5 [16:29:11]line 7.380 * 67.80 [16:29:11]line = 500.36 [16:29:11]line НДС 12% НСП 1% [16:29:11]line > о реализуемом товаре [16:29:11]line ОКРУГЛЕНИЕ: -0.36 [16:29:11]line ИТОГО: 500.00 [16:29:11]line Внесено: 500.00 [16:29:11]line СДАЧА: 0.00 [16:29:11]line НСП 1% : 4.43 [16:29:11]line НДС 12% : 53.14 [16:29:11]line Наличными: 500.00 [16:29:11]line Безнал.: 0.00 [16:29:11]line Место: АЗС № 136 "Партнер Нефть" [16:29:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:29:11]line СНО: Общий режим [16:29:11]line Чек 232 19.08.2024 16:29 [16:29:11]line Смена: 452 ФФД: 1.0 [16:29:11]line ЗНМ: 0300000067 [16:29:11]line РНМ: 0000000000092569 [16:29:11]line Версия ККМ: 001 [16:29:11]line ФМ: 0000000000871776 [16:29:11]line ФД: 139397 [16:29:11]line ФПД: 178257213266602 [16:29:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162910&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139397&fm=178257213266602&tin=02508201610067®Number=0000000000092569&sum=50000 [16:29:11]written 0, free lines is 4095 [16:29:11]OFD Sender: Processing packet 139397 [packets to send 137, broken 136] [16:29:11]ProducePacketName [16:29:11]name=ofd_packets/00139397 [16:29:11]OFD Sender: To server: pG, [16:29:11]CommunicateWithHost lk.salyk.kg:30040 [16:29:11]ConnectInit lk.salyk.kg [16:29:11]Connected sock=11 [16:29: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 37 36 0F 01 00 00 30 C8 07 01 B2 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 E8 00 00 00 F4 03 04 00 D6 72 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 20 02 00 35 04 06 00 A2 1F BD E0 1A AA C4 C1 03 60 21 9C 83 6C [16:29:11]Write to MH i2c: 01 00 00 CA 1A E4 [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 07 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 E5 0C DC [16:29:11]RasterBufferAndPrint [16:29:11]line [16:29:11]line [16:29:11]line [16:29:11]line [16:29:11]line [16:29:11]written 0, free lines is 3313 [16:29:11]MH_Cut [16:29:11]Write to MH i2c: D1 01 00 D1 1A 01 BD [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: D1 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: D1 01 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: D1 01 00 D1 1A 00 BC [16:29:11]Write to MH i2c: 01 00 00 D2 1A EC [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29: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 37 36 4F 00 00 00 76 E8 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 37 36 10 04 04 00 85 20 02 00 F4 03 04 00 6C 19 C3 66 B6 04 01 00 00 E3 14 59 89 49 20 56 4E [16:29:11]CommunicateWithHost err = 0 [16:29:11]CheckOFDResponse [16:29:11]1017 (14) - 77093643461234 [16:29:11]1041 (16) - 0000000000871776 [16:29:11]1040 (4) - 139397 [16:29:11]1012 (4) - 19.08.2024 10:07 [16:29:11]1206 (1) - 0 [16:29:11]OFD Sender: Remove packet 139397 [16:29:11]ProducePacketName [16:29:11]name=ofd_packets/00139397 [16:29:11]NVStorageDeleteData [16:29:12]OFD Sender: No OFD packet to send [16:29:12]*** Cut start [16:29:12]*** Partial cut [16:29:12]*** CUTSNS_PIN = 1 [16:29:12]*** CUTSNS_PIN = 0 [16:29:12]*** Brake cut motor [16:29:12]Read from MH i2c: 01 [16:29:12]MH_I2C_Read... [16:29:12]*** Stop cut motor [16:29:12]*** Cut end [16:29:12]Read from MH i2c: 01 07 00 [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: 01 07 00 D2 1A 00 00 00 00 00 FF 0F 01 [16:29:12]process_action close_receipt done [16:29:12]requested_data is exist [16:29:12]produce_requested_data [16:29:12]requested_item fm.sn is exist - process it [16:29:12]wFMCommunicate request_size=4 [16:29:12]MH_SAM_APDU [16:29:12]CAPDU: 80 11 00 00 [16:29:12]Write to MH i2c: E2 08 00 D3 1A 80 11 00 00 00 00 00 00 67 [16:29:12]Write i2c OK [16:29:12]MH_I2C_Read... [16:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:12]Read from MH i2c: E2 [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: E2 17 00 [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: E2 17 00 D3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BE [16:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:29:12]wFMCommunicate OK [16:29:12]requested_item fd.num is exist - process it [16:29:12]SAM_PROTO_GetFieldsCounters [16:29:12]wFMCommunicate request_size=4 [16:29:12]MH_SAM_APDU [16:29:12]CAPDU: 80 13 00 00 [16:29:12]Write to MH i2c: E2 08 00 D4 1A 80 13 00 00 00 00 00 00 6A [16:29:12]Write i2c OK [16:29:12]MH_I2C_Read... [16:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:12]Read from MH i2c: E2 [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: E2 62 00 [16:29:12]MH_I2C_Read... [16:29:12]Read from MH i2c: E2 62 00 D4 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [16:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:13]wFMCommunicate OK [16:29:13]SAM_PROTO_GetFieldsCounters done [16:29:13]requested_item shift.num is exist - process it [16:29:13]requested_item shift.opened is exist - process it [16:29:13]req_shift_opened [16:29:13]FM_GetShiftState [16:29:13]SAM_PROTO_GetShiftState [16:29:13]wFMCommunicate request_size=4 [16:29:13]MH_SAM_APDU [16:29:13]CAPDU: 80 13 01 00 [16:29:13]Write to MH i2c: E2 08 00 D5 1A 80 13 01 00 00 00 00 00 6C [16:29:13]Write i2c OK [16:29:13]MH_I2C_Read... [16:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:13]Read from MH i2c: E2 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 0E 00 [16:29:13]MH_I2C_Read... [16:29:13]Read from MH i2c: E2 0E 00 D5 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 23 [16:29:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:29:13]wFMCommunicate OK [16:29:13]SAM_PROTO_GetShiftState done [16:29:13]FM_GetShiftState done [16:29:13]req_shift_opened done [16:29:13]requested_item shift.open_date is exist - process it [16:29:13]req_shift_open_date [16:29:13]req_shift_open_date done [16:29:13]produce_requested_data done [16:29:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139397,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:29:13]process_action_free close_receipt [16:29:13]json_value_free [16:29:13]json_value_free done [16:29:13]process_json_proto returns [16:29:13]Send response to host [16:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139397,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:29:13]free response buf [16:29:13]execute_script done [16:29:13]execute_script returns [16:29:13]free content buf [16:29:13]Sock 8.Close socket [16:29:13]Sock 8.Thread stoped [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:01]accept exits with 9 [16:34:01]New connection [16:34:01]New thread 3066674532 created [16:34:01]Thread 3066817892 joined [16:34:01]Waiting for new connection... [16:34:01] Sock 9.Parse request [16:34:01]Sock 9.Check first char [16:34:01]Sock 9.First char is OK [16:34:01]request: POST /json_proto HTTP/1.0 [16:34:01]Method: POST [16:34:01]URL: /json_proto [16:34:01]Method is POST - this is cgi request [16:34:01]url: /json_proto [16:34:01]query_string will be loaded in cgi processing [16:34:01]execute_cgi json_proto POST (null) [16:34:01]execute_cgi path=json_proto method=POST [16:34:01]POST find Content-Length [16:34:01]Host: 172.17.45.67:8080 [16:34:01]Content-Length: 677 [16:34:01]Content-Type: application/json [16:34:01] [16:34:01]POST finish read [16:34:01]Found Content-Length = 677 [16:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:34:01]execute_script... [16:34: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)593240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:34:01]POST & json_proto [16:34:01]process_json_proto [16:34:01]json parsed OK: [16:34:01]protocol is kg_v1.0 [16:34:01]action value=close_receipt [16:34:01]process_action close_receipt [16:34:01]cmd_close_receipt [16:34:01]MH_GetDate [16:34:01]Write to MH i2c: F0 00 00 D6 1A DF [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: F0 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: F0 09 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: F0 09 00 D6 1A 00 FA 73 C3 66 5F 7F 2B 66 ED [16:34:01]GetLastDocTimeStamp 1724084950 [16:34:01]current date 1724085242 [16:34:01]FM_GetShiftState [16:34:01]SAM_PROTO_GetShiftState [16:34:01]wFMCommunicate request_size=4 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 13 01 00 [16:34:01]Write to MH i2c: E2 08 00 D7 1A 80 13 01 00 00 00 00 00 6E [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 0E 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 0E 00 D7 1A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 25 [16:34:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:34:01]wFMCommunicate OK [16:34:01]SAM_PROTO_GetShiftState done [16:34:01]FM_GetShiftState done [16:34:01]opened in 1724027888 [16:34:01]opened+sec_in_day 1724114288 [16:34:01]quantity*price = 50010 [16:34:01]sum+1 = 50012 [16:34:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 233 19.08.2024 16:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139398 ФПД: 207364651907898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T163402&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139398&fm=207364651907898&tin=02508201610067®Number=0000000000092569&sum=50000 [16:34:02]StoreToDocumentArchive [16:34:02]shift 452 fd 139398 [16:34:02]save to /storage/0452/doc_00139398 [16:34:02]save last doc name /storage/0452/doc_00139398 to /storage/kkm_last_doc_name [16:34:02]save OK [16:34:02]Clear old archive folders... [16:34:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:02]tlvbuf is 01263FC0 [16:34:02]SAM_PROTO_ClearQueue [16:34:02]wFMCommunicate request_size=4 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 09 00 00 [16:34:02]Write to MH i2c: E2 08 00 E4 1A 80 09 00 00 00 00 00 00 70 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 E4 1A 00 90 00 72 [16:34:02]RAPDU: 90 00 [16:34:02]wFMCommunicate OK [16:34:02]SAM_PROTO_ClearQueue done [16:34:02]KKMCreateOFDPacket [16:34:02]OFDProtocolAddRootSTLVToBuf [16:34:02]FM_MakeSignedData [16:34:02]FM_MakeSignedData [16:34:02]SAM_PROTO_SignData [16:34:02]wFMCommunicate request_size=4 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 0D 01 02 [16:34:02]Write to MH i2c: E2 08 00 E5 1A 80 0D 01 02 00 00 00 00 78 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [16:34:02]RAPDU: 90 00 [16:34:02]wFMCommunicate OK [16:34:02]wFMCommunicate request_size=255 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 FA 73 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 20 02 00 35 04 06 00 BC [16:34:02]Write to MH i2c: E2 02 01 E6 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 FA 73 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 20 02 00 35 04 06 00 BC 00 00 91 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]OFD Sender: No OFD packet to send [16:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 E6 1A 00 90 00 74 [16:34:02]RAPDU: 90 00 [16:34:02]wFMCommunicate OK [16:34:02]wFMCommunicate request_size=10 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 0D 02 02 05 98 D8 6A 7B 3A [16:34:02]Write to MH i2c: E2 0D 00 E7 1A 80 0D 02 02 05 00 98 D8 6A 7B 3A 00 00 14 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [16:34:02]RAPDU: 90 00 [16:34:02]wFMCommunicate OK [16:34:02]wFMCommunicate request_size=4 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 0D 03 02 [16:34:02]Write to MH i2c: E2 08 00 E8 1A 80 0D 03 02 00 00 00 00 7D [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 0B 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 0B 00 E8 1A 00 65 28 19 A6 C3 15 A8 59 90 00 A3 [16:34:02]RAPDU: 65 28 19 A6 C3 15 A8 59 90 00 [16:34:02]wFMCommunicate OK [16:34:02]SAM_PROTO_SignData done [16:34:02]FM_MakeSignedData done [16:34:02]CreateOFDProtocolMessage [16:34:02]wFMCommunicate request_size=4 [16:34:02]MH_SAM_APDU [16:34:02]CAPDU: 80 11 00 00 [16:34:02]Write to MH i2c: E2 08 00 E9 1A 80 11 00 00 00 00 00 00 7D [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:02]Read from MH i2c: E2 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 17 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: E2 17 00 E9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [16:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:34:02]wFMCommunicate OK [16:34:02]CreateOFDProtocolMessage done [16:34:02]OFDSenderStorePacket 139398 [16:34:02]StoreOFDPacket docnum=139398 [16:34:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 41 DC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 FA 73 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 20 02 00 35 04 06 00 BC 98 D8 6A 7B 3A 65 28 19 A6 C3 15 A8 59 [16:34:02]CheckFolder [16:34:02]dirname=/storage/ofd_packets [16:34:02]CheckFolder done [16:34:02]ProducePacketName [16:34:02]name=ofd_packets/00139398 [16:34:02]NVStorageSaveData ofd_packets/00139398 [16:34:02]File name is /storage/ofd_packets/00139398 [16:34:02]Write 301 bytes [16:34:02]NVStorageSaveData done [16:34:02]OFDSenderStorePacket done [16:34:02]KKMCreateOFDPacket done [16:34:02]NVStorageSaveData kkm_last_timestamp [16:34:02]File name is /storage/kkm_last_timestamp [16:34:02]Write 4 bytes [16:34:02]NVStorageSaveData done [16:34:02]ExternCall_PrintAddStr [16:34:02]wPrintStart [16:34:02]Write to MH i2c: 01 00 00 EA 1A 04 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: 01 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: 01 07 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: 01 07 00 EA 1A 00 00 00 00 00 FF 0F 19 [16:34:02]RasterBufferAndPrint [16:34:02]line Счет N : (1)593240 [16:34:02]line ИНН: 02508201610067 [16:34:02]line Контрольно-Кассовый Чек [16:34:02]line ПРОДАЖА [16:34:02]line ТРК (МРК, ГНК) : 41 [16:34:02]line Товар: 2710124500 [16:34:02]line Аи-95-К-5 [16:34:02]line 6.740 * 74.20 [16:34:02]line = 500.11 [16:34:02]line НДС 12% НСП 1% [16:34:02]line > о реализуемом товаре [16:34:02]line ОКРУГЛЕНИЕ: -0.11 [16:34:02]line ИТОГО: 500.00 [16:34:02]line Внесено: 500.00 [16:34:02]line СДАЧА: 0.00 [16:34:02]line НСП 1% : 4.43 [16:34:02]line НДС 12% : 53.11 [16:34:02]line Наличными: 500.00 [16:34:02]line Безнал.: 0.00 [16:34:02]line Место: АЗС № 136 "Партнер Нефть" [16:34:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:34:02]line СНО: Общий режим [16:34:02]line Чек 233 19.08.2024 16:34 [16:34:02]line Смена: 452 ФФД: 1.0 [16:34:02]line ЗНМ: 0300000067 [16:34:02]line РНМ: 0000000000092569 [16:34:02]line Версия ККМ: 001 [16:34:02]line ФМ: 0000000000871776 [16:34:02]line ФД: 139398 [16:34:02]line ФПД: 207364651907898 [16:34:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T163402&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139398&fm=207364651907898&tin=02508201610067®Number=0000000000092569&sum=50000 [16:34:03]OFD Sender: Processing packet 139398 [packets to send 137, broken 136] [16:34:03]ProducePacketName [16:34:03]name=ofd_packets/00139398 [16:34:03]OFD Sender: To server: pG, [16:34:03]CommunicateWithHost lk.salyk.kg:30040 [16:34:03]ConnectInit lk.salyk.kg [16:34:03]written 0, free lines is 4095 [16:34:03]Connected sock=10 [16:34: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 37 36 0F 01 00 00 41 DC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 FA 73 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 20 02 00 35 04 06 00 BC 98 D8 6A 7B 3A 65 28 19 A6 C3 15 A8 59 [16:34: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 37 36 4F 00 00 00 39 5D 47 00 7B 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 37 36 10 04 04 00 86 20 02 00 F4 03 04 00 90 1A C3 66 B6 04 01 00 00 9E 56 B4 98 43 0D E3 E6 [16:34:03]CommunicateWithHost err = 0 [16:34:03]CheckOFDResponse [16:34:03]1017 (14) - 77093643461234 [16:34:03]1041 (16) - 0000000000871776 [16:34:03]1040 (4) - 139398 [16:34:03]1012 (4) - 19.08.2024 10:12 [16:34:03]1206 (1) - 0 [16:34:03]OFD Sender: Remove packet 139398 [16:34:03]ProducePacketName [16:34:03]name=ofd_packets/00139398 [16:34:03]NVStorageDeleteData [16:34:03]Write to MH i2c: 01 00 00 15 1B 30 [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: 01 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: 01 07 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: 01 07 00 15 1B 00 00 00 00 00 E8 0C 2B [16:34:03]RasterBufferAndPrint [16:34:03]line [16:34:03]line [16:34:03]line [16:34:03]line [16:34:03]line [16:34:03]written 0, free lines is 3313 [16:34:03]MH_Cut [16:34:03]Write to MH i2c: D1 01 00 1C 1B 01 09 [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: D1 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: D1 01 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: D1 01 00 1C 1B 00 08 [16:34:03]Write to MH i2c: 01 00 00 1D 1B 38 [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:04]OFD Sender: No OFD packet to send [16:34:04]*** Cut start [16:34:04]*** Partial cut [16:34:04]*** CUTSNS_PIN = 1 [16:34:04]*** CUTSNS_PIN = 0 [16:34:04]*** Brake cut motor [16:34:05]Read from MH i2c: 01 [16:34:05]MH_I2C_Read... [16:34:05]*** Stop cut motor [16:34:05]*** Cut end [16:34:05]Read from MH i2c: 01 07 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 FF 0F 4D [16:34:05]process_action close_receipt done [16:34:05]requested_data is exist [16:34:05]produce_requested_data [16:34:05]requested_item fm.sn is exist - process it [16:34:05]wFMCommunicate request_size=4 [16:34:05]MH_SAM_APDU [16:34:05]CAPDU: 80 11 00 00 [16:34:05]Write to MH i2c: E2 08 00 1E 1B 80 11 00 00 00 00 00 00 B3 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:05]Read from MH i2c: E2 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 17 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 17 00 1E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [16:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:34:05]wFMCommunicate OK [16:34:05]requested_item fd.num is exist - process it [16:34:05]SAM_PROTO_GetFieldsCounters [16:34:05]wFMCommunicate request_size=4 [16:34:05]MH_SAM_APDU [16:34:05]CAPDU: 80 13 00 00 [16:34:05]Write to MH i2c: E2 08 00 1F 1B 80 13 00 00 00 00 00 00 B6 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:05]Read from MH i2c: E2 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 62 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 62 00 1F 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [16:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:05]wFMCommunicate OK [16:34:05]SAM_PROTO_GetFieldsCounters done [16:34:05]requested_item shift.num is exist - process it [16:34:05]requested_item shift.opened is exist - process it [16:34:05]req_shift_opened [16:34:05]FM_GetShiftState [16:34:05]SAM_PROTO_GetShiftState [16:34:05]wFMCommunicate request_size=4 [16:34:05]MH_SAM_APDU [16:34:05]CAPDU: 80 13 01 00 [16:34:05]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [16:34:05]Write i2c OK [16:34:05]MH_I2C_Read... [16:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:05]Read from MH i2c: E2 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 0E 00 [16:34:05]MH_I2C_Read... [16:34:05]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6F [16:34:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:34:05]wFMCommunicate OK [16:34:05]SAM_PROTO_GetShiftState done [16:34:05]FM_GetShiftState done [16:34:05]req_shift_opened done [16:34:05]requested_item shift.open_date is exist - process it [16:34:05]req_shift_open_date [16:34:05]req_shift_open_date done [16:34:05]produce_requested_data done [16:34:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139398,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:34:05]process_action_free close_receipt [16:34:05]json_value_free [16:34:05]json_value_free done [16:34:05]process_json_proto returns [16:34:05]Send response to host [16:34:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139398,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:34:05]free response buf [16:34:05]execute_script done [16:34:05]execute_script returns [16:34:05]free content buf [16:34:05]Sock 9.Close socket [16:34:05]Sock 9.Thread stoped [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:35]accept exits with 8 [16:44:35]New connection [16:44:35]New thread 3066817892 created [16:44:35]Thread 3066674532 joined [16:44:35]Waiting for new connection... [16:44:35] Sock 8.Parse request [16:44:35]Sock 8.Check first char [16:44:35]Sock 8.First char is OK [16:44:35]request: POST /json_proto HTTP/1.0 [16:44:35]Method: POST [16:44:35]URL: /json_proto [16:44:35]Method is POST - this is cgi request [16:44:35]url: /json_proto [16:44:35]query_string will be loaded in cgi processing [16:44:35]execute_cgi json_proto POST (null) [16:44:35]execute_cgi path=json_proto method=POST [16:44:35]POST find Content-Length [16:44:35]Host: 172.17.45.67:8080 [16:44:35]Content-Length: 659 [16:44:35]Content-Type: application/json [16:44:35] [16:44:35]POST finish read [16:44:35]Found Content-Length = 659 [16:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:44:35]execute_script... [16:44: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)593241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:44:35]POST & json_proto [16:44:35]process_json_proto [16:44:35]json parsed OK: [16:44:35]protocol is kg_v1.0 [16:44:35]action value=close_receipt [16:44:35]process_action close_receipt [16:44:35]cmd_close_receipt [16:44:35]MH_GetDate [16:44:35]Write to MH i2c: F0 00 00 21 1B 2B [16:44:35]Write i2c OK [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: F0 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: F0 09 00 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: F0 09 00 21 1B 00 74 76 C3 66 5F 7F 2B 66 B6 [16:44:35]GetLastDocTimeStamp 1724085242 [16:44:35]current date 1724085876 [16:44:35]FM_GetShiftState [16:44:35]SAM_PROTO_GetShiftState [16:44:35]wFMCommunicate request_size=4 [16:44:35]MH_SAM_APDU [16:44:35]CAPDU: 80 13 01 00 [16:44:35]Write to MH i2c: E2 08 00 22 1B 80 13 01 00 00 00 00 00 BA [16:44:35]Write i2c OK [16:44:35]MH_I2C_Read... [16:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:35]Read from MH i2c: E2 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: E2 0E 00 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: E2 0E 00 22 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 71 [16:44:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:44:35]wFMCommunicate OK [16:44:35]SAM_PROTO_GetShiftState done [16:44:35]FM_GetShiftState done [16:44:35]opened in 1724027888 [16:44:35]opened+sec_in_day 1724114288 [16:44:35]quantity*price = 70038 [16:44:35]sum+1 = 70039 [16:44:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 234 19.08.2024 16:44 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139399 ФПД: 204491087797680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T164436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139399&fm=204491087797680&tin=02508201610067®Number=0000000000092569&sum=70000 [16:44:36]StoreToDocumentArchive [16:44:36]shift 452 fd 139399 [16:44:36]save to /storage/0452/doc_00139399 [16:44:36]save last doc name /storage/0452/doc_00139399 to /storage/kkm_last_doc_name [16:44:36]save OK [16:44:36]Clear old archive folders... [16:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:44:36]tlvbuf is B6EA09A0 [16:44:36]SAM_PROTO_ClearQueue [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 09 00 00 [16:44:36]Write to MH i2c: E2 08 00 2F 1B 80 09 00 00 00 00 00 00 BC [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 03 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [16:44:36]RAPDU: 90 00 [16:44:36]wFMCommunicate OK [16:44:36]SAM_PROTO_ClearQueue done [16:44:36]KKMCreateOFDPacket [16:44:36]OFDProtocolAddRootSTLVToBuf [16:44:36]FM_MakeSignedData [16:44:36]FM_MakeSignedData [16:44:36]SAM_PROTO_SignData [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 0D 01 02 [16:44:36]Write to MH i2c: E2 08 00 30 1B 80 0D 01 02 00 00 00 00 C4 [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 03 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [16:44:36]RAPDU: 90 00 [16:44:36]wFMCommunicate OK [16:44:36]wFMCommunicate request_size=253 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 EA 00 00 00 F4 03 04 00 74 76 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 20 02 00 35 04 06 00 B9 FB CA A5 DD B0 [16:44:36]Write to MH i2c: E2 00 01 31 1B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 EA 00 00 00 F4 03 04 00 74 76 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 20 02 00 35 04 06 00 B9 FB CA A5 DD B0 00 00 CB [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 03 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [16:44:36]RAPDU: 90 00 [16:44:36]wFMCommunicate OK [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 0D 03 02 [16:44:36]Write to MH i2c: E2 08 00 32 1B 80 0D 03 02 00 00 00 00 C8 [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 0B 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 0B 00 32 1B 00 D4 E1 C4 9D 8D 8F 4B 67 90 00 AD [16:44:36]RAPDU: D4 E1 C4 9D 8D 8F 4B 67 90 00 [16:44:36]wFMCommunicate OK [16:44:36]SAM_PROTO_SignData done [16:44:36]FM_MakeSignedData done [16:44:36]CreateOFDProtocolMessage [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 11 00 00 [16:44:36]Write to MH i2c: E2 08 00 33 1B 80 11 00 00 00 00 00 00 C8 [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 17 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 17 00 33 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [16:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:36]wFMCommunicate OK [16:44:36]CreateOFDProtocolMessage done [16:44:36]OFDSenderStorePacket 139399 [16:44:36]StoreOFDPacket docnum=139399 [16:44:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 29 08 00 01 10 8C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 EA 00 00 00 F4 03 04 00 74 76 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 20 02 00 35 04 06 00 B9 FB CA A5 DD B0 D4 E1 C4 9D 8D 8F 4B 67 [16:44:36]CheckFolder [16:44:36]dirname=/storage/ofd_packets [16:44:36]CheckFolder done [16:44:36]ProducePacketName [16:44:36]name=ofd_packets/00139399 [16:44:36]NVStorageSaveData ofd_packets/00139399 [16:44:36]File name is /storage/ofd_packets/00139399 [16:44:36]Write 294 bytes [16:44:36]NVStorageSaveData done [16:44:36]OFDSenderStorePacket done [16:44:36]KKMCreateOFDPacket done [16:44:36]NVStorageSaveData kkm_last_timestamp [16:44:36]File name is /storage/kkm_last_timestamp [16:44:36]Write 4 bytes [16:44:36]NVStorageSaveData done [16:44:36]ExternCall_PrintAddStr [16:44:36]wPrintStart [16:44:36]Write to MH i2c: 01 00 00 34 1B 4F [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: 01 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: 01 07 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: 01 07 00 34 1B 00 00 00 00 00 FF 0F 64 [16:44:36]RasterBufferAndPrint [16:44:36]line Счет N : (1)593241 [16:44:36]line ИНН: 02508201610067 [16:44:36]line Контрольно-Кассовый Чек [16:44:36]line ПРОДАЖА [16:44:36]line ТРК (МРК, ГНК) : 33 [16:44:36]line Товар: 2710124130 [16:44:36]line SU-92 [16:44:36]line 10.180 * 68.80 [16:44:36]line = 700.38 [16:44:36]line НДС 12% НСП 1% [16:44:36]line > о реализуемом товаре [16:44:36]line ОКРУГЛЕНИЕ: -0.38 [16:44:36]line ИТОГО: 700.00 [16:44:36]line Внесено: 700.00 [16:44:36]line СДАЧА: 0.00 [16:44:36]line НСП 1% : 6.20 [16:44:36]line НДС 12% : 74.38 [16:44:36]line Наличными: 700.00 [16:44:36]line Безнал.: 0.00 [16:44:36]line Место: АЗС № 136 "Партнер Нефть" [16:44:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:44:36]line СНО: Общий режим [16:44:36]line Чек 234 19.08.2024 16:44 [16:44:36]line Смена: 452 ФФД: 1.0 [16:44:36]line ЗНМ: 0300000067 [16:44:36]line РНМ: 0000000000092569 [16:44:36]line Версия ККМ: 001 [16:44:36]line ФМ: 0000000000871776 [16:44:36]line ФД: 139399 [16:44:36]line ФПД: 204491087797680 [16:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T164436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139399&fm=204491087797680&tin=02508201610067®Number=0000000000092569&sum=70000 [16:44:37]OFD Sender: Processing packet 139399 [packets to send 137, broken 136] [16:44:37]ProducePacketName [16:44:37]name=ofd_packets/00139399 [16:44:37]OFD Sender: To server: pG, [16:44:37]CommunicateWithHost lk.salyk.kg:30040 [16:44:37]ConnectInit lk.salyk.kg [16:44:37]written 0, free lines is 4095 [16:44:37]Connected sock=10 [16:44: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 37 36 08 01 00 00 29 08 00 01 10 8C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 EA 00 00 00 F4 03 04 00 74 76 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 20 02 00 35 04 06 00 B9 FB CA A5 DD B0 D4 E1 C4 9D 8D 8F 4B 67 [16:44:37]Write to MH i2c: 01 00 00 5F 1B 7A [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: 01 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: 01 07 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: 01 07 00 5F 1B 00 00 00 00 00 DD 0C 6A [16:44:37]RasterBufferAndPrint [16:44:37]line [16:44:37]line [16:44:37]line [16:44:37]line [16:44:37]line [16:44:37]written 0, free lines is 3299 [16:44: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 37 36 4F 00 00 00 51 7D 47 00 B3 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 20 02 00 F4 03 04 00 0A 1D C3 66 B6 04 01 00 00 E7 37 7B 81 A9 C6 4E D5 [16:44:37]CommunicateWithHost err = 0 [16:44:37]CheckOFDResponse [16:44:37]1017 (14) - 77093643461234 [16:44:37]1041 (16) - 0000000000871776 [16:44:37]1040 (4) - 139399 [16:44:37]1012 (4) - 19.08.2024 10:23 [16:44:37]1206 (1) - 0 [16:44:37]OFD Sender: Remove packet 139399 [16:44:37]ProducePacketName [16:44:37]name=ofd_packets/00139399 [16:44:37]NVStorageDeleteData [16:44:37]MH_Cut [16:44:37]Write to MH i2c: D1 01 00 66 1B 01 53 [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: D1 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: D1 01 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: D1 01 00 66 1B 00 52 [16:44:37]Write to MH i2c: 01 00 00 67 1B 82 [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:38]OFD Sender: No OFD packet to send [16:44:38]*** Cut start [16:44:38]*** Partial cut [16:44:38]*** CUTSNS_PIN = 1 [16:44:38]*** CUTSNS_PIN = 0 [16:44:38]*** Brake cut motor [16:44:38]Read from MH i2c: 01 [16:44:38]MH_I2C_Read... [16:44:38]*** Stop cut motor [16:44:38]*** Cut end [16:44:38]Read from MH i2c: 01 07 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 07 00 67 1B 00 00 00 00 00 FF 0F 97 [16:44:38]process_action close_receipt done [16:44:38]requested_data is exist [16:44:38]produce_requested_data [16:44:38]requested_item fm.sn is exist - process it [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 11 00 00 [16:44:38]Write to MH i2c: E2 08 00 68 1B 80 11 00 00 00 00 00 00 FD [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:38]Read from MH i2c: E2 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 17 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: E2 17 00 68 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [16:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:38]wFMCommunicate OK [16:44:38]requested_item fd.num is exist - process it [16:44:38]SAM_PROTO_GetFieldsCounters [16:44:38]wFMCommunicate request_size=4 [16:44:38]MH_SAM_APDU [16:44:38]CAPDU: 80 13 00 00 [16:44:38]Write to MH i2c: E2 08 00 69 1B 80 13 00 00 00 00 00 00 00 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:39]Read from MH i2c: E2 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 62 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 62 00 69 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [16: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:39]wFMCommunicate OK [16:44:39]SAM_PROTO_GetFieldsCounters done [16:44:39]requested_item shift.num is exist - process it [16:44:39]requested_item shift.opened is exist - process it [16:44:39]req_shift_opened [16:44:39]FM_GetShiftState [16:44:39]SAM_PROTO_GetShiftState [16:44:39]wFMCommunicate request_size=4 [16:44:39]MH_SAM_APDU [16:44:39]CAPDU: 80 13 01 00 [16:44:39]Write to MH i2c: E2 08 00 6A 1B 80 13 01 00 00 00 00 00 02 [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:39]Read from MH i2c: E2 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 0E 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 0E 00 6A 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B9 [16:44:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:44:39]wFMCommunicate OK [16:44:39]SAM_PROTO_GetShiftState done [16:44:39]FM_GetShiftState done [16:44:39]req_shift_opened done [16:44:39]requested_item shift.open_date is exist - process it [16:44:39]req_shift_open_date [16:44:39]req_shift_open_date done [16:44:39]produce_requested_data done [16:44:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139399,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:44:39]process_action_free close_receipt [16:44:39]json_value_free [16:44:39]json_value_free done [16:44:39]process_json_proto returns [16:44:39]Send response to host [16:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139399,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:44:39]free response buf [16:44:39]execute_script done [16:44:39]execute_script returns [16:44:39]free content buf [16:44:39]Sock 8.Close socket [16:44:39]Sock 8.Thread stoped [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:28]accept exits with 9 [16:48:28]New connection [16:48:28]New thread 3066674532 created [16:48:28]Thread 3066817892 joined [16:48:28]Waiting for new connection... [16:48:28] Sock 9.Parse request [16:48:28]Sock 9.Check first char [16:48:28]Sock 9.First char is OK [16:48:28]request: POST /json_proto HTTP/1.0 [16:48:28]Method: POST [16:48:28]URL: /json_proto [16:48:28]Method is POST - this is cgi request [16:48:28]url: /json_proto [16:48:28]query_string will be loaded in cgi processing [16:48:28]execute_cgi json_proto POST (null) [16:48:28]execute_cgi path=json_proto method=POST [16:48:28]POST find Content-Length [16:48:28]Host: 172.17.45.67:8080 [16:48:28]Content-Length: 682 [16:48:28]Content-Type: application/json [16:48:28] [16:48:28]POST finish read [16:48:28]Found Content-Length = 682 [16:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:28]execute_script... [16:48: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)593242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:28]POST & json_proto [16:48:28]process_json_proto [16:48:28]json parsed OK: [16:48:28]protocol is kg_v1.0 [16:48:28]action value=close_receipt [16:48:28]process_action close_receipt [16:48:28]cmd_close_receipt [16:48:28]MH_GetDate [16:48:28]Write to MH i2c: F0 00 00 6B 1B 75 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: F0 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: F0 09 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: F0 09 00 6B 1B 00 5E 77 C3 66 5F 7F 2B 66 EB [16:48:28]GetLastDocTimeStamp 1724085876 [16:48:28]current date 1724086110 [16:48:28]FM_GetShiftState [16:48:28]SAM_PROTO_GetShiftState [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 13 01 00 [16:48:28]Write to MH i2c: E2 08 00 6C 1B 80 13 01 00 00 00 00 00 04 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 0E 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 0E 00 6C 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BB [16:48:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:48:28]wFMCommunicate OK [16:48:28]SAM_PROTO_GetShiftState done [16:48:28]FM_GetShiftState done [16:48:28]opened in 1724027888 [16:48:28]opened+sec_in_day 1724114288 [16:48:28]quantity*price = 300015 [16:48:28]sum+1 = 300016 [16:48:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.60 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 235 19.08.2024 16:48 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139400 ФПД: 229413441355623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T164830&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139400&fm=229413441355623&tin=02508201610067®Number=0000000000092569&sum=300000 [16:48:29]StoreToDocumentArchive [16:48:29]shift 452 fd 139400 [16:48:29]save to /storage/0452/doc_00139400 [16:48:29]save last doc name /storage/0452/doc_00139400 to /storage/kkm_last_doc_name [16:48:29]save OK [16:48:29]Clear old archive folders... [16:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:29]tlvbuf is 0120F830 [16:48:29]SAM_PROTO_ClearQueue [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 09 00 00 [16:48:29]Write to MH i2c: E2 08 00 79 1B 80 09 00 00 00 00 00 00 06 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:29]Read from MH i2c: E2 03 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 79 1B 00 90 00 08 [16:48:29]RAPDU: 90 00 [16:48:29]wFMCommunicate OK [16:48:29]SAM_PROTO_ClearQueue done [16:48:29]KKMCreateOFDPacket [16:48:29]OFDProtocolAddRootSTLVToBuf [16:48:29]FM_MakeSignedData [16:48:29]FM_MakeSignedData [16:48:29]SAM_PROTO_SignData [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 0D 01 02 [16:48:29]Write to MH i2c: E2 08 00 7A 1B 80 0D 01 02 00 00 00 00 0E [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [16:48:29]RAPDU: 90 00 [16:48:29]wFMCommunicate OK [16:48:29]wFMCommunicate request_size=255 [16:48:29]MH_SAM_APDU [16:48: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 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 5E 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 20 02 00 35 04 06 00 D0 [16:48:29]Write to MH i2c: E2 02 01 7B 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 5E 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 20 02 00 35 04 06 00 D0 00 00 33 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 03 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [16:48:30]RAPDU: 90 00 [16:48:30]wFMCommunicate OK [16:48:30]wFMCommunicate request_size=10 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 0D 02 02 05 A6 7A AD BF 67 [16:48:30]Write to MH i2c: E2 0D 00 7C 1B 80 0D 02 02 05 00 A6 7A AD BF 67 00 00 0E [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 03 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [16:48:30]RAPDU: 90 00 [16:48:30]wFMCommunicate OK [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 0D 03 02 [16:48:30]Write to MH i2c: E2 08 00 7D 1B 80 0D 03 02 00 00 00 00 13 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 0B 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 0B 00 7D 1B 00 7F 5A 51 F3 3C 20 5D 3C 90 00 26 [16:48:30]RAPDU: 7F 5A 51 F3 3C 20 5D 3C 90 00 [16:48:30]wFMCommunicate OK [16:48:30]SAM_PROTO_SignData done [16:48:30]FM_MakeSignedData done [16:48:30]CreateOFDProtocolMessage [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 11 00 00 [16:48:30]Write to MH i2c: E2 08 00 7E 1B 80 11 00 00 00 00 00 00 13 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 17 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 17 00 7E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [16:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:48:30]wFMCommunicate OK [16:48:30]CreateOFDProtocolMessage done [16:48:30]OFDSenderStorePacket 139400 [16:48:30]StoreOFDPacket docnum=139400 [16:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F3 C8 07 01 1B 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 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 5E 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 20 02 00 35 04 06 00 D0 A6 7A AD BF 67 7F 5A 51 F3 3C 20 5D 3C [16:48:30]CheckFolder [16:48:30]dirname=/storage/ofd_packets [16:48:30]CheckFolder done [16:48:30]ProducePacketName [16:48:30]name=ofd_packets/00139400 [16:48:30]NVStorageSaveData ofd_packets/00139400 [16:48:30]File name is /storage/ofd_packets/00139400 [16:48:30]Write 301 bytes [16:48:30]NVStorageSaveData done [16:48:30]OFDSenderStorePacket done [16:48:30]KKMCreateOFDPacket done [16:48:30]NVStorageSaveData kkm_last_timestamp [16:48:30]File name is /storage/kkm_last_timestamp [16:48:30]Write 4 bytes [16:48:30]NVStorageSaveData done [16:48:30]ExternCall_PrintAddStr [16:48:30]wPrintStart [16:48:30]Write to MH i2c: 01 00 00 7F 1B 9A [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 07 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 07 00 7F 1B 00 00 00 00 00 FF 0F AF [16:48:30]RasterBufferAndPrint [16:48:30]line Счет N : (1)593242 [16:48:30]line ИНН: 02508201610067 [16:48:30]line Контрольно-Кассовый Чек [16:48:30]line ПРОДАЖА [16:48:30]line ТРК (МРК, ГНК) : 42 [16:48:30]line Товар: 2710124130 [16:48:30]line Аи-92-К-5 [16:48:30]line 44.250 * 67.80 [16:48:30]line = 3000.15 [16:48:30]line НДС 12% НСП 1% [16:48:30]line > о реализуемом товаре [16:48:30]line ОКРУГЛЕНИЕ: -0.15 [16:48:30]line ИТОГО: 3000.00 [16:48:30]line Внесено: 3000.00 [16:48:30]line СДАЧА: 0.00 [16:48:30]line НСП 1% : 26.55 [16:48:30]line НДС 12% : 318.60 [16:48:30]line Наличными: 3000.00 [16:48:30]line Безнал.: 0.00 [16:48:30]line Место: АЗС № 136 "Партнер Нефть" [16:48:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:48:30]line СНО: Общий режим [16:48:30]line Чек 235 19.08.2024 16:48 [16:48:30]line Смена: 452 ФФД: 1.0 [16:48:30]line ЗНМ: 0300000067 [16:48:30]line РНМ: 0000000000092569 [16:48:30]line Версия ККМ: 001 [16:48:30]line ФМ: 0000000000871776 [16:48:30]line ФД: 139400 [16:48:30]line ФПД: 229413441355623 [16:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T164830&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139400&fm=229413441355623&tin=02508201610067®Number=0000000000092569&sum=300000 [16:48:30]OFD Sender: Processing packet 139400 [packets to send 137, broken 136] [16:48:30]ProducePacketName [16:48:30]name=ofd_packets/00139400 [16:48:30]OFD Sender: To server: pG, [16:48:30]CommunicateWithHost lk.salyk.kg:30040 [16:48:30]ConnectInit lk.salyk.kg [16:48:30]written 0, free lines is 4095 [16:48:30]Connected sock=10 [16:48: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 37 36 0F 01 00 00 F3 C8 07 01 1B 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 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 5E 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 20 02 00 35 04 06 00 D0 A6 7A AD BF 67 7F 5A 51 F3 3C 20 5D 3C [16:48: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 37 36 4F 00 00 00 7B 7A 47 00 78 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 20 02 00 F4 03 04 00 F3 1D C3 66 B6 04 01 00 00 30 07 FF 79 98 26 7D 23 [16:48:31]CommunicateWithHost err = 0 [16:48:31]CheckOFDResponse [16:48:31]1017 (14) - 77093643461234 [16:48:31]1041 (16) - 0000000000871776 [16:48:31]1040 (4) - 139400 [16:48:31]1012 (4) - 19.08.2024 10:26 [16:48:31]1206 (1) - 0 [16:48:31]OFD Sender: Remove packet 139400 [16:48:31]ProducePacketName [16:48:31]name=ofd_packets/00139400 [16:48:31]NVStorageDeleteData [16:48:31]Write to MH i2c: 01 00 00 AA 1B C5 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 AA 1B 00 00 00 00 00 E3 0C BB [16:48:31]RasterBufferAndPrint [16:48:31]line [16:48:31]line [16:48:31]line [16:48:31]line [16:48:31]line [16:48:31]written 0, free lines is 3305 [16:48:31]MH_Cut [16:48:31]Write to MH i2c: D1 01 00 B1 1B 01 9E [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: D1 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: D1 01 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: D1 01 00 B1 1B 00 9D [16:48:31]Write to MH i2c: 01 00 00 B2 1B CD [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]OFD Sender: No OFD packet to send [16:48:31]*** Cut start [16:48:31]*** Partial cut [16:48:31]*** CUTSNS_PIN = 1 [16:48:31]*** CUTSNS_PIN = 0 [16:48:32]*** Brake cut motor [16:48:32]Read from MH i2c: 01 [16:48:32]MH_I2C_Read... [16:48:32]*** Stop cut motor [16:48:32]*** Cut end [16:48:32]Read from MH i2c: 01 07 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: 01 07 00 B2 1B 00 00 00 00 00 FF 0F E2 [16:48:32]process_action close_receipt done [16:48:32]requested_data is exist [16:48:32]produce_requested_data [16:48:32]requested_item fm.sn is exist - process it [16:48:32]wFMCommunicate request_size=4 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 11 00 00 [16:48:32]Write to MH i2c: E2 08 00 B3 1B 80 11 00 00 00 00 00 00 48 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 17 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 17 00 B3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9F [16:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:48:32]wFMCommunicate OK [16:48:32]requested_item fd.num is exist - process it [16:48:32]SAM_PROTO_GetFieldsCounters [16:48:32]wFMCommunicate request_size=4 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 13 00 00 [16:48:32]Write to MH i2c: E2 08 00 B4 1B 80 13 00 00 00 00 00 00 4B [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 62 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 62 00 B4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [16:48: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:32]wFMCommunicate OK [16:48:32]SAM_PROTO_GetFieldsCounters done [16:48:32]requested_item shift.num is exist - process it [16:48:32]requested_item shift.opened is exist - process it [16:48:32]req_shift_opened [16:48:32]FM_GetShiftState [16:48:32]SAM_PROTO_GetShiftState [16:48:32]wFMCommunicate request_size=4 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 13 01 00 [16:48:32]Write to MH i2c: E2 08 00 B5 1B 80 13 01 00 00 00 00 00 4D [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 0E 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 0E 00 B5 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 04 [16:48:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:48:32]wFMCommunicate OK [16:48:32]SAM_PROTO_GetShiftState done [16:48:32]FM_GetShiftState done [16:48:32]req_shift_opened done [16:48:32]requested_item shift.open_date is exist - process it [16:48:32]req_shift_open_date [16:48:32]req_shift_open_date done [16:48:32]produce_requested_data done [16:48:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139400,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:48:32]process_action_free close_receipt [16:48:32]json_value_free [16:48:32]json_value_free done [16:48:32]process_json_proto returns [16:48:32]Send response to host [16:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139400,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:48:32]free response buf [16:48:32]execute_script done [16:48:32]execute_script returns [16:48:32]free content buf [16:48:32]Sock 9.Close socket [16:48:32]Sock 9.Thread stoped [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:42]accept exits with 8 [16:48:42]New connection [16:48:42]New thread 3066817892 created [16:48:42]Thread 3066674532 joined [16:48:42]Waiting for new connection... [16:48:42] Sock 8.Parse request [16:48:42]Sock 8.Check first char [16:48:42]Sock 8.First char is OK [16:48:42]request: POST /json_proto HTTP/1.0 [16:48:42]Method: POST [16:48:42]URL: /json_proto [16:48:42]Method is POST - this is cgi request [16:48:42]url: /json_proto [16:48:42]query_string will be loaded in cgi processing [16:48:42]execute_cgi json_proto POST (null) [16:48:42]execute_cgi path=json_proto method=POST [16:48:42]POST find Content-Length [16:48:42]Host: 172.17.45.67:8080 [16:48:42]Content-Length: 677 [16:48:42]Content-Type: application/json [16:48:42] [16:48:42]POST finish read [16:48:42]Found Content-Length = 677 [16:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:48:42]execute_script... [16:48:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:48:42]POST & json_proto [16:48:42]process_json_proto [16:48:42]json parsed OK: [16:48:42]protocol is kg_v1.0 [16:48:42]action value=close_receipt [16:48:42]process_action close_receipt [16:48:42]cmd_close_receipt [16:48:42]MH_GetDate [16:48:42]Write to MH i2c: F0 00 00 B6 1B C0 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: F0 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: F0 09 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: F0 09 00 B6 1B 00 6B 77 C3 66 5F 7F 2B 66 43 [16:48:42]GetLastDocTimeStamp 1724086110 [16:48:42]current date 1724086123 [16:48:42]FM_GetShiftState [16:48:42]SAM_PROTO_GetShiftState [16:48:42]wFMCommunicate request_size=4 [16:48:42]MH_SAM_APDU [16:48:42]CAPDU: 80 13 01 00 [16:48:42]Write to MH i2c: E2 08 00 B7 1B 80 13 01 00 00 00 00 00 4F [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:42]Read from MH i2c: E2 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 0E 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 0E 00 B7 1B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 06 [16:48:42]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:48:42]wFMCommunicate OK [16:48:42]SAM_PROTO_GetShiftState done [16:48:42]FM_GetShiftState done [16:48:42]opened in 1724027888 [16:48:42]opened+sec_in_day 1724114288 [16:48:42]quantity*price = 50036 [16:48:42]sum+1 = 50037 [16:48:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 236 19.08.2024 16:48 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139401 ФПД: 177357667334763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T164843&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139401&fm=177357667334763&tin=02508201610067®Number=0000000000092569&sum=50000 [16:48:43]StoreToDocumentArchive [16:48:43]shift 452 fd 139401 [16:48:43]save to /storage/0452/doc_00139401 [16:48:43]save last doc name /storage/0452/doc_00139401 to /storage/kkm_last_doc_name [16:48:43]save OK [16:48:43]Clear old archive folders... [16:48:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:43]tlvbuf is 012BB9B0 [16:48:43]SAM_PROTO_ClearQueue [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 09 00 00 [16:48:43]Write to MH i2c: E2 08 00 C4 1B 80 09 00 00 00 00 00 00 51 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 03 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 03 00 C4 1B 00 90 00 53 [16:48:43]RAPDU: 90 00 [16:48:43]wFMCommunicate OK [16:48:43]SAM_PROTO_ClearQueue done [16:48:43]KKMCreateOFDPacket [16:48:43]OFDProtocolAddRootSTLVToBuf [16:48:43]FM_MakeSignedData [16:48:43]FM_MakeSignedData [16:48:43]SAM_PROTO_SignData [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 0D 01 02 [16:48:43]Write to MH i2c: E2 08 00 C5 1B 80 0D 01 02 00 00 00 00 59 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 03 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [16:48:43]RAPDU: 90 00 [16:48:43]wFMCommunicate OK [16:48:43]wFMCommunicate request_size=255 [16:48:43]MH_SAM_APDU [16:48: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 EC 00 00 00 F4 03 04 00 6B 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 20 02 00 35 04 06 00 A1 [16:48:43]Write to MH i2c: E2 02 01 C6 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 EC 00 00 00 F4 03 04 00 6B 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 20 02 00 35 04 06 00 A1 00 00 EA [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 03 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [16:48:43]RAPDU: 90 00 [16:48:43]wFMCommunicate OK [16:48:43]wFMCommunicate request_size=10 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 0D 02 02 05 4E 4C C2 7A 6B [16:48:43]Write to MH i2c: E2 0D 00 C7 1B 80 0D 02 02 05 00 4E 4C C2 7A 6B 00 00 A7 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 03 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [16:48:43]RAPDU: 90 00 [16:48:43]wFMCommunicate OK [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 0D 03 02 [16:48:43]Write to MH i2c: E2 08 00 C8 1B 80 0D 03 02 00 00 00 00 5E [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0B 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0B 00 C8 1B 00 1C 64 AC 1C 80 E1 D0 AC 90 00 84 [16:48:43]RAPDU: 1C 64 AC 1C 80 E1 D0 AC 90 00 [16:48:43]wFMCommunicate OK [16:48:43]SAM_PROTO_SignData done [16:48:43]FM_MakeSignedData done [16:48:43]CreateOFDProtocolMessage [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 11 00 00 [16:48:43]Write to MH i2c: E2 08 00 C9 1B 80 11 00 00 00 00 00 00 5E [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 17 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 17 00 C9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [16:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:48:43]wFMCommunicate OK [16:48:43]CreateOFDProtocolMessage done [16:48:43]OFDSenderStorePacket 139401 [16:48:43]StoreOFDPacket docnum=139401 [16:48:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 58 21 07 01 B3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 EC 00 00 00 F4 03 04 00 6B 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 20 02 00 35 04 06 00 A1 4E 4C C2 7A 6B 1C 64 AC 1C 80 E1 D0 AC [16:48:43]CheckFolder [16:48:43]dirname=/storage/ofd_packets [16:48:43]CheckFolder done [16:48:43]ProducePacketName [16:48:43]name=ofd_packets/00139401 [16:48:43]NVStorageSaveData ofd_packets/00139401 [16:48:43]File name is /storage/ofd_packets/00139401 [16:48:43]Write 301 bytes [16:48:43]NVStorageSaveData done [16:48:43]OFDSenderStorePacket done [16:48:43]KKMCreateOFDPacket done [16:48:43]NVStorageSaveData kkm_last_timestamp [16:48:43]File name is /storage/kkm_last_timestamp [16:48:43]Write 4 bytes [16:48:43]NVStorageSaveData done [16:48:43]ExternCall_PrintAddStr [16:48:43]wPrintStart [16:48:43]Write to MH i2c: 01 00 00 CA 1B E5 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: 01 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: 01 07 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: 01 07 00 CA 1B 00 00 00 00 00 FF 0F FA [16:48:43]RasterBufferAndPrint [16:48:43]line Счет N : (1)593244 [16:48:43]line ИНН: 02508201610067 [16:48:43]line Контрольно-Кассовый Чек [16:48:43]line ПРОДАЖА [16:48:43]line ТРК (МРК, ГНК) : 62 [16:48:43]line Товар: 2710124130 [16:48:43]line Аи-92-К-5 [16:48:43]line 7.380 * 67.80 [16:48:43]line = 500.36 [16:48:43]line НДС 12% НСП 1% [16:48:43]line > о реализуемом товаре [16:48:43]line ОКРУГЛЕНИЕ: -0.36 [16:48:43]line ИТОГО: 500.00 [16:48:43]line Внесено: 500.00 [16:48:43]line СДАЧА: 0.00 [16:48:43]line НСП 1% : 4.43 [16:48:43]line НДС 12% : 53.14 [16:48:43]line Наличными: 500.00 [16:48:43]line Безнал.: 0.00 [16:48:43]line Место: АЗС № 136 "Партнер Нефть" [16:48:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:48:43]line СНО: Общий режим [16:48:43]line Чек 236 19.08.2024 16:48 [16:48:43]line Смена: 452 ФФД: 1.0 [16:48:43]line ЗНМ: 0300000067 [16:48:43]line РНМ: 0000000000092569 [16:48:43]line Версия ККМ: 001 [16:48:43]line ФМ: 0000000000871776 [16:48:43]line ФД: 139401 [16:48:43]line ФПД: 177357667334763 [16:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T164843&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139401&fm=177357667334763&tin=02508201610067®Number=0000000000092569&sum=50000 [16:48:43]written 0, free lines is 4095 [16:48:43]OFD Sender: Processing packet 139401 [packets to send 137, broken 136] [16:48:43]ProducePacketName [16:48:43]name=ofd_packets/00139401 [16:48:43]OFD Sender: To server: pG, [16:48:43]CommunicateWithHost lk.salyk.kg:30040 [16:48:43]ConnectInit lk.salyk.kg [16:48:44]Connected sock=10 [16:48:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 58 21 07 01 B3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 EC 00 00 00 F4 03 04 00 6B 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 20 02 00 35 04 06 00 A1 4E 4C C2 7A 6B 1C 64 AC 1C 80 E1 D0 AC [16:48:44]Write to MH i2c: 01 00 00 F5 1B 10 [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: 01 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: 01 07 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: 01 07 00 F5 1B 00 00 00 00 00 E0 0C 03 [16:48:44]RasterBufferAndPrint [16:48:44]line [16:48:44]line [16:48:44]line [16:48:44]line [16:48:44]line [16:48:44]written 0, free lines is 3304 [16:48:44]MH_Cut [16:48:44]Write to MH i2c: D1 01 00 FC 1B 01 E9 [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: D1 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: D1 01 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: D1 01 00 FC 1B 00 E8 [16:48:44]Write to MH i2c: 01 00 00 FD 1B 18 [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 9C D3 47 00 CD 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 37 36 10 04 04 00 89 20 02 00 F4 03 04 00 01 1E C3 66 B6 04 01 00 00 EE 01 83 2D AA 7F 1D E6 [16:48:44]CommunicateWithHost err = 0 [16:48:44]CheckOFDResponse [16:48:44]1017 (14) - 77093643461234 [16:48:44]1041 (16) - 0000000000871776 [16:48:44]1040 (4) - 139401 [16:48:44]1012 (4) - 19.08.2024 10:27 [16:48:44]1206 (1) - 0 [16:48:44]OFD Sender: Remove packet 139401 [16:48:44]ProducePacketName [16:48:44]name=ofd_packets/00139401 [16:48:44]NVStorageDeleteData [16:48:44]*** Cut start [16:48:44]*** Partial cut [16:48:44]*** CUTSNS_PIN = 1 [16:48:45]*** CUTSNS_PIN = 0 [16:48:45]OFD Sender: No OFD packet to send [16:48:45]*** Brake cut motor [16:48:45]Read from MH i2c: 01 [16:48:45]MH_I2C_Read... [16:48:45]*** Stop cut motor [16:48:45]*** Cut end [16:48:45]Read from MH i2c: 01 07 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 07 00 FD 1B 00 00 00 00 00 FF 0F 2D [16:48:45]process_action close_receipt done [16:48:45]requested_data is exist [16:48:45]produce_requested_data [16:48:45]requested_item fm.sn is exist - process it [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 11 00 00 [16:48:45]Write to MH i2c: E2 08 00 FE 1B 80 11 00 00 00 00 00 00 93 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 17 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 17 00 FE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [16:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:48:45]wFMCommunicate OK [16:48:45]requested_item fd.num is exist - process it [16:48:45]SAM_PROTO_GetFieldsCounters [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 13 00 00 [16:48:45]Write to MH i2c: E2 08 00 FF 1B 80 13 00 00 00 00 00 00 96 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 62 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 62 00 FF 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16:48: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:45]wFMCommunicate OK [16:48:45]SAM_PROTO_GetFieldsCounters done [16:48:45]requested_item shift.num is exist - process it [16:48:45]requested_item shift.opened is exist - process it [16:48:45]req_shift_opened [16:48:45]FM_GetShiftState [16:48:45]SAM_PROTO_GetShiftState [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 13 01 00 [16:48:45]Write to MH i2c: E2 08 00 00 1C 80 13 01 00 00 00 00 00 99 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0E 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0E 00 00 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 50 [16:48:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:48:45]wFMCommunicate OK [16:48:45]SAM_PROTO_GetShiftState done [16:48:45]FM_GetShiftState done [16:48:45]req_shift_opened done [16:48:45]requested_item shift.open_date is exist - process it [16:48:45]req_shift_open_date [16:48:45]req_shift_open_date done [16:48:45]produce_requested_data done [16:48:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139401,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:48:45]process_action_free close_receipt [16:48:45]json_value_free [16:48:45]json_value_free done [16:48:45]process_json_proto returns [16:48:45]Send response to host [16:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139401,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:48:45]free response buf [16:48:45]execute_script done [16:48:45]execute_script returns [16:48:45]free content buf [16:48:45]Sock 8.Close socket [16:48:45]Sock 8.Thread stoped [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:08]accept exits with 9 [16:49:08]New connection [16:49:08]New thread 3066674532 created [16:49:08]Thread 3066817892 joined [16:49:08]Waiting for new connection... [16:49:08] Sock 9.Parse request [16:49:08]Sock 9.Check first char [16:49:08]Sock 9.First char is OK [16:49:08]request: POST /json_proto HTTP/1.0 [16:49:08]Method: POST [16:49:08]URL: /json_proto [16:49:08]Method is POST - this is cgi request [16:49:08]url: /json_proto [16:49:08]query_string will be loaded in cgi processing [16:49:08]execute_cgi json_proto POST (null) [16:49:08]execute_cgi path=json_proto method=POST [16:49:08]POST find Content-Length [16:49:08]Host: 172.17.45.67:8080 [16:49:08]Content-Length: 682 [16:49:08]Content-Type: application/json [16:49:08] [16:49:08]POST finish read [16:49:08]Found Content-Length = 682 [16:49:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:08]execute_script... [16:49: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)593243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:08]POST & json_proto [16:49:08]process_json_proto [16:49:08]json parsed OK: [16:49:08]protocol is kg_v1.0 [16:49:08]action value=close_receipt [16:49:08]process_action close_receipt [16:49:08]cmd_close_receipt [16:49:08]MH_GetDate [16:49:08]Write to MH i2c: F0 00 00 01 1C 0C [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: F0 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: F0 09 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: F0 09 00 01 1C 00 86 77 C3 66 5F 7F 2B 66 AA [16:49:08]GetLastDocTimeStamp 1724086123 [16:49:08]current date 1724086150 [16:49:08]FM_GetShiftState [16:49:08]SAM_PROTO_GetShiftState [16:49:08]wFMCommunicate request_size=4 [16:49:08]MH_SAM_APDU [16:49:08]CAPDU: 80 13 01 00 [16:49:08]Write to MH i2c: E2 08 00 02 1C 80 13 01 00 00 00 00 00 9B [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 02 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 52 [16:49:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:49:08]wFMCommunicate OK [16:49:08]SAM_PROTO_GetShiftState done [16:49:08]FM_GetShiftState done [16:49:08]opened in 1724027888 [16:49:08]opened+sec_in_day 1724114288 [16:49:08]quantity*price = 100021 [16:49:08]sum+1 = 100023 [16:49:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 237 19.08.2024 16:49 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139402 ФПД: 17679139129750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T164910&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139402&fm=17679139129750&tin=02508201610067®Number=0000000000092569&sum=100000 [16:49:09]StoreToDocumentArchive [16:49:09]shift 452 fd 139402 [16:49:09]save to /storage/0452/doc_00139402 [16:49:09]save last doc name /storage/0452/doc_00139402 to /storage/kkm_last_doc_name [16:49:09]save OK [16:49:09]Clear old archive folders... [16:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:09]tlvbuf is B6E878C0 [16:49:09]SAM_PROTO_ClearQueue [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 09 00 00 [16:49:09]Write to MH i2c: E2 08 00 0F 1C 80 09 00 00 00 00 00 00 9D [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [16:49:09]RAPDU: 90 00 [16:49:09]wFMCommunicate OK [16:49:09]SAM_PROTO_ClearQueue done [16:49:09]KKMCreateOFDPacket [16:49:09]OFDProtocolAddRootSTLVToBuf [16:49:09]FM_MakeSignedData [16:49:09]FM_MakeSignedData [16:49:09]SAM_PROTO_SignData [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 0D 01 02 [16:49:09]Write to MH i2c: E2 08 00 10 1C 80 0D 01 02 00 00 00 00 A5 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [16:49:09]RAPDU: 90 00 [16:49:09]wFMCommunicate OK [16:49:09]wFMCommunicate request_size=255 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 86 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 20 02 00 35 04 06 00 10 [16:49:09]Write to MH i2c: E2 02 01 11 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 86 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 20 02 00 35 04 06 00 10 00 00 EF [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 11 1C 00 90 00 A1 [16:49:10]RAPDU: 90 00 [16:49:10]wFMCommunicate OK [16:49:10]wFMCommunicate request_size=10 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 0D 02 02 05 14 3E CE C9 96 [16:49:10]Write to MH i2c: E2 0D 00 12 1C 80 0D 02 02 05 00 14 3E CE C9 96 00 00 31 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]OFD Sender: No OFD packet to send [16:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 03 00 12 1C 00 90 00 A2 [16:49:10]RAPDU: 90 00 [16:49:10]wFMCommunicate OK [16:49:10]wFMCommunicate request_size=4 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 0D 03 02 [16:49:10]Write to MH i2c: E2 08 00 13 1C 80 0D 03 02 00 00 00 00 AA [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 0B 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 0B 00 13 1C 00 8F 7B 44 3E FD 50 B0 23 90 00 57 [16:49:10]RAPDU: 8F 7B 44 3E FD 50 B0 23 90 00 [16:49:10]wFMCommunicate OK [16:49:10]SAM_PROTO_SignData done [16:49:10]FM_MakeSignedData done [16:49:10]CreateOFDProtocolMessage [16:49:10]wFMCommunicate request_size=4 [16:49:10]MH_SAM_APDU [16:49:10]CAPDU: 80 11 00 00 [16:49:10]Write to MH i2c: E2 08 00 14 1C 80 11 00 00 00 00 00 00 AA [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:10]Read from MH i2c: E2 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 17 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: E2 17 00 14 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [16:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:49:10]wFMCommunicate OK [16:49:10]CreateOFDProtocolMessage done [16:49:10]OFDSenderStorePacket 139402 [16:49:10]StoreOFDPacket docnum=139402 [16:49:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E5 9A 07 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 86 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 20 02 00 35 04 06 00 10 14 3E CE C9 96 8F 7B 44 3E FD 50 B0 23 [16:49:10]CheckFolder [16:49:10]dirname=/storage/ofd_packets [16:49:10]CheckFolder done [16:49:10]ProducePacketName [16:49:10]name=ofd_packets/00139402 [16:49:10]NVStorageSaveData ofd_packets/00139402 [16:49:10]File name is /storage/ofd_packets/00139402 [16:49:10]Write 301 bytes [16:49:10]NVStorageSaveData done [16:49:10]OFDSenderStorePacket done [16:49:10]KKMCreateOFDPacket done [16:49:10]NVStorageSaveData kkm_last_timestamp [16:49:10]File name is /storage/kkm_last_timestamp [16:49:10]Write 4 bytes [16:49:10]NVStorageSaveData done [16:49:10]ExternCall_PrintAddStr [16:49:10]wPrintStart [16:49:10]Write to MH i2c: 01 00 00 15 1C 31 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: 01 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: 01 07 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 FF 0F 46 [16:49:10]RasterBufferAndPrint [16:49:10]line Счет N : (1)593243 [16:49:10]line ИНН: 02508201610067 [16:49:10]line Контрольно-Кассовый Чек [16:49:10]line ПРОДАЖА [16:49:10]line ТРК (МРК, ГНК) : 51 [16:49:10]line Товар: 2710124500 [16:49:10]line Аи-95-К-5 [16:49:10]line 13.480 * 74.20 [16:49:10]line = 1000.22 [16:49:10]line НДС 12% НСП 1% [16:49:10]line > о реализуемом товаре [16:49:10]line ОКРУГЛЕНИЕ: -0.22 [16:49:10]line ИТОГО: 1000.00 [16:49:10]line Внесено: 1000.00 [16:49:10]line СДАЧА: 0.00 [16:49:10]line НСП 1% : 8.85 [16:49:10]line НДС 12% : 106.22 [16:49:10]line Наличными: 1000.00 [16:49:10]line Безнал.: 0.00 [16:49:10]line Место: АЗС № 136 "Партнер Нефть" [16:49:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:49:10]line СНО: Общий режим [16:49:10]line Чек 237 19.08.2024 16:49 [16:49:10]line Смена: 452 ФФД: 1.0 [16:49:10]line ЗНМ: 0300000067 [16:49:10]line РНМ: 0000000000092569 [16:49:10]line Версия ККМ: 001 [16:49:10]line ФМ: 0000000000871776 [16:49:10]line ФД: 139402 [16:49:10]line ФПД: 17679139129750 [16:49:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T164910&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139402&fm=17679139129750&tin=02508201610067®Number=0000000000092569&sum=100000 [16:49:10]OFD Sender: Processing packet 139402 [packets to send 137, broken 136] [16:49:10]ProducePacketName [16:49:10]name=ofd_packets/00139402 [16:49:10]OFD Sender: To server: pG, [16:49:10]CommunicateWithHost lk.salyk.kg:30040 [16:49:10]ConnectInit lk.salyk.kg [16:49:10]written 0, free lines is 4095 [16:49:10]Connected sock=10 [16:49: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 37 36 0F 01 00 00 E5 9A 07 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 86 77 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 20 02 00 35 04 06 00 10 14 3E CE C9 96 8F 7B 44 3E FD 50 B0 23 [16:49: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 37 36 4F 00 00 00 D7 F4 47 00 90 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 20 02 00 F4 03 04 00 1B 1E C3 66 B6 04 01 00 00 09 75 81 20 3B 5F 78 75 [16:49:10]CommunicateWithHost err = 0 [16:49:10]CheckOFDResponse [16:49:10]1017 (14) - 77093643461234 [16:49:10]1041 (16) - 0000000000871776 [16:49:10]1040 (4) - 139402 [16:49:10]1012 (4) - 19.08.2024 10:27 [16:49:10]1206 (1) - 0 [16:49:10]OFD Sender: Remove packet 139402 [16:49:10]ProducePacketName [16:49:10]name=ofd_packets/00139402 [16:49:10]NVStorageDeleteData [16:49:11]Write to MH i2c: 01 00 00 40 1C 5C [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 07 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 07 00 40 1C 00 00 00 00 00 D5 0C 44 [16:49:11]RasterBufferAndPrint [16:49:11]line [16:49:11]line [16:49:11]line [16:49:11]line [16:49:11]line [16:49:11]written 0, free lines is 3293 [16:49:11]MH_Cut [16:49:11]Write to MH i2c: D1 01 00 47 1C 01 35 [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: D1 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: D1 01 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: D1 01 00 47 1C 00 34 [16:49:11]Write to MH i2c: 01 00 00 48 1C 64 [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]OFD Sender: No OFD packet to send [16:49:11]*** Cut start [16:49:11]*** Partial cut [16:49:11]*** CUTSNS_PIN = 1 [16:49:11]*** CUTSNS_PIN = 0 [16:49:11]*** Brake cut motor [16:49:12]Read from MH i2c: 01 [16:49:12]MH_I2C_Read... [16:49:12]*** Stop cut motor [16:49:12]*** Cut end [16:49:12]Read from MH i2c: 01 07 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: 01 07 00 48 1C 00 00 00 00 00 FF 0F 79 [16:49:12]process_action close_receipt done [16:49:12]requested_data is exist [16:49:12]produce_requested_data [16:49:12]requested_item fm.sn is exist - process it [16:49:12]wFMCommunicate request_size=4 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 11 00 00 [16:49:12]Write to MH i2c: E2 08 00 49 1C 80 11 00 00 00 00 00 00 DF [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 17 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 17 00 49 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [16:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:49:12]wFMCommunicate OK [16:49:12]requested_item fd.num is exist - process it [16:49:12]SAM_PROTO_GetFieldsCounters [16:49:12]wFMCommunicate request_size=4 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 13 00 00 [16:49:12]Write to MH i2c: E2 08 00 4A 1C 80 13 00 00 00 00 00 00 E2 [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 62 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 62 00 4A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:49: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:12]wFMCommunicate OK [16:49:12]SAM_PROTO_GetFieldsCounters done [16:49:12]requested_item shift.num is exist - process it [16:49:12]requested_item shift.opened is exist - process it [16:49:12]req_shift_opened [16:49:12]FM_GetShiftState [16:49:12]SAM_PROTO_GetShiftState [16:49:12]wFMCommunicate request_size=4 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 13 01 00 [16:49:12]Write to MH i2c: E2 08 00 4B 1C 80 13 01 00 00 00 00 00 E4 [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 0E 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 0E 00 4B 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9B [16:49:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:49:12]wFMCommunicate OK [16:49:12]SAM_PROTO_GetShiftState done [16:49:12]FM_GetShiftState done [16:49:12]req_shift_opened done [16:49:12]requested_item shift.open_date is exist - process it [16:49:12]req_shift_open_date [16:49:12]req_shift_open_date done [16:49:12]produce_requested_data done [16:49:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139402,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:49:12]process_action_free close_receipt [16:49:12]json_value_free [16:49:12]json_value_free done [16:49:12]process_json_proto returns [16:49:12]Send response to host [16:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139402,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:49:12]free response buf [16:49:12]execute_script done [16:49:12]execute_script returns [16:49:12]free content buf [16:49:12]Sock 9.Close socket [16:49:12]Sock 9.Thread stoped [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:44]accept exits with 8 [16:52:44]New connection [16:52:44]New thread 3066817892 created [16:52:44]Thread 3066674532 joined [16:52:44]Waiting for new connection... [16:52:44] Sock 8.Parse request [16:52:44]Sock 8.Check first char [16:52:44]Sock 8.First char is OK [16:52:44]request: POST /json_proto HTTP/1.0 [16:52:44]Method: POST [16:52:44]URL: /json_proto [16:52:44]Method is POST - this is cgi request [16:52:44]url: /json_proto [16:52:44]query_string will be loaded in cgi processing [16:52:44]execute_cgi json_proto POST (null) [16:52:44]execute_cgi path=json_proto method=POST [16:52:44]POST find Content-Length [16:52:44]Host: 172.17.45.67:8080 [16:52:44]Content-Length: 687 [16:52:44]Content-Type: application/json [16:52:44] [16:52:44]POST finish read [16:52:44]Found Content-Length = 687 [16:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 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" ] } } [16:52:44]execute_script... [16:52: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)593245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 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" ] } } [16:52:44]POST & json_proto [16:52:44]process_json_proto [16:52:44]json parsed OK: [16:52:44]protocol is kg_v1.0 [16:52:44]action value=close_receipt [16:52:44]process_action close_receipt [16:52:44]cmd_close_receipt [16:52:44]MH_GetDate [16:52:44]Write to MH i2c: F0 00 00 4C 1C 57 [16:52:44]Write i2c OK [16:52:44]MH_I2C_Read... [16:52:44]Read from MH i2c: F0 [16:52:44]MH_I2C_Read... [16:52:44]Read from MH i2c: F0 09 00 [16:52:44]MH_I2C_Read... [16:52:44]Read from MH i2c: F0 09 00 4C 1C 00 5E 78 C3 66 5F 7F 2B 66 CE [16:52:44]GetLastDocTimeStamp 1724086150 [16:52:44]current date 1724086366 [16:52:44]FM_GetShiftState [16:52:44]SAM_PROTO_GetShiftState [16:52:44]wFMCommunicate request_size=4 [16:52:44]MH_SAM_APDU [16:52:44]CAPDU: 80 13 01 00 [16:52:44]Write to MH i2c: E2 08 00 4D 1C 80 13 01 00 00 00 00 00 E6 [16:52:44]Write i2c OK [16:52:44]MH_I2C_Read... [16:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:44]Read from MH i2c: E2 [16:52:44]MH_I2C_Read... [16:52:44]Read from MH i2c: E2 0E 00 [16:52:44]MH_I2C_Read... [16:52:44]Read from MH i2c: E2 0E 00 4D 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9D [16:52:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:52:44]wFMCommunicate OK [16:52:44]SAM_PROTO_GetShiftState done [16:52:44]FM_GetShiftState done [16:52:44]opened in 1724027888 [16:52:44]opened+sec_in_day 1724114288 [16:52:44]quantity*price = 100050 [16:52:44]sum+1 = 100052 [16:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 238 19.08.2024 16:52 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139403 ФПД: 129641217292558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165246&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139403&fm=129641217292558&tin=02508201610067®Number=0000000000092569&sum=100000 [16:52:45]StoreToDocumentArchive [16:52:45]shift 452 fd 139403 [16:52:45]save to /storage/0452/doc_00139403 [16:52:45]save last doc name /storage/0452/doc_00139403 to /storage/kkm_last_doc_name [16:52:45]save OK [16:52:45]Clear old archive folders... [16:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:52:45]tlvbuf is 01264060 [16:52:45]SAM_PROTO_ClearQueue [16:52:45]wFMCommunicate request_size=4 [16:52:45]MH_SAM_APDU [16:52:45]CAPDU: 80 09 00 00 [16:52:45]Write to MH i2c: E2 08 00 5A 1C 80 09 00 00 00 00 00 00 E8 [16:52:45]Write i2c OK [16:52:45]MH_I2C_Read... [16:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:46]Read from MH i2c: E2 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 03 00 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [16:52:46]RAPDU: 90 00 [16:52:46]wFMCommunicate OK [16:52:46]SAM_PROTO_ClearQueue done [16:52:46]KKMCreateOFDPacket [16:52:46]OFDProtocolAddRootSTLVToBuf [16:52:46]FM_MakeSignedData [16:52:46]FM_MakeSignedData [16:52:46]SAM_PROTO_SignData [16:52:46]wFMCommunicate request_size=4 [16:52:46]MH_SAM_APDU [16:52:46]CAPDU: 80 0D 01 02 [16:52:46]Write to MH i2c: E2 08 00 5B 1C 80 0D 01 02 00 00 00 00 F0 [16:52:46]Write i2c OK [16:52:46]MH_I2C_Read... [16:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:46]Read from MH i2c: E2 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 03 00 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 03 00 5B 1C 00 90 00 EB [16:52:46]RAPDU: 90 00 [16:52:46]wFMCommunicate OK [16:52:46]wFMCommunicate request_size=255 [16:52:46]MH_SAM_APDU [16:52:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 5E 78 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 20 02 00 35 04 06 00 [16:52:46]Write to MH i2c: E2 02 01 5C 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 5E 78 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 20 02 00 35 04 06 00 00 00 C6 [16:52:46]Write i2c OK [16:52:46]MH_I2C_Read... [16:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:46]Read from MH i2c: E2 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 03 00 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 03 00 5C 1C 00 90 00 EC [16:52:46]RAPDU: 90 00 [16:52:46]wFMCommunicate OK [16:52:46]wFMCommunicate request_size=11 [16:52:46]MH_SAM_APDU [16:52:46]CAPDU: 80 0D 02 02 06 75 E8 72 B4 79 0E [16:52:46]Write to MH i2c: E2 0E 00 5D 1C 80 0D 02 02 06 00 75 E8 72 B4 79 0E 00 00 09 [16:52:46]Write i2c OK [16:52:46]MH_I2C_Read... [16:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:46]Read from MH i2c: E2 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 03 00 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [16:52:46]RAPDU: 90 00 [16:52:46]wFMCommunicate OK [16:52:46]wFMCommunicate request_size=4 [16:52:46]MH_SAM_APDU [16:52:46]CAPDU: 80 0D 03 02 [16:52:46]Write to MH i2c: E2 08 00 5E 1C 80 0D 03 02 00 00 00 00 F5 [16:52:46]Write i2c OK [16:52:46]MH_I2C_Read... [16:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:46]Read from MH i2c: E2 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 0B 00 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 0B 00 5E 1C 00 93 E2 52 74 53 58 FE 82 90 00 5C [16:52:46]RAPDU: 93 E2 52 74 53 58 FE 82 90 00 [16:52:46]wFMCommunicate OK [16:52:46]SAM_PROTO_SignData done [16:52:46]FM_MakeSignedData done [16:52:46]CreateOFDProtocolMessage [16:52:46]wFMCommunicate request_size=4 [16:52:46]MH_SAM_APDU [16:52:46]CAPDU: 80 11 00 00 [16:52:46]Write to MH i2c: E2 08 00 5F 1C 80 11 00 00 00 00 00 00 F5 [16:52:46]Write i2c OK [16:52:46]MH_I2C_Read... [16:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:46]Read from MH i2c: E2 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 17 00 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: E2 17 00 5F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [16:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:52:46]wFMCommunicate OK [16:52:46]CreateOFDProtocolMessage done [16:52:46]OFDSenderStorePacket 139403 [16:52:46]StoreOFDPacket docnum=139403 [16:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 97 FD 08 01 A0 68 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 5E 78 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 20 02 00 35 04 06 00 75 E8 72 B4 79 0E 93 E2 52 74 53 58 FE 82 [16:52:46]CheckFolder [16:52:46]dirname=/storage/ofd_packets [16:52:46]CheckFolder done [16:52:46]ProducePacketName [16:52:46]name=ofd_packets/00139403 [16:52:46]NVStorageSaveData ofd_packets/00139403 [16:52:46]File name is /storage/ofd_packets/00139403 [16:52:46]Write 302 bytes [16:52:46]NVStorageSaveData done [16:52:46]OFDSenderStorePacket done [16:52:46]KKMCreateOFDPacket done [16:52:46]NVStorageSaveData kkm_last_timestamp [16:52:46]File name is /storage/kkm_last_timestamp [16:52:46]Write 4 bytes [16:52:46]NVStorageSaveData done [16:52:46]ExternCall_PrintAddStr [16:52:46]wPrintStart [16:52:46]Write to MH i2c: 01 00 00 60 1C 7C [16:52:46]Write i2c OK [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: 01 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: 01 07 00 [16:52:46]MH_I2C_Read... [16:52:46]Read from MH i2c: 01 07 00 60 1C 00 00 00 00 00 FF 0F 91 [16:52:46]RasterBufferAndPrint [16:52:46]line Счет N : (1)593245 [16:52:46]line ИНН: 02508201610067 [16:52:46]line Контрольно-Кассовый Чек [16:52:46]line ПРОДАЖА [16:52:46]line ТРК (МРК, ГНК) : 21 [16:52:46]line Товар: 2710194210 [16:52:46]line ДТ(л)-К-5 [16:52:46]line 13.130 * 76.20 [16:52:46]line = 1000.51 [16:52:46]line НДС 12% НСП 1% [16:52:46]line > о реализуемом товаре [16:52:46]line ОКРУГЛЕНИЕ: -0.51 [16:52:46]line ИТОГО: 1000.00 [16:52:46]line Внесено: 1000.00 [16:52:46]line СДАЧА: 0.00 [16:52:46]line НСП 1% : 8.85 [16:52:46]line НДС 12% : 106.25 [16:52:46]line Наличными: 1000.00 [16:52:46]line Безнал.: 0.00 [16:52:46]line Место: АЗС № 136 "Партнер Нефть" [16:52:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:52:46]line СНО: Общий режим [16:52:46]line Чек 238 19.08.2024 16:52 [16:52:46]line Смена: 452 ФФД: 1.0 [16:52:46]line ЗНМ: 0300000067 [16:52:46]line РНМ: 0000000000092569 [16:52:46]line Версия ККМ: 001 [16:52:46]line ФМ: 0000000000871776 [16:52:46]line ФД: 139403 [16:52:46]line ФПД: 129641217292558 [16:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165246&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139403&fm=129641217292558&tin=02508201610067®Number=0000000000092569&sum=100000 [16:52:46]OFD Sender: Processing packet 139403 [packets to send 137, broken 136] [16:52:46]ProducePacketName [16:52:46]name=ofd_packets/00139403 [16:52:46]OFD Sender: To server: pG, [16:52:46]CommunicateWithHost lk.salyk.kg:30040 [16:52:46]ConnectInit lk.salyk.kg [16:52:46]written 0, free lines is 4095 [16:52:47]Connected sock=11 [16:52: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 37 36 10 01 00 00 97 FD 08 01 A0 68 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 5E 78 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 20 02 00 35 04 06 00 75 E8 72 B4 79 0E 93 E2 52 74 53 58 FE 82 [16:52:47]Write to MH i2c: 01 00 00 8B 1C A7 [16:52:47]Write i2c OK [16:52:47]MH_I2C_Read... [16:52:47]Read from MH i2c: 01 [16:52:47]MH_I2C_Read... [16:52:47]Read from MH i2c: 01 07 00 [16:52:47]MH_I2C_Read... [16:52:47]Read from MH i2c: 01 07 00 8B 1C 00 00 00 00 00 DD 0C 97 [16:52:47]RasterBufferAndPrint [16:52:47]line [16:52:47]line [16:52:47]line [16:52:47]line [16:52:47]line [16:52:47]written 0, free lines is 3297 [16:52:47]MH_Cut [16:52:47]Write to MH i2c: D1 01 00 92 1C 01 80 [16:52:47]Write i2c OK [16:52:47]MH_I2C_Read... [16:52:47]Read from MH i2c: D1 [16:52:47]MH_I2C_Read... [16:52:47]Read from MH i2c: D1 01 00 [16:52:47]MH_I2C_Read... [16:52:47]Read from MH i2c: D1 01 00 92 1C 00 7F [16:52:47]Write to MH i2c: 01 00 00 93 1C AF [16:52:47]Write i2c OK [16:52:47]MH_I2C_Read... [16:52: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 37 36 4F 00 00 00 84 BC 47 00 55 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 20 02 00 F4 03 04 00 F4 1E C3 66 B6 04 01 00 00 28 79 C2 9A DD 79 74 5E [16:52:47]CommunicateWithHost err = 0 [16:52:47]CheckOFDResponse [16:52:47]1017 (14) - 77093643461234 [16:52:47]1041 (16) - 0000000000871776 [16:52:47]1040 (4) - 139403 [16:52:47]1012 (4) - 19.08.2024 10:31 [16:52:47]1206 (1) - 0 [16:52:47]OFD Sender: Remove packet 139403 [16:52:47]ProducePacketName [16:52:47]name=ofd_packets/00139403 [16:52:47]NVStorageDeleteData [16:52:47]OFD Sender: No OFD packet to send [16:52:48]*** Cut start [16:52:48]*** Partial cut [16:52:48]*** CUTSNS_PIN = 1 [16:52:48]*** CUTSNS_PIN = 0 [16:52:48]*** Brake cut motor [16:52:48]Read from MH i2c: 01 [16:52:48]MH_I2C_Read... [16:52:48]*** Stop cut motor [16:52:48]*** Cut end [16:52:48]Read from MH i2c: 01 07 00 [16:52:48]MH_I2C_Read... [16:52:48]Read from MH i2c: 01 07 00 93 1C 00 00 00 00 00 FF 0F C4 [16:52:48]process_action close_receipt done [16:52:48]requested_data is exist [16:52:48]produce_requested_data [16:52:48]requested_item fm.sn is exist - process it [16:52:48]wFMCommunicate request_size=4 [16:52:48]MH_SAM_APDU [16:52:48]CAPDU: 80 11 00 00 [16:52:48]Write to MH i2c: E2 08 00 94 1C 80 11 00 00 00 00 00 00 2A [16:52:48]Write i2c OK [16:52:48]MH_I2C_Read... [16:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:48]Read from MH i2c: E2 [16:52:48]MH_I2C_Read... [16:52:48]Read from MH i2c: E2 17 00 [16:52:48]MH_I2C_Read... [16:52:48]Read from MH i2c: E2 17 00 94 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [16:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:52:48]wFMCommunicate OK [16:52:48]requested_item fd.num is exist - process it [16:52:48]SAM_PROTO_GetFieldsCounters [16:52:48]wFMCommunicate request_size=4 [16:52:48]MH_SAM_APDU [16:52:48]CAPDU: 80 13 00 00 [16:52:48]Write to MH i2c: E2 08 00 95 1C 80 13 00 00 00 00 00 00 2D [16:52:48]Write i2c OK [16:52:48]MH_I2C_Read... [16:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:48]Read from MH i2c: E2 [16:52:48]MH_I2C_Read... [16:52:48]Read from MH i2c: E2 62 00 [16:52:48]MH_I2C_Read... [16:52:48]Read from MH i2c: E2 62 00 95 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [16:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:48]wFMCommunicate OK [16:52:48]SAM_PROTO_GetFieldsCounters done [16:52:48]requested_item shift.num is exist - process it [16:52:48]requested_item shift.opened is exist - process it [16:52:48]req_shift_opened [16:52:48]FM_GetShiftState [16:52:48]SAM_PROTO_GetShiftState [16:52:48]wFMCommunicate request_size=4 [16:52:48]MH_SAM_APDU [16:52:48]CAPDU: 80 13 01 00 [16:52:48]Write to MH i2c: E2 08 00 96 1C 80 13 01 00 00 00 00 00 2F [16:52:48]Write i2c OK [16:52:48]MH_I2C_Read... [16:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:48]Read from MH i2c: E2 [16:52:48]MH_I2C_Read... [16:52:48]Read from MH i2c: E2 0E 00 [16:52:48]MH_I2C_Read... [16:52:48]Read from MH i2c: E2 0E 00 96 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E6 [16:52:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:52:48]wFMCommunicate OK [16:52:48]SAM_PROTO_GetShiftState done [16:52:48]FM_GetShiftState done [16:52:48]req_shift_opened done [16:52:48]requested_item shift.open_date is exist - process it [16:52:48]req_shift_open_date [16:52:48]req_shift_open_date done [16:52:48]produce_requested_data done [16:52:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139403,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:52:48]process_action_free close_receipt [16:52:48]json_value_free [16:52:48]json_value_free done [16:52:48]process_json_proto returns [16:52:48]Send response to host [16:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139403,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:52:48]free response buf [16:52:48]execute_script done [16:52:48]execute_script returns [16:52:48]free content buf [16:52:48]Sock 8.Close socket [16:52:48]Sock 8.Thread stoped [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]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:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:22]accept exits with 9 [16:58:22]New connection [16:58:22]New thread 3066674532 created [16:58:22]Thread 3066817892 joined [16:58:22]Waiting for new connection... [16:58:22] Sock 9.Parse request [16:58:22]Sock 9.Check first char [16:58:22]Sock 9.First char is OK [16:58:22]request: POST /json_proto HTTP/1.0 [16:58:22]Method: POST [16:58:22]URL: /json_proto [16:58:22]Method is POST - this is cgi request [16:58:22]url: /json_proto [16:58:22]query_string will be loaded in cgi processing [16:58:22]execute_cgi json_proto POST (null) [16:58:22]execute_cgi path=json_proto method=POST [16:58:22]POST find Content-Length [16:58:22]Host: 172.17.45.67:8080 [16:58:22]Content-Length: 678 [16:58:22]Content-Type: application/json [16:58:22] [16:58:22]POST finish read [16:58:22]Found Content-Length = 678 [16:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:58:22]execute_script... [16:58: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)593246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:58:22]POST & json_proto [16:58:22]process_json_proto [16:58:22]json parsed OK: [16:58:22]protocol is kg_v1.0 [16:58:22]action value=close_receipt [16:58:22]process_action close_receipt [16:58:22]cmd_close_receipt [16:58:22]MH_GetDate [16:58:22]Write to MH i2c: F0 00 00 97 1C A2 [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: F0 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: F0 09 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: F0 09 00 97 1C 00 AF 79 C3 66 5F 7F 2B 66 6B [16:58:22]GetLastDocTimeStamp 1724086366 [16:58:22]current date 1724086703 [16:58:22]FM_GetShiftState [16:58:22]SAM_PROTO_GetShiftState [16:58:22]wFMCommunicate request_size=4 [16:58:22]MH_SAM_APDU [16:58:22]CAPDU: 80 13 01 00 [16:58:22]Write to MH i2c: E2 08 00 98 1C 80 13 01 00 00 00 00 00 31 [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 0E 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 0E 00 98 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E8 [16:58:22]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:58:22]wFMCommunicate OK [16:58:22]SAM_PROTO_GetShiftState done [16:58:22]FM_GetShiftState done [16:58:22]opened in 1724027888 [16:58:22]opened+sec_in_day 1724114288 [16:58:22]quantity*price = 70037 [16:58:22]sum+1 = 70038 [16:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 239 19.08.2024 16:58 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139404 ФПД: 45023876624097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165823&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139404&fm=45023876624097&tin=02508201610067®Number=0000000000092569&sum=70000 [16:58:23]StoreToDocumentArchive [16:58:23]shift 452 fd 139404 [16:58:23]save to /storage/0452/doc_00139404 [16:58:23]save last doc name /storage/0452/doc_00139404 to /storage/kkm_last_doc_name [16:58:23]save OK [16:58:23]Clear old archive folders... [16:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:23]tlvbuf is B6D87010 [16:58:23]SAM_PROTO_ClearQueue [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 09 00 00 [16:58:23]Write to MH i2c: E2 08 00 A5 1C 80 09 00 00 00 00 00 00 33 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 03 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [16:58:23]RAPDU: 90 00 [16:58:23]wFMCommunicate OK [16:58:23]SAM_PROTO_ClearQueue done [16:58:23]KKMCreateOFDPacket [16:58:23]OFDProtocolAddRootSTLVToBuf [16:58:23]FM_MakeSignedData [16:58:23]FM_MakeSignedData [16:58:23]SAM_PROTO_SignData [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 0D 01 02 [16:58:23]Write to MH i2c: E2 08 00 A6 1C 80 0D 01 02 00 00 00 00 3B [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 03 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 03 00 A6 1C 00 90 00 36 [16:58:23]RAPDU: 90 00 [16:58:23]wFMCommunicate OK [16:58:23]wFMCommunicate request_size=255 [16:58:23]MH_SAM_APDU [16:58: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 EF 00 00 00 F4 03 04 00 AF 79 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 20 02 00 35 04 06 00 28 [16:58:23]Write to MH i2c: E2 02 01 A7 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 EF 00 00 00 F4 03 04 00 AF 79 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 20 02 00 35 04 06 00 28 00 00 86 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]OFD Sender: No OFD packet to send [16:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 03 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 03 00 A7 1C 00 90 00 37 [16:58:23]RAPDU: 90 00 [16:58:23]wFMCommunicate OK [16:58:23]wFMCommunicate request_size=10 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 0D 02 02 05 F2 F0 2C 2E E1 [16:58:23]Write to MH i2c: E2 0D 00 A8 1C 80 0D 02 02 05 00 F2 F0 2C 2E E1 00 00 65 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 03 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 03 00 A8 1C 00 90 00 38 [16:58:23]RAPDU: 90 00 [16:58:23]wFMCommunicate OK [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 0D 03 02 [16:58:23]Write to MH i2c: E2 08 00 A9 1C 80 0D 03 02 00 00 00 00 40 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 0B 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 0B 00 A9 1C 00 AD B0 37 E8 B7 E3 E9 FD 90 00 3D [16:58:23]RAPDU: AD B0 37 E8 B7 E3 E9 FD 90 00 [16:58:23]wFMCommunicate OK [16:58:23]SAM_PROTO_SignData done [16:58:23]FM_MakeSignedData done [16:58:23]CreateOFDProtocolMessage [16:58:23]wFMCommunicate request_size=4 [16:58:23]MH_SAM_APDU [16:58:23]CAPDU: 80 11 00 00 [16:58:23]Write to MH i2c: E2 08 00 AA 1C 80 11 00 00 00 00 00 00 40 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:23]Read from MH i2c: E2 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 17 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: E2 17 00 AA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [16:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:58:23]wFMCommunicate OK [16:58:23]CreateOFDProtocolMessage done [16:58:23]OFDSenderStorePacket 139404 [16:58:23]StoreOFDPacket docnum=139404 [16:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4C DB 07 01 17 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 EF 00 00 00 F4 03 04 00 AF 79 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 20 02 00 35 04 06 00 28 F2 F0 2C 2E E1 AD B0 37 E8 B7 E3 E9 FD [16:58:23]CheckFolder [16:58:23]dirname=/storage/ofd_packets [16:58:23]CheckFolder done [16:58:23]ProducePacketName [16:58:23]name=ofd_packets/00139404 [16:58:23]NVStorageSaveData ofd_packets/00139404 [16:58:23]File name is /storage/ofd_packets/00139404 [16:58:23]Write 301 bytes [16:58:23]NVStorageSaveData done [16:58:23]OFDSenderStorePacket done [16:58:23]KKMCreateOFDPacket done [16:58:23]NVStorageSaveData kkm_last_timestamp [16:58:23]File name is /storage/kkm_last_timestamp [16:58:23]Write 4 bytes [16:58:23]NVStorageSaveData done [16:58:23]ExternCall_PrintAddStr [16:58:23]wPrintStart [16:58:23]Write to MH i2c: 01 00 00 AB 1C C7 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: 01 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: 01 07 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: 01 07 00 AB 1C 00 00 00 00 00 FF 0F DC [16:58:23]RasterBufferAndPrint [16:58:23]line Счет N : (1)593246 [16:58:23]line ИНН: 02508201610067 [16:58:23]line Контрольно-Кассовый Чек [16:58:23]line ПРОДАЖА [16:58:23]line ТРК (МРК, ГНК) : 52 [16:58:23]line Товар: 2710124130 [16:58:23]line Аи-92-К-5 [16:58:23]line 10.330 * 67.80 [16:58:23]line = 700.37 [16:58:23]line НДС 12% НСП 1% [16:58:23]line > о реализуемом товаре [16:58:23]line ОКРУГЛЕНИЕ: -0.37 [16:58:23]line ИТОГО: 700.00 [16:58:23]line Внесено: 700.00 [16:58:23]line СДАЧА: 0.00 [16:58:23]line НСП 1% : 6.20 [16:58:23]line НДС 12% : 74.38 [16:58:23]line Наличными: 700.00 [16:58:23]line Безнал.: 0.00 [16:58:23]line Место: АЗС № 136 "Партнер Нефть" [16:58:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:58:23]line СНО: Общий режим [16:58:23]line Чек 239 19.08.2024 16:58 [16:58:23]line Смена: 452 ФФД: 1.0 [16:58:23]line ЗНМ: 0300000067 [16:58:23]line РНМ: 0000000000092569 [16:58:23]line Версия ККМ: 001 [16:58:23]line ФМ: 0000000000871776 [16:58:23]line ФД: 139404 [16:58:23]line ФПД: 45023876624097 [16:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165823&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139404&fm=45023876624097&tin=02508201610067®Number=0000000000092569&sum=70000 [16:58:23]written 0, free lines is 4095 [16:58:23]OFD Sender: Processing packet 139404 [packets to send 137, broken 136] [16:58:23]ProducePacketName [16:58:23]name=ofd_packets/00139404 [16:58:23]OFD Sender: To server: pG, [16:58:23]CommunicateWithHost lk.salyk.kg:30040 [16:58:23]ConnectInit lk.salyk.kg [16:58:23]Connected sock=10 [16:58: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 37 36 0F 01 00 00 4C DB 07 01 17 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 EF 00 00 00 F4 03 04 00 AF 79 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 20 02 00 35 04 06 00 28 F2 F0 2C 2E E1 AD B0 37 E8 B7 E3 E9 FD [16:58: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 37 36 4F 00 00 00 4C 1B 47 00 A5 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 37 36 10 04 04 00 8C 20 02 00 F4 03 04 00 44 20 C3 66 B6 04 01 00 00 13 F4 07 FE B2 FF 6A 95 [16:58:24]CommunicateWithHost err = 0 [16:58:24]CheckOFDResponse [16:58:24]1017 (14) - 77093643461234 [16:58:24]1041 (16) - 0000000000871776 [16:58:24]1040 (4) - 139404 [16:58:24]1012 (4) - 19.08.2024 10:36 [16:58:24]1206 (1) - 0 [16:58:24]OFD Sender: Remove packet 139404 [16:58:24]ProducePacketName [16:58:24]name=ofd_packets/00139404 [16:58:24]NVStorageDeleteData [16:58:24]Write to MH i2c: 01 00 00 D6 1C F2 [16:58:24]Write i2c OK [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: 01 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: 01 07 00 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: 01 07 00 D6 1C 00 00 00 00 00 DD 0C E2 [16:58:24]RasterBufferAndPrint [16:58:24]line [16:58:24]line [16:58:24]line [16:58:24]line [16:58:24]line [16:58:24]written 0, free lines is 3299 [16:58:24]MH_Cut [16:58:24]Write to MH i2c: D1 01 00 DD 1C 01 CB [16:58:24]Write i2c OK [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: D1 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: D1 01 00 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: D1 01 00 DD 1C 00 CA [16:58:24]Write to MH i2c: 01 00 00 DE 1C FA [16:58:24]Write i2c OK [16:58:24]MH_I2C_Read... [16:58:24]OFD Sender: No OFD packet to send [16:58:24]*** Cut start [16:58:24]*** Partial cut [16:58:24]*** CUTSNS_PIN = 1 [16:58:24]*** CUTSNS_PIN = 0 [16:58:25]*** Brake cut motor [16:58:25]Read from MH i2c: 01 [16:58:25]MH_I2C_Read... [16:58:25]*** Stop cut motor [16:58:25]*** Cut end [16:58:25]Read from MH i2c: 01 07 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: 01 07 00 DE 1C 00 00 00 00 00 FF 0F 0F [16:58:25]process_action close_receipt done [16:58:25]requested_data is exist [16:58:25]produce_requested_data [16:58:25]requested_item fm.sn is exist - process it [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 11 00 00 [16:58:25]Write to MH i2c: E2 08 00 DF 1C 80 11 00 00 00 00 00 00 75 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 17 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 17 00 DF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [16:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:58:25]wFMCommunicate OK [16:58:25]requested_item fd.num is exist - process it [16:58:25]SAM_PROTO_GetFieldsCounters [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 13 00 00 [16:58:25]Write to MH i2c: E2 08 00 E0 1C 80 13 00 00 00 00 00 00 78 [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 62 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 62 00 E0 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [16:58: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:25]wFMCommunicate OK [16:58:25]SAM_PROTO_GetFieldsCounters done [16:58:25]requested_item shift.num is exist - process it [16:58:25]requested_item shift.opened is exist - process it [16:58:25]req_shift_opened [16:58:25]FM_GetShiftState [16:58:25]SAM_PROTO_GetShiftState [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 13 01 00 [16:58:25]Write to MH i2c: E2 08 00 E1 1C 80 13 01 00 00 00 00 00 7A [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 0E 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 0E 00 E1 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 31 [16:58:25]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [16:58:25]wFMCommunicate OK [16:58:25]SAM_PROTO_GetShiftState done [16:58:25]FM_GetShiftState done [16:58:25]req_shift_opened done [16:58:25]requested_item shift.open_date is exist - process it [16:58:25]req_shift_open_date [16:58:25]req_shift_open_date done [16:58:25]produce_requested_data done [16:58:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139404,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [16:58:25]process_action_free close_receipt [16:58:25]json_value_free [16:58:25]json_value_free done [16:58:25]process_json_proto returns [16:58:25]Send response to host [16:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139404,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [16:58:25]free response buf [16:58:25]execute_script done [16:58:25]execute_script returns [16:58:25]free content buf [16:58:25]Sock 9.Close socket [16:58:25]Sock 9.Thread stoped [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:03]accept exits with 8 [17:07:03]New connection [17:07:03]New thread 3066817892 created [17:07:03]Thread 3066674532 joined [17:07:03]Waiting for new connection... [17:07:03] Sock 8.Parse request [17:07:03]Sock 8.Check first char [17:07:03]Sock 8.First char is OK [17:07:03]request: POST /json_proto HTTP/1.0 [17:07:03]Method: POST [17:07:03]URL: /json_proto [17:07:03]Method is POST - this is cgi request [17:07:03]url: /json_proto [17:07:03]query_string will be loaded in cgi processing [17:07:03]execute_cgi json_proto POST (null) [17:07:03]execute_cgi path=json_proto method=POST [17:07:03]POST find Content-Length [17:07:03]Host: 172.17.45.67:8080 [17:07:03]Content-Length: 677 [17:07:03]Content-Type: application/json [17:07:03] [17:07:03]POST finish read [17:07:03]Found Content-Length = 677 [17:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:07:03]execute_script... [17:07: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)593247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:07:03]POST & json_proto [17:07:03]process_json_proto [17:07:03]json parsed OK: [17:07:03]protocol is kg_v1.0 [17:07:03]action value=close_receipt [17:07:03]process_action close_receipt [17:07:03]cmd_close_receipt [17:07:03]MH_GetDate [17:07:03]Write to MH i2c: F0 00 00 E2 1C ED [17:07:03]Write i2c OK [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: F0 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: F0 09 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: F0 09 00 E2 1C 00 B9 7B C3 66 5F 7F 2B 66 C2 [17:07:03]GetLastDocTimeStamp 1724086703 [17:07:03]current date 1724087225 [17:07:03]FM_GetShiftState [17:07:03]SAM_PROTO_GetShiftState [17:07:03]wFMCommunicate request_size=4 [17:07:03]MH_SAM_APDU [17:07:03]CAPDU: 80 13 01 00 [17:07:03]Write to MH i2c: E2 08 00 E3 1C 80 13 01 00 00 00 00 00 7C [17:07:03]Write i2c OK [17:07:03]MH_I2C_Read... [17:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:03]Read from MH i2c: E2 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 0E 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 0E 00 E3 1C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 33 [17:07:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:07:03]wFMCommunicate OK [17:07:03]SAM_PROTO_GetShiftState done [17:07:03]FM_GetShiftState done [17:07:03]opened in 1724027888 [17:07:03]opened+sec_in_day 1724114288 [17:07:03]quantity*price = 50036 [17:07:03]sum+1 = 50037 [17:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 240 19.08.2024 17:07 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139405 ФПД: 240443616556699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139405&fm=240443616556699&tin=02508201610067®Number=0000000000092569&sum=50000 [17:07:04]StoreToDocumentArchive [17:07:04]shift 452 fd 139405 [17:07:04]save to /storage/0452/doc_00139405 [17:07:04]save last doc name /storage/0452/doc_00139405 to /storage/kkm_last_doc_name [17:07:04]save OK [17:07:04]Clear old archive folders... [17:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:04]tlvbuf is 01239E30 [17:07:04]SAM_PROTO_ClearQueue [17:07:04]wFMCommunicate request_size=4 [17:07:04]MH_SAM_APDU [17:07:04]CAPDU: 80 09 00 00 [17:07:04]Write to MH i2c: E2 08 00 F0 1C 80 09 00 00 00 00 00 00 7E [17:07:04]Write i2c OK [17:07:04]MH_I2C_Read... [17:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:04]Read from MH i2c: E2 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 F0 1C 00 90 00 80 [17:07:04]RAPDU: 90 00 [17:07:04]wFMCommunicate OK [17:07:04]SAM_PROTO_ClearQueue done [17:07:04]KKMCreateOFDPacket [17:07:04]OFDProtocolAddRootSTLVToBuf [17:07:04]FM_MakeSignedData [17:07:04]FM_MakeSignedData [17:07:04]SAM_PROTO_SignData [17:07:04]wFMCommunicate request_size=4 [17:07:04]MH_SAM_APDU [17:07:04]CAPDU: 80 0D 01 02 [17:07:04]Write to MH i2c: E2 08 00 F1 1C 80 0D 01 02 00 00 00 00 86 [17:07:04]Write i2c OK [17:07:04]MH_I2C_Read... [17:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:04]Read from MH i2c: E2 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 [17:07:04]MH_I2C_Read... [17:07:04]Read from MH i2c: E2 03 00 F1 1C 00 90 00 81 [17:07:04]RAPDU: 90 00 [17:07:04]wFMCommunicate OK [17:07:04]wFMCommunicate request_size=255 [17:07:04]MH_SAM_APDU [17:07:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 F0 00 00 00 F4 03 04 00 B9 7B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 20 02 00 35 04 06 00 DA [17:07:04]Write to MH i2c: E2 02 01 F2 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 F0 00 00 00 F4 03 04 00 B9 7B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 20 02 00 35 04 06 00 DA 00 00 AA [17:07:04]Write i2c OK [17:07:04]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 F2 1C 00 90 00 82 [17:07:05]RAPDU: 90 00 [17:07:05]wFMCommunicate OK [17:07:05]wFMCommunicate request_size=10 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 0D 02 02 05 AE A4 5A 76 9B [17:07:05]Write to MH i2c: E2 0D 00 F3 1C 80 0D 02 02 05 00 AE A4 5A 76 9B 00 00 50 [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 03 00 F3 1C 00 90 00 83 [17:07:05]RAPDU: 90 00 [17:07:05]wFMCommunicate OK [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 0D 03 02 [17:07:05]Write to MH i2c: E2 08 00 F4 1C 80 0D 03 02 00 00 00 00 8B [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0B 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0B 00 F4 1C 00 68 59 6D F4 57 95 42 5C 90 00 38 [17:07:05]RAPDU: 68 59 6D F4 57 95 42 5C 90 00 [17:07:05]wFMCommunicate OK [17:07:05]SAM_PROTO_SignData done [17:07:05]FM_MakeSignedData done [17:07:05]CreateOFDProtocolMessage [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 11 00 00 [17:07:05]Write to MH i2c: E2 08 00 F5 1C 80 11 00 00 00 00 00 00 8B [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 17 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 17 00 F5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [17:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:07:05]wFMCommunicate OK [17:07:05]CreateOFDProtocolMessage done [17:07:05]OFDSenderStorePacket 139405 [17:07:05]StoreOFDPacket docnum=139405 [17:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E3 3C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 F0 00 00 00 F4 03 04 00 B9 7B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 20 02 00 35 04 06 00 DA AE A4 5A 76 9B 68 59 6D F4 57 95 42 5C [17:07:05]CheckFolder [17:07:05]dirname=/storage/ofd_packets [17:07:05]CheckFolder done [17:07:05]ProducePacketName [17:07:05]name=ofd_packets/00139405 [17:07:05]NVStorageSaveData ofd_packets/00139405 [17:07:05]File name is /storage/ofd_packets/00139405 [17:07:05]Write 301 bytes [17:07:05]NVStorageSaveData done [17:07:05]OFDSenderStorePacket done [17:07:05]KKMCreateOFDPacket done [17:07:05]NVStorageSaveData kkm_last_timestamp [17:07:05]File name is /storage/kkm_last_timestamp [17:07:05]Write 4 bytes [17:07:05]NVStorageSaveData done [17:07:05]ExternCall_PrintAddStr [17:07:05]wPrintStart [17:07:05]Write to MH i2c: 01 00 00 F6 1C 12 [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 07 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 07 00 F6 1C 00 00 00 00 00 FF 0F 27 [17:07:05]RasterBufferAndPrint [17:07:05]line Счет N : (1)593247 [17:07:05]line ИНН: 02508201610067 [17:07:05]line Контрольно-Кассовый Чек [17:07:05]line ПРОДАЖА [17:07:05]line ТРК (МРК, ГНК) : 62 [17:07:05]line Товар: 2710124130 [17:07:05]line Аи-92-К-5 [17:07:05]line 7.380 * 67.80 [17:07:05]line = 500.36 [17:07:05]line НДС 12% НСП 1% [17:07:05]line > о реализуемом товаре [17:07:05]line ОКРУГЛЕНИЕ: -0.36 [17:07:05]line ИТОГО: 500.00 [17:07:05]line Внесено: 500.00 [17:07:05]line СДАЧА: 0.00 [17:07:05]line НСП 1% : 4.43 [17:07:05]line НДС 12% : 53.14 [17:07:05]line Наличными: 500.00 [17:07:05]line Безнал.: 0.00 [17:07:05]line Место: АЗС № 136 "Партнер Нефть" [17:07:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:07:05]line СНО: Общий режим [17:07:05]line Чек 240 19.08.2024 17:07 [17:07:05]line Смена: 452 ФФД: 1.0 [17:07:05]line ЗНМ: 0300000067 [17:07:05]line РНМ: 0000000000092569 [17:07:05]line Версия ККМ: 001 [17:07:05]line ФМ: 0000000000871776 [17:07:05]line ФД: 139405 [17:07:05]line ФПД: 240443616556699 [17:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139405&fm=240443616556699&tin=02508201610067®Number=0000000000092569&sum=50000 [17:07:05]written 0, free lines is 4095 [17:07:05]OFD Sender: Processing packet 139405 [packets to send 137, broken 136] [17:07:05]ProducePacketName [17:07:05]name=ofd_packets/00139405 [17:07:05]OFD Sender: To server: pG, [17:07:05]CommunicateWithHost lk.salyk.kg:30040 [17:07:05]ConnectInit lk.salyk.kg [17:07:06]Write to MH i2c: 01 00 00 21 1D 3E [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: 01 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: 01 07 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: 01 07 00 21 1D 00 00 00 00 00 D8 0C 29 [17:07:06]RasterBufferAndPrint [17:07:06]line [17:07:06]line [17:07:06]line [17:07:06]line [17:07:06]line [17:07:06]written 0, free lines is 3293 [17:07:06]MH_Cut [17:07:06]Write to MH i2c: D1 01 00 28 1D 01 17 [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: D1 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: D1 01 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: D1 01 00 28 1D 00 16 [17:07:06]Write to MH i2c: 01 00 00 29 1D 46 [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]*** Cut start [17:07:06]*** Partial cut [17:07:06]*** CUTSNS_PIN = 1 [17:07:06]*** CUTSNS_PIN = 0 [17:07:07]*** Brake cut motor [17:07:07]Read from MH i2c: 01 [17:07:07]MH_I2C_Read... [17:07:07]*** Stop cut motor [17:07:07]*** Cut end [17:07:07]Read from MH i2c: 01 07 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: 01 07 00 29 1D 00 00 00 00 00 FF 0F 5B [17:07:07]process_action close_receipt done [17:07:07]requested_data is exist [17:07:07]produce_requested_data [17:07:07]requested_item fm.sn is exist - process it [17:07:07]wFMCommunicate request_size=4 [17:07:07]MH_SAM_APDU [17:07:07]CAPDU: 80 11 00 00 [17:07:07]Write to MH i2c: E2 08 00 2A 1D 80 11 00 00 00 00 00 00 C1 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:07]Read from MH i2c: E2 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 17 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 17 00 2A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [17:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:07:07]wFMCommunicate OK [17:07:07]requested_item fd.num is exist - process it [17:07:07]SAM_PROTO_GetFieldsCounters [17:07:07]wFMCommunicate request_size=4 [17:07:07]MH_SAM_APDU [17:07:07]CAPDU: 80 13 00 00 [17:07:07]Write to MH i2c: E2 08 00 2B 1D 80 13 00 00 00 00 00 00 C4 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:07]Read from MH i2c: E2 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 62 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 62 00 2B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [17:07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:07]wFMCommunicate OK [17:07:07]SAM_PROTO_GetFieldsCounters done [17:07:07]requested_item shift.num is exist - process it [17:07:07]requested_item shift.opened is exist - process it [17:07:07]req_shift_opened [17:07:07]FM_GetShiftState [17:07:07]SAM_PROTO_GetShiftState [17:07:07]wFMCommunicate request_size=4 [17:07:07]MH_SAM_APDU [17:07:07]CAPDU: 80 13 01 00 [17:07:07]Write to MH i2c: E2 08 00 2C 1D 80 13 01 00 00 00 00 00 C6 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:07]Read from MH i2c: E2 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 0E 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 0E 00 2C 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7D [17:07:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:07:07]wFMCommunicate OK [17:07:07]SAM_PROTO_GetShiftState done [17:07:07]FM_GetShiftState done [17:07:07]req_shift_opened done [17:07:07]requested_item shift.open_date is exist - process it [17:07:07]req_shift_open_date [17:07:07]req_shift_open_date done [17:07:07]produce_requested_data done [17:07:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139405,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:07:07]process_action_free close_receipt [17:07:07]json_value_free [17:07:07]json_value_free done [17:07:07]process_json_proto returns [17:07:07]Send response to host [17:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139405,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:07:07]free response buf [17:07:07]execute_script done [17:07:07]execute_script returns [17:07:07]free content buf [17:07:07]Sock 8.Close socket [17:07:07]Sock 8.Thread stoped [17:07:12]accept exits with 9 [17:07:12]New connection [17:07:12]New thread 3066674532 created [17:07:12]Thread 3066817892 joined [17:07:12]Waiting for new connection... [17:07:12] Sock 9.Parse request [17:07:12]Sock 9.Check first char [17:07:12]Sock 9.First char is OK [17:07:12]request: POST /json_proto HTTP/1.0 [17:07:12]Method: POST [17:07:12]URL: /json_proto [17:07:12]Method is POST - this is cgi request [17:07:12]url: /json_proto [17:07:12]query_string will be loaded in cgi processing [17:07:12]execute_cgi json_proto POST (null) [17:07:12]execute_cgi path=json_proto method=POST [17:07:12]POST find Content-Length [17:07:12]Host: 172.17.45.67:8080 [17:07:12]Content-Length: 677 [17:07:12]Content-Type: application/json [17:07:12] [17:07:12]POST finish read [17:07:12]Found Content-Length = 677 [17:07:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:12]execute_script... [17:07: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)593248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:12]POST & json_proto [17:07:12]process_json_proto [17:07:12]json parsed OK: [17:07:12]protocol is kg_v1.0 [17:07:12]action value=close_receipt [17:07:12]process_action close_receipt [17:07:12]cmd_close_receipt [17:07:12]MH_GetDate [17:07:12]Write to MH i2c: F0 00 00 2D 1D 39 [17:07:12]Write i2c OK [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: F0 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: F0 09 00 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: F0 09 00 2D 1D 00 C1 7B C3 66 5F 7F 2B 66 16 [17:07:12]GetLastDocTimeStamp 1724087225 [17:07:12]current date 1724087233 [17:07:12]FM_GetShiftState [17:07:12]SAM_PROTO_GetShiftState [17:07:12]wFMCommunicate request_size=4 [17:07:12]MH_SAM_APDU [17:07:12]CAPDU: 80 13 01 00 [17:07:12]Write to MH i2c: E2 08 00 2E 1D 80 13 01 00 00 00 00 00 C8 [17:07:12]Write i2c OK [17:07:12]MH_I2C_Read... [17:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:12]Read from MH i2c: E2 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: E2 0E 00 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: E2 0E 00 2E 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7F [17:07:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:07:12]wFMCommunicate OK [17:07:12]SAM_PROTO_GetShiftState done [17:07:12]FM_GetShiftState done [17:07:12]opened in 1724027888 [17:07:12]opened+sec_in_day 1724114288 [17:07:12]quantity*price = 30035 [17:07:12]sum+1 = 30036 [17:07:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 241 19.08.2024 17:07 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139406 ФПД: 138011125123106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170713&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139406&fm=138011125123106&tin=02508201610067®Number=0000000000092569&sum=30000 [17:07:13]StoreToDocumentArchive [17:07:13]shift 452 fd 139406 [17:07:13]save to /storage/0452/doc_00139406 [17:07:13]save last doc name /storage/0452/doc_00139406 to /storage/kkm_last_doc_name [17:07:13]save OK [17:07:13]Clear old archive folders... [17:07:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:13]tlvbuf is 012978F0 [17:07:13]SAM_PROTO_ClearQueue [17:07:13]wFMCommunicate request_size=4 [17:07:13]MH_SAM_APDU [17:07:13]CAPDU: 80 09 00 00 [17:07:13]Write to MH i2c: E2 08 00 3B 1D 80 09 00 00 00 00 00 00 CA [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:13]Read from MH i2c: E2 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 03 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 03 00 3B 1D 00 90 00 CC [17:07:13]RAPDU: 90 00 [17:07:13]wFMCommunicate OK [17:07:13]SAM_PROTO_ClearQueue done [17:07:13]KKMCreateOFDPacket [17:07:13]OFDProtocolAddRootSTLVToBuf [17:07:13]FM_MakeSignedData [17:07:13]FM_MakeSignedData [17:07:13]SAM_PROTO_SignData [17:07:13]wFMCommunicate request_size=4 [17:07:13]MH_SAM_APDU [17:07:13]CAPDU: 80 0D 01 02 [17:07:13]Write to MH i2c: E2 08 00 3C 1D 80 0D 01 02 00 00 00 00 D2 [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:13]Read from MH i2c: E2 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 03 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 03 00 3C 1D 00 90 00 CD [17:07:13]RAPDU: 90 00 [17:07:13]wFMCommunicate OK [17:07:13]wFMCommunicate request_size=255 [17:07:13]MH_SAM_APDU [17:07: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 C1 7B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 20 02 00 35 04 06 00 7D [17:07:13]Write to MH i2c: E2 02 01 3D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 C1 7B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 20 02 00 35 04 06 00 7D 00 00 C2 [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:13]Read from MH i2c: E2 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 03 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 03 00 3D 1D 00 90 00 CE [17:07:13]RAPDU: 90 00 [17:07:13]wFMCommunicate OK [17:07:13]wFMCommunicate request_size=10 [17:07:13]MH_SAM_APDU [17:07:13]CAPDU: 80 0D 02 02 05 85 38 16 88 22 [17:07:13]Write to MH i2c: E2 0D 00 3E 1D 80 0D 02 02 05 00 85 38 16 88 22 00 00 5C [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:13]Read from MH i2c: E2 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 03 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 03 00 3E 1D 00 90 00 CF [17:07:13]RAPDU: 90 00 [17:07:13]wFMCommunicate OK [17:07:13]wFMCommunicate request_size=4 [17:07:13]MH_SAM_APDU [17:07:13]CAPDU: 80 0D 03 02 [17:07:13]Write to MH i2c: E2 08 00 3F 1D 80 0D 03 02 00 00 00 00 D7 [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:13]Read from MH i2c: E2 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 0B 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 0B 00 3F 1D 00 9C B4 7E FC 9E 2A 44 6E 90 00 1C [17:07:13]RAPDU: 9C B4 7E FC 9E 2A 44 6E 90 00 [17:07:13]wFMCommunicate OK [17:07:13]SAM_PROTO_SignData done [17:07:13]FM_MakeSignedData done [17:07:13]CreateOFDProtocolMessage [17:07:13]wFMCommunicate request_size=4 [17:07:13]MH_SAM_APDU [17:07:13]CAPDU: 80 11 00 00 [17:07:13]Write to MH i2c: E2 08 00 40 1D 80 11 00 00 00 00 00 00 D7 [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:13]Read from MH i2c: E2 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 17 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 17 00 40 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [17:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:07:13]wFMCommunicate OK [17:07:13]CreateOFDProtocolMessage done [17:07:13]OFDSenderStorePacket 139406 [17:07:13]StoreOFDPacket docnum=139406 [17:07:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 49 C3 07 01 3B 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 C1 7B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 20 02 00 35 04 06 00 7D 85 38 16 88 22 9C B4 7E FC 9E 2A 44 6E [17:07:13]CheckFolder [17:07:13]dirname=/storage/ofd_packets [17:07:13]CheckFolder done [17:07:13]ProducePacketName [17:07:13]name=ofd_packets/00139406 [17:07:13]NVStorageSaveData ofd_packets/00139406 [17:07:13]File name is /storage/ofd_packets/00139406 [17:07:13]Write 301 bytes [17:07:13]NVStorageSaveData done [17:07:13]OFDSenderStorePacket done [17:07:13]KKMCreateOFDPacket done [17:07:13]NVStorageSaveData kkm_last_timestamp [17:07:13]File name is /storage/kkm_last_timestamp [17:07:13]Write 4 bytes [17:07:13]NVStorageSaveData done [17:07:13]ExternCall_PrintAddStr [17:07:13]wPrintStart [17:07:13]Write to MH i2c: 01 00 00 41 1D 5E [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: 01 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: 01 07 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: 01 07 00 41 1D 00 00 00 00 00 FF 0F 73 [17:07:13]RasterBufferAndPrint [17:07:13]line Счет N : (1)593248 [17:07:13]line ИНН: 02508201610067 [17:07:13]line Контрольно-Кассовый Чек [17:07:13]line ПРОДАЖА [17:07:13]line ТРК (МРК, ГНК) : 52 [17:07:13]line Товар: 2710124130 [17:07:13]line Аи-92-К-5 [17:07:13]line 4.430 * 67.80 [17:07:13]line = 300.35 [17:07:13]line НДС 12% НСП 1% [17:07:13]line > о реализуемом товаре [17:07:13]line ОКРУГЛЕНИЕ: -0.35 [17:07:13]line ИТОГО: 300.00 [17:07:13]line Внесено: 300.00 [17:07:13]line СДАЧА: 0.00 [17:07:13]line НСП 1% : 2.66 [17:07:13]line НДС 12% : 31.90 [17:07:13]line Наличными: 300.00 [17:07:13]line Безнал.: 0.00 [17:07:13]line Место: АЗС № 136 "Партнер Нефть" [17:07:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:07:13]line СНО: Общий режим [17:07:13]line Чек 241 19.08.2024 17:07 [17:07:13]line Смена: 452 ФФД: 1.0 [17:07:13]line ЗНМ: 0300000067 [17:07:13]line РНМ: 0000000000092569 [17:07:13]line Версия ККМ: 001 [17:07:13]line ФМ: 0000000000871776 [17:07:13]line ФД: 139406 [17:07:13]line ФПД: 138011125123106 [17:07:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170713&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139406&fm=138011125123106&tin=02508201610067®Number=0000000000092569&sum=30000 [17:07:13]written 0, free lines is 4095 [17:07:14]Write to MH i2c: 01 00 00 6C 1D 89 [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 07 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: 01 07 00 6C 1D 00 00 00 00 00 D4 0C 70 [17:07:14]RasterBufferAndPrint [17:07:14]line [17:07:14]line [17:07:14]line [17:07:14]line [17:07:14]line [17:07:14]written 0, free lines is 3292 [17:07:14]MH_Cut [17:07:14]Write to MH i2c: D1 01 00 73 1D 01 62 [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: D1 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: D1 01 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: D1 01 00 73 1D 00 61 [17:07:14]Write to MH i2c: 01 00 00 74 1D 91 [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]*** Cut start [17:07:14]*** Partial cut [17:07:14]*** CUTSNS_PIN = 1 [17:07:14]*** CUTSNS_PIN = 0 [17:07:15]*** Brake cut motor [17:07:15]Read from MH i2c: 01 [17:07:15]MH_I2C_Read... [17:07:15]*** Stop cut motor [17:07:15]*** Cut end [17:07:15]Read from MH i2c: 01 07 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: 01 07 00 74 1D 00 00 00 00 00 FF 0F A6 [17:07:15]process_action close_receipt done [17:07:15]requested_data is exist [17:07:15]produce_requested_data [17:07:15]requested_item fm.sn is exist - process it [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 11 00 00 [17:07:15]Write to MH i2c: E2 08 00 75 1D 80 11 00 00 00 00 00 00 0C [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 17 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 17 00 75 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [17:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:07:15]wFMCommunicate OK [17:07:15]requested_item fd.num is exist - process it [17:07:15]SAM_PROTO_GetFieldsCounters [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 13 00 00 [17:07:15]Write to MH i2c: E2 08 00 76 1D 80 13 00 00 00 00 00 00 0F [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 62 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 62 00 76 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [17:07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:15]wFMCommunicate OK [17:07:15]SAM_PROTO_GetFieldsCounters done [17:07:15]requested_item shift.num is exist - process it [17:07:15]requested_item shift.opened is exist - process it [17:07:15]req_shift_opened [17:07:15]FM_GetShiftState [17:07:15]SAM_PROTO_GetShiftState [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 13 01 00 [17:07:15]Write to MH i2c: E2 08 00 77 1D 80 13 01 00 00 00 00 00 11 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 0E 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 0E 00 77 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C8 [17:07:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:07:15]wFMCommunicate OK [17:07:15]SAM_PROTO_GetShiftState done [17:07:15]FM_GetShiftState done [17:07:15]req_shift_opened done [17:07:15]requested_item shift.open_date is exist - process it [17:07:15]req_shift_open_date [17:07:15]req_shift_open_date done [17:07:15]produce_requested_data done [17:07:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139406,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:07:15]process_action_free close_receipt [17:07:15]json_value_free [17:07:15]json_value_free done [17:07:15]process_json_proto returns [17:07:15]Send response to host [17:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139406,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:07:15]free response buf [17:07:15]execute_script done [17:07:15]execute_script returns [17:07:15]free content buf [17:07:15]Sock 9.Close socket [17:07:15]Sock 9.Thread stoped [17:09:17]ConnectInit Can't connect to host [17:09:17]CommunicateWithHost connect error [17:09:17]CommunicateWithHost err = -1 [17:09:17]OFD Sender: Server communicate error [17:09:17]OFD Sender: Processing packet 139405 [packets to send 138, broken 136] [17:09:17]ProducePacketName [17:09:17]name=ofd_packets/00139405 [17:09:17]OFD Sender: To server: pG, [17:09:17]CommunicateWithHost lk.salyk.kg:30040 [17:09:17]ConnectInit lk.salyk.kg [17:09:17]Connected sock=9 [17:09: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 37 36 0F 01 00 00 E3 3C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 F0 00 00 00 F4 03 04 00 B9 7B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 20 02 00 35 04 06 00 DA AE A4 5A 76 9B 68 59 6D F4 57 95 42 5C [17:09: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 37 36 4F 00 00 00 31 78 47 00 77 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 37 36 10 04 04 00 8D 20 02 00 F4 03 04 00 D2 22 C3 66 B6 04 01 00 00 1C 2C EA 00 04 C1 F5 83 [17:09:17]CommunicateWithHost err = 0 [17:09:17]CheckOFDResponse [17:09:17]1017 (14) - 77093643461234 [17:09:17]1041 (16) - 0000000000871776 [17:09:17]1040 (4) - 139405 [17:09:17]1012 (4) - 19.08.2024 10:47 [17:09:17]1206 (1) - 0 [17:09:17]OFD Sender: Remove packet 139405 [17:09:17]ProducePacketName [17:09:17]name=ofd_packets/00139405 [17:09:17]NVStorageDeleteData [17:09:18]OFD Sender: Processing packet 139406 [packets to send 137, broken 136] [17:09:18]ProducePacketName [17:09:18]name=ofd_packets/00139406 [17:09:18]OFD Sender: To server: pG, [17:09:18]CommunicateWithHost lk.salyk.kg:30040 [17:09:18]ConnectInit lk.salyk.kg [17:09:18]Connected sock=10 [17:09: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 37 36 0F 01 00 00 49 C3 07 01 3B 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 C1 7B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 20 02 00 35 04 06 00 7D 85 38 16 88 22 9C B4 7E FC 9E 2A 44 6E [17:09: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 37 36 4F 00 00 00 51 FC 47 00 C0 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 37 36 10 04 04 00 8E 20 02 00 F4 03 04 00 D3 22 C3 66 B6 04 01 00 00 C1 E7 58 68 03 C6 70 9D [17:09:18]CommunicateWithHost err = 0 [17:09:18]CheckOFDResponse [17:09:18]1017 (14) - 77093643461234 [17:09:18]1041 (16) - 0000000000871776 [17:09:18]1040 (4) - 139406 [17:09:18]1012 (4) - 19.08.2024 10:47 [17:09:18]1206 (1) - 0 [17:09:18]OFD Sender: Remove packet 139406 [17:09:18]ProducePacketName [17:09:18]name=ofd_packets/00139406 [17:09:18]NVStorageDeleteData [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:41]accept exits with 8 [17:10:41]New connection [17:10:41]New thread 3066817892 created [17:10:41]Thread 3066674532 joined [17:10:41]Waiting for new connection... [17:10:41] Sock 8.Parse request [17:10:41]Sock 8.Check first char [17:10:41]Sock 8.First char is OK [17:10:41]request: POST /json_proto HTTP/1.0 [17:10:41]Method: POST [17:10:41]URL: /json_proto [17:10:41]Method is POST - this is cgi request [17:10:41]url: /json_proto [17:10:41]query_string will be loaded in cgi processing [17:10:41]execute_cgi json_proto POST (null) [17:10:41]execute_cgi path=json_proto method=POST [17:10:41]POST find Content-Length [17:10:41]Host: 172.17.45.67:8080 [17:10:41]Content-Length: 687 [17:10:41]Content-Type: application/json [17:10:41] [17:10:41]POST finish read [17:10:41]Found Content-Length = 687 [17:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [17:10:41]execute_script... [17:10: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)593249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [17:10:41]POST & json_proto [17:10:41]process_json_proto [17:10:41]json parsed OK: [17:10:41]protocol is kg_v1.0 [17:10:41]action value=close_receipt [17:10:41]process_action close_receipt [17:10:41]cmd_close_receipt [17:10:41]MH_GetDate [17:10:41]Write to MH i2c: F0 00 00 78 1D 84 [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: F0 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: F0 09 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: F0 09 00 78 1D 00 92 7C C3 66 5F 7F 2B 66 33 [17:10:41]GetLastDocTimeStamp 1724087233 [17:10:41]current date 1724087442 [17:10:41]FM_GetShiftState [17:10:41]SAM_PROTO_GetShiftState [17:10:41]wFMCommunicate request_size=4 [17:10:41]MH_SAM_APDU [17:10:41]CAPDU: 80 13 01 00 [17:10:41]Write to MH i2c: E2 08 00 79 1D 80 13 01 00 00 00 00 00 13 [17:10:41]Write i2c OK [17:10:41]MH_I2C_Read... [17:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:41]Read from MH i2c: E2 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 0E 00 [17:10:41]MH_I2C_Read... [17:10:41]Read from MH i2c: E2 0E 00 79 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CA [17:10:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:10:41]wFMCommunicate OK [17:10:41]SAM_PROTO_GetShiftState done [17:10:41]FM_GetShiftState done [17:10:41]opened in 1724027888 [17:10:41]opened+sec_in_day 1724114288 [17:10:41]quantity*price = 250012 [17:10:41]sum+1 = 250013 [17:10:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 242 19.08.2024 17:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139407 ФПД: 96497656033779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171042&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139407&fm=96497656033779&tin=02508201610067®Number=0000000000092569&sum=250000 [17:10:42]StoreToDocumentArchive [17:10:42]shift 452 fd 139407 [17:10:42]save to /storage/0452/doc_00139407 [17:10:42]save last doc name /storage/0452/doc_00139407 to /storage/kkm_last_doc_name [17:10:42]save OK [17:10:42]Clear old archive folders... [17:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:10:42]tlvbuf is 012BACC0 [17:10:42]SAM_PROTO_ClearQueue [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 09 00 00 [17:10:42]Write to MH i2c: E2 08 00 86 1D 80 09 00 00 00 00 00 00 15 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 03 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 03 00 86 1D 00 90 00 17 [17:10:42]RAPDU: 90 00 [17:10:42]wFMCommunicate OK [17:10:42]SAM_PROTO_ClearQueue done [17:10:42]KKMCreateOFDPacket [17:10:42]OFDProtocolAddRootSTLVToBuf [17:10:42]FM_MakeSignedData [17:10:42]FM_MakeSignedData [17:10:42]SAM_PROTO_SignData [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 0D 01 02 [17:10:42]Write to MH i2c: E2 08 00 87 1D 80 0D 01 02 00 00 00 00 1D [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 03 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 03 00 87 1D 00 90 00 18 [17:10:42]RAPDU: 90 00 [17:10:42]wFMCommunicate OK [17:10:42]wFMCommunicate request_size=255 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 F2 00 00 00 F4 03 04 00 92 7C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 20 02 00 35 04 06 00 [17:10:42]Write to MH i2c: E2 02 01 88 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 F2 00 00 00 F4 03 04 00 92 7C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 20 02 00 35 04 06 00 00 00 94 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 03 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 03 00 88 1D 00 90 00 19 [17:10:42]RAPDU: 90 00 [17:10:42]wFMCommunicate OK [17:10:42]wFMCommunicate request_size=11 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 0D 02 02 06 57 C3 9C 82 71 F3 [17:10:42]Write to MH i2c: E2 0E 00 89 1D 80 0D 02 02 06 00 57 C3 9C 82 71 F3 00 00 C8 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 03 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 03 00 89 1D 00 90 00 1A [17:10:42]RAPDU: 90 00 [17:10:42]wFMCommunicate OK [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 0D 03 02 [17:10:42]Write to MH i2c: E2 08 00 8A 1D 80 0D 03 02 00 00 00 00 22 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 0B 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 0B 00 8A 1D 00 EA 2E 4D 0D CB A4 13 59 90 00 70 [17:10:42]RAPDU: EA 2E 4D 0D CB A4 13 59 90 00 [17:10:42]wFMCommunicate OK [17:10:42]SAM_PROTO_SignData done [17:10:42]FM_MakeSignedData done [17:10:42]CreateOFDProtocolMessage [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 11 00 00 [17:10:42]Write to MH i2c: E2 08 00 8B 1D 80 11 00 00 00 00 00 00 22 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 17 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 17 00 8B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [17:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:10:42]wFMCommunicate OK [17:10:42]CreateOFDProtocolMessage done [17:10:42]OFDSenderStorePacket 139407 [17:10:42]StoreOFDPacket docnum=139407 [17:10:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 4C 64 08 01 73 DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 F2 00 00 00 F4 03 04 00 92 7C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 20 02 00 35 04 06 00 57 C3 9C 82 71 F3 EA 2E 4D 0D CB A4 13 59 [17:10:42]CheckFolder [17:10:42]dirname=/storage/ofd_packets [17:10:42]CheckFolder done [17:10:42]ProducePacketName [17:10:42]name=ofd_packets/00139407 [17:10:42]NVStorageSaveData ofd_packets/00139407 [17:10:42]File name is /storage/ofd_packets/00139407 [17:10:42]Write 302 bytes [17:10:42]NVStorageSaveData done [17:10:42]OFDSenderStorePacket done [17:10:42]KKMCreateOFDPacket done [17:10:42]NVStorageSaveData kkm_last_timestamp [17:10:42]File name is /storage/kkm_last_timestamp [17:10:42]Write 4 bytes [17:10:42]NVStorageSaveData done [17:10:42]ExternCall_PrintAddStr [17:10:42]wPrintStart [17:10:42]Write to MH i2c: 01 00 00 8C 1D A9 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: 01 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: 01 07 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: 01 07 00 8C 1D 00 00 00 00 00 FF 0F BE [17:10:42]RasterBufferAndPrint [17:10:42]line Счет N : (1)593249 [17:10:42]line ИНН: 02508201610067 [17:10:42]line Контрольно-Кассовый Чек [17:10:42]line ПРОДАЖА [17:10:42]line ТРК (МРК, ГНК) : 44 [17:10:42]line Товар: 2710194210 [17:10:42]line ДТ(л)-К-5 [17:10:42]line 32.810 * 76.20 [17:10:42]line = 2500.12 [17:10:42]line НДС 12% НСП 1% [17:10:42]line > о реализуемом товаре [17:10:42]line ОКРУГЛЕНИЕ: -0.12 [17:10:42]line ИТОГО: 2500.00 [17:10:42]line Внесено: 2500.00 [17:10:42]line СДАЧА: 0.00 [17:10:42]line НСП 1% : 22.12 [17:10:42]line НДС 12% : 265.50 [17:10:42]line Наличными: 2500.00 [17:10:42]line Безнал.: 0.00 [17:10:42]line Место: АЗС № 136 "Партнер Нефть" [17:10:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:10:42]line СНО: Общий режим [17:10:42]line Чек 242 19.08.2024 17:10 [17:10:42]line Смена: 452 ФФД: 1.0 [17:10:42]line ЗНМ: 0300000067 [17:10:42]line РНМ: 0000000000092569 [17:10:42]line Версия ККМ: 001 [17:10:42]line ФМ: 0000000000871776 [17:10:42]line ФД: 139407 [17:10:42]line ФПД: 96497656033779 [17:10:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171042&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139407&fm=96497656033779&tin=02508201610067®Number=0000000000092569&sum=250000 [17:10:42]written 0, free lines is 4095 [17:10:42]OFD Sender: Processing packet 139407 [packets to send 137, broken 136] [17:10:42]ProducePacketName [17:10:42]name=ofd_packets/00139407 [17:10:42]OFD Sender: To server: pG, [17:10:42]CommunicateWithHost lk.salyk.kg:30040 [17:10:42]ConnectInit lk.salyk.kg [17:10:43]Connected sock=10 [17:10: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 37 36 10 01 00 00 4C 64 08 01 73 DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 F2 00 00 00 F4 03 04 00 92 7C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 20 02 00 35 04 06 00 57 C3 9C 82 71 F3 EA 2E 4D 0D CB A4 13 59 [17:10: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 37 36 4F 00 00 00 AC CD 47 00 0B 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 37 36 10 04 04 00 8F 20 02 00 F4 03 04 00 28 23 C3 66 B6 04 01 00 00 63 8B 84 7C CA B2 90 A0 [17:10:43]CommunicateWithHost err = 0 [17:10:43]CheckOFDResponse [17:10:43]1017 (14) - 77093643461234 [17:10:43]1041 (16) - 0000000000871776 [17:10:43]1040 (4) - 139407 [17:10:43]1012 (4) - 19.08.2024 10:49 [17:10:43]1206 (1) - 0 [17:10:43]OFD Sender: Remove packet 139407 [17:10:43]ProducePacketName [17:10:43]name=ofd_packets/00139407 [17:10:43]NVStorageDeleteData [17:10:43]Write to MH i2c: 01 00 00 B7 1D D4 [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: 01 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: 01 07 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: 01 07 00 B7 1D 00 00 00 00 00 E5 0C CC [17:10:43]RasterBufferAndPrint [17:10:43]line [17:10:43]line [17:10:43]line [17:10:43]line [17:10:43]line [17:10:43]written 0, free lines is 3307 [17:10:43]MH_Cut [17:10:43]Write to MH i2c: D1 01 00 BE 1D 01 AD [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: D1 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: D1 01 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: D1 01 00 BE 1D 00 AC [17:10:43]Write to MH i2c: 01 00 00 BF 1D DC [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]OFD Sender: No OFD packet to send [17:10:44]*** Cut start [17:10:44]*** Partial cut [17:10:44]*** CUTSNS_PIN = 1 [17:10:44]*** CUTSNS_PIN = 0 [17:10:44]*** Brake cut motor [17:10:44]Read from MH i2c: 01 [17:10:44]MH_I2C_Read... [17:10:44]*** Stop cut motor [17:10:44]*** Cut end [17:10:44]Read from MH i2c: 01 07 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: 01 07 00 BF 1D 00 00 00 00 00 FF 0F F1 [17:10:44]process_action close_receipt done [17:10:44]requested_data is exist [17:10:44]produce_requested_data [17:10:44]requested_item fm.sn is exist - process it [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 11 00 00 [17:10:44]Write to MH i2c: E2 08 00 C0 1D 80 11 00 00 00 00 00 00 57 [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 17 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 17 00 C0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [17:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:10:44]wFMCommunicate OK [17:10:44]requested_item fd.num is exist - process it [17:10:44]SAM_PROTO_GetFieldsCounters [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 13 00 00 [17:10:44]Write to MH i2c: E2 08 00 C1 1D 80 13 00 00 00 00 00 00 5A [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 62 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 62 00 C1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [17:10:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:44]wFMCommunicate OK [17:10:44]SAM_PROTO_GetFieldsCounters done [17:10:44]requested_item shift.num is exist - process it [17:10:44]requested_item shift.opened is exist - process it [17:10:44]req_shift_opened [17:10:44]FM_GetShiftState [17:10:44]SAM_PROTO_GetShiftState [17:10:44]wFMCommunicate request_size=4 [17:10:44]MH_SAM_APDU [17:10:44]CAPDU: 80 13 01 00 [17:10:44]Write to MH i2c: E2 08 00 C2 1D 80 13 01 00 00 00 00 00 5C [17:10:44]Write i2c OK [17:10:44]MH_I2C_Read... [17:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:44]Read from MH i2c: E2 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0E 00 [17:10:44]MH_I2C_Read... [17:10:44]Read from MH i2c: E2 0E 00 C2 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 13 [17:10:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:10:44]wFMCommunicate OK [17:10:44]SAM_PROTO_GetShiftState done [17:10:44]FM_GetShiftState done [17:10:44]req_shift_opened done [17:10:44]requested_item shift.open_date is exist - process it [17:10:44]req_shift_open_date [17:10:44]req_shift_open_date done [17:10:44]produce_requested_data done [17:10:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139407,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:10:44]process_action_free close_receipt [17:10:44]json_value_free [17:10:44]json_value_free done [17:10:44]process_json_proto returns [17:10:44]Send response to host [17:10:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139407,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:10:44]free response buf [17:10:44]execute_script done [17:10:44]execute_script returns [17:10:44]free content buf [17:10:44]Sock 8.Close socket [17:10:44]Sock 8.Thread stoped [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:36]accept exits with 9 [17:11:36]New connection [17:11:36]New thread 3066674532 created [17:11:36]Thread 3066817892 joined [17:11:36]Waiting for new connection... [17:11:36] Sock 9.Parse request [17:11:36]Sock 9.Check first char [17:11:36]Sock 9.First char is OK [17:11:36]request: POST /json_proto HTTP/1.0 [17:11:36]Method: POST [17:11:36]URL: /json_proto [17:11:36]Method is POST - this is cgi request [17:11:36]url: /json_proto [17:11:36]query_string will be loaded in cgi processing [17:11:36]execute_cgi json_proto POST (null) [17:11:36]execute_cgi path=json_proto method=POST [17:11:36]POST find Content-Length [17:11:36]Host: 172.17.45.67:8080 [17:11:36]Content-Length: 682 [17:11:36]Content-Type: application/json [17:11:36] [17:11:36]POST finish read [17:11:36]Found Content-Length = 682 [17:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [17:11:36]execute_script... [17:11: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)593250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [17:11:36]POST & json_proto [17:11:36]process_json_proto [17:11:36]json parsed OK: [17:11:36]protocol is kg_v1.0 [17:11:36]action value=close_receipt [17:11:36]process_action close_receipt [17:11:36]cmd_close_receipt [17:11:36]MH_GetDate [17:11:36]Write to MH i2c: F0 00 00 C3 1D CF [17:11:36]Write i2c OK [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: F0 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: F0 09 00 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: F0 09 00 C3 1D 00 CA 7C C3 66 5F 7F 2B 66 B6 [17:11:36]GetLastDocTimeStamp 1724087442 [17:11:36]current date 1724087498 [17:11:36]FM_GetShiftState [17:11:36]SAM_PROTO_GetShiftState [17:11:36]wFMCommunicate request_size=4 [17:11:36]MH_SAM_APDU [17:11:36]CAPDU: 80 13 01 00 [17:11:36]Write to MH i2c: E2 08 00 C4 1D 80 13 01 00 00 00 00 00 5E [17:11:36]Write i2c OK [17:11:36]MH_I2C_Read... [17:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:36]Read from MH i2c: E2 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 0E 00 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 0E 00 C4 1D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 15 [17:11:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:11:36]wFMCommunicate OK [17:11:36]SAM_PROTO_GetShiftState done [17:11:36]FM_GetShiftState done [17:11:36]opened in 1724027888 [17:11:36]opened+sec_in_day 1724114288 [17:11:36]quantity*price = 50063 [17:11:36]sum+1 = 50064 [17:11:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 243 19.08.2024 17:11 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139408 ФПД: 57129470990721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171138&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139408&fm=57129470990721&tin=02508201610067®Number=0000000000092569&sum=50000 [17:11:37]StoreToDocumentArchive [17:11:37]shift 452 fd 139408 [17:11:37]save to /storage/0452/doc_00139408 [17:11:37]save last doc name /storage/0452/doc_00139408 to /storage/kkm_last_doc_name [17:11:37]save OK [17:11:37]Clear old archive folders... [17:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:11:37]tlvbuf is 011FBEE0 [17:11:37]SAM_PROTO_ClearQueue [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 09 00 00 [17:11:37]Write to MH i2c: E2 08 00 D1 1D 80 09 00 00 00 00 00 00 60 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 D1 1D 00 90 00 62 [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]SAM_PROTO_ClearQueue done [17:11:37]KKMCreateOFDPacket [17:11:37]OFDProtocolAddRootSTLVToBuf [17:11:37]FM_MakeSignedData [17:11:37]FM_MakeSignedData [17:11:37]SAM_PROTO_SignData [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 0D 01 02 [17:11:37]Write to MH i2c: E2 08 00 D2 1D 80 0D 01 02 00 00 00 00 68 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 D2 1D 00 90 00 63 [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]wFMCommunicate request_size=255 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 F3 00 00 00 F4 03 04 00 CA 7C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 20 02 00 35 04 06 00 [17:11:37]Write to MH i2c: E2 02 01 D3 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 F3 00 00 00 F4 03 04 00 CA 7C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 20 02 00 35 04 06 00 00 00 40 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:38]Read from MH i2c: E2 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 03 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 03 00 D3 1D 00 90 00 64 [17:11:38]RAPDU: 90 00 [17:11:38]wFMCommunicate OK [17:11:38]wFMCommunicate request_size=11 [17:11:38]MH_SAM_APDU [17:11:38]CAPDU: 80 0D 02 02 06 33 F5 7D D3 19 81 [17:11:38]Write to MH i2c: E2 0E 00 D4 1D 80 0D 02 02 06 00 33 F5 7D D3 19 81 00 00 89 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:38]Read from MH i2c: E2 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 03 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 03 00 D4 1D 00 90 00 65 [17:11:38]RAPDU: 90 00 [17:11:38]wFMCommunicate OK [17:11:38]wFMCommunicate request_size=4 [17:11:38]MH_SAM_APDU [17:11:38]CAPDU: 80 0D 03 02 [17:11:38]Write to MH i2c: E2 08 00 D5 1D 80 0D 03 02 00 00 00 00 6D [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:38]Read from MH i2c: E2 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 0B 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 0B 00 D5 1D 00 9F A4 9F DB 6F B6 60 88 90 00 38 [17:11:38]RAPDU: 9F A4 9F DB 6F B6 60 88 90 00 [17:11:38]wFMCommunicate OK [17:11:38]SAM_PROTO_SignData done [17:11:38]FM_MakeSignedData done [17:11:38]CreateOFDProtocolMessage [17:11:38]wFMCommunicate request_size=4 [17:11:38]MH_SAM_APDU [17:11:38]CAPDU: 80 11 00 00 [17:11:38]Write to MH i2c: E2 08 00 D6 1D 80 11 00 00 00 00 00 00 6D [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:38]Read from MH i2c: E2 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 17 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: E2 17 00 D6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [17:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:11:38]wFMCommunicate OK [17:11:38]CreateOFDProtocolMessage done [17:11:38]OFDSenderStorePacket 139408 [17:11:38]StoreOFDPacket docnum=139408 [17:11:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 FE 7A 08 01 59 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 F3 00 00 00 F4 03 04 00 CA 7C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 20 02 00 35 04 06 00 33 F5 7D D3 19 81 9F A4 9F DB 6F B6 60 88 [17:11:38]CheckFolder [17:11:38]dirname=/storage/ofd_packets [17:11:38]CheckFolder done [17:11:38]ProducePacketName [17:11:38]name=ofd_packets/00139408 [17:11:38]NVStorageSaveData ofd_packets/00139408 [17:11:38]File name is /storage/ofd_packets/00139408 [17:11:38]Write 302 bytes [17:11:38]NVStorageSaveData done [17:11:38]OFDSenderStorePacket done [17:11:38]KKMCreateOFDPacket done [17:11:38]NVStorageSaveData kkm_last_timestamp [17:11:38]File name is /storage/kkm_last_timestamp [17:11:38]Write 4 bytes [17:11:38]NVStorageSaveData done [17:11:38]ExternCall_PrintAddStr [17:11:38]wPrintStart [17:11:38]Write to MH i2c: 01 00 00 D7 1D F4 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 07 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 FF 0F 09 [17:11:38]RasterBufferAndPrint [17:11:38]line Счет N : (1)593250 [17:11:38]line ИНН: 02508201610067 [17:11:38]line Контрольно-Кассовый Чек [17:11:38]line ПРОДАЖА [17:11:38]line ТРК (МРК, ГНК) : 54 [17:11:38]line Товар: 2710194210 [17:11:38]line ДТ(л)-К-5 [17:11:38]line 6.570 * 76.20 [17:11:38]line = 500.63 [17:11:38]line НДС 12% НСП 1% [17:11:38]line > о реализуемом товаре [17:11:38]line ОКРУГЛЕНИЕ: -0.63 [17:11:38]line ИТОГО: 500.00 [17:11:38]line Внесено: 500.00 [17:11:38]line СДАЧА: 0.00 [17:11:38]line НСП 1% : 4.43 [17:11:38]line НДС 12% : 53.16 [17:11:38]line Наличными: 500.00 [17:11:38]line Безнал.: 0.00 [17:11:38]line Место: АЗС № 136 "Партнер Нефть" [17:11:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:11:38]line СНО: Общий режим [17:11:38]line Чек 243 19.08.2024 17:11 [17:11:38]line Смена: 452 ФФД: 1.0 [17:11:38]line ЗНМ: 0300000067 [17:11:38]line РНМ: 0000000000092569 [17:11:38]line Версия ККМ: 001 [17:11:38]line ФМ: 0000000000871776 [17:11:38]line ФД: 139408 [17:11:38]line ФПД: 57129470990721 [17:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171138&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139408&fm=57129470990721&tin=02508201610067®Number=0000000000092569&sum=50000 [17:11:38]OFD Sender: Processing packet 139408 [packets to send 137, broken 136] [17:11:38]ProducePacketName [17:11:38]name=ofd_packets/00139408 [17:11:38]OFD Sender: To server: pG, [17:11:38]CommunicateWithHost lk.salyk.kg:30040 [17:11:38]ConnectInit lk.salyk.kg [17:11:38]written 0, free lines is 4095 [17:11:38]Connected sock=10 [17:11: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 37 36 10 01 00 00 FE 7A 08 01 59 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 F3 00 00 00 F4 03 04 00 CA 7C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 20 02 00 35 04 06 00 33 F5 7D D3 19 81 9F A4 9F DB 6F B6 60 88 [17:11: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 37 36 4F 00 00 00 B5 6A 47 00 37 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 37 36 10 04 04 00 90 20 02 00 F4 03 04 00 5F 23 C3 66 B6 04 01 00 00 89 4A AA C1 02 62 B2 7A [17:11:39]CommunicateWithHost err = 0 [17:11:39]CheckOFDResponse [17:11:39]1017 (14) - 77093643461234 [17:11:39]1041 (16) - 0000000000871776 [17:11:39]1040 (4) - 139408 [17:11:39]1012 (4) - 19.08.2024 10:50 [17:11:39]1206 (1) - 0 [17:11:39]OFD Sender: Remove packet 139408 [17:11:39]ProducePacketName [17:11:39]name=ofd_packets/00139408 [17:11:39]NVStorageDeleteData [17:11:39]Write to MH i2c: 01 00 00 02 1E 20 [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: 01 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: 01 07 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: 01 07 00 02 1E 00 00 00 00 00 DA 0C 0D [17:11:39]RasterBufferAndPrint [17:11:39]line [17:11:39]line [17:11:39]line [17:11:39]line [17:11:39]line [17:11:39]written 0, free lines is 3297 [17:11:39]MH_Cut [17:11:39]Write to MH i2c: D1 01 00 09 1E 01 F9 [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: D1 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: D1 01 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: D1 01 00 09 1E 00 F8 [17:11:39]Write to MH i2c: 01 00 00 0A 1E 28 [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]OFD Sender: No OFD packet to send [17:11:39]*** Cut start [17:11:39]*** Partial cut [17:11:39]*** CUTSNS_PIN = 1 [17:11:39]*** CUTSNS_PIN = 0 [17:11:40]*** Brake cut motor [17:11:40]Read from MH i2c: 01 [17:11:40]MH_I2C_Read... [17:11:40]*** Stop cut motor [17:11:40]*** Cut end [17:11:40]Read from MH i2c: 01 07 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: 01 07 00 0A 1E 00 00 00 00 00 FF 0F 3D [17:11:40]process_action close_receipt done [17:11:40]requested_data is exist [17:11:40]produce_requested_data [17:11:40]requested_item fm.sn is exist - process it [17:11:40]wFMCommunicate request_size=4 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 11 00 00 [17:11:40]Write to MH i2c: E2 08 00 0B 1E 80 11 00 00 00 00 00 00 A3 [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 17 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 17 00 0B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [17:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:11:40]wFMCommunicate OK [17:11:40]requested_item fd.num is exist - process it [17:11:40]SAM_PROTO_GetFieldsCounters [17:11:40]wFMCommunicate request_size=4 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 13 00 00 [17:11:40]Write to MH i2c: E2 08 00 0C 1E 80 13 00 00 00 00 00 00 A6 [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 62 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 62 00 0C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [17:11: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:40]wFMCommunicate OK [17:11:40]SAM_PROTO_GetFieldsCounters done [17:11:40]requested_item shift.num is exist - process it [17:11:40]requested_item shift.opened is exist - process it [17:11:40]req_shift_opened [17:11:40]FM_GetShiftState [17:11:40]SAM_PROTO_GetShiftState [17:11:40]wFMCommunicate request_size=4 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 13 01 00 [17:11:40]Write to MH i2c: E2 08 00 0D 1E 80 13 01 00 00 00 00 00 A8 [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 0E 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 0E 00 0D 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5F [17:11:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:11:40]wFMCommunicate OK [17:11:40]SAM_PROTO_GetShiftState done [17:11:40]FM_GetShiftState done [17:11:40]req_shift_opened done [17:11:40]requested_item shift.open_date is exist - process it [17:11:40]req_shift_open_date [17:11:40]req_shift_open_date done [17:11:40]produce_requested_data done [17:11:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139408,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:11:40]process_action_free close_receipt [17:11:40]json_value_free [17:11:40]json_value_free done [17:11:40]process_json_proto returns [17:11:40]Send response to host [17:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139408,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:11:40]free response buf [17:11:40]execute_script done [17:11:40]execute_script returns [17:11:40]free content buf [17:11:40]Sock 9.Close socket [17:11:40]Sock 9.Thread stoped [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:41]accept exits with 8 [17:13:41]New connection [17:13:41]New thread 3066817892 created [17:13:41]Thread 3066674532 joined [17:13:41]Waiting for new connection... [17:13:41] Sock 8.Parse request [17:13:41]Sock 8.Check first char [17:13:41]Sock 8.First char is OK [17:13:41]request: POST /json_proto HTTP/1.0 [17:13:41]Method: POST [17:13:41]URL: /json_proto [17:13:41]Method is POST - this is cgi request [17:13:41]url: /json_proto [17:13:41]query_string will be loaded in cgi processing [17:13:41]execute_cgi json_proto POST (null) [17:13:41]execute_cgi path=json_proto method=POST [17:13:41]POST find Content-Length [17:13:41]Host: 172.17.45.67:8080 [17:13:41]Content-Length: 677 [17:13:41]Content-Type: application/json [17:13:41] [17:13:41]POST finish read [17:13:41]Found Content-Length = 677 [17:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.750, "sum" : 525.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 525.00, "total" : 525.00, "payments": [ { "type": 0, "sum" : 525.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:41]execute_script... [17:13: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)593251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.750, "sum" : 525.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 525.00, "total" : 525.00, "payments": [ { "type": 0, "sum" : 525.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:41]POST & json_proto [17:13:41]process_json_proto [17:13:41]json parsed OK: [17:13:41]protocol is kg_v1.0 [17:13:41]action value=close_receipt [17:13:41]process_action close_receipt [17:13:41]cmd_close_receipt [17:13:41]MH_GetDate [17:13:41]Write to MH i2c: F0 00 00 0E 1E 1B [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: F0 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: F0 09 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: F0 09 00 0E 1E 00 47 7D C3 66 5F 7F 2B 66 80 [17:13:41]GetLastDocTimeStamp 1724087498 [17:13:41]current date 1724087623 [17:13:41]FM_GetShiftState [17:13:41]SAM_PROTO_GetShiftState [17:13:41]wFMCommunicate request_size=4 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 13 01 00 [17:13:41]Write to MH i2c: E2 08 00 0F 1E 80 13 01 00 00 00 00 00 AA [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 0E 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 0E 00 0F 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 61 [17:13:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:13:41]wFMCommunicate OK [17:13:41]SAM_PROTO_GetShiftState done [17:13:41]FM_GetShiftState done [17:13:41]opened in 1724027888 [17:13:41]opened+sec_in_day 1724114288 [17:13:41]quantity*price = 52545 [17:13:41]sum+1 = 52546 [17:13:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 525.00 Внесено: 525.00 СДАЧА: 0.00 НСП 1% : 4.65 НДС 12% : 55.80 Наличными: 525.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 244 19.08.2024 17:13 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139409 ФПД: 130703686412229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171343&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139409&fm=130703686412229&tin=02508201610067®Number=0000000000092569&sum=52500 [17:13:42]StoreToDocumentArchive [17:13:42]shift 452 fd 139409 [17:13:42]save to /storage/0452/doc_00139409 [17:13:42]save last doc name /storage/0452/doc_00139409 to /storage/kkm_last_doc_name [17:13:42]save OK [17:13:42]Clear old archive folders... [17:13:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:42]tlvbuf is 01200710 [17:13:42]SAM_PROTO_ClearQueue [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 09 00 00 [17:13:42]Write to MH i2c: E2 08 00 1C 1E 80 09 00 00 00 00 00 00 AC [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 03 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [17:13:42]RAPDU: 90 00 [17:13:42]wFMCommunicate OK [17:13:42]SAM_PROTO_ClearQueue done [17:13:42]KKMCreateOFDPacket [17:13:42]OFDProtocolAddRootSTLVToBuf [17:13:42]FM_MakeSignedData [17:13:42]FM_MakeSignedData [17:13:42]SAM_PROTO_SignData [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 0D 01 02 [17:13:42]Write to MH i2c: E2 08 00 1D 1E 80 0D 01 02 00 00 00 00 B4 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 03 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 03 00 1D 1E 00 90 00 AF [17:13:42]RAPDU: 90 00 [17:13:42]wFMCommunicate OK [17:13:42]wFMCommunicate request_size=255 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 41 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 15 00 00 00 00 07 04 06 00 14 CD 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 47 7D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 20 02 00 35 04 06 00 76 [17:13:42]Write to MH i2c: E2 02 01 1E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 41 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 15 00 00 00 00 07 04 06 00 14 CD 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 47 7D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 20 02 00 35 04 06 00 76 00 00 14 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 1E 1E 00 90 00 B0 [17:13:43]RAPDU: 90 00 [17:13:43]wFMCommunicate OK [17:13:43]wFMCommunicate request_size=10 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 0D 02 02 05 DF D2 CC A7 C5 [17:13:43]Write to MH i2c: E2 0D 00 1F 1E 80 0D 02 02 05 00 DF D2 CC A7 C5 00 00 AA [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [17:13:43]RAPDU: 90 00 [17:13:43]wFMCommunicate OK [17:13:43]wFMCommunicate request_size=4 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 0D 03 02 [17:13:43]Write to MH i2c: E2 08 00 20 1E 80 0D 03 02 00 00 00 00 B9 [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 0B 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 0B 00 20 1E 00 61 69 64 4A DA A4 56 28 90 00 2E [17:13:43]RAPDU: 61 69 64 4A DA A4 56 28 90 00 [17:13:43]wFMCommunicate OK [17:13:43]SAM_PROTO_SignData done [17:13:43]FM_MakeSignedData done [17:13:43]CreateOFDProtocolMessage [17:13:43]wFMCommunicate request_size=4 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 11 00 00 [17:13:43]Write to MH i2c: E2 08 00 21 1E 80 11 00 00 00 00 00 00 B9 [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 17 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 17 00 21 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [17:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:13:43]wFMCommunicate OK [17:13:43]CreateOFDProtocolMessage done [17:13:43]OFDSenderStorePacket 139409 [17:13:43]StoreOFDPacket docnum=139409 [17:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B3 C9 07 01 C1 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 46 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 41 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 15 00 00 00 00 07 04 06 00 14 CD 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 47 7D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 20 02 00 35 04 06 00 76 DF D2 CC A7 C5 61 69 64 4A DA A4 56 28 [17:13:43]CheckFolder [17:13:43]dirname=/storage/ofd_packets [17:13:43]CheckFolder done [17:13:43]ProducePacketName [17:13:43]name=ofd_packets/00139409 [17:13:43]NVStorageSaveData ofd_packets/00139409 [17:13:43]File name is /storage/ofd_packets/00139409 [17:13:43]Write 301 bytes [17:13:43]NVStorageSaveData done [17:13:43]OFDSenderStorePacket done [17:13:43]KKMCreateOFDPacket done [17:13:43]NVStorageSaveData kkm_last_timestamp [17:13:43]File name is /storage/kkm_last_timestamp [17:13:43]Write 4 bytes [17:13:43]NVStorageSaveData done [17:13:43]ExternCall_PrintAddStr [17:13:43]wPrintStart [17:13:43]Write to MH i2c: 01 00 00 22 1E 40 [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: 01 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: 01 07 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 FF 0F 55 [17:13:43]RasterBufferAndPrint [17:13:43]line Счет N : (1)593251 [17:13:43]line ИНН: 02508201610067 [17:13:43]line Контрольно-Кассовый Чек [17:13:43]line ПРОДАЖА [17:13:43]line ТРК (МРК, ГНК) : 62 [17:13:43]line Товар: 2710124130 [17:13:43]line Аи-92-К-5 [17:13:43]line 7.750 * 67.80 [17:13:43]line = 525.45 [17:13:43]line НДС 12% НСП 1% [17:13:43]line > о реализуемом товаре [17:13:43]line ОКРУГЛЕНИЕ: -0.45 [17:13:43]line ИТОГО: 525.00 [17:13:43]line Внесено: 525.00 [17:13:43]line СДАЧА: 0.00 [17:13:43]line НСП 1% : 4.65 [17:13:43]line НДС 12% : 55.80 [17:13:43]line Наличными: 525.00 [17:13:43]line Безнал.: 0.00 [17:13:43]line Место: АЗС № 136 "Партнер Нефть" [17:13:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:13:43]line СНО: Общий режим [17:13:43]line Чек 244 19.08.2024 17:13 [17:13:43]line Смена: 452 ФФД: 1.0 [17:13:43]line ЗНМ: 0300000067 [17:13:43]line РНМ: 0000000000092569 [17:13:43]line Версия ККМ: 001 [17:13:43]line ФМ: 0000000000871776 [17:13:43]line ФД: 139409 [17:13:43]line ФПД: 130703686412229 [17:13:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171343&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139409&fm=130703686412229&tin=02508201610067®Number=0000000000092569&sum=52500 [17:13:43]written 0, free lines is 4095 [17:13:43]OFD Sender: Processing packet 139409 [packets to send 137, broken 136] [17:13:43]ProducePacketName [17:13:43]name=ofd_packets/00139409 [17:13:43]OFD Sender: To server: pG, [17:13:43]CommunicateWithHost lk.salyk.kg:30040 [17:13:43]ConnectInit lk.salyk.kg [17:13:43]Connected sock=10 [17:13:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B3 C9 07 01 C1 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 46 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 41 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 15 00 00 00 00 07 04 06 00 14 CD 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 47 7D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 20 02 00 35 04 06 00 76 DF D2 CC A7 C5 61 69 64 4A DA A4 56 28 [17:13: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 37 36 4F 00 00 00 49 1E 47 00 30 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 37 36 10 04 04 00 91 20 02 00 F4 03 04 00 DC 23 C3 66 B6 04 01 00 00 FE C6 F2 4D 65 DF C9 3A [17:13:44]CommunicateWithHost err = 0 [17:13:44]CheckOFDResponse [17:13:44]1017 (14) - 77093643461234 [17:13:44]1041 (16) - 0000000000871776 [17:13:44]1040 (4) - 139409 [17:13:44]1012 (4) - 19.08.2024 10:52 [17:13:44]1206 (1) - 0 [17:13:44]OFD Sender: Remove packet 139409 [17:13:44]ProducePacketName [17:13:44]name=ofd_packets/00139409 [17:13:44]NVStorageDeleteData [17:13:44]Write to MH i2c: 01 00 00 4D 1E 6B [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 07 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 CE 0C 4C [17:13:44]RasterBufferAndPrint [17:13:44]line [17:13:44]line [17:13:44]line [17:13:44]line [17:13:44]line [17:13:44]written 0, free lines is 3284 [17:13:44]MH_Cut [17:13:44]Write to MH i2c: D1 01 00 54 1E 01 44 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: D1 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: D1 01 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: D1 01 00 54 1E 00 43 [17:13:44]Write to MH i2c: 01 00 00 55 1E 73 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]OFD Sender: No OFD packet to send [17:13:44]*** Cut start [17:13:44]*** Partial cut [17:13:44]*** CUTSNS_PIN = 1 [17:13:44]*** CUTSNS_PIN = 0 [17:13:44]*** Brake cut motor [17:13:45]Read from MH i2c: 01 [17:13:45]MH_I2C_Read... [17:13:45]*** Stop cut motor [17:13:45]*** Cut end [17:13:45]Read from MH i2c: 01 07 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: 01 07 00 55 1E 00 00 00 00 00 FF 0F 88 [17:13:45]process_action close_receipt done [17:13:45]requested_data is exist [17:13:45]produce_requested_data [17:13:45]requested_item fm.sn is exist - process it [17:13:45]wFMCommunicate request_size=4 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 11 00 00 [17:13:45]Write to MH i2c: E2 08 00 56 1E 80 11 00 00 00 00 00 00 EE [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 17 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 17 00 56 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [17:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:13:45]wFMCommunicate OK [17:13:45]requested_item fd.num is exist - process it [17:13:45]SAM_PROTO_GetFieldsCounters [17:13:45]wFMCommunicate request_size=4 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 13 00 00 [17:13:45]Write to MH i2c: E2 08 00 57 1E 80 13 00 00 00 00 00 00 F1 [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 62 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 62 00 57 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [17:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:45]wFMCommunicate OK [17:13:45]SAM_PROTO_GetFieldsCounters done [17:13:45]requested_item shift.num is exist - process it [17:13:45]requested_item shift.opened is exist - process it [17:13:45]req_shift_opened [17:13:45]FM_GetShiftState [17:13:45]SAM_PROTO_GetShiftState [17:13:45]wFMCommunicate request_size=4 [17:13:45]MH_SAM_APDU [17:13:45]CAPDU: 80 13 01 00 [17:13:45]Write to MH i2c: E2 08 00 58 1E 80 13 01 00 00 00 00 00 F3 [17:13:45]Write i2c OK [17:13:45]MH_I2C_Read... [17:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:45]Read from MH i2c: E2 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 0E 00 [17:13:45]MH_I2C_Read... [17:13:45]Read from MH i2c: E2 0E 00 58 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AA [17:13:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:13:45]wFMCommunicate OK [17:13:45]SAM_PROTO_GetShiftState done [17:13:45]FM_GetShiftState done [17:13:45]req_shift_opened done [17:13:45]requested_item shift.open_date is exist - process it [17:13:45]req_shift_open_date [17:13:45]req_shift_open_date done [17:13:45]produce_requested_data done [17:13:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139409,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:13:45]process_action_free close_receipt [17:13:45]json_value_free [17:13:45]json_value_free done [17:13:45]process_json_proto returns [17:13:45]Send response to host [17:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139409,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:13:45]free response buf [17:13:45]execute_script done [17:13:45]execute_script returns [17:13:45]free content buf [17:13:45]Sock 8.Close socket [17:13:45]Sock 8.Thread stoped [17:13:47]accept exits with 9 [17:13:47]New connection [17:13:47]New thread 3066674532 created [17:13:47]Thread 3066817892 joined [17:13:47]Waiting for new connection... [17:13:47] Sock 9.Parse request [17:13:47]Sock 9.Check first char [17:13:47]Sock 9.First char is OK [17:13:47]request: POST /json_proto HTTP/1.0 [17:13:47]Method: POST [17:13:47]URL: /json_proto [17:13:47]Method is POST - this is cgi request [17:13:47]url: /json_proto [17:13:47]query_string will be loaded in cgi processing [17:13:47]execute_cgi json_proto POST (null) [17:13:47]execute_cgi path=json_proto method=POST [17:13:47]POST find Content-Length [17:13:47]Host: 172.17.45.67:8080 [17:13:47]Content-Length: 677 [17:13:47]Content-Type: application/json [17:13:47] [17:13:47]POST finish read [17:13:47]Found Content-Length = 677 [17:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:13:47]execute_script... [17: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)593252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:13:47]POST & json_proto [17:13:47]process_json_proto [17:13:47]json parsed OK: [17:13:47]protocol is kg_v1.0 [17:13:47]action value=close_receipt [17:13:47]process_action close_receipt [17:13:47]cmd_close_receipt [17:13:47]MH_GetDate [17:13:47]Write to MH i2c: F0 00 00 59 1E 66 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: F0 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: F0 09 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: F0 09 00 59 1E 00 4D 7D C3 66 5F 7F 2B 66 D1 [17:13:47]GetLastDocTimeStamp 1724087623 [17:13:47]current date 1724087629 [17:13:47]FM_GetShiftState [17:13:47]SAM_PROTO_GetShiftState [17:13:47]wFMCommunicate request_size=4 [17:13:47]MH_SAM_APDU [17:13:47]CAPDU: 80 13 01 00 [17:13:47]Write to MH i2c: E2 08 00 5A 1E 80 13 01 00 00 00 00 00 F5 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:47]Read from MH i2c: E2 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 0E 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: E2 0E 00 5A 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AC [17:13:47]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:13:47]wFMCommunicate OK [17:13:47]SAM_PROTO_GetShiftState done [17:13:47]FM_GetShiftState done [17:13:47]opened in 1724027888 [17:13:47]opened+sec_in_day 1724114288 [17:13:47]quantity*price = 50036 [17:13:47]sum+1 = 50037 [17:13:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 245 19.08.2024 17:13 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139410 ФПД: 133938893526071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171349&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139410&fm=133938893526071&tin=02508201610067®Number=0000000000092569&sum=50000 [17:13:48]StoreToDocumentArchive [17:13:48]shift 452 fd 139410 [17:13:48]save to /storage/0452/doc_00139410 [17:13:48]save last doc name /storage/0452/doc_00139410 to /storage/kkm_last_doc_name [17:13:48]save OK [17:13:48]Clear old archive folders... [17:13:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:48]tlvbuf is 0124FAA0 [17:13:48]SAM_PROTO_ClearQueue [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 09 00 00 [17:13:48]Write to MH i2c: E2 08 00 67 1E 80 09 00 00 00 00 00 00 F7 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 03 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [17:13:48]RAPDU: 90 00 [17:13:48]wFMCommunicate OK [17:13:48]SAM_PROTO_ClearQueue done [17:13:48]KKMCreateOFDPacket [17:13:48]OFDProtocolAddRootSTLVToBuf [17:13:48]FM_MakeSignedData [17:13:48]FM_MakeSignedData [17:13:48]SAM_PROTO_SignData [17:13:48]wFMCommunicate request_size=4 [17:13:48]MH_SAM_APDU [17:13:48]CAPDU: 80 0D 01 02 [17:13:48]Write to MH i2c: E2 08 00 68 1E 80 0D 01 02 00 00 00 00 FF [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:48]Read from MH i2c: E2 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 03 00 [17:13:48]MH_I2C_Read... [17:13:48]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [17:13:48]RAPDU: 90 00 [17:13:48]wFMCommunicate OK [17:13:48]wFMCommunicate request_size=255 [17:13:48]MH_SAM_APDU [17: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 F5 00 00 00 F4 03 04 00 4D 7D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 20 02 00 35 04 06 00 79 [17:13:48]Write to MH i2c: E2 02 01 69 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 F5 00 00 00 F4 03 04 00 4D 7D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 20 02 00 35 04 06 00 79 00 00 62 [17:13:48]Write i2c OK [17:13:48]MH_I2C_Read... [17:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 03 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [17:13:49]RAPDU: 90 00 [17:13:49]wFMCommunicate OK [17:13:49]wFMCommunicate request_size=10 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 0D 02 02 05 D1 14 2B 94 37 [17:13:49]Write to MH i2c: E2 0D 00 6A 1E 80 0D 02 02 05 00 D1 14 2B 94 37 00 00 E7 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 03 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [17:13:49]RAPDU: 90 00 [17:13:49]wFMCommunicate OK [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 0D 03 02 [17:13:49]Write to MH i2c: E2 08 00 6B 1E 80 0D 03 02 00 00 00 00 04 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0B 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0B 00 6B 1E 00 10 46 60 08 81 47 7D 7F 90 00 87 [17:13:49]RAPDU: 10 46 60 08 81 47 7D 7F 90 00 [17:13:49]wFMCommunicate OK [17:13:49]SAM_PROTO_SignData done [17:13:49]FM_MakeSignedData done [17:13:49]CreateOFDProtocolMessage [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 11 00 00 [17:13:49]Write to MH i2c: E2 08 00 6C 1E 80 11 00 00 00 00 00 00 04 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 17 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 17 00 6C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [17:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:13:49]wFMCommunicate OK [17:13:49]CreateOFDProtocolMessage done [17:13:49]OFDSenderStorePacket 139410 [17:13:49]StoreOFDPacket docnum=139410 [17:13:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FA 29 07 01 7F 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 F5 00 00 00 F4 03 04 00 4D 7D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 20 02 00 35 04 06 00 79 D1 14 2B 94 37 10 46 60 08 81 47 7D 7F [17:13:49]CheckFolder [17:13:49]dirname=/storage/ofd_packets [17:13:49]CheckFolder done [17:13:49]ProducePacketName [17:13:49]name=ofd_packets/00139410 [17:13:49]NVStorageSaveData ofd_packets/00139410 [17:13:49]File name is /storage/ofd_packets/00139410 [17:13:49]Write 301 bytes [17:13:49]NVStorageSaveData done [17:13:49]OFDSenderStorePacket done [17:13:49]KKMCreateOFDPacket done [17:13:49]NVStorageSaveData kkm_last_timestamp [17:13:49]File name is /storage/kkm_last_timestamp [17:13:49]Write 4 bytes [17:13:49]NVStorageSaveData done [17:13:49]ExternCall_PrintAddStr [17:13:49]wPrintStart [17:13:49]Write to MH i2c: 01 00 00 6D 1E 8B [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: 01 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: 01 07 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 FF 0F A0 [17:13:49]RasterBufferAndPrint [17:13:49]line Счет N : (1)593252 [17:13:49]line ИНН: 02508201610067 [17:13:49]line Контрольно-Кассовый Чек [17:13:49]line ПРОДАЖА [17:13:49]line ТРК (МРК, ГНК) : 32 [17:13:49]line Товар: 2710124130 [17:13:49]line Аи-92-К-5 [17:13:49]line 7.380 * 67.80 [17:13:49]line = 500.36 [17:13:49]line НДС 12% НСП 1% [17:13:49]line > о реализуемом товаре [17:13:49]line ОКРУГЛЕНИЕ: -0.36 [17:13:49]line ИТОГО: 500.00 [17:13:49]line Внесено: 500.00 [17:13:49]line СДАЧА: 0.00 [17:13:49]line НСП 1% : 4.43 [17:13:49]line НДС 12% : 53.14 [17:13:49]line Наличными: 500.00 [17:13:49]line Безнал.: 0.00 [17:13:49]line Место: АЗС № 136 "Партнер Нефть" [17:13:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:13:49]line СНО: Общий режим [17:13:49]line Чек 245 19.08.2024 17:13 [17:13:49]line Смена: 452 ФФД: 1.0 [17:13:49]line ЗНМ: 0300000067 [17:13:49]line РНМ: 0000000000092569 [17:13:49]line Версия ККМ: 001 [17:13:49]line ФМ: 0000000000871776 [17:13:49]line ФД: 139410 [17:13:49]line ФПД: 133938893526071 [17:13:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171349&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139410&fm=133938893526071&tin=02508201610067®Number=0000000000092569&sum=50000 [17:13:49]OFD Sender: Processing packet 139410 [packets to send 137, broken 136] [17:13:49]ProducePacketName [17:13:49]name=ofd_packets/00139410 [17:13:49]OFD Sender: To server: pG, [17:13:49]CommunicateWithHost lk.salyk.kg:30040 [17:13:49]ConnectInit lk.salyk.kg [17:13:49]written 0, free lines is 4095 [17:13:49]Connected sock=10 [17: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 37 36 0F 01 00 00 FA 29 07 01 7F 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 F5 00 00 00 F4 03 04 00 4D 7D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 20 02 00 35 04 06 00 79 D1 14 2B 94 37 10 46 60 08 81 47 7D 7F [17: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 37 36 4F 00 00 00 3A 25 47 00 77 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 37 36 10 04 04 00 92 20 02 00 F4 03 04 00 E2 23 C3 66 B6 04 01 00 00 75 A2 C4 80 60 5D 44 5E [17:13:49]CommunicateWithHost err = 0 [17:13:49]CheckOFDResponse [17:13:49]1017 (14) - 77093643461234 [17:13:49]1041 (16) - 0000000000871776 [17:13:49]1040 (4) - 139410 [17:13:49]1012 (4) - 19.08.2024 10:52 [17:13:49]1206 (1) - 0 [17:13:49]OFD Sender: Remove packet 139410 [17:13:49]ProducePacketName [17:13:49]name=ofd_packets/00139410 [17:13:49]NVStorageDeleteData [17:13:49]Write to MH i2c: 01 00 00 98 1E B6 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: 01 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: 01 07 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: 01 07 00 98 1E 00 00 00 00 00 DA 0C A3 [17:13:49]RasterBufferAndPrint [17:13:49]line [17:13:49]line [17:13:49]line [17:13:49]line [17:13:49]line [17:13:49]written 0, free lines is 3303 [17:13:49]MH_Cut [17:13:49]Write to MH i2c: D1 01 00 9F 1E 01 8F [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: D1 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: D1 01 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: D1 01 00 9F 1E 00 8E [17:13:50]Write to MH i2c: 01 00 00 A0 1E BE [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]OFD Sender: No OFD packet to send [17:13:50]*** Cut start [17:13:50]*** Partial cut [17:13:50]*** CUTSNS_PIN = 1 [17:13:50]*** CUTSNS_PIN = 0 [17:13:50]*** Brake cut motor [17:13:51]Read from MH i2c: 01 [17:13:51]MH_I2C_Read... [17:13:51]*** Stop cut motor [17:13:51]*** Cut end [17:13:51]Read from MH i2c: 01 07 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 07 00 A0 1E 00 00 00 00 00 FF 0F D3 [17:13:51]process_action close_receipt done [17:13:51]requested_data is exist [17:13:51]produce_requested_data [17:13:51]requested_item fm.sn is exist - process it [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 11 00 00 [17:13:51]Write to MH i2c: E2 08 00 A1 1E 80 11 00 00 00 00 00 00 39 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 17 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 17 00 A1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [17:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:13:51]wFMCommunicate OK [17:13:51]requested_item fd.num is exist - process it [17:13:51]SAM_PROTO_GetFieldsCounters [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 13 00 00 [17:13:51]Write to MH i2c: E2 08 00 A2 1E 80 13 00 00 00 00 00 00 3C [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 62 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 62 00 A2 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_GetFieldsCounters done [17:13:51]requested_item shift.num is exist - process it [17:13:51]requested_item shift.opened is exist - process it [17:13:51]req_shift_opened [17:13:51]FM_GetShiftState [17:13:51]SAM_PROTO_GetShiftState [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 13 01 00 [17:13:51]Write to MH i2c: E2 08 00 A3 1E 80 13 01 00 00 00 00 00 3E [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0E 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0E 00 A3 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F5 [17:13:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_GetShiftState done [17:13:51]FM_GetShiftState done [17:13:51]req_shift_opened done [17:13:51]requested_item shift.open_date is exist - process it [17:13:51]req_shift_open_date [17:13:51]req_shift_open_date done [17:13:51]produce_requested_data done [17:13:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139410,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:13:51]process_action_free close_receipt [17:13:51]json_value_free [17:13:51]json_value_free done [17:13:51]process_json_proto returns [17:13:51]Send response to host [17:13:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139410,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:13:51]free response buf [17:13:51]execute_script done [17:13:51]execute_script returns [17:13:51]free content buf [17:13:51]Sock 9.Close socket [17:13:51]Sock 9.Thread stoped [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]accept exits with 8 [17:18:05]New connection [17:18:05]New thread 3066817892 created [17:18:05]Thread 3066674532 joined [17:18:05]Waiting for new connection... [17:18:05] Sock 8.Parse request [17:18:05]Sock 8.Check first char [17:18:05]Sock 8.First char is OK [17:18:05]request: POST /json_proto HTTP/1.0 [17:18:05]Method: POST [17:18:05]URL: /json_proto [17:18:05]Method is POST - this is cgi request [17:18:05]url: /json_proto [17:18:05]query_string will be loaded in cgi processing [17:18:05]execute_cgi json_proto POST (null) [17:18:05]execute_cgi path=json_proto method=POST [17:18:05]POST find Content-Length [17:18:05]Host: 172.17.45.67:8080 [17:18:05]Content-Length: 677 [17:18:05]Content-Type: application/json [17:18:05] [17:18:05]POST finish read [17:18:05]Found Content-Length = 677 [17:18:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:18:05]execute_script... [17:18: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)593253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:18:05]POST & json_proto [17:18:05]process_json_proto [17:18:05]json parsed OK: [17:18:05]protocol is kg_v1.0 [17:18:05]action value=close_receipt [17:18:05]process_action close_receipt [17:18:05]cmd_close_receipt [17:18:05]MH_GetDate [17:18:05]Write to MH i2c: F0 00 00 A4 1E B1 [17:18:05]Write i2c OK [17:18:05]MH_I2C_Read... [17:18:05]Read from MH i2c: F0 [17:18:05]MH_I2C_Read... [17:18:05]Read from MH i2c: F0 09 00 [17:18:05]MH_I2C_Read... [17:18:05]Read from MH i2c: F0 09 00 A4 1E 00 4E 7E C3 66 5F 7F 2B 66 1E [17:18:05]GetLastDocTimeStamp 1724087629 [17:18:05]current date 1724087886 [17:18:05]FM_GetShiftState [17:18:05]SAM_PROTO_GetShiftState [17:18:05]wFMCommunicate request_size=4 [17:18:05]MH_SAM_APDU [17:18:05]CAPDU: 80 13 01 00 [17:18:05]Write to MH i2c: E2 08 00 A5 1E 80 13 01 00 00 00 00 00 40 [17:18:05]Write i2c OK [17:18:05]MH_I2C_Read... [17:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:05]Read from MH i2c: E2 [17:18:05]MH_I2C_Read... [17:18:05]Read from MH i2c: E2 0E 00 [17:18:05]MH_I2C_Read... [17:18:05]Read from MH i2c: E2 0E 00 A5 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F7 [17:18:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:18:05]wFMCommunicate OK [17:18:05]SAM_PROTO_GetShiftState done [17:18:05]FM_GetShiftState done [17:18:05]opened in 1724027888 [17:18:05]opened+sec_in_day 1724114288 [17:18:05]quantity*price = 20001 [17:18:05]sum+1 = 20002 [17:18:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 246 19.08.2024 17:18 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139411 ФПД: 113251491501896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139411&fm=113251491501896&tin=02508201610067®Number=0000000000092569&sum=20000 [17:18:06]StoreToDocumentArchive [17:18:06]shift 452 fd 139411 [17:18:06]save to /storage/0452/doc_00139411 [17:18:06]save last doc name /storage/0452/doc_00139411 to /storage/kkm_last_doc_name [17:18:06]save OK [17:18:06]Clear old archive folders... [17:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:06]tlvbuf is B6E87B80 [17:18:06]SAM_PROTO_ClearQueue [17:18:06]wFMCommunicate request_size=4 [17:18:06]MH_SAM_APDU [17:18:06]CAPDU: 80 09 00 00 [17:18:06]Write to MH i2c: E2 08 00 B2 1E 80 09 00 00 00 00 00 00 42 [17:18:06]Write i2c OK [17:18:06]MH_I2C_Read... [17:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:06]Read from MH i2c: E2 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 03 00 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [17:18:06]RAPDU: 90 00 [17:18:06]wFMCommunicate OK [17:18:06]SAM_PROTO_ClearQueue done [17:18:06]KKMCreateOFDPacket [17:18:06]OFDProtocolAddRootSTLVToBuf [17:18:06]FM_MakeSignedData [17:18:06]FM_MakeSignedData [17:18:06]SAM_PROTO_SignData [17:18:06]wFMCommunicate request_size=4 [17:18:06]MH_SAM_APDU [17:18:06]CAPDU: 80 0D 01 02 [17:18:06]Write to MH i2c: E2 08 00 B3 1E 80 0D 01 02 00 00 00 00 4A [17:18:06]Write i2c OK [17:18:06]MH_I2C_Read... [17:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:06]Read from MH i2c: E2 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 03 00 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [17:18:06]RAPDU: 90 00 [17:18:06]wFMCommunicate OK [17:18:06]wFMCommunicate request_size=255 [17:18:06]MH_SAM_APDU [17:18: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 F6 00 00 00 F4 03 04 00 4E 7E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 20 02 00 35 04 06 00 67 [17:18:06]Write to MH i2c: E2 02 01 B4 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 F6 00 00 00 F4 03 04 00 4E 7E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 20 02 00 35 04 06 00 67 00 00 A1 [17:18:06]Write i2c OK [17:18:06]MH_I2C_Read... [17:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:06]Read from MH i2c: E2 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 03 00 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 03 00 B4 1E 00 90 00 46 [17:18:06]RAPDU: 90 00 [17:18:06]wFMCommunicate OK [17:18:06]wFMCommunicate request_size=10 [17:18:06]MH_SAM_APDU [17:18:06]CAPDU: 80 0D 02 02 05 00 6A EB D7 48 [17:18:06]Write to MH i2c: E2 0D 00 B5 1E 80 0D 02 02 05 00 00 6A EB D7 48 00 00 CB [17:18:06]Write i2c OK [17:18:06]MH_I2C_Read... [17:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:06]Read from MH i2c: E2 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 03 00 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [17:18:06]RAPDU: 90 00 [17:18:06]wFMCommunicate OK [17:18:06]wFMCommunicate request_size=4 [17:18:06]MH_SAM_APDU [17:18:06]CAPDU: 80 0D 03 02 [17:18:06]Write to MH i2c: E2 08 00 B6 1E 80 0D 03 02 00 00 00 00 4F [17:18:06]Write i2c OK [17:18:06]MH_I2C_Read... [17:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:06]Read from MH i2c: E2 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 0B 00 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 0B 00 B6 1E 00 B4 F4 7A C8 DD 9A 81 B6 90 00 E8 [17:18:06]RAPDU: B4 F4 7A C8 DD 9A 81 B6 90 00 [17:18:06]wFMCommunicate OK [17:18:06]SAM_PROTO_SignData done [17:18:06]FM_MakeSignedData done [17:18:06]CreateOFDProtocolMessage [17:18:06]wFMCommunicate request_size=4 [17:18:06]MH_SAM_APDU [17:18:06]CAPDU: 80 11 00 00 [17:18:06]Write to MH i2c: E2 08 00 B7 1E 80 11 00 00 00 00 00 00 4F [17:18:06]Write i2c OK [17:18:06]MH_I2C_Read... [17:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:06]Read from MH i2c: E2 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 17 00 [17:18:06]MH_I2C_Read... [17:18:06]Read from MH i2c: E2 17 00 B7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [17:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:18:06]wFMCommunicate OK [17:18:06]CreateOFDProtocolMessage done [17:18:06]OFDSenderStorePacket 139411 [17:18:06]StoreOFDPacket docnum=139411 [17:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 ED 15 07 01 AE 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 F6 00 00 00 F4 03 04 00 4E 7E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 20 02 00 35 04 06 00 67 00 6A EB D7 48 B4 F4 7A C8 DD 9A 81 B6 [17:18:06]CheckFolder [17:18:06]dirname=/storage/ofd_packets [17:18:06]CheckFolder done [17:18:06]ProducePacketName [17:18:06]name=ofd_packets/00139411 [17:18:06]NVStorageSaveData ofd_packets/00139411 [17:18:06]File name is /storage/ofd_packets/00139411 [17:18:06]Write 301 bytes [17:18:06]NVStorageSaveData done [17:18:06]OFDSenderStorePacket done [17:18:06]KKMCreateOFDPacket done [17:18:06]NVStorageSaveData kkm_last_timestamp [17:18:06]File name is /storage/kkm_last_timestamp [17:18:06]Write 4 bytes [17:18:06]NVStorageSaveData done [17:18:06]ExternCall_PrintAddStr [17:18:06]wPrintStart [17:18:06]Write to MH i2c: 01 00 00 B8 1E D6 [17:18:07]Write i2c OK [17:18:07]MH_I2C_Read... [17:18:07]Read from MH i2c: 01 [17:18:07]MH_I2C_Read... [17:18:07]Read from MH i2c: 01 07 00 [17:18:07]MH_I2C_Read... [17:18:07]Read from MH i2c: 01 07 00 B8 1E 00 00 00 00 00 FF 0F EB [17:18:07]RasterBufferAndPrint [17:18:07]line Счет N : (1)593253 [17:18:07]line ИНН: 02508201610067 [17:18:07]line Контрольно-Кассовый Чек [17:18:07]line ПРОДАЖА [17:18:07]line ТРК (МРК, ГНК) : 52 [17:18:07]line Товар: 2710124130 [17:18:07]line Аи-92-К-5 [17:18:07]line 2.950 * 67.80 [17:18:07]line = 200.01 [17:18:07]line НДС 12% НСП 1% [17:18:07]line > о реализуемом товаре [17:18:07]line ОКРУГЛЕНИЕ: -0.01 [17:18:07]line ИТОГО: 200.00 [17:18:07]line Внесено: 200.00 [17:18:07]line СДАЧА: 0.00 [17:18:07]line НСП 1% : 1.77 [17:18:07]line НДС 12% : 21.24 [17:18:07]line Наличными: 200.00 [17:18:07]line Безнал.: 0.00 [17:18:07]line Место: АЗС № 136 "Партнер Нефть" [17:18:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:18:07]line СНО: Общий режим [17:18:07]line Чек 246 19.08.2024 17:18 [17:18:07]line Смена: 452 ФФД: 1.0 [17:18:07]line ЗНМ: 0300000067 [17:18:07]line РНМ: 0000000000092569 [17:18:07]line Версия ККМ: 001 [17:18:07]line ФМ: 0000000000871776 [17:18:07]line ФД: 139411 [17:18:07]line ФПД: 113251491501896 [17:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139411&fm=113251491501896&tin=02508201610067®Number=0000000000092569&sum=20000 [17:18:07]OFD Sender: Processing packet 139411 [packets to send 137, broken 136] [17:18:07]ProducePacketName [17:18:07]name=ofd_packets/00139411 [17:18:07]OFD Sender: To server: pG, [17:18:07]CommunicateWithHost lk.salyk.kg:30040 [17:18:07]ConnectInit lk.salyk.kg [17:18:07]written 0, free lines is 4095 [17:18:07]Connected sock=10 [17:18: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 37 36 0F 01 00 00 ED 15 07 01 AE 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 F6 00 00 00 F4 03 04 00 4E 7E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 20 02 00 35 04 06 00 67 00 6A EB D7 48 B4 F4 7A C8 DD 9A 81 B6 [17:18: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 37 36 4F 00 00 00 AF FE 47 00 71 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 37 36 10 04 04 00 93 20 02 00 F4 03 04 00 E4 24 C3 66 B6 04 01 00 00 55 26 8D 19 CB B1 6D 86 [17:18:07]CommunicateWithHost err = 0 [17:18:07]CheckOFDResponse [17:18:07]1017 (14) - 77093643461234 [17:18:07]1041 (16) - 0000000000871776 [17:18:07]1040 (4) - 139411 [17:18:07]1012 (4) - 19.08.2024 10:56 [17:18:07]1206 (1) - 0 [17:18:07]OFD Sender: Remove packet 139411 [17:18:07]ProducePacketName [17:18:07]name=ofd_packets/00139411 [17:18:07]NVStorageDeleteData [17:18:07]Write to MH i2c: 01 00 00 E3 1E 01 [17:18:07]Write i2c OK [17:18:07]MH_I2C_Read... [17:18:07]Read from MH i2c: 01 [17:18:07]MH_I2C_Read... [17:18:07]Read from MH i2c: 01 07 00 [17:18:07]MH_I2C_Read... [17:18:07]Read from MH i2c: 01 07 00 E3 1E 00 00 00 00 00 DA 0C EE [17:18:07]RasterBufferAndPrint [17:18:07]line [17:18:07]line [17:18:07]line [17:18:07]line [17:18:07]line [17:18:07]written 0, free lines is 3297 [17:18:07]MH_Cut [17:18:07]Write to MH i2c: D1 01 00 EA 1E 01 DA [17:18:07]Write i2c OK [17:18:07]MH_I2C_Read... [17:18:07]Read from MH i2c: D1 [17:18:07]MH_I2C_Read... [17:18:07]Read from MH i2c: D1 01 00 [17:18:07]MH_I2C_Read... [17:18:07]Read from MH i2c: D1 01 00 EA 1E 00 D9 [17:18:07]Write to MH i2c: 01 00 00 EB 1E 09 [17:18:07]Write i2c OK [17:18:07]MH_I2C_Read... [17:18:07]OFD Sender: No OFD packet to send [17:18:08]*** Cut start [17:18:08]*** Partial cut [17:18:08]*** CUTSNS_PIN = 1 [17:18:08]*** CUTSNS_PIN = 0 [17:18:08]*** Brake cut motor [17:18:08]Read from MH i2c: 01 [17:18:08]MH_I2C_Read... [17:18:08]*** Stop cut motor [17:18:08]*** Cut end [17:18:08]Read from MH i2c: 01 07 00 [17:18:08]MH_I2C_Read... [17:18:08]Read from MH i2c: 01 07 00 EB 1E 00 00 00 00 00 FF 0F 1E [17:18:08]process_action close_receipt done [17:18:08]requested_data is exist [17:18:08]produce_requested_data [17:18:08]requested_item fm.sn is exist - process it [17:18:08]wFMCommunicate request_size=4 [17:18:08]MH_SAM_APDU [17:18:08]CAPDU: 80 11 00 00 [17:18:08]Write to MH i2c: E2 08 00 EC 1E 80 11 00 00 00 00 00 00 84 [17:18:08]Write i2c OK [17:18:08]MH_I2C_Read... [17:18:08]Read from MH i2c: E2 [17:18:08]MH_I2C_Read... [17:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:08]Read from MH i2c: E2 17 00 [17:18:08]MH_I2C_Read... [17:18:08]Read from MH i2c: E2 17 00 EC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [17:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:18:08]wFMCommunicate OK [17:18:08]requested_item fd.num is exist - process it [17:18:08]SAM_PROTO_GetFieldsCounters [17:18:08]wFMCommunicate request_size=4 [17:18:08]MH_SAM_APDU [17:18:08]CAPDU: 80 13 00 00 [17:18:08]Write to MH i2c: E2 08 00 ED 1E 80 13 00 00 00 00 00 00 87 [17:18:08]Write i2c OK [17:18:08]MH_I2C_Read... [17:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:08]Read from MH i2c: E2 [17:18:08]MH_I2C_Read... [17:18:08]Read from MH i2c: E2 62 00 [17:18:08]MH_I2C_Read... [17:18:08]Read from MH i2c: E2 62 00 ED 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [17:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:08]wFMCommunicate OK [17:18:08]SAM_PROTO_GetFieldsCounters done [17:18:08]requested_item shift.num is exist - process it [17:18:08]requested_item shift.opened is exist - process it [17:18:08]req_shift_opened [17:18:08]FM_GetShiftState [17:18:08]SAM_PROTO_GetShiftState [17:18:08]wFMCommunicate request_size=4 [17:18:08]MH_SAM_APDU [17:18:08]CAPDU: 80 13 01 00 [17:18:08]Write to MH i2c: E2 08 00 EE 1E 80 13 01 00 00 00 00 00 89 [17:18:08]Write i2c OK [17:18:08]MH_I2C_Read... [17:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:09]Read from MH i2c: E2 [17:18:09]MH_I2C_Read... [17:18:09]Read from MH i2c: E2 0E 00 [17:18:09]MH_I2C_Read... [17:18:09]Read from MH i2c: E2 0E 00 EE 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 40 [17:18:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:18:09]wFMCommunicate OK [17:18:09]SAM_PROTO_GetShiftState done [17:18:09]FM_GetShiftState done [17:18:09]req_shift_opened done [17:18:09]requested_item shift.open_date is exist - process it [17:18:09]req_shift_open_date [17:18:09]req_shift_open_date done [17:18:09]produce_requested_data done [17:18:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139411,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:18:09]process_action_free close_receipt [17:18:09]json_value_free [17:18:09]json_value_free done [17:18:09]process_json_proto returns [17:18:09]Send response to host [17:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139411,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:18:09]free response buf [17:18:09]execute_script done [17:18:09]execute_script returns [17:18:09]free content buf [17:18:09]Sock 8.Close socket [17:18:09]Sock 8.Thread stoped [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:03]accept exits with 9 [17:23:03]New connection [17:23:03]New thread 3066674532 created [17:23:03]Thread 3066817892 joined [17:23:03]Waiting for new connection... [17:23:03] Sock 9.Parse request [17:23:03]Sock 9.Check first char [17:23:03]Sock 9.First char is OK [17:23:03]request: POST /json_proto HTTP/1.0 [17:23:03]Method: POST [17:23:03]URL: /json_proto [17:23:03]Method is POST - this is cgi request [17:23:03]url: /json_proto [17:23:03]query_string will be loaded in cgi processing [17:23:03]execute_cgi json_proto POST (null) [17:23:03]execute_cgi path=json_proto method=POST [17:23:03]POST find Content-Length [17:23:03]Host: 172.17.45.67:8080 [17:23:03]Content-Length: 677 [17:23:03]Content-Type: application/json [17:23:03] [17:23:03]POST finish read [17:23:03]Found Content-Length = 677 [17:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [17:23:03]execute_script... [17:23: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)593255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [17:23:03]POST & json_proto [17:23:03]process_json_proto [17:23:03]json parsed OK: [17:23:03]protocol is kg_v1.0 [17:23:03]action value=close_receipt [17:23:03]process_action close_receipt [17:23:03]cmd_close_receipt [17:23:03]MH_GetDate [17:23:03]Write to MH i2c: F0 00 00 EF 1E FC [17:23:03]Write i2c OK [17:23:03]MH_I2C_Read... [17:23:03]Read from MH i2c: F0 [17:23:03]MH_I2C_Read... [17:23:03]Read from MH i2c: F0 09 00 [17:23:03]MH_I2C_Read... [17:23:03]Read from MH i2c: F0 09 00 EF 1E 00 79 7F C3 66 5F 7F 2B 66 95 [17:23:03]GetLastDocTimeStamp 1724087886 [17:23:03]current date 1724088185 [17:23:03]FM_GetShiftState [17:23:03]SAM_PROTO_GetShiftState [17:23:03]wFMCommunicate request_size=4 [17:23:03]MH_SAM_APDU [17:23:03]CAPDU: 80 13 01 00 [17:23:03]Write to MH i2c: E2 08 00 F0 1E 80 13 01 00 00 00 00 00 8B [17:23:03]Write i2c OK [17:23:03]MH_I2C_Read... [17:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:03]Read from MH i2c: E2 [17:23:03]MH_I2C_Read... [17:23:03]Read from MH i2c: E2 0E 00 [17:23:03]MH_I2C_Read... [17:23:03]Read from MH i2c: E2 0E 00 F0 1E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 42 [17:23:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:23:03]wFMCommunicate OK [17:23:03]SAM_PROTO_GetShiftState done [17:23:03]FM_GetShiftState done [17:23:03]opened in 1724027888 [17:23:03]opened+sec_in_day 1724114288 [17:23:03]quantity*price = 70044 [17:23:03]sum+1 = 70046 [17:23:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 247 19.08.2024 17:23 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139412 ФПД: 204238453267608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172305&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139412&fm=204238453267608&tin=02508201610067®Number=0000000000092569&sum=70000 [17:23:04]StoreToDocumentArchive [17:23:04]shift 452 fd 139412 [17:23:04]save to /storage/0452/doc_00139412 [17:23:04]save last doc name /storage/0452/doc_00139412 to /storage/kkm_last_doc_name [17:23:04]save OK [17:23:04]Clear old archive folders... [17:23:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:04]tlvbuf is 01225A30 [17:23:04]SAM_PROTO_ClearQueue [17:23:04]wFMCommunicate request_size=4 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 09 00 00 [17:23:04]Write to MH i2c: E2 08 00 FD 1E 80 09 00 00 00 00 00 00 8D [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:04]Read from MH i2c: E2 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 FD 1E 00 90 00 8F [17:23:04]RAPDU: 90 00 [17:23:04]wFMCommunicate OK [17:23:04]SAM_PROTO_ClearQueue done [17:23:04]KKMCreateOFDPacket [17:23:04]OFDProtocolAddRootSTLVToBuf [17:23:04]FM_MakeSignedData [17:23:04]FM_MakeSignedData [17:23:04]SAM_PROTO_SignData [17:23:04]wFMCommunicate request_size=4 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 0D 01 02 [17:23:04]Write to MH i2c: E2 08 00 FE 1E 80 0D 01 02 00 00 00 00 95 [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:04]Read from MH i2c: E2 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 FE 1E 00 90 00 90 [17:23:04]RAPDU: 90 00 [17:23:04]wFMCommunicate OK [17:23:04]wFMCommunicate request_size=255 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 F7 00 00 00 F4 03 04 00 79 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 20 02 00 35 04 06 00 B9 [17:23:04]Write to MH i2c: E2 02 01 FF 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 F7 00 00 00 F4 03 04 00 79 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 20 02 00 35 04 06 00 B9 00 00 61 [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:04]Read from MH i2c: E2 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 FF 1E 00 90 00 91 [17:23:04]RAPDU: 90 00 [17:23:04]wFMCommunicate OK [17:23:04]wFMCommunicate request_size=10 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 0D 02 02 05 C0 F8 74 DC 98 [17:23:04]Write to MH i2c: E2 0D 00 00 1F 80 0D 02 02 05 00 C0 F8 74 DC 98 00 00 43 [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:05]Read from MH i2c: E2 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: E2 03 00 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [17:23:05]RAPDU: 90 00 [17:23:05]wFMCommunicate OK [17:23:05]wFMCommunicate request_size=4 [17:23:05]MH_SAM_APDU [17:23:05]CAPDU: 80 0D 03 02 [17:23:05]Write to MH i2c: E2 08 00 01 1F 80 0D 03 02 00 00 00 00 9B [17:23:05]Write i2c OK [17:23:05]MH_I2C_Read... [17:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:05]Read from MH i2c: E2 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: E2 0B 00 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: E2 0B 00 01 1F 00 72 30 5A BA 8B A3 9A D1 90 00 EB [17:23:05]RAPDU: 72 30 5A BA 8B A3 9A D1 90 00 [17:23:05]wFMCommunicate OK [17:23:05]SAM_PROTO_SignData done [17:23:05]FM_MakeSignedData done [17:23:05]CreateOFDProtocolMessage [17:23:05]wFMCommunicate request_size=4 [17:23:05]MH_SAM_APDU [17:23:05]CAPDU: 80 11 00 00 [17:23:05]Write to MH i2c: E2 08 00 02 1F 80 11 00 00 00 00 00 00 9B [17:23:05]Write i2c OK [17:23:05]MH_I2C_Read... [17:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:05]Read from MH i2c: E2 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: E2 17 00 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: E2 17 00 02 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [17:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:23:05]wFMCommunicate OK [17:23:05]CreateOFDProtocolMessage done [17:23:05]OFDSenderStorePacket 139412 [17:23:05]StoreOFDPacket docnum=139412 [17:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D6 22 07 01 1A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 F7 00 00 00 F4 03 04 00 79 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 20 02 00 35 04 06 00 B9 C0 F8 74 DC 98 72 30 5A BA 8B A3 9A D1 [17:23:05]CheckFolder [17:23:05]dirname=/storage/ofd_packets [17:23:05]CheckFolder done [17:23:05]ProducePacketName [17:23:05]name=ofd_packets/00139412 [17:23:05]NVStorageSaveData ofd_packets/00139412 [17:23:05]File name is /storage/ofd_packets/00139412 [17:23:05]Write 301 bytes [17:23:05]NVStorageSaveData done [17:23:05]OFDSenderStorePacket done [17:23:05]KKMCreateOFDPacket done [17:23:05]NVStorageSaveData kkm_last_timestamp [17:23:05]File name is /storage/kkm_last_timestamp [17:23:05]Write 4 bytes [17:23:05]NVStorageSaveData done [17:23:05]ExternCall_PrintAddStr [17:23:05]wPrintStart [17:23:05]Write to MH i2c: 01 00 00 03 1F 22 [17:23:05]Write i2c OK [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: 01 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: 01 07 00 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: 01 07 00 03 1F 00 00 00 00 00 FF 0F 37 [17:23:05]RasterBufferAndPrint [17:23:05]line Счет N : (1)593255 [17:23:05]line ИНН: 02508201610067 [17:23:05]line Контрольно-Кассовый Чек [17:23:05]line ПРОДАЖА [17:23:05]line ТРК (МРК, ГНК) : 31 [17:23:05]line Товар: 2710124500 [17:23:05]line Аи-95-К-5 [17:23:05]line 9.440 * 74.20 [17:23:05]line = 700.45 [17:23:05]line НДС 12% НСП 1% [17:23:05]line > о реализуемом товаре [17:23:05]line ОКРУГЛЕНИЕ: -0.45 [17:23:05]line ИТОГО: 700.00 [17:23:05]line Внесено: 700.00 [17:23:05]line СДАЧА: 0.00 [17:23:05]line НСП 1% : 6.20 [17:23:05]line НДС 12% : 74.38 [17:23:05]line Наличными: 700.00 [17:23:05]line Безнал.: 0.00 [17:23:05]line Место: АЗС № 136 "Партнер Нефть" [17:23:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:23:05]line СНО: Общий режим [17:23:05]line Чек 247 19.08.2024 17:23 [17:23:05]line Смена: 452 ФФД: 1.0 [17:23:05]line ЗНМ: 0300000067 [17:23:05]line РНМ: 0000000000092569 [17:23:05]line Версия ККМ: 001 [17:23:05]line ФМ: 0000000000871776 [17:23:05]line ФД: 139412 [17:23:05]line ФПД: 204238453267608 [17:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172305&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139412&fm=204238453267608&tin=02508201610067®Number=0000000000092569&sum=70000 [17:23:05]OFD Sender: Processing packet 139412 [packets to send 137, broken 136] [17:23:05]ProducePacketName [17:23:05]name=ofd_packets/00139412 [17:23:05]OFD Sender: To server: pG, [17:23:05]CommunicateWithHost lk.salyk.kg:30040 [17:23:05]ConnectInit lk.salyk.kg [17:23:05]written 0, free lines is 4095 [17:23:05]Connected sock=10 [17:23: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 37 36 0F 01 00 00 D6 22 07 01 1A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 F7 00 00 00 F4 03 04 00 79 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 20 02 00 35 04 06 00 B9 C0 F8 74 DC 98 72 30 5A BA 8B A3 9A D1 [17:23: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 37 36 4F 00 00 00 61 14 47 00 32 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 37 36 10 04 04 00 94 20 02 00 F4 03 04 00 0E 26 C3 66 B6 04 01 00 00 49 67 28 EB 29 FD 43 8E [17:23:05]CommunicateWithHost err = 0 [17:23:05]CheckOFDResponse [17:23:05]1017 (14) - 77093643461234 [17:23:05]1041 (16) - 0000000000871776 [17:23:05]1040 (4) - 139412 [17:23:05]1012 (4) - 19.08.2024 11:01 [17:23:05]1206 (1) - 0 [17:23:05]OFD Sender: Remove packet 139412 [17:23:05]ProducePacketName [17:23:05]name=ofd_packets/00139412 [17:23:05]NVStorageDeleteData [17:23:05]Write to MH i2c: 01 00 00 2E 1F 4D [17:23:05]Write i2c OK [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: 01 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: 01 07 00 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: 01 07 00 2E 1F 00 00 00 00 00 C7 0C 27 [17:23:05]RasterBufferAndPrint [17:23:05]line [17:23:05]line [17:23:05]line [17:23:05]line [17:23:05]line [17:23:05]written 0, free lines is 3277 [17:23:05]MH_Cut [17:23:05]Write to MH i2c: D1 01 00 35 1F 01 26 [17:23:05]Write i2c OK [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: D1 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: D1 01 00 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: D1 01 00 35 1F 00 25 [17:23:05]Write to MH i2c: 01 00 00 36 1F 55 [17:23:05]Write i2c OK [17:23:05]MH_I2C_Read... [17:23:06]OFD Sender: No OFD packet to send [17:23:06]*** Cut start [17:23:06]*** Partial cut [17:23:06]*** CUTSNS_PIN = 1 [17:23:06]*** CUTSNS_PIN = 0 [17:23:06]*** Brake cut motor [17:23:07]Read from MH i2c: 01 [17:23:07]MH_I2C_Read... [17:23:07]*** Stop cut motor [17:23:07]*** Cut end [17:23:07]Read from MH i2c: 01 07 00 [17:23:07]MH_I2C_Read... [17:23:07]Read from MH i2c: 01 07 00 36 1F 00 00 00 00 00 FF 0F 6A [17:23:07]process_action close_receipt done [17:23:07]requested_data is exist [17:23:07]produce_requested_data [17:23:07]requested_item fm.sn is exist - process it [17:23:07]wFMCommunicate request_size=4 [17:23:07]MH_SAM_APDU [17:23:07]CAPDU: 80 11 00 00 [17:23:07]Write to MH i2c: E2 08 00 37 1F 80 11 00 00 00 00 00 00 D0 [17:23:07]Write i2c OK [17:23:07]MH_I2C_Read... [17:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:07]Read from MH i2c: E2 [17:23:07]MH_I2C_Read... [17:23:07]Read from MH i2c: E2 17 00 [17:23:07]MH_I2C_Read... [17:23:07]Read from MH i2c: E2 17 00 37 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [17:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:23:07]wFMCommunicate OK [17:23:07]requested_item fd.num is exist - process it [17:23:07]SAM_PROTO_GetFieldsCounters [17:23:07]wFMCommunicate request_size=4 [17:23:07]MH_SAM_APDU [17:23:07]CAPDU: 80 13 00 00 [17:23:07]Write to MH i2c: E2 08 00 38 1F 80 13 00 00 00 00 00 00 D3 [17:23:07]Write i2c OK [17:23:07]MH_I2C_Read... [17:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:07]Read from MH i2c: E2 [17:23:07]MH_I2C_Read... [17:23:07]Read from MH i2c: E2 62 00 [17:23:07]MH_I2C_Read... [17:23:07]Read from MH i2c: E2 62 00 38 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [17:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:07]wFMCommunicate OK [17:23:07]SAM_PROTO_GetFieldsCounters done [17:23:07]requested_item shift.num is exist - process it [17:23:07]requested_item shift.opened is exist - process it [17:23:07]req_shift_opened [17:23:07]FM_GetShiftState [17:23:07]SAM_PROTO_GetShiftState [17:23:07]wFMCommunicate request_size=4 [17:23:07]MH_SAM_APDU [17:23:07]CAPDU: 80 13 01 00 [17:23:07]Write to MH i2c: E2 08 00 39 1F 80 13 01 00 00 00 00 00 D5 [17:23:07]Write i2c OK [17:23:07]MH_I2C_Read... [17:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:07]Read from MH i2c: E2 [17:23:07]MH_I2C_Read... [17:23:07]Read from MH i2c: E2 0E 00 [17:23:07]MH_I2C_Read... [17:23:07]Read from MH i2c: E2 0E 00 39 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8C [17:23:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:23:07]wFMCommunicate OK [17:23:07]SAM_PROTO_GetShiftState done [17:23:07]FM_GetShiftState done [17:23:07]req_shift_opened done [17:23:07]requested_item shift.open_date is exist - process it [17:23:07]req_shift_open_date [17:23:07]req_shift_open_date done [17:23:07]produce_requested_data done [17:23:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139412,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:23:07]process_action_free close_receipt [17:23:07]json_value_free [17:23:07]json_value_free done [17:23:07]process_json_proto returns [17:23:07]Send response to host [17:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139412,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:23:07]free response buf [17:23:07]execute_script done [17:23:07]execute_script returns [17:23:07]free content buf [17:23:07]Sock 9.Close socket [17:23:07]Sock 9.Thread stoped [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:10]accept exits with 8 [17:24:10]New connection [17:24:10]New thread 3066817892 created [17:24:10]Thread 3066674532 joined [17:24:10]Waiting for new connection... [17:24:10] Sock 8.Parse request [17:24:10]Sock 8.Check first char [17:24:10]Sock 8.First char is OK [17:24:10]request: POST /json_proto HTTP/1.0 [17:24:10]Method: POST [17:24:10]URL: /json_proto [17:24:10]Method is POST - this is cgi request [17:24:10]url: /json_proto [17:24:10]query_string will be loaded in cgi processing [17:24:10]execute_cgi json_proto POST (null) [17:24:10]execute_cgi path=json_proto method=POST [17:24:10]POST find Content-Length [17:24:10]Host: 172.17.45.67:8080 [17:24:10]Content-Length: 659 [17:24:10]Content-Type: application/json [17:24:10] [17:24:10]POST finish read [17:24:10]Found Content-Length = 659 [17:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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" ] } } [17:24:10]execute_script... [17:24: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)593256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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" ] } } [17:24:10]POST & json_proto [17:24:10]process_json_proto [17:24:10]json parsed OK: [17:24:10]protocol is kg_v1.0 [17:24:10]action value=close_receipt [17:24:10]process_action close_receipt [17:24:10]cmd_close_receipt [17:24:10]MH_GetDate [17:24:10]Write to MH i2c: F0 00 00 3A 1F 48 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: F0 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: F0 09 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: F0 09 00 3A 1F 00 BB 7F C3 66 5F 7F 2B 66 23 [17:24:10]GetLastDocTimeStamp 1724088185 [17:24:10]current date 1724088251 [17:24:10]FM_GetShiftState [17:24:10]SAM_PROTO_GetShiftState [17:24:10]wFMCommunicate request_size=4 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 13 01 00 [17:24:10]Write to MH i2c: E2 08 00 3B 1F 80 13 01 00 00 00 00 00 D7 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 0E 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 0E 00 3B 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8E [17:24:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:24:10]wFMCommunicate OK [17:24:10]SAM_PROTO_GetShiftState done [17:24:10]FM_GetShiftState done [17:24:10]opened in 1724027888 [17:24:10]opened+sec_in_day 1724114288 [17:24:10]quantity*price = 70038 [17:24:10]sum+1 = 70039 [17:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 248 19.08.2024 17:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139413 ФПД: 149189875918590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139413&fm=149189875918590&tin=02508201610067®Number=0000000000092569&sum=70000 [17:24:11]StoreToDocumentArchive [17:24:11]shift 452 fd 139413 [17:24:11]save to /storage/0452/doc_00139413 [17:24:11]save last doc name /storage/0452/doc_00139413 to /storage/kkm_last_doc_name [17:24:11]save OK [17:24:11]Clear old archive folders... [17:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:24:11]tlvbuf is B6EA03D0 [17:24:11]SAM_PROTO_ClearQueue [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 09 00 00 [17:24:11]Write to MH i2c: E2 08 00 48 1F 80 09 00 00 00 00 00 00 D9 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 48 1F 00 90 00 DB [17:24:11]RAPDU: 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_ClearQueue done [17:24:11]KKMCreateOFDPacket [17:24:11]OFDProtocolAddRootSTLVToBuf [17:24:11]FM_MakeSignedData [17:24:11]FM_MakeSignedData [17:24:11]SAM_PROTO_SignData [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 0D 01 02 [17:24:11]Write to MH i2c: E2 08 00 49 1F 80 0D 01 02 00 00 00 00 E1 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 49 1F 00 90 00 DC [17:24:11]RAPDU: 90 00 [17:24:11]wFMCommunicate OK [17:24:11]wFMCommunicate request_size=253 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 F8 00 00 00 F4 03 04 00 BB 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 20 02 00 35 04 06 00 87 AF F9 8E E6 FE [17:24:11]Write to MH i2c: E2 00 01 4A 1F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 F8 00 00 00 F4 03 04 00 BB 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 20 02 00 35 04 06 00 87 AF F9 8E E6 FE 00 00 45 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]OFD Sender: No OFD packet to send [17:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 03 00 4A 1F 00 90 00 DD [17:24:11]RAPDU: 90 00 [17:24:11]wFMCommunicate OK [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 0D 03 02 [17:24:11]Write to MH i2c: E2 08 00 4B 1F 80 0D 03 02 00 00 00 00 E5 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0B 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0B 00 4B 1F 00 A9 F2 B1 7A 85 06 1B F9 90 00 4B [17:24:11]RAPDU: A9 F2 B1 7A 85 06 1B F9 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_SignData done [17:24:11]FM_MakeSignedData done [17:24:11]CreateOFDProtocolMessage [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 11 00 00 [17:24:11]Write to MH i2c: E2 08 00 4C 1F 80 11 00 00 00 00 00 00 E5 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 17 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 17 00 4C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [17:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:11]wFMCommunicate OK [17:24:11]CreateOFDProtocolMessage done [17:24:11]OFDSenderStorePacket 139413 [17:24:11]StoreOFDPacket docnum=139413 [17:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 C4 CB 00 01 A0 C3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 F8 00 00 00 F4 03 04 00 BB 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 20 02 00 35 04 06 00 87 AF F9 8E E6 FE A9 F2 B1 7A 85 06 1B F9 [17:24:11]CheckFolder [17:24:11]dirname=/storage/ofd_packets [17:24:11]CheckFolder done [17:24:11]ProducePacketName [17:24:11]name=ofd_packets/00139413 [17:24:11]NVStorageSaveData ofd_packets/00139413 [17:24:11]File name is /storage/ofd_packets/00139413 [17:24:11]Write 294 bytes [17:24:11]NVStorageSaveData done [17:24:11]OFDSenderStorePacket done [17:24:11]KKMCreateOFDPacket done [17:24:11]NVStorageSaveData kkm_last_timestamp [17:24:11]File name is /storage/kkm_last_timestamp [17:24:11]Write 4 bytes [17:24:11]NVStorageSaveData done [17:24:11]ExternCall_PrintAddStr [17:24:11]wPrintStart [17:24:11]Write to MH i2c: 01 00 00 4D 1F 6C [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 07 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: 01 07 00 4D 1F 00 00 00 00 00 FF 0F 81 [17:24:11]RasterBufferAndPrint [17:24:11]line Счет N : (1)593256 [17:24:11]line ИНН: 02508201610067 [17:24:11]line Контрольно-Кассовый Чек [17:24:11]line ПРОДАЖА [17:24:11]line ТРК (МРК, ГНК) : 63 [17:24:11]line Товар: 2710124130 [17:24:11]line SU-92 [17:24:11]line 10.180 * 68.80 [17:24:11]line = 700.38 [17:24:11]line НДС 12% НСП 1% [17:24:11]line > о реализуемом товаре [17:24:11]line ОКРУГЛЕНИЕ: -0.38 [17:24:11]line ИТОГО: 700.00 [17:24:11]line Внесено: 700.00 [17:24:11]line СДАЧА: 0.00 [17:24:11]line НСП 1% : 6.20 [17:24:11]line НДС 12% : 74.38 [17:24:11]line Наличными: 700.00 [17:24:11]line Безнал.: 0.00 [17:24:11]line Место: АЗС № 136 "Партнер Нефть" [17:24:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:24:11]line СНО: Общий режим [17:24:11]line Чек 248 19.08.2024 17:24 [17:24:11]line Смена: 452 ФФД: 1.0 [17:24:11]line ЗНМ: 0300000067 [17:24:11]line РНМ: 0000000000092569 [17:24:11]line Версия ККМ: 001 [17:24:11]line ФМ: 0000000000871776 [17:24:11]line ФД: 139413 [17:24:11]line ФПД: 149189875918590 [17:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139413&fm=149189875918590&tin=02508201610067®Number=0000000000092569&sum=70000 [17:24:12]OFD Sender: Processing packet 139413 [packets to send 137, broken 136] [17:24:12]ProducePacketName [17:24:12]name=ofd_packets/00139413 [17:24:12]OFD Sender: To server: pG, [17:24:12]CommunicateWithHost lk.salyk.kg:30040 [17:24:12]ConnectInit lk.salyk.kg [17:24:12]written 0, free lines is 4095 [17:24:12]Connected sock=10 [17:24: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 37 36 08 01 00 00 C4 CB 00 01 A0 C3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 F8 00 00 00 F4 03 04 00 BB 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 20 02 00 35 04 06 00 87 AF F9 8E E6 FE A9 F2 B1 7A 85 06 1B F9 [17:24: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 37 36 4F 00 00 00 52 87 47 00 7E 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 37 36 10 04 04 00 95 20 02 00 F4 03 04 00 51 26 C3 66 B6 04 01 00 00 B3 96 F6 15 DA 58 AC 36 [17:24:12]CommunicateWithHost err = 0 [17:24:12]CheckOFDResponse [17:24:12]1017 (14) - 77093643461234 [17:24:12]1041 (16) - 0000000000871776 [17:24:12]1040 (4) - 139413 [17:24:12]1012 (4) - 19.08.2024 11:02 [17:24:12]1206 (1) - 0 [17:24:12]OFD Sender: Remove packet 139413 [17:24:12]ProducePacketName [17:24:12]name=ofd_packets/00139413 [17:24:12]NVStorageDeleteData [17:24:12]Write to MH i2c: 01 00 00 78 1F 97 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 78 1F 00 00 00 00 00 EA 0C 94 [17:24:12]RasterBufferAndPrint [17:24:12]line [17:24:12]line [17:24:12]line [17:24:12]line [17:24:12]line [17:24:12]written 0, free lines is 3312 [17:24:12]MH_Cut [17:24:12]Write to MH i2c: D1 01 00 7F 1F 01 70 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: D1 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: D1 01 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: D1 01 00 7F 1F 00 6F [17:24:12]Write to MH i2c: 01 00 00 80 1F 9F [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]OFD Sender: No OFD packet to send [17:24:13]*** Cut start [17:24:13]*** Partial cut [17:24:13]*** CUTSNS_PIN = 1 [17:24:13]*** CUTSNS_PIN = 0 [17:24:13]*** Brake cut motor [17:24:13]Read from MH i2c: 01 [17:24:13]MH_I2C_Read... [17:24:13]*** Stop cut motor [17:24:13]*** Cut end [17:24:13]Read from MH i2c: 01 07 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 FF 0F B4 [17:24:13]process_action close_receipt done [17:24:13]requested_data is exist [17:24:13]produce_requested_data [17:24:13]requested_item fm.sn is exist - process it [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 11 00 00 [17:24:13]Write to MH i2c: E2 08 00 81 1F 80 11 00 00 00 00 00 00 1A [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 17 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 17 00 81 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 71 [17:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:13]wFMCommunicate OK [17:24:13]requested_item fd.num is exist - process it [17:24:13]SAM_PROTO_GetFieldsCounters [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 13 00 00 [17:24:13]Write to MH i2c: E2 08 00 82 1F 80 13 00 00 00 00 00 00 1D [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 62 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 62 00 82 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:13]wFMCommunicate OK [17:24:13]SAM_PROTO_GetFieldsCounters done [17:24:13]requested_item shift.num is exist - process it [17:24:13]requested_item shift.opened is exist - process it [17:24:13]req_shift_opened [17:24:13]FM_GetShiftState [17:24:13]SAM_PROTO_GetShiftState [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 13 01 00 [17:24:13]Write to MH i2c: E2 08 00 83 1F 80 13 01 00 00 00 00 00 1F [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0E 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0E 00 83 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D6 [17:24:14]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:24:14]wFMCommunicate OK [17:24:14]SAM_PROTO_GetShiftState done [17:24:14]FM_GetShiftState done [17:24:14]req_shift_opened done [17:24:14]requested_item shift.open_date is exist - process it [17:24:14]req_shift_open_date [17:24:14]req_shift_open_date done [17:24:14]produce_requested_data done [17:24:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139413,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:24:14]process_action_free close_receipt [17:24:14]json_value_free [17:24:14]json_value_free done [17:24:14]process_json_proto returns [17:24:14]Send response to host [17:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139413,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:24:14]free response buf [17:24:14]execute_script done [17:24:14]execute_script returns [17:24:14]free content buf [17:24:14]Sock 8.Close socket [17:24:14]Sock 8.Thread stoped [17:24:17]accept exits with 9 [17:24:17]New connection [17:24:17]New thread 3066674532 created [17:24:17]Thread 3066817892 joined [17:24:17]Waiting for new connection... [17:24:17] Sock 9.Parse request [17:24:17]Sock 9.Check first char [17:24:17]Sock 9.First char is OK [17:24:17]request: POST /json_proto HTTP/1.0 [17:24:17]Method: POST [17:24:17]URL: /json_proto [17:24:17]Method is POST - this is cgi request [17:24:17]url: /json_proto [17:24:17]query_string will be loaded in cgi processing [17:24:17]execute_cgi json_proto POST (null) [17:24:17]execute_cgi path=json_proto method=POST [17:24:17]POST find Content-Length [17:24:17]Host: 172.17.45.67:8080 [17:24:17]Content-Length: 808 [17:24:17]Content-Type: application/json [17:24:17] [17:24:17]POST finish read [17:24:17]Found Content-Length = 808 [17:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "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\u000A3958058.3958062", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:17]execute_script... [17:24: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)593254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "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\u000A3958058.3958062", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:17]POST & json_proto [17:24:17]process_json_proto [17:24:17]json parsed OK: [17:24:17]protocol is kg_v1.0 [17:24:17]action value=close_receipt [17:24:17]process_action close_receipt [17:24:17]cmd_close_receipt [17:24:17]MH_GetDate [17:24:17]Write to MH i2c: F0 00 00 84 1F 92 [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: F0 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: F0 09 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: F0 09 00 84 1F 00 C3 7F C3 66 5F 7F 2B 66 75 [17:24:17]GetLastDocTimeStamp 1724088251 [17:24:17]current date 1724088259 [17:24:17]FM_GetShiftState [17:24:17]SAM_PROTO_GetShiftState [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 13 01 00 [17:24:17]Write to MH i2c: E2 08 00 85 1F 80 13 01 00 00 00 00 00 21 [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:17]Read from MH i2c: E2 0E 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 85 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D8 [17:24:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:24:17]wFMCommunicate OK [17:24:17]SAM_PROTO_GetShiftState done [17:24:17]FM_GetShiftState done [17:24:17]opened in 1724027888 [17:24:17]opened+sec_in_day 1724114288 [17:24:17]quantity*price = 0 [17:24:17]sum+1 = 1 [17:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 249 19.08.2024 17:24 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 3958058.3958062 ФМ: 0000000000871776 ФД: 139414 ФПД: 128650080282032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172419&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139414&fm=128650080282032&tin=02508201610067®Number=0000000000092569&sum=0 [17:24:19]StoreToDocumentArchive [17:24:19]shift 452 fd 139414 [17:24:19]save to /storage/0452/doc_00139414 [17:24:19]save last doc name /storage/0452/doc_00139414 to /storage/kkm_last_doc_name [17:24:19]save OK [17:24:19]Clear old archive folders... [17:24:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:19]tlvbuf is 011EB060 [17:24:19]SAM_PROTO_ClearQueue [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 09 00 00 [17:24:19]Write to MH i2c: E2 08 00 92 1F 80 09 00 00 00 00 00 00 23 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 92 1F 00 90 00 25 [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]SAM_PROTO_ClearQueue done [17:24:19]KKMCreateOFDPacket [17:24:19]OFDProtocolAddRootSTLVToBuf [17:24:19]FM_MakeSignedData [17:24:19]FM_MakeSignedData [17:24:19]SAM_PROTO_SignData [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 0D 01 02 [17:24:19]Write to MH i2c: E2 08 00 93 1F 80 0D 01 02 00 00 00 00 2B [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 93 1F 00 90 00 26 [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]wFMCommunicate request_size=255 [17:24:19]MH_SAM_APDU [17:24: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 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 F9 00 00 00 F4 03 04 00 C3 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 20 02 00 35 04 06 00 75 [17:24:19]Write to MH i2c: E2 02 01 94 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F9 00 00 00 F4 03 04 00 C3 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 20 02 00 35 04 06 00 75 00 00 71 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 94 1F 00 90 00 27 [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]wFMCommunicate request_size=10 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 0D 02 02 05 01 AE 55 E5 B0 [17:24:19]Write to MH i2c: E2 0D 00 95 1F 80 0D 02 02 05 00 01 AE 55 E5 B0 00 00 D1 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 95 1F 00 90 00 28 [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 0D 03 02 [17:24:19]Write to MH i2c: E2 08 00 96 1F 80 0D 03 02 00 00 00 00 30 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0B 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0B 00 96 1F 00 B6 9B 5E EE DA 40 24 24 90 00 30 [17:24:19]RAPDU: B6 9B 5E EE DA 40 24 24 90 00 [17:24:19]wFMCommunicate OK [17:24:19]SAM_PROTO_SignData done [17:24:19]FM_MakeSignedData done [17:24:19]CreateOFDProtocolMessage [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 11 00 00 [17:24:19]Write to MH i2c: E2 08 00 97 1F 80 11 00 00 00 00 00 00 30 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 17 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 17 00 97 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 87 [17:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:19]wFMCommunicate OK [17:24:19]CreateOFDProtocolMessage done [17:24:19]OFDSenderStorePacket 139414 [17:24:19]StoreOFDPacket docnum=139414 [17:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3A 49 07 01 62 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 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 F9 00 00 00 F4 03 04 00 C3 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 20 02 00 35 04 06 00 75 01 AE 55 E5 B0 B6 9B 5E EE DA 40 24 24 [17:24:19]CheckFolder [17:24:19]dirname=/storage/ofd_packets [17:24:19]CheckFolder done [17:24:19]ProducePacketName [17:24:19]name=ofd_packets/00139414 [17:24:19]NVStorageSaveData ofd_packets/00139414 [17:24:19]File name is /storage/ofd_packets/00139414 [17:24:19]Write 301 bytes [17:24:19]NVStorageSaveData done [17:24:19]OFDSenderStorePacket done [17:24:19]KKMCreateOFDPacket done [17:24:19]NVStorageSaveData kkm_last_timestamp [17:24:19]File name is /storage/kkm_last_timestamp [17:24:19]Write 4 bytes [17:24:19]NVStorageSaveData done [17:24:19]ExternCall_PrintAddStr [17:24:19]wPrintStart [17:24:19]Write to MH i2c: 01 00 00 98 1F B7 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 07 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 07 00 98 1F 00 00 00 00 00 FF 0F CC [17:24:19]RasterBufferAndPrint [17:24:19]line Счет N : (1)593254 [17:24:19]line ИНН: 02508201610067 [17:24:19]line Контрольно-Кассовый Чек [17:24:19]line ПРОДАЖА [17:24:19]line ТРК (МРК, ГНК) : 52 [17:24:19]line Товар: 2710124130 [17:24:19]line Аи-92-К-5 [17:24:19]line 40.000 * 0.00 [17:24:19]line = 0.00 [17:24:19]line НДС 12% НСП 1% [17:24:19]line > о реализуемом товаре [17:24:19]line ИТОГО: 0.00 [17:24:19]line НСП 1% : 0.00 [17:24:19]line НДС 12% : 0.00 [17:24:19]line Наличными: 0.00 [17:24:19]line Безнал.: 0.00 [17:24:19]line Место: АЗС № 136 "Партнер Нефть" [17:24:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:24:19]line СНО: Общий режим [17:24:19]line Чек 249 19.08.2024 17:24 [17:24:19]line Смена: 452 ФФД: 1.0 [17:24:19]line ЗНМ: 0300000067 [17:24:19]line РНМ: 0000000000092569 [17:24:19]line Версия ККМ: 001 [17:24:19]line Талоны: Топливные Талоны [17:24:19]line 3958058.3958062 [17:24:19]line ФМ: 0000000000871776 [17:24:19]line ФД: 139414 [17:24:19]line ФПД: 128650080282032 [17:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172419&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139414&fm=128650080282032&tin=02508201610067®Number=0000000000092569&sum=0 [17:24:19]written 0, free lines is 4095 [17:24:19]OFD Sender: Processing packet 139414 [packets to send 137, broken 136] [17:24:19]ProducePacketName [17:24:19]name=ofd_packets/00139414 [17:24:19]OFD Sender: To server: pG, [17:24:19]CommunicateWithHost lk.salyk.kg:30040 [17:24:19]ConnectInit lk.salyk.kg [17:24:19]Connected sock=11 [17:24: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 37 36 0F 01 00 00 3A 49 07 01 62 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 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 F9 00 00 00 F4 03 04 00 C3 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 20 02 00 35 04 06 00 75 01 AE 55 E5 B0 B6 9B 5E EE DA 40 24 24 [17:24:20]Write to MH i2c: 01 00 00 C2 1F E1 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 07 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 07 00 C2 1F 00 00 00 00 00 EC 0C E0 [17:24:20]RasterBufferAndPrint [17:24:20]line [17:24:20]line [17:24:20]line [17:24:20]line [17:24:20]line [17:24:20]written 0, free lines is 3317 [17:24: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 37 36 4F 00 00 00 88 BA 47 00 0F 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 37 36 10 04 04 00 96 20 02 00 F4 03 04 00 58 26 C3 66 B6 04 01 00 00 37 4A E3 14 0C F1 78 ED [17:24:20]CommunicateWithHost err = 0 [17:24:20]CheckOFDResponse [17:24:20]1017 (14) - 77093643461234 [17:24:20]1041 (16) - 0000000000871776 [17:24:20]1040 (4) - 139414 [17:24:20]1012 (4) - 19.08.2024 11:02 [17:24:20]1206 (1) - 0 [17:24:20]OFD Sender: Remove packet 139414 [17:24:20]ProducePacketName [17:24:20]name=ofd_packets/00139414 [17:24:20]NVStorageDeleteData [17:24:20]MH_Cut [17:24:20]Write to MH i2c: D1 01 00 C9 1F 01 BA [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: D1 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: D1 01 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: D1 01 00 C9 1F 00 B9 [17:24:20]Write to MH i2c: 01 00 00 CA 1F E9 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]OFD Sender: No OFD packet to send [17:24:20]*** Cut start [17:24:20]*** Partial cut [17:24:20]*** CUTSNS_PIN = 1 [17:24:20]*** CUTSNS_PIN = 0 [17:24:21]*** Brake cut motor [17:24:21]Read from MH i2c: 01 [17:24:21]MH_I2C_Read... [17:24:21]*** Stop cut motor [17:24:21]*** Cut end [17:24:21]Read from MH i2c: 01 07 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: 01 07 00 CA 1F 00 00 00 00 00 FF 0F FE [17:24:21]process_action close_receipt done [17:24:21]requested_data is exist [17:24:21]produce_requested_data [17:24:21]requested_item fm.sn is exist - process it [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 11 00 00 [17:24:21]Write to MH i2c: E2 08 00 CB 1F 80 11 00 00 00 00 00 00 64 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 17 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 17 00 CB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [17:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:21]wFMCommunicate OK [17:24:21]requested_item fd.num is exist - process it [17:24:21]SAM_PROTO_GetFieldsCounters [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 13 00 00 [17:24:21]Write to MH i2c: E2 08 00 CC 1F 80 13 00 00 00 00 00 00 67 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:21]Read from MH i2c: E2 62 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 62 00 CC 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [17:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:21]wFMCommunicate OK [17:24:21]SAM_PROTO_GetFieldsCounters done [17:24:21]requested_item shift.num is exist - process it [17:24:21]requested_item shift.opened is exist - process it [17:24:21]req_shift_opened [17:24:21]FM_GetShiftState [17:24:21]SAM_PROTO_GetShiftState [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 13 01 00 [17:24:21]Write to MH i2c: E2 08 00 CD 1F 80 13 01 00 00 00 00 00 69 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 0E 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 0E 00 CD 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 20 [17:24:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:24:21]wFMCommunicate OK [17:24:21]SAM_PROTO_GetShiftState done [17:24:21]FM_GetShiftState done [17:24:21]req_shift_opened done [17:24:21]requested_item shift.open_date is exist - process it [17:24:21]req_shift_open_date [17:24:21]req_shift_open_date done [17:24:21]produce_requested_data done [17:24:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139414,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:24:21]process_action_free close_receipt [17:24:21]json_value_free [17:24:21]json_value_free done [17:24:21]process_json_proto returns [17:24:21]Send response to host [17:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139414,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:24:21]free response buf [17:24:21]execute_script done [17:24:21]execute_script returns [17:24:21]free content buf [17:24:21]Sock 9.Close socket [17:24:21]Sock 9.Thread stoped [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:24:58]accept exits with 8 [17:24:58]New connection [17:24:58]New thread 3066817892 created [17:24:58]Thread 3066674532 joined [17:24:58]Waiting for new connection... [17:24:58] Sock 8.Parse request [17:24:58]Sock 8.Check first char [17:24:58]Sock 8.First char is OK [17:24:58]request: POST /json_proto HTTP/1.0 [17:24:58]Method: POST [17:24:58]URL: /json_proto [17:24:58]Method is POST - this is cgi request [17:24:58]url: /json_proto [17:24:58]query_string will be loaded in cgi processing [17:24:58]execute_cgi json_proto POST (null) [17:24:58]execute_cgi path=json_proto method=POST [17:24:58]POST find Content-Length [17:24:58]Host: 172.17.45.67:8080 [17:24:58]Content-Length: 677 [17:24:58]Content-Type: application/json [17:24:58] [17:24:58]POST finish read [17:24:58]Found Content-Length = 677 [17:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "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:24:58]execute_script... [17:24: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)593257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "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:24:58]POST & json_proto [17:24:58]process_json_proto [17:24:58]json parsed OK: [17:24:58]protocol is kg_v1.0 [17:24:58]action value=close_receipt [17:24:58]process_action close_receipt [17:24:58]cmd_close_receipt [17:24:58]MH_GetDate [17:24:58]Write to MH i2c: F0 00 00 CE 1F DC [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: F0 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: F0 09 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: F0 09 00 CE 1F 00 EC 7F C3 66 5F 7F 2B 66 E8 [17:24:58]GetLastDocTimeStamp 1724088259 [17:24:58]current date 1724088300 [17:24:58]FM_GetShiftState [17:24:58]SAM_PROTO_GetShiftState [17:24:58]wFMCommunicate request_size=4 [17:24:58]MH_SAM_APDU [17:24:58]CAPDU: 80 13 01 00 [17:24:58]Write to MH i2c: E2 08 00 CF 1F 80 13 01 00 00 00 00 00 6B [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:58]Read from MH i2c: E2 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 0E 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 0E 00 CF 1F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 22 [17:24:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:24:58]wFMCommunicate OK [17:24:58]SAM_PROTO_GetShiftState done [17:24:58]FM_GetShiftState done [17:24:58]opened in 1724027888 [17:24:58]opened+sec_in_day 1724114288 [17:24:58]quantity*price = 25005 [17:24:58]sum+1 = 25006 [17:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 250 19.08.2024 17:25 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139415 ФПД: 94666719706067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172500&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139415&fm=94666719706067&tin=02508201610067®Number=0000000000092569&sum=25000 [17:24:59]StoreToDocumentArchive [17:24:59]shift 452 fd 139415 [17:24:59]save to /storage/0452/doc_00139415 [17:24:59]save last doc name /storage/0452/doc_00139415 to /storage/kkm_last_doc_name [17:24:59]save OK [17:24:59]Clear old archive folders... [17:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:59]tlvbuf is 01282570 [17:24:59]SAM_PROTO_ClearQueue [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 09 00 00 [17:24:59]Write to MH i2c: E2 08 00 DC 1F 80 09 00 00 00 00 00 00 6D [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 DC 1F 00 90 00 6F [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]SAM_PROTO_ClearQueue done [17:24:59]KKMCreateOFDPacket [17:24:59]OFDProtocolAddRootSTLVToBuf [17:24:59]FM_MakeSignedData [17:24:59]FM_MakeSignedData [17:24:59]SAM_PROTO_SignData [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 01 02 [17:24:59]Write to MH i2c: E2 08 00 DD 1F 80 0D 01 02 00 00 00 00 75 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:59]Read from MH i2c: E2 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 [17:24:59]MH_I2C_Read... [17:24:59]Read from MH i2c: E2 03 00 DD 1F 00 90 00 70 [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]wFMCommunicate request_size=255 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 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 5F 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 FA 00 00 00 F4 03 04 00 EC 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 20 02 00 35 04 06 00 56 [17:24:59]Write to MH i2c: E2 02 01 DE 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 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 5F 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 FA 00 00 00 F4 03 04 00 EC 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 20 02 00 35 04 06 00 56 00 00 A4 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 03 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 03 00 DE 1F 00 90 00 71 [17:25:00]RAPDU: 90 00 [17:25:00]wFMCommunicate OK [17:25:00]wFMCommunicate request_size=10 [17:25:00]MH_SAM_APDU [17:25:00]CAPDU: 80 0D 02 02 05 19 50 33 3B D3 [17:25:00]Write to MH i2c: E2 0D 00 DF 1F 80 0D 02 02 05 00 19 50 33 3B D3 00 00 2C [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 03 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 03 00 DF 1F 00 90 00 72 [17:25:00]RAPDU: 90 00 [17:25:00]wFMCommunicate OK [17:25:00]wFMCommunicate request_size=4 [17:25:00]MH_SAM_APDU [17:25:00]CAPDU: 80 0D 03 02 [17:25:00]Write to MH i2c: E2 08 00 E0 1F 80 0D 03 02 00 00 00 00 7A [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 0B 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 0B 00 E0 1F 00 29 7B A4 E8 C9 D5 2E F8 90 00 6F [17:25:00]RAPDU: 29 7B A4 E8 C9 D5 2E F8 90 00 [17:25:00]wFMCommunicate OK [17:25:00]SAM_PROTO_SignData done [17:25:00]FM_MakeSignedData done [17:25:00]CreateOFDProtocolMessage [17:25:00]wFMCommunicate request_size=4 [17:25:00]MH_SAM_APDU [17:25:00]CAPDU: 80 11 00 00 [17:25:00]Write to MH i2c: E2 08 00 E1 1F 80 11 00 00 00 00 00 00 7A [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 17 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 17 00 E1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D1 [17:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:25:00]wFMCommunicate OK [17:25:00]CreateOFDProtocolMessage done [17:25:00]OFDSenderStorePacket 139415 [17:25:00]StoreOFDPacket docnum=139415 [17:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5E 2E 07 01 01 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 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 5F 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 FA 00 00 00 F4 03 04 00 EC 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 20 02 00 35 04 06 00 56 19 50 33 3B D3 29 7B A4 E8 C9 D5 2E F8 [17:25:00]CheckFolder [17:25:00]dirname=/storage/ofd_packets [17:25:00]CheckFolder done [17:25:00]ProducePacketName [17:25:00]name=ofd_packets/00139415 [17:25:00]NVStorageSaveData ofd_packets/00139415 [17:25:00]File name is /storage/ofd_packets/00139415 [17:25:00]Write 301 bytes [17:25:00]NVStorageSaveData done [17:25:00]OFDSenderStorePacket done [17:25:00]KKMCreateOFDPacket done [17:25:00]NVStorageSaveData kkm_last_timestamp [17:25:00]File name is /storage/kkm_last_timestamp [17:25:00]Write 4 bytes [17:25:00]NVStorageSaveData done [17:25:00]ExternCall_PrintAddStr [17:25:00]wPrintStart [17:25:00]Write to MH i2c: 01 00 00 E2 1F 01 [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 07 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 07 00 E2 1F 00 00 00 00 00 FF 0F 16 [17:25:00]RasterBufferAndPrint [17:25:00]line Счет N : (1)593257 [17:25:00]line ИНН: 02508201610067 [17:25:00]line Контрольно-Кассовый Чек [17:25:00]line ПРОДАЖА [17:25:00]line ТРК (МРК, ГНК) : 41 [17:25:00]line Товар: 2710124500 [17:25:00]line Аи-95-К-5 [17:25:00]line 3.370 * 74.20 [17:25:00]line = 250.05 [17:25:00]line НДС 12% НСП 1% [17:25:00]line > о реализуемом товаре [17:25:00]line ОКРУГЛЕНИЕ: -0.05 [17:25:00]line ИТОГО: 250.00 [17:25:00]line Внесено: 250.00 [17:25:00]line СДАЧА: 0.00 [17:25:00]line НСП 1% : 2.21 [17:25:00]line НДС 12% : 26.55 [17:25:00]line Наличными: 250.00 [17:25:00]line Безнал.: 0.00 [17:25:00]line Место: АЗС № 136 "Партнер Нефть" [17:25:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:25:00]line СНО: Общий режим [17:25:00]line Чек 250 19.08.2024 17:25 [17:25:00]line Смена: 452 ФФД: 1.0 [17:25:00]line ЗНМ: 0300000067 [17:25:00]line РНМ: 0000000000092569 [17:25:00]line Версия ККМ: 001 [17:25:00]line ФМ: 0000000000871776 [17:25:00]line ФД: 139415 [17:25:00]line ФПД: 94666719706067 [17:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172500&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139415&fm=94666719706067&tin=02508201610067®Number=0000000000092569&sum=25000 [17:25:00]written 0, free lines is 4095 [17:25:00]OFD Sender: Processing packet 139415 [packets to send 137, broken 136] [17:25:00]ProducePacketName [17:25:00]name=ofd_packets/00139415 [17:25:00]OFD Sender: To server: pG, [17:25:00]CommunicateWithHost lk.salyk.kg:30040 [17:25:00]ConnectInit lk.salyk.kg [17:25:00]Connected sock=10 [17:25: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 37 36 0F 01 00 00 5E 2E 07 01 01 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 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 5F 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 FA 00 00 00 F4 03 04 00 EC 7F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 20 02 00 35 04 06 00 56 19 50 33 3B D3 29 7B A4 E8 C9 D5 2E F8 [17:25: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 37 36 4F 00 00 00 BF 84 47 00 CF 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 37 36 10 04 04 00 97 20 02 00 F4 03 04 00 81 26 C3 66 B6 04 01 00 00 CD C5 4C 8F 8A 55 82 44 [17:25:00]CommunicateWithHost err = 0 [17:25:00]CheckOFDResponse [17:25:00]1017 (14) - 77093643461234 [17:25:00]1041 (16) - 0000000000871776 [17:25:00]1040 (4) - 139415 [17:25:00]1012 (4) - 19.08.2024 11:03 [17:25:00]1206 (1) - 0 [17:25:00]OFD Sender: Remove packet 139415 [17:25:00]ProducePacketName [17:25:00]name=ofd_packets/00139415 [17:25:00]NVStorageDeleteData [17:25:00]Write to MH i2c: 01 00 00 0D 20 2D [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 07 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: 01 07 00 0D 20 00 00 00 00 00 E0 0C 20 [17:25:00]RasterBufferAndPrint [17:25:00]line [17:25:00]line [17:25:00]line [17:25:00]line [17:25:00]line [17:25:00]written 0, free lines is 3305 [17:25:01]MH_Cut [17:25:01]Write to MH i2c: D1 01 00 14 20 01 06 [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: D1 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: D1 01 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: D1 01 00 14 20 00 05 [17:25:01]Write to MH i2c: 01 00 00 15 20 35 [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]OFD Sender: No OFD packet to send [17:25:01]*** Cut start [17:25:01]*** Partial cut [17:25:01]*** CUTSNS_PIN = 1 [17:25:01]*** CUTSNS_PIN = 0 [17:25:01]*** Brake cut motor [17:25:02]Read from MH i2c: 01 [17:25:02]MH_I2C_Read... [17:25:02]*** Stop cut motor [17:25:02]*** Cut end [17:25:02]Read from MH i2c: 01 07 00 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: 01 07 00 15 20 00 00 00 00 00 FF 0F 4A [17:25:02]process_action close_receipt done [17:25:02]requested_data is exist [17:25:02]produce_requested_data [17:25:02]requested_item fm.sn is exist - process it [17:25:02]wFMCommunicate request_size=4 [17:25:02]MH_SAM_APDU [17:25:02]CAPDU: 80 11 00 00 [17:25:02]Write to MH i2c: E2 08 00 16 20 80 11 00 00 00 00 00 00 B0 [17:25:02]Write i2c OK [17:25:02]MH_I2C_Read... [17:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:02]Read from MH i2c: E2 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 17 00 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 17 00 16 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 07 [17:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:25:02]wFMCommunicate OK [17:25:02]requested_item fd.num is exist - process it [17:25:02]SAM_PROTO_GetFieldsCounters [17:25:02]wFMCommunicate request_size=4 [17:25:02]MH_SAM_APDU [17:25:02]CAPDU: 80 13 00 00 [17:25:02]Write to MH i2c: E2 08 00 17 20 80 13 00 00 00 00 00 00 B3 [17:25:02]Write i2c OK [17:25:02]MH_I2C_Read... [17:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:02]Read from MH i2c: E2 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 62 00 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 62 00 17 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [17:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:02]wFMCommunicate OK [17:25:02]SAM_PROTO_GetFieldsCounters done [17:25:02]requested_item shift.num is exist - process it [17:25:02]requested_item shift.opened is exist - process it [17:25:02]req_shift_opened [17:25:02]FM_GetShiftState [17:25:02]SAM_PROTO_GetShiftState [17:25:02]wFMCommunicate request_size=4 [17:25:02]MH_SAM_APDU [17:25:02]CAPDU: 80 13 01 00 [17:25:02]Write to MH i2c: E2 08 00 18 20 80 13 01 00 00 00 00 00 B5 [17:25:02]Write i2c OK [17:25:02]MH_I2C_Read... [17:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:02]Read from MH i2c: E2 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 0E 00 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: E2 0E 00 18 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6C [17:25:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:25:02]wFMCommunicate OK [17:25:02]SAM_PROTO_GetShiftState done [17:25:02]FM_GetShiftState done [17:25:02]req_shift_opened done [17:25:02]requested_item shift.open_date is exist - process it [17:25:02]req_shift_open_date [17:25:02]req_shift_open_date done [17:25:02]produce_requested_data done [17:25:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139415,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:25:02]process_action_free close_receipt [17:25:02]json_value_free [17:25:02]json_value_free done [17:25:02]process_json_proto returns [17:25:02]Send response to host [17:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139415,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:25:02]free response buf [17:25:02]execute_script done [17:25:02]execute_script returns [17:25:02]free content buf [17:25:02]Sock 8.Close socket [17:25:02]Sock 8.Thread stoped [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:27]accept exits with 9 [17:26:27]New connection [17:26:27]New thread 3066674532 created [17:26:27]Thread 3066817892 joined [17:26:27]Waiting for new connection... [17:26:27] Sock 9.Parse request [17:26:27]Sock 9.Check first char [17:26:27]Sock 9.First char is OK [17:26:27]request: POST /json_proto HTTP/1.0 [17:26:27]Method: POST [17:26:27]URL: /json_proto [17:26:27]Method is POST - this is cgi request [17:26:27]url: /json_proto [17:26:27]query_string will be loaded in cgi processing [17:26:27]execute_cgi json_proto POST (null) [17:26:27]execute_cgi path=json_proto method=POST [17:26:27]POST find Content-Length [17:26:27]Host: 172.17.45.67:8080 [17:26:27]Content-Length: 678 [17:26:27]Content-Type: application/json [17:26:27] [17:26:27]POST finish read [17:26:27]Found Content-Length = 678 [17:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [17:26:27]execute_script... [17:26: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)593259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [17:26:27]POST & json_proto [17:26:27]process_json_proto [17:26:27]json parsed OK: [17:26:27]protocol is kg_v1.0 [17:26:27]action value=close_receipt [17:26:27]process_action close_receipt [17:26:27]cmd_close_receipt [17:26:27]MH_GetDate [17:26:27]Write to MH i2c: F0 00 00 19 20 28 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: F0 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: F0 09 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: F0 09 00 19 20 00 45 80 C3 66 5F 7F 2B 66 8E [17:26:27]GetLastDocTimeStamp 1724088300 [17:26:27]current date 1724088389 [17:26:27]FM_GetShiftState [17:26:27]SAM_PROTO_GetShiftState [17:26:27]wFMCommunicate request_size=4 [17:26:27]MH_SAM_APDU [17:26:27]CAPDU: 80 13 01 00 [17:26:27]Write to MH i2c: E2 08 00 1A 20 80 13 01 00 00 00 00 00 B7 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:27]Read from MH i2c: E2 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 0E 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 0E 00 1A 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6E [17:26:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:26:27]wFMCommunicate OK [17:26:27]SAM_PROTO_GetShiftState done [17:26:27]FM_GetShiftState done [17:26:27]opened in 1724027888 [17:26:27]opened+sec_in_day 1724114288 [17:26:27]quantity*price = 70037 [17:26:27]sum+1 = 70038 [17:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 251 19.08.2024 17:26 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139416 ФПД: 259068158472708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172629&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139416&fm=259068158472708&tin=02508201610067®Number=0000000000092569&sum=70000 [17:26:28]StoreToDocumentArchive [17:26:28]shift 452 fd 139416 [17:26:28]save to /storage/0452/doc_00139416 [17:26:28]save last doc name /storage/0452/doc_00139416 to /storage/kkm_last_doc_name [17:26:28]save OK [17:26:28]Clear old archive folders... [17:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:28]tlvbuf is B6EA00E0 [17:26:28]SAM_PROTO_ClearQueue [17:26:28]wFMCommunicate request_size=4 [17:26:28]MH_SAM_APDU [17:26:28]CAPDU: 80 09 00 00 [17:26:28]Write to MH i2c: E2 08 00 27 20 80 09 00 00 00 00 00 00 B9 [17:26:28]Write i2c OK [17:26:28]MH_I2C_Read... [17:26:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:29]Read from MH i2c: E2 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 03 00 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 03 00 27 20 00 90 00 BB [17:26:29]RAPDU: 90 00 [17:26:29]wFMCommunicate OK [17:26:29]SAM_PROTO_ClearQueue done [17:26:29]KKMCreateOFDPacket [17:26:29]OFDProtocolAddRootSTLVToBuf [17:26:29]FM_MakeSignedData [17:26:29]FM_MakeSignedData [17:26:29]SAM_PROTO_SignData [17:26:29]wFMCommunicate request_size=4 [17:26:29]MH_SAM_APDU [17:26:29]CAPDU: 80 0D 01 02 [17:26:29]Write to MH i2c: E2 08 00 28 20 80 0D 01 02 00 00 00 00 C1 [17:26:29]Write i2c OK [17:26:29]MH_I2C_Read... [17:26:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:29]Read from MH i2c: E2 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 03 00 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 03 00 28 20 00 90 00 BC [17:26:29]RAPDU: 90 00 [17:26:29]wFMCommunicate OK [17:26:29]wFMCommunicate request_size=255 [17:26:29]MH_SAM_APDU [17:26: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 FB 00 00 00 F4 03 04 00 45 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 20 02 00 35 04 06 00 EB [17:26:29]Write to MH i2c: E2 02 01 29 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 FB 00 00 00 F4 03 04 00 45 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 20 02 00 35 04 06 00 EB 00 00 84 [17:26:29]Write i2c OK [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 [17:26:29]MH_I2C_Read... [17:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:29]Read from MH i2c: E2 03 00 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 03 00 29 20 00 90 00 BD [17:26:29]RAPDU: 90 00 [17:26:29]wFMCommunicate OK [17:26:29]wFMCommunicate request_size=10 [17:26:29]MH_SAM_APDU [17:26:29]CAPDU: 80 0D 02 02 05 9F 01 8E F2 04 [17:26:29]Write to MH i2c: E2 0D 00 2A 20 80 0D 02 02 05 00 9F 01 8E F2 04 00 00 F2 [17:26:29]Write i2c OK [17:26:29]MH_I2C_Read... [17:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:29]Read from MH i2c: E2 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 03 00 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 03 00 2A 20 00 90 00 BE [17:26:29]RAPDU: 90 00 [17:26:29]wFMCommunicate OK [17:26:29]wFMCommunicate request_size=4 [17:26:29]MH_SAM_APDU [17:26:29]CAPDU: 80 0D 03 02 [17:26:29]Write to MH i2c: E2 08 00 2B 20 80 0D 03 02 00 00 00 00 C6 [17:26:29]Write i2c OK [17:26:29]MH_I2C_Read... [17:26:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:29]Read from MH i2c: E2 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 0B 00 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 0B 00 2B 20 00 12 07 BA 09 9B AA 83 A6 90 00 11 [17:26:29]RAPDU: 12 07 BA 09 9B AA 83 A6 90 00 [17:26:29]wFMCommunicate OK [17:26:29]SAM_PROTO_SignData done [17:26:29]FM_MakeSignedData done [17:26:29]CreateOFDProtocolMessage [17:26:29]wFMCommunicate request_size=4 [17:26:29]MH_SAM_APDU [17:26:29]CAPDU: 80 11 00 00 [17:26:29]Write to MH i2c: E2 08 00 2C 20 80 11 00 00 00 00 00 00 C6 [17:26:29]Write i2c OK [17:26:29]MH_I2C_Read... [17:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:29]Read from MH i2c: E2 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 17 00 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: E2 17 00 2C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1D [17:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:26:29]wFMCommunicate OK [17:26:29]CreateOFDProtocolMessage done [17:26:29]OFDSenderStorePacket 139416 [17:26:29]StoreOFDPacket docnum=139416 [17:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 41 0B 07 01 38 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 FB 00 00 00 F4 03 04 00 45 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 20 02 00 35 04 06 00 EB 9F 01 8E F2 04 12 07 BA 09 9B AA 83 A6 [17:26:29]CheckFolder [17:26:29]dirname=/storage/ofd_packets [17:26:29]CheckFolder done [17:26:29]ProducePacketName [17:26:29]name=ofd_packets/00139416 [17:26:29]NVStorageSaveData ofd_packets/00139416 [17:26:29]File name is /storage/ofd_packets/00139416 [17:26:29]Write 301 bytes [17:26:29]NVStorageSaveData done [17:26:29]OFDSenderStorePacket done [17:26:29]KKMCreateOFDPacket done [17:26:29]NVStorageSaveData kkm_last_timestamp [17:26:29]File name is /storage/kkm_last_timestamp [17:26:29]Write 4 bytes [17:26:29]NVStorageSaveData done [17:26:29]ExternCall_PrintAddStr [17:26:29]wPrintStart [17:26:29]Write to MH i2c: 01 00 00 2D 20 4D [17:26:29]Write i2c OK [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: 01 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: 01 07 00 [17:26:29]MH_I2C_Read... [17:26:29]Read from MH i2c: 01 07 00 2D 20 00 00 00 00 00 FF 0F 62 [17:26:29]RasterBufferAndPrint [17:26:29]line Счет N : (1)593259 [17:26:29]line ИНН: 02508201610067 [17:26:29]line Контрольно-Кассовый Чек [17:26:29]line ПРОДАЖА [17:26:29]line ТРК (МРК, ГНК) : 32 [17:26:29]line Товар: 2710124130 [17:26:29]line Аи-92-К-5 [17:26:29]line 10.330 * 67.80 [17:26:29]line = 700.37 [17:26:29]line НДС 12% НСП 1% [17:26:29]line > о реализуемом товаре [17:26:29]line ОКРУГЛЕНИЕ: -0.37 [17:26:29]line ИТОГО: 700.00 [17:26:29]line Внесено: 700.00 [17:26:29]line СДАЧА: 0.00 [17:26:29]line НСП 1% : 6.20 [17:26:29]line НДС 12% : 74.38 [17:26:29]line Наличными: 700.00 [17:26:29]line Безнал.: 0.00 [17:26:29]line Место: АЗС № 136 "Партнер Нефть" [17:26:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:26:29]line СНО: Общий режим [17:26:29]line Чек 251 19.08.2024 17:26 [17:26:29]line Смена: 452 ФФД: 1.0 [17:26:29]line ЗНМ: 0300000067 [17:26:29]line РНМ: 0000000000092569 [17:26:29]line Версия ККМ: 001 [17:26:29]line ФМ: 0000000000871776 [17:26:29]line ФД: 139416 [17:26:29]line ФПД: 259068158472708 [17:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172629&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139416&fm=259068158472708&tin=02508201610067®Number=0000000000092569&sum=70000 [17:26:29]OFD Sender: Processing packet 139416 [packets to send 137, broken 136] [17:26:29]ProducePacketName [17:26:29]name=ofd_packets/00139416 [17:26:29]OFD Sender: To server: pG, [17:26:29]CommunicateWithHost lk.salyk.kg:30040 [17:26:29]ConnectInit lk.salyk.kg [17:26:29]written 0, free lines is 4095 [17:26:29]Connected sock=10 [17:26: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 37 36 0F 01 00 00 41 0B 07 01 38 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 FB 00 00 00 F4 03 04 00 45 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 20 02 00 35 04 06 00 EB 9F 01 8E F2 04 12 07 BA 09 9B AA 83 A6 [17:26: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 37 36 4F 00 00 00 68 77 47 00 25 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 37 36 10 04 04 00 98 20 02 00 F4 03 04 00 DA 26 C3 66 B6 04 01 00 00 0F B2 8D 36 30 F4 B3 AE [17:26:30]CommunicateWithHost err = 0 [17:26:30]CheckOFDResponse [17:26:30]1017 (14) - 77093643461234 [17:26:30]1041 (16) - 0000000000871776 [17:26:30]1040 (4) - 139416 [17:26:30]1012 (4) - 19.08.2024 11:04 [17:26:30]1206 (1) - 0 [17:26:30]OFD Sender: Remove packet 139416 [17:26:30]ProducePacketName [17:26:30]name=ofd_packets/00139416 [17:26:30]NVStorageDeleteData [17:26:30]Write to MH i2c: 01 00 00 58 20 78 [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: 01 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: 01 07 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: 01 07 00 58 20 00 00 00 00 00 DA 0C 65 [17:26:30]RasterBufferAndPrint [17:26:30]line [17:26:30]line [17:26:30]line [17:26:30]line [17:26:30]line [17:26:30]written 0, free lines is 3297 [17:26:30]MH_Cut [17:26:30]Write to MH i2c: D1 01 00 5F 20 01 51 [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: D1 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: D1 01 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: D1 01 00 5F 20 00 50 [17:26:30]Write to MH i2c: 01 00 00 60 20 80 [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]OFD Sender: No OFD packet to send [17:26:31]*** Cut start [17:26:31]*** Partial cut [17:26:31]*** CUTSNS_PIN = 1 [17:26:31]*** CUTSNS_PIN = 0 [17:26:31]*** Brake cut motor [17:26:31]Read from MH i2c: 01 [17:26:31]MH_I2C_Read... [17:26:31]*** Stop cut motor [17:26:31]*** Cut end [17:26:31]Read from MH i2c: 01 07 00 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: 01 07 00 60 20 00 00 00 00 00 FF 0F 95 [17:26:31]process_action close_receipt done [17:26:31]requested_data is exist [17:26:31]produce_requested_data [17:26:31]requested_item fm.sn is exist - process it [17:26:31]wFMCommunicate request_size=4 [17:26:31]MH_SAM_APDU [17:26:31]CAPDU: 80 11 00 00 [17:26:31]Write to MH i2c: E2 08 00 61 20 80 11 00 00 00 00 00 00 FB [17:26:31]Write i2c OK [17:26:31]MH_I2C_Read... [17:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:31]Read from MH i2c: E2 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 17 00 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 17 00 61 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 52 [17:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:26:31]wFMCommunicate OK [17:26:31]requested_item fd.num is exist - process it [17:26:31]SAM_PROTO_GetFieldsCounters [17:26:31]wFMCommunicate request_size=4 [17:26:31]MH_SAM_APDU [17:26:31]CAPDU: 80 13 00 00 [17:26:31]Write to MH i2c: E2 08 00 62 20 80 13 00 00 00 00 00 00 FE [17:26:31]Write i2c OK [17:26:31]MH_I2C_Read... [17:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:31]Read from MH i2c: E2 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 62 00 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 62 00 62 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [17:26: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:31]wFMCommunicate OK [17:26:31]SAM_PROTO_GetFieldsCounters done [17:26:31]requested_item shift.num is exist - process it [17:26:31]requested_item shift.opened is exist - process it [17:26:31]req_shift_opened [17:26:31]FM_GetShiftState [17:26:31]SAM_PROTO_GetShiftState [17:26:31]wFMCommunicate request_size=4 [17:26:31]MH_SAM_APDU [17:26:31]CAPDU: 80 13 01 00 [17:26:31]Write to MH i2c: E2 08 00 63 20 80 13 01 00 00 00 00 00 00 [17:26:31]Write i2c OK [17:26:31]MH_I2C_Read... [17:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:31]Read from MH i2c: E2 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 0E 00 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 0E 00 63 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B7 [17:26:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:26:31]wFMCommunicate OK [17:26:31]SAM_PROTO_GetShiftState done [17:26:31]FM_GetShiftState done [17:26:31]req_shift_opened done [17:26:31]requested_item shift.open_date is exist - process it [17:26:31]req_shift_open_date [17:26:31]req_shift_open_date done [17:26:31]produce_requested_data done [17:26:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139416,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:26:31]process_action_free close_receipt [17:26:31]json_value_free [17:26:31]json_value_free done [17:26:31]process_json_proto returns [17:26:31]Send response to host [17:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139416,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:26:31]free response buf [17:26:31]execute_script done [17:26:31]execute_script returns [17:26:31]free content buf [17:26:31]Sock 9.Close socket [17:26:31]Sock 9.Thread stoped [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:33]accept exits with 8 [17:27:33]New connection [17:27:33]New thread 3066817892 created [17:27:33]Thread 3066674532 joined [17:27:33]Waiting for new connection... [17:27:33] Sock 8.Parse request [17:27:33]Sock 8.Check first char [17:27:33]Sock 8.First char is OK [17:27:33]request: POST /json_proto HTTP/1.0 [17:27:33]Method: POST [17:27:33]URL: /json_proto [17:27:33]Method is POST - this is cgi request [17:27:33]url: /json_proto [17:27:33]query_string will be loaded in cgi processing [17:27:33]execute_cgi json_proto POST (null) [17:27:33]execute_cgi path=json_proto method=POST [17:27:33]POST find Content-Length [17:27:33]Host: 172.17.45.67:8080 [17:27:33]Content-Length: 682 [17:27:33]Content-Type: application/json [17:27:33] [17:27:33]POST finish read [17:27:33]Found Content-Length = 682 [17:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:33]execute_script... [17:27: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)593258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:33]POST & json_proto [17:27:33]process_json_proto [17:27:33]json parsed OK: [17:27:33]protocol is kg_v1.0 [17:27:33]action value=close_receipt [17:27:33]process_action close_receipt [17:27:33]cmd_close_receipt [17:27:33]MH_GetDate [17:27:33]Write to MH i2c: F0 00 00 64 20 73 [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: F0 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: F0 09 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: F0 09 00 64 20 00 87 80 C3 66 5F 7F 2B 66 1B [17:27:33]GetLastDocTimeStamp 1724088389 [17:27:33]current date 1724088455 [17:27:33]FM_GetShiftState [17:27:33]SAM_PROTO_GetShiftState [17:27:33]wFMCommunicate request_size=4 [17:27:33]MH_SAM_APDU [17:27:33]CAPDU: 80 13 01 00 [17:27:33]Write to MH i2c: E2 08 00 65 20 80 13 01 00 00 00 00 00 02 [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:33]Read from MH i2c: E2 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: E2 0E 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: E2 0E 00 65 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B9 [17:27:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:27:33]wFMCommunicate OK [17:27:33]SAM_PROTO_GetShiftState done [17:27:33]FM_GetShiftState done [17:27:33]opened in 1724027888 [17:27:33]opened+sec_in_day 1724114288 [17:27:33]quantity*price = 110039 [17:27:33]sum+1 = 110040 [17:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 252 19.08.2024 17:27 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139417 ФПД: 254947778946366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172735&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139417&fm=254947778946366&tin=02508201610067®Number=0000000000092569&sum=110000 [17:27:34]StoreToDocumentArchive [17:27:34]shift 452 fd 139417 [17:27:34]save to /storage/0452/doc_00139417 [17:27:34]save last doc name /storage/0452/doc_00139417 to /storage/kkm_last_doc_name [17:27:34]save OK [17:27:34]Clear old archive folders... [17:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:34]tlvbuf is B6F37A80 [17:27:34]SAM_PROTO_ClearQueue [17:27:34]wFMCommunicate request_size=4 [17:27:34]MH_SAM_APDU [17:27:34]CAPDU: 80 09 00 00 [17:27:34]Write to MH i2c: E2 08 00 72 20 80 09 00 00 00 00 00 00 04 [17:27:34]Write i2c OK [17:27:34]MH_I2C_Read... [17:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:34]Read from MH i2c: E2 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: E2 03 00 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: E2 03 00 72 20 00 90 00 06 [17:27:34]RAPDU: 90 00 [17:27:34]wFMCommunicate OK [17:27:34]SAM_PROTO_ClearQueue done [17:27:34]KKMCreateOFDPacket [17:27:34]OFDProtocolAddRootSTLVToBuf [17:27:34]FM_MakeSignedData [17:27:34]FM_MakeSignedData [17:27:34]SAM_PROTO_SignData [17:27:34]wFMCommunicate request_size=4 [17:27:34]MH_SAM_APDU [17:27:34]CAPDU: 80 0D 01 02 [17:27:34]Write to MH i2c: E2 08 00 73 20 80 0D 01 02 00 00 00 00 0C [17:27:34]Write i2c OK [17:27:34]MH_I2C_Read... [17:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:34]Read from MH i2c: E2 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: E2 03 00 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: E2 03 00 73 20 00 90 00 07 [17:27:34]RAPDU: 90 00 [17:27:34]wFMCommunicate OK [17:27:34]wFMCommunicate request_size=255 [17:27:34]MH_SAM_APDU [17:27: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 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 87 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 20 02 00 35 04 06 00 E7 [17:27:34]Write to MH i2c: E2 02 01 74 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 87 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 20 02 00 35 04 06 00 E7 00 00 D3 [17:27:34]Write i2c OK [17:27:34]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 03 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 03 00 74 20 00 90 00 08 [17:27:35]RAPDU: 90 00 [17:27:35]wFMCommunicate OK [17:27:35]wFMCommunicate request_size=10 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 0D 02 02 05 DF A7 CC E5 3E [17:27:35]Write to MH i2c: E2 0D 00 75 20 80 0D 02 02 05 00 DF A7 CC E5 3E 00 00 8E [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 03 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 03 00 75 20 00 90 00 09 [17:27:35]RAPDU: 90 00 [17:27:35]wFMCommunicate OK [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 0D 03 02 [17:27:35]Write to MH i2c: E2 08 00 76 20 80 0D 03 02 00 00 00 00 11 [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0B 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0B 00 76 20 00 47 92 55 22 DB 17 55 C2 90 00 6B [17:27:35]RAPDU: 47 92 55 22 DB 17 55 C2 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_SignData done [17:27:35]FM_MakeSignedData done [17:27:35]CreateOFDProtocolMessage [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 11 00 00 [17:27:35]Write to MH i2c: E2 08 00 77 20 80 11 00 00 00 00 00 00 11 [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 17 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 17 00 77 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 68 [17:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:27:35]wFMCommunicate OK [17:27:35]CreateOFDProtocolMessage done [17:27:35]OFDSenderStorePacket 139417 [17:27:35]StoreOFDPacket docnum=139417 [17:27:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 20 07 01 AE 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 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 87 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 20 02 00 35 04 06 00 E7 DF A7 CC E5 3E 47 92 55 22 DB 17 55 C2 [17:27:35]CheckFolder [17:27:35]dirname=/storage/ofd_packets [17:27:35]CheckFolder done [17:27:35]ProducePacketName [17:27:35]name=ofd_packets/00139417 [17:27:35]NVStorageSaveData ofd_packets/00139417 [17:27:35]File name is /storage/ofd_packets/00139417 [17:27:35]Write 301 bytes [17:27:35]NVStorageSaveData done [17:27:35]OFDSenderStorePacket done [17:27:35]KKMCreateOFDPacket done [17:27:35]NVStorageSaveData kkm_last_timestamp [17:27:35]File name is /storage/kkm_last_timestamp [17:27:35]Write 4 bytes [17:27:35]NVStorageSaveData done [17:27:35]ExternCall_PrintAddStr [17:27:35]wPrintStart [17:27:35]Write to MH i2c: 01 00 00 78 20 98 [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: 01 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: 01 07 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: 01 07 00 78 20 00 00 00 00 00 FF 0F AD [17:27:35]RasterBufferAndPrint [17:27:35]line Счет N : (1)593258 [17:27:35]line ИНН: 02508201610067 [17:27:35]line Контрольно-Кассовый Чек [17:27:35]line ПРОДАЖА [17:27:35]line ТРК (МРК, ГНК) : 62 [17:27:35]line Товар: 2710124130 [17:27:35]line Аи-92-К-5 [17:27:35]line 16.230 * 67.80 [17:27:35]line = 1100.39 [17:27:35]line НДС 12% НСП 1% [17:27:35]line > о реализуемом товаре [17:27:35]line ОКРУГЛЕНИЕ: -0.39 [17:27:35]line ИТОГО: 1100.00 [17:27:35]line Внесено: 1100.00 [17:27:35]line СДАЧА: 0.00 [17:27:35]line НСП 1% : 9.74 [17:27:35]line НДС 12% : 116.86 [17:27:35]line Наличными: 1100.00 [17:27:35]line Безнал.: 0.00 [17:27:35]line Место: АЗС № 136 "Партнер Нефть" [17:27:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:27:35]line СНО: Общий режим [17:27:35]line Чек 252 19.08.2024 17:27 [17:27:35]line Смена: 452 ФФД: 1.0 [17:27:35]line ЗНМ: 0300000067 [17:27:35]line РНМ: 0000000000092569 [17:27:35]line Версия ККМ: 001 [17:27:35]line ФМ: 0000000000871776 [17:27:35]line ФД: 139417 [17:27:35]line ФПД: 254947778946366 [17:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172735&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139417&fm=254947778946366&tin=02508201610067®Number=0000000000092569&sum=110000 [17:27:35]written 0, free lines is 4095 [17:27:35]OFD Sender: Processing packet 139417 [packets to send 137, broken 136] [17:27:35]ProducePacketName [17:27:35]name=ofd_packets/00139417 [17:27:35]OFD Sender: To server: pG, [17:27:35]CommunicateWithHost lk.salyk.kg:30040 [17:27:35]ConnectInit lk.salyk.kg [17:27:35]Connected sock=10 [17:27: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 37 36 0F 01 00 00 81 20 07 01 AE 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 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 87 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 20 02 00 35 04 06 00 E7 DF A7 CC E5 3E 47 92 55 22 DB 17 55 C2 [17:27: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 37 36 4F 00 00 00 42 C1 47 00 F1 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 37 36 10 04 04 00 99 20 02 00 F4 03 04 00 1C 27 C3 66 B6 04 01 00 00 FE A8 2A 2E 64 B8 B0 00 [17:27:36]CommunicateWithHost err = 0 [17:27:36]CheckOFDResponse [17:27:36]1017 (14) - 77093643461234 [17:27:36]1041 (16) - 0000000000871776 [17:27:36]1040 (4) - 139417 [17:27:36]1012 (4) - 19.08.2024 11:06 [17:27:36]1206 (1) - 0 [17:27:36]OFD Sender: Remove packet 139417 [17:27:36]ProducePacketName [17:27:36]name=ofd_packets/00139417 [17:27:36]NVStorageDeleteData [17:27:36]Write to MH i2c: 01 00 00 A3 20 C3 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: 01 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: 01 07 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: 01 07 00 A3 20 00 00 00 00 00 D7 0C AD [17:27:36]RasterBufferAndPrint [17:27:36]line [17:27:36]line [17:27:36]line [17:27:36]line [17:27:36]line [17:27:36]written 0, free lines is 3296 [17:27:36]MH_Cut [17:27:36]Write to MH i2c: D1 01 00 AA 20 01 9C [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: D1 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: D1 01 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: D1 01 00 AA 20 00 9B [17:27:36]Write to MH i2c: 01 00 00 AB 20 CB [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]OFD Sender: No OFD packet to send [17:27:36]*** Cut start [17:27:36]*** Partial cut [17:27:36]*** CUTSNS_PIN = 1 [17:27:36]*** CUTSNS_PIN = 0 [17:27:36]*** Brake cut motor [17:27:37]Read from MH i2c: 01 [17:27:37]MH_I2C_Read... [17:27:37]*** Stop cut motor [17:27:37]*** Cut end [17:27:37]Read from MH i2c: 01 07 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 FF 0F E0 [17:27:37]process_action close_receipt done [17:27:37]requested_data is exist [17:27:37]produce_requested_data [17:27:37]requested_item fm.sn is exist - process it [17:27:37]wFMCommunicate request_size=4 [17:27:37]MH_SAM_APDU [17:27:37]CAPDU: 80 11 00 00 [17:27:37]Write to MH i2c: E2 08 00 AC 20 80 11 00 00 00 00 00 00 46 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:37]Read from MH i2c: E2 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 17 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 17 00 AC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9D [17:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:27:37]wFMCommunicate OK [17:27:37]requested_item fd.num is exist - process it [17:27:37]SAM_PROTO_GetFieldsCounters [17:27:37]wFMCommunicate request_size=4 [17:27:37]MH_SAM_APDU [17:27:37]CAPDU: 80 13 00 00 [17:27:37]Write to MH i2c: E2 08 00 AD 20 80 13 00 00 00 00 00 00 49 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:37]Read from MH i2c: E2 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 62 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 62 00 AD 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 99 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [17:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 99 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:37]wFMCommunicate OK [17:27:37]SAM_PROTO_GetFieldsCounters done [17:27:37]requested_item shift.num is exist - process it [17:27:37]requested_item shift.opened is exist - process it [17:27:37]req_shift_opened [17:27:37]FM_GetShiftState [17:27:37]SAM_PROTO_GetShiftState [17:27:37]wFMCommunicate request_size=4 [17:27:37]MH_SAM_APDU [17:27:37]CAPDU: 80 13 01 00 [17:27:37]Write to MH i2c: E2 08 00 AE 20 80 13 01 00 00 00 00 00 4B [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:37]Read from MH i2c: E2 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 0E 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 0E 00 AE 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 02 [17:27:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:27:37]wFMCommunicate OK [17:27:37]SAM_PROTO_GetShiftState done [17:27:37]FM_GetShiftState done [17:27:37]req_shift_opened done [17:27:37]requested_item shift.open_date is exist - process it [17:27:37]req_shift_open_date [17:27:37]req_shift_open_date done [17:27:37]produce_requested_data done [17:27:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139417,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:27:37]process_action_free close_receipt [17:27:37]json_value_free [17:27:37]json_value_free done [17:27:37]process_json_proto returns [17:27:37]Send response to host [17:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139417,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:27:37]free response buf [17:27:37]execute_script done [17:27:37]execute_script returns [17:27:37]free content buf [17:27:37]Sock 8.Close socket [17:27:37]Sock 8.Thread stoped [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:28]accept exits with 9 [17:28:28]New connection [17:28:28]New thread 3066674532 created [17:28:28]Thread 3066817892 joined [17:28:28]Waiting for new connection... [17:28:28] Sock 9.Parse request [17:28:28]Sock 9.Check first char [17:28:28]Sock 9.First char is OK [17:28:28]request: POST /json_proto HTTP/1.0 [17:28:28]Method: POST [17:28:28]URL: /json_proto [17:28:28]Method is POST - this is cgi request [17:28:28]url: /json_proto [17:28:28]query_string will be loaded in cgi processing [17:28:28]execute_cgi json_proto POST (null) [17:28:28]execute_cgi path=json_proto method=POST [17:28:28]POST find Content-Length [17:28:28]Host: 172.17.45.67:8080 [17:28:28]Content-Length: 677 [17:28:28]Content-Type: application/json [17:28:28] [17:28:28]POST finish read [17:28:28]Found Content-Length = 677 [17:28:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:28:28]execute_script... [17:28: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)593260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:28:28]POST & json_proto [17:28:28]process_json_proto [17:28:28]json parsed OK: [17:28:28]protocol is kg_v1.0 [17:28:28]action value=close_receipt [17:28:28]process_action close_receipt [17:28:28]cmd_close_receipt [17:28:28]MH_GetDate [17:28:28]Write to MH i2c: F0 00 00 AF 20 BE [17:28:28]Write i2c OK [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: F0 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: F0 09 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: F0 09 00 AF 20 00 BE 80 C3 66 5F 7F 2B 66 9D [17:28:28]GetLastDocTimeStamp 1724088455 [17:28:28]current date 1724088510 [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 B0 20 80 13 01 00 00 00 00 00 4D [17:28:28]Write i2c OK [17:28:28]MH_I2C_Read... [17:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:29]Read from MH i2c: E2 [17:28:29]MH_I2C_Read... [17:28:29]Read from MH i2c: E2 0E 00 [17:28:29]MH_I2C_Read... [17:28:29]Read from MH i2c: E2 0E 00 B0 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 04 [17:28:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:28:29]wFMCommunicate OK [17:28:29]SAM_PROTO_GetShiftState done [17:28:29]FM_GetShiftState done [17:28:29]opened in 1724027888 [17:28:29]opened+sec_in_day 1724114288 [17:28:29]quantity*price = 50036 [17:28:29]sum+1 = 50037 [17:28:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 253 19.08.2024 17:28 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139418 ФПД: 118283008954806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172830&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139418&fm=118283008954806&tin=02508201610067®Number=0000000000092569&sum=50000 [17:28:30]StoreToDocumentArchive [17:28:30]shift 452 fd 139418 [17:28:30]save to /storage/0452/doc_00139418 [17:28:30]save last doc name /storage/0452/doc_00139418 to /storage/kkm_last_doc_name [17:28:30]save OK [17:28:30]Clear old archive folders... [17:28:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:30]tlvbuf is B6E87C40 [17:28:30]SAM_PROTO_ClearQueue [17:28:30]wFMCommunicate request_size=4 [17:28:30]MH_SAM_APDU [17:28:30]CAPDU: 80 09 00 00 [17:28:30]Write to MH i2c: E2 08 00 BD 20 80 09 00 00 00 00 00 00 4F [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:30]Read from MH i2c: E2 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 BD 20 00 90 00 51 [17:28:30]RAPDU: 90 00 [17:28:30]wFMCommunicate OK [17:28:30]SAM_PROTO_ClearQueue done [17:28:30]KKMCreateOFDPacket [17:28:30]OFDProtocolAddRootSTLVToBuf [17:28:30]FM_MakeSignedData [17:28:30]FM_MakeSignedData [17:28:30]SAM_PROTO_SignData [17:28:30]wFMCommunicate request_size=4 [17:28:30]MH_SAM_APDU [17:28:30]CAPDU: 80 0D 01 02 [17:28:30]Write to MH i2c: E2 08 00 BE 20 80 0D 01 02 00 00 00 00 57 [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:30]Read from MH i2c: E2 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 BE 20 00 90 00 52 [17:28:30]RAPDU: 90 00 [17:28:30]wFMCommunicate OK [17:28:30]wFMCommunicate request_size=255 [17:28:30]MH_SAM_APDU [17:28: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 FD 00 00 00 F4 03 04 00 BE 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 20 02 00 35 04 06 00 6B [17:28:30]Write to MH i2c: E2 02 01 BF 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 FD 00 00 00 F4 03 04 00 BE 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 20 02 00 35 04 06 00 6B 00 00 30 [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:30]Read from MH i2c: E2 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 BF 20 00 90 00 53 [17:28:30]RAPDU: 90 00 [17:28:30]wFMCommunicate OK [17:28:30]wFMCommunicate request_size=10 [17:28:30]MH_SAM_APDU [17:28:30]CAPDU: 80 0D 02 02 05 93 E8 BB 51 B6 [17:28:30]Write to MH i2c: E2 0D 00 C0 20 80 0D 02 02 05 00 93 E8 BB 51 B6 00 00 A1 [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:30]Read from MH i2c: E2 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 C0 20 00 90 00 54 [17:28:30]RAPDU: 90 00 [17:28:30]wFMCommunicate OK [17:28:30]wFMCommunicate request_size=4 [17:28:30]MH_SAM_APDU [17:28:30]CAPDU: 80 0D 03 02 [17:28:30]Write to MH i2c: E2 08 00 C1 20 80 0D 03 02 00 00 00 00 5C [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:30]Read from MH i2c: E2 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 0B 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 0B 00 C1 20 00 85 1F 42 97 11 F3 2A 67 90 00 6F [17:28:30]RAPDU: 85 1F 42 97 11 F3 2A 67 90 00 [17:28:30]wFMCommunicate OK [17:28:30]SAM_PROTO_SignData done [17:28:30]FM_MakeSignedData done [17:28:30]CreateOFDProtocolMessage [17:28:30]wFMCommunicate request_size=4 [17:28:30]MH_SAM_APDU [17:28:30]CAPDU: 80 11 00 00 [17:28:30]Write to MH i2c: E2 08 00 C2 20 80 11 00 00 00 00 00 00 5C [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:30]Read from MH i2c: E2 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 17 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 17 00 C2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B3 [17:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:28:30]wFMCommunicate OK [17:28:30]CreateOFDProtocolMessage done [17:28:30]OFDSenderStorePacket 139418 [17:28:30]StoreOFDPacket docnum=139418 [17:28:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B4 9B 07 01 20 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 FD 00 00 00 F4 03 04 00 BE 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 20 02 00 35 04 06 00 6B 93 E8 BB 51 B6 85 1F 42 97 11 F3 2A 67 [17:28:30]CheckFolder [17:28:30]dirname=/storage/ofd_packets [17:28:30]CheckFolder done [17:28:30]ProducePacketName [17:28:30]name=ofd_packets/00139418 [17:28:30]NVStorageSaveData ofd_packets/00139418 [17:28:30]File name is /storage/ofd_packets/00139418 [17:28:30]Write 301 bytes [17:28:30]NVStorageSaveData done [17:28:30]OFDSenderStorePacket done [17:28:30]KKMCreateOFDPacket done [17:28:30]NVStorageSaveData kkm_last_timestamp [17:28:30]File name is /storage/kkm_last_timestamp [17:28:30]Write 4 bytes [17:28:30]NVStorageSaveData done [17:28:30]ExternCall_PrintAddStr [17:28:30]wPrintStart [17:28:30]Write to MH i2c: 01 00 00 C3 20 E3 [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: 01 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: 01 07 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: 01 07 00 C3 20 00 00 00 00 00 FF 0F F8 [17:28:30]RasterBufferAndPrint [17:28:30]line Счет N : (1)593260 [17:28:30]line ИНН: 02508201610067 [17:28:30]line Контрольно-Кассовый Чек [17:28:30]line ПРОДАЖА [17:28:30]line ТРК (МРК, ГНК) : 42 [17:28:30]line Товар: 2710124130 [17:28:30]line Аи-92-К-5 [17:28:30]line 7.380 * 67.80 [17:28:30]line = 500.36 [17:28:30]line НДС 12% НСП 1% [17:28:30]line > о реализуемом товаре [17:28:30]line ОКРУГЛЕНИЕ: -0.36 [17:28:30]line ИТОГО: 500.00 [17:28:30]line Внесено: 500.00 [17:28:30]line СДАЧА: 0.00 [17:28:30]line НСП 1% : 4.43 [17:28:30]line НДС 12% : 53.14 [17:28:30]line Наличными: 500.00 [17:28:30]line Безнал.: 0.00 [17:28:30]line Место: АЗС № 136 "Партнер Нефть" [17:28:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:28:30]line СНО: Общий режим [17:28:30]line Чек 253 19.08.2024 17:28 [17:28:30]line Смена: 452 ФФД: 1.0 [17:28:30]line ЗНМ: 0300000067 [17:28:30]line РНМ: 0000000000092569 [17:28:30]line Версия ККМ: 001 [17:28:30]line ФМ: 0000000000871776 [17:28:30]line ФД: 139418 [17:28:30]line ФПД: 118283008954806 [17:28:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172830&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139418&fm=118283008954806&tin=02508201610067®Number=0000000000092569&sum=50000 [17:28:31]written 0, free lines is 4095 [17:28:31]OFD Sender: Processing packet 139418 [packets to send 137, broken 136] [17:28:31]ProducePacketName [17:28:31]name=ofd_packets/00139418 [17:28:31]OFD Sender: To server: pG, [17:28:31]CommunicateWithHost lk.salyk.kg:30040 [17:28:31]ConnectInit lk.salyk.kg [17:28:31]Connected sock=10 [17:28: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 37 36 0F 01 00 00 B4 9B 07 01 20 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 FD 00 00 00 F4 03 04 00 BE 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 20 02 00 35 04 06 00 6B 93 E8 BB 51 B6 85 1F 42 97 11 F3 2A 67 [17:28:31]Write to MH i2c: 01 00 00 EE 20 0E [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 EE 20 00 00 00 00 00 D6 0C F7 [17:28:31]RasterBufferAndPrint [17:28:31]line [17:28:31]line [17:28:31]line [17:28:31]line [17:28:31]line [17:28:31]written 0, free lines is 3294 [17:28:31]MH_Cut [17:28:31]Write to MH i2c: D1 01 00 F5 20 01 E7 [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: D1 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: D1 01 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: D1 01 00 F5 20 00 E6 [17:28:31]Write to MH i2c: 01 00 00 F6 20 16 [17:28: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 37 36 4F 00 00 00 61 EE 47 00 1D 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 20 02 00 F4 03 04 00 54 27 C3 66 B6 04 01 00 00 27 ED E1 CD A7 2B E8 C4 [17:28:31]CommunicateWithHost err = 0 [17:28:31]CheckOFDResponse [17:28:31]1017 (14) - 77093643461234 [17:28:31]1041 (16) - 0000000000871776 [17:28:31]1040 (4) - 139418 [17:28:31]1012 (4) - 19.08.2024 11:07 [17:28:31]1206 (1) - 0 [17:28:31]OFD Sender: Remove packet 139418 [17:28:31]ProducePacketName [17:28:31]name=ofd_packets/00139418 [17:28:31]NVStorageDeleteData [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]OFD Sender: No OFD packet to send [17:28:32]*** Cut start [17:28:32]*** Partial cut [17:28:32]*** CUTSNS_PIN = 1 [17:28:32]*** CUTSNS_PIN = 0 [17:28:32]*** Brake cut motor [17:28:32]Read from MH i2c: 01 [17:28:32]MH_I2C_Read... [17:28:32]*** Stop cut motor [17:28:32]*** Cut end [17:28:32]Read from MH i2c: 01 07 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: 01 07 00 F6 20 00 00 00 00 00 FF 0F 2B [17:28:32]process_action close_receipt done [17:28:32]requested_data is exist [17:28:32]produce_requested_data [17:28:32]requested_item fm.sn is exist - process it [17:28:32]wFMCommunicate request_size=4 [17:28:32]MH_SAM_APDU [17:28:32]CAPDU: 80 11 00 00 [17:28:32]Write to MH i2c: E2 08 00 F7 20 80 11 00 00 00 00 00 00 91 [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:32]Read from MH i2c: E2 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 17 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 17 00 F7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [17:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:28:32]wFMCommunicate OK [17:28:32]requested_item fd.num is exist - process it [17:28:32]SAM_PROTO_GetFieldsCounters [17:28:32]wFMCommunicate request_size=4 [17:28:32]MH_SAM_APDU [17:28:32]CAPDU: 80 13 00 00 [17:28:32]Write to MH i2c: E2 08 00 F8 20 80 13 00 00 00 00 00 00 94 [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:32]Read from MH i2c: E2 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 62 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 62 00 F8 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9A 20 02 00 0E 04 04 00 C4 01 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 37 [17:28: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9A 20 02 00 0E 04 04 00 C4 01 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 [17:28:32]wFMCommunicate OK [17:28:32]SAM_PROTO_GetFieldsCounters done [17:28:32]requested_item shift.num is exist - process it [17:28:32]requested_item shift.opened is exist - process it [17:28:32]req_shift_opened [17:28:32]FM_GetShiftState [17:28:32]SAM_PROTO_GetShiftState [17:28:32]wFMCommunicate request_size=4 [17:28:32]MH_SAM_APDU [17:28:32]CAPDU: 80 13 01 00 [17:28:32]Write to MH i2c: E2 08 00 F9 20 80 13 01 00 00 00 00 00 96 [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:32]Read from MH i2c: E2 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 0E 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 0E 00 F9 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4D [17:28:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:28:32]wFMCommunicate OK [17:28:32]SAM_PROTO_GetShiftState done [17:28:32]FM_GetShiftState done [17:28:32]req_shift_opened done [17:28:32]requested_item shift.open_date is exist - process it [17:28:32]req_shift_open_date [17:28:32]req_shift_open_date done [17:28:32]produce_requested_data done [17:28:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139418,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:28:32]process_action_free close_receipt [17:28:32]json_value_free [17:28:32]json_value_free done [17:28:32]process_json_proto returns [17:28:32]Send response to host [17:28:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139418,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:28:32]free response buf [17:28:32]execute_script done [17:28:32]execute_script returns [17:28:32]free content buf [17:28:32]Sock 9.Close socket [17:28:32]Sock 9.Thread stoped [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:01]accept exits with 8 [17:29:01]New connection [17:29:01]New thread 3066817892 created [17:29:01]Thread 3066674532 joined [17:29:01]Waiting for new connection... [17:29:01] Sock 8.Parse request [17:29:01]Sock 8.Check first char [17:29:01]Sock 8.First char is OK [17:29:01]request: POST /json_proto HTTP/1.0 [17:29:01]Method: POST [17:29:01]URL: /json_proto [17:29:01]Method is POST - this is cgi request [17:29:01]url: /json_proto [17:29:01]query_string will be loaded in cgi processing [17:29:01]execute_cgi json_proto POST (null) [17:29:01]execute_cgi path=json_proto method=POST [17:29:01]POST find Content-Length [17:29:01]Host: 172.17.45.67:8080 [17:29:01]Content-Length: 677 [17:29:01]Content-Type: application/json [17:29:01] [17:29:01]POST finish read [17:29:01]Found Content-Length = 677 [17:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:01]execute_script... [17:29: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)593261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:29:01]POST & json_proto [17:29:01]process_json_proto [17:29:01]json parsed OK: [17:29:01]protocol is kg_v1.0 [17:29:01]action value=close_receipt [17:29:01]process_action close_receipt [17:29:01]cmd_close_receipt [17:29:01]MH_GetDate [17:29:01]Write to MH i2c: F0 00 00 FA 20 09 [17:29:01]Write i2c OK [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: F0 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: F0 09 00 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: F0 09 00 FA 20 00 DF 80 C3 66 5F 7F 2B 66 09 [17:29:01]GetLastDocTimeStamp 1724088510 [17:29:01]current date 1724088543 [17:29:01]FM_GetShiftState [17:29:01]SAM_PROTO_GetShiftState [17:29:01]wFMCommunicate request_size=4 [17:29:01]MH_SAM_APDU [17:29:01]CAPDU: 80 13 01 00 [17:29:01]Write to MH i2c: E2 08 00 FB 20 80 13 01 00 00 00 00 00 98 [17:29:01]Write i2c OK [17:29:01]MH_I2C_Read... [17:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:01]Read from MH i2c: E2 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 0E 00 [17:29:01]MH_I2C_Read... [17:29:01]Read from MH i2c: E2 0E 00 FB 20 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4F [17:29:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:29:01]wFMCommunicate OK [17:29:01]SAM_PROTO_GetShiftState done [17:29:01]FM_GetShiftState done [17:29:01]opened in 1724027888 [17:29:01]opened+sec_in_day 1724114288 [17:29:01]quantity*price = 50036 [17:29:01]sum+1 = 50037 [17:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 254 19.08.2024 17:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139419 ФПД: 107939264688622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172903&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139419&fm=107939264688622&tin=02508201610067®Number=0000000000092569&sum=50000 [17:29:03]StoreToDocumentArchive [17:29:03]shift 452 fd 139419 [17:29:03]save to /storage/0452/doc_00139419 [17:29:03]save last doc name /storage/0452/doc_00139419 to /storage/kkm_last_doc_name [17:29:03]save OK [17:29:03]Clear old archive folders... [17:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:03]tlvbuf is B6EA0180 [17:29:03]SAM_PROTO_ClearQueue [17:29:03]wFMCommunicate request_size=4 [17:29:03]MH_SAM_APDU [17:29:03]CAPDU: 80 09 00 00 [17:29:03]Write to MH i2c: E2 08 00 08 21 80 09 00 00 00 00 00 00 9B [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 03 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 03 00 08 21 00 90 00 9D [17:29:03]RAPDU: 90 00 [17:29:03]wFMCommunicate OK [17:29:03]SAM_PROTO_ClearQueue done [17:29:03]KKMCreateOFDPacket [17:29:03]OFDProtocolAddRootSTLVToBuf [17:29:03]FM_MakeSignedData [17:29:03]FM_MakeSignedData [17:29:03]SAM_PROTO_SignData [17:29:03]wFMCommunicate request_size=4 [17:29:03]MH_SAM_APDU [17:29:03]CAPDU: 80 0D 01 02 [17:29:03]Write to MH i2c: E2 08 00 09 21 80 0D 01 02 00 00 00 00 A3 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 03 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 03 00 09 21 00 90 00 9E [17:29:03]RAPDU: 90 00 [17:29:03]wFMCommunicate OK [17:29:03]wFMCommunicate request_size=255 [17:29:03]MH_SAM_APDU [17:29: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 FE 00 00 00 F4 03 04 00 DF 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 20 02 00 35 04 06 00 62 [17:29:03]Write to MH i2c: E2 02 01 0A 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 FE 00 00 00 F4 03 04 00 DF 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 20 02 00 35 04 06 00 62 00 00 96 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 03 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 03 00 0A 21 00 90 00 9F [17:29:03]RAPDU: 90 00 [17:29:03]wFMCommunicate OK [17:29:03]wFMCommunicate request_size=10 [17:29:03]MH_SAM_APDU [17:29:03]CAPDU: 80 0D 02 02 05 2B 91 87 71 EE [17:29:03]Write to MH i2c: E2 0D 00 0B 21 80 0D 02 02 05 00 2B 91 87 71 EE 00 00 52 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 03 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 03 00 0B 21 00 90 00 A0 [17:29:03]RAPDU: 90 00 [17:29:03]wFMCommunicate OK [17:29:03]wFMCommunicate request_size=4 [17:29:03]MH_SAM_APDU [17:29:03]CAPDU: 80 0D 03 02 [17:29:03]Write to MH i2c: E2 08 00 0C 21 80 0D 03 02 00 00 00 00 A8 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 0B 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 0B 00 0C 21 00 42 0D 36 40 FE 80 7C 1D 90 00 85 [17:29:03]RAPDU: 42 0D 36 40 FE 80 7C 1D 90 00 [17:29:03]wFMCommunicate OK [17:29:03]SAM_PROTO_SignData done [17:29:03]FM_MakeSignedData done [17:29:03]CreateOFDProtocolMessage [17:29:03]wFMCommunicate request_size=4 [17:29:03]MH_SAM_APDU [17:29:03]CAPDU: 80 11 00 00 [17:29:03]Write to MH i2c: E2 08 00 0D 21 80 11 00 00 00 00 00 00 A8 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 17 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 17 00 0D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FF [17:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:29:03]wFMCommunicate OK [17:29:03]CreateOFDProtocolMessage done [17:29:03]OFDSenderStorePacket 139419 [17:29:03]StoreOFDPacket docnum=139419 [17:29:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2D 34 07 01 D7 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 FE 00 00 00 F4 03 04 00 DF 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 20 02 00 35 04 06 00 62 2B 91 87 71 EE 42 0D 36 40 FE 80 7C 1D [17:29:03]CheckFolder [17:29:03]dirname=/storage/ofd_packets [17:29:03]CheckFolder done [17:29:03]ProducePacketName [17:29:03]name=ofd_packets/00139419 [17:29:03]NVStorageSaveData ofd_packets/00139419 [17:29:03]File name is /storage/ofd_packets/00139419 [17:29:03]Write 301 bytes [17:29:03]NVStorageSaveData done [17:29:03]OFDSenderStorePacket done [17:29:03]KKMCreateOFDPacket done [17:29:03]NVStorageSaveData kkm_last_timestamp [17:29:03]File name is /storage/kkm_last_timestamp [17:29:03]Write 4 bytes [17:29:03]NVStorageSaveData done [17:29:03]ExternCall_PrintAddStr [17:29:03]wPrintStart [17:29:03]Write to MH i2c: 01 00 00 0E 21 2F [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: 01 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: 01 07 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: 01 07 00 0E 21 00 00 00 00 00 FF 0F 44 [17:29:03]RasterBufferAndPrint [17:29:03]line Счет N : (1)593261 [17:29:03]line ИНН: 02508201610067 [17:29:03]line Контрольно-Кассовый Чек [17:29:03]line ПРОДАЖА [17:29:03]line ТРК (МРК, ГНК) : 52 [17:29:03]line Товар: 2710124130 [17:29:03]line Аи-92-К-5 [17:29:03]line 7.380 * 67.80 [17:29:03]line = 500.36 [17:29:03]line НДС 12% НСП 1% [17:29:03]line > о реализуемом товаре [17:29:03]line ОКРУГЛЕНИЕ: -0.36 [17:29:03]line ИТОГО: 500.00 [17:29:03]line Внесено: 500.00 [17:29:03]line СДАЧА: 0.00 [17:29:03]line НСП 1% : 4.43 [17:29:03]line НДС 12% : 53.14 [17:29:03]line Наличными: 500.00 [17:29:03]line Безнал.: 0.00 [17:29:03]line Место: АЗС № 136 "Партнер Нефть" [17:29:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:29:03]line СНО: Общий режим [17:29:03]line Чек 254 19.08.2024 17:29 [17:29:03]line Смена: 452 ФФД: 1.0 [17:29:03]line ЗНМ: 0300000067 [17:29:03]line РНМ: 0000000000092569 [17:29:03]line Версия ККМ: 001 [17:29:03]line ФМ: 0000000000871776 [17:29:03]line ФД: 139419 [17:29:03]line ФПД: 107939264688622 [17:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172903&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139419&fm=107939264688622&tin=02508201610067®Number=0000000000092569&sum=50000 [17:29:03]written 0, free lines is 4095 [17:29:03]OFD Sender: Processing packet 139419 [packets to send 137, broken 136] [17:29:03]ProducePacketName [17:29:03]name=ofd_packets/00139419 [17:29:03]OFD Sender: To server: pG, [17:29:03]CommunicateWithHost lk.salyk.kg:30040 [17:29:03]ConnectInit lk.salyk.kg [17:29:04]Connected sock=10 [17:29: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 37 36 0F 01 00 00 2D 34 07 01 D7 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 FE 00 00 00 F4 03 04 00 DF 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 20 02 00 35 04 06 00 62 2B 91 87 71 EE 42 0D 36 40 FE 80 7C 1D [17:29: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 37 36 4F 00 00 00 62 17 47 00 41 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 37 36 10 04 04 00 9B 20 02 00 F4 03 04 00 75 27 C3 66 B6 04 01 00 00 23 E5 2E 97 C0 C9 06 3F [17:29:04]CommunicateWithHost err = 0 [17:29:04]CheckOFDResponse [17:29:04]1017 (14) - 77093643461234 [17:29:04]1041 (16) - 0000000000871776 [17:29:04]1040 (4) - 139419 [17:29:04]1012 (4) - 19.08.2024 11:07 [17:29:04]1206 (1) - 0 [17:29:04]OFD Sender: Remove packet 139419 [17:29:04]ProducePacketName [17:29:04]name=ofd_packets/00139419 [17:29:04]NVStorageDeleteData [17:29:04]Write to MH i2c: 01 00 00 39 21 5A [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: 01 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: 01 07 00 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: 01 07 00 39 21 00 00 00 00 00 D0 0C 3D [17:29:04]RasterBufferAndPrint [17:29:04]line [17:29:04]line [17:29:04]line [17:29:04]line [17:29:04]line [17:29:04]written 0, free lines is 3284 [17:29:04]MH_Cut [17:29:04]Write to MH i2c: D1 01 00 40 21 01 33 [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: D1 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: D1 01 00 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: D1 01 00 40 21 00 32 [17:29:04]Write to MH i2c: 01 00 00 41 21 62 [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]OFD Sender: No OFD packet to send [17:29:05]*** Cut start [17:29:05]*** Partial cut [17:29:05]*** CUTSNS_PIN = 1 [17:29:05]*** CUTSNS_PIN = 0 [17:29:05]*** Brake cut motor [17:29:05]Read from MH i2c: 01 [17:29:05]MH_I2C_Read... [17:29:05]*** Stop cut motor [17:29:05]*** Cut end [17:29:05]Read from MH i2c: 01 07 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: 01 07 00 41 21 00 00 00 00 00 FF 0F 77 [17:29:05]process_action close_receipt done [17:29:05]requested_data is exist [17:29:05]produce_requested_data [17:29:05]requested_item fm.sn is exist - process it [17:29:05]wFMCommunicate request_size=4 [17:29:05]MH_SAM_APDU [17:29:05]CAPDU: 80 11 00 00 [17:29:05]Write to MH i2c: E2 08 00 42 21 80 11 00 00 00 00 00 00 DD [17:29:05]Write i2c OK [17:29:05]MH_I2C_Read... [17:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:05]Read from MH i2c: E2 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 17 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 17 00 42 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 34 [17:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:29:05]wFMCommunicate OK [17:29:05]requested_item fd.num is exist - process it [17:29:05]SAM_PROTO_GetFieldsCounters [17:29:05]wFMCommunicate request_size=4 [17:29:05]MH_SAM_APDU [17:29:05]CAPDU: 80 13 00 00 [17:29:05]Write to MH i2c: E2 08 00 43 21 80 13 00 00 00 00 00 00 E0 [17:29:05]Write i2c OK [17:29:05]MH_I2C_Read... [17:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:05]Read from MH i2c: E2 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 62 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 62 00 43 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9B 20 02 00 0E 04 04 00 C4 01 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 87 [17:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9B 20 02 00 0E 04 04 00 C4 01 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 [17:29:05]wFMCommunicate OK [17:29:05]SAM_PROTO_GetFieldsCounters done [17:29:05]requested_item shift.num is exist - process it [17:29:05]requested_item shift.opened is exist - process it [17:29:05]req_shift_opened [17:29:05]FM_GetShiftState [17:29:05]SAM_PROTO_GetShiftState [17:29:05]wFMCommunicate request_size=4 [17:29:05]MH_SAM_APDU [17:29:05]CAPDU: 80 13 01 00 [17:29:05]Write to MH i2c: E2 08 00 44 21 80 13 01 00 00 00 00 00 E2 [17:29:05]Write i2c OK [17:29:05]MH_I2C_Read... [17:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:05]Read from MH i2c: E2 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 0E 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 0E 00 44 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 99 [17:29:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:29:05]wFMCommunicate OK [17:29:05]SAM_PROTO_GetShiftState done [17:29:05]FM_GetShiftState done [17:29:05]req_shift_opened done [17:29:05]requested_item shift.open_date is exist - process it [17:29:05]req_shift_open_date [17:29:05]req_shift_open_date done [17:29:05]produce_requested_data done [17:29:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139419,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:29:05]process_action_free close_receipt [17:29:05]json_value_free [17:29:05]json_value_free done [17:29:05]process_json_proto returns [17:29:05]Send response to host [17:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139419,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:29:05]free response buf [17:29:05]execute_script done [17:29:05]execute_script returns [17:29:05]free content buf [17:29:05]Sock 8.Close socket [17:29:05]Sock 8.Thread stoped [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:23]accept exits with 9 [17:29:23]New connection [17:29:23]New thread 3066674532 created [17:29:23]Thread 3066817892 joined [17:29:23]Waiting for new connection... [17:29:23] Sock 9.Parse request [17:29:23]Sock 9.Check first char [17:29:23]Sock 9.First char is OK [17:29:23]request: POST /json_proto HTTP/1.0 [17:29:23]Method: POST [17:29:23]URL: /json_proto [17:29:23]Method is POST - this is cgi request [17:29:23]url: /json_proto [17:29:23]query_string will be loaded in cgi processing [17:29:23]execute_cgi json_proto POST (null) [17:29:23]execute_cgi path=json_proto method=POST [17:29:23]POST find Content-Length [17:29:23]Host: 172.17.45.67:8080 [17:29:23]Content-Length: 677 [17:29:23]Content-Type: application/json [17:29:23] [17:29:23]POST finish read [17:29:23]Found Content-Length = 677 [17:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:29:23]execute_script... [17:29:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:29:23]POST & json_proto [17:29:23]process_json_proto [17:29:23]json parsed OK: [17:29:23]protocol is kg_v1.0 [17:29:23]action value=close_receipt [17:29:23]process_action close_receipt [17:29:23]cmd_close_receipt [17:29:23]MH_GetDate [17:29:23]Write to MH i2c: F0 00 00 45 21 55 [17:29:23]Write i2c OK [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: F0 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: F0 09 00 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: F0 09 00 45 21 00 F5 80 C3 66 5F 7F 2B 66 6B [17:29:23]GetLastDocTimeStamp 1724088543 [17:29:23]current date 1724088565 [17:29:23]FM_GetShiftState [17:29:23]SAM_PROTO_GetShiftState [17:29:23]wFMCommunicate request_size=4 [17:29:23]MH_SAM_APDU [17:29:23]CAPDU: 80 13 01 00 [17:29:23]Write to MH i2c: E2 08 00 46 21 80 13 01 00 00 00 00 00 E4 [17:29:23]Write i2c OK [17:29:23]MH_I2C_Read... [17:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:23]Read from MH i2c: E2 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 0E 00 [17:29:23]MH_I2C_Read... [17:29:23]Read from MH i2c: E2 0E 00 46 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9B [17:29:23]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:29:23]wFMCommunicate OK [17:29:23]SAM_PROTO_GetShiftState done [17:29:23]FM_GetShiftState done [17:29:23]opened in 1724027888 [17:29:23]opened+sec_in_day 1724114288 [17:29:23]quantity*price = 40002 [17:29:23]sum+1 = 40003 [17:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 255 19.08.2024 17:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139420 ФПД: 13592624045074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172925&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139420&fm=13592624045074&tin=02508201610067®Number=0000000000092569&sum=40000 [17:29:24]StoreToDocumentArchive [17:29:24]shift 452 fd 139420 [17:29:24]save to /storage/0452/doc_00139420 [17:29:24]save last doc name /storage/0452/doc_00139420 to /storage/kkm_last_doc_name [17:29:24]save OK [17:29:24]Clear old archive folders... [17:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:24]tlvbuf is B6EA03C0 [17:29:24]SAM_PROTO_ClearQueue [17:29:24]wFMCommunicate request_size=4 [17:29:24]MH_SAM_APDU [17:29:24]CAPDU: 80 09 00 00 [17:29:24]Write to MH i2c: E2 08 00 53 21 80 09 00 00 00 00 00 00 E6 [17:29:24]Write i2c OK [17:29:24]MH_I2C_Read... [17:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:24]Read from MH i2c: E2 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 03 00 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 03 00 53 21 00 90 00 E8 [17:29:24]RAPDU: 90 00 [17:29:24]wFMCommunicate OK [17:29:24]SAM_PROTO_ClearQueue done [17:29:24]KKMCreateOFDPacket [17:29:24]OFDProtocolAddRootSTLVToBuf [17:29:24]FM_MakeSignedData [17:29:24]FM_MakeSignedData [17:29:24]SAM_PROTO_SignData [17:29:24]wFMCommunicate request_size=4 [17:29:24]MH_SAM_APDU [17:29:24]CAPDU: 80 0D 01 02 [17:29:24]Write to MH i2c: E2 08 00 54 21 80 0D 01 02 00 00 00 00 EE [17:29:24]Write i2c OK [17:29:24]MH_I2C_Read... [17:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:24]Read from MH i2c: E2 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 03 00 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 03 00 54 21 00 90 00 E9 [17:29:24]RAPDU: 90 00 [17:29:24]wFMCommunicate OK [17:29:24]wFMCommunicate request_size=255 [17:29:24]MH_SAM_APDU [17:29:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 FF 00 00 00 F4 03 04 00 F5 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 20 02 00 35 04 06 00 0C [17:29:24]Write to MH i2c: E2 02 01 55 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 FF 00 00 00 F4 03 04 00 F5 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 20 02 00 35 04 06 00 0C 00 00 88 [17:29:24]Write i2c OK [17:29:24]MH_I2C_Read... [17:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:24]Read from MH i2c: E2 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 03 00 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 03 00 55 21 00 90 00 EA [17:29:24]RAPDU: 90 00 [17:29:24]wFMCommunicate OK [17:29:24]wFMCommunicate request_size=10 [17:29:24]MH_SAM_APDU [17:29:24]CAPDU: 80 0D 02 02 05 5C C7 87 1C 12 [17:29:24]Write to MH i2c: E2 0D 00 56 21 80 0D 02 02 05 00 5C C7 87 1C 12 00 00 D3 [17:29:24]Write i2c OK [17:29:24]MH_I2C_Read... [17:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:24]Read from MH i2c: E2 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 03 00 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 03 00 56 21 00 90 00 EB [17:29:24]RAPDU: 90 00 [17:29:24]wFMCommunicate OK [17:29:24]wFMCommunicate request_size=4 [17:29:24]MH_SAM_APDU [17:29:24]CAPDU: 80 0D 03 02 [17:29:24]Write to MH i2c: E2 08 00 57 21 80 0D 03 02 00 00 00 00 F3 [17:29:24]OFD Sender: No OFD packet to send [17:29:24]Write i2c OK [17:29:24]MH_I2C_Read... [17:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:24]Read from MH i2c: E2 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 0B 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 0B 00 57 21 00 2D 20 A1 E8 FB 1E EA 53 90 00 20 [17:29:25]RAPDU: 2D 20 A1 E8 FB 1E EA 53 90 00 [17:29:25]wFMCommunicate OK [17:29:25]SAM_PROTO_SignData done [17:29:25]FM_MakeSignedData done [17:29:25]CreateOFDProtocolMessage [17:29:25]wFMCommunicate request_size=4 [17:29:25]MH_SAM_APDU [17:29:25]CAPDU: 80 11 00 00 [17:29:25]Write to MH i2c: E2 08 00 58 21 80 11 00 00 00 00 00 00 F3 [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:25]Read from MH i2c: E2 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 17 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 17 00 58 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4A [17:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:29:25]wFMCommunicate OK [17:29:25]CreateOFDProtocolMessage done [17:29:25]OFDSenderStorePacket 139420 [17:29:25]StoreOFDPacket docnum=139420 [17:29:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 1E 07 01 2A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 FF 00 00 00 F4 03 04 00 F5 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 20 02 00 35 04 06 00 0C 5C C7 87 1C 12 2D 20 A1 E8 FB 1E EA 53 [17:29:25]CheckFolder [17:29:25]dirname=/storage/ofd_packets [17:29:25]CheckFolder done [17:29:25]ProducePacketName [17:29:25]name=ofd_packets/00139420 [17:29:25]NVStorageSaveData ofd_packets/00139420 [17:29:25]File name is /storage/ofd_packets/00139420 [17:29:25]Write 301 bytes [17:29:25]NVStorageSaveData done [17:29:25]OFDSenderStorePacket done [17:29:25]KKMCreateOFDPacket done [17:29:25]NVStorageSaveData kkm_last_timestamp [17:29:25]File name is /storage/kkm_last_timestamp [17:29:25]Write 4 bytes [17:29:25]NVStorageSaveData done [17:29:25]ExternCall_PrintAddStr [17:29:25]wPrintStart [17:29:25]Write to MH i2c: 01 00 00 59 21 7A [17:29:25]OFD Sender: Processing packet 139420 [packets to send 137, broken 136] [17:29:25]ProducePacketName [17:29:25]name=ofd_packets/00139420 [17:29:25]OFD Sender: To server: pG, [17:29:25]CommunicateWithHost lk.salyk.kg:30040 [17:29:25]ConnectInit lk.salyk.kg [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: 01 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: 01 07 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: 01 07 00 59 21 00 00 00 00 00 FF 0F 8F [17:29:25]RasterBufferAndPrint [17:29:25]line Счет N : (1)593262 [17:29:25]line ИНН: 02508201610067 [17:29:25]line Контрольно-Кассовый Чек [17:29:25]line ПРОДАЖА [17:29:25]line ТРК (МРК, ГНК) : 32 [17:29:25]line Товар: 2710124130 [17:29:25]line Аи-92-К-5 [17:29:25]line 5.900 * 67.80 [17:29:25]line = 400.02 [17:29:25]line НДС 12% НСП 1% [17:29:25]line > о реализуемом товаре [17:29:25]line ОКРУГЛЕНИЕ: -0.02 [17:29:25]line ИТОГО: 400.00 [17:29:25]line Внесено: 400.00 [17:29:25]line СДАЧА: 0.00 [17:29:25]line НСП 1% : 3.54 [17:29:25]line НДС 12% : 42.48 [17:29:25]line Наличными: 400.00 [17:29:25]line Безнал.: 0.00 [17:29:25]line Место: АЗС № 136 "Партнер Нефть" [17:29:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:29:25]line СНО: Общий режим [17:29:25]line Чек 255 19.08.2024 17:29 [17:29:25]line Смена: 452 ФФД: 1.0 [17:29:25]line ЗНМ: 0300000067 [17:29:25]line РНМ: 0000000000092569 [17:29:25]line Версия ККМ: 001 [17:29:25]line ФМ: 0000000000871776 [17:29:25]line ФД: 139420 [17:29:25]line ФПД: 13592624045074 [17:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172925&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139420&fm=13592624045074&tin=02508201610067®Number=0000000000092569&sum=40000 [17:29:25]Connected sock=10 [17:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 1E 07 01 2A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 FF 00 00 00 F4 03 04 00 F5 80 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 20 02 00 35 04 06 00 0C 5C C7 87 1C 12 2D 20 A1 E8 FB 1E EA 53 [17:29:25]written 0, free lines is 4095 [17:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 22 AB 47 00 44 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 37 36 10 04 04 00 9C 20 02 00 F4 03 04 00 8A 27 C3 66 B6 04 01 00 00 AD 80 00 56 5D 0C 21 8D [17:29:25]CommunicateWithHost err = 0 [17:29:25]CheckOFDResponse [17:29:25]1017 (14) - 77093643461234 [17:29:25]1041 (16) - 0000000000871776 [17:29:25]1040 (4) - 139420 [17:29:25]1012 (4) - 19.08.2024 11:07 [17:29:25]1206 (1) - 0 [17:29:25]OFD Sender: Remove packet 139420 [17:29:25]ProducePacketName [17:29:25]name=ofd_packets/00139420 [17:29:25]NVStorageDeleteData [17:29:25]Write to MH i2c: 01 00 00 84 21 A5 [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: 01 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: 01 07 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: 01 07 00 84 21 00 00 00 00 00 DD 0C 95 [17:29:25]RasterBufferAndPrint [17:29:25]line [17:29:25]line [17:29:25]line [17:29:25]line [17:29:25]line [17:29:25]written 0, free lines is 3300 [17:29:25]MH_Cut [17:29:25]Write to MH i2c: D1 01 00 8B 21 01 7E [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: D1 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: D1 01 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: D1 01 00 8B 21 00 7D [17:29:25]Write to MH i2c: 01 00 00 8C 21 AD [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:26]OFD Sender: No OFD packet to send [17:29:26]*** Cut start [17:29:26]*** Partial cut [17:29:26]*** CUTSNS_PIN = 1 [17:29:26]*** CUTSNS_PIN = 0 [17:29:26]*** Brake cut motor [17:29:27]Read from MH i2c: 01 [17:29:27]MH_I2C_Read... [17:29:27]*** Stop cut motor [17:29:27]*** Cut end [17:29:27]Read from MH i2c: 01 07 00 [17:29:27]MH_I2C_Read... [17:29:27]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 FF 0F C2 [17:29:27]process_action close_receipt done [17:29:27]requested_data is exist [17:29:27]produce_requested_data [17:29:27]requested_item fm.sn is exist - process it [17:29:27]wFMCommunicate request_size=4 [17:29:27]MH_SAM_APDU [17:29:27]CAPDU: 80 11 00 00 [17:29:27]Write to MH i2c: E2 08 00 8D 21 80 11 00 00 00 00 00 00 28 [17:29:27]Write i2c OK [17:29:27]MH_I2C_Read... [17:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:27]Read from MH i2c: E2 [17:29:27]MH_I2C_Read... [17:29:27]Read from MH i2c: E2 17 00 [17:29:27]MH_I2C_Read... [17:29:27]Read from MH i2c: E2 17 00 8D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [17:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:29:27]wFMCommunicate OK [17:29:27]requested_item fd.num is exist - process it [17:29:27]SAM_PROTO_GetFieldsCounters [17:29:27]wFMCommunicate request_size=4 [17:29:27]MH_SAM_APDU [17:29:27]CAPDU: 80 13 00 00 [17:29:27]Write to MH i2c: E2 08 00 8E 21 80 13 00 00 00 00 00 00 2B [17:29:27]Write i2c OK [17:29:27]MH_I2C_Read... [17:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:27]Read from MH i2c: E2 [17:29:27]MH_I2C_Read... [17:29:27]Read from MH i2c: E2 62 00 [17:29:27]MH_I2C_Read... [17:29:27]Read from MH i2c: E2 62 00 8E 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9C 20 02 00 0E 04 04 00 C4 01 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 D7 [17:29:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9C 20 02 00 0E 04 04 00 C4 01 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 [17:29:27]wFMCommunicate OK [17:29:27]SAM_PROTO_GetFieldsCounters done [17:29:27]requested_item shift.num is exist - process it [17:29:27]requested_item shift.opened is exist - process it [17:29:27]req_shift_opened [17:29:27]FM_GetShiftState [17:29:27]SAM_PROTO_GetShiftState [17:29:27]wFMCommunicate request_size=4 [17:29:27]MH_SAM_APDU [17:29:27]CAPDU: 80 13 01 00 [17:29:27]Write to MH i2c: E2 08 00 8F 21 80 13 01 00 00 00 00 00 2D [17:29:27]Write i2c OK [17:29:27]MH_I2C_Read... [17:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:27]Read from MH i2c: E2 [17:29:27]MH_I2C_Read... [17:29:27]Read from MH i2c: E2 0E 00 [17:29:27]MH_I2C_Read... [17:29:27]Read from MH i2c: E2 0E 00 8F 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E4 [17:29:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:29:27]wFMCommunicate OK [17:29:27]SAM_PROTO_GetShiftState done [17:29:27]FM_GetShiftState done [17:29:27]req_shift_opened done [17:29:27]requested_item shift.open_date is exist - process it [17:29:27]req_shift_open_date [17:29:27]req_shift_open_date done [17:29:27]produce_requested_data done [17:29:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139420,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:29:27]process_action_free close_receipt [17:29:27]json_value_free [17:29:27]json_value_free done [17:29:27]process_json_proto returns [17:29:27]Send response to host [17:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139420,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:29:27]free response buf [17:29:27]execute_script done [17:29:27]execute_script returns [17:29:27]free content buf [17:29:27]Sock 9.Close socket [17:29:27]Sock 9.Thread stoped [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:25]accept exits with 8 [17:31:25]New connection [17:31:25]New thread 3066817892 created [17:31:25]Thread 3066674532 joined [17:31:25]Waiting for new connection... [17:31:25] Sock 8.Parse request [17:31:25]Sock 8.Check first char [17:31:25]Sock 8.First char is OK [17:31:25]request: POST /json_proto HTTP/1.0 [17:31:25]Method: POST [17:31:25]URL: /json_proto [17:31:25]Method is POST - this is cgi request [17:31:25]url: /json_proto [17:31:25]query_string will be loaded in cgi processing [17:31:25]execute_cgi json_proto POST (null) [17:31:25]execute_cgi path=json_proto method=POST [17:31:25]POST find Content-Length [17:31:25]Host: 172.17.45.67:8080 [17:31:25]Content-Length: 677 [17:31:25]Content-Type: application/json [17:31:25] [17:31:25]POST finish read [17:31:25]Found Content-Length = 677 [17:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:31:25]execute_script... [17:31: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)593264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:31:25]POST & json_proto [17:31:25]process_json_proto [17:31:25]json parsed OK: [17:31:25]protocol is kg_v1.0 [17:31:25]action value=close_receipt [17:31:25]process_action close_receipt [17:31:25]cmd_close_receipt [17:31:25]MH_GetDate [17:31:25]Write to MH i2c: F0 00 00 90 21 A0 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: F0 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: F0 09 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: F0 09 00 90 21 00 6E 81 C3 66 5F 7F 2B 66 30 [17:31:25]GetLastDocTimeStamp 1724088565 [17:31:25]current date 1724088686 [17:31:25]FM_GetShiftState [17:31:25]SAM_PROTO_GetShiftState [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 13 01 00 [17:31:25]Write to MH i2c: E2 08 00 91 21 80 13 01 00 00 00 00 00 2F [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0E 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0E 00 91 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E6 [17:31:25]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:31:25]wFMCommunicate OK [17:31:25]SAM_PROTO_GetShiftState done [17:31:25]FM_GetShiftState done [17:31:25]opened in 1724027888 [17:31:25]opened+sec_in_day 1724114288 [17:31:25]quantity*price = 50010 [17:31:25]sum+1 = 50012 [17:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 256 19.08.2024 17:31 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139421 ФПД: 50732216699011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173126&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139421&fm=50732216699011&tin=02508201610067®Number=0000000000092569&sum=50000 [17:31:26]StoreToDocumentArchive [17:31:26]shift 452 fd 139421 [17:31:26]save to /storage/0452/doc_00139421 [17:31:26]save last doc name /storage/0452/doc_00139421 to /storage/kkm_last_doc_name [17:31:26]save OK [17:31:26]Clear old archive folders... [17:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:26]tlvbuf is 0127E990 [17:31:26]SAM_PROTO_ClearQueue [17:31:26]wFMCommunicate request_size=4 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 09 00 00 [17:31:26]Write to MH i2c: E2 08 00 9E 21 80 09 00 00 00 00 00 00 31 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]OFD Sender: No OFD packet to send [17:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:26]Read from MH i2c: E2 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 9E 21 00 90 00 33 [17:31:26]RAPDU: 90 00 [17:31:26]wFMCommunicate OK [17:31:26]SAM_PROTO_ClearQueue done [17:31:26]KKMCreateOFDPacket [17:31:26]OFDProtocolAddRootSTLVToBuf [17:31:26]FM_MakeSignedData [17:31:26]FM_MakeSignedData [17:31:26]SAM_PROTO_SignData [17:31:26]wFMCommunicate request_size=4 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 0D 01 02 [17:31:26]Write to MH i2c: E2 08 00 9F 21 80 0D 01 02 00 00 00 00 39 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:26]Read from MH i2c: E2 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 9F 21 00 90 00 34 [17:31:26]RAPDU: 90 00 [17:31:26]wFMCommunicate OK [17:31:26]wFMCommunicate request_size=255 [17:31:26]MH_SAM_APDU [17:31: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6E 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 20 02 00 35 04 06 00 2E [17:31:26]Write to MH i2c: E2 02 01 A0 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6E 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 20 02 00 35 04 06 00 2E 00 00 75 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:26]Read from MH i2c: E2 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 A0 21 00 90 00 35 [17:31:26]RAPDU: 90 00 [17:31:26]wFMCommunicate OK [17:31:26]wFMCommunicate request_size=10 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 0D 02 02 05 24 03 C1 48 83 [17:31:26]Write to MH i2c: E2 0D 00 A1 21 80 0D 02 02 05 00 24 03 C1 48 83 00 00 F9 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:26]Read from MH i2c: E2 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 A1 21 00 90 00 36 [17:31:26]RAPDU: 90 00 [17:31:26]wFMCommunicate OK [17:31:26]wFMCommunicate request_size=4 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 0D 03 02 [17:31:26]Write to MH i2c: E2 08 00 A2 21 80 0D 03 02 00 00 00 00 3E [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:26]Read from MH i2c: E2 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 0B 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 0B 00 A2 21 00 2A 09 FB 13 80 32 6D C4 90 00 63 [17:31:26]RAPDU: 2A 09 FB 13 80 32 6D C4 90 00 [17:31:26]wFMCommunicate OK [17:31:26]SAM_PROTO_SignData done [17:31:26]FM_MakeSignedData done [17:31:26]CreateOFDProtocolMessage [17:31:26]wFMCommunicate request_size=4 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 11 00 00 [17:31:26]Write to MH i2c: E2 08 00 A3 21 80 11 00 00 00 00 00 00 3E [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:26]Read from MH i2c: E2 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 17 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 17 00 A3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 95 [17:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:31:26]wFMCommunicate OK [17:31:26]CreateOFDProtocolMessage done [17:31:26]OFDSenderStorePacket 139421 [17:31:26]StoreOFDPacket docnum=139421 [17:31:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9D 81 07 01 98 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6E 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 20 02 00 35 04 06 00 2E 24 03 C1 48 83 2A 09 FB 13 80 32 6D C4 [17:31:26]CheckFolder [17:31:26]dirname=/storage/ofd_packets [17:31:26]CheckFolder done [17:31:26]ProducePacketName [17:31:26]name=ofd_packets/00139421 [17:31:26]NVStorageSaveData ofd_packets/00139421 [17:31:26]File name is /storage/ofd_packets/00139421 [17:31:26]Write 301 bytes [17:31:26]NVStorageSaveData done [17:31:26]OFDSenderStorePacket done [17:31:26]KKMCreateOFDPacket done [17:31:26]NVStorageSaveData kkm_last_timestamp [17:31:26]File name is /storage/kkm_last_timestamp [17:31:26]Write 4 bytes [17:31:26]NVStorageSaveData done [17:31:26]ExternCall_PrintAddStr [17:31:26]wPrintStart [17:31:26]Write to MH i2c: 01 00 00 A4 21 C5 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 07 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 07 00 A4 21 00 00 00 00 00 FF 0F DA [17:31:26]RasterBufferAndPrint [17:31:26]line Счет N : (1)593264 [17:31:26]line ИНН: 02508201610067 [17:31:26]line Контрольно-Кассовый Чек [17:31:26]line ПРОДАЖА [17:31:26]line ТРК (МРК, ГНК) : 61 [17:31:26]line Товар: 2710124500 [17:31:26]line Аи-95-К-5 [17:31:26]line 6.740 * 74.20 [17:31:26]line = 500.11 [17:31:26]line НДС 12% НСП 1% [17:31:26]line > о реализуемом товаре [17:31:26]line ОКРУГЛЕНИЕ: -0.11 [17:31:26]line ИТОГО: 500.00 [17:31:26]line Внесено: 500.00 [17:31:26]line СДАЧА: 0.00 [17:31:26]line НСП 1% : 4.43 [17:31:26]line НДС 12% : 53.11 [17:31:26]line Наличными: 500.00 [17:31:26]line Безнал.: 0.00 [17:31:26]line Место: АЗС № 136 "Партнер Нефть" [17:31:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:31:26]line СНО: Общий режим [17:31:26]line Чек 256 19.08.2024 17:31 [17:31:26]line Смена: 452 ФФД: 1.0 [17:31:26]line ЗНМ: 0300000067 [17:31:26]line РНМ: 0000000000092569 [17:31:26]line Версия ККМ: 001 [17:31:26]line ФМ: 0000000000871776 [17:31:26]line ФД: 139421 [17:31:26]line ФПД: 50732216699011 [17:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173126&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139421&fm=50732216699011&tin=02508201610067®Number=0000000000092569&sum=50000 [17:31:27]OFD Sender: Processing packet 139421 [packets to send 137, broken 136] [17:31:27]ProducePacketName [17:31:27]name=ofd_packets/00139421 [17:31:27]OFD Sender: To server: pG, [17:31:27]CommunicateWithHost lk.salyk.kg:30040 [17:31:27]ConnectInit lk.salyk.kg [17:31:27]written 0, free lines is 4095 [17:31:27]Connected sock=10 [17:31: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 37 36 0F 01 00 00 9D 81 07 01 98 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 6E 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 20 02 00 35 04 06 00 2E 24 03 C1 48 83 2A 09 FB 13 80 32 6D C4 [17:31:27]Write to MH i2c: 01 00 00 CF 21 F0 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 07 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 07 00 CF 21 00 00 00 00 00 C6 0C C9 [17:31:27]RasterBufferAndPrint [17:31:27]line [17:31:27]line [17:31:27]line [17:31:27]line [17:31:27]line [17:31:27]written 0, free lines is 3276 [17:31:27]MH_Cut [17:31:27]Write to MH i2c: D1 01 00 D6 21 01 C9 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: D1 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: D1 01 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: D1 01 00 D6 21 00 C8 [17:31:27]Write to MH i2c: 01 00 00 D7 21 F8 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31: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 37 36 4F 00 00 00 F8 3F 47 00 5A 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 37 36 10 04 04 00 9D 20 02 00 F4 03 04 00 04 28 C3 66 B6 04 01 00 00 FC 71 47 A1 8C F7 D6 D3 [17:31:27]CommunicateWithHost err = 0 [17:31:27]CheckOFDResponse [17:31:27]1017 (14) - 77093643461234 [17:31:27]1041 (16) - 0000000000871776 [17:31:27]1040 (4) - 139421 [17:31:27]1012 (4) - 19.08.2024 11:09 [17:31:27]1206 (1) - 0 [17:31:27]OFD Sender: Remove packet 139421 [17:31:27]ProducePacketName [17:31:27]name=ofd_packets/00139421 [17:31:27]NVStorageDeleteData [17:31:28]OFD Sender: No OFD packet to send [17:31:28]*** Cut start [17:31:28]*** Partial cut [17:31:28]*** CUTSNS_PIN = 1 [17:31:28]*** CUTSNS_PIN = 0 [17:31:28]*** Brake cut motor [17:31:28]Read from MH i2c: 01 [17:31:28]MH_I2C_Read... [17:31:28]*** Stop cut motor [17:31:28]*** Cut end [17:31:28]Read from MH i2c: 01 07 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 D7 21 00 00 00 00 00 FF 0F 0D [17:31:28]process_action close_receipt done [17:31:28]requested_data is exist [17:31:28]produce_requested_data [17:31:28]requested_item fm.sn is exist - process it [17:31:28]wFMCommunicate request_size=4 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 11 00 00 [17:31:28]Write to MH i2c: E2 08 00 D8 21 80 11 00 00 00 00 00 00 73 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 17 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 17 00 D8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CA [17:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:31:28]wFMCommunicate OK [17:31:28]requested_item fd.num is exist - process it [17:31:28]SAM_PROTO_GetFieldsCounters [17:31:28]wFMCommunicate request_size=4 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 13 00 00 [17:31:28]Write to MH i2c: E2 08 00 D9 21 80 13 00 00 00 00 00 00 76 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 62 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 62 00 D9 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9D 20 02 00 0E 04 04 00 C4 01 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 28 [17:31: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9D 20 02 00 0E 04 04 00 C4 01 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 [17:31:29]wFMCommunicate OK [17:31:29]SAM_PROTO_GetFieldsCounters done [17:31:29]requested_item shift.num is exist - process it [17:31:29]requested_item shift.opened is exist - process it [17:31:29]req_shift_opened [17:31:29]FM_GetShiftState [17:31:29]SAM_PROTO_GetShiftState [17:31:29]wFMCommunicate request_size=4 [17:31:29]MH_SAM_APDU [17:31:29]CAPDU: 80 13 01 00 [17:31:29]Write to MH i2c: E2 08 00 DA 21 80 13 01 00 00 00 00 00 78 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 0E 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 0E 00 DA 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2F [17:31:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:31:29]wFMCommunicate OK [17:31:29]SAM_PROTO_GetShiftState done [17:31:29]FM_GetShiftState done [17:31:29]req_shift_opened done [17:31:29]requested_item shift.open_date is exist - process it [17:31:29]req_shift_open_date [17:31:29]req_shift_open_date done [17:31:29]produce_requested_data done [17:31:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139421,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:31:29]process_action_free close_receipt [17:31:29]json_value_free [17:31:29]json_value_free done [17:31:29]process_json_proto returns [17:31:29]Send response to host [17:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139421,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:31:29]free response buf [17:31:29]execute_script done [17:31:29]execute_script returns [17:31:29]free content buf [17:31:29]Sock 8.Close socket [17:31:29]Sock 8.Thread stoped [17:31:33]OFD Sender: No OFD packet to send [17:31:35]accept exits with 9 [17:31:35]New connection [17:31:35]New thread 3066674532 created [17:31:35]Thread 3066817892 joined [17:31:35]Waiting for new connection... [17:31:35] Sock 9.Parse request [17:31:35]Sock 9.Check first char [17:31:35]Sock 9.First char is OK [17:31:35]request: POST /json_proto HTTP/1.0 [17:31:35]Method: POST [17:31:35]URL: /json_proto [17:31:35]Method is POST - this is cgi request [17:31:35]url: /json_proto [17:31:35]query_string will be loaded in cgi processing [17:31:35]execute_cgi json_proto POST (null) [17:31:35]execute_cgi path=json_proto method=POST [17:31:35]POST find Content-Length [17:31:35]Host: 172.17.45.67:8080 [17:31:35]Content-Length: 677 [17:31:35]Content-Type: application/json [17:31:35] [17:31:35]POST finish read [17:31:35]Found Content-Length = 677 [17:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:31:35]execute_script... [17:31: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)593266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:31:35]POST & json_proto [17:31:35]process_json_proto [17:31:35]json parsed OK: [17:31:35]protocol is kg_v1.0 [17:31:35]action value=close_receipt [17:31:35]process_action close_receipt [17:31:35]cmd_close_receipt [17:31:35]MH_GetDate [17:31:35]Write to MH i2c: F0 00 00 DB 21 EB [17:31:35]Write i2c OK [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: F0 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: F0 09 00 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: F0 09 00 DB 21 00 79 81 C3 66 5F 7F 2B 66 86 [17:31:35]GetLastDocTimeStamp 1724088686 [17:31:35]current date 1724088697 [17:31:35]FM_GetShiftState [17:31:35]SAM_PROTO_GetShiftState [17:31:35]wFMCommunicate request_size=4 [17:31:35]MH_SAM_APDU [17:31:35]CAPDU: 80 13 01 00 [17:31:35]Write to MH i2c: E2 08 00 DC 21 80 13 01 00 00 00 00 00 7A [17:31:35]Write i2c OK [17:31:35]MH_I2C_Read... [17:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:35]Read from MH i2c: E2 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: E2 0E 00 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: E2 0E 00 DC 21 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 31 [17:31:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:31:35]wFMCommunicate OK [17:31:35]SAM_PROTO_GetShiftState done [17:31:35]FM_GetShiftState done [17:31:35]opened in 1724027888 [17:31:35]opened+sec_in_day 1724114288 [17:31:35]quantity*price = 50036 [17:31:35]sum+1 = 50037 [17:31:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 257 19.08.2024 17:31 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139422 ФПД: 98304646871953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173137&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139422&fm=98304646871953&tin=02508201610067®Number=0000000000092569&sum=50000 [17:31:36]StoreToDocumentArchive [17:31:36]shift 452 fd 139422 [17:31:36]save to /storage/0452/doc_00139422 [17:31:36]save last doc name /storage/0452/doc_00139422 to /storage/kkm_last_doc_name [17:31:36]save OK [17:31:36]Clear old archive folders... [17:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:36]tlvbuf is 012896E0 [17:31:36]SAM_PROTO_ClearQueue [17:31:36]wFMCommunicate request_size=4 [17:31:36]MH_SAM_APDU [17:31:36]CAPDU: 80 09 00 00 [17:31:36]Write to MH i2c: E2 08 00 E9 21 80 09 00 00 00 00 00 00 7C [17:31:36]Write i2c OK [17:31:36]MH_I2C_Read... [17:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:36]Read from MH i2c: E2 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: E2 03 00 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: E2 03 00 E9 21 00 90 00 7E [17:31:36]RAPDU: 90 00 [17:31:36]wFMCommunicate OK [17:31:36]SAM_PROTO_ClearQueue done [17:31:36]KKMCreateOFDPacket [17:31:36]OFDProtocolAddRootSTLVToBuf [17:31:36]FM_MakeSignedData [17:31:36]FM_MakeSignedData [17:31:36]SAM_PROTO_SignData [17:31:36]wFMCommunicate request_size=4 [17:31:36]MH_SAM_APDU [17:31:36]CAPDU: 80 0D 01 02 [17:31:36]Write to MH i2c: E2 08 00 EA 21 80 0D 01 02 00 00 00 00 84 [17:31:36]Write i2c OK [17:31:36]MH_I2C_Read... [17:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:36]Read from MH i2c: E2 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: E2 03 00 [17:31:36]MH_I2C_Read... [17:31:36]Read from MH i2c: E2 03 00 EA 21 00 90 00 7F [17:31:36]RAPDU: 90 00 [17:31:36]wFMCommunicate OK [17:31:36]wFMCommunicate request_size=255 [17:31:36]MH_SAM_APDU [17:31: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 20 02 00 35 04 06 00 59 [17:31:36]Write to MH i2c: E2 02 01 EB 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 20 02 00 35 04 06 00 59 00 00 10 [17:31:36]Write i2c OK [17:31:36]MH_I2C_Read... [17:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 EB 21 00 90 00 80 [17:31:37]RAPDU: 90 00 [17:31:37]wFMCommunicate OK [17:31:37]wFMCommunicate request_size=10 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 0D 02 02 05 68 55 8E 7B 91 [17:31:37]Write to MH i2c: E2 0D 00 EC 21 80 0D 02 02 05 00 68 55 8E 7B 91 00 00 E8 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [17:31:37]RAPDU: 90 00 [17:31:37]wFMCommunicate OK [17:31:37]wFMCommunicate request_size=4 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 0D 03 02 [17:31:37]Write to MH i2c: E2 08 00 ED 21 80 0D 03 02 00 00 00 00 89 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 0B 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 0B 00 ED 21 00 E0 6A F0 05 85 ED 46 60 90 00 E1 [17:31:37]RAPDU: E0 6A F0 05 85 ED 46 60 90 00 [17:31:37]wFMCommunicate OK [17:31:37]SAM_PROTO_SignData done [17:31:37]FM_MakeSignedData done [17:31:37]CreateOFDProtocolMessage [17:31:37]wFMCommunicate request_size=4 [17:31:37]MH_SAM_APDU [17:31:37]CAPDU: 80 11 00 00 [17:31:37]Write to MH i2c: E2 08 00 EE 21 80 11 00 00 00 00 00 00 89 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:37]Read from MH i2c: E2 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 17 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: E2 17 00 EE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [17:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:31:37]wFMCommunicate OK [17:31:37]CreateOFDProtocolMessage done [17:31:37]OFDSenderStorePacket 139422 [17:31:37]StoreOFDPacket docnum=139422 [17:31:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 79 7D 07 01 13 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 20 02 00 35 04 06 00 59 68 55 8E 7B 91 E0 6A F0 05 85 ED 46 60 [17:31:37]CheckFolder [17:31:37]dirname=/storage/ofd_packets [17:31:37]CheckFolder done [17:31:37]ProducePacketName [17:31:37]name=ofd_packets/00139422 [17:31:37]NVStorageSaveData ofd_packets/00139422 [17:31:37]File name is /storage/ofd_packets/00139422 [17:31:37]Write 301 bytes [17:31:37]NVStorageSaveData done [17:31:37]OFDSenderStorePacket done [17:31:37]KKMCreateOFDPacket done [17:31:37]NVStorageSaveData kkm_last_timestamp [17:31:37]File name is /storage/kkm_last_timestamp [17:31:37]Write 4 bytes [17:31:37]NVStorageSaveData done [17:31:37]ExternCall_PrintAddStr [17:31:37]wPrintStart [17:31:37]Write to MH i2c: 01 00 00 EF 21 10 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: 01 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: 01 07 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: 01 07 00 EF 21 00 00 00 00 00 FF 0F 25 [17:31:37]RasterBufferAndPrint [17:31:37]line Счет N : (1)593266 [17:31:37]line ИНН: 02508201610067 [17:31:37]line Контрольно-Кассовый Чек [17:31:37]line ПРОДАЖА [17:31:37]line ТРК (МРК, ГНК) : 32 [17:31:37]line Товар: 2710124130 [17:31:37]line Аи-92-К-5 [17:31:37]line 7.380 * 67.80 [17:31:37]line = 500.36 [17:31:37]line НДС 12% НСП 1% [17:31:37]line > о реализуемом товаре [17:31:37]line ОКРУГЛЕНИЕ: -0.36 [17:31:37]line ИТОГО: 500.00 [17:31:37]line Внесено: 500.00 [17:31:37]line СДАЧА: 0.00 [17:31:37]line НСП 1% : 4.43 [17:31:37]line НДС 12% : 53.14 [17:31:37]line Наличными: 500.00 [17:31:37]line Безнал.: 0.00 [17:31:37]line Место: АЗС № 136 "Партнер Нефть" [17:31:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:31:37]line СНО: Общий режим [17:31:37]line Чек 257 19.08.2024 17:31 [17:31:37]line Смена: 452 ФФД: 1.0 [17:31:37]line ЗНМ: 0300000067 [17:31:37]line РНМ: 0000000000092569 [17:31:37]line Версия ККМ: 001 [17:31:37]line ФМ: 0000000000871776 [17:31:37]line ФД: 139422 [17:31:37]line ФПД: 98304646871953 [17:31:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173137&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139422&fm=98304646871953&tin=02508201610067®Number=0000000000092569&sum=50000 [17:31:37]written 0, free lines is 4095 [17:31:37]OFD Sender: Processing packet 139422 [packets to send 137, broken 136] [17:31:37]ProducePacketName [17:31:37]name=ofd_packets/00139422 [17:31:37]OFD Sender: To server: pG, [17:31:37]CommunicateWithHost lk.salyk.kg:30040 [17:31:37]ConnectInit lk.salyk.kg [17:31:37]Connected sock=10 [17:31: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 37 36 0F 01 00 00 79 7D 07 01 13 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 79 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 20 02 00 35 04 06 00 59 68 55 8E 7B 91 E0 6A F0 05 85 ED 46 60 [17:31:37]Write to MH i2c: 01 00 00 1A 22 3C [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: 01 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: 01 07 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: 01 07 00 1A 22 00 00 00 00 00 DE 0C 2D [17:31:37]RasterBufferAndPrint [17:31:37]line [17:31:37]line [17:31:37]line [17:31:37]line [17:31:37]line [17:31:37]written 0, free lines is 3305 [17:31:37]MH_Cut [17:31:37]Write to MH i2c: D1 01 00 21 22 01 15 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: D1 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: D1 01 00 [17:31:37]MH_I2C_Read... [17:31:37]Read from MH i2c: D1 01 00 21 22 00 14 [17:31:37]Write to MH i2c: 01 00 00 22 22 44 [17:31:37]Write i2c OK [17:31:37]MH_I2C_Read... [17:31: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 37 36 4F 00 00 00 70 63 47 00 A7 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 20 02 00 F4 03 04 00 0E 28 C3 66 B6 04 01 00 00 C2 3E F2 6B 12 F3 37 D3 [17:31:37]CommunicateWithHost err = 0 [17:31:37]CheckOFDResponse [17:31:37]1017 (14) - 77093643461234 [17:31:37]1041 (16) - 0000000000871776 [17:31:37]1040 (4) - 139422 [17:31:37]1012 (4) - 19.08.2024 11:10 [17:31:37]1206 (1) - 0 [17:31:37]OFD Sender: Remove packet 139422 [17:31:37]ProducePacketName [17:31:37]name=ofd_packets/00139422 [17:31:37]NVStorageDeleteData [17:31:38]OFD Sender: No OFD packet to send [17:31:38]*** Cut start [17:31:38]*** Partial cut [17:31:38]*** CUTSNS_PIN = 1 [17:31:38]*** CUTSNS_PIN = 0 [17:31:38]*** Brake cut motor [17:31:38]Read from MH i2c: 01 [17:31:38]MH_I2C_Read... [17:31:38]*** Stop cut motor [17:31:38]*** Cut end [17:31:38]Read from MH i2c: 01 07 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: 01 07 00 22 22 00 00 00 00 00 FF 0F 59 [17:31:38]process_action close_receipt done [17:31:38]requested_data is exist [17:31:38]produce_requested_data [17:31:38]requested_item fm.sn is exist - process it [17:31:38]wFMCommunicate request_size=4 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 11 00 00 [17:31:38]Write to MH i2c: E2 08 00 23 22 80 11 00 00 00 00 00 00 BF [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:38]Read from MH i2c: E2 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 17 00 [17:31:38]MH_I2C_Read... [17:31:38]Read from MH i2c: E2 17 00 23 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 16 [17:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:31:38]wFMCommunicate OK [17:31:38]requested_item fd.num is exist - process it [17:31:38]SAM_PROTO_GetFieldsCounters [17:31:38]wFMCommunicate request_size=4 [17:31:38]MH_SAM_APDU [17:31:38]CAPDU: 80 13 00 00 [17:31:38]Write to MH i2c: E2 08 00 24 22 80 13 00 00 00 00 00 00 C2 [17:31:38]Write i2c OK [17:31:38]MH_I2C_Read... [17:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:39]Read from MH i2c: E2 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 62 00 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 62 00 24 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9E 20 02 00 0E 04 04 00 C4 01 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 78 [17:31: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9E 20 02 00 0E 04 04 00 C4 01 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 [17:31:39]wFMCommunicate OK [17:31:39]SAM_PROTO_GetFieldsCounters done [17:31:39]requested_item shift.num is exist - process it [17:31:39]requested_item shift.opened is exist - process it [17:31:39]req_shift_opened [17:31:39]FM_GetShiftState [17:31:39]SAM_PROTO_GetShiftState [17:31:39]wFMCommunicate request_size=4 [17:31:39]MH_SAM_APDU [17:31:39]CAPDU: 80 13 01 00 [17:31:39]Write to MH i2c: E2 08 00 25 22 80 13 01 00 00 00 00 00 C4 [17:31:39]Write i2c OK [17:31:39]MH_I2C_Read... [17:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:39]Read from MH i2c: E2 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 0E 00 [17:31:39]MH_I2C_Read... [17:31:39]Read from MH i2c: E2 0E 00 25 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7B [17:31:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:31:39]wFMCommunicate OK [17:31:39]SAM_PROTO_GetShiftState done [17:31:39]FM_GetShiftState done [17:31:39]req_shift_opened done [17:31:39]requested_item shift.open_date is exist - process it [17:31:39]req_shift_open_date [17:31:39]req_shift_open_date done [17:31:39]produce_requested_data done [17:31:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139422,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:31:39]process_action_free close_receipt [17:31:39]json_value_free [17:31:39]json_value_free done [17:31:39]process_json_proto returns [17:31:39]Send response to host [17:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139422,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:31:39]free response buf [17:31:39]execute_script done [17:31:39]execute_script returns [17:31:39]free content buf [17:31:39]Sock 9.Close socket [17:31:39]Sock 9.Thread stoped [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:51]accept exits with 8 [17:31:51]New connection [17:31:51]New thread 3066817892 created [17:31:51]Thread 3066674532 joined [17:31:51]Waiting for new connection... [17:31:51] Sock 8.Parse request [17:31:51]Sock 8.Check first char [17:31:51]Sock 8.First char is OK [17:31:51]request: POST /json_proto HTTP/1.0 [17:31:51]Method: POST [17:31:51]URL: /json_proto [17:31:51]Method is POST - this is cgi request [17:31:51]url: /json_proto [17:31:51]query_string will be loaded in cgi processing [17:31:51]execute_cgi json_proto POST (null) [17:31:51]execute_cgi path=json_proto method=POST [17:31:51]POST find Content-Length [17:31:51]Host: 172.17.45.67:8080 [17:31:51]Content-Length: 682 [17:31:51]Content-Type: application/json [17:31:51] [17:31:51]POST finish read [17:31:51]Found Content-Length = 682 [17:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:31:51]execute_script... [17:31:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:31:51]POST & json_proto [17:31:51]process_json_proto [17:31:51]json parsed OK: [17:31:51]protocol is kg_v1.0 [17:31:51]action value=close_receipt [17:31:51]process_action close_receipt [17:31:51]cmd_close_receipt [17:31:51]MH_GetDate [17:31:51]Write to MH i2c: F0 00 00 26 22 37 [17:31:51]Write i2c OK [17:31:51]MH_I2C_Read... [17:31:51]Read from MH i2c: F0 [17:31:51]MH_I2C_Read... [17:31:51]Read from MH i2c: F0 09 00 [17:31:51]MH_I2C_Read... [17:31:51]Read from MH i2c: F0 09 00 26 22 00 89 81 C3 66 5F 7F 2B 66 E2 [17:31:51]GetLastDocTimeStamp 1724088697 [17:31:51]current date 1724088713 [17:31:51]FM_GetShiftState [17:31:51]SAM_PROTO_GetShiftState [17:31:51]wFMCommunicate request_size=4 [17:31:51]MH_SAM_APDU [17:31:51]CAPDU: 80 13 01 00 [17:31:51]Write to MH i2c: E2 08 00 27 22 80 13 01 00 00 00 00 00 C6 [17:31:51]Write i2c OK [17:31:51]MH_I2C_Read... [17:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:51]Read from MH i2c: E2 [17:31:51]MH_I2C_Read... [17:31:51]Read from MH i2c: E2 0E 00 [17:31:51]MH_I2C_Read... [17:31:51]Read from MH i2c: E2 0E 00 27 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7D [17:31:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:31:51]wFMCommunicate OK [17:31:51]SAM_PROTO_GetShiftState done [17:31:51]FM_GetShiftState done [17:31:51]opened in 1724027888 [17:31:51]opened+sec_in_day 1724114288 [17:31:51]quantity*price = 100021 [17:31:51]sum+1 = 100023 [17:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 258 19.08.2024 17:31 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139423 ФПД: 197756898054071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173153&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139423&fm=197756898054071&tin=02508201610067®Number=0000000000092569&sum=100000 [17:31:52]StoreToDocumentArchive [17:31:52]shift 452 fd 139423 [17:31:52]save to /storage/0452/doc_00139423 [17:31:52]save last doc name /storage/0452/doc_00139423 to /storage/kkm_last_doc_name [17:31:52]save OK [17:31:52]Clear old archive folders... [17:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:52]tlvbuf is 01275A80 [17:31:52]SAM_PROTO_ClearQueue [17:31:52]wFMCommunicate request_size=4 [17:31:52]MH_SAM_APDU [17:31:52]CAPDU: 80 09 00 00 [17:31:52]Write to MH i2c: E2 08 00 34 22 80 09 00 00 00 00 00 00 C8 [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:52]Read from MH i2c: E2 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 34 22 00 90 00 CA [17:31:52]RAPDU: 90 00 [17:31:52]wFMCommunicate OK [17:31:52]SAM_PROTO_ClearQueue done [17:31:52]KKMCreateOFDPacket [17:31:52]OFDProtocolAddRootSTLVToBuf [17:31:52]FM_MakeSignedData [17:31:52]FM_MakeSignedData [17:31:52]SAM_PROTO_SignData [17:31:52]wFMCommunicate request_size=4 [17:31:52]MH_SAM_APDU [17:31:52]CAPDU: 80 0D 01 02 [17:31:52]Write to MH i2c: E2 08 00 35 22 80 0D 01 02 00 00 00 00 D0 [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:52]Read from MH i2c: E2 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 35 22 00 90 00 CB [17:31:52]RAPDU: 90 00 [17:31:52]wFMCommunicate OK [17:31:52]wFMCommunicate request_size=255 [17:31:52]MH_SAM_APDU [17:31:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 89 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 20 02 00 35 04 06 00 B3 [17:31:52]Write to MH i2c: E2 02 01 36 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 89 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 20 02 00 35 04 06 00 B3 00 00 F5 [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:52]Read from MH i2c: E2 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 36 22 00 90 00 CC [17:31:52]RAPDU: 90 00 [17:31:52]wFMCommunicate OK [17:31:52]wFMCommunicate request_size=10 [17:31:52]MH_SAM_APDU [17:31:52]CAPDU: 80 0D 02 02 05 DB DD A9 0F B7 [17:31:52]Write to MH i2c: E2 0D 00 37 22 80 0D 02 02 05 00 DB DD A9 0F B7 00 00 04 [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:53]Read from MH i2c: E2 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: E2 03 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: E2 03 00 37 22 00 90 00 CD [17:31:53]RAPDU: 90 00 [17:31:53]wFMCommunicate OK [17:31:53]wFMCommunicate request_size=4 [17:31:53]MH_SAM_APDU [17:31:53]CAPDU: 80 0D 03 02 [17:31:53]Write to MH i2c: E2 08 00 38 22 80 0D 03 02 00 00 00 00 D5 [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:53]Read from MH i2c: E2 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: E2 0B 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: E2 0B 00 38 22 00 B2 C7 44 C8 AB 18 11 93 90 00 C2 [17:31:53]RAPDU: B2 C7 44 C8 AB 18 11 93 90 00 [17:31:53]wFMCommunicate OK [17:31:53]SAM_PROTO_SignData done [17:31:53]FM_MakeSignedData done [17:31:53]CreateOFDProtocolMessage [17:31:53]wFMCommunicate request_size=4 [17:31:53]MH_SAM_APDU [17:31:53]CAPDU: 80 11 00 00 [17:31:53]Write to MH i2c: E2 08 00 39 22 80 11 00 00 00 00 00 00 D5 [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:53]Read from MH i2c: E2 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: E2 17 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: E2 17 00 39 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2C [17:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:31:53]wFMCommunicate OK [17:31:53]CreateOFDProtocolMessage done [17:31:53]OFDSenderStorePacket 139423 [17:31:53]StoreOFDPacket docnum=139423 [17:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B0 71 07 01 6F 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 89 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 20 02 00 35 04 06 00 B3 DB DD A9 0F B7 B2 C7 44 C8 AB 18 11 93 [17:31:53]CheckFolder [17:31:53]dirname=/storage/ofd_packets [17:31:53]CheckFolder done [17:31:53]ProducePacketName [17:31:53]name=ofd_packets/00139423 [17:31:53]NVStorageSaveData ofd_packets/00139423 [17:31:53]File name is /storage/ofd_packets/00139423 [17:31:53]Write 301 bytes [17:31:53]NVStorageSaveData done [17:31:53]OFDSenderStorePacket done [17:31:53]KKMCreateOFDPacket done [17:31:53]NVStorageSaveData kkm_last_timestamp [17:31:53]File name is /storage/kkm_last_timestamp [17:31:53]Write 4 bytes [17:31:53]NVStorageSaveData done [17:31:53]ExternCall_PrintAddStr [17:31:53]wPrintStart [17:31:53]Write to MH i2c: 01 00 00 3A 22 5C [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: 01 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: 01 07 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: 01 07 00 3A 22 00 00 00 00 00 FF 0F 71 [17:31:53]RasterBufferAndPrint [17:31:53]line Счет N : (1)593265 [17:31:53]line ИНН: 02508201610067 [17:31:53]line Контрольно-Кассовый Чек [17:31:53]line ПРОДАЖА [17:31:53]line ТРК (МРК, ГНК) : 41 [17:31:53]line Товар: 2710124500 [17:31:53]line Аи-95-К-5 [17:31:53]line 13.480 * 74.20 [17:31:53]line = 1000.22 [17:31:53]line НДС 12% НСП 1% [17:31:53]line > о реализуемом товаре [17:31:53]line ОКРУГЛЕНИЕ: -0.22 [17:31:53]line ИТОГО: 1000.00 [17:31:53]line Внесено: 1000.00 [17:31:53]line СДАЧА: 0.00 [17:31:53]line НСП 1% : 8.85 [17:31:53]line НДС 12% : 106.22 [17:31:53]line Наличными: 1000.00 [17:31:53]line Безнал.: 0.00 [17:31:53]line Место: АЗС № 136 "Партнер Нефть" [17:31:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:31:53]line СНО: Общий режим [17:31:53]line Чек 258 19.08.2024 17:31 [17:31:53]line Смена: 452 ФФД: 1.0 [17:31:53]line ЗНМ: 0300000067 [17:31:53]line РНМ: 0000000000092569 [17:31:53]line Версия ККМ: 001 [17:31:53]line ФМ: 0000000000871776 [17:31:53]line ФД: 139423 [17:31:53]line ФПД: 197756898054071 [17:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173153&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139423&fm=197756898054071&tin=02508201610067®Number=0000000000092569&sum=100000 [17:31:53]written 0, free lines is 4095 [17:31:53]OFD Sender: Processing packet 139423 [packets to send 137, broken 136] [17:31:53]ProducePacketName [17:31:53]name=ofd_packets/00139423 [17:31:53]OFD Sender: To server: pG, [17:31:53]CommunicateWithHost lk.salyk.kg:30040 [17:31:53]ConnectInit lk.salyk.kg [17:31:53]Connected sock=9 [17:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B0 71 07 01 6F 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 89 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 20 02 00 35 04 06 00 B3 DB DD A9 0F B7 B2 C7 44 C8 AB 18 11 93 [17:31: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 37 36 4F 00 00 00 C7 C6 47 00 AC 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 37 36 10 04 04 00 9F 20 02 00 F4 03 04 00 1E 28 C3 66 B6 04 01 00 00 79 B0 9D E2 C1 C5 0B 71 [17:31:53]CommunicateWithHost err = 0 [17:31:53]CheckOFDResponse [17:31:53]1017 (14) - 77093643461234 [17:31:53]1041 (16) - 0000000000871776 [17:31:53]1040 (4) - 139423 [17:31:53]1012 (4) - 19.08.2024 11:10 [17:31:53]1206 (1) - 0 [17:31:53]OFD Sender: Remove packet 139423 [17:31:53]ProducePacketName [17:31:53]name=ofd_packets/00139423 [17:31:53]NVStorageDeleteData [17:31:53]Write to MH i2c: 01 00 00 65 22 87 [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: 01 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: 01 07 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: 01 07 00 65 22 00 00 00 00 00 EE 0C 88 [17:31:53]RasterBufferAndPrint [17:31:53]line [17:31:53]line [17:31:53]line [17:31:53]line [17:31:53]line [17:31:53]written 0, free lines is 3319 [17:31:53]MH_Cut [17:31:53]Write to MH i2c: D1 01 00 6C 22 01 60 [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: D1 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: D1 01 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: D1 01 00 6C 22 00 5F [17:31:53]Write to MH i2c: 01 00 00 6D 22 8F [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:54]OFD Sender: No OFD packet to send [17:31:54]*** Cut start [17:31:54]*** Partial cut [17:31:54]*** CUTSNS_PIN = 1 [17:31:54]*** CUTSNS_PIN = 0 [17:31:54]*** Brake cut motor [17:31:54]Read from MH i2c: 01 [17:31:54]MH_I2C_Read... [17:31:54]*** Stop cut motor [17:31:54]*** Cut end [17:31:54]Read from MH i2c: 01 07 00 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 FF 0F A4 [17:31:54]process_action close_receipt done [17:31:54]requested_data is exist [17:31:54]produce_requested_data [17:31:54]requested_item fm.sn is exist - process it [17:31:54]wFMCommunicate request_size=4 [17:31:54]MH_SAM_APDU [17:31:54]CAPDU: 80 11 00 00 [17:31:54]Write to MH i2c: E2 08 00 6E 22 80 11 00 00 00 00 00 00 0A [17:31:54]Write i2c OK [17:31:54]MH_I2C_Read... [17:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:54]Read from MH i2c: E2 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: E2 17 00 [17:31:54]MH_I2C_Read... [17:31:54]Read from MH i2c: E2 17 00 6E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 61 [17:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:31:54]wFMCommunicate OK [17:31:54]requested_item fd.num is exist - process it [17:31:54]SAM_PROTO_GetFieldsCounters [17:31:54]wFMCommunicate request_size=4 [17:31:54]MH_SAM_APDU [17:31:54]CAPDU: 80 13 00 00 [17:31:54]Write to MH i2c: E2 08 00 6F 22 80 13 00 00 00 00 00 00 0D [17:31:54]Write i2c OK [17:31:54]MH_I2C_Read... [17:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:55]Read from MH i2c: E2 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 62 00 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 62 00 6F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9F 20 02 00 0E 04 04 00 C4 01 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 C7 [17:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9F 20 02 00 0E 04 04 00 C4 01 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 [17:31:55]wFMCommunicate OK [17:31:55]SAM_PROTO_GetFieldsCounters done [17:31:55]requested_item shift.num is exist - process it [17:31:55]requested_item shift.opened is exist - process it [17:31:55]req_shift_opened [17:31:55]FM_GetShiftState [17:31:55]SAM_PROTO_GetShiftState [17:31:55]wFMCommunicate request_size=4 [17:31:55]MH_SAM_APDU [17:31:55]CAPDU: 80 13 01 00 [17:31:55]Write to MH i2c: E2 08 00 70 22 80 13 01 00 00 00 00 00 0F [17:31:55]Write i2c OK [17:31:55]MH_I2C_Read... [17:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:55]Read from MH i2c: E2 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 0E 00 [17:31:55]MH_I2C_Read... [17:31:55]Read from MH i2c: E2 0E 00 70 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C6 [17:31:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:31:55]wFMCommunicate OK [17:31:55]SAM_PROTO_GetShiftState done [17:31:55]FM_GetShiftState done [17:31:55]req_shift_opened done [17:31:55]requested_item shift.open_date is exist - process it [17:31:55]req_shift_open_date [17:31:55]req_shift_open_date done [17:31:55]produce_requested_data done [17:31:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139423,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:31:55]process_action_free close_receipt [17:31:55]json_value_free [17:31:55]json_value_free done [17:31:55]process_json_proto returns [17:31:55]Send response to host [17:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139423,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:31:55]free response buf [17:31:55]execute_script done [17:31:55]execute_script returns [17:31:55]free content buf [17:31:55]Sock 8.Close socket [17:31:55]Sock 8.Thread stoped [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:11]accept exits with 10 [17:32:11]New connection [17:32:11]New thread 3066674532 created [17:32:11]Thread 3066817892 joined [17:32:11]Waiting for new connection... [17:32:11] Sock 10.Parse request [17:32:11]Sock 10.Check first char [17:32:11]Sock 10.First char is OK [17:32:11]request: POST /json_proto HTTP/1.0 [17:32:11]Method: POST [17:32:11]URL: /json_proto [17:32:11]Method is POST - this is cgi request [17:32:11]url: /json_proto [17:32:11]query_string will be loaded in cgi processing [17:32:11]execute_cgi json_proto POST (null) [17:32:11]execute_cgi path=json_proto method=POST [17:32:11]POST find Content-Length [17:32:11]Host: 172.17.45.67:8080 [17:32:11]Content-Length: 677 [17:32:11]Content-Type: application/json [17:32:11] [17:32:11]POST finish read [17:32:11]Found Content-Length = 677 [17:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:11]execute_script... [17:32: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)593263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:11]POST & json_proto [17:32:11]process_json_proto [17:32:11]json parsed OK: [17:32:11]protocol is kg_v1.0 [17:32:11]action value=close_receipt [17:32:11]process_action close_receipt [17:32:11]cmd_close_receipt [17:32:11]MH_GetDate [17:32:11]Write to MH i2c: F0 00 00 71 22 82 [17:32:11]Write i2c OK [17:32:11]MH_I2C_Read... [17:32:11]Read from MH i2c: F0 [17:32:11]MH_I2C_Read... [17:32:11]Read from MH i2c: F0 09 00 [17:32:11]MH_I2C_Read... [17:32:11]Read from MH i2c: F0 09 00 71 22 00 9D 81 C3 66 5F 7F 2B 66 41 [17:32:11]GetLastDocTimeStamp 1724088713 [17:32:11]current date 1724088733 [17:32:11]FM_GetShiftState [17:32:11]SAM_PROTO_GetShiftState [17:32:11]wFMCommunicate request_size=4 [17:32:11]MH_SAM_APDU [17:32:11]CAPDU: 80 13 01 00 [17:32:11]Write to MH i2c: E2 08 00 72 22 80 13 01 00 00 00 00 00 11 [17:32:11]Write i2c OK [17:32:11]MH_I2C_Read... [17:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:11]Read from MH i2c: E2 [17:32:11]MH_I2C_Read... [17:32:11]Read from MH i2c: E2 0E 00 [17:32:11]MH_I2C_Read... [17:32:11]Read from MH i2c: E2 0E 00 72 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C8 [17:32:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:32:11]wFMCommunicate OK [17:32:11]SAM_PROTO_GetShiftState done [17:32:11]FM_GetShiftState done [17:32:11]opened in 1724027888 [17:32:11]opened+sec_in_day 1724114288 [17:32:11]quantity*price = 50036 [17:32:11]sum+1 = 50037 [17:32:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 259 19.08.2024 17:32 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139424 ФПД: 277036979562042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173213&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139424&fm=277036979562042&tin=02508201610067®Number=0000000000092569&sum=50000 [17:32:12]StoreToDocumentArchive [17:32:12]shift 452 fd 139424 [17:32:12]save to /storage/0452/doc_00139424 [17:32:12]save last doc name /storage/0452/doc_00139424 to /storage/kkm_last_doc_name [17:32:12]save OK [17:32:12]Clear old archive folders... [17:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:12]tlvbuf is B6F348B0 [17:32:12]SAM_PROTO_ClearQueue [17:32:12]wFMCommunicate request_size=4 [17:32:12]MH_SAM_APDU [17:32:12]CAPDU: 80 09 00 00 [17:32:12]Write to MH i2c: E2 08 00 7F 22 80 09 00 00 00 00 00 00 13 [17:32:12]Write i2c OK [17:32:12]MH_I2C_Read... [17:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:12]Read from MH i2c: E2 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: E2 03 00 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: E2 03 00 7F 22 00 90 00 15 [17:32:12]RAPDU: 90 00 [17:32:12]wFMCommunicate OK [17:32:12]SAM_PROTO_ClearQueue done [17:32:12]KKMCreateOFDPacket [17:32:12]OFDProtocolAddRootSTLVToBuf [17:32:12]FM_MakeSignedData [17:32:12]FM_MakeSignedData [17:32:12]SAM_PROTO_SignData [17:32:12]wFMCommunicate request_size=4 [17:32:12]MH_SAM_APDU [17:32:12]CAPDU: 80 0D 01 02 [17:32:12]Write to MH i2c: E2 08 00 80 22 80 0D 01 02 00 00 00 00 1B [17:32:12]Write i2c OK [17:32:12]MH_I2C_Read... [17:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:12]Read from MH i2c: E2 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: E2 03 00 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: E2 03 00 80 22 00 90 00 16 [17:32:12]RAPDU: 90 00 [17:32:12]wFMCommunicate OK [17:32:12]wFMCommunicate request_size=255 [17:32:12]MH_SAM_APDU [17:32: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 03 01 00 00 F4 03 04 00 9D 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 20 02 00 35 04 06 00 FB [17:32:12]Write to MH i2c: E2 02 01 81 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 03 01 00 00 F4 03 04 00 9D 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 20 02 00 35 04 06 00 FB 00 00 71 [17:32:12]Write i2c OK [17:32:12]MH_I2C_Read... [17:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:13]Read from MH i2c: E2 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 81 22 00 90 00 17 [17:32:13]RAPDU: 90 00 [17:32:13]wFMCommunicate OK [17:32:13]wFMCommunicate request_size=10 [17:32:13]MH_SAM_APDU [17:32:13]CAPDU: 80 0D 02 02 05 F6 B2 C1 A6 3A [17:32:13]Write to MH i2c: E2 0D 00 82 22 80 0D 02 02 05 00 F6 B2 C1 A6 3A 00 00 71 [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:13]Read from MH i2c: E2 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 82 22 00 90 00 18 [17:32:13]RAPDU: 90 00 [17:32:13]wFMCommunicate OK [17:32:13]wFMCommunicate request_size=4 [17:32:13]MH_SAM_APDU [17:32:13]CAPDU: 80 0D 03 02 [17:32:13]Write to MH i2c: E2 08 00 83 22 80 0D 03 02 00 00 00 00 20 [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:13]Read from MH i2c: E2 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 0B 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 0B 00 83 22 00 C5 2B 01 FA 07 E1 14 50 90 00 58 [17:32:13]RAPDU: C5 2B 01 FA 07 E1 14 50 90 00 [17:32:13]wFMCommunicate OK [17:32:13]SAM_PROTO_SignData done [17:32:13]FM_MakeSignedData done [17:32:13]CreateOFDProtocolMessage [17:32:13]wFMCommunicate request_size=4 [17:32:13]MH_SAM_APDU [17:32:13]CAPDU: 80 11 00 00 [17:32:13]Write to MH i2c: E2 08 00 84 22 80 11 00 00 00 00 00 00 20 [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:13]Read from MH i2c: E2 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 17 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 17 00 84 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 77 [17:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:32:13]wFMCommunicate OK [17:32:13]CreateOFDProtocolMessage done [17:32:13]OFDSenderStorePacket 139424 [17:32:13]StoreOFDPacket docnum=139424 [17:32:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F6 51 07 01 66 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 03 01 00 00 F4 03 04 00 9D 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 20 02 00 35 04 06 00 FB F6 B2 C1 A6 3A C5 2B 01 FA 07 E1 14 50 [17:32:13]CheckFolder [17:32:13]dirname=/storage/ofd_packets [17:32:13]CheckFolder done [17:32:13]ProducePacketName [17:32:13]name=ofd_packets/00139424 [17:32:13]NVStorageSaveData ofd_packets/00139424 [17:32:13]File name is /storage/ofd_packets/00139424 [17:32:13]Write 301 bytes [17:32:13]NVStorageSaveData done [17:32:13]OFDSenderStorePacket done [17:32:13]KKMCreateOFDPacket done [17:32:13]NVStorageSaveData kkm_last_timestamp [17:32:13]File name is /storage/kkm_last_timestamp [17:32:13]Write 4 bytes [17:32:13]NVStorageSaveData done [17:32:13]ExternCall_PrintAddStr [17:32:13]wPrintStart [17:32:13]Write to MH i2c: 01 00 00 85 22 A7 [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: 01 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: 01 07 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: 01 07 00 85 22 00 00 00 00 00 FF 0F BC [17:32:13]RasterBufferAndPrint [17:32:13]line Счет N : (1)593263 [17:32:13]line ИНН: 02508201610067 [17:32:13]line Контрольно-Кассовый Чек [17:32:13]line ПРОДАЖА [17:32:13]line ТРК (МРК, ГНК) : 52 [17:32:13]line Товар: 2710124130 [17:32:13]line Аи-92-К-5 [17:32:13]line 7.380 * 67.80 [17:32:13]line = 500.36 [17:32:13]line НДС 12% НСП 1% [17:32:13]line > о реализуемом товаре [17:32:13]line ОКРУГЛЕНИЕ: -0.36 [17:32:13]line ИТОГО: 500.00 [17:32:13]line Внесено: 500.00 [17:32:13]line СДАЧА: 0.00 [17:32:13]line НСП 1% : 4.43 [17:32:13]line НДС 12% : 53.14 [17:32:13]line Наличными: 500.00 [17:32:13]line Безнал.: 0.00 [17:32:13]line Место: АЗС № 136 "Партнер Нефть" [17:32:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:32:13]line СНО: Общий режим [17:32:13]line Чек 259 19.08.2024 17:32 [17:32:13]line Смена: 452 ФФД: 1.0 [17:32:13]line ЗНМ: 0300000067 [17:32:13]line РНМ: 0000000000092569 [17:32:13]line Версия ККМ: 001 [17:32:13]line ФМ: 0000000000871776 [17:32:13]line ФД: 139424 [17:32:13]line ФПД: 277036979562042 [17:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173213&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139424&fm=277036979562042&tin=02508201610067®Number=0000000000092569&sum=50000 [17:32:13]written 0, free lines is 4095 [17:32:13]OFD Sender: Processing packet 139424 [packets to send 137, broken 136] [17:32:13]ProducePacketName [17:32:13]name=ofd_packets/00139424 [17:32:13]OFD Sender: To server: pG, [17:32:13]CommunicateWithHost lk.salyk.kg:30040 [17:32:13]ConnectInit lk.salyk.kg [17:32:13]Connected sock=9 [17:32: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 37 36 0F 01 00 00 F6 51 07 01 66 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 03 01 00 00 F4 03 04 00 9D 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 20 02 00 35 04 06 00 FB F6 B2 C1 A6 3A C5 2B 01 FA 07 E1 14 50 [17:32:13]Write to MH i2c: 01 00 00 B0 22 D2 [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: 01 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: 01 07 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: 01 07 00 B0 22 00 00 00 00 00 DD 0C C2 [17:32:13]RasterBufferAndPrint [17:32:13]line [17:32:13]line [17:32:13]line [17:32:13]line [17:32:13]line [17:32:13]written 0, free lines is 3299 [17:32:13]MH_Cut [17:32:13]Write to MH i2c: D1 01 00 B7 22 01 AB [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: D1 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: D1 01 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: D1 01 00 B7 22 00 AA [17:32:13]Write to MH i2c: 01 00 00 B8 22 DA [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32: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 37 36 4F 00 00 00 5B 4E 47 00 D1 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 37 36 10 04 04 00 A0 20 02 00 F4 03 04 00 32 28 C3 66 B6 04 01 00 00 C8 6E 02 DC 85 48 E3 E8 [17:32:13]CommunicateWithHost err = 0 [17:32:13]CheckOFDResponse [17:32:13]1017 (14) - 77093643461234 [17:32:13]1041 (16) - 0000000000871776 [17:32:13]1040 (4) - 139424 [17:32:13]1012 (4) - 19.08.2024 11:10 [17:32:13]1206 (1) - 0 [17:32:13]OFD Sender: Remove packet 139424 [17:32:13]ProducePacketName [17:32:13]name=ofd_packets/00139424 [17:32:13]NVStorageDeleteData [17:32:14]OFD Sender: No OFD packet to send [17:32:14]*** Cut start [17:32:14]*** Partial cut [17:32:14]*** CUTSNS_PIN = 1 [17:32:14]*** CUTSNS_PIN = 0 [17:32:14]*** Brake cut motor [17:32:15]Read from MH i2c: 01 [17:32:15]MH_I2C_Read... [17:32:15]*** Stop cut motor [17:32:15]*** Cut end [17:32:15]Read from MH i2c: 01 07 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: 01 07 00 B8 22 00 00 00 00 00 FF 0F EF [17:32:15]process_action close_receipt done [17:32:15]requested_data is exist [17:32:15]produce_requested_data [17:32:15]requested_item fm.sn is exist - process it [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 11 00 00 [17:32:15]Write to MH i2c: E2 08 00 B9 22 80 11 00 00 00 00 00 00 55 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 17 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 17 00 B9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [17:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:32:15]wFMCommunicate OK [17:32:15]requested_item fd.num is exist - process it [17:32:15]SAM_PROTO_GetFieldsCounters [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 13 00 00 [17:32:15]Write to MH i2c: E2 08 00 BA 22 80 13 00 00 00 00 00 00 58 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 62 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 62 00 BA 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A0 20 02 00 0E 04 04 00 C4 01 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 16 [17:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A0 20 02 00 0E 04 04 00 C4 01 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 [17:32:15]wFMCommunicate OK [17:32:15]SAM_PROTO_GetFieldsCounters done [17:32:15]requested_item shift.num is exist - process it [17:32:15]requested_item shift.opened is exist - process it [17:32:15]req_shift_opened [17:32:15]FM_GetShiftState [17:32:15]SAM_PROTO_GetShiftState [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 13 01 00 [17:32:15]Write to MH i2c: E2 08 00 BB 22 80 13 01 00 00 00 00 00 5A [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 0E 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 0E 00 BB 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 11 [17:32:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:32:15]wFMCommunicate OK [17:32:15]SAM_PROTO_GetShiftState done [17:32:15]FM_GetShiftState done [17:32:15]req_shift_opened done [17:32:15]requested_item shift.open_date is exist - process it [17:32:15]req_shift_open_date [17:32:15]req_shift_open_date done [17:32:15]produce_requested_data done [17:32:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139424,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:32:15]process_action_free close_receipt [17:32:15]json_value_free [17:32:15]json_value_free done [17:32:15]process_json_proto returns [17:32:15]Send response to host [17:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139424,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:32:15]free response buf [17:32:15]execute_script done [17:32:15]execute_script returns [17:32:15]free content buf [17:32:15]Sock 10.Close socket [17:32:15]Sock 10.Thread stoped [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]accept exits with 8 [17:32:34]New connection [17:32:34]New thread 3066817892 created [17:32:34]Thread 3066674532 joined [17:32:34]Waiting for new connection... [17:32:34] Sock 8.Parse request [17:32:34]Sock 8.Check first char [17:32:34]Sock 8.First char is OK [17:32:34]request: POST /json_proto HTTP/1.0 [17:32:34]Method: POST [17:32:34]URL: /json_proto [17:32:34]Method is POST - this is cgi request [17:32:34]url: /json_proto [17:32:34]query_string will be loaded in cgi processing [17:32:34]execute_cgi json_proto POST (null) [17:32:34]execute_cgi path=json_proto method=POST [17:32:34]POST find Content-Length [17:32:34]Host: 172.17.45.67:8080 [17:32:34]Content-Length: 677 [17:32:34]Content-Type: application/json [17:32:34] [17:32:34]POST finish read [17:32:34]Found Content-Length = 677 [17:32:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:32:34]execute_script... [17:32: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)593267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:32:34]POST & json_proto [17:32:34]process_json_proto [17:32:34]json parsed OK: [17:32:34]protocol is kg_v1.0 [17:32:34]action value=close_receipt [17:32:34]process_action close_receipt [17:32:34]cmd_close_receipt [17:32:34]MH_GetDate [17:32:34]Write to MH i2c: F0 00 00 BC 22 CD [17:32:34]Write i2c OK [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: F0 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: F0 09 00 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: F0 09 00 BC 22 00 B3 81 C3 66 5F 7F 2B 66 A2 [17:32:34]GetLastDocTimeStamp 1724088733 [17:32:34]current date 1724088755 [17:32:34]FM_GetShiftState [17:32:34]SAM_PROTO_GetShiftState [17:32:34]wFMCommunicate request_size=4 [17:32:34]MH_SAM_APDU [17:32:34]CAPDU: 80 13 01 00 [17:32:34]Write to MH i2c: E2 08 00 BD 22 80 13 01 00 00 00 00 00 5C [17:32:34]Write i2c OK [17:32:34]MH_I2C_Read... [17:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:34]Read from MH i2c: E2 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 0E 00 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 0E 00 BD 22 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 13 [17:32:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:32:34]wFMCommunicate OK [17:32:34]SAM_PROTO_GetShiftState done [17:32:34]FM_GetShiftState done [17:32:34]opened in 1724027888 [17:32:34]opened+sec_in_day 1724114288 [17:32:34]quantity*price = 20001 [17:32:34]sum+1 = 20002 [17:32:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 260 19.08.2024 17:32 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139425 ФПД: 103470986862182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173235&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139425&fm=103470986862182&tin=02508201610067®Number=0000000000092569&sum=20000 [17:32:35]StoreToDocumentArchive [17:32:35]shift 452 fd 139425 [17:32:35]save to /storage/0452/doc_00139425 [17:32:35]save last doc name /storage/0452/doc_00139425 to /storage/kkm_last_doc_name [17:32:35]save OK [17:32:35]Clear old archive folders... [17:32:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:35]tlvbuf is 01237380 [17:32:35]SAM_PROTO_ClearQueue [17:32:35]wFMCommunicate request_size=4 [17:32:35]MH_SAM_APDU [17:32:35]CAPDU: 80 09 00 00 [17:32:35]Write to MH i2c: E2 08 00 CA 22 80 09 00 00 00 00 00 00 5E [17:32:35]Write i2c OK [17:32:35]MH_I2C_Read... [17:32:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:35]Read from MH i2c: E2 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 03 00 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 03 00 CA 22 00 90 00 60 [17:32:35]RAPDU: 90 00 [17:32:35]wFMCommunicate OK [17:32:35]SAM_PROTO_ClearQueue done [17:32:35]KKMCreateOFDPacket [17:32:35]OFDProtocolAddRootSTLVToBuf [17:32:35]FM_MakeSignedData [17:32:35]FM_MakeSignedData [17:32:35]SAM_PROTO_SignData [17:32:35]wFMCommunicate request_size=4 [17:32:35]MH_SAM_APDU [17:32:35]CAPDU: 80 0D 01 02 [17:32:35]Write to MH i2c: E2 08 00 CB 22 80 0D 01 02 00 00 00 00 66 [17:32:35]Write i2c OK [17:32:35]MH_I2C_Read... [17:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:35]Read from MH i2c: E2 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 03 00 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 03 00 CB 22 00 90 00 61 [17:32:35]RAPDU: 90 00 [17:32:35]wFMCommunicate OK [17:32:35]wFMCommunicate request_size=255 [17:32:35]MH_SAM_APDU [17:32: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 04 01 00 00 F4 03 04 00 B3 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 20 02 00 35 04 06 00 5E [17:32:35]Write to MH i2c: E2 02 01 CC 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 04 01 00 00 F4 03 04 00 B3 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 20 02 00 35 04 06 00 5E 00 00 39 [17:32:35]Write i2c OK [17:32:35]MH_I2C_Read... [17:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:35]Read from MH i2c: E2 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 03 00 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 03 00 CC 22 00 90 00 62 [17:32:35]RAPDU: 90 00 [17:32:35]wFMCommunicate OK [17:32:35]wFMCommunicate request_size=10 [17:32:35]MH_SAM_APDU [17:32:35]CAPDU: 80 0D 02 02 05 1B 37 6A 9E 66 [17:32:35]Write to MH i2c: E2 0D 00 CD 22 80 0D 02 02 05 00 1B 37 6A 9E 66 00 00 33 [17:32:35]Write i2c OK [17:32:35]MH_I2C_Read... [17:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:35]Read from MH i2c: E2 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 03 00 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 03 00 CD 22 00 90 00 63 [17:32:35]RAPDU: 90 00 [17:32:35]wFMCommunicate OK [17:32:35]wFMCommunicate request_size=4 [17:32:35]MH_SAM_APDU [17:32:35]CAPDU: 80 0D 03 02 [17:32:35]Write to MH i2c: E2 08 00 CE 22 80 0D 03 02 00 00 00 00 6B [17:32:35]Write i2c OK [17:32:35]MH_I2C_Read... [17:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:35]Read from MH i2c: E2 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 0B 00 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 0B 00 CE 22 00 96 2A 2B AE 23 57 DE 7D 90 00 DA [17:32:35]RAPDU: 96 2A 2B AE 23 57 DE 7D 90 00 [17:32:35]wFMCommunicate OK [17:32:35]SAM_PROTO_SignData done [17:32:35]FM_MakeSignedData done [17:32:35]CreateOFDProtocolMessage [17:32:35]wFMCommunicate request_size=4 [17:32:35]MH_SAM_APDU [17:32:35]CAPDU: 80 11 00 00 [17:32:35]Write to MH i2c: E2 08 00 CF 22 80 11 00 00 00 00 00 00 6B [17:32:35]Write i2c OK [17:32:35]MH_I2C_Read... [17:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:35]Read from MH i2c: E2 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 17 00 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: E2 17 00 CF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C2 [17:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:32:35]wFMCommunicate OK [17:32:35]CreateOFDProtocolMessage done [17:32:35]OFDSenderStorePacket 139425 [17:32:35]StoreOFDPacket docnum=139425 [17:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 37 F3 07 01 6A 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 04 01 00 00 F4 03 04 00 B3 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 20 02 00 35 04 06 00 5E 1B 37 6A 9E 66 96 2A 2B AE 23 57 DE 7D [17:32:35]CheckFolder [17:32:35]dirname=/storage/ofd_packets [17:32:35]CheckFolder done [17:32:35]ProducePacketName [17:32:35]name=ofd_packets/00139425 [17:32:35]NVStorageSaveData ofd_packets/00139425 [17:32:35]File name is /storage/ofd_packets/00139425 [17:32:35]Write 301 bytes [17:32:35]NVStorageSaveData done [17:32:35]OFDSenderStorePacket done [17:32:35]KKMCreateOFDPacket done [17:32:35]NVStorageSaveData kkm_last_timestamp [17:32:35]File name is /storage/kkm_last_timestamp [17:32:35]Write 4 bytes [17:32:35]NVStorageSaveData done [17:32:35]ExternCall_PrintAddStr [17:32:35]wPrintStart [17:32:35]Write to MH i2c: 01 00 00 D0 22 F2 [17:32:35]Write i2c OK [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: 01 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: 01 07 00 [17:32:35]MH_I2C_Read... [17:32:35]Read from MH i2c: 01 07 00 D0 22 00 00 00 00 00 FF 0F 07 [17:32:35]RasterBufferAndPrint [17:32:35]line Счет N : (1)593267 [17:32:35]line ИНН: 02508201610067 [17:32:35]line Контрольно-Кассовый Чек [17:32:35]line ПРОДАЖА [17:32:35]line ТРК (МРК, ГНК) : 62 [17:32:35]line Товар: 2710124130 [17:32:35]line Аи-92-К-5 [17:32:35]line 2.950 * 67.80 [17:32:35]line = 200.01 [17:32:35]line НДС 12% НСП 1% [17:32:35]line > о реализуемом товаре [17:32:35]line ОКРУГЛЕНИЕ: -0.01 [17:32:35]line ИТОГО: 200.00 [17:32:35]line Внесено: 200.00 [17:32:35]line СДАЧА: 0.00 [17:32:35]line НСП 1% : 1.77 [17:32:35]line НДС 12% : 21.24 [17:32:35]line Наличными: 200.00 [17:32:35]line Безнал.: 0.00 [17:32:35]line Место: АЗС № 136 "Партнер Нефть" [17:32:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:32:35]line СНО: Общий режим [17:32:35]line Чек 260 19.08.2024 17:32 [17:32:35]line Смена: 452 ФФД: 1.0 [17:32:35]line ЗНМ: 0300000067 [17:32:35]line РНМ: 0000000000092569 [17:32:35]line Версия ККМ: 001 [17:32:35]line ФМ: 0000000000871776 [17:32:35]line ФД: 139425 [17:32:35]line ФПД: 103470986862182 [17:32:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173235&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139425&fm=103470986862182&tin=02508201610067®Number=0000000000092569&sum=20000 [17:32:36]OFD Sender: Processing packet 139425 [packets to send 137, broken 136] [17:32:36]ProducePacketName [17:32:36]name=ofd_packets/00139425 [17:32:36]OFD Sender: To server: pG, [17:32:36]CommunicateWithHost lk.salyk.kg:30040 [17:32:36]ConnectInit lk.salyk.kg [17:32:36]written 0, free lines is 4095 [17:32:36]Connected sock=10 [17:32: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 37 36 0F 01 00 00 37 F3 07 01 6A 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 04 01 00 00 F4 03 04 00 B3 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 20 02 00 35 04 06 00 5E 1B 37 6A 9E 66 96 2A 2B AE 23 57 DE 7D [17:32: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 37 36 4F 00 00 00 A6 57 47 00 25 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 20 02 00 F4 03 04 00 49 28 C3 66 B6 04 01 00 00 48 58 D8 A5 F6 63 E1 0E [17:32:36]CommunicateWithHost err = 0 [17:32:36]CheckOFDResponse [17:32:36]1017 (14) - 77093643461234 [17:32:36]1041 (16) - 0000000000871776 [17:32:36]1040 (4) - 139425 [17:32:36]1012 (4) - 19.08.2024 11:11 [17:32:36]1206 (1) - 0 [17:32:36]OFD Sender: Remove packet 139425 [17:32:36]ProducePacketName [17:32:36]name=ofd_packets/00139425 [17:32:36]NVStorageDeleteData [17:32:36]Write to MH i2c: 01 00 00 FB 22 1D [17:32:36]Write i2c OK [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: 01 [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: 01 07 00 [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: 01 07 00 FB 22 00 00 00 00 00 DE 0C 0E [17:32:36]RasterBufferAndPrint [17:32:36]line [17:32:36]line [17:32:36]line [17:32:36]line [17:32:36]line [17:32:36]written 0, free lines is 3303 [17:32:36]MH_Cut [17:32:36]Write to MH i2c: D1 01 00 02 23 01 F7 [17:32:36]Write i2c OK [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: D1 [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: D1 01 00 [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: D1 01 00 02 23 00 F6 [17:32:36]Write to MH i2c: 01 00 00 03 23 26 [17:32:36]Write i2c OK [17:32:36]MH_I2C_Read... [17:32:36]OFD Sender: No OFD packet to send [17:32:37]*** Cut start [17:32:37]*** Partial cut [17:32:37]*** CUTSNS_PIN = 1 [17:32:37]*** CUTSNS_PIN = 0 [17:32:37]*** Brake cut motor [17:32:37]Read from MH i2c: 01 [17:32:37]MH_I2C_Read... [17:32:37]*** Stop cut motor [17:32:37]*** Cut end [17:32:37]Read from MH i2c: 01 07 00 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: 01 07 00 03 23 00 00 00 00 00 FF 0F 3B [17:32:37]process_action close_receipt done [17:32:37]requested_data is exist [17:32:37]produce_requested_data [17:32:37]requested_item fm.sn is exist - process it [17:32:37]wFMCommunicate request_size=4 [17:32:37]MH_SAM_APDU [17:32:37]CAPDU: 80 11 00 00 [17:32:37]Write to MH i2c: E2 08 00 04 23 80 11 00 00 00 00 00 00 A1 [17:32:37]Write i2c OK [17:32:37]MH_I2C_Read... [17:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:37]Read from MH i2c: E2 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 17 00 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 17 00 04 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F8 [17:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:32:37]wFMCommunicate OK [17:32:37]requested_item fd.num is exist - process it [17:32:37]SAM_PROTO_GetFieldsCounters [17:32:37]wFMCommunicate request_size=4 [17:32:37]MH_SAM_APDU [17:32:37]CAPDU: 80 13 00 00 [17:32:37]Write to MH i2c: E2 08 00 05 23 80 13 00 00 00 00 00 00 A4 [17:32:37]Write i2c OK [17:32:37]MH_I2C_Read... [17:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:37]Read from MH i2c: E2 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 62 00 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 62 00 05 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A1 20 02 00 0E 04 04 00 C4 01 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 66 [17:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A1 20 02 00 0E 04 04 00 C4 01 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 [17:32:38]wFMCommunicate OK [17:32:38]SAM_PROTO_GetFieldsCounters done [17:32:38]requested_item shift.num is exist - process it [17:32:38]requested_item shift.opened is exist - process it [17:32:38]req_shift_opened [17:32:38]FM_GetShiftState [17:32:38]SAM_PROTO_GetShiftState [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 13 01 00 [17:32:38]Write to MH i2c: E2 08 00 06 23 80 13 01 00 00 00 00 00 A6 [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 0E 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 0E 00 06 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5D [17:32:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:32:38]wFMCommunicate OK [17:32:38]SAM_PROTO_GetShiftState done [17:32:38]FM_GetShiftState done [17:32:38]req_shift_opened done [17:32:38]requested_item shift.open_date is exist - process it [17:32:38]req_shift_open_date [17:32:38]req_shift_open_date done [17:32:38]produce_requested_data done [17:32:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139425,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:32:38]process_action_free close_receipt [17:32:38]json_value_free [17:32:38]json_value_free done [17:32:38]process_json_proto returns [17:32:38]Send response to host [17:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139425,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:32:38]free response buf [17:32:38]execute_script done [17:32:38]execute_script returns [17:32:38]free content buf [17:32:38]Sock 8.Close socket [17:32:38]Sock 8.Thread stoped [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:32]accept exits with 9 [17:33:32]New connection [17:33:32]New thread 3066674532 created [17:33:32]Thread 3066817892 joined [17:33:32]Waiting for new connection... [17:33:32] Sock 9.Parse request [17:33:32]Sock 9.Check first char [17:33:32]Sock 9.First char is OK [17:33:32]request: POST /json_proto HTTP/1.0 [17:33:32]Method: POST [17:33:32]URL: /json_proto [17:33:32]Method is POST - this is cgi request [17:33:32]url: /json_proto [17:33:32]query_string will be loaded in cgi processing [17:33:32]execute_cgi json_proto POST (null) [17:33:32]execute_cgi path=json_proto method=POST [17:33:32]POST find Content-Length [17:33:32]Host: 172.17.45.67:8080 [17:33:32]Content-Length: 677 [17:33:32]Content-Type: application/json [17:33:32] [17:33:32]POST finish read [17:33:32]Found Content-Length = 677 [17:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:33:32]execute_script... [17: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)593268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:33:32]POST & json_proto [17:33:32]process_json_proto [17:33:32]json parsed OK: [17:33:32]protocol is kg_v1.0 [17:33:32]action value=close_receipt [17:33:32]process_action close_receipt [17:33:32]cmd_close_receipt [17:33:32]MH_GetDate [17:33:32]Write to MH i2c: F0 00 00 07 23 19 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: F0 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: F0 09 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: F0 09 00 07 23 00 EE 81 C3 66 5F 7F 2B 66 29 [17:33:32]GetLastDocTimeStamp 1724088755 [17:33:32]current date 1724088814 [17:33:32]FM_GetShiftState [17:33:32]SAM_PROTO_GetShiftState [17:33:32]wFMCommunicate request_size=4 [17:33:32]MH_SAM_APDU [17:33:32]CAPDU: 80 13 01 00 [17:33:32]Write to MH i2c: E2 08 00 08 23 80 13 01 00 00 00 00 00 A8 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:32]Read from MH i2c: E2 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 0E 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: E2 0E 00 08 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5F [17:33:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:33:32]wFMCommunicate OK [17:33:32]SAM_PROTO_GetShiftState done [17:33:32]FM_GetShiftState done [17:33:32]opened in 1724027888 [17:33:32]opened+sec_in_day 1724114288 [17:33:32]quantity*price = 20001 [17:33:32]sum+1 = 20002 [17:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 261 19.08.2024 17:33 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139426 ФПД: 72389053241711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173334&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139426&fm=72389053241711&tin=02508201610067®Number=0000000000092569&sum=20000 [17:33:33]StoreToDocumentArchive [17:33:33]shift 452 fd 139426 [17:33:33]save to /storage/0452/doc_00139426 [17:33:33]save last doc name /storage/0452/doc_00139426 to /storage/kkm_last_doc_name [17:33:33]save OK [17:33:33]Clear old archive folders... [17:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:33]tlvbuf is 012954A0 [17:33:33]SAM_PROTO_ClearQueue [17:33:33]wFMCommunicate request_size=4 [17:33:33]MH_SAM_APDU [17:33:33]CAPDU: 80 09 00 00 [17:33:33]Write to MH i2c: E2 08 00 15 23 80 09 00 00 00 00 00 00 AA [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:33]Read from MH i2c: E2 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 03 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 03 00 15 23 00 90 00 AC [17:33:33]RAPDU: 90 00 [17:33:33]wFMCommunicate OK [17:33:33]SAM_PROTO_ClearQueue done [17:33:33]KKMCreateOFDPacket [17:33:33]OFDProtocolAddRootSTLVToBuf [17:33:33]FM_MakeSignedData [17:33:33]FM_MakeSignedData [17:33:33]SAM_PROTO_SignData [17:33:33]wFMCommunicate request_size=4 [17:33:33]MH_SAM_APDU [17:33:33]CAPDU: 80 0D 01 02 [17:33:33]Write to MH i2c: E2 08 00 16 23 80 0D 01 02 00 00 00 00 B2 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:33]Read from MH i2c: E2 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 03 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 03 00 16 23 00 90 00 AD [17:33:33]RAPDU: 90 00 [17:33:33]wFMCommunicate OK [17:33:33]wFMCommunicate request_size=255 [17:33:33]MH_SAM_APDU [17: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 05 01 00 00 F4 03 04 00 EE 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 20 02 00 35 04 06 00 41 [17:33:33]Write to MH i2c: E2 02 01 17 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 05 01 00 00 F4 03 04 00 EE 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 20 02 00 35 04 06 00 41 00 00 A5 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 17 23 00 90 00 AE [17:33:34]RAPDU: 90 00 [17:33:34]wFMCommunicate OK [17:33:34]wFMCommunicate request_size=10 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 0D 02 02 05 D6 63 CD D9 6F [17:33:34]Write to MH i2c: E2 0D 00 18 23 80 0D 02 02 05 00 D6 63 CD D9 6F 00 00 0D [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 18 23 00 90 00 AF [17:33:34]RAPDU: 90 00 [17:33:34]wFMCommunicate OK [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 0D 03 02 [17:33:34]Write to MH i2c: E2 08 00 19 23 80 0D 03 02 00 00 00 00 B7 [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 0B 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 0B 00 19 23 00 5A C2 51 67 89 54 05 AE 90 00 1C [17:33:34]RAPDU: 5A C2 51 67 89 54 05 AE 90 00 [17:33:34]wFMCommunicate OK [17:33:34]SAM_PROTO_SignData done [17:33:34]FM_MakeSignedData done [17:33:34]CreateOFDProtocolMessage [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 11 00 00 [17:33:34]Write to MH i2c: E2 08 00 1A 23 80 11 00 00 00 00 00 00 B7 [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 17 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 17 00 1A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0E [17:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:33:34]wFMCommunicate OK [17:33:34]CreateOFDProtocolMessage done [17:33:34]OFDSenderStorePacket 139426 [17:33:34]StoreOFDPacket docnum=139426 [17:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AD 41 07 01 EC 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 05 01 00 00 F4 03 04 00 EE 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 20 02 00 35 04 06 00 41 D6 63 CD D9 6F 5A C2 51 67 89 54 05 AE [17:33:34]CheckFolder [17:33:34]dirname=/storage/ofd_packets [17:33:34]CheckFolder done [17:33:34]ProducePacketName [17:33:34]name=ofd_packets/00139426 [17:33:34]NVStorageSaveData ofd_packets/00139426 [17:33:34]File name is /storage/ofd_packets/00139426 [17:33:34]Write 301 bytes [17:33:34]NVStorageSaveData done [17:33:34]OFDSenderStorePacket done [17:33:34]KKMCreateOFDPacket done [17:33:34]NVStorageSaveData kkm_last_timestamp [17:33:34]File name is /storage/kkm_last_timestamp [17:33:34]Write 4 bytes [17:33:34]NVStorageSaveData done [17:33:34]ExternCall_PrintAddStr [17:33:34]wPrintStart [17:33:34]Write to MH i2c: 01 00 00 1B 23 3E [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: 01 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: 01 07 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: 01 07 00 1B 23 00 00 00 00 00 FF 0F 53 [17:33:34]RasterBufferAndPrint [17:33:34]line Счет N : (1)593268 [17:33:34]line ИНН: 02508201610067 [17:33:34]line Контрольно-Кассовый Чек [17:33:34]line ПРОДАЖА [17:33:34]line ТРК (МРК, ГНК) : 42 [17:33:34]line Товар: 2710124130 [17:33:34]line Аи-92-К-5 [17:33:34]line 2.950 * 67.80 [17:33:34]line = 200.01 [17:33:34]line НДС 12% НСП 1% [17:33:34]line > о реализуемом товаре [17:33:34]line ОКРУГЛЕНИЕ: -0.01 [17:33:34]line ИТОГО: 200.00 [17:33:34]line Внесено: 200.00 [17:33:34]line СДАЧА: 0.00 [17:33:34]line НСП 1% : 1.77 [17:33:34]line НДС 12% : 21.24 [17:33:34]line Наличными: 200.00 [17:33:34]line Безнал.: 0.00 [17:33:34]line Место: АЗС № 136 "Партнер Нефть" [17:33:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:33:34]line СНО: Общий режим [17:33:34]line Чек 261 19.08.2024 17:33 [17:33:34]line Смена: 452 ФФД: 1.0 [17:33:34]line ЗНМ: 0300000067 [17:33:34]line РНМ: 0000000000092569 [17:33:34]line Версия ККМ: 001 [17:33:34]line ФМ: 0000000000871776 [17:33:34]line ФД: 139426 [17:33:34]line ФПД: 72389053241711 [17:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173334&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139426&fm=72389053241711&tin=02508201610067®Number=0000000000092569&sum=20000 [17:33:34]OFD Sender: Processing packet 139426 [packets to send 137, broken 136] [17:33:34]ProducePacketName [17:33:34]name=ofd_packets/00139426 [17:33:34]OFD Sender: To server: pG, [17:33:34]CommunicateWithHost lk.salyk.kg:30040 [17:33:34]ConnectInit lk.salyk.kg [17:33:34]written 0, free lines is 4095 [17:33:34]Connected sock=10 [17: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 37 36 0F 01 00 00 AD 41 07 01 EC 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 05 01 00 00 F4 03 04 00 EE 81 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 20 02 00 35 04 06 00 41 D6 63 CD D9 6F 5A C2 51 67 89 54 05 AE [17:33: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 37 36 4F 00 00 00 20 B1 47 00 12 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 20 02 00 F4 03 04 00 83 28 C3 66 B6 04 01 00 00 E3 5E 71 4A E2 C3 47 DE [17:33:35]CommunicateWithHost err = 0 [17:33:35]CheckOFDResponse [17:33:35]1017 (14) - 77093643461234 [17:33:35]1041 (16) - 0000000000871776 [17:33:35]1040 (4) - 139426 [17:33:35]1012 (4) - 19.08.2024 11:12 [17:33:35]1206 (1) - 0 [17:33:35]OFD Sender: Remove packet 139426 [17:33:35]ProducePacketName [17:33:35]name=ofd_packets/00139426 [17:33:35]NVStorageDeleteData [17:33:35]Write to MH i2c: 01 00 00 46 23 69 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 07 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 07 00 46 23 00 00 00 00 00 D6 0C 52 [17:33:35]RasterBufferAndPrint [17:33:35]line [17:33:35]line [17:33:35]line [17:33:35]line [17:33:35]line [17:33:35]written 0, free lines is 3290 [17:33:35]MH_Cut [17:33:35]Write to MH i2c: D1 01 00 4D 23 01 42 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: D1 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: D1 01 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: D1 01 00 4D 23 00 41 [17:33:35]Write to MH i2c: 01 00 00 4E 23 71 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]OFD Sender: No OFD packet to send [17:33:35]*** Cut start [17:33:35]*** Partial cut [17:33:35]*** CUTSNS_PIN = 1 [17:33:35]*** CUTSNS_PIN = 0 [17:33:36]*** Brake cut motor [17:33:36]Read from MH i2c: 01 [17:33:36]MH_I2C_Read... [17:33:36]*** Stop cut motor [17:33:36]*** Cut end [17:33:36]Read from MH i2c: 01 07 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: 01 07 00 4E 23 00 00 00 00 00 FF 0F 86 [17:33:36]process_action close_receipt done [17:33:36]requested_data is exist [17:33:36]produce_requested_data [17:33:36]requested_item fm.sn is exist - process it [17:33:36]wFMCommunicate request_size=4 [17:33:36]MH_SAM_APDU [17:33:36]CAPDU: 80 11 00 00 [17:33:36]Write to MH i2c: E2 08 00 4F 23 80 11 00 00 00 00 00 00 EC [17:33:36]Write i2c OK [17:33:36]MH_I2C_Read... [17:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:36]Read from MH i2c: E2 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 17 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 17 00 4F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [17:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:33:36]wFMCommunicate OK [17:33:36]requested_item fd.num is exist - process it [17:33:36]SAM_PROTO_GetFieldsCounters [17:33:36]wFMCommunicate request_size=4 [17:33:36]MH_SAM_APDU [17:33:36]CAPDU: 80 13 00 00 [17:33:36]Write to MH i2c: E2 08 00 50 23 80 13 00 00 00 00 00 00 EF [17:33:36]Write i2c OK [17:33:36]MH_I2C_Read... [17:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:36]Read from MH i2c: E2 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 62 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 62 00 50 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A2 20 02 00 0E 04 04 00 C4 01 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 B5 [17:33: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A2 20 02 00 0E 04 04 00 C4 01 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 [17:33:36]wFMCommunicate OK [17:33:36]SAM_PROTO_GetFieldsCounters done [17:33:36]requested_item shift.num is exist - process it [17:33:36]requested_item shift.opened is exist - process it [17:33:36]req_shift_opened [17:33:36]FM_GetShiftState [17:33:36]SAM_PROTO_GetShiftState [17:33:36]wFMCommunicate request_size=4 [17:33:36]MH_SAM_APDU [17:33:36]CAPDU: 80 13 01 00 [17:33:36]Write to MH i2c: E2 08 00 51 23 80 13 01 00 00 00 00 00 F1 [17:33:36]Write i2c OK [17:33:36]MH_I2C_Read... [17:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:36]Read from MH i2c: E2 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 0E 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 0E 00 51 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A8 [17:33:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:33:36]wFMCommunicate OK [17:33:36]SAM_PROTO_GetShiftState done [17:33:36]FM_GetShiftState done [17:33:36]req_shift_opened done [17:33:36]requested_item shift.open_date is exist - process it [17:33:36]req_shift_open_date [17:33:36]req_shift_open_date done [17:33:36]produce_requested_data done [17:33:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139426,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:33:36]process_action_free close_receipt [17:33:36]json_value_free [17:33:36]json_value_free done [17:33:36]process_json_proto returns [17:33:36]Send response to host [17:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139426,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:33:36]free response buf [17:33:36]execute_script done [17:33:36]execute_script returns [17:33:36]free content buf [17:33:36]Sock 9.Close socket [17:33:36]Sock 9.Thread stoped [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:31]accept exits with 8 [17:34:31]New connection [17:34:31]New thread 3066817892 created [17:34:31]Thread 3066674532 joined [17:34:31]Waiting for new connection... [17:34:31] Sock 8.Parse request [17:34:31]Sock 8.Check first char [17:34:31]Sock 8.First char is OK [17:34:31]request: POST /json_proto HTTP/1.0 [17:34:31]Method: POST [17:34:31]URL: /json_proto [17:34:31]Method is POST - this is cgi request [17:34:31]url: /json_proto [17:34:31]query_string will be loaded in cgi processing [17:34:31]execute_cgi json_proto POST (null) [17:34:31]execute_cgi path=json_proto method=POST [17:34:31]POST find Content-Length [17:34:31]Host: 172.17.45.67:8080 [17:34:31]Content-Length: 682 [17:34:31]Content-Type: application/json [17:34:31] [17:34:31]POST finish read [17:34:31]Found Content-Length = 682 [17:34:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:34:31]execute_script... [17:34: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)593269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:34:31]POST & json_proto [17:34:31]process_json_proto [17:34:31]json parsed OK: [17:34:31]protocol is kg_v1.0 [17:34:31]action value=close_receipt [17:34:31]process_action close_receipt [17:34:31]cmd_close_receipt [17:34:31]MH_GetDate [17:34:31]Write to MH i2c: F0 00 00 52 23 64 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: F0 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: F0 09 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: F0 09 00 52 23 00 28 82 C3 66 5F 7F 2B 66 AF [17:34:31]GetLastDocTimeStamp 1724088814 [17:34:31]current date 1724088872 [17:34:31]FM_GetShiftState [17:34:31]SAM_PROTO_GetShiftState [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 13 01 00 [17:34:31]Write to MH i2c: E2 08 00 53 23 80 13 01 00 00 00 00 00 F3 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 53 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AA [17:34:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:34:31]wFMCommunicate OK [17:34:31]SAM_PROTO_GetShiftState done [17:34:31]FM_GetShiftState done [17:34:31]opened in 1724027888 [17:34:31]opened+sec_in_day 1724114288 [17:34:31]quantity*price = 100021 [17:34:31]sum+1 = 100023 [17:34:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 262 19.08.2024 17:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139427 ФПД: 273735604808874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173432&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139427&fm=273735604808874&tin=02508201610067®Number=0000000000092569&sum=100000 [17:34:32]StoreToDocumentArchive [17:34:32]shift 452 fd 139427 [17:34:32]save to /storage/0452/doc_00139427 [17:34:32]save last doc name /storage/0452/doc_00139427 to /storage/kkm_last_doc_name [17:34:32]save OK [17:34:32]Clear old archive folders... [17:34:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:32]tlvbuf is 012A1240 [17:34:32]SAM_PROTO_ClearQueue [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 09 00 00 [17:34:32]Write to MH i2c: E2 08 00 60 23 80 09 00 00 00 00 00 00 F5 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 60 23 00 90 00 F7 [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]SAM_PROTO_ClearQueue done [17:34:32]KKMCreateOFDPacket [17:34:32]OFDProtocolAddRootSTLVToBuf [17:34:32]FM_MakeSignedData [17:34:32]FM_MakeSignedData [17:34:32]SAM_PROTO_SignData [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 0D 01 02 [17:34:32]Write to MH i2c: E2 08 00 61 23 80 0D 01 02 00 00 00 00 FD [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 61 23 00 90 00 F8 [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]wFMCommunicate request_size=255 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 28 82 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 20 02 00 35 04 06 00 F8 [17:34:32]Write to MH i2c: E2 02 01 62 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 28 82 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 20 02 00 35 04 06 00 F8 00 00 0F [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 62 23 00 90 00 F9 [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]wFMCommunicate request_size=10 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 0D 02 02 05 F6 09 7C AC AA [17:34:32]Write to MH i2c: E2 0D 00 63 23 80 0D 02 02 05 00 F6 09 7C AC AA 00 00 DB [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 03 00 63 23 00 90 00 FA [17:34:32]RAPDU: 90 00 [17:34:32]wFMCommunicate OK [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 0D 03 02 [17:34:32]Write to MH i2c: E2 08 00 64 23 80 0D 03 02 00 00 00 00 02 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 0B 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 0B 00 64 23 00 1D A6 D4 84 14 7E 0A 4B 90 00 05 [17:34:32]RAPDU: 1D A6 D4 84 14 7E 0A 4B 90 00 [17:34:32]wFMCommunicate OK [17:34:32]SAM_PROTO_SignData done [17:34:32]FM_MakeSignedData done [17:34:32]CreateOFDProtocolMessage [17:34:32]wFMCommunicate request_size=4 [17:34:32]MH_SAM_APDU [17:34:32]CAPDU: 80 11 00 00 [17:34:32]Write to MH i2c: E2 08 00 65 23 80 11 00 00 00 00 00 00 02 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:32]Read from MH i2c: E2 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 17 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: E2 17 00 65 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 59 [17:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:34:32]wFMCommunicate OK [17:34:32]CreateOFDProtocolMessage done [17:34:32]OFDSenderStorePacket 139427 [17:34:32]StoreOFDPacket docnum=139427 [17:34:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 63 B0 07 01 C6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 28 82 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 20 02 00 35 04 06 00 F8 F6 09 7C AC AA 1D A6 D4 84 14 7E 0A 4B [17:34:32]CheckFolder [17:34:32]dirname=/storage/ofd_packets [17:34:32]CheckFolder done [17:34:32]ProducePacketName [17:34:32]name=ofd_packets/00139427 [17:34:32]NVStorageSaveData ofd_packets/00139427 [17:34:32]File name is /storage/ofd_packets/00139427 [17:34:32]Write 301 bytes [17:34:32]NVStorageSaveData done [17:34:32]OFDSenderStorePacket done [17:34:32]KKMCreateOFDPacket done [17:34:32]NVStorageSaveData kkm_last_timestamp [17:34:32]File name is /storage/kkm_last_timestamp [17:34:32]Write 4 bytes [17:34:32]NVStorageSaveData done [17:34:32]ExternCall_PrintAddStr [17:34:32]wPrintStart [17:34:32]Write to MH i2c: 01 00 00 66 23 89 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: 01 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: 01 07 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: 01 07 00 66 23 00 00 00 00 00 FF 0F 9E [17:34:32]RasterBufferAndPrint [17:34:32]line Счет N : (1)593269 [17:34:32]line ИНН: 02508201610067 [17:34:32]line Контрольно-Кассовый Чек [17:34:32]line ПРОДАЖА [17:34:32]line ТРК (МРК, ГНК) : 51 [17:34:32]line Товар: 2710124500 [17:34:32]line Аи-95-К-5 [17:34:32]line 13.480 * 74.20 [17:34:32]line = 1000.22 [17:34:32]line НДС 12% НСП 1% [17:34:32]line > о реализуемом товаре [17:34:32]line ОКРУГЛЕНИЕ: -0.22 [17:34:32]line ИТОГО: 1000.00 [17:34:32]line Внесено: 1000.00 [17:34:32]line СДАЧА: 0.00 [17:34:32]line НСП 1% : 8.85 [17:34:32]line НДС 12% : 106.22 [17:34:32]line Наличными: 1000.00 [17:34:32]line Безнал.: 0.00 [17:34:32]line Место: АЗС № 136 "Партнер Нефть" [17:34:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:34:32]line СНО: Общий режим [17:34:32]line Чек 262 19.08.2024 17:34 [17:34:32]line Смена: 452 ФФД: 1.0 [17:34:32]line ЗНМ: 0300000067 [17:34:32]line РНМ: 0000000000092569 [17:34:32]line Версия ККМ: 001 [17:34:32]line ФМ: 0000000000871776 [17:34:32]line ФД: 139427 [17:34:32]line ФПД: 273735604808874 [17:34:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173432&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139427&fm=273735604808874&tin=02508201610067®Number=0000000000092569&sum=100000 [17:34:33]written 0, free lines is 4095 [17:34:33]OFD Sender: Processing packet 139427 [packets to send 137, broken 136] [17:34:33]ProducePacketName [17:34:33]name=ofd_packets/00139427 [17:34:33]OFD Sender: To server: pG, [17:34:33]CommunicateWithHost lk.salyk.kg:30040 [17:34:33]ConnectInit lk.salyk.kg [17:34:33]Connected sock=10 [17:34: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 37 36 0F 01 00 00 63 B0 07 01 C6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 28 82 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 20 02 00 35 04 06 00 F8 F6 09 7C AC AA 1D A6 D4 84 14 7E 0A 4B [17:34: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 37 36 4F 00 00 00 A9 0D 47 00 32 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 20 02 00 F4 03 04 00 BE 28 C3 66 B6 04 01 00 00 5D 26 58 D5 41 85 D1 0D [17:34:33]CommunicateWithHost err = 0 [17:34:33]CheckOFDResponse [17:34:33]1017 (14) - 77093643461234 [17:34:33]1041 (16) - 0000000000871776 [17:34:33]1040 (4) - 139427 [17:34:33]1012 (4) - 19.08.2024 11:13 [17:34:33]1206 (1) - 0 [17:34:33]OFD Sender: Remove packet 139427 [17:34:33]ProducePacketName [17:34:33]name=ofd_packets/00139427 [17:34:33]NVStorageDeleteData [17:34:33]Write to MH i2c: 01 00 00 91 23 B4 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 07 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 07 00 91 23 00 00 00 00 00 E0 0C A7 [17:34:33]RasterBufferAndPrint [17:34:33]line [17:34:33]line [17:34:33]line [17:34:33]line [17:34:33]line [17:34:33]written 0, free lines is 3302 [17:34:33]MH_Cut [17:34:33]Write to MH i2c: D1 01 00 98 23 01 8D [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: D1 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: D1 01 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: D1 01 00 98 23 00 8C [17:34:33]Write to MH i2c: 01 00 00 99 23 BC [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:34]OFD Sender: No OFD packet to send [17:34:34]*** Cut start [17:34:34]*** Partial cut [17:34:34]*** CUTSNS_PIN = 1 [17:34:34]*** CUTSNS_PIN = 0 [17:34:34]*** Brake cut motor [17:34:34]Read from MH i2c: 01 [17:34:34]MH_I2C_Read... [17:34:34]*** Stop cut motor [17:34:34]*** Cut end [17:34:34]Read from MH i2c: 01 07 00 [17:34:34]MH_I2C_Read... [17:34:34]Read from MH i2c: 01 07 00 99 23 00 00 00 00 00 FF 0F D1 [17:34:34]process_action close_receipt done [17:34:34]requested_data is exist [17:34:34]produce_requested_data [17:34:34]requested_item fm.sn is exist - process it [17:34:34]wFMCommunicate request_size=4 [17:34:34]MH_SAM_APDU [17:34:34]CAPDU: 80 11 00 00 [17:34:34]Write to MH i2c: E2 08 00 9A 23 80 11 00 00 00 00 00 00 37 [17:34:34]Write i2c OK [17:34:34]MH_I2C_Read... [17:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:35]Read from MH i2c: E2 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 17 00 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 17 00 9A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8E [17:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:34:35]wFMCommunicate OK [17:34:35]requested_item fd.num is exist - process it [17:34:35]SAM_PROTO_GetFieldsCounters [17:34:35]wFMCommunicate request_size=4 [17:34:35]MH_SAM_APDU [17:34:35]CAPDU: 80 13 00 00 [17:34:35]Write to MH i2c: E2 08 00 9B 23 80 13 00 00 00 00 00 00 3A [17:34:35]Write i2c OK [17:34:35]MH_I2C_Read... [17:34:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:35]Read from MH i2c: E2 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 62 00 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 62 00 9B 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A3 20 02 00 0E 04 04 00 C4 01 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 04 [17:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A3 20 02 00 0E 04 04 00 C4 01 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 [17:34:35]wFMCommunicate OK [17:34:35]SAM_PROTO_GetFieldsCounters done [17:34:35]requested_item shift.num is exist - process it [17:34:35]requested_item shift.opened is exist - process it [17:34:35]req_shift_opened [17:34:35]FM_GetShiftState [17:34:35]SAM_PROTO_GetShiftState [17:34:35]wFMCommunicate request_size=4 [17:34:35]MH_SAM_APDU [17:34:35]CAPDU: 80 13 01 00 [17:34:35]Write to MH i2c: E2 08 00 9C 23 80 13 01 00 00 00 00 00 3C [17:34:35]Write i2c OK [17:34:35]MH_I2C_Read... [17:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:35]Read from MH i2c: E2 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 0E 00 [17:34:35]MH_I2C_Read... [17:34:35]Read from MH i2c: E2 0E 00 9C 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F3 [17:34:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:34:35]wFMCommunicate OK [17:34:35]SAM_PROTO_GetShiftState done [17:34:35]FM_GetShiftState done [17:34:35]req_shift_opened done [17:34:35]requested_item shift.open_date is exist - process it [17:34:35]req_shift_open_date [17:34:35]req_shift_open_date done [17:34:35]produce_requested_data done [17:34:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139427,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:34:35]process_action_free close_receipt [17:34:35]json_value_free [17:34:35]json_value_free done [17:34:35]process_json_proto returns [17:34:35]Send response to host [17:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139427,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:34:35]free response buf [17:34:35]execute_script done [17:34:35]execute_script returns [17:34:35]free content buf [17:34:35]Sock 8.Close socket [17:34:35]Sock 8.Thread stoped [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:57]accept exits with 9 [17:39:57]New connection [17:39:57]New thread 3066674532 created [17:39:57]Thread 3066817892 joined [17:39:57]Waiting for new connection... [17:39:57] Sock 9.Parse request [17:39:57]Sock 9.Check first char [17:39:57]Sock 9.First char is OK [17:39:57]request: POST /json_proto HTTP/1.0 [17:39:57]Method: POST [17:39:57]URL: /json_proto [17:39:57]Method is POST - this is cgi request [17:39:57]url: /json_proto [17:39:57]query_string will be loaded in cgi processing [17:39:57]execute_cgi json_proto POST (null) [17:39:57]execute_cgi path=json_proto method=POST [17:39:57]POST find Content-Length [17:39:57]Host: 172.17.45.67:8080 [17:39:57]Content-Length: 988 [17:39:57]Content-Type: application/json [17:39:57] [17:39:57]POST finish read [17:39:57]Found Content-Length = 988 [17:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 119.690, "sum" : 9000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 119.69 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:57]execute_script... [17:39: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)593270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 119.690, "sum" : 9000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 119.69 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:57]POST & json_proto [17:39:57]process_json_proto [17:39:57]json parsed OK: [17:39:57]protocol is kg_v1.0 [17:39:57]action value=close_receipt [17:39:57]process_action close_receipt [17:39:57]cmd_close_receipt [17:39:57]MH_GetDate [17:39:57]Write to MH i2c: F0 00 00 9D 23 AF [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: F0 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: F0 09 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: F0 09 00 9D 23 00 6F 83 C3 66 5F 7F 2B 66 42 [17:39:57]GetLastDocTimeStamp 1724088872 [17:39:57]current date 1724089199 [17:39:57]FM_GetShiftState [17:39:57]SAM_PROTO_GetShiftState [17:39:57]wFMCommunicate request_size=4 [17:39:57]MH_SAM_APDU [17:39:57]CAPDU: 80 13 01 00 [17:39:57]Write to MH i2c: E2 08 00 9E 23 80 13 01 00 00 00 00 00 3E [17:39:57]Write i2c OK [17:39:57]MH_I2C_Read... [17:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:57]Read from MH i2c: E2 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 0E 00 [17:39:57]MH_I2C_Read... [17:39:57]Read from MH i2c: E2 0E 00 9E 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F5 [17:39:57]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:39:57]wFMCommunicate OK [17:39:57]SAM_PROTO_GetShiftState done [17:39:57]FM_GetShiftState done [17:39:57]opened in 1724027888 [17:39:57]opened+sec_in_day 1724114288 [17:39:57]quantity*price = 900068 [17:39:57]sum+1 = 900070 [17:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 263 19.08.2024 17:39 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Дисконтная программа ДТ номер 136 сэкономлено 119.69 сом ФМ: 0000000000871776 ФД: 139428 ФПД: 69476042992787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173959&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139428&fm=69476042992787&tin=02508201610067®Number=0000000000092569&sum=900000 [17:39:58]StoreToDocumentArchive [17:39:58]shift 452 fd 139428 [17:39:58]save to /storage/0452/doc_00139428 [17:39:58]save last doc name /storage/0452/doc_00139428 to /storage/kkm_last_doc_name [17:39:58]save OK [17:39:58]Clear old archive folders... [17:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:39:58]tlvbuf is B6EA0670 [17:39:58]SAM_PROTO_ClearQueue [17:39:58]wFMCommunicate request_size=4 [17:39:58]MH_SAM_APDU [17:39:58]CAPDU: 80 09 00 00 [17:39:58]Write to MH i2c: E2 08 00 AB 23 80 09 00 00 00 00 00 00 40 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:58]Read from MH i2c: E2 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 03 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 03 00 AB 23 00 90 00 42 [17:39:58]RAPDU: 90 00 [17:39:58]wFMCommunicate OK [17:39:58]SAM_PROTO_ClearQueue done [17:39:58]KKMCreateOFDPacket [17:39:58]OFDProtocolAddRootSTLVToBuf [17:39:58]FM_MakeSignedData [17:39:58]FM_MakeSignedData [17:39:58]SAM_PROTO_SignData [17:39:58]wFMCommunicate request_size=4 [17:39:58]MH_SAM_APDU [17:39:58]CAPDU: 80 0D 01 02 [17:39:58]Write to MH i2c: E2 08 00 AC 23 80 0D 01 02 00 00 00 00 48 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:58]Read from MH i2c: E2 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 03 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: E2 03 00 AC 23 00 90 00 43 [17:39:58]RAPDU: 90 00 [17:39:58]wFMCommunicate OK [17:39:58]wFMCommunicate request_size=255 [17:39:58]MH_SAM_APDU [17:39:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 6F 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 20 02 00 35 04 06 00 [17:39:58]Write to MH i2c: E2 02 01 AD 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 6F 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 20 02 00 35 04 06 00 00 00 AD [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 AD 23 00 90 00 44 [17:39:59]RAPDU: 90 00 [17:39:59]wFMCommunicate OK [17:39:59]wFMCommunicate request_size=11 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 0D 02 02 06 3F 30 26 DC EC 93 [17:39:59]Write to MH i2c: E2 0E 00 AE 23 80 0D 02 02 06 00 3F 30 26 DC EC 93 00 00 47 [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 03 00 AE 23 00 90 00 45 [17:39:59]RAPDU: 90 00 [17:39:59]wFMCommunicate OK [17:39:59]wFMCommunicate request_size=4 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 0D 03 02 [17:39:59]Write to MH i2c: E2 08 00 AF 23 80 0D 03 02 00 00 00 00 4D [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 0B 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 0B 00 AF 23 00 2F DB A2 1E 1F 5F 01 F5 90 00 8C [17:39:59]RAPDU: 2F DB A2 1E 1F 5F 01 F5 90 00 [17:39:59]wFMCommunicate OK [17:39:59]SAM_PROTO_SignData done [17:39:59]FM_MakeSignedData done [17:39:59]CreateOFDProtocolMessage [17:39:59]wFMCommunicate request_size=4 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 11 00 00 [17:39:59]Write to MH i2c: E2 08 00 B0 23 80 11 00 00 00 00 00 00 4D [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 17 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 17 00 B0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A4 [17:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:39:59]wFMCommunicate OK [17:39:59]CreateOFDProtocolMessage done [17:39:59]OFDSenderStorePacket 139428 [17:39:59]StoreOFDPacket docnum=139428 [17:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 AD 10 08 01 C6 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 6F 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 20 02 00 35 04 06 00 3F 30 26 DC EC 93 2F DB A2 1E 1F 5F 01 F5 [17:39:59]CheckFolder [17:39:59]dirname=/storage/ofd_packets [17:39:59]CheckFolder done [17:39:59]ProducePacketName [17:39:59]name=ofd_packets/00139428 [17:39:59]NVStorageSaveData ofd_packets/00139428 [17:39:59]File name is /storage/ofd_packets/00139428 [17:39:59]Write 302 bytes [17:39:59]NVStorageSaveData done [17:39:59]OFDSenderStorePacket done [17:39:59]KKMCreateOFDPacket done [17:39:59]NVStorageSaveData kkm_last_timestamp [17:39:59]File name is /storage/kkm_last_timestamp [17:39:59]Write 4 bytes [17:39:59]NVStorageSaveData done [17:39:59]ExternCall_PrintAddStr [17:39:59]wPrintStart [17:39:59]Write to MH i2c: 01 00 00 B1 23 D4 [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: 01 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: 01 07 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: 01 07 00 B1 23 00 00 00 00 00 FF 0F E9 [17:39:59]RasterBufferAndPrint [17:39:59]line Счет N : (1)593270 [17:39:59]line ИНН: 02508201610067 [17:39:59]line Контрольно-Кассовый Чек [17:39:59]line ПРОДАЖА [17:39:59]line ТРК (МРК, ГНК) : 34 [17:39:59]line Товар: 2710194210 [17:39:59]line ДТ(л)-К-5 [17:39:59]line 119.690 * 75.20 [17:39:59]line = 9000.69 [17:39:59]line НДС 12% НСП 1% [17:39:59]line > о реализуемом товаре [17:39:59]line ОКРУГЛЕНИЕ: -0.69 [17:39:59]line ИТОГО: 9000.00 [17:39:59]line Внесено: 9000.00 [17:39:59]line СДАЧА: 0.00 [17:39:59]line НСП 1% : 79.65 [17:39:59]line НДС 12% : 955.82 [17:39:59]line Наличными: 9000.00 [17:39:59]line Безнал.: 0.00 [17:39:59]line Место: АЗС № 136 "Партнер Нефть" [17:39:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:39:59]line СНО: Общий режим [17:39:59]line Чек 263 19.08.2024 17:39 [17:39:59]line Смена: 452 ФФД: 1.0 [17:39:59]line ЗНМ: 0300000067 [17:39:59]line РНМ: 0000000000092569 [17:39:59]line Версия ККМ: 001 [17:39:59]line [17:39:59]line Дисконтная программа [17:39:59]line ДТ [17:39:59]line номер 136 [17:39:59]line сэкономлено 119.69 сом [17:39:59]line ФМ: 0000000000871776 [17:39:59]line ФД: 139428 [17:39:59]line ФПД: 69476042992787 [17:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173959&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139428&fm=69476042992787&tin=02508201610067®Number=0000000000092569&sum=900000 [17:39:59]OFD Sender: Processing packet 139428 [packets to send 137, broken 136] [17:39:59]ProducePacketName [17:39:59]name=ofd_packets/00139428 [17:39:59]OFD Sender: To server: pG, [17:39:59]CommunicateWithHost lk.salyk.kg:30040 [17:39:59]ConnectInit lk.salyk.kg [17:39:59]written 0, free lines is 4095 [17:39:59]Connected sock=11 [17:39: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 37 36 10 01 00 00 AD 10 08 01 C6 6B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 6F 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 20 02 00 35 04 06 00 3F 30 26 DC EC 93 2F DB A2 1E 1F 5F 01 F5 [17:39: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 37 36 4F 00 00 00 BB C4 47 00 B5 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 37 36 10 04 04 00 A4 20 02 00 F4 03 04 00 04 2A C3 66 B6 04 01 00 00 E2 21 BB 91 51 88 CF 9F [17:39:59]CommunicateWithHost err = 0 [17:39:59]CheckOFDResponse [17:39:59]1017 (14) - 77093643461234 [17:39:59]1041 (16) - 0000000000871776 [17:39:59]1040 (4) - 139428 [17:39:59]1012 (4) - 19.08.2024 11:18 [17:39:59]1206 (1) - 0 [17:39:59]OFD Sender: Remove packet 139428 [17:39:59]ProducePacketName [17:39:59]name=ofd_packets/00139428 [17:39:59]NVStorageDeleteData [17:40:00]Write to MH i2c: 01 00 00 E1 23 04 [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: 01 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: 01 07 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: 01 07 00 E1 23 00 00 00 00 00 93 0C AA [17:40:00]RasterBufferAndPrint [17:40:00]line [17:40:00]line [17:40:00]line [17:40:00]line [17:40:00]line [17:40:00]written 0, free lines is 3225 [17:40:00]MH_Cut [17:40:00]Write to MH i2c: D1 01 00 E8 23 01 DD [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: D1 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: D1 01 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: D1 01 00 E8 23 00 DC [17:40:00]Write to MH i2c: 01 00 00 E9 23 0C [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]OFD Sender: No OFD packet to send [17:40:00]*** Cut start [17:40:00]*** Partial cut [17:40:00]*** CUTSNS_PIN = 1 [17:40:00]*** CUTSNS_PIN = 0 [17:40:01]*** Brake cut motor [17:40:01]Read from MH i2c: 01 [17:40:01]MH_I2C_Read... [17:40:01]*** Stop cut motor [17:40:01]*** Cut end [17:40:01]Read from MH i2c: 01 07 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: 01 07 00 E9 23 00 00 00 00 00 FF 0F 21 [17:40:01]process_action close_receipt done [17:40:01]requested_data is exist [17:40:01]produce_requested_data [17:40:01]requested_item fm.sn is exist - process it [17:40:01]wFMCommunicate request_size=4 [17:40:01]MH_SAM_APDU [17:40:01]CAPDU: 80 11 00 00 [17:40:01]Write to MH i2c: E2 08 00 EA 23 80 11 00 00 00 00 00 00 87 [17:40:01]Write i2c OK [17:40:01]MH_I2C_Read... [17:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:01]Read from MH i2c: E2 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 17 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 17 00 EA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DE [17:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:40:01]wFMCommunicate OK [17:40:01]requested_item fd.num is exist - process it [17:40:01]SAM_PROTO_GetFieldsCounters [17:40:01]wFMCommunicate request_size=4 [17:40:01]MH_SAM_APDU [17:40:01]CAPDU: 80 13 00 00 [17:40:01]Write to MH i2c: E2 08 00 EB 23 80 13 00 00 00 00 00 00 8A [17:40:01]Write i2c OK [17:40:01]MH_I2C_Read... [17:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:01]Read from MH i2c: E2 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 62 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 62 00 EB 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 20 02 00 0E 04 04 00 C4 01 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 58 [17:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 20 02 00 0E 04 04 00 C4 01 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 [17:40:01]wFMCommunicate OK [17:40:01]SAM_PROTO_GetFieldsCounters done [17:40:01]requested_item shift.num is exist - process it [17:40:01]requested_item shift.opened is exist - process it [17:40:01]req_shift_opened [17:40:01]FM_GetShiftState [17:40:01]SAM_PROTO_GetShiftState [17:40:01]wFMCommunicate request_size=4 [17:40:01]MH_SAM_APDU [17:40:01]CAPDU: 80 13 01 00 [17:40:01]Write to MH i2c: E2 08 00 EC 23 80 13 01 00 00 00 00 00 8C [17:40:01]Write i2c OK [17:40:01]MH_I2C_Read... [17:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:01]Read from MH i2c: E2 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 0E 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 0E 00 EC 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 43 [17:40:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:40:01]wFMCommunicate OK [17:40:01]SAM_PROTO_GetShiftState done [17:40:01]FM_GetShiftState done [17:40:01]req_shift_opened done [17:40:01]requested_item shift.open_date is exist - process it [17:40:01]req_shift_open_date [17:40:01]req_shift_open_date done [17:40:01]produce_requested_data done [17:40:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139428,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:40:01]process_action_free close_receipt [17:40:01]json_value_free [17:40:01]json_value_free done [17:40:01]process_json_proto returns [17:40:01]Send response to host [17:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139428,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:40:01]free response buf [17:40:01]execute_script done [17:40:01]execute_script returns [17:40:01]free content buf [17:40:01]Sock 9.Close socket [17:40:01]Sock 9.Thread stoped [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:18]int [17:40:18]Write to MH i2c: 01 00 00 ED 23 10 [17:40:18]*** FLAG_PRN_KEY set [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 07 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 07 00 ED 23 00 08 00 00 00 FF 0F 2D [17:40:18]state=0 [17:40:18]Key pressed [17:40:18]Feed [17:40:18]Write to MH i2c: D8 00 00 EE 23 E8 [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: D8 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: D8 01 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: D8 01 00 EE 23 00 E9 [17:40:18]int [17:40:18]Write to MH i2c: 01 00 00 EF 23 12 [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:19]Read from MH i2c: 01 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: 01 07 00 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: 01 07 00 EF 23 00 48 00 00 00 3C 00 9D [17:40:19]state=2 [17:40:19]Key pressed [17:40:19]int [17:40:19]Write to MH i2c: 01 00 00 F0 23 13 [17:40:19]*** FLAG_PRN_KEY reset [17:40:19]Write i2c OK [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: 01 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: 01 07 00 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: 01 07 00 F0 23 00 00 00 00 00 F6 0F 1F [17:40:19]state=2 [17:40:19]Stop feed [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:08]accept exits with 8 [17:41:08]New connection [17:41:08]New thread 3066817892 created [17:41:08]Thread 3066674532 joined [17:41:08]Waiting for new connection... [17:41:08] Sock 8.Parse request [17:41:08]Sock 8.Check first char [17:41:08]Sock 8.First char is OK [17:41:08]request: POST /json_proto HTTP/1.0 [17:41:08]Method: POST [17:41:08]URL: /json_proto [17:41:08]Method is POST - this is cgi request [17:41:08]url: /json_proto [17:41:08]query_string will be loaded in cgi processing [17:41:08]execute_cgi json_proto POST (null) [17:41:08]execute_cgi path=json_proto method=POST [17:41:08]POST find Content-Length [17:41:08]Host: 172.17.45.67:8080 [17:41:08]Content-Length: 677 [17:41:08]Content-Type: application/json [17:41:08] [17:41:08]POST finish read [17:41:08]Found Content-Length = 677 [17:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:41:08]execute_script... [17:41: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)593271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:41:08]POST & json_proto [17:41:08]process_json_proto [17:41:08]json parsed OK: [17:41:08]protocol is kg_v1.0 [17:41:08]action value=close_receipt [17:41:08]process_action close_receipt [17:41:08]cmd_close_receipt [17:41:08]MH_GetDate [17:41:08]Write to MH i2c: F0 00 00 F1 23 03 [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: F0 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: F0 09 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: F0 09 00 F1 23 00 B5 83 C3 66 5F 7F 2B 66 DC [17:41:08]GetLastDocTimeStamp 1724089199 [17:41:08]current date 1724089269 [17:41:08]FM_GetShiftState [17:41:08]SAM_PROTO_GetShiftState [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 13 01 00 [17:41:08]Write to MH i2c: E2 08 00 F2 23 80 13 01 00 00 00 00 00 92 [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 0E 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 0E 00 F2 23 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 49 [17:41:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:41:08]wFMCommunicate OK [17:41:08]SAM_PROTO_GetShiftState done [17:41:08]FM_GetShiftState done [17:41:08]opened in 1724027888 [17:41:08]opened+sec_in_day 1724114288 [17:41:08]quantity*price = 50036 [17:41:08]sum+1 = 50037 [17:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 264 19.08.2024 17:41 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139429 ФПД: 217239190176646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174109&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139429&fm=217239190176646&tin=02508201610067®Number=0000000000092569&sum=50000 [17:41:09]StoreToDocumentArchive [17:41:09]shift 452 fd 139429 [17:41:09]save to /storage/0452/doc_00139429 [17:41:09]save last doc name /storage/0452/doc_00139429 to /storage/kkm_last_doc_name [17:41:09]save OK [17:41:09]Clear old archive folders... [17:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:09]tlvbuf is 011F58A0 [17:41:09]SAM_PROTO_ClearQueue [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 09 00 00 [17:41:09]Write to MH i2c: E2 08 00 FF 23 80 09 00 00 00 00 00 00 94 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 FF 23 00 90 00 96 [17:41:09]RAPDU: 90 00 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_ClearQueue done [17:41:09]KKMCreateOFDPacket [17:41:09]OFDProtocolAddRootSTLVToBuf [17:41:09]FM_MakeSignedData [17:41:09]FM_MakeSignedData [17:41:09]SAM_PROTO_SignData [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 0D 01 02 [17:41:09]Write to MH i2c: E2 08 00 00 24 80 0D 01 02 00 00 00 00 9D [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 00 24 00 90 00 98 [17:41:09]RAPDU: 90 00 [17:41:09]wFMCommunicate OK [17:41:09]wFMCommunicate request_size=255 [17:41:09]MH_SAM_APDU [17:41: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 08 01 00 00 F4 03 04 00 B5 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 20 02 00 35 04 06 00 C5 [17:41:09]Write to MH i2c: E2 02 01 01 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 08 01 00 00 F4 03 04 00 B5 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 20 02 00 35 04 06 00 C5 00 00 E1 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 01 24 00 90 00 99 [17:41:09]RAPDU: 90 00 [17:41:09]wFMCommunicate OK [17:41:09]wFMCommunicate request_size=10 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 0D 02 02 05 93 F0 C3 03 86 [17:41:09]Write to MH i2c: E2 0D 00 02 24 80 0D 02 02 05 00 93 F0 C3 03 86 00 00 79 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 02 24 00 90 00 9A [17:41:09]RAPDU: 90 00 [17:41:09]wFMCommunicate OK [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 0D 03 02 [17:41:09]Write to MH i2c: E2 08 00 03 24 80 0D 03 02 00 00 00 00 A2 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0B 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0B 00 03 24 00 B4 AB 4D A2 5B 31 96 A5 90 00 B8 [17:41:09]RAPDU: B4 AB 4D A2 5B 31 96 A5 90 00 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_SignData done [17:41:09]FM_MakeSignedData done [17:41:09]CreateOFDProtocolMessage [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 11 00 00 [17:41:09]Write to MH i2c: E2 08 00 04 24 80 11 00 00 00 00 00 00 A2 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 04 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [17:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:41:09]wFMCommunicate OK [17:41:09]CreateOFDProtocolMessage done [17:41:09]OFDSenderStorePacket 139429 [17:41:09]StoreOFDPacket docnum=139429 [17:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DD FB 07 01 3C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 08 01 00 00 F4 03 04 00 B5 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 20 02 00 35 04 06 00 C5 93 F0 C3 03 86 B4 AB 4D A2 5B 31 96 A5 [17:41:09]CheckFolder [17:41:09]dirname=/storage/ofd_packets [17:41:09]CheckFolder done [17:41:09]ProducePacketName [17:41:09]name=ofd_packets/00139429 [17:41:09]NVStorageSaveData ofd_packets/00139429 [17:41:09]File name is /storage/ofd_packets/00139429 [17:41:09]Write 301 bytes [17:41:09]NVStorageSaveData done [17:41:09]OFDSenderStorePacket done [17:41:09]KKMCreateOFDPacket done [17:41:09]NVStorageSaveData kkm_last_timestamp [17:41:09]File name is /storage/kkm_last_timestamp [17:41:09]Write 4 bytes [17:41:09]NVStorageSaveData done [17:41:09]ExternCall_PrintAddStr [17:41:09]wPrintStart [17:41:09]Write to MH i2c: 01 00 00 05 24 29 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 07 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 07 00 05 24 00 00 00 00 00 FF 0F 3E [17:41:09]RasterBufferAndPrint [17:41:09]line Счет N : (1)593271 [17:41:09]line ИНН: 02508201610067 [17:41:09]line Контрольно-Кассовый Чек [17:41:09]line ПРОДАЖА [17:41:09]line ТРК (МРК, ГНК) : 52 [17:41:09]line Товар: 2710124130 [17:41:09]line Аи-92-К-5 [17:41:09]line 7.380 * 67.80 [17:41:09]line = 500.36 [17:41:09]line НДС 12% НСП 1% [17:41:09]line > о реализуемом товаре [17:41:09]line ОКРУГЛЕНИЕ: -0.36 [17:41:09]line ИТОГО: 500.00 [17:41:09]line Внесено: 500.00 [17:41:09]line СДАЧА: 0.00 [17:41:09]line НСП 1% : 4.43 [17:41:09]line НДС 12% : 53.14 [17:41:09]line Наличными: 500.00 [17:41:09]line Безнал.: 0.00 [17:41:09]line Место: АЗС № 136 "Партнер Нефть" [17:41:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:41:09]line СНО: Общий режим [17:41:09]line Чек 264 19.08.2024 17:41 [17:41:09]line Смена: 452 ФФД: 1.0 [17:41:09]line ЗНМ: 0300000067 [17:41:09]line РНМ: 0000000000092569 [17:41:09]line Версия ККМ: 001 [17:41:09]line ФМ: 0000000000871776 [17:41:09]line ФД: 139429 [17:41:09]line ФПД: 217239190176646 [17:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174109&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139429&fm=217239190176646&tin=02508201610067®Number=0000000000092569&sum=50000 [17:41:10]OFD Sender: Processing packet 139429 [packets to send 137, broken 136] [17:41:10]ProducePacketName [17:41:10]name=ofd_packets/00139429 [17:41:10]OFD Sender: To server: pG, [17:41:10]CommunicateWithHost lk.salyk.kg:30040 [17:41:10]ConnectInit lk.salyk.kg [17:41:10]written 0, free lines is 4095 [17:41:10]Connected sock=10 [17:41: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 37 36 0F 01 00 00 DD FB 07 01 3C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 08 01 00 00 F4 03 04 00 B5 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 20 02 00 35 04 06 00 C5 93 F0 C3 03 86 B4 AB 4D A2 5B 31 96 A5 [17:41: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 37 36 4F 00 00 00 6F B5 47 00 5F 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 37 36 10 04 04 00 A5 20 02 00 F4 03 04 00 4B 2A C3 66 B6 04 01 00 00 8D 2F 4B 3D 4E 90 4D 8A [17:41:10]CommunicateWithHost err = 0 [17:41:10]CheckOFDResponse [17:41:10]1017 (14) - 77093643461234 [17:41:10]1041 (16) - 0000000000871776 [17:41:10]1040 (4) - 139429 [17:41:10]1012 (4) - 19.08.2024 11:19 [17:41:10]1206 (1) - 0 [17:41:10]OFD Sender: Remove packet 139429 [17:41:10]ProducePacketName [17:41:10]name=ofd_packets/00139429 [17:41:10]NVStorageDeleteData [17:41:10]Write to MH i2c: 01 00 00 30 24 54 [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: 01 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: 01 07 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: 01 07 00 30 24 00 00 00 00 00 E6 0C 4D [17:41:10]RasterBufferAndPrint [17:41:10]line [17:41:10]line [17:41:10]line [17:41:10]line [17:41:10]line [17:41:10]written 0, free lines is 3308 [17:41:10]MH_Cut [17:41:10]Write to MH i2c: D1 01 00 37 24 01 2D [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: D1 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: D1 01 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: D1 01 00 37 24 00 2C [17:41:10]Write to MH i2c: 01 00 00 38 24 5C [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]OFD Sender: No OFD packet to send [17:41:11]*** Cut start [17:41:11]*** Partial cut [17:41:11]*** CUTSNS_PIN = 1 [17:41:11]*** CUTSNS_PIN = 0 [17:41:11]*** Brake cut motor [17:41:11]Read from MH i2c: 01 [17:41:11]MH_I2C_Read... [17:41:11]*** Stop cut motor [17:41:11]*** Cut end [17:41:11]Read from MH i2c: 01 07 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: 01 07 00 38 24 00 00 00 00 00 FF 0F 71 [17:41:11]process_action close_receipt done [17:41:11]requested_data is exist [17:41:11]produce_requested_data [17:41:11]requested_item fm.sn is exist - process it [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 11 00 00 [17:41:11]Write to MH i2c: E2 08 00 39 24 80 11 00 00 00 00 00 00 D7 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:11]Read from MH i2c: E2 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 17 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 17 00 39 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [17:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:41:11]wFMCommunicate OK [17:41:11]requested_item fd.num is exist - process it [17:41:11]SAM_PROTO_GetFieldsCounters [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 13 00 00 [17:41:11]Write to MH i2c: E2 08 00 3A 24 80 13 00 00 00 00 00 00 DA [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:11]Read from MH i2c: E2 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 62 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 62 00 3A 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 20 02 00 0E 04 04 00 C4 01 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 AC [17:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 20 02 00 0E 04 04 00 C4 01 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 [17:41:11]wFMCommunicate OK [17:41:11]SAM_PROTO_GetFieldsCounters done [17:41:11]requested_item shift.num is exist - process it [17:41:11]requested_item shift.opened is exist - process it [17:41:11]req_shift_opened [17:41:11]FM_GetShiftState [17:41:11]SAM_PROTO_GetShiftState [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 13 01 00 [17:41:11]Write to MH i2c: E2 08 00 3B 24 80 13 01 00 00 00 00 00 DC [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 0E 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 0E 00 3B 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 93 [17:41:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:41:12]wFMCommunicate OK [17:41:12]SAM_PROTO_GetShiftState done [17:41:12]FM_GetShiftState done [17:41:12]req_shift_opened done [17:41:12]requested_item shift.open_date is exist - process it [17:41:12]req_shift_open_date [17:41:12]req_shift_open_date done [17:41:12]produce_requested_data done [17:41:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139429,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:41:12]process_action_free close_receipt [17:41:12]json_value_free [17:41:12]json_value_free done [17:41:12]process_json_proto returns [17:41:12]Send response to host [17:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139429,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:41:12]free response buf [17:41:12]execute_script done [17:41:12]execute_script returns [17:41:12]free content buf [17:41:12]Sock 8.Close socket [17:41:12]Sock 8.Thread stoped [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:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:03]accept exits with 9 [17:42:03]New connection [17:42:03]New thread 3066674532 created [17:42:03]Thread 3066817892 joined [17:42:03]Waiting for new connection... [17:42:03] Sock 9.Parse request [17:42:03]Sock 9.Check first char [17:42:03]Sock 9.First char is OK [17:42:03]request: POST /json_proto HTTP/1.0 [17:42:03]Method: POST [17:42:03]URL: /json_proto [17:42:03]Method is POST - this is cgi request [17:42:03]url: /json_proto [17:42:03]query_string will be loaded in cgi processing [17:42:03]execute_cgi json_proto POST (null) [17:42:03]execute_cgi path=json_proto method=POST [17:42:03]POST find Content-Length [17:42:03]Host: 172.17.45.67:8080 [17:42:03]Content-Length: 663 [17:42:03]Content-Type: application/json [17:42:03] [17:42:03]POST finish read [17:42:03]Found Content-Length = 663 [17:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 21.810, "sum" : 1500.53, "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:42:03]execute_script... [17:42: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)593273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 21.810, "sum" : 1500.53, "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:42:03]POST & json_proto [17:42:03]process_json_proto [17:42:03]json parsed OK: [17:42:03]protocol is kg_v1.0 [17:42:03]action value=close_receipt [17:42:03]process_action close_receipt [17:42:03]cmd_close_receipt [17:42:03]MH_GetDate [17:42:03]Write to MH i2c: F0 00 00 3C 24 4F [17:42:03]Write i2c OK [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: F0 [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: F0 09 00 [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: F0 09 00 3C 24 00 ED 83 C3 66 5F 7F 2B 66 60 [17:42:03]GetLastDocTimeStamp 1724089269 [17:42:03]current date 1724089325 [17:42:03]FM_GetShiftState [17:42:03]SAM_PROTO_GetShiftState [17:42:03]wFMCommunicate request_size=4 [17:42:03]MH_SAM_APDU [17:42:03]CAPDU: 80 13 01 00 [17:42:03]Write to MH i2c: E2 08 00 3D 24 80 13 01 00 00 00 00 00 DE [17:42:03]Write i2c OK [17:42:03]MH_I2C_Read... [17:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:03]Read from MH i2c: E2 [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: E2 0E 00 [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: E2 0E 00 3D 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 95 [17:42:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:42:03]wFMCommunicate OK [17:42:03]SAM_PROTO_GetShiftState done [17:42:03]FM_GetShiftState done [17:42:03]opened in 1724027888 [17:42:03]opened+sec_in_day 1724114288 [17:42:03]quantity*price = 150052 [17:42:03]sum+1 = 150054 [17:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 265 19.08.2024 17:42 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139430 ФПД: 79451370203748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174205&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139430&fm=79451370203748&tin=02508201610067®Number=0000000000092569&sum=150000 [17:42:05]StoreToDocumentArchive [17:42:05]shift 452 fd 139430 [17:42:05]save to /storage/0452/doc_00139430 [17:42:05]save last doc name /storage/0452/doc_00139430 to /storage/kkm_last_doc_name [17:42:05]save OK [17:42:05]Clear old archive folders... [17:42:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:42:05]tlvbuf is 0127E7F0 [17:42:05]SAM_PROTO_ClearQueue [17:42:05]wFMCommunicate request_size=4 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 09 00 00 [17:42:05]Write to MH i2c: E2 08 00 4A 24 80 09 00 00 00 00 00 00 E0 [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 03 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [17:42:05]RAPDU: 90 00 [17:42:05]wFMCommunicate OK [17:42:05]SAM_PROTO_ClearQueue done [17:42:05]KKMCreateOFDPacket [17:42:05]OFDProtocolAddRootSTLVToBuf [17:42:05]FM_MakeSignedData [17:42:05]FM_MakeSignedData [17:42:05]SAM_PROTO_SignData [17:42:05]wFMCommunicate request_size=4 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 0D 01 02 [17:42:05]Write to MH i2c: E2 08 00 4B 24 80 0D 01 02 00 00 00 00 E8 [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 03 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 03 00 4B 24 00 90 00 E3 [17:42:05]RAPDU: 90 00 [17:42:05]wFMCommunicate OK [17:42:05]wFMCommunicate request_size=253 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 25 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 09 01 00 00 F4 03 04 00 ED 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 20 02 00 35 04 06 00 48 42 B6 B2 AA 64 [17:42:05]Write to MH i2c: E2 00 01 4C 24 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 25 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 09 01 00 00 F4 03 04 00 ED 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 20 02 00 35 04 06 00 48 42 B6 B2 AA 64 00 00 F4 [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 03 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 03 00 4C 24 00 90 00 E4 [17:42:05]RAPDU: 90 00 [17:42:05]wFMCommunicate OK [17:42:05]wFMCommunicate request_size=4 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 0D 03 02 [17:42:05]Write to MH i2c: E2 08 00 4D 24 80 0D 03 02 00 00 00 00 EC [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 0B 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 0B 00 4D 24 00 89 5E 9C 8E 5C 90 C9 78 90 00 2B [17:42:05]RAPDU: 89 5E 9C 8E 5C 90 C9 78 90 00 [17:42:05]wFMCommunicate OK [17:42:05]SAM_PROTO_SignData done [17:42:05]FM_MakeSignedData done [17:42:05]CreateOFDProtocolMessage [17:42:05]wFMCommunicate request_size=4 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 11 00 00 [17:42:05]Write to MH i2c: E2 08 00 4E 24 80 11 00 00 00 00 00 00 EC [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 17 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 17 00 4E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [17:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:42:05]wFMCommunicate OK [17:42:05]CreateOFDProtocolMessage done [17:42:05]OFDSenderStorePacket 139430 [17:42:05]StoreOFDPacket docnum=139430 [17:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 C6 5F 00 01 52 70 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 25 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 09 01 00 00 F4 03 04 00 ED 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 20 02 00 35 04 06 00 48 42 B6 B2 AA 64 89 5E 9C 8E 5C 90 C9 78 [17:42:05]CheckFolder [17:42:05]dirname=/storage/ofd_packets [17:42:05]CheckFolder done [17:42:05]ProducePacketName [17:42:05]name=ofd_packets/00139430 [17:42:05]NVStorageSaveData ofd_packets/00139430 [17:42:05]File name is /storage/ofd_packets/00139430 [17:42:05]Write 294 bytes [17:42:05]NVStorageSaveData done [17:42:05]OFDSenderStorePacket done [17:42:05]KKMCreateOFDPacket done [17:42:05]NVStorageSaveData kkm_last_timestamp [17:42:05]File name is /storage/kkm_last_timestamp [17:42:05]Write 4 bytes [17:42:05]NVStorageSaveData done [17:42:05]ExternCall_PrintAddStr [17:42:05]wPrintStart [17:42:05]Write to MH i2c: 01 00 00 4F 24 73 [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: 01 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: 01 07 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: 01 07 00 4F 24 00 00 00 00 00 FF 0F 88 [17:42:05]RasterBufferAndPrint [17:42:05]line Счет N : (1)593273 [17:42:05]line ИНН: 02508201610067 [17:42:05]line Контрольно-Кассовый Чек [17:42:05]line ПРОДАЖА [17:42:05]line ТРК (МРК, ГНК) : 43 [17:42:05]line Товар: 2710124130 [17:42:05]line SU-92 [17:42:05]line 21.810 * 68.80 [17:42:05]line = 1500.53 [17:42:05]line НДС 12% НСП 1% [17:42:05]line > о реализуемом товаре [17:42:05]line ОКРУГЛЕНИЕ: -0.53 [17:42:05]line ИТОГО: 1500.00 [17:42:05]line Внесено: 1500.00 [17:42:05]line СДАЧА: 0.00 [17:42:05]line НСП 1% : 13.28 [17:42:05]line НДС 12% : 159.35 [17:42:05]line Наличными: 1500.00 [17:42:05]line Безнал.: 0.00 [17:42:05]line Место: АЗС № 136 "Партнер Нефть" [17:42:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:42:05]line СНО: Общий режим [17:42:05]line Чек 265 19.08.2024 17:42 [17:42:05]line Смена: 452 ФФД: 1.0 [17:42:05]line ЗНМ: 0300000067 [17:42:05]line РНМ: 0000000000092569 [17:42:05]line Версия ККМ: 001 [17:42:05]line ФМ: 0000000000871776 [17:42:05]line ФД: 139430 [17:42:05]line ФПД: 79451370203748 [17:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174205&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139430&fm=79451370203748&tin=02508201610067®Number=0000000000092569&sum=150000 [17:42:05]OFD Sender: Processing packet 139430 [packets to send 137, broken 136] [17:42:05]ProducePacketName [17:42:05]name=ofd_packets/00139430 [17:42:05]OFD Sender: To server: pG, [17:42:05]CommunicateWithHost lk.salyk.kg:30040 [17:42:05]ConnectInit lk.salyk.kg [17:42:05]written 0, free lines is 4095 [17:42:06]Connected sock=10 [17:42: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 37 36 08 01 00 00 C6 5F 00 01 52 70 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 25 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 09 01 00 00 F4 03 04 00 ED 83 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 20 02 00 35 04 06 00 48 42 B6 B2 AA 64 89 5E 9C 8E 5C 90 C9 78 [17:42:06]Write to MH i2c: 01 00 00 7A 24 9E [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: 01 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: 01 07 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: 01 07 00 7A 24 00 00 00 00 00 E0 0C 91 [17:42:06]RasterBufferAndPrint [17:42:06]line [17:42:06]line [17:42:06]line [17:42:06]line [17:42:06]line [17:42:06]written 0, free lines is 3302 [17:42:06]MH_Cut [17:42:06]Write to MH i2c: D1 01 00 81 24 01 77 [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: D1 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: D1 01 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: D1 01 00 81 24 00 76 [17:42:06]Write to MH i2c: 01 00 00 82 24 A6 [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42: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 37 36 4F 00 00 00 8A 93 47 00 E2 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 37 36 10 04 04 00 A6 20 02 00 F4 03 04 00 83 2A C3 66 B6 04 01 00 00 9D 79 1C 93 9D 7A 0C 31 [17:42:06]CommunicateWithHost err = 0 [17:42:06]CheckOFDResponse [17:42:06]1017 (14) - 77093643461234 [17:42:06]1041 (16) - 0000000000871776 [17:42:06]1040 (4) - 139430 [17:42:06]1012 (4) - 19.08.2024 11:20 [17:42:06]1206 (1) - 0 [17:42:06]OFD Sender: Remove packet 139430 [17:42:06]ProducePacketName [17:42:06]name=ofd_packets/00139430 [17:42:06]NVStorageDeleteData [17:42:06]OFD Sender: No OFD packet to send [17:42:07]*** Cut start [17:42:07]*** Partial cut [17:42:07]*** CUTSNS_PIN = 1 [17:42:07]*** CUTSNS_PIN = 0 [17:42:07]*** Brake cut motor [17:42:07]Read from MH i2c: 01 [17:42:07]MH_I2C_Read... [17:42:07]*** Stop cut motor [17:42:07]*** Cut end [17:42:07]Read from MH i2c: 01 07 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: 01 07 00 82 24 00 00 00 00 00 FF 0F BB [17:42:07]process_action close_receipt done [17:42:07]requested_data is exist [17:42:07]produce_requested_data [17:42:07]requested_item fm.sn is exist - process it [17:42:07]wFMCommunicate request_size=4 [17:42:07]MH_SAM_APDU [17:42:07]CAPDU: 80 11 00 00 [17:42:07]Write to MH i2c: E2 08 00 83 24 80 11 00 00 00 00 00 00 21 [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:07]Read from MH i2c: E2 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 17 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 17 00 83 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 78 [17:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:42:07]wFMCommunicate OK [17:42:07]requested_item fd.num is exist - process it [17:42:07]SAM_PROTO_GetFieldsCounters [17:42:07]wFMCommunicate request_size=4 [17:42:07]MH_SAM_APDU [17:42:07]CAPDU: 80 13 00 00 [17:42:07]Write to MH i2c: E2 08 00 84 24 80 13 00 00 00 00 00 00 24 [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:07]Read from MH i2c: E2 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 62 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 62 00 84 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 20 02 00 0E 04 04 00 C4 01 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 FA [17:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 20 02 00 0E 04 04 00 C4 01 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 [17:42:07]wFMCommunicate OK [17:42:07]SAM_PROTO_GetFieldsCounters done [17:42:07]requested_item shift.num is exist - process it [17:42:07]requested_item shift.opened is exist - process it [17:42:07]req_shift_opened [17:42:07]FM_GetShiftState [17:42:07]SAM_PROTO_GetShiftState [17:42:07]wFMCommunicate request_size=4 [17:42:07]MH_SAM_APDU [17:42:07]CAPDU: 80 13 01 00 [17:42:07]Write to MH i2c: E2 08 00 85 24 80 13 01 00 00 00 00 00 26 [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:07]Read from MH i2c: E2 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 0E 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: E2 0E 00 85 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DD [17:42:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:42:07]wFMCommunicate OK [17:42:07]SAM_PROTO_GetShiftState done [17:42:07]FM_GetShiftState done [17:42:07]req_shift_opened done [17:42:07]requested_item shift.open_date is exist - process it [17:42:07]req_shift_open_date [17:42:07]req_shift_open_date done [17:42:07]produce_requested_data done [17:42:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139430,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:42:07]process_action_free close_receipt [17:42:07]json_value_free [17:42:07]json_value_free done [17:42:07]process_json_proto returns [17:42:07]Send response to host [17:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139430,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:42:07]free response buf [17:42:07]execute_script done [17:42:07]execute_script returns [17:42:07]free content buf [17:42:07]Sock 9.Close socket [17:42:07]Sock 9.Thread stoped [17:42:08]int [17:42:08]Write to MH i2c: 01 00 00 86 24 AA [17:42:08]*** FLAG_PRN_KEY set [17:42:08]Write i2c OK [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 07 00 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 07 00 86 24 00 08 00 00 00 FF 0F C7 [17:42:08]state=0 [17:42:08]Key pressed [17:42:08]Feed [17:42:08]Write to MH i2c: D8 00 00 87 24 82 [17:42:08]Write i2c OK [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: D8 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: D8 01 00 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: D8 01 00 87 24 00 83 [17:42:08]int [17:42:08]Write to MH i2c: 01 00 00 88 24 AC [17:42:08]Write i2c OK [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 07 00 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 07 00 88 24 00 48 00 00 00 3C 00 37 [17:42:08]state=2 [17:42:08]Key pressed [17:42:08]int [17:42:08]Write to MH i2c: 01 00 00 89 24 AD [17:42:08]*** FLAG_PRN_KEY reset [17:42:08]Write i2c OK [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 07 00 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 07 00 89 24 00 00 00 00 00 F8 0F BB [17:42:08]state=2 [17:42:08]Stop feed [17:42:11]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:37]accept exits with 8 [17:43:37]New connection [17:43:37]New thread 3066817892 created [17:43:37]Thread 3066674532 joined [17:43:37]Waiting for new connection... [17:43:37] Sock 8.Parse request [17:43:37]Sock 8.Check first char [17:43:37]Sock 8.First char is OK [17:43:37]request: POST /json_proto HTTP/1.0 [17:43:37]Method: POST [17:43:37]URL: /json_proto [17:43:37]Method is POST - this is cgi request [17:43:37]url: /json_proto [17:43:37]query_string will be loaded in cgi processing [17:43:37]execute_cgi json_proto POST (null) [17:43:37]execute_cgi path=json_proto method=POST [17:43:37]POST find Content-Length [17:43:37]Host: 172.17.45.67:8080 [17:43:37]Content-Length: 988 [17:43:37]Content-Type: application/json [17:43:37] [17:43:37]POST finish read [17:43:37]Found Content-Length = 988 [17:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 119.690, "sum" : 9000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 119.69 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:37]execute_script... [17:43: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)593272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 119.690, "sum" : 9000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 119.69 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:37]POST & json_proto [17:43:37]process_json_proto [17:43:37]json parsed OK: [17:43:37]protocol is kg_v1.0 [17:43:37]action value=close_receipt [17:43:37]process_action close_receipt [17:43:37]cmd_close_receipt [17:43:37]MH_GetDate [17:43:37]Write to MH i2c: F0 00 00 8A 24 9D [17:43:37]Write i2c OK [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: F0 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: F0 09 00 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: F0 09 00 8A 24 00 4B 84 C3 66 5F 7F 2B 66 0D [17:43:37]GetLastDocTimeStamp 1724089325 [17:43:37]current date 1724089419 [17:43:37]FM_GetShiftState [17:43:37]SAM_PROTO_GetShiftState [17:43:37]wFMCommunicate request_size=4 [17:43:37]MH_SAM_APDU [17:43:37]CAPDU: 80 13 01 00 [17:43:37]Write to MH i2c: E2 08 00 8B 24 80 13 01 00 00 00 00 00 2C [17:43:37]Write i2c OK [17:43:37]MH_I2C_Read... [17:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:38]Read from MH i2c: E2 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 0E 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 0E 00 8B 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E3 [17:43:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:43:38]wFMCommunicate OK [17:43:38]SAM_PROTO_GetShiftState done [17:43:38]FM_GetShiftState done [17:43:38]opened in 1724027888 [17:43:38]opened+sec_in_day 1724114288 [17:43:38]quantity*price = 900068 [17:43:38]sum+1 = 900070 [17:43:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 266 19.08.2024 17:43 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Дисконтная программа ДТ номер 136 сэкономлено 119.69 сом ФМ: 0000000000871776 ФД: 139431 ФПД: 82017251191432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174339&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139431&fm=82017251191432&tin=02508201610067®Number=0000000000092569&sum=900000 [17:43:39]StoreToDocumentArchive [17:43:39]shift 452 fd 139431 [17:43:39]save to /storage/0452/doc_00139431 [17:43:39]save last doc name /storage/0452/doc_00139431 to /storage/kkm_last_doc_name [17:43:39]save OK [17:43:39]Clear old archive folders... [17:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:43:39]tlvbuf is 01275660 [17:43:39]SAM_PROTO_ClearQueue [17:43:39]wFMCommunicate request_size=4 [17:43:39]MH_SAM_APDU [17:43:39]CAPDU: 80 09 00 00 [17:43:39]Write to MH i2c: E2 08 00 98 24 80 09 00 00 00 00 00 00 2E [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:39]Read from MH i2c: E2 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 03 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 03 00 98 24 00 90 00 30 [17:43:39]RAPDU: 90 00 [17:43:39]wFMCommunicate OK [17:43:39]SAM_PROTO_ClearQueue done [17:43:39]KKMCreateOFDPacket [17:43:39]OFDProtocolAddRootSTLVToBuf [17:43:39]FM_MakeSignedData [17:43:39]FM_MakeSignedData [17:43:39]SAM_PROTO_SignData [17:43:39]wFMCommunicate request_size=4 [17:43:39]MH_SAM_APDU [17:43:39]CAPDU: 80 0D 01 02 [17:43:39]Write to MH i2c: E2 08 00 99 24 80 0D 01 02 00 00 00 00 36 [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:39]Read from MH i2c: E2 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 03 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 03 00 99 24 00 90 00 31 [17:43:39]RAPDU: 90 00 [17:43:39]wFMCommunicate OK [17:43:39]wFMCommunicate request_size=255 [17:43:39]MH_SAM_APDU [17:43:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 4B 84 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 20 02 00 35 04 06 00 [17:43:39]Write to MH i2c: E2 02 01 9A 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 4B 84 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 20 02 00 35 04 06 00 00 00 7E [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:39]Read from MH i2c: E2 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 03 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 03 00 9A 24 00 90 00 32 [17:43:39]RAPDU: 90 00 [17:43:39]wFMCommunicate OK [17:43:39]wFMCommunicate request_size=11 [17:43:39]MH_SAM_APDU [17:43:39]CAPDU: 80 0D 02 02 06 4A 98 21 1F 6A 88 [17:43:39]Write to MH i2c: E2 0E 00 9B 24 80 0D 02 02 06 00 4A 98 21 1F 6A 88 00 00 59 [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:39]Read from MH i2c: E2 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 03 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 03 00 9B 24 00 90 00 33 [17:43:39]RAPDU: 90 00 [17:43:39]wFMCommunicate OK [17:43:39]wFMCommunicate request_size=4 [17:43:39]MH_SAM_APDU [17:43:39]CAPDU: 80 0D 03 02 [17:43:39]Write to MH i2c: E2 08 00 9C 24 80 0D 03 02 00 00 00 00 3B [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:39]Read from MH i2c: E2 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 0B 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 0B 00 9C 24 00 1E 07 4B DC 24 B4 77 1F 90 00 F6 [17:43:39]RAPDU: 1E 07 4B DC 24 B4 77 1F 90 00 [17:43:39]wFMCommunicate OK [17:43:39]SAM_PROTO_SignData done [17:43:39]FM_MakeSignedData done [17:43:39]CreateOFDProtocolMessage [17:43:39]wFMCommunicate request_size=4 [17:43:39]MH_SAM_APDU [17:43:39]CAPDU: 80 11 00 00 [17:43:39]Write to MH i2c: E2 08 00 9D 24 80 11 00 00 00 00 00 00 3B [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:39]Read from MH i2c: E2 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 17 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: E2 17 00 9D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 92 [17:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:43:39]wFMCommunicate OK [17:43:39]CreateOFDProtocolMessage done [17:43:39]OFDSenderStorePacket 139431 [17:43:39]StoreOFDPacket docnum=139431 [17:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 5A 96 08 01 9B 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 4B 84 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 20 02 00 35 04 06 00 4A 98 21 1F 6A 88 1E 07 4B DC 24 B4 77 1F [17:43:39]CheckFolder [17:43:39]dirname=/storage/ofd_packets [17:43:39]CheckFolder done [17:43:39]ProducePacketName [17:43:39]name=ofd_packets/00139431 [17:43:39]NVStorageSaveData ofd_packets/00139431 [17:43:39]File name is /storage/ofd_packets/00139431 [17:43:39]Write 302 bytes [17:43:39]NVStorageSaveData done [17:43:39]OFDSenderStorePacket done [17:43:39]KKMCreateOFDPacket done [17:43:39]NVStorageSaveData kkm_last_timestamp [17:43:39]File name is /storage/kkm_last_timestamp [17:43:39]Write 4 bytes [17:43:39]NVStorageSaveData done [17:43:39]ExternCall_PrintAddStr [17:43:39]wPrintStart [17:43:39]Write to MH i2c: 01 00 00 9E 24 C2 [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: 01 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: 01 07 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: 01 07 00 9E 24 00 00 00 00 00 FF 0F D7 [17:43:39]RasterBufferAndPrint [17:43:39]line Счет N : (1)593272 [17:43:39]line ИНН: 02508201610067 [17:43:39]line Контрольно-Кассовый Чек [17:43:39]line ПРОДАЖА [17:43:39]line ТРК (МРК, ГНК) : 34 [17:43:39]line Товар: 2710194210 [17:43:39]line ДТ(л)-К-5 [17:43:39]line 119.690 * 75.20 [17:43:39]line = 9000.69 [17:43:39]line НДС 12% НСП 1% [17:43:39]line > о реализуемом товаре [17:43:39]line ОКРУГЛЕНИЕ: -0.69 [17:43:39]line ИТОГО: 9000.00 [17:43:39]line Внесено: 9000.00 [17:43:39]line СДАЧА: 0.00 [17:43:39]line НСП 1% : 79.65 [17:43:39]line НДС 12% : 955.82 [17:43:39]line Наличными: 9000.00 [17:43:39]line Безнал.: 0.00 [17:43:39]line Место: АЗС № 136 "Партнер Нефть" [17:43:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:43:39]line СНО: Общий режим [17:43:39]line Чек 266 19.08.2024 17:43 [17:43:39]line Смена: 452 ФФД: 1.0 [17:43:39]line ЗНМ: 0300000067 [17:43:39]line РНМ: 0000000000092569 [17:43:39]line Версия ККМ: 001 [17:43:39]line [17:43:39]line Дисконтная программа [17:43:39]line ДТ [17:43:39]line номер 136 [17:43:39]line сэкономлено 119.69 сом [17:43:39]line ФМ: 0000000000871776 [17:43:39]line ФД: 139431 [17:43:39]line ФПД: 82017251191432 [17:43:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174339&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139431&fm=82017251191432&tin=02508201610067®Number=0000000000092569&sum=900000 [17:43:40]OFD Sender: Processing packet 139431 [packets to send 137, broken 136] [17:43:40]ProducePacketName [17:43:40]name=ofd_packets/00139431 [17:43:40]OFD Sender: To server: pG, [17:43:40]CommunicateWithHost lk.salyk.kg:30040 [17:43:40]ConnectInit lk.salyk.kg [17:43:40]written 0, free lines is 4095 [17:43:40]Connected sock=10 [17:43:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 5A 96 08 01 9B 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 4B 84 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 20 02 00 35 04 06 00 4A 98 21 1F 6A 88 1E 07 4B DC 24 B4 77 1F [17:43: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 37 36 4F 00 00 00 D9 84 47 00 19 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 37 36 10 04 04 00 A7 20 02 00 F4 03 04 00 E1 2A C3 66 B6 04 01 00 00 7D E3 00 7B CC EF DF B5 [17:43:40]CommunicateWithHost err = 0 [17:43:40]CheckOFDResponse [17:43:40]1017 (14) - 77093643461234 [17:43:40]1041 (16) - 0000000000871776 [17:43:40]1040 (4) - 139431 [17:43:40]1012 (4) - 19.08.2024 11:22 [17:43:40]1206 (1) - 0 [17:43:40]OFD Sender: Remove packet 139431 [17:43:40]ProducePacketName [17:43:40]name=ofd_packets/00139431 [17:43:40]NVStorageDeleteData [17:43:40]Write to MH i2c: 01 00 00 CE 24 F2 [17:43:40]Write i2c OK [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: 01 [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: 01 07 00 [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: 01 07 00 CE 24 00 00 00 00 00 95 0C 9A [17:43:40]RasterBufferAndPrint [17:43:40]line [17:43:40]line [17:43:40]line [17:43:40]line [17:43:40]line [17:43:40]written 0, free lines is 3227 [17:43:40]MH_Cut [17:43:40]Write to MH i2c: D1 01 00 D5 24 01 CB [17:43:40]Write i2c OK [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: D1 [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: D1 01 00 [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: D1 01 00 D5 24 00 CA [17:43:40]Write to MH i2c: 01 00 00 D6 24 FA [17:43:40]Write i2c OK [17:43:40]MH_I2C_Read... [17:43:40]OFD Sender: No OFD packet to send [17:43:41]*** Cut start [17:43:41]*** Partial cut [17:43:41]*** CUTSNS_PIN = 1 [17:43:41]*** CUTSNS_PIN = 0 [17:43:41]*** Brake cut motor [17:43:41]Read from MH i2c: 01 [17:43:41]MH_I2C_Read... [17:43:41]*** Stop cut motor [17:43:41]*** Cut end [17:43:41]Read from MH i2c: 01 07 00 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: 01 07 00 D6 24 00 00 00 00 00 FF 0F 0F [17:43:41]process_action close_receipt done [17:43:41]requested_data is exist [17:43:41]produce_requested_data [17:43:41]requested_item fm.sn is exist - process it [17:43:41]wFMCommunicate request_size=4 [17:43:41]MH_SAM_APDU [17:43:41]CAPDU: 80 11 00 00 [17:43:41]Write to MH i2c: E2 08 00 D7 24 80 11 00 00 00 00 00 00 75 [17:43:41]Write i2c OK [17:43:41]MH_I2C_Read... [17:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:41]Read from MH i2c: E2 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: E2 17 00 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: E2 17 00 D7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [17:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:43:41]wFMCommunicate OK [17:43:41]requested_item fd.num is exist - process it [17:43:41]SAM_PROTO_GetFieldsCounters [17:43:41]wFMCommunicate request_size=4 [17:43:41]MH_SAM_APDU [17:43:41]CAPDU: 80 13 00 00 [17:43:41]Write to MH i2c: E2 08 00 D8 24 80 13 00 00 00 00 00 00 78 [17:43:41]Write i2c OK [17:43:41]MH_I2C_Read... [17:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:42]Read from MH i2c: E2 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 62 00 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 62 00 D8 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 20 02 00 0E 04 04 00 C4 01 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 52 [17:43:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 20 02 00 0E 04 04 00 C4 01 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 [17:43:42]wFMCommunicate OK [17:43:42]SAM_PROTO_GetFieldsCounters done [17:43:42]requested_item shift.num is exist - process it [17:43:42]requested_item shift.opened is exist - process it [17:43:42]req_shift_opened [17:43:42]FM_GetShiftState [17:43:42]SAM_PROTO_GetShiftState [17:43:42]wFMCommunicate request_size=4 [17:43:42]MH_SAM_APDU [17:43:42]CAPDU: 80 13 01 00 [17:43:42]Write to MH i2c: E2 08 00 D9 24 80 13 01 00 00 00 00 00 7A [17:43:42]Write i2c OK [17:43:42]MH_I2C_Read... [17:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:42]Read from MH i2c: E2 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 0E 00 [17:43:42]MH_I2C_Read... [17:43:42]Read from MH i2c: E2 0E 00 D9 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 31 [17:43:42]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:43:42]wFMCommunicate OK [17:43:42]SAM_PROTO_GetShiftState done [17:43:42]FM_GetShiftState done [17:43:42]req_shift_opened done [17:43:42]requested_item shift.open_date is exist - process it [17:43:42]req_shift_open_date [17:43:42]req_shift_open_date done [17:43:42]produce_requested_data done [17:43:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139431,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:43:42]process_action_free close_receipt [17:43:42]json_value_free [17:43:42]json_value_free done [17:43:42]process_json_proto returns [17:43:42]Send response to host [17:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139431,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:43:42]free response buf [17:43:42]execute_script done [17:43:42]execute_script returns [17:43:42]free content buf [17:43:42]Sock 8.Close socket [17:43:42]Sock 8.Thread stoped [17:43:46]OFD Sender: No OFD packet to send [17:43:50]int [17:43:50]Write to MH i2c: 01 00 00 DA 24 FE [17:43:50]*** FLAG_PRN_KEY set [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 DA 24 00 08 00 00 00 FF 0F 1B [17:43:50]state=0 [17:43:50]Key pressed [17:43:50]Feed [17:43:50]Write to MH i2c: D8 00 00 DB 24 D6 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: D8 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: D8 01 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: D8 01 00 DB 24 00 D7 [17:43:50]int [17:43:50]Write to MH i2c: 01 00 00 DC 24 00 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 DC 24 00 48 00 00 00 3C 00 8B [17:43:50]state=2 [17:43:50]Key pressed [17:43:50]int [17:43:50]Write to MH i2c: 01 00 00 DD 24 01 [17:43:50]*** FLAG_PRN_KEY reset [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 DD 24 00 00 00 00 00 FF 0F 16 [17:43:50]state=2 [17:43:50]Stop feed [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:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:10]accept exits with 9 [17:47:10]New connection [17:47:10]New thread 3066674532 created [17:47:10]Thread 3066817892 joined [17:47:10]Waiting for new connection... [17:47:10] Sock 9.Parse request [17:47:10]Sock 9.Check first char [17:47:10]Sock 9.First char is OK [17:47:10]request: POST /json_proto HTTP/1.0 [17:47:10]Method: POST [17:47:10]URL: /json_proto [17:47:10]Method is POST - this is cgi request [17:47:10]url: /json_proto [17:47:10]query_string will be loaded in cgi processing [17:47:10]execute_cgi json_proto POST (null) [17:47:10]execute_cgi path=json_proto method=POST [17:47:10]POST find Content-Length [17:47:10]Host: 172.17.45.67:8080 [17:47:10]Content-Length: 988 [17:47:10]Content-Type: application/json [17:47:10] [17:47:10]POST finish read [17:47:10]Found Content-Length = 988 [17:47:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 119.690, "sum" : 9000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 119.69 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:10]execute_script... [17:47: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)593274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 119.690, "sum" : 9000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 119.69 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:10]POST & json_proto [17:47:10]process_json_proto [17:47:10]json parsed OK: [17:47:10]protocol is kg_v1.0 [17:47:10]action value=close_receipt [17:47:10]process_action close_receipt [17:47:10]cmd_close_receipt [17:47:10]MH_GetDate [17:47:10]Write to MH i2c: F0 00 00 DE 24 F1 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: F0 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: F0 09 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: F0 09 00 DE 24 00 20 85 C3 66 5F 7F 2B 66 37 [17:47:10]GetLastDocTimeStamp 1724089419 [17:47:10]current date 1724089632 [17:47:10]FM_GetShiftState [17:47:10]SAM_PROTO_GetShiftState [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 13 01 00 [17:47:10]Write to MH i2c: E2 08 00 DF 24 80 13 01 00 00 00 00 00 80 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 0E 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 0E 00 DF 24 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 37 [17:47:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:47:10]wFMCommunicate OK [17:47:10]SAM_PROTO_GetShiftState done [17:47:10]FM_GetShiftState done [17:47:10]opened in 1724027888 [17:47:10]opened+sec_in_day 1724114288 [17:47:10]quantity*price = 900068 [17:47:10]sum+1 = 900070 [17:47:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 267 19.08.2024 17:47 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Дисконтная программа ДТ номер 136 сэкономлено 119.69 сом ФМ: 0000000000871776 ФД: 139432 ФПД: 8894322901068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174712&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139432&fm=8894322901068&tin=02508201610067®Number=0000000000092569&sum=900000 [17:47:12]StoreToDocumentArchive [17:47:12]shift 452 fd 139432 [17:47:12]save to /storage/0452/doc_00139432 [17:47:12]save last doc name /storage/0452/doc_00139432 to /storage/kkm_last_doc_name [17:47:12]save OK [17:47:12]Clear old archive folders... [17:47:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:47:12]tlvbuf is B6D87710 [17:47:12]SAM_PROTO_ClearQueue [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 09 00 00 [17:47:12]Write to MH i2c: E2 08 00 EC 24 80 09 00 00 00 00 00 00 82 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 EC 24 00 90 00 84 [17:47:12]RAPDU: 90 00 [17:47:12]wFMCommunicate OK [17:47:12]SAM_PROTO_ClearQueue done [17:47:12]KKMCreateOFDPacket [17:47:12]OFDProtocolAddRootSTLVToBuf [17:47:12]FM_MakeSignedData [17:47:12]FM_MakeSignedData [17:47:12]SAM_PROTO_SignData [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 0D 01 02 [17:47:12]Write to MH i2c: E2 08 00 ED 24 80 0D 01 02 00 00 00 00 8A [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 ED 24 00 90 00 85 [17:47:12]RAPDU: 90 00 [17:47:12]wFMCommunicate OK [17:47:12]wFMCommunicate request_size=255 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 20 85 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 20 02 00 35 04 06 00 [17:47:12]Write to MH i2c: E2 02 01 EE 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 20 85 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 20 02 00 35 04 06 00 00 00 AA [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 EE 24 00 90 00 86 [17:47:12]RAPDU: 90 00 [17:47:12]wFMCommunicate OK [17:47:12]wFMCommunicate request_size=11 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 0D 02 02 06 08 16 DE F5 00 4C [17:47:12]Write to MH i2c: E2 0E 00 EF 24 80 0D 02 02 06 00 08 16 DE F5 00 4C 00 00 D6 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 EF 24 00 90 00 87 [17:47:12]RAPDU: 90 00 [17:47:12]wFMCommunicate OK [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 0D 03 02 [17:47:12]Write to MH i2c: E2 08 00 F0 24 80 0D 03 02 00 00 00 00 8F [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 0B 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 0B 00 F0 24 00 40 00 23 08 55 C6 D8 C0 90 00 AE [17:47:12]RAPDU: 40 00 23 08 55 C6 D8 C0 90 00 [17:47:12]wFMCommunicate OK [17:47:12]SAM_PROTO_SignData done [17:47:12]FM_MakeSignedData done [17:47:12]CreateOFDProtocolMessage [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 11 00 00 [17:47:12]Write to MH i2c: E2 08 00 F1 24 80 11 00 00 00 00 00 00 8F [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 17 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 17 00 F1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E6 [17:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:47:12]wFMCommunicate OK [17:47:12]CreateOFDProtocolMessage done [17:47:12]OFDSenderStorePacket 139432 [17:47:12]StoreOFDPacket docnum=139432 [17:47:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 68 52 08 01 73 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 20 85 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 20 02 00 35 04 06 00 08 16 DE F5 00 4C 40 00 23 08 55 C6 D8 C0 [17:47:12]CheckFolder [17:47:12]dirname=/storage/ofd_packets [17:47:12]CheckFolder done [17:47:12]ProducePacketName [17:47:12]name=ofd_packets/00139432 [17:47:12]NVStorageSaveData ofd_packets/00139432 [17:47:12]File name is /storage/ofd_packets/00139432 [17:47:12]Write 302 bytes [17:47:12]NVStorageSaveData done [17:47:12]OFDSenderStorePacket done [17:47:12]KKMCreateOFDPacket done [17:47:12]NVStorageSaveData kkm_last_timestamp [17:47:12]File name is /storage/kkm_last_timestamp [17:47:12]Write 4 bytes [17:47:12]NVStorageSaveData done [17:47:12]ExternCall_PrintAddStr [17:47:12]wPrintStart [17:47:12]Write to MH i2c: 01 00 00 F2 24 16 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 07 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: 01 07 00 F2 24 00 00 00 00 00 FF 0F 2B [17:47:12]RasterBufferAndPrint [17:47:12]line Счет N : (1)593274 [17:47:12]line ИНН: 02508201610067 [17:47:12]line Контрольно-Кассовый Чек [17:47:12]line ПРОДАЖА [17:47:12]line ТРК (МРК, ГНК) : 34 [17:47:12]line Товар: 2710194210 [17:47:12]line ДТ(л)-К-5 [17:47:12]line 119.690 * 75.20 [17:47:12]line = 9000.69 [17:47:12]line НДС 12% НСП 1% [17:47:12]line > о реализуемом товаре [17:47:12]line ОКРУГЛЕНИЕ: -0.69 [17:47:12]line ИТОГО: 9000.00 [17:47:12]line Внесено: 9000.00 [17:47:12]line СДАЧА: 0.00 [17:47:12]line НСП 1% : 79.65 [17:47:12]line НДС 12% : 955.82 [17:47:12]line Наличными: 9000.00 [17:47:12]line Безнал.: 0.00 [17:47:12]line Место: АЗС № 136 "Партнер Нефть" [17:47:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:47:12]line СНО: Общий режим [17:47:12]line Чек 267 19.08.2024 17:47 [17:47:12]line Смена: 452 ФФД: 1.0 [17:47:12]line ЗНМ: 0300000067 [17:47:12]line РНМ: 0000000000092569 [17:47:12]line Версия ККМ: 001 [17:47:12]line [17:47:12]line Дисконтная программа [17:47:12]line ДТ [17:47:12]line номер 136 [17:47:12]line сэкономлено 119.69 сом [17:47:12]line ФМ: 0000000000871776 [17:47:12]line ФД: 139432 [17:47:12]line ФПД: 8894322901068 [17:47:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174712&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139432&fm=8894322901068&tin=02508201610067®Number=0000000000092569&sum=900000 [17:47:12]OFD Sender: Processing packet 139432 [packets to send 137, broken 136] [17:47:12]ProducePacketName [17:47:12]name=ofd_packets/00139432 [17:47:12]OFD Sender: To server: pG, [17:47:12]CommunicateWithHost lk.salyk.kg:30040 [17:47:12]ConnectInit lk.salyk.kg [17:47:12]written 0, free lines is 4095 [17:47:13]Connected sock=10 [17:47:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 68 52 08 01 73 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A D3 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 E5 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 20 85 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 20 02 00 35 04 06 00 08 16 DE F5 00 4C 40 00 23 08 55 C6 D8 C0 [17:47:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 83 C3 47 00 4E 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 37 36 10 04 04 00 A8 20 02 00 F4 03 04 00 B6 2B C3 66 B6 04 01 00 00 A4 39 71 6C 11 66 07 34 [17:47:13]CommunicateWithHost err = 0 [17:47:13]CheckOFDResponse [17:47:13]1017 (14) - 77093643461234 [17:47:13]1041 (16) - 0000000000871776 [17:47:13]1040 (4) - 139432 [17:47:13]1012 (4) - 19.08.2024 11:25 [17:47:13]1206 (1) - 0 [17:47:13]OFD Sender: Remove packet 139432 [17:47:13]ProducePacketName [17:47:13]name=ofd_packets/00139432 [17:47:13]NVStorageDeleteData [17:47:13]Write to MH i2c: 01 00 00 22 25 47 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 07 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 07 00 22 25 00 00 00 00 00 A1 0C FB [17:47:13]RasterBufferAndPrint [17:47:13]line [17:47:13]line [17:47:13]line [17:47:13]line [17:47:13]line [17:47:13]written 0, free lines is 3239 [17:47:13]MH_Cut [17:47:13]Write to MH i2c: D1 01 00 29 25 01 20 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: D1 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: D1 01 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: D1 01 00 29 25 00 1F [17:47:13]Write to MH i2c: 01 00 00 2A 25 4F [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]OFD Sender: No OFD packet to send [17:47:14]*** Cut start [17:47:14]*** Partial cut [17:47:14]*** CUTSNS_PIN = 1 [17:47:14]*** CUTSNS_PIN = 0 [17:47:14]*** Brake cut motor [17:47:14]Read from MH i2c: 01 [17:47:14]MH_I2C_Read... [17:47:14]*** Stop cut motor [17:47:14]*** Cut end [17:47:14]Read from MH i2c: 01 07 00 [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: 01 07 00 2A 25 00 00 00 00 00 FF 0F 64 [17:47:14]process_action close_receipt done [17:47:14]requested_data is exist [17:47:14]produce_requested_data [17:47:14]requested_item fm.sn is exist - process it [17:47:14]wFMCommunicate request_size=4 [17:47:14]MH_SAM_APDU [17:47:14]CAPDU: 80 11 00 00 [17:47:14]Write to MH i2c: E2 08 00 2B 25 80 11 00 00 00 00 00 00 CA [17:47:14]Write i2c OK [17:47:14]MH_I2C_Read... [17:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:14]Read from MH i2c: E2 [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: E2 17 00 [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: E2 17 00 2B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 21 [17:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:47:14]wFMCommunicate OK [17:47:14]requested_item fd.num is exist - process it [17:47:14]SAM_PROTO_GetFieldsCounters [17:47:14]wFMCommunicate request_size=4 [17:47:14]MH_SAM_APDU [17:47:14]CAPDU: 80 13 00 00 [17:47:14]Write to MH i2c: E2 08 00 2C 25 80 13 00 00 00 00 00 00 CD [17:47:14]Write i2c OK [17:47:14]MH_I2C_Read... [17:47:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:14]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 62 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 62 00 2C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 20 02 00 0E 04 04 00 C4 01 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 AB [17:47:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 20 02 00 0E 04 04 00 C4 01 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 [17:47:15]wFMCommunicate OK [17:47:15]SAM_PROTO_GetFieldsCounters done [17:47:15]requested_item shift.num is exist - process it [17:47:15]requested_item shift.opened is exist - process it [17:47:15]req_shift_opened [17:47:15]FM_GetShiftState [17:47:15]SAM_PROTO_GetShiftState [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 13 01 00 [17:47:15]Write to MH i2c: E2 08 00 2D 25 80 13 01 00 00 00 00 00 CF [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 0E 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 0E 00 2D 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 86 [17:47:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:47:15]wFMCommunicate OK [17:47:15]SAM_PROTO_GetShiftState done [17:47:15]FM_GetShiftState done [17:47:15]req_shift_opened done [17:47:15]requested_item shift.open_date is exist - process it [17:47:15]req_shift_open_date [17:47:15]req_shift_open_date done [17:47:15]produce_requested_data done [17:47:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139432,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:47:15]process_action_free close_receipt [17:47:15]json_value_free [17:47:15]json_value_free done [17:47:15]process_json_proto returns [17:47:15]Send response to host [17:47:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139432,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:47:15]free response buf [17:47:15]execute_script done [17:47:15]execute_script returns [17:47:15]free content buf [17:47:15]Sock 9.Close socket [17:47:15]Sock 9.Thread stoped [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:25]int [17:47:25]Write to MH i2c: 01 00 00 2E 25 53 [17:47:25]*** FLAG_PRN_KEY set [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 2E 25 00 08 00 00 00 FF 0F 70 [17:47:25]state=0 [17:47:25]Key pressed [17:47:25]Feed [17:47:25]Write to MH i2c: D8 00 00 2F 25 2B [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: D8 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: D8 01 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: D8 01 00 2F 25 00 2C [17:47:25]int [17:47:25]Write to MH i2c: 01 00 00 30 25 55 [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 30 25 00 48 00 00 00 3C 00 E0 [17:47:25]state=2 [17:47:25]Key pressed [17:47:25]int [17:47:25]Write to MH i2c: 01 00 00 31 25 56 [17:47:25]*** FLAG_PRN_KEY reset [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 31 25 00 00 00 00 00 FE 0F 6A [17:47:25]state=2 [17:47:25]Stop feed [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:53]accept exits with 8 [17:48:53]New connection [17:48:53]New thread 3066817892 created [17:48:53]Thread 3066674532 joined [17:48:53]Waiting for new connection... [17:48:53] Sock 8.Parse request [17:48:53]Sock 8.Check first char [17:48:53]Sock 8.First char is OK [17:48:53]request: POST /json_proto HTTP/1.0 [17:48:53]Method: POST [17:48:53]URL: /json_proto [17:48:53]Method is POST - this is cgi request [17:48:53]url: /json_proto [17:48:53]query_string will be loaded in cgi processing [17:48:53]execute_cgi json_proto POST (null) [17:48:53]execute_cgi path=json_proto method=POST [17:48:53]POST find Content-Length [17:48:53]Host: 172.17.45.67:8080 [17:48:53]Content-Length: 986 [17:48:53]Content-Type: application/json [17:48:53] [17:48:53]POST finish read [17:48:53]Found Content-Length = 986 [17:48:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 45.220, "sum" : 3400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 45.22 \u0441\u043E\u043C", "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:53]execute_script... [17:48: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)593275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 45.220, "sum" : 3400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 45.22 \u0441\u043E\u043C", "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:53]POST & json_proto [17:48:53]process_json_proto [17:48:53]json parsed OK: [17:48:53]protocol is kg_v1.0 [17:48:53]action value=close_receipt [17:48:53]process_action close_receipt [17:48:53]cmd_close_receipt [17:48:53]MH_GetDate [17:48:53]Write to MH i2c: F0 00 00 32 25 46 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: F0 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: F0 09 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: F0 09 00 32 25 00 86 85 C3 66 5F 7F 2B 66 F2 [17:48:53]GetLastDocTimeStamp 1724089632 [17:48:53]current date 1724089734 [17:48:53]FM_GetShiftState [17:48:53]SAM_PROTO_GetShiftState [17:48:53]wFMCommunicate request_size=4 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 13 01 00 [17:48:53]Write to MH i2c: E2 08 00 33 25 80 13 01 00 00 00 00 00 D5 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 0E 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 0E 00 33 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8C [17:48:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:48:53]wFMCommunicate OK [17:48:53]SAM_PROTO_GetShiftState done [17:48:53]FM_GetShiftState done [17:48:53]opened in 1724027888 [17:48:53]opened+sec_in_day 1724114288 [17:48:53]quantity*price = 340054 [17:48:53]sum+1 = 340055 [17:48:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 3400.00 Внесено: 3400.00 СДАЧА: 0.00 НСП 1% : 30.09 НДС 12% : 361.12 Наличными: 3400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 268 19.08.2024 17:48 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Дисконтная программа ДТ номер 136 сэкономлено 45.22 сом ФМ: 0000000000871776 ФД: 139433 ФПД: 271661277366375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174854&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139433&fm=271661277366375&tin=02508201610067®Number=0000000000092569&sum=340000 [17:48:54]StoreToDocumentArchive [17:48:54]shift 452 fd 139433 [17:48:54]save to /storage/0452/doc_00139433 [17:48:54]save last doc name /storage/0452/doc_00139433 to /storage/kkm_last_doc_name [17:48:54]save OK [17:48:54]Clear old archive folders... [17:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:48:54]tlvbuf is B6EA0EF0 [17:48:54]SAM_PROTO_ClearQueue [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 09 00 00 [17:48:54]Write to MH i2c: E2 08 00 40 25 80 09 00 00 00 00 00 00 D7 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 40 25 00 90 00 D9 [17:48:54]RAPDU: 90 00 [17:48:54]wFMCommunicate OK [17:48:54]SAM_PROTO_ClearQueue done [17:48:54]KKMCreateOFDPacket [17:48:54]OFDProtocolAddRootSTLVToBuf [17:48:54]FM_MakeSignedData [17:48:54]FM_MakeSignedData [17:48:54]SAM_PROTO_SignData [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 0D 01 02 [17:48:54]Write to MH i2c: E2 08 00 41 25 80 0D 01 02 00 00 00 00 DF [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 41 25 00 90 00 DA [17:48:54]RAPDU: 90 00 [17:48:54]wFMCommunicate OK [17:48:54]wFMCommunicate request_size=255 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 B0 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 56 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 8D 00 00 00 00 07 04 06 00 20 30 05 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 86 85 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 20 02 00 35 04 06 00 [17:48:54]Write to MH i2c: E2 02 01 42 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 B0 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 56 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 8D 00 00 00 00 07 04 06 00 20 30 05 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 86 85 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 20 02 00 35 04 06 00 00 00 6E [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 42 25 00 90 00 DB [17:48:54]RAPDU: 90 00 [17:48:54]wFMCommunicate OK [17:48:54]wFMCommunicate request_size=11 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 0D 02 02 06 F7 13 11 EF C8 67 [17:48:54]Write to MH i2c: E2 0E 00 43 25 80 0D 02 02 06 00 F7 13 11 EF C8 67 00 00 27 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 43 25 00 90 00 DC [17:48:54]RAPDU: 90 00 [17:48:54]wFMCommunicate OK [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 0D 03 02 [17:48:54]Write to MH i2c: E2 08 00 44 25 80 0D 03 02 00 00 00 00 E4 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 0B 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 0B 00 44 25 00 21 60 18 6C 40 D0 E1 FA 90 00 D5 [17:48:54]RAPDU: 21 60 18 6C 40 D0 E1 FA 90 00 [17:48:54]wFMCommunicate OK [17:48:54]SAM_PROTO_SignData done [17:48:54]FM_MakeSignedData done [17:48:54]CreateOFDProtocolMessage [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 11 00 00 [17:48:54]Write to MH i2c: E2 08 00 45 25 80 11 00 00 00 00 00 00 E4 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 17 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 17 00 45 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [17:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:48:54]wFMCommunicate OK [17:48:54]CreateOFDProtocolMessage done [17:48:54]OFDSenderStorePacket 139433 [17:48:54]StoreOFDPacket docnum=139433 [17:48:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 FB BC 08 01 1B CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 B0 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 56 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 8D 00 00 00 00 07 04 06 00 20 30 05 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 86 85 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 20 02 00 35 04 06 00 F7 13 11 EF C8 67 21 60 18 6C 40 D0 E1 FA [17:48:54]CheckFolder [17:48:54]dirname=/storage/ofd_packets [17:48:54]CheckFolder done [17:48:54]ProducePacketName [17:48:54]name=ofd_packets/00139433 [17:48:54]NVStorageSaveData ofd_packets/00139433 [17:48:54]File name is /storage/ofd_packets/00139433 [17:48:54]Write 302 bytes [17:48:54]NVStorageSaveData done [17:48:54]OFDSenderStorePacket done [17:48:54]KKMCreateOFDPacket done [17:48:54]NVStorageSaveData kkm_last_timestamp [17:48:54]File name is /storage/kkm_last_timestamp [17:48:54]Write 4 bytes [17:48:54]NVStorageSaveData done [17:48:54]ExternCall_PrintAddStr [17:48:54]wPrintStart [17:48:54]Write to MH i2c: 01 00 00 46 25 6B [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 07 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 07 00 46 25 00 00 00 00 00 FF 0F 80 [17:48:54]RasterBufferAndPrint [17:48:54]line Счет N : (1)593275 [17:48:54]line ИНН: 02508201610067 [17:48:54]line Контрольно-Кассовый Чек [17:48:54]line ПРОДАЖА [17:48:54]line ТРК (МРК, ГНК) : 34 [17:48:54]line Товар: 2710194210 [17:48:54]line ДТ(л)-К-5 [17:48:54]line 45.220 * 75.20 [17:48:54]line = 3400.54 [17:48:54]line НДС 12% НСП 1% [17:48:54]line > о реализуемом товаре [17:48:54]line ОКРУГЛЕНИЕ: -0.54 [17:48:54]line ИТОГО: 3400.00 [17:48:54]line Внесено: 3400.00 [17:48:54]line СДАЧА: 0.00 [17:48:54]line НСП 1% : 30.09 [17:48:54]line НДС 12% : 361.12 [17:48:54]line Наличными: 3400.00 [17:48:54]line Безнал.: 0.00 [17:48:54]line Место: АЗС № 136 "Партнер Нефть" [17:48:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:48:54]line СНО: Общий режим [17:48:54]line Чек 268 19.08.2024 17:48 [17:48:54]line Смена: 452 ФФД: 1.0 [17:48:54]line ЗНМ: 0300000067 [17:48:54]line РНМ: 0000000000092569 [17:48:54]line Версия ККМ: 001 [17:48:54]line [17:48:54]line Дисконтная программа [17:48:54]line ДТ [17:48:54]line номер 136 [17:48:54]line сэкономлено 45.22 сом [17:48:54]line ФМ: 0000000000871776 [17:48:54]line ФД: 139433 [17:48:54]line ФПД: 271661277366375 [17:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174854&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139433&fm=271661277366375&tin=02508201610067®Number=0000000000092569&sum=340000 [17:48:55]OFD Sender: Processing packet 139433 [packets to send 137, broken 136] [17:48:55]ProducePacketName [17:48:55]name=ofd_packets/00139433 [17:48:55]OFD Sender: To server: pG, [17:48:55]CommunicateWithHost lk.salyk.kg:30040 [17:48:55]ConnectInit lk.salyk.kg [17:48:55]written 0, free lines is 4095 [17:48:55]Connected sock=10 [17:48: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 37 36 10 01 00 00 FB BC 08 01 1B CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 B0 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 56 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 8D 00 00 00 00 07 04 06 00 20 30 05 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 86 85 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 20 02 00 35 04 06 00 F7 13 11 EF C8 67 21 60 18 6C 40 D0 E1 FA [17:48: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 37 36 4F 00 00 00 A4 21 47 00 B0 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 20 02 00 F4 03 04 00 1C 2C C3 66 B6 04 01 00 00 E4 7A 7A B1 A0 39 47 C2 [17:48:55]CommunicateWithHost err = 0 [17:48:55]CheckOFDResponse [17:48:55]1017 (14) - 77093643461234 [17:48:55]1041 (16) - 0000000000871776 [17:48:55]1040 (4) - 139433 [17:48:55]1012 (4) - 19.08.2024 11:27 [17:48:55]1206 (1) - 0 [17:48:55]OFD Sender: Remove packet 139433 [17:48:55]ProducePacketName [17:48:55]name=ofd_packets/00139433 [17:48:55]NVStorageDeleteData [17:48:55]Write to MH i2c: 01 00 00 76 25 9B [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 07 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 07 00 76 25 00 00 00 00 00 94 0C 42 [17:48:55]RasterBufferAndPrint [17:48:55]line [17:48:55]line [17:48:55]line [17:48:55]line [17:48:55]line [17:48:55]written 0, free lines is 3227 [17:48:55]MH_Cut [17:48:55]Write to MH i2c: D1 01 00 7D 25 01 74 [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: D1 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: D1 01 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: D1 01 00 7D 25 00 73 [17:48:55]Write to MH i2c: 01 00 00 7E 25 A3 [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:56]OFD Sender: No OFD packet to send [17:48:56]*** Cut start [17:48:56]*** Partial cut [17:48:56]*** CUTSNS_PIN = 1 [17:48:56]*** CUTSNS_PIN = 0 [17:48:56]*** Brake cut motor [17:48:57]Read from MH i2c: 01 [17:48:57]MH_I2C_Read... [17:48:57]*** Stop cut motor [17:48:57]*** Cut end [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 7E 25 00 00 00 00 00 FF 0F B8 [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 7F 25 80 11 00 00 00 00 00 00 1E [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 7F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [17:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 80 25 80 13 00 00 00 00 00 00 21 [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 80 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 20 02 00 0E 04 04 00 C4 01 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 03 [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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 20 02 00 0E 04 04 00 C4 01 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 [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 81 25 80 13 01 00 00 00 00 00 23 [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 81 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DA [17:48:57]RAPDU: 09 00 01 F0 93 C2 66 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":"0000000000871776","fd.num":139433,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [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":"0000000000871776","fd.num":139433,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [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:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:34]int [17:49:34]Write to MH i2c: 01 00 00 82 25 A7 [17:49:34]*** FLAG_PRN_KEY set [17:49:34]Write i2c OK [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: 01 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: 01 07 00 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: 01 07 00 82 25 00 08 00 00 00 FF 0F C4 [17:49:34]state=0 [17:49:34]Key pressed [17:49:34]Feed [17:49:34]Write to MH i2c: D8 00 00 83 25 7F [17:49:34]Write i2c OK [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: D8 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: D8 01 00 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: D8 01 00 83 25 00 80 [17:49:34]int [17:49:34]Write to MH i2c: 01 00 00 84 25 A9 [17:49:34]Write i2c OK [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: 01 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: 01 07 00 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: 01 07 00 84 25 00 48 00 00 00 3C 00 34 [17:49:34]state=2 [17:49:34]Key pressed [17:49:34]int [17:49:34]Write to MH i2c: 01 00 00 85 25 AA [17:49:34]*** FLAG_PRN_KEY reset [17:49:34]Write i2c OK [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: 01 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: 01 07 00 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: 01 07 00 85 25 00 00 00 00 00 FE 0F BE [17:49:34]state=2 [17:49:34]Stop feed [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]accept exits with 9 [17:51:16]New connection [17:51:16]New thread 3066674532 created [17:51:16]Thread 3066817892 joined [17:51:16]Waiting for new connection... [17:51:16] Sock 9.Parse request [17:51:16]Sock 9.Check first char [17:51:16]Sock 9.First char is OK [17:51:16]request: POST /json_proto HTTP/1.0 [17:51:16]Method: POST [17:51:16]URL: /json_proto [17:51:16]Method is POST - this is cgi request [17:51:16]url: /json_proto [17:51:16]query_string will be loaded in cgi processing [17:51:16]execute_cgi json_proto POST (null) [17:51:16]execute_cgi path=json_proto method=POST [17:51:16]POST find Content-Length [17:51:16]Host: 172.17.45.67:8080 [17:51:16]Content-Length: 677 [17:51:16]Content-Type: application/json [17:51:16] [17:51:16]POST finish read [17:51:16]Found Content-Length = 677 [17:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.720, "sum" : 350.22, "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" ] } } [17:51:16]execute_script... [17:51: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)593276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.720, "sum" : 350.22, "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" ] } } [17:51:16]POST & json_proto [17:51:16]process_json_proto [17:51:16]json parsed OK: [17:51:16]protocol is kg_v1.0 [17:51:16]action value=close_receipt [17:51:16]process_action close_receipt [17:51:16]cmd_close_receipt [17:51:16]MH_GetDate [17:51:16]Write to MH i2c: F0 00 00 86 25 9A [17:51:16]Write i2c OK [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 09 00 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 09 00 86 25 00 15 86 C3 66 5F 7F 2B 66 D6 [17:51:16]GetLastDocTimeStamp 1724089734 [17:51:16]current date 1724089877 [17:51:16]FM_GetShiftState [17:51:16]SAM_PROTO_GetShiftState [17:51:16]wFMCommunicate request_size=4 [17:51:16]MH_SAM_APDU [17:51:16]CAPDU: 80 13 01 00 [17:51:16]Write to MH i2c: E2 08 00 87 25 80 13 01 00 00 00 00 00 29 [17:51:16]Write i2c OK [17:51:16]MH_I2C_Read... [17:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:16]Read from MH i2c: E2 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: E2 0E 00 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: E2 0E 00 87 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E0 [17:51:16]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:51:16]wFMCommunicate OK [17:51:16]SAM_PROTO_GetShiftState done [17:51:16]FM_GetShiftState done [17:51:16]opened in 1724027888 [17:51:16]opened+sec_in_day 1724114288 [17:51:16]quantity*price = 35022 [17:51:16]sum+1 = 35023 [17:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 269 19.08.2024 17:51 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139434 ФПД: 275865214842906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175118&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139434&fm=275865214842906&tin=02508201610067®Number=0000000000092569&sum=35000 [17:51:17]StoreToDocumentArchive [17:51:17]shift 452 fd 139434 [17:51:17]save to /storage/0452/doc_00139434 [17:51:17]save last doc name /storage/0452/doc_00139434 to /storage/kkm_last_doc_name [17:51:17]save OK [17:51:17]Clear old archive folders... [17:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:17]tlvbuf is 012754C0 [17:51:17]SAM_PROTO_ClearQueue [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 09 00 00 [17:51:17]Write to MH i2c: E2 08 00 94 25 80 09 00 00 00 00 00 00 2B [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 94 25 00 90 00 2D [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]SAM_PROTO_ClearQueue done [17:51:17]KKMCreateOFDPacket [17:51:17]OFDProtocolAddRootSTLVToBuf [17:51:17]FM_MakeSignedData [17:51:17]FM_MakeSignedData [17:51:17]SAM_PROTO_SignData [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 0D 01 02 [17:51:17]Write to MH i2c: E2 08 00 95 25 80 0D 01 02 00 00 00 00 33 [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 95 25 00 90 00 2E [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]wFMCommunicate request_size=255 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 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 87 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 0D 01 00 00 F4 03 04 00 16 86 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 20 02 00 35 04 06 00 FA [17:51:17]Write to MH i2c: E2 02 01 96 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 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 87 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 0D 01 00 00 F4 03 04 00 16 86 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 20 02 00 35 04 06 00 FA 00 00 E5 [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 96 25 00 90 00 2F [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]wFMCommunicate request_size=10 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 0D 02 02 05 E5 E0 22 F8 1A [17:51:17]Write to MH i2c: E2 0D 00 97 25 80 0D 02 02 05 00 E5 E0 22 F8 1A 00 00 39 [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 97 25 00 90 00 30 [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 0D 03 02 [17:51:17]Write to MH i2c: E2 08 00 98 25 80 0D 03 02 00 00 00 00 38 [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 0B 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 0B 00 98 25 00 F0 93 AB A3 6C 8D BA 95 90 00 52 [17:51:17]RAPDU: F0 93 AB A3 6C 8D BA 95 90 00 [17:51:17]wFMCommunicate OK [17:51:17]SAM_PROTO_SignData done [17:51:17]FM_MakeSignedData done [17:51:17]CreateOFDProtocolMessage [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 11 00 00 [17:51:17]Write to MH i2c: E2 08 00 99 25 80 11 00 00 00 00 00 00 38 [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 17 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 17 00 99 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [17:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:51:17]wFMCommunicate OK [17:51:17]CreateOFDProtocolMessage done [17:51:17]OFDSenderStorePacket 139434 [17:51:17]StoreOFDPacket docnum=139434 [17:51:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7C 50 07 01 6F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 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 87 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 0D 01 00 00 F4 03 04 00 16 86 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 20 02 00 35 04 06 00 FA E5 E0 22 F8 1A F0 93 AB A3 6C 8D BA 95 [17:51:17]CheckFolder [17:51:17]dirname=/storage/ofd_packets [17:51:17]CheckFolder done [17:51:17]ProducePacketName [17:51:17]name=ofd_packets/00139434 [17:51:17]NVStorageSaveData ofd_packets/00139434 [17:51:17]File name is /storage/ofd_packets/00139434 [17:51:17]Write 301 bytes [17:51:17]NVStorageSaveData done [17:51:17]OFDSenderStorePacket done [17:51:17]KKMCreateOFDPacket done [17:51:17]NVStorageSaveData kkm_last_timestamp [17:51:17]File name is /storage/kkm_last_timestamp [17:51:17]Write 4 bytes [17:51:17]NVStorageSaveData done [17:51:17]ExternCall_PrintAddStr [17:51:17]wPrintStart [17:51:17]Write to MH i2c: 01 00 00 9A 25 BF [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: 01 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: 01 07 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: 01 07 00 9A 25 00 00 00 00 00 FF 0F D4 [17:51:17]RasterBufferAndPrint [17:51:17]line Счет N : (1)593276 [17:51:17]line ИНН: 02508201610067 [17:51:17]line Контрольно-Кассовый Чек [17:51:17]line ПРОДАЖА [17:51:17]line ТРК (МРК, ГНК) : 41 [17:51:17]line Товар: 2710124500 [17:51:17]line Аи-95-К-5 [17:51:17]line 4.720 * 74.20 [17:51:17]line = 350.22 [17:51:17]line НДС 12% НСП 1% [17:51:17]line > о реализуемом товаре [17:51:17]line ОКРУГЛЕНИЕ: -0.22 [17:51:17]line ИТОГО: 350.00 [17:51:17]line Внесено: 350.00 [17:51:17]line СДАЧА: 0.00 [17:51:17]line НСП 1% : 3.10 [17:51:17]line НДС 12% : 37.19 [17:51:17]line Наличными: 350.00 [17:51:17]line Безнал.: 0.00 [17:51:17]line Место: АЗС № 136 "Партнер Нефть" [17:51:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:51:17]line СНО: Общий режим [17:51:17]line Чек 269 19.08.2024 17:51 [17:51:17]line Смена: 452 ФФД: 1.0 [17:51:17]line ЗНМ: 0300000067 [17:51:17]line РНМ: 0000000000092569 [17:51:17]line Версия ККМ: 001 [17:51:17]line ФМ: 0000000000871776 [17:51:17]line ФД: 139434 [17:51:17]line ФПД: 275865214842906 [17:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175118&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139434&fm=275865214842906&tin=02508201610067®Number=0000000000092569&sum=35000 [17:51:18]OFD Sender: Processing packet 139434 [packets to send 137, broken 136] [17:51:18]ProducePacketName [17:51:18]name=ofd_packets/00139434 [17:51:18]OFD Sender: To server: pG, [17:51:18]CommunicateWithHost lk.salyk.kg:30040 [17:51:18]ConnectInit lk.salyk.kg [17:51:18]written 0, free lines is 4095 [17:51:18]Connected sock=10 [17:51: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 37 36 0F 01 00 00 7C 50 07 01 6F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 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 87 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 0D 01 00 00 F4 03 04 00 16 86 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 20 02 00 35 04 06 00 FA E5 E0 22 F8 1A F0 93 AB A3 6C 8D BA 95 [17:51:18]Write to MH i2c: 01 00 00 C5 25 EA [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 C5 25 00 00 00 00 00 E2 0C DF [17:51:18]RasterBufferAndPrint [17:51:18]line [17:51:18]line [17:51:18]line [17:51:18]line [17:51:18]line [17:51:18]written 0, free lines is 3304 [17:51:18]MH_Cut [17:51:18]Write to MH i2c: D1 01 00 CC 25 01 C3 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: D1 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: D1 01 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: D1 01 00 CC 25 00 C2 [17:51:18]Write to MH i2c: 01 00 00 CD 25 F2 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51: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 37 36 4F 00 00 00 C3 F1 47 00 F4 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 20 02 00 F4 03 04 00 AB 2C C3 66 B6 04 01 00 00 BD F9 AC 9E 41 4C BD BA [17:51:18]CommunicateWithHost err = 0 [17:51:18]CheckOFDResponse [17:51:18]1017 (14) - 77093643461234 [17:51:18]1041 (16) - 0000000000871776 [17:51:18]1040 (4) - 139434 [17:51:18]1012 (4) - 19.08.2024 11:29 [17:51:18]1206 (1) - 0 [17:51:18]OFD Sender: Remove packet 139434 [17:51:18]ProducePacketName [17:51:18]name=ofd_packets/00139434 [17:51:18]NVStorageDeleteData [17:51:19]OFD Sender: No OFD packet to send [17:51:19]*** Cut start [17:51:19]*** Partial cut [17:51:19]*** CUTSNS_PIN = 1 [17:51:19]*** CUTSNS_PIN = 0 [17:51:19]*** Brake cut motor [17:51:19]Read from MH i2c: 01 [17:51:19]MH_I2C_Read... [17:51:19]*** Stop cut motor [17:51:19]*** Cut end [17:51:19]Read from MH i2c: 01 07 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: 01 07 00 CD 25 00 00 00 00 00 FF 0F 07 [17:51:19]process_action close_receipt done [17:51:19]requested_data is exist [17:51:19]produce_requested_data [17:51:19]requested_item fm.sn is exist - process it [17:51:19]wFMCommunicate request_size=4 [17:51:19]MH_SAM_APDU [17:51:19]CAPDU: 80 11 00 00 [17:51:19]Write to MH i2c: E2 08 00 CE 25 80 11 00 00 00 00 00 00 6D [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 17 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 17 00 CE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [17:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:51:20]wFMCommunicate OK [17:51:20]requested_item fd.num is exist - process it [17:51:20]SAM_PROTO_GetFieldsCounters [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 13 00 00 [17:51:20]Write to MH i2c: E2 08 00 CF 25 80 13 00 00 00 00 00 00 70 [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 62 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 62 00 CF 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 20 02 00 0E 04 04 00 C4 01 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 56 [17:51: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 20 02 00 0E 04 04 00 C4 01 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 [17:51:20]wFMCommunicate OK [17:51:20]SAM_PROTO_GetFieldsCounters done [17:51:20]requested_item shift.num is exist - process it [17:51:20]requested_item shift.opened is exist - process it [17:51:20]req_shift_opened [17:51:20]FM_GetShiftState [17:51:20]SAM_PROTO_GetShiftState [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 13 01 00 [17:51:20]Write to MH i2c: E2 08 00 D0 25 80 13 01 00 00 00 00 00 72 [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 0E 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 0E 00 D0 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 29 [17:51:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:51:20]wFMCommunicate OK [17:51:20]SAM_PROTO_GetShiftState done [17:51:20]FM_GetShiftState done [17:51:20]req_shift_opened done [17:51:20]requested_item shift.open_date is exist - process it [17:51:20]req_shift_open_date [17:51:20]req_shift_open_date done [17:51:20]produce_requested_data done [17:51:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139434,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:51:20]process_action_free close_receipt [17:51:20]json_value_free [17:51:20]json_value_free done [17:51:20]process_json_proto returns [17:51:20]Send response to host [17:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139434,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:51:20]free response buf [17:51:20]execute_script done [17:51:20]execute_script returns [17:51:20]free content buf [17:51:20]Sock 9.Close socket [17:51:20]Sock 9.Thread stoped [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:13]accept exits with 8 [17:55:13]New connection [17:55:13]New thread 3066817892 created [17:55:13]Thread 3066674532 joined [17:55:13]Waiting for new connection... [17:55:13] Sock 8.Parse request [17:55:13]Sock 8.Check first char [17:55:13]Sock 8.First char is OK [17:55:13]request: POST /json_proto HTTP/1.0 [17:55:13]Method: POST [17:55:13]URL: /json_proto [17:55:13]Method is POST - this is cgi request [17:55:13]url: /json_proto [17:55:13]query_string will be loaded in cgi processing [17:55:13]execute_cgi json_proto POST (null) [17:55:13]execute_cgi path=json_proto method=POST [17:55:13]POST find Content-Length [17:55:13]Host: 172.17.45.67:8080 [17:55:13]Content-Length: 677 [17:55:13]Content-Type: application/json [17:55:13] [17:55:13]POST finish read [17:55:13]Found Content-Length = 677 [17:55:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:13]execute_script... [17:55: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)593277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:13]POST & json_proto [17:55:13]process_json_proto [17:55:13]json parsed OK: [17:55:13]protocol is kg_v1.0 [17:55:13]action value=close_receipt [17:55:13]process_action close_receipt [17:55:13]cmd_close_receipt [17:55:13]MH_GetDate [17:55:13]Write to MH i2c: F0 00 00 D1 25 E5 [17:55:13]Write i2c OK [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: F0 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: F0 09 00 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: F0 09 00 D1 25 00 03 87 C3 66 5F 7F 2B 66 10 [17:55:13]GetLastDocTimeStamp 1724089878 [17:55:13]current date 1724090115 [17:55:13]FM_GetShiftState [17:55:13]SAM_PROTO_GetShiftState [17:55:13]wFMCommunicate request_size=4 [17:55:13]MH_SAM_APDU [17:55:13]CAPDU: 80 13 01 00 [17:55:13]Write to MH i2c: E2 08 00 D2 25 80 13 01 00 00 00 00 00 74 [17:55:13]Write i2c OK [17:55:13]MH_I2C_Read... [17:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:13]Read from MH i2c: E2 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 0E 00 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 0E 00 D2 25 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 2B [17:55:13]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:55:13]wFMCommunicate OK [17:55:13]SAM_PROTO_GetShiftState done [17:55:13]FM_GetShiftState done [17:55:13]opened in 1724027888 [17:55:13]opened+sec_in_day 1724114288 [17:55:13]quantity*price = 30035 [17:55:13]sum+1 = 30036 [17:55:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 270 19.08.2024 17:55 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139435 ФПД: 17915525086340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175515&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139435&fm=17915525086340&tin=02508201610067®Number=0000000000092569&sum=30000 [17:55:14]StoreToDocumentArchive [17:55:14]shift 452 fd 139435 [17:55:14]save to /storage/0452/doc_00139435 [17:55:14]save last doc name /storage/0452/doc_00139435 to /storage/kkm_last_doc_name [17:55:14]save OK [17:55:14]Clear old archive folders... [17:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:14]tlvbuf is 0120F830 [17:55:14]SAM_PROTO_ClearQueue [17:55:14]wFMCommunicate request_size=4 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 09 00 00 [17:55:14]Write to MH i2c: E2 08 00 DF 25 80 09 00 00 00 00 00 00 76 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 DF 25 00 90 00 78 [17:55:14]RAPDU: 90 00 [17:55:14]wFMCommunicate OK [17:55:14]SAM_PROTO_ClearQueue done [17:55:14]KKMCreateOFDPacket [17:55:14]OFDProtocolAddRootSTLVToBuf [17:55:14]FM_MakeSignedData [17:55:14]FM_MakeSignedData [17:55:14]SAM_PROTO_SignData [17:55:14]wFMCommunicate request_size=4 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 0D 01 02 [17:55:14]Write to MH i2c: E2 08 00 E0 25 80 0D 01 02 00 00 00 00 7E [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]OFD Sender: No OFD packet to send [17:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 E0 25 00 90 00 79 [17:55:14]RAPDU: 90 00 [17:55:14]wFMCommunicate OK [17:55:14]wFMCommunicate request_size=255 [17:55:14]MH_SAM_APDU [17:55: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 03 87 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 20 02 00 35 04 06 00 10 [17:55:14]Write to MH i2c: E2 02 01 E1 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 03 87 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 20 02 00 35 04 06 00 10 00 00 8A [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 E1 25 00 90 00 7A [17:55:14]RAPDU: 90 00 [17:55:14]wFMCommunicate OK [17:55:14]wFMCommunicate request_size=10 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 0D 02 02 05 4B 48 82 3C 84 [17:55:14]Write to MH i2c: E2 0D 00 E2 25 80 0D 02 02 05 00 4B 48 82 3C 84 00 00 60 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 03 00 E2 25 00 90 00 7B [17:55:14]RAPDU: 90 00 [17:55:14]wFMCommunicate OK [17:55:14]wFMCommunicate request_size=4 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 0D 03 02 [17:55:14]Write to MH i2c: E2 08 00 E3 25 80 0D 03 02 00 00 00 00 83 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 0B 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 0B 00 E3 25 00 CB 6A 3A 1A 25 7B C1 15 90 00 83 [17:55:14]RAPDU: CB 6A 3A 1A 25 7B C1 15 90 00 [17:55:14]wFMCommunicate OK [17:55:14]SAM_PROTO_SignData done [17:55:14]FM_MakeSignedData done [17:55:14]CreateOFDProtocolMessage [17:55:14]wFMCommunicate request_size=4 [17:55:14]MH_SAM_APDU [17:55:14]CAPDU: 80 11 00 00 [17:55:14]Write to MH i2c: E2 08 00 E4 25 80 11 00 00 00 00 00 00 83 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:14]Read from MH i2c: E2 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 17 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: E2 17 00 E4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DA [17:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:55:14]wFMCommunicate OK [17:55:14]CreateOFDProtocolMessage done [17:55:14]OFDSenderStorePacket 139435 [17:55:14]StoreOFDPacket docnum=139435 [17:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CD 69 07 01 1F 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 03 87 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 20 02 00 35 04 06 00 10 4B 48 82 3C 84 CB 6A 3A 1A 25 7B C1 15 [17:55:14]CheckFolder [17:55:14]dirname=/storage/ofd_packets [17:55:14]CheckFolder done [17:55:14]ProducePacketName [17:55:14]name=ofd_packets/00139435 [17:55:14]NVStorageSaveData ofd_packets/00139435 [17:55:14]File name is /storage/ofd_packets/00139435 [17:55:14]Write 301 bytes [17:55:14]NVStorageSaveData done [17:55:14]OFDSenderStorePacket done [17:55:14]KKMCreateOFDPacket done [17:55:14]NVStorageSaveData kkm_last_timestamp [17:55:14]File name is /storage/kkm_last_timestamp [17:55:14]Write 4 bytes [17:55:14]NVStorageSaveData done [17:55:14]ExternCall_PrintAddStr [17:55:14]wPrintStart [17:55:14]Write to MH i2c: 01 00 00 E5 25 0A [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: 01 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: 01 07 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: 01 07 00 E5 25 00 00 00 00 00 FF 0F 1F [17:55:14]RasterBufferAndPrint [17:55:14]line Счет N : (1)593277 [17:55:14]line ИНН: 02508201610067 [17:55:14]line Контрольно-Кассовый Чек [17:55:14]line ПРОДАЖА [17:55:14]line ТРК (МРК, ГНК) : 32 [17:55:14]line Товар: 2710124130 [17:55:14]line Аи-92-К-5 [17:55:14]line 4.430 * 67.80 [17:55:14]line = 300.35 [17:55:14]line НДС 12% НСП 1% [17:55:14]line > о реализуемом товаре [17:55:14]line ОКРУГЛЕНИЕ: -0.35 [17:55:14]line ИТОГО: 300.00 [17:55:14]line Внесено: 300.00 [17:55:14]line СДАЧА: 0.00 [17:55:14]line НСП 1% : 2.66 [17:55:14]line НДС 12% : 31.90 [17:55:14]line Наличными: 300.00 [17:55:14]line Безнал.: 0.00 [17:55:14]line Место: АЗС № 136 "Партнер Нефть" [17:55:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:55:14]line СНО: Общий режим [17:55:14]line Чек 270 19.08.2024 17:55 [17:55:14]line Смена: 452 ФФД: 1.0 [17:55:14]line ЗНМ: 0300000067 [17:55:14]line РНМ: 0000000000092569 [17:55:14]line Версия ККМ: 001 [17:55:14]line ФМ: 0000000000871776 [17:55:14]line ФД: 139435 [17:55:14]line ФПД: 17915525086340 [17:55:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175515&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139435&fm=17915525086340&tin=02508201610067®Number=0000000000092569&sum=30000 [17:55:15]OFD Sender: Processing packet 139435 [packets to send 137, broken 136] [17:55:15]ProducePacketName [17:55:15]name=ofd_packets/00139435 [17:55:15]OFD Sender: To server: pG, [17:55:15]CommunicateWithHost lk.salyk.kg:30040 [17:55:15]ConnectInit lk.salyk.kg [17:55:15]written 0, free lines is 4095 [17:55:15]Connected sock=10 [17:55: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 37 36 0F 01 00 00 CD 69 07 01 1F 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 03 87 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 20 02 00 35 04 06 00 10 4B 48 82 3C 84 CB 6A 3A 1A 25 7B C1 15 [17:55: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 37 36 4F 00 00 00 7E D9 47 00 4E 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 37 36 10 04 04 00 AB 20 02 00 F4 03 04 00 98 2D C3 66 B6 04 01 00 00 AD 04 60 77 81 40 05 39 [17:55:15]CommunicateWithHost err = 0 [17:55:15]CheckOFDResponse [17:55:15]1017 (14) - 77093643461234 [17:55:15]1041 (16) - 0000000000871776 [17:55:15]1040 (4) - 139435 [17:55:15]1012 (4) - 19.08.2024 11:33 [17:55:15]1206 (1) - 0 [17:55:15]OFD Sender: Remove packet 139435 [17:55:15]ProducePacketName [17:55:15]name=ofd_packets/00139435 [17:55:15]NVStorageDeleteData [17:55:15]Write to MH i2c: 01 00 00 10 26 36 [17:55:15]Write i2c OK [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: 01 [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: 01 07 00 [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: 01 07 00 10 26 00 00 00 00 00 E5 0C 2E [17:55:15]RasterBufferAndPrint [17:55:15]line [17:55:15]line [17:55:15]line [17:55:15]line [17:55:15]line [17:55:15]written 0, free lines is 3307 [17:55:15]MH_Cut [17:55:15]Write to MH i2c: D1 01 00 17 26 01 0F [17:55:15]Write i2c OK [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: D1 [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: D1 01 00 [17:55:15]MH_I2C_Read... [17:55:15]Read from MH i2c: D1 01 00 17 26 00 0E [17:55:15]Write to MH i2c: 01 00 00 18 26 3E [17:55:15]Write i2c OK [17:55:15]MH_I2C_Read... [17:55:16]OFD Sender: No OFD packet to send [17:55:16]*** Cut start [17:55:16]*** Partial cut [17:55:16]*** CUTSNS_PIN = 1 [17:55:16]*** CUTSNS_PIN = 0 [17:55:16]*** Brake cut motor [17:55:17]Read from MH i2c: 01 [17:55:17]MH_I2C_Read... [17:55:17]*** Stop cut motor [17:55:17]*** Cut end [17:55:17]Read from MH i2c: 01 07 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: 01 07 00 18 26 00 00 00 00 00 FF 0F 53 [17:55:17]process_action close_receipt done [17:55:17]requested_data is exist [17:55:17]produce_requested_data [17:55:17]requested_item fm.sn is exist - process it [17:55:17]wFMCommunicate request_size=4 [17:55:17]MH_SAM_APDU [17:55:17]CAPDU: 80 11 00 00 [17:55:17]Write to MH i2c: E2 08 00 19 26 80 11 00 00 00 00 00 00 B9 [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:17]Read from MH i2c: E2 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 17 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 17 00 19 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [17:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:55:17]wFMCommunicate OK [17:55:17]requested_item fd.num is exist - process it [17:55:17]SAM_PROTO_GetFieldsCounters [17:55:17]wFMCommunicate request_size=4 [17:55:17]MH_SAM_APDU [17:55:17]CAPDU: 80 13 00 00 [17:55:17]Write to MH i2c: E2 08 00 1A 26 80 13 00 00 00 00 00 00 BC [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:17]Read from MH i2c: E2 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 62 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 62 00 1A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 20 02 00 0E 04 04 00 C4 01 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 A6 [17:55: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 20 02 00 0E 04 04 00 C4 01 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 [17:55:17]wFMCommunicate OK [17:55:17]SAM_PROTO_GetFieldsCounters done [17:55:17]requested_item shift.num is exist - process it [17:55:17]requested_item shift.opened is exist - process it [17:55:17]req_shift_opened [17:55:17]FM_GetShiftState [17:55:17]SAM_PROTO_GetShiftState [17:55:17]wFMCommunicate request_size=4 [17:55:17]MH_SAM_APDU [17:55:17]CAPDU: 80 13 01 00 [17:55:17]Write to MH i2c: E2 08 00 1B 26 80 13 01 00 00 00 00 00 BE [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:17]Read from MH i2c: E2 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 0E 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 0E 00 1B 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 75 [17:55:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:55:17]wFMCommunicate OK [17:55:17]SAM_PROTO_GetShiftState done [17:55:17]FM_GetShiftState done [17:55:17]req_shift_opened done [17:55:17]requested_item shift.open_date is exist - process it [17:55:17]req_shift_open_date [17:55:17]req_shift_open_date done [17:55:17]produce_requested_data done [17:55:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139435,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:55:17]process_action_free close_receipt [17:55:17]json_value_free [17:55:17]json_value_free done [17:55:17]process_json_proto returns [17:55:17]Send response to host [17:55:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139435,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:55:17]free response buf [17:55:17]execute_script done [17:55:17]execute_script returns [17:55:17]free content buf [17:55:17]Sock 8.Close socket [17:55:17]Sock 8.Thread stoped [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:08]accept exits with 9 [17:58:08]New connection [17:58:08]New thread 3066674532 created [17:58:08]Thread 3066817892 joined [17:58:08]Waiting for new connection... [17:58:08] Sock 9.Parse request [17:58:08]Sock 9.Check first char [17:58:08]Sock 9.First char is OK [17:58:08]request: POST /json_proto HTTP/1.0 [17:58:08]Method: POST [17:58:08]URL: /json_proto [17:58:08]Method is POST - this is cgi request [17:58:08]url: /json_proto [17:58:08]query_string will be loaded in cgi processing [17:58:08]execute_cgi json_proto POST (null) [17:58:08]execute_cgi path=json_proto method=POST [17:58:08]POST find Content-Length [17:58:08]Host: 172.17.45.67:8080 [17:58:08]Content-Length: 835 [17:58:08]Content-Type: application/json [17:58:08] [17:58:08]POST finish read [17:58:08]Found Content-Length = 835 [17:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:08]execute_script... [17:58: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)593278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:08]POST & json_proto [17:58:08]process_json_proto [17:58:08]json parsed OK: [17:58:08]protocol is kg_v1.0 [17:58:08]action value=close_receipt [17:58:08]process_action close_receipt [17:58:08]cmd_close_receipt [17:58:08]MH_GetDate [17:58:08]Write to MH i2c: F0 00 00 1C 26 31 [17:58:08]Write i2c OK [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: F0 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: F0 09 00 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: F0 09 00 1C 26 00 B1 87 C3 66 5F 7F 2B 66 0A [17:58:08]GetLastDocTimeStamp 1724090115 [17:58:08]current date 1724090289 [17:58:08]FM_GetShiftState [17:58:08]SAM_PROTO_GetShiftState [17:58:08]wFMCommunicate request_size=4 [17:58:08]MH_SAM_APDU [17:58:08]CAPDU: 80 13 01 00 [17:58:08]Write to MH i2c: E2 08 00 1D 26 80 13 01 00 00 00 00 00 C0 [17:58:08]Write i2c OK [17:58:08]MH_I2C_Read... [17:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:08]Read from MH i2c: E2 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 0E 00 [17:58:08]MH_I2C_Read... [17:58:08]Read from MH i2c: E2 0E 00 1D 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 77 [17:58:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:58:08]wFMCommunicate OK [17:58:08]SAM_PROTO_GetShiftState done [17:58:08]FM_GetShiftState done [17:58:08]opened in 1724027888 [17:58:08]opened+sec_in_day 1724114288 [17:58:08]quantity*price = 80004 [17:58:08]sum+1 = 80005 [17:58:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 271 19.08.2024 17:58 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139436 ФПД: 209406285679536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175810&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139436&fm=209406285679536&tin=02508201610067®Number=0000000000092569&sum=80000 [17:58:09]StoreToDocumentArchive [17:58:09]shift 452 fd 139436 [17:58:09]save to /storage/0452/doc_00139436 [17:58:09]save last doc name /storage/0452/doc_00139436 to /storage/kkm_last_doc_name [17:58:09]save OK [17:58:09]Clear old archive folders... [17:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:09]tlvbuf is 0120F830 [17:58:09]SAM_PROTO_ClearQueue [17:58:09]wFMCommunicate request_size=4 [17:58:09]MH_SAM_APDU [17:58:09]CAPDU: 80 09 00 00 [17:58:09]Write to MH i2c: E2 08 00 2A 26 80 09 00 00 00 00 00 00 C2 [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:09]Read from MH i2c: E2 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 03 00 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 03 00 2A 26 00 90 00 C4 [17:58:09]RAPDU: 90 00 [17:58:09]wFMCommunicate OK [17:58:09]SAM_PROTO_ClearQueue done [17:58:09]KKMCreateOFDPacket [17:58:09]OFDProtocolAddRootSTLVToBuf [17:58:09]FM_MakeSignedData [17:58:09]FM_MakeSignedData [17:58:09]SAM_PROTO_SignData [17:58:09]wFMCommunicate request_size=4 [17:58:09]MH_SAM_APDU [17:58:09]CAPDU: 80 0D 01 02 [17:58:09]Write to MH i2c: E2 08 00 2B 26 80 0D 01 02 00 00 00 00 CA [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:09]Read from MH i2c: E2 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 03 00 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 03 00 2B 26 00 90 00 C5 [17:58:09]RAPDU: 90 00 [17:58:09]wFMCommunicate OK [17:58:09]wFMCommunicate request_size=255 [17:58:09]MH_SAM_APDU [17:58: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 B2 87 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 20 02 00 35 04 06 00 BE [17:58:09]Write to MH i2c: E2 02 01 2C 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 B2 87 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 20 02 00 35 04 06 00 BE 00 00 C3 [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:09]Read from MH i2c: E2 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 03 00 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 03 00 2C 26 00 90 00 C6 [17:58:09]RAPDU: 90 00 [17:58:09]wFMCommunicate OK [17:58:09]wFMCommunicate request_size=10 [17:58:09]MH_SAM_APDU [17:58:09]CAPDU: 80 0D 02 02 05 74 33 45 8B B0 [17:58:09]Write to MH i2c: E2 0D 00 2D 26 80 0D 02 02 05 00 74 33 45 8B B0 00 00 FE [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:09]Read from MH i2c: E2 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 03 00 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 03 00 2D 26 00 90 00 C7 [17:58:09]RAPDU: 90 00 [17:58:09]wFMCommunicate OK [17:58:09]wFMCommunicate request_size=4 [17:58:09]MH_SAM_APDU [17:58:09]CAPDU: 80 0D 03 02 [17:58:09]Write to MH i2c: E2 08 00 2E 26 80 0D 03 02 00 00 00 00 CF [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:09]Read from MH i2c: E2 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 0B 00 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 0B 00 2E 26 00 F0 1E B9 AD 1C 6C 74 E1 90 00 21 [17:58:09]RAPDU: F0 1E B9 AD 1C 6C 74 E1 90 00 [17:58:09]wFMCommunicate OK [17:58:09]SAM_PROTO_SignData done [17:58:09]FM_MakeSignedData done [17:58:09]CreateOFDProtocolMessage [17:58:09]wFMCommunicate request_size=4 [17:58:09]MH_SAM_APDU [17:58:09]CAPDU: 80 11 00 00 [17:58:09]Write to MH i2c: E2 08 00 2F 26 80 11 00 00 00 00 00 00 CF [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:09]Read from MH i2c: E2 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 17 00 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: E2 17 00 2F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [17:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:58:09]wFMCommunicate OK [17:58:09]CreateOFDProtocolMessage done [17:58:09]OFDSenderStorePacket 139436 [17:58:09]StoreOFDPacket docnum=139436 [17:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 37 A3 07 01 57 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 B2 87 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 20 02 00 35 04 06 00 BE 74 33 45 8B B0 F0 1E B9 AD 1C 6C 74 E1 [17:58:09]CheckFolder [17:58:09]dirname=/storage/ofd_packets [17:58:09]CheckFolder done [17:58:09]ProducePacketName [17:58:09]name=ofd_packets/00139436 [17:58:09]NVStorageSaveData ofd_packets/00139436 [17:58:09]File name is /storage/ofd_packets/00139436 [17:58:09]Write 301 bytes [17:58:09]NVStorageSaveData done [17:58:09]OFDSenderStorePacket done [17:58:09]KKMCreateOFDPacket done [17:58:09]NVStorageSaveData kkm_last_timestamp [17:58:09]File name is /storage/kkm_last_timestamp [17:58:09]Write 4 bytes [17:58:09]NVStorageSaveData done [17:58:09]ExternCall_PrintAddStr [17:58:09]wPrintStart [17:58:09]Write to MH i2c: 01 00 00 30 26 56 [17:58:09]Write i2c OK [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: 01 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: 01 07 00 [17:58:09]MH_I2C_Read... [17:58:09]Read from MH i2c: 01 07 00 30 26 00 00 00 00 00 FF 0F 6B [17:58:09]RasterBufferAndPrint [17:58:09]line Счет N : (1)593278 [17:58:09]line ИНН: 02508201610067 [17:58:09]line Контрольно-Кассовый Чек [17:58:09]line ПРОДАЖА [17:58:09]line ТРК (МРК, ГНК) : 52 [17:58:09]line Товар: 2710124130 [17:58:09]line Аи-92-К-5 [17:58:09]line 11.800 * 67.80 [17:58:09]line = 800.04 [17:58:09]line НДС 12% НСП 1% [17:58:09]line > о реализуемом товаре [17:58:09]line ОКРУГЛЕНИЕ: -0.04 [17:58:09]line ИТОГО: 800.00 [17:58:09]line НСП 1% : 7.08 [17:58:09]line НДС 12% : 84.96 [17:58:09]line Наличными: 0.00 [17:58:09]line Безнал.: 800.00 [17:58:09]line Место: АЗС № 136 "Партнер Нефть" [17:58:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:58:09]line СНО: Общий режим [17:58:09]line Чек 271 19.08.2024 17:58 [17:58:09]line Смена: 452 ФФД: 1.0 [17:58:09]line ЗНМ: 0300000067 [17:58:09]line РНМ: 0000000000092569 [17:58:09]line Версия ККМ: 001 [17:58:09]line Платежная система: Бакай Банк [17:58:09]line ФМ: 0000000000871776 [17:58:09]line ФД: 139436 [17:58:09]line ФПД: 209406285679536 [17:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175810&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139436&fm=209406285679536&tin=02508201610067®Number=0000000000092569&sum=80000 [17:58:10]OFD Sender: Processing packet 139436 [packets to send 137, broken 136] [17:58:10]ProducePacketName [17:58:10]name=ofd_packets/00139436 [17:58:10]OFD Sender: To server: pG, [17:58:10]CommunicateWithHost lk.salyk.kg:30040 [17:58:10]ConnectInit lk.salyk.kg [17:58:10]written 0, free lines is 4095 [17:58:10]Connected sock=11 [17:58: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 37 36 0F 01 00 00 37 A3 07 01 57 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 B2 87 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 20 02 00 35 04 06 00 BE 74 33 45 8B B0 F0 1E B9 AD 1C 6C 74 E1 [17:58: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 37 36 4F 00 00 00 35 1C 47 00 29 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 20 02 00 F4 03 04 00 47 2E C3 66 B6 04 01 00 00 5A A2 C7 37 A2 77 F0 8B [17:58:10]CommunicateWithHost err = 0 [17:58:10]CheckOFDResponse [17:58:10]1017 (14) - 77093643461234 [17:58:10]1041 (16) - 0000000000871776 [17:58:10]1040 (4) - 139436 [17:58:10]1012 (4) - 19.08.2024 11:36 [17:58:10]1206 (1) - 0 [17:58:10]OFD Sender: Remove packet 139436 [17:58:10]ProducePacketName [17:58:10]name=ofd_packets/00139436 [17:58:10]NVStorageDeleteData [17:58:10]Write to MH i2c: 01 00 00 5B 26 81 [17:58:10]Write i2c OK [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: 01 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: 01 07 00 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: 01 07 00 5B 26 00 00 00 00 00 D8 0C 6C [17:58:10]RasterBufferAndPrint [17:58:10]line [17:58:10]line [17:58:10]line [17:58:10]line [17:58:10]line [17:58:10]written 0, free lines is 3296 [17:58:10]MH_Cut [17:58:10]Write to MH i2c: D1 01 00 62 26 01 5A [17:58:10]Write i2c OK [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: D1 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: D1 01 00 [17:58:10]MH_I2C_Read... [17:58:10]Read from MH i2c: D1 01 00 62 26 00 59 [17:58:10]Write to MH i2c: 01 00 00 63 26 89 [17:58:10]Write i2c OK [17:58:10]MH_I2C_Read... [17:58:11]OFD Sender: No OFD packet to send [17:58:11]*** Cut start [17:58:11]*** Partial cut [17:58:11]*** CUTSNS_PIN = 1 [17:58:11]*** CUTSNS_PIN = 0 [17:58:11]*** Brake cut motor [17:58:11]Read from MH i2c: 01 [17:58:11]MH_I2C_Read... [17:58:11]*** Stop cut motor [17:58:11]*** Cut end [17:58:11]Read from MH i2c: 01 07 00 [17:58:11]MH_I2C_Read... [17:58:11]Read from MH i2c: 01 07 00 63 26 00 00 00 00 00 FF 0F 9E [17:58:11]process_action close_receipt done [17:58:11]requested_data is exist [17:58:11]produce_requested_data [17:58:11]requested_item fm.sn is exist - process it [17:58:11]wFMCommunicate request_size=4 [17:58:11]MH_SAM_APDU [17:58:11]CAPDU: 80 11 00 00 [17:58:11]Write to MH i2c: E2 08 00 64 26 80 11 00 00 00 00 00 00 04 [17:58:11]Write i2c OK [17:58:11]MH_I2C_Read... [17:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:12]Read from MH i2c: E2 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 17 00 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 17 00 64 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [17:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:58:12]wFMCommunicate OK [17:58:12]requested_item fd.num is exist - process it [17:58:12]SAM_PROTO_GetFieldsCounters [17:58:12]wFMCommunicate request_size=4 [17:58:12]MH_SAM_APDU [17:58:12]CAPDU: 80 13 00 00 [17:58:12]Write to MH i2c: E2 08 00 65 26 80 13 00 00 00 00 00 00 07 [17:58:12]Write i2c OK [17:58:12]MH_I2C_Read... [17:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:12]Read from MH i2c: E2 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 62 00 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 62 00 65 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 20 02 00 0E 04 04 00 C4 01 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 F5 [17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 20 02 00 0E 04 04 00 C4 01 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 [17:58:12]wFMCommunicate OK [17:58:12]SAM_PROTO_GetFieldsCounters done [17:58:12]requested_item shift.num is exist - process it [17:58:12]requested_item shift.opened is exist - process it [17:58:12]req_shift_opened [17:58:12]FM_GetShiftState [17:58:12]SAM_PROTO_GetShiftState [17:58:12]wFMCommunicate request_size=4 [17:58:12]MH_SAM_APDU [17:58:12]CAPDU: 80 13 01 00 [17:58:12]Write to MH i2c: E2 08 00 66 26 80 13 01 00 00 00 00 00 09 [17:58:12]Write i2c OK [17:58:12]MH_I2C_Read... [17:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:12]Read from MH i2c: E2 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 0E 00 [17:58:12]MH_I2C_Read... [17:58:12]Read from MH i2c: E2 0E 00 66 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C0 [17:58:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [17:58:12]wFMCommunicate OK [17:58:12]SAM_PROTO_GetShiftState done [17:58:12]FM_GetShiftState done [17:58:12]req_shift_opened done [17:58:12]requested_item shift.open_date is exist - process it [17:58:12]req_shift_open_date [17:58:12]req_shift_open_date done [17:58:12]produce_requested_data done [17:58:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139436,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [17:58:12]process_action_free close_receipt [17:58:12]json_value_free [17:58:12]json_value_free done [17:58:12]process_json_proto returns [17:58:12]Send response to host [17:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139436,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [17:58:12]free response buf [17:58:12]execute_script done [17:58:12]execute_script returns [17:58:12]free content buf [17:58:12]Sock 9.Close socket [17:58:12]Sock 9.Thread stoped [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:17]accept exits with 8 [18:00:17]New connection [18:00:17]New thread 3066817892 created [18:00:17]Thread 3066674532 joined [18:00:17]Waiting for new connection... [18:00:17] Sock 8.Parse request [18:00:17]Sock 8.Check first char [18:00:17]Sock 8.First char is OK [18:00:17]request: POST /json_proto HTTP/1.0 [18:00:17]Method: POST [18:00:17]URL: /json_proto [18:00:17]Method is POST - this is cgi request [18:00:17]url: /json_proto [18:00:17]query_string will be loaded in cgi processing [18:00:17]execute_cgi json_proto POST (null) [18:00:17]execute_cgi path=json_proto method=POST [18:00:17]POST find Content-Length [18:00:17]Host: 172.17.45.67:8080 [18:00:17]Content-Length: 682 [18:00:17]Content-Type: application/json [18:00:17] [18:00:17]POST finish read [18:00:17]Found Content-Length = 682 [18:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:00:17]execute_script... [18:00:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:00:17]POST & json_proto [18:00:17]process_json_proto [18:00:17]json parsed OK: [18:00:17]protocol is kg_v1.0 [18:00:17]action value=close_receipt [18:00:17]process_action close_receipt [18:00:17]cmd_close_receipt [18:00:17]MH_GetDate [18:00:17]Write to MH i2c: F0 00 00 67 26 7C [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: F0 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: F0 09 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: F0 09 00 67 26 00 32 88 C3 66 5F 7F 2B 66 D7 [18:00:17]GetLastDocTimeStamp 1724090290 [18:00:17]current date 1724090418 [18:00:17]FM_GetShiftState [18:00:17]SAM_PROTO_GetShiftState [18:00:17]wFMCommunicate request_size=4 [18:00:17]MH_SAM_APDU [18:00:17]CAPDU: 80 13 01 00 [18:00:17]Write to MH i2c: E2 08 00 68 26 80 13 01 00 00 00 00 00 0B [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:17]Read from MH i2c: E2 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 0E 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 0E 00 68 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C2 [18:00:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:00:17]wFMCommunicate OK [18:00:17]SAM_PROTO_GetShiftState done [18:00:17]FM_GetShiftState done [18:00:17]opened in 1724027888 [18:00:17]opened+sec_in_day 1724114288 [18:00:17]quantity*price = 100005 [18:00:17]sum+1 = 100006 [18:00:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 272 19.08.2024 18:00 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139437 ФПД: 173624576406728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T180018&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139437&fm=173624576406728&tin=02508201610067®Number=0000000000092569&sum=100000 [18:00:18]StoreToDocumentArchive [18:00:18]shift 452 fd 139437 [18:00:18]save to /storage/0452/doc_00139437 [18:00:18]save last doc name /storage/0452/doc_00139437 to /storage/kkm_last_doc_name [18:00:18]save OK [18:00:18]Clear old archive folders... [18:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:18]tlvbuf is 0121C800 [18:00:18]SAM_PROTO_ClearQueue [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 09 00 00 [18:00:18]Write to MH i2c: E2 08 00 75 26 80 09 00 00 00 00 00 00 0D [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 75 26 00 90 00 0F [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]SAM_PROTO_ClearQueue done [18:00:18]KKMCreateOFDPacket [18:00:18]OFDProtocolAddRootSTLVToBuf [18:00:18]FM_MakeSignedData [18:00:18]FM_MakeSignedData [18:00:18]SAM_PROTO_SignData [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 0D 01 02 [18:00:18]Write to MH i2c: E2 08 00 76 26 80 0D 01 02 00 00 00 00 15 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 76 26 00 90 00 10 [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]wFMCommunicate request_size=255 [18:00:18]MH_SAM_APDU [18:00: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 32 88 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 20 02 00 35 04 06 00 9D [18:00:18]Write to MH i2c: E2 02 01 77 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 32 88 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 20 02 00 35 04 06 00 9D 00 00 52 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 77 26 00 90 00 11 [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]wFMCommunicate request_size=10 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 0D 02 02 05 E9 1F 33 74 C8 [18:00:18]Write to MH i2c: E2 0D 00 78 26 80 0D 02 02 05 00 E9 1F 33 74 C8 00 00 99 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 78 26 00 90 00 12 [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 0D 03 02 [18:00:18]Write to MH i2c: E2 08 00 79 26 80 0D 03 02 00 00 00 00 1A [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 0B 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 0B 00 79 26 00 9D 47 15 A8 5E D3 3A 33 90 00 5A [18:00:18]RAPDU: 9D 47 15 A8 5E D3 3A 33 90 00 [18:00:18]wFMCommunicate OK [18:00:18]SAM_PROTO_SignData done [18:00:18]FM_MakeSignedData done [18:00:18]CreateOFDProtocolMessage [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 11 00 00 [18:00:18]Write to MH i2c: E2 08 00 7A 26 80 11 00 00 00 00 00 00 1A [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 17 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 17 00 7A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 71 [18:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:00:18]wFMCommunicate OK [18:00:18]CreateOFDProtocolMessage done [18:00:18]OFDSenderStorePacket 139437 [18:00:18]StoreOFDPacket docnum=139437 [18:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 77 07 01 F2 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 32 88 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 20 02 00 35 04 06 00 9D E9 1F 33 74 C8 9D 47 15 A8 5E D3 3A 33 [18:00:18]CheckFolder [18:00:18]dirname=/storage/ofd_packets [18:00:18]CheckFolder done [18:00:18]ProducePacketName [18:00:18]name=ofd_packets/00139437 [18:00:18]NVStorageSaveData ofd_packets/00139437 [18:00:18]File name is /storage/ofd_packets/00139437 [18:00:18]Write 301 bytes [18:00:18]NVStorageSaveData done [18:00:18]OFDSenderStorePacket done [18:00:18]KKMCreateOFDPacket done [18:00:18]NVStorageSaveData kkm_last_timestamp [18:00:18]File name is /storage/kkm_last_timestamp [18:00:18]Write 4 bytes [18:00:18]NVStorageSaveData done [18:00:18]ExternCall_PrintAddStr [18:00:18]wPrintStart [18:00:18]Write to MH i2c: 01 00 00 7B 26 A1 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 07 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 07 00 7B 26 00 00 00 00 00 FF 0F B6 [18:00:18]RasterBufferAndPrint [18:00:18]line Счет N : (1)593279 [18:00:18]line ИНН: 02508201610067 [18:00:18]line Контрольно-Кассовый Чек [18:00:18]line ПРОДАЖА [18:00:18]line ТРК (МРК, ГНК) : 32 [18:00:18]line Товар: 2710124130 [18:00:18]line Аи-92-К-5 [18:00:18]line 14.750 * 67.80 [18:00:18]line = 1000.05 [18:00:18]line НДС 12% НСП 1% [18:00:18]line > о реализуемом товаре [18:00:18]line ОКРУГЛЕНИЕ: -0.05 [18:00:18]line ИТОГО: 1000.00 [18:00:18]line Внесено: 1000.00 [18:00:18]line СДАЧА: 0.00 [18:00:18]line НСП 1% : 8.85 [18:00:18]line НДС 12% : 106.20 [18:00:18]line Наличными: 1000.00 [18:00:18]line Безнал.: 0.00 [18:00:18]line Место: АЗС № 136 "Партнер Нефть" [18:00:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:00:18]line СНО: Общий режим [18:00:18]line Чек 272 19.08.2024 18:00 [18:00:18]line Смена: 452 ФФД: 1.0 [18:00:18]line ЗНМ: 0300000067 [18:00:18]line РНМ: 0000000000092569 [18:00:18]line Версия ККМ: 001 [18:00:18]line ФМ: 0000000000871776 [18:00:18]line ФД: 139437 [18:00:18]line ФПД: 173624576406728 [18:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T180018&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139437&fm=173624576406728&tin=02508201610067®Number=0000000000092569&sum=100000 [18:00:19]written 0, free lines is 4095 [18:00:19]OFD Sender: Processing packet 139437 [packets to send 137, broken 136] [18:00:19]ProducePacketName [18:00:19]name=ofd_packets/00139437 [18:00:19]OFD Sender: To server: pG, [18:00:19]CommunicateWithHost lk.salyk.kg:30040 [18:00:19]ConnectInit lk.salyk.kg [18:00:19]Connected sock=10 [18:00: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 37 36 0F 01 00 00 C1 77 07 01 F2 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 32 88 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 20 02 00 35 04 06 00 9D E9 1F 33 74 C8 9D 47 15 A8 5E D3 3A 33 [18:00: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 37 36 4F 00 00 00 DC 27 47 00 4A 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 20 02 00 F4 03 04 00 C8 2E C3 66 B6 04 01 00 00 D2 AE 62 50 D6 7B 7D FD [18:00:19]CommunicateWithHost err = 0 [18:00:19]CheckOFDResponse [18:00:19]1017 (14) - 77093643461234 [18:00:19]1041 (16) - 0000000000871776 [18:00:19]1040 (4) - 139437 [18:00:19]1012 (4) - 19.08.2024 11:38 [18:00:19]1206 (1) - 0 [18:00:19]OFD Sender: Remove packet 139437 [18:00:19]ProducePacketName [18:00:19]name=ofd_packets/00139437 [18:00:19]NVStorageDeleteData [18:00:19]Write to MH i2c: 01 00 00 A6 26 CC [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 A6 26 00 00 00 00 00 D8 0C B7 [18:00:19]RasterBufferAndPrint [18:00:19]line [18:00:19]line [18:00:19]line [18:00:19]line [18:00:19]line [18:00:19]written 0, free lines is 3296 [18:00:19]MH_Cut [18:00:19]Write to MH i2c: D1 01 00 AD 26 01 A5 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: D1 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: D1 01 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: D1 01 00 AD 26 00 A4 [18:00:19]Write to MH i2c: 01 00 00 AE 26 D4 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:20]OFD Sender: No OFD packet to send [18:00:20]*** Cut start [18:00:20]*** Partial cut [18:00:20]*** CUTSNS_PIN = 1 [18:00:20]*** CUTSNS_PIN = 0 [18:00:20]*** Brake cut motor [18:00:20]Read from MH i2c: 01 [18:00:20]MH_I2C_Read... [18:00:20]*** Stop cut motor [18:00:20]*** Cut end [18:00:20]Read from MH i2c: 01 07 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 07 00 AE 26 00 00 00 00 00 FF 0F E9 [18:00:20]process_action close_receipt done [18:00:20]requested_data is exist [18:00:20]produce_requested_data [18:00:20]requested_item fm.sn is exist - process it [18:00:20]wFMCommunicate request_size=4 [18:00:20]MH_SAM_APDU [18:00:20]CAPDU: 80 11 00 00 [18:00:20]Write to MH i2c: E2 08 00 AF 26 80 11 00 00 00 00 00 00 4F [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:20]Read from MH i2c: E2 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 17 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 17 00 AF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [18:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:00:20]wFMCommunicate OK [18:00:20]requested_item fd.num is exist - process it [18:00:20]SAM_PROTO_GetFieldsCounters [18:00:20]wFMCommunicate request_size=4 [18:00:20]MH_SAM_APDU [18:00:20]CAPDU: 80 13 00 00 [18:00:20]Write to MH i2c: E2 08 00 B0 26 80 13 00 00 00 00 00 00 52 [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:21]Read from MH i2c: E2 [18:00:21]MH_I2C_Read... [18:00:21]Read from MH i2c: E2 62 00 [18:00:21]MH_I2C_Read... [18:00:21]Read from MH i2c: E2 62 00 B0 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 20 02 00 0E 04 04 00 C4 01 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 44 [18:00:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 20 02 00 0E 04 04 00 C4 01 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 [18:00:21]wFMCommunicate OK [18:00:21]SAM_PROTO_GetFieldsCounters done [18:00:21]requested_item shift.num is exist - process it [18:00:21]requested_item shift.opened is exist - process it [18:00:21]req_shift_opened [18:00:21]FM_GetShiftState [18:00:21]SAM_PROTO_GetShiftState [18:00:21]wFMCommunicate request_size=4 [18:00:21]MH_SAM_APDU [18:00:21]CAPDU: 80 13 01 00 [18:00:21]Write to MH i2c: E2 08 00 B1 26 80 13 01 00 00 00 00 00 54 [18:00:21]Write i2c OK [18:00:21]MH_I2C_Read... [18:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:21]Read from MH i2c: E2 [18:00:21]MH_I2C_Read... [18:00:21]Read from MH i2c: E2 0E 00 [18:00:21]MH_I2C_Read... [18:00:21]Read from MH i2c: E2 0E 00 B1 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 0B [18:00:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:00:21]wFMCommunicate OK [18:00:21]SAM_PROTO_GetShiftState done [18:00:21]FM_GetShiftState done [18:00:21]req_shift_opened done [18:00:21]requested_item shift.open_date is exist - process it [18:00:21]req_shift_open_date [18:00:21]req_shift_open_date done [18:00:21]produce_requested_data done [18:00:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139437,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:00:21]process_action_free close_receipt [18:00:21]json_value_free [18:00:21]json_value_free done [18:00:21]process_json_proto returns [18:00:21]Send response to host [18:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139437,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:00:21]free response buf [18:00:21]execute_script done [18:00:21]execute_script returns [18:00:21]free content buf [18:00:21]Sock 8.Close socket [18:00:21]Sock 8.Thread stoped [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:06:56]int [18:06:56]Write to MH i2c: 01 00 00 B2 26 D8 [18:06:56]*** FLAG_PRN_KEY set [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 B2 26 00 08 00 00 00 FF 0F F5 [18:06:56]state=0 [18:06:56]Key pressed [18:06:56]Feed [18:06:56]Write to MH i2c: D8 00 00 B3 26 B0 [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: D8 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: D8 01 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: D8 01 00 B3 26 00 B1 [18:06:56]int [18:06:56]Write to MH i2c: 01 00 00 B4 26 DA [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 B4 26 00 48 00 00 00 3C 00 65 [18:06:56]state=2 [18:06:56]Key pressed [18:06:56]int [18:06:56]Write to MH i2c: 01 00 00 B5 26 DB [18:06:56]*** FLAG_PRN_KEY reset [18:06:56]Write i2c OK [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 [18:06:56]MH_I2C_Read... [18:06:56]Read from MH i2c: 01 07 00 B5 26 00 00 00 00 00 F5 0F E6 [18:06:56]state=2 [18:06:56]Stop feed [18:06:57]int [18:06:57]Write to MH i2c: 01 00 00 B6 26 DC [18:06:57]*** FLAG_PRN_KEY set [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 07 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 07 00 B6 26 00 08 00 00 00 FF 0F F9 [18:06:57]state=0 [18:06:57]Key pressed [18:06:57]Feed [18:06:57]Write to MH i2c: D8 00 00 B7 26 B4 [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: D8 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: D8 01 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: D8 01 00 B7 26 00 B5 [18:06:57]int [18:06:57]Write to MH i2c: 01 00 00 B8 26 DE [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 07 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 07 00 B8 26 00 48 00 00 00 3C 00 69 [18:06:57]state=2 [18:06:57]Key pressed [18:06:57]int [18:06:57]Write to MH i2c: 01 00 00 B9 26 DF [18:06:57]*** FLAG_PRN_KEY reset [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 07 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: 01 07 00 B9 26 00 00 00 00 00 F6 0F EB [18:06:57]state=2 [18:06:57]Stop feed [18:06:58]int [18:06:58]Write to MH i2c: 01 00 00 BA 26 E0 [18:06:58]*** FLAG_PRN_KEY set [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 07 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 07 00 BA 26 00 08 00 00 00 FF 0F FD [18:06:58]state=0 [18:06:58]Key pressed [18:06:58]Feed [18:06:58]Write to MH i2c: D8 00 00 BB 26 B8 [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: D8 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: D8 01 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: D8 01 00 BB 26 00 B9 [18:06:58]int [18:06:58]Write to MH i2c: 01 00 00 BC 26 E2 [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 07 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 07 00 BC 26 00 48 00 00 00 3C 00 6D [18:06:58]state=2 [18:06:58]Key pressed [18:06:58]int [18:06:58]Write to MH i2c: 01 00 00 BD 26 E3 [18:06:58]*** FLAG_PRN_KEY reset [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 07 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: 01 07 00 BD 26 00 00 00 00 00 F5 0F EE [18:06:58]state=2 [18:06:58]Stop feed [18:07:00]OFD Sender: No OFD packet to send [18:07:04]int [18:07:04]Write to MH i2c: 01 00 00 BE 26 E4 [18:07:04]*** FLAG_PRN_KEY set [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: 01 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: 01 07 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: 01 07 00 BE 26 00 08 00 00 00 FF 0F 01 [18:07:04]state=0 [18:07:04]Key pressed [18:07:04]Feed [18:07:04]Write to MH i2c: D8 00 00 BF 26 BC [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: D8 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: D8 01 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: D8 01 00 BF 26 00 BD [18:07:04]int [18:07:04]Write to MH i2c: 01 00 00 C0 26 E6 [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: 01 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: 01 07 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: 01 07 00 C0 26 00 48 00 00 00 3D 00 72 [18:07:04]state=2 [18:07:04]Key pressed [18:07:04]int [18:07:04]Write to MH i2c: 01 00 00 C1 26 E7 [18:07:04]*** FLAG_PRN_KEY reset [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: 01 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: 01 07 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: 01 07 00 C1 26 00 00 00 00 00 F7 0F F4 [18:07:04]state=2 [18:07:04]Stop feed [18:07:05]int [18:07:05]Write to MH i2c: 01 00 00 C2 26 E8 [18:07:05]*** FLAG_PRN_KEY set [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 C2 26 00 08 00 00 00 FF 0F 05 [18:07:05]state=0 [18:07:05]Key pressed [18:07:05]Feed [18:07:05]Write to MH i2c: D8 00 00 C3 26 C0 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: D8 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: D8 01 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: D8 01 00 C3 26 00 C1 [18:07:05]int [18:07:05]Write to MH i2c: 01 00 00 C4 26 EA [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 C4 26 00 48 00 00 00 3D 00 76 [18:07:05]state=2 [18:07:05]Key pressed [18:07:05]int [18:07:05]Write to MH i2c: 01 00 00 C5 26 EB [18:07:05]*** FLAG_PRN_KEY reset [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 C5 26 00 00 00 00 00 F5 0F F6 [18:07:05]state=2 [18:07:05]Stop feed [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:22]int [18:07:22]Write to MH i2c: 01 00 00 C6 26 EC [18:07:22]*** FLAG_PRN_KEY set [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 C6 26 00 08 00 00 00 FF 0F 09 [18:07:22]state=0 [18:07:22]Key pressed [18:07:22]Feed [18:07:22]Write to MH i2c: D8 00 00 C7 26 C4 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: D8 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: D8 01 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: D8 01 00 C7 26 00 C5 [18:07:22]int [18:07:22]Write to MH i2c: 01 00 00 C8 26 EE [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 C8 26 00 48 00 00 00 3D 00 7A [18:07:22]state=2 [18:07:22]Key pressed [18:07:22]int [18:07:22]Write to MH i2c: 01 00 00 C9 26 EF [18:07:22]*** FLAG_PRN_KEY reset [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 C9 26 00 00 00 00 00 FB 0F 00 [18:07:22]state=2 [18:07:22]Stop feed [18:07:25]OFD Sender: No OFD packet to send [18:07:30]accept exits with 9 [18:07:30]New connection [18:07:30]New thread 3066674532 created [18:07:30]Thread 3066817892 joined [18:07:30]Waiting for new connection... [18:07:30] Sock 9.Parse request [18:07:30]Sock 9.Check first char [18:07:30]Sock 9.First char is OK [18:07:30]request: POST /json_proto HTTP/1.0 [18:07:30]Method: POST [18:07:30]URL: /json_proto [18:07:30]Method is POST - this is cgi request [18:07:30]url: /json_proto [18:07:30]query_string will be loaded in cgi processing [18:07:30]execute_cgi json_proto POST (null) [18:07:30]execute_cgi path=json_proto method=POST [18:07:30]POST find Content-Length [18:07:30]Host: 172.17.45.67:8080 [18:07:30]Content-Length: 677 [18:07:30]Content-Type: application/json [18:07:30] [18:07:30]POST finish read [18:07:30]Found Content-Length = 677 [18:07:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:07:30]execute_script... [18:07: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)593280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:07:30]POST & json_proto [18:07:30]process_json_proto [18:07:30]json parsed OK: [18:07:30]protocol is kg_v1.0 [18:07:30]action value=close_receipt [18:07:30]process_action close_receipt [18:07:30]cmd_close_receipt [18:07:30]MH_GetDate [18:07:30]Write to MH i2c: F0 00 00 CA 26 DF [18:07:30]Write i2c OK [18:07:30]MH_I2C_Read... [18:07:30]Read from MH i2c: F0 [18:07:30]MH_I2C_Read... [18:07:30]Read from MH i2c: F0 09 00 [18:07:30]MH_I2C_Read... [18:07:30]Read from MH i2c: F0 09 00 CA 26 00 E4 89 C3 66 5F 7F 2B 66 ED [18:07:30]GetLastDocTimeStamp 1724090418 [18:07:30]current date 1724090852 [18:07:30]FM_GetShiftState [18:07:30]SAM_PROTO_GetShiftState [18:07:30]wFMCommunicate request_size=4 [18:07:30]MH_SAM_APDU [18:07:30]CAPDU: 80 13 01 00 [18:07:30]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [18:07:30]Write i2c OK [18:07:30]MH_I2C_Read... [18:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:30]Read from MH i2c: E2 [18:07:30]MH_I2C_Read... [18:07:30]Read from MH i2c: E2 0E 00 [18:07:30]MH_I2C_Read... [18:07:30]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 25 [18:07:30]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:07:30]wFMCommunicate OK [18:07:30]SAM_PROTO_GetShiftState done [18:07:30]FM_GetShiftState done [18:07:30]opened in 1724027888 [18:07:30]opened+sec_in_day 1724114288 [18:07:30]quantity*price = 50036 [18:07:30]sum+1 = 50037 [18:07:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 273 19.08.2024 18:07 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139438 ФПД: 173586274154113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T180732&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139438&fm=173586274154113&tin=02508201610067®Number=0000000000092569&sum=50000 [18:07:31]StoreToDocumentArchive [18:07:31]shift 452 fd 139438 [18:07:31]save to /storage/0452/doc_00139438 [18:07:31]save last doc name /storage/0452/doc_00139438 to /storage/kkm_last_doc_name [18:07:31]save OK [18:07:31]Clear old archive folders... [18:07:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:31]tlvbuf is B6F34530 [18:07:31]SAM_PROTO_ClearQueue [18:07:31]wFMCommunicate request_size=4 [18:07:31]MH_SAM_APDU [18:07:31]CAPDU: 80 09 00 00 [18:07:31]Write to MH i2c: E2 08 00 D8 26 80 09 00 00 00 00 00 00 70 [18:07:31]Write i2c OK [18:07:31]MH_I2C_Read... [18:07:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:31]Read from MH i2c: E2 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 03 00 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [18:07:31]RAPDU: 90 00 [18:07:31]wFMCommunicate OK [18:07:31]SAM_PROTO_ClearQueue done [18:07:31]KKMCreateOFDPacket [18:07:31]OFDProtocolAddRootSTLVToBuf [18:07:31]FM_MakeSignedData [18:07:31]FM_MakeSignedData [18:07:31]SAM_PROTO_SignData [18:07:31]wFMCommunicate request_size=4 [18:07:31]MH_SAM_APDU [18:07:31]CAPDU: 80 0D 01 02 [18:07:31]Write to MH i2c: E2 08 00 D9 26 80 0D 01 02 00 00 00 00 78 [18:07:31]Write i2c OK [18:07:31]MH_I2C_Read... [18:07:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:31]Read from MH i2c: E2 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 03 00 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [18:07:31]RAPDU: 90 00 [18:07:31]wFMCommunicate OK [18:07:31]wFMCommunicate request_size=255 [18:07:31]MH_SAM_APDU [18:07: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 11 01 00 00 F4 03 04 00 E4 89 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 20 02 00 35 04 06 00 9D [18:07:31]Write to MH i2c: E2 02 01 DA 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 11 01 00 00 F4 03 04 00 E4 89 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 20 02 00 35 04 06 00 9D 00 00 DB [18:07:31]Write i2c OK [18:07:31]MH_I2C_Read... [18:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:31]Read from MH i2c: E2 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 03 00 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [18:07:31]RAPDU: 90 00 [18:07:31]wFMCommunicate OK [18:07:31]wFMCommunicate request_size=10 [18:07:31]MH_SAM_APDU [18:07:31]CAPDU: 80 0D 02 02 05 E0 34 35 76 81 [18:07:31]Write to MH i2c: E2 0D 00 DB 26 80 0D 02 02 05 00 E0 34 35 76 81 00 00 C5 [18:07:31]Write i2c OK [18:07:31]MH_I2C_Read... [18:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:31]Read from MH i2c: E2 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 03 00 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [18:07:31]RAPDU: 90 00 [18:07:31]wFMCommunicate OK [18:07:31]wFMCommunicate request_size=4 [18:07:31]MH_SAM_APDU [18:07:31]CAPDU: 80 0D 03 02 [18:07:31]Write to MH i2c: E2 08 00 DC 26 80 0D 03 02 00 00 00 00 7D [18:07:31]Write i2c OK [18:07:31]MH_I2C_Read... [18:07:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:31]Read from MH i2c: E2 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 0B 00 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 0B 00 DC 26 00 4B 27 57 02 D6 1C 37 20 90 00 92 [18:07:31]RAPDU: 4B 27 57 02 D6 1C 37 20 90 00 [18:07:31]wFMCommunicate OK [18:07:31]SAM_PROTO_SignData done [18:07:31]FM_MakeSignedData done [18:07:31]CreateOFDProtocolMessage [18:07:31]wFMCommunicate request_size=4 [18:07:31]MH_SAM_APDU [18:07:31]CAPDU: 80 11 00 00 [18:07:31]Write to MH i2c: E2 08 00 DD 26 80 11 00 00 00 00 00 00 7D [18:07:31]Write i2c OK [18:07:31]MH_I2C_Read... [18:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:31]Read from MH i2c: E2 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 17 00 [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: E2 17 00 DD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [18:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:07:31]wFMCommunicate OK [18:07:31]CreateOFDProtocolMessage done [18:07:31]OFDSenderStorePacket 139438 [18:07:31]StoreOFDPacket docnum=139438 [18:07:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 71 C7 07 01 18 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 11 01 00 00 F4 03 04 00 E4 89 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 20 02 00 35 04 06 00 9D E0 34 35 76 81 4B 27 57 02 D6 1C 37 20 [18:07:31]CheckFolder [18:07:31]dirname=/storage/ofd_packets [18:07:31]CheckFolder done [18:07:31]ProducePacketName [18:07:31]name=ofd_packets/00139438 [18:07:31]NVStorageSaveData ofd_packets/00139438 [18:07:31]File name is /storage/ofd_packets/00139438 [18:07:31]Write 301 bytes [18:07:31]NVStorageSaveData done [18:07:31]OFDSenderStorePacket done [18:07:31]KKMCreateOFDPacket done [18:07:31]NVStorageSaveData kkm_last_timestamp [18:07:31]File name is /storage/kkm_last_timestamp [18:07:31]Write 4 bytes [18:07:31]NVStorageSaveData done [18:07:31]ExternCall_PrintAddStr [18:07:31]wPrintStart [18:07:31]Write to MH i2c: 01 00 00 DE 26 04 [18:07:31]Write i2c OK [18:07:31]MH_I2C_Read... [18:07:31]Read from MH i2c: 01 [18:07:32]MH_I2C_Read... [18:07:32]Read from MH i2c: 01 07 00 [18:07:32]MH_I2C_Read... [18:07:32]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [18:07:32]RasterBufferAndPrint [18:07:32]line Счет N : (1)593280 [18:07:32]line ИНН: 02508201610067 [18:07:32]line Контрольно-Кассовый Чек [18:07:32]line ПРОДАЖА [18:07:32]line ТРК (МРК, ГНК) : 32 [18:07:32]line Товар: 2710124130 [18:07:32]line Аи-92-К-5 [18:07:32]line 7.380 * 67.80 [18:07:32]line = 500.36 [18:07:32]line НДС 12% НСП 1% [18:07:32]line > о реализуемом товаре [18:07:32]line ОКРУГЛЕНИЕ: -0.36 [18:07:32]line ИТОГО: 500.00 [18:07:32]line Внесено: 500.00 [18:07:32]line СДАЧА: 0.00 [18:07:32]line НСП 1% : 4.43 [18:07:32]line НДС 12% : 53.14 [18:07:32]line Наличными: 500.00 [18:07:32]line Безнал.: 0.00 [18:07:32]line Место: АЗС № 136 "Партнер Нефть" [18:07:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:07:32]line СНО: Общий режим [18:07:32]line Чек 273 19.08.2024 18:07 [18:07:32]line Смена: 452 ФФД: 1.0 [18:07:32]line ЗНМ: 0300000067 [18:07:32]line РНМ: 0000000000092569 [18:07:32]line Версия ККМ: 001 [18:07:32]line ФМ: 0000000000871776 [18:07:32]line ФД: 139438 [18:07:32]line ФПД: 173586274154113 [18:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T180732&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139438&fm=173586274154113&tin=02508201610067®Number=0000000000092569&sum=50000 [18:07:32]OFD Sender: Processing packet 139438 [packets to send 137, broken 136] [18:07:32]ProducePacketName [18:07:32]name=ofd_packets/00139438 [18:07:32]OFD Sender: To server: pG, [18:07:32]CommunicateWithHost lk.salyk.kg:30040 [18:07:32]ConnectInit lk.salyk.kg [18:07:32]written 0, free lines is 4095 [18:07:32]Connected sock=10 [18:07: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 37 36 0F 01 00 00 71 C7 07 01 18 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 11 01 00 00 F4 03 04 00 E4 89 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 20 02 00 35 04 06 00 9D E0 34 35 76 81 4B 27 57 02 D6 1C 37 20 [18:07: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 37 36 4F 00 00 00 08 BB 47 00 33 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 37 36 10 04 04 00 AE 20 02 00 F4 03 04 00 79 30 C3 66 B6 04 01 00 00 19 3D 42 D3 96 17 84 DC [18:07:32]CommunicateWithHost err = 0 [18:07:32]CheckOFDResponse [18:07:32]1017 (14) - 77093643461234 [18:07:32]1041 (16) - 0000000000871776 [18:07:32]1040 (4) - 139438 [18:07:32]1012 (4) - 19.08.2024 11:46 [18:07:32]1206 (1) - 0 [18:07:32]OFD Sender: Remove packet 139438 [18:07:32]ProducePacketName [18:07:32]name=ofd_packets/00139438 [18:07:32]NVStorageDeleteData [18:07:32]Write to MH i2c: 01 00 00 09 27 30 [18:07:32]Write i2c OK [18:07:32]MH_I2C_Read... [18:07:32]Read from MH i2c: 01 [18:07:32]MH_I2C_Read... [18:07:32]Read from MH i2c: 01 07 00 [18:07:32]MH_I2C_Read... [18:07:32]Read from MH i2c: 01 07 00 09 27 00 00 00 00 00 DD 0C 20 [18:07:32]RasterBufferAndPrint [18:07:32]line [18:07:32]line [18:07:32]line [18:07:32]line [18:07:32]line [18:07:32]written 0, free lines is 3299 [18:07:32]MH_Cut [18:07:32]Write to MH i2c: D1 01 00 10 27 01 09 [18:07:32]Write i2c OK [18:07:32]MH_I2C_Read... [18:07:32]Read from MH i2c: D1 [18:07:32]MH_I2C_Read... [18:07:32]Read from MH i2c: D1 01 00 [18:07:32]MH_I2C_Read... [18:07:32]Read from MH i2c: D1 01 00 10 27 00 08 [18:07:32]Write to MH i2c: 01 00 00 11 27 38 [18:07:32]Write i2c OK [18:07:32]MH_I2C_Read... [18:07:33]OFD Sender: No OFD packet to send [18:07:33]*** Cut start [18:07:33]*** Partial cut [18:07:33]*** CUTSNS_PIN = 1 [18:07:33]*** CUTSNS_PIN = 0 [18:07:33]*** Brake cut motor [18:07:34]Read from MH i2c: 01 [18:07:34]MH_I2C_Read... [18:07:34]*** Stop cut motor [18:07:34]*** Cut end [18:07:34]Read from MH i2c: 01 07 00 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: 01 07 00 11 27 00 00 00 00 00 FF 0F 4D [18:07:34]process_action close_receipt done [18:07:34]requested_data is exist [18:07:34]produce_requested_data [18:07:34]requested_item fm.sn is exist - process it [18:07:34]wFMCommunicate request_size=4 [18:07:34]MH_SAM_APDU [18:07:34]CAPDU: 80 11 00 00 [18:07:34]Write to MH i2c: E2 08 00 12 27 80 11 00 00 00 00 00 00 B3 [18:07:34]Write i2c OK [18:07:34]MH_I2C_Read... [18:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:34]Read from MH i2c: E2 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: E2 17 00 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: E2 17 00 12 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [18:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:07:34]wFMCommunicate OK [18:07:34]requested_item fd.num is exist - process it [18:07:34]SAM_PROTO_GetFieldsCounters [18:07:34]wFMCommunicate request_size=4 [18:07:34]MH_SAM_APDU [18:07:34]CAPDU: 80 13 00 00 [18:07:34]Write to MH i2c: E2 08 00 13 27 80 13 00 00 00 00 00 00 B6 [18:07:34]Write i2c OK [18:07:34]MH_I2C_Read... [18:07:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:34]Read from MH i2c: E2 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: E2 62 00 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: E2 62 00 13 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 20 02 00 0E 04 04 00 C4 01 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 AC [18:07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 20 02 00 0E 04 04 00 C4 01 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 [18:07:34]wFMCommunicate OK [18:07:34]SAM_PROTO_GetFieldsCounters done [18:07:34]requested_item shift.num is exist - process it [18:07:34]requested_item shift.opened is exist - process it [18:07:34]req_shift_opened [18:07:34]FM_GetShiftState [18:07:34]SAM_PROTO_GetShiftState [18:07:34]wFMCommunicate request_size=4 [18:07:34]MH_SAM_APDU [18:07:34]CAPDU: 80 13 01 00 [18:07:34]Write to MH i2c: E2 08 00 14 27 80 13 01 00 00 00 00 00 B8 [18:07:34]Write i2c OK [18:07:34]MH_I2C_Read... [18:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:34]Read from MH i2c: E2 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: E2 0E 00 [18:07:34]MH_I2C_Read... [18:07:34]Read from MH i2c: E2 0E 00 14 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6F [18:07:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:07:34]wFMCommunicate OK [18:07:34]SAM_PROTO_GetShiftState done [18:07:34]FM_GetShiftState done [18:07:34]req_shift_opened done [18:07:34]requested_item shift.open_date is exist - process it [18:07:34]req_shift_open_date [18:07:34]req_shift_open_date done [18:07:34]produce_requested_data done [18:07:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139438,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:07:34]process_action_free close_receipt [18:07:34]json_value_free [18:07:34]json_value_free done [18:07:34]process_json_proto returns [18:07:34]Send response to host [18:07:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139438,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:07:34]free response buf [18:07:34]execute_script done [18:07:34]execute_script returns [18:07:34]free content buf [18:07:34]Sock 9.Close socket [18:07:34]Sock 9.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:07:58]accept exits with 8 [18:07:58]New connection [18:07:58]New thread 3066817892 created [18:07:58]Thread 3066674532 joined [18:07:58]Waiting for new connection... [18:07:58] Sock 8.Parse request [18:07:58]Sock 8.Check first char [18:07:58]Sock 8.First char is OK [18:07:58]request: POST /json_proto HTTP/1.0 [18:07:58]Method: POST [18:07:58]URL: /json_proto [18:07:58]Method is POST - this is cgi request [18:07:58]url: /json_proto [18:07:58]query_string will be loaded in cgi processing [18:07:58]execute_cgi json_proto POST (null) [18:07:58]execute_cgi path=json_proto method=POST [18:07:58]POST find Content-Length [18:07:58]Host: 172.17.45.67:8080 [18:07:58]Content-Length: 677 [18:07:58]Content-Type: application/json [18:07:58] [18:07:58]POST finish read [18:07:58]Found Content-Length = 677 [18:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:07:58]execute_script... [18:07: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)593281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:07:58]POST & json_proto [18:07:58]process_json_proto [18:07:58]json parsed OK: [18:07:58]protocol is kg_v1.0 [18:07:58]action value=close_receipt [18:07:58]process_action close_receipt [18:07:58]cmd_close_receipt [18:07:58]MH_GetDate [18:07:58]Write to MH i2c: F0 00 00 15 27 2B [18:07:58]Write i2c OK [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: F0 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: F0 09 00 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: F0 09 00 15 27 00 00 8A C3 66 5F 7F 2B 66 56 [18:07:58]GetLastDocTimeStamp 1724090852 [18:07:58]current date 1724090880 [18:07:58]FM_GetShiftState [18:07:58]SAM_PROTO_GetShiftState [18:07:58]wFMCommunicate request_size=4 [18:07:58]MH_SAM_APDU [18:07:58]CAPDU: 80 13 01 00 [18:07:58]Write to MH i2c: E2 08 00 16 27 80 13 01 00 00 00 00 00 BA [18:07:58]Write i2c OK [18:07:58]MH_I2C_Read... [18:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:58]Read from MH i2c: E2 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: E2 0E 00 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: E2 0E 00 16 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 71 [18:07:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:07:58]wFMCommunicate OK [18:07:58]SAM_PROTO_GetShiftState done [18:07:58]FM_GetShiftState done [18:07:58]opened in 1724027888 [18:07:58]opened+sec_in_day 1724114288 [18:07:58]quantity*price = 50010 [18:07:58]sum+1 = 50012 [18:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 274 19.08.2024 18:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139439 ФПД: 67368770523023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T180800&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139439&fm=67368770523023&tin=02508201610067®Number=0000000000092569&sum=50000 [18:07:59]StoreToDocumentArchive [18:07:59]shift 452 fd 139439 [18:07:59]save to /storage/0452/doc_00139439 [18:07:59]save last doc name /storage/0452/doc_00139439 to /storage/kkm_last_doc_name [18:07:59]save OK [18:07:59]Clear old archive folders... [18:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:59]tlvbuf is 012DE120 [18:07:59]SAM_PROTO_ClearQueue [18:07:59]wFMCommunicate request_size=4 [18:07:59]MH_SAM_APDU [18:07:59]CAPDU: 80 09 00 00 [18:07:59]Write to MH i2c: E2 08 00 23 27 80 09 00 00 00 00 00 00 BC [18:07:59]Write i2c OK [18:07:59]MH_I2C_Read... [18:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:59]Read from MH i2c: E2 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 23 27 00 90 00 BE [18:07:59]RAPDU: 90 00 [18:07:59]wFMCommunicate OK [18:07:59]SAM_PROTO_ClearQueue done [18:07:59]KKMCreateOFDPacket [18:07:59]OFDProtocolAddRootSTLVToBuf [18:07:59]FM_MakeSignedData [18:07:59]FM_MakeSignedData [18:07:59]SAM_PROTO_SignData [18:07:59]wFMCommunicate request_size=4 [18:07:59]MH_SAM_APDU [18:07:59]CAPDU: 80 0D 01 02 [18:07:59]Write to MH i2c: E2 08 00 24 27 80 0D 01 02 00 00 00 00 C4 [18:07:59]Write i2c OK [18:07:59]MH_I2C_Read... [18:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:59]Read from MH i2c: E2 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 24 27 00 90 00 BF [18:07:59]RAPDU: 90 00 [18:07:59]wFMCommunicate OK [18:07:59]wFMCommunicate request_size=255 [18:07:59]MH_SAM_APDU [18:07:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 00 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 20 02 00 35 04 06 00 3D [18:07:59]Write to MH i2c: E2 02 01 25 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 00 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 20 02 00 35 04 06 00 3D 00 00 CE [18:07:59]Write i2c OK [18:07:59]MH_I2C_Read... [18:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:59]Read from MH i2c: E2 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [18:07:59]RAPDU: 90 00 [18:07:59]wFMCommunicate OK [18:07:59]wFMCommunicate request_size=10 [18:07:59]MH_SAM_APDU [18:07:59]CAPDU: 80 0D 02 02 05 45 83 A2 CF 8F [18:07:59]Write to MH i2c: E2 0D 00 26 27 80 0D 02 02 05 00 45 83 A2 CF 8F 00 00 99 [18:07:59]Write i2c OK [18:07:59]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 03 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [18:08:00]RAPDU: 90 00 [18:08:00]wFMCommunicate OK [18:08:00]wFMCommunicate request_size=4 [18:08:00]MH_SAM_APDU [18:08:00]CAPDU: 80 0D 03 02 [18:08:00]Write to MH i2c: E2 08 00 27 27 80 0D 03 02 00 00 00 00 C9 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 0B 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 0B 00 27 27 00 E0 4D 8F E3 7F F7 EF 70 90 00 3E [18:08:00]RAPDU: E0 4D 8F E3 7F F7 EF 70 90 00 [18:08:00]wFMCommunicate OK [18:08:00]SAM_PROTO_SignData done [18:08:00]FM_MakeSignedData done [18:08:00]CreateOFDProtocolMessage [18:08:00]wFMCommunicate request_size=4 [18:08:00]MH_SAM_APDU [18:08:00]CAPDU: 80 11 00 00 [18:08:00]Write to MH i2c: E2 08 00 28 27 80 11 00 00 00 00 00 00 C9 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 17 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 17 00 28 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 20 [18:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:08:00]wFMCommunicate OK [18:08:00]CreateOFDProtocolMessage done [18:08:00]OFDSenderStorePacket 139439 [18:08:00]StoreOFDPacket docnum=139439 [18:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B 3E 07 01 2F 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 00 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 20 02 00 35 04 06 00 3D 45 83 A2 CF 8F E0 4D 8F E3 7F F7 EF 70 [18:08:00]CheckFolder [18:08:00]dirname=/storage/ofd_packets [18:08:00]CheckFolder done [18:08:00]ProducePacketName [18:08:00]name=ofd_packets/00139439 [18:08:00]NVStorageSaveData ofd_packets/00139439 [18:08:00]File name is /storage/ofd_packets/00139439 [18:08:00]Write 301 bytes [18:08:00]NVStorageSaveData done [18:08:00]OFDSenderStorePacket done [18:08:00]KKMCreateOFDPacket done [18:08:00]NVStorageSaveData kkm_last_timestamp [18:08:00]File name is /storage/kkm_last_timestamp [18:08:00]Write 4 bytes [18:08:00]NVStorageSaveData done [18:08:00]ExternCall_PrintAddStr [18:08:00]wPrintStart [18:08:00]Write to MH i2c: 01 00 00 29 27 50 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 07 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 07 00 29 27 00 00 00 00 00 FF 0F 65 [18:08:00]RasterBufferAndPrint [18:08:00]line Счет N : (1)593281 [18:08:00]line ИНН: 02508201610067 [18:08:00]line Контрольно-Кассовый Чек [18:08:00]line ПРОДАЖА [18:08:00]line ТРК (МРК, ГНК) : 51 [18:08:00]line Товар: 2710124500 [18:08:00]line Аи-95-К-5 [18:08:00]line 6.740 * 74.20 [18:08:00]line = 500.11 [18:08:00]line НДС 12% НСП 1% [18:08:00]line > о реализуемом товаре [18:08:00]line ОКРУГЛЕНИЕ: -0.11 [18:08:00]line ИТОГО: 500.00 [18:08:00]line Внесено: 500.00 [18:08:00]line СДАЧА: 0.00 [18:08:00]line НСП 1% : 4.43 [18:08:00]line НДС 12% : 53.11 [18:08:00]line Наличными: 500.00 [18:08:00]line Безнал.: 0.00 [18:08:00]line Место: АЗС № 136 "Партнер Нефть" [18:08:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:08:00]line СНО: Общий режим [18:08:00]line Чек 274 19.08.2024 18:08 [18:08:00]line Смена: 452 ФФД: 1.0 [18:08:00]line ЗНМ: 0300000067 [18:08:00]line РНМ: 0000000000092569 [18:08:00]line Версия ККМ: 001 [18:08:00]line ФМ: 0000000000871776 [18:08:00]line ФД: 139439 [18:08:00]line ФПД: 67368770523023 [18:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T180800&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139439&fm=67368770523023&tin=02508201610067®Number=0000000000092569&sum=50000 [18:08:00]OFD Sender: Processing packet 139439 [packets to send 137, broken 136] [18:08:00]ProducePacketName [18:08:00]name=ofd_packets/00139439 [18:08:00]OFD Sender: To server: pG, [18:08:00]CommunicateWithHost lk.salyk.kg:30040 [18:08:00]ConnectInit lk.salyk.kg [18:08:00]written 0, free lines is 4095 [18:08:00]Connected sock=11 [18:08: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 37 36 0F 01 00 00 7B 3E 07 01 2F 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 00 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 20 02 00 35 04 06 00 3D 45 83 A2 CF 8F E0 4D 8F E3 7F F7 EF 70 [18:08: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 37 36 4F 00 00 00 6B 0F 47 00 6F 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 20 02 00 F4 03 04 00 95 30 C3 66 B6 04 01 00 00 F0 1B 53 C0 D8 7C 81 4D [18:08:00]CommunicateWithHost err = 0 [18:08:00]CheckOFDResponse [18:08:00]1017 (14) - 77093643461234 [18:08:00]1041 (16) - 0000000000871776 [18:08:00]1040 (4) - 139439 [18:08:00]1012 (4) - 19.08.2024 11:46 [18:08:00]1206 (1) - 0 [18:08:00]OFD Sender: Remove packet 139439 [18:08:00]ProducePacketName [18:08:00]name=ofd_packets/00139439 [18:08:00]NVStorageDeleteData [18:08:00]Write to MH i2c: 01 00 00 54 27 7B [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 07 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 07 00 54 27 00 00 00 00 00 D9 0C 67 [18:08:00]RasterBufferAndPrint [18:08:00]line [18:08:00]line [18:08:00]line [18:08:00]line [18:08:00]line [18:08:00]written 0, free lines is 3297 [18:08:00]MH_Cut [18:08:00]Write to MH i2c: D1 01 00 5B 27 01 54 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: D1 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: D1 01 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: D1 01 00 5B 27 00 53 [18:08:00]Write to MH i2c: 01 00 00 5C 27 83 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:01]OFD Sender: No OFD packet to send [18:08:01]*** Cut start [18:08:01]*** Partial cut [18:08:01]*** CUTSNS_PIN = 1 [18:08:01]*** CUTSNS_PIN = 0 [18:08:01]*** Brake cut motor [18:08:01]Read from MH i2c: 01 [18:08:01]MH_I2C_Read... [18:08:01]*** Stop cut motor [18:08:01]*** Cut end [18:08:01]Read from MH i2c: 01 07 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: 01 07 00 5C 27 00 00 00 00 00 FF 0F 98 [18:08:01]process_action close_receipt done [18:08:01]requested_data is exist [18:08:01]produce_requested_data [18:08:01]requested_item fm.sn is exist - process it [18:08:01]wFMCommunicate request_size=4 [18:08:01]MH_SAM_APDU [18:08:01]CAPDU: 80 11 00 00 [18:08:01]Write to MH i2c: E2 08 00 5D 27 80 11 00 00 00 00 00 00 FE [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:01]Read from MH i2c: E2 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 17 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: E2 17 00 5D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [18:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:08:01]wFMCommunicate OK [18:08:01]requested_item fd.num is exist - process it [18:08:01]SAM_PROTO_GetFieldsCounters [18:08:01]wFMCommunicate request_size=4 [18:08:01]MH_SAM_APDU [18:08:01]CAPDU: 80 13 00 00 [18:08:01]Write to MH i2c: E2 08 00 5E 27 80 13 00 00 00 00 00 00 01 [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:02]Read from MH i2c: E2 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 62 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 62 00 5E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 20 02 00 0E 04 04 00 C4 01 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 FB [18:08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 20 02 00 0E 04 04 00 C4 01 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 [18:08:02]wFMCommunicate OK [18:08:02]SAM_PROTO_GetFieldsCounters done [18:08:02]requested_item shift.num is exist - process it [18:08:02]requested_item shift.opened is exist - process it [18:08:02]req_shift_opened [18:08:02]FM_GetShiftState [18:08:02]SAM_PROTO_GetShiftState [18:08:02]wFMCommunicate request_size=4 [18:08:02]MH_SAM_APDU [18:08:02]CAPDU: 80 13 01 00 [18:08:02]Write to MH i2c: E2 08 00 5F 27 80 13 01 00 00 00 00 00 03 [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:02]Read from MH i2c: E2 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 0E 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 0E 00 5F 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BA [18:08:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:08:02]wFMCommunicate OK [18:08:02]SAM_PROTO_GetShiftState done [18:08:02]FM_GetShiftState done [18:08:02]req_shift_opened done [18:08:02]requested_item shift.open_date is exist - process it [18:08:02]req_shift_open_date [18:08:02]req_shift_open_date done [18:08:02]produce_requested_data done [18:08:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139439,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:08:02]process_action_free close_receipt [18:08:02]json_value_free [18:08:02]json_value_free done [18:08:02]process_json_proto returns [18:08:02]Send response to host [18:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139439,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:08:02]free response buf [18:08:02]execute_script done [18:08:02]execute_script returns [18:08:02]free content buf [18:08:02]Sock 8.Close socket [18:08:02]Sock 8.Thread stoped [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:09:59]accept exits with 9 [18:09:59]New connection [18:09:59]New thread 3066674532 created [18:09:59]Thread 3066817892 joined [18:09:59]Waiting for new connection... [18:09:59] Sock 9.Parse request [18:09:59]Sock 9.Check first char [18:09:59]Sock 9.First char is OK [18:09:59]request: POST /json_proto HTTP/1.0 [18:09:59]Method: POST [18:09:59]URL: /json_proto [18:09:59]Method is POST - this is cgi request [18:09:59]url: /json_proto [18:09:59]query_string will be loaded in cgi processing [18:09:59]execute_cgi json_proto POST (null) [18:09:59]execute_cgi path=json_proto method=POST [18:09:59]POST find Content-Length [18:09:59]Host: 172.17.45.67:8080 [18:09:59]Content-Length: 677 [18:09:59]Content-Type: application/json [18:09:59] [18:09:59]POST finish read [18:09:59]Found Content-Length = 677 [18:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:59]execute_script... [18:09: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)593282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:59]POST & json_proto [18:09:59]process_json_proto [18:09:59]json parsed OK: [18:09:59]protocol is kg_v1.0 [18:09:59]action value=close_receipt [18:09:59]process_action close_receipt [18:09:59]cmd_close_receipt [18:09:59]MH_GetDate [18:09:59]Write to MH i2c: F0 00 00 60 27 76 [18:09:59]Write i2c OK [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: F0 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: F0 09 00 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: F0 09 00 60 27 00 79 8A C3 66 5F 7F 2B 66 1A [18:09:59]GetLastDocTimeStamp 1724090880 [18:09:59]current date 1724091001 [18:09:59]FM_GetShiftState [18:09:59]SAM_PROTO_GetShiftState [18:09:59]wFMCommunicate request_size=4 [18:09:59]MH_SAM_APDU [18:09:59]CAPDU: 80 13 01 00 [18:09:59]Write to MH i2c: E2 08 00 61 27 80 13 01 00 00 00 00 00 05 [18:09:59]Write i2c OK [18:09:59]MH_I2C_Read... [18:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:59]Read from MH i2c: E2 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: E2 0E 00 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: E2 0E 00 61 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BC [18:09:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:09:59]wFMCommunicate OK [18:09:59]SAM_PROTO_GetShiftState done [18:09:59]FM_GetShiftState done [18:09:59]opened in 1724027888 [18:09:59]opened+sec_in_day 1724114288 [18:09:59]quantity*price = 30035 [18:09:59]sum+1 = 30036 [18:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 275 19.08.2024 18:10 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139440 ФПД: 166631695121906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181001&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139440&fm=166631695121906&tin=02508201610067®Number=0000000000092569&sum=30000 [18:10:00]StoreToDocumentArchive [18:10:00]shift 452 fd 139440 [18:10:00]save to /storage/0452/doc_00139440 [18:10:00]save last doc name /storage/0452/doc_00139440 to /storage/kkm_last_doc_name [18:10:00]save OK [18:10:00]Clear old archive folders... [18:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:00]tlvbuf is 011E5340 [18:10:00]SAM_PROTO_ClearQueue [18:10:00]wFMCommunicate request_size=4 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 09 00 00 [18:10:00]Write to MH i2c: E2 08 00 6E 27 80 09 00 00 00 00 00 00 07 [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 6E 27 00 90 00 09 [18:10:01]RAPDU: 90 00 [18:10:01]wFMCommunicate OK [18:10:01]SAM_PROTO_ClearQueue done [18:10:01]KKMCreateOFDPacket [18:10:01]OFDProtocolAddRootSTLVToBuf [18:10:01]FM_MakeSignedData [18:10:01]FM_MakeSignedData [18:10:01]SAM_PROTO_SignData [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 0D 01 02 [18:10:01]Write to MH i2c: E2 08 00 6F 27 80 0D 01 02 00 00 00 00 0F [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 6F 27 00 90 00 0A [18:10:01]RAPDU: 90 00 [18:10:01]wFMCommunicate OK [18:10:01]wFMCommunicate request_size=255 [18:10:01]MH_SAM_APDU [18:10: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 79 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 20 02 00 35 04 06 00 97 [18:10:01]Write to MH i2c: E2 02 01 70 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 79 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 20 02 00 35 04 06 00 97 00 00 25 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]OFD Sender: No OFD packet to send [18:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 70 27 00 90 00 0B [18:10:01]RAPDU: 90 00 [18:10:01]wFMCommunicate OK [18:10:01]wFMCommunicate request_size=10 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 0D 02 02 05 8C F6 FE FD F2 [18:10:01]Write to MH i2c: E2 0D 00 71 27 80 0D 02 02 05 00 8C F6 FE FD F2 00 00 8B [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 71 27 00 90 00 0C [18:10:01]RAPDU: 90 00 [18:10:01]wFMCommunicate OK [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 0D 03 02 [18:10:01]Write to MH i2c: E2 08 00 72 27 80 0D 03 02 00 00 00 00 14 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0B 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0B 00 72 27 00 7F BD 82 B0 F3 7C FE FE 90 00 EE [18:10:01]RAPDU: 7F BD 82 B0 F3 7C FE FE 90 00 [18:10:01]wFMCommunicate OK [18:10:01]SAM_PROTO_SignData done [18:10:01]FM_MakeSignedData done [18:10:01]CreateOFDProtocolMessage [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 11 00 00 [18:10:01]Write to MH i2c: E2 08 00 73 27 80 11 00 00 00 00 00 00 14 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 17 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 17 00 73 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6B [18:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:10:01]wFMCommunicate OK [18:10:01]CreateOFDProtocolMessage done [18:10:01]OFDSenderStorePacket 139440 [18:10:01]StoreOFDPacket docnum=139440 [18:10:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DB F4 07 01 09 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 79 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 20 02 00 35 04 06 00 97 8C F6 FE FD F2 7F BD 82 B0 F3 7C FE FE [18:10:01]CheckFolder [18:10:01]dirname=/storage/ofd_packets [18:10:01]CheckFolder done [18:10:01]ProducePacketName [18:10:01]name=ofd_packets/00139440 [18:10:01]NVStorageSaveData ofd_packets/00139440 [18:10:01]File name is /storage/ofd_packets/00139440 [18:10:01]Write 301 bytes [18:10:01]NVStorageSaveData done [18:10:01]OFDSenderStorePacket done [18:10:01]KKMCreateOFDPacket done [18:10:01]NVStorageSaveData kkm_last_timestamp [18:10:01]File name is /storage/kkm_last_timestamp [18:10:01]Write 4 bytes [18:10:01]NVStorageSaveData done [18:10:01]ExternCall_PrintAddStr [18:10:01]wPrintStart [18:10:01]Write to MH i2c: 01 00 00 74 27 9B [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 74 27 00 00 00 00 00 FF 0F B0 [18:10:01]RasterBufferAndPrint [18:10:01]line Счет N : (1)593282 [18:10:01]line ИНН: 02508201610067 [18:10:01]line Контрольно-Кассовый Чек [18:10:01]line ПРОДАЖА [18:10:01]line ТРК (МРК, ГНК) : 62 [18:10:01]line Товар: 2710124130 [18:10:01]line Аи-92-К-5 [18:10:01]line 4.430 * 67.80 [18:10:01]line = 300.35 [18:10:01]line НДС 12% НСП 1% [18:10:01]line > о реализуемом товаре [18:10:01]line ОКРУГЛЕНИЕ: -0.35 [18:10:01]line ИТОГО: 300.00 [18:10:01]line Внесено: 300.00 [18:10:01]line СДАЧА: 0.00 [18:10:01]line НСП 1% : 2.66 [18:10:01]line НДС 12% : 31.90 [18:10:01]line Наличными: 300.00 [18:10:01]line Безнал.: 0.00 [18:10:01]line Место: АЗС № 136 "Партнер Нефть" [18:10:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:10:01]line СНО: Общий режим [18:10:01]line Чек 275 19.08.2024 18:10 [18:10:01]line Смена: 452 ФФД: 1.0 [18:10:01]line ЗНМ: 0300000067 [18:10:01]line РНМ: 0000000000092569 [18:10:01]line Версия ККМ: 001 [18:10:01]line ФМ: 0000000000871776 [18:10:01]line ФД: 139440 [18:10:01]line ФПД: 166631695121906 [18:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181001&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139440&fm=166631695121906&tin=02508201610067®Number=0000000000092569&sum=30000 [18:10:01]OFD Sender: Processing packet 139440 [packets to send 137, broken 136] [18:10:01]ProducePacketName [18:10:01]name=ofd_packets/00139440 [18:10:01]OFD Sender: To server: pG, [18:10:01]CommunicateWithHost lk.salyk.kg:30040 [18:10:01]ConnectInit lk.salyk.kg [18:10:01]written 0, free lines is 4095 [18:10:01]Connected sock=10 [18:10: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 37 36 0F 01 00 00 DB F4 07 01 09 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 79 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 20 02 00 35 04 06 00 97 8C F6 FE FD F2 7F BD 82 B0 F3 7C FE FE [18:10: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 37 36 4F 00 00 00 CA 40 47 00 96 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 20 02 00 F4 03 04 00 0F 31 C3 66 B6 04 01 00 00 50 65 92 F6 D9 C0 A3 DA [18:10:02]CommunicateWithHost err = 0 [18:10:02]CheckOFDResponse [18:10:02]1017 (14) - 77093643461234 [18:10:02]1041 (16) - 0000000000871776 [18:10:02]1040 (4) - 139440 [18:10:02]1012 (4) - 19.08.2024 11:48 [18:10:02]1206 (1) - 0 [18:10:02]OFD Sender: Remove packet 139440 [18:10:02]ProducePacketName [18:10:02]name=ofd_packets/00139440 [18:10:02]NVStorageDeleteData [18:10:02]Write to MH i2c: 01 00 00 9F 27 C6 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 07 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 07 00 9F 27 00 00 00 00 00 CD 0C A6 [18:10:02]RasterBufferAndPrint [18:10:02]line [18:10:02]line [18:10:02]line [18:10:02]line [18:10:02]line [18:10:02]written 0, free lines is 3284 [18:10:02]MH_Cut [18:10:02]Write to MH i2c: D1 01 00 A6 27 01 9F [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: D1 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: D1 01 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: D1 01 00 A6 27 00 9E [18:10:02]Write to MH i2c: 01 00 00 A7 27 CE [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]OFD Sender: No OFD packet to send [18:10:03]*** Cut start [18:10:03]*** Partial cut [18:10:03]*** CUTSNS_PIN = 1 [18:10:03]*** CUTSNS_PIN = 0 [18:10:03]*** Brake cut motor [18:10:03]Read from MH i2c: 01 [18:10:03]MH_I2C_Read... [18:10:03]*** Stop cut motor [18:10:03]*** Cut end [18:10:03]Read from MH i2c: 01 07 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 07 00 A7 27 00 00 00 00 00 FF 0F E3 [18:10:03]process_action close_receipt done [18:10:03]requested_data is exist [18:10:03]produce_requested_data [18:10:03]requested_item fm.sn is exist - process it [18:10:03]wFMCommunicate request_size=4 [18:10:03]MH_SAM_APDU [18:10:03]CAPDU: 80 11 00 00 [18:10:03]Write to MH i2c: E2 08 00 A8 27 80 11 00 00 00 00 00 00 49 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 17 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 17 00 A8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [18:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:10:03]wFMCommunicate OK [18:10:03]requested_item fd.num is exist - process it [18:10:03]SAM_PROTO_GetFieldsCounters [18:10:03]wFMCommunicate request_size=4 [18:10:03]MH_SAM_APDU [18:10:03]CAPDU: 80 13 00 00 [18:10:03]Write to MH i2c: E2 08 00 A9 27 80 13 00 00 00 00 00 00 4C [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 62 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 62 00 A9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 20 02 00 0E 04 04 00 C4 01 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 4A [18:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 20 02 00 0E 04 04 00 C4 01 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 [18:10:03]wFMCommunicate OK [18:10:03]SAM_PROTO_GetFieldsCounters done [18:10:03]requested_item shift.num is exist - process it [18:10:03]requested_item shift.opened is exist - process it [18:10:03]req_shift_opened [18:10:03]FM_GetShiftState [18:10:03]SAM_PROTO_GetShiftState [18:10:03]wFMCommunicate request_size=4 [18:10:03]MH_SAM_APDU [18:10:03]CAPDU: 80 13 01 00 [18:10:03]Write to MH i2c: E2 08 00 AA 27 80 13 01 00 00 00 00 00 4E [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 0E 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 0E 00 AA 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 05 [18:10:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:10:03]wFMCommunicate OK [18:10:03]SAM_PROTO_GetShiftState done [18:10:03]FM_GetShiftState done [18:10:03]req_shift_opened done [18:10:03]requested_item shift.open_date is exist - process it [18:10:03]req_shift_open_date [18:10:03]req_shift_open_date done [18:10:03]produce_requested_data done [18:10:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139440,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:10:03]process_action_free close_receipt [18:10:03]json_value_free [18:10:03]json_value_free done [18:10:03]process_json_proto returns [18:10:03]Send response to host [18:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139440,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:10:03]free response buf [18:10:03]execute_script done [18:10:03]execute_script returns [18:10:03]free content buf [18:10:03]Sock 9.Close socket [18:10:03]Sock 9.Thread stoped [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10: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]accept exits with 8 [18:12:07]New connection [18:12:07]New thread 3066817892 created [18:12:07]Thread 3066674532 joined [18:12:07]Waiting for new connection... [18:12:07] Sock 8.Parse request [18:12:07]Sock 8.Check first char [18:12:07]Sock 8.First char is OK [18:12:07]request: POST /json_proto HTTP/1.0 [18:12:07]Method: POST [18:12:07]URL: /json_proto [18:12:07]Method is POST - this is cgi request [18:12:07]url: /json_proto [18:12:07]query_string will be loaded in cgi processing [18:12:07]execute_cgi json_proto POST (null) [18:12:07]execute_cgi path=json_proto method=POST [18:12:07]POST find Content-Length [18:12:07]Host: 172.17.45.67:8080 [18:12:07]Content-Length: 677 [18:12:07]Content-Type: application/json [18:12:07] [18:12:07]POST finish read [18:12:07]Found Content-Length = 677 [18:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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:12:07]execute_script... [18:12: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)593283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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:12:07]POST & json_proto [18:12:07]process_json_proto [18:12:07]json parsed OK: [18:12:07]protocol is kg_v1.0 [18:12:07]action value=close_receipt [18:12:07]process_action close_receipt [18:12:07]cmd_close_receipt [18:12:07]MH_GetDate [18:12:07]Write to MH i2c: F0 00 00 AB 27 C1 [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: F0 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: F0 09 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: F0 09 00 AB 27 00 F9 8A C3 66 5F 7F 2B 66 E5 [18:12:07]GetLastDocTimeStamp 1724091001 [18:12:07]current date 1724091129 [18:12:07]FM_GetShiftState [18:12:07]SAM_PROTO_GetShiftState [18:12:07]wFMCommunicate request_size=4 [18:12:07]MH_SAM_APDU [18:12:07]CAPDU: 80 13 01 00 [18:12:07]Write to MH i2c: E2 08 00 AC 27 80 13 01 00 00 00 00 00 50 [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 0E 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 0E 00 AC 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 07 [18:12:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:12:07]wFMCommunicate OK [18:12:07]SAM_PROTO_GetShiftState done [18:12:07]FM_GetShiftState done [18:12:07]opened in 1724027888 [18:12:07]opened+sec_in_day 1724114288 [18:12:07]quantity*price = 35052 [18:12:07]sum+1 = 35054 [18:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 276 19.08.2024 18:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139441 ФПД: 228881976724813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181209&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139441&fm=228881976724813&tin=02508201610067®Number=0000000000092569&sum=35000 [18:12:08]StoreToDocumentArchive [18:12:08]shift 452 fd 139441 [18:12:08]save to /storage/0452/doc_00139441 [18:12:08]save last doc name /storage/0452/doc_00139441 to /storage/kkm_last_doc_name [18:12:08]save OK [18:12:08]Clear old archive folders... [18:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:08]tlvbuf is 01252650 [18:12:08]SAM_PROTO_ClearQueue [18:12:08]wFMCommunicate request_size=4 [18:12:08]MH_SAM_APDU [18:12:08]CAPDU: 80 09 00 00 [18:12:08]Write to MH i2c: E2 08 00 B9 27 80 09 00 00 00 00 00 00 52 [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:08]Read from MH i2c: E2 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 03 00 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 03 00 B9 27 00 90 00 54 [18:12:08]RAPDU: 90 00 [18:12:08]wFMCommunicate OK [18:12:08]SAM_PROTO_ClearQueue done [18:12:08]KKMCreateOFDPacket [18:12:08]OFDProtocolAddRootSTLVToBuf [18:12:08]FM_MakeSignedData [18:12:08]FM_MakeSignedData [18:12:08]SAM_PROTO_SignData [18:12:08]wFMCommunicate request_size=4 [18:12:08]MH_SAM_APDU [18:12:08]CAPDU: 80 0D 01 02 [18:12:08]Write to MH i2c: E2 08 00 BA 27 80 0D 01 02 00 00 00 00 5A [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:08]Read from MH i2c: E2 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 03 00 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 03 00 BA 27 00 90 00 55 [18:12:08]RAPDU: 90 00 [18:12:08]wFMCommunicate OK [18:12:08]wFMCommunicate request_size=255 [18:12:08]MH_SAM_APDU [18:12: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 14 01 00 00 F4 03 04 00 F9 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 20 02 00 35 04 06 00 D0 [18:12:08]Write to MH i2c: E2 02 01 BB 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 14 01 00 00 F4 03 04 00 F9 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 20 02 00 35 04 06 00 D0 00 00 37 [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:08]Read from MH i2c: E2 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 03 00 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 03 00 BB 27 00 90 00 56 [18:12:08]RAPDU: 90 00 [18:12:08]wFMCommunicate OK [18:12:08]wFMCommunicate request_size=10 [18:12:08]MH_SAM_APDU [18:12:08]CAPDU: 80 0D 02 02 05 2A BC EB 0D 4D [18:12:08]Write to MH i2c: E2 0D 00 BC 27 80 0D 02 02 05 00 2A BC EB 0D 4D 00 00 92 [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:08]Read from MH i2c: E2 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 03 00 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 03 00 BC 27 00 90 00 57 [18:12:08]RAPDU: 90 00 [18:12:08]wFMCommunicate OK [18:12:08]wFMCommunicate request_size=4 [18:12:08]MH_SAM_APDU [18:12:08]CAPDU: 80 0D 03 02 [18:12:08]Write to MH i2c: E2 08 00 BD 27 80 0D 03 02 00 00 00 00 5F [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:08]Read from MH i2c: E2 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 0B 00 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 0B 00 BD 27 00 0A B0 E2 60 41 8E E4 CA 90 00 D9 [18:12:08]RAPDU: 0A B0 E2 60 41 8E E4 CA 90 00 [18:12:08]wFMCommunicate OK [18:12:08]SAM_PROTO_SignData done [18:12:08]FM_MakeSignedData done [18:12:08]CreateOFDProtocolMessage [18:12:08]wFMCommunicate request_size=4 [18:12:08]MH_SAM_APDU [18:12:08]CAPDU: 80 11 00 00 [18:12:08]Write to MH i2c: E2 08 00 BE 27 80 11 00 00 00 00 00 00 5F [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:08]Read from MH i2c: E2 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 17 00 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: E2 17 00 BE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B6 [18:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:12:08]wFMCommunicate OK [18:12:08]CreateOFDProtocolMessage done [18:12:08]OFDSenderStorePacket 139441 [18:12:08]StoreOFDPacket docnum=139441 [18:12:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D0 18 07 01 7F 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 14 01 00 00 F4 03 04 00 F9 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 20 02 00 35 04 06 00 D0 2A BC EB 0D 4D 0A B0 E2 60 41 8E E4 CA [18:12:08]CheckFolder [18:12:08]dirname=/storage/ofd_packets [18:12:08]CheckFolder done [18:12:08]ProducePacketName [18:12:08]name=ofd_packets/00139441 [18:12:08]NVStorageSaveData ofd_packets/00139441 [18:12:08]File name is /storage/ofd_packets/00139441 [18:12:08]Write 301 bytes [18:12:08]NVStorageSaveData done [18:12:08]OFDSenderStorePacket done [18:12:08]KKMCreateOFDPacket done [18:12:08]NVStorageSaveData kkm_last_timestamp [18:12:08]File name is /storage/kkm_last_timestamp [18:12:08]Write 4 bytes [18:12:08]NVStorageSaveData done [18:12:08]ExternCall_PrintAddStr [18:12:08]wPrintStart [18:12:08]Write to MH i2c: 01 00 00 BF 27 E6 [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: 01 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: 01 07 00 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: 01 07 00 BF 27 00 00 00 00 00 FF 0F FB [18:12:08]RasterBufferAndPrint [18:12:08]line Счет N : (1)593283 [18:12:08]line ИНН: 02508201610067 [18:12:08]line Контрольно-Кассовый Чек [18:12:08]line ПРОДАЖА [18:12:08]line ТРК (МРК, ГНК) : 52 [18:12:08]line Товар: 2710124130 [18:12:08]line Аи-92-К-5 [18:12:08]line 5.170 * 67.80 [18:12:08]line = 350.53 [18:12:08]line НДС 12% НСП 1% [18:12:08]line > о реализуемом товаре [18:12:08]line ОКРУГЛЕНИЕ: -0.53 [18:12:08]line ИТОГО: 350.00 [18:12:08]line Внесено: 350.00 [18:12:08]line СДАЧА: 0.00 [18:12:08]line НСП 1% : 3.10 [18:12:08]line НДС 12% : 37.22 [18:12:08]line Наличными: 350.00 [18:12:08]line Безнал.: 0.00 [18:12:08]line Место: АЗС № 136 "Партнер Нефть" [18:12:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:12:08]line СНО: Общий режим [18:12:08]line Чек 276 19.08.2024 18:12 [18:12:08]line Смена: 452 ФФД: 1.0 [18:12:08]line ЗНМ: 0300000067 [18:12:08]line РНМ: 0000000000092569 [18:12:08]line Версия ККМ: 001 [18:12:08]line ФМ: 0000000000871776 [18:12:08]line ФД: 139441 [18:12:08]line ФПД: 228881976724813 [18:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181209&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139441&fm=228881976724813&tin=02508201610067®Number=0000000000092569&sum=35000 [18:12:09]OFD Sender: Processing packet 139441 [packets to send 137, broken 136] [18:12:09]ProducePacketName [18:12:09]name=ofd_packets/00139441 [18:12:09]OFD Sender: To server: pG, [18:12:09]CommunicateWithHost lk.salyk.kg:30040 [18:12:09]ConnectInit lk.salyk.kg [18:12:09]written 0, free lines is 4095 [18:12:09]Connected sock=9 [18:12: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 37 36 0F 01 00 00 D0 18 07 01 7F 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 14 01 00 00 F4 03 04 00 F9 8A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 20 02 00 35 04 06 00 D0 2A BC EB 0D 4D 0A B0 E2 60 41 8E E4 CA [18:12: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 37 36 4F 00 00 00 B7 64 47 00 4C 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 20 02 00 F4 03 04 00 8E 31 C3 66 B6 04 01 00 00 CB 8D AE 51 AD AA D3 2D [18:12:09]CommunicateWithHost err = 0 [18:12:09]CheckOFDResponse [18:12:09]1017 (14) - 77093643461234 [18:12:09]1041 (16) - 0000000000871776 [18:12:09]1040 (4) - 139441 [18:12:09]1012 (4) - 19.08.2024 11:50 [18:12:09]1206 (1) - 0 [18:12:09]OFD Sender: Remove packet 139441 [18:12:09]ProducePacketName [18:12:09]name=ofd_packets/00139441 [18:12:09]NVStorageDeleteData [18:12:09]Write to MH i2c: 01 00 00 EA 27 11 [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 07 00 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 07 00 EA 27 00 00 00 00 00 EC 0C 10 [18:12:09]RasterBufferAndPrint [18:12:09]line [18:12:09]line [18:12:09]line [18:12:09]line [18:12:09]line [18:12:09]written 0, free lines is 3314 [18:12:09]MH_Cut [18:12:09]Write to MH i2c: D1 01 00 F1 27 01 EA [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: D1 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: D1 01 00 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: D1 01 00 F1 27 00 E9 [18:12:09]Write to MH i2c: 01 00 00 F2 27 19 [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:10]OFD Sender: No OFD packet to send [18:12:10]*** Cut start [18:12:10]*** Partial cut [18:12:10]*** CUTSNS_PIN = 1 [18:12:10]*** CUTSNS_PIN = 0 [18:12:10]*** Brake cut motor [18:12:11]Read from MH i2c: 01 [18:12:11]MH_I2C_Read... [18:12:11]*** Stop cut motor [18:12:11]*** Cut end [18:12:11]Read from MH i2c: 01 07 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: 01 07 00 F2 27 00 00 00 00 00 FF 0F 2E [18:12:11]process_action close_receipt done [18:12:11]requested_data is exist [18:12:11]produce_requested_data [18:12:11]requested_item fm.sn is exist - process it [18:12:11]wFMCommunicate request_size=4 [18:12:11]MH_SAM_APDU [18:12:11]CAPDU: 80 11 00 00 [18:12:11]Write to MH i2c: E2 08 00 F3 27 80 11 00 00 00 00 00 00 94 [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 17 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 17 00 F3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [18:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:12:11]wFMCommunicate OK [18:12:11]requested_item fd.num is exist - process it [18:12:11]SAM_PROTO_GetFieldsCounters [18:12:11]wFMCommunicate request_size=4 [18:12:11]MH_SAM_APDU [18:12:11]CAPDU: 80 13 00 00 [18:12:11]Write to MH i2c: E2 08 00 F4 27 80 13 00 00 00 00 00 00 97 [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 62 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 62 00 F4 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 20 02 00 0E 04 04 00 C4 01 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 99 [18:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 20 02 00 0E 04 04 00 C4 01 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 [18:12:11]wFMCommunicate OK [18:12:11]SAM_PROTO_GetFieldsCounters done [18:12:11]requested_item shift.num is exist - process it [18:12:11]requested_item shift.opened is exist - process it [18:12:11]req_shift_opened [18:12:11]FM_GetShiftState [18:12:11]SAM_PROTO_GetShiftState [18:12:11]wFMCommunicate request_size=4 [18:12:11]MH_SAM_APDU [18:12:11]CAPDU: 80 13 01 00 [18:12:11]Write to MH i2c: E2 08 00 F5 27 80 13 01 00 00 00 00 00 99 [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 0E 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 0E 00 F5 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 50 [18:12:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:12:11]wFMCommunicate OK [18:12:11]SAM_PROTO_GetShiftState done [18:12:11]FM_GetShiftState done [18:12:11]req_shift_opened done [18:12:11]requested_item shift.open_date is exist - process it [18:12:11]req_shift_open_date [18:12:11]req_shift_open_date done [18:12:11]produce_requested_data done [18:12:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139441,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:12:11]process_action_free close_receipt [18:12:11]json_value_free [18:12:11]json_value_free done [18:12:11]process_json_proto returns [18:12:11]Send response to host [18:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139441,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:12:11]free response buf [18:12:11]execute_script done [18:12:11]execute_script returns [18:12:11]free content buf [18:12:11]Sock 8.Close socket [18:12:11]Sock 8.Thread stoped [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:36]accept exits with 10 [18:12:36]New connection [18:12:36]New thread 3066674532 created [18:12:36]Thread 3066817892 joined [18:12:36]Waiting for new connection... [18:12:36] Sock 10.Parse request [18:12:36]Sock 10.Check first char [18:12:36]Sock 10.First char is OK [18:12:36]request: POST /json_proto HTTP/1.0 [18:12:36]Method: POST [18:12:36]URL: /json_proto [18:12:36]Method is POST - this is cgi request [18:12:36]url: /json_proto [18:12:36]query_string will be loaded in cgi processing [18:12:36]execute_cgi json_proto POST (null) [18:12:36]execute_cgi path=json_proto method=POST [18:12:36]POST find Content-Length [18:12:36]Host: 172.17.45.67:8080 [18:12:36]Content-Length: 678 [18:12:36]Content-Type: application/json [18:12:36] [18:12:36]POST finish read [18:12:36]Found Content-Length = 678 [18:12:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:12:36]execute_script... [18:12: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)593284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:12:36]POST & json_proto [18:12:36]process_json_proto [18:12:36]json parsed OK: [18:12:36]protocol is kg_v1.0 [18:12:36]action value=close_receipt [18:12:36]process_action close_receipt [18:12:36]cmd_close_receipt [18:12:36]MH_GetDate [18:12:36]Write to MH i2c: F0 00 00 F6 27 0C [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: F0 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: F0 09 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: F0 09 00 F6 27 00 16 8B C3 66 5F 7F 2B 66 4E [18:12:36]GetLastDocTimeStamp 1724091129 [18:12:36]current date 1724091158 [18:12:36]FM_GetShiftState [18:12:36]SAM_PROTO_GetShiftState [18:12:36]wFMCommunicate request_size=4 [18:12:36]MH_SAM_APDU [18:12:36]CAPDU: 80 13 01 00 [18:12:36]Write to MH i2c: E2 08 00 F7 27 80 13 01 00 00 00 00 00 9B [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:36]Read from MH i2c: E2 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 0E 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: E2 0E 00 F7 27 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 52 [18:12:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:12:36]wFMCommunicate OK [18:12:36]SAM_PROTO_GetShiftState done [18:12:36]FM_GetShiftState done [18:12:36]opened in 1724027888 [18:12:36]opened+sec_in_day 1724114288 [18:12:36]quantity*price = 70037 [18:12:36]sum+1 = 70038 [18:12:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 277 19.08.2024 18:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139442 ФПД: 102585978046836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181238&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139442&fm=102585978046836&tin=02508201610067®Number=0000000000092569&sum=70000 [18:12:37]StoreToDocumentArchive [18:12:37]shift 452 fd 139442 [18:12:37]save to /storage/0452/doc_00139442 [18:12:37]save last doc name /storage/0452/doc_00139442 to /storage/kkm_last_doc_name [18:12:37]save OK [18:12:37]Clear old archive folders... [18:12:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:37]tlvbuf is 01237830 [18:12:37]SAM_PROTO_ClearQueue [18:12:37]wFMCommunicate request_size=4 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 09 00 00 [18:12:37]Write to MH i2c: E2 08 00 04 28 80 09 00 00 00 00 00 00 9E [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 03 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 03 00 04 28 00 90 00 A0 [18:12:37]RAPDU: 90 00 [18:12:37]wFMCommunicate OK [18:12:37]SAM_PROTO_ClearQueue done [18:12:37]KKMCreateOFDPacket [18:12:37]OFDProtocolAddRootSTLVToBuf [18:12:37]FM_MakeSignedData [18:12:37]FM_MakeSignedData [18:12:37]SAM_PROTO_SignData [18:12:37]wFMCommunicate request_size=4 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 0D 01 02 [18:12:37]Write to MH i2c: E2 08 00 05 28 80 0D 01 02 00 00 00 00 A6 [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 03 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 03 00 05 28 00 90 00 A1 [18:12:37]RAPDU: 90 00 [18:12:37]wFMCommunicate OK [18:12:37]wFMCommunicate request_size=255 [18:12:37]MH_SAM_APDU [18:12: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 15 01 00 00 F4 03 04 00 16 8B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 20 02 00 35 04 06 00 5D [18:12:37]Write to MH i2c: E2 02 01 06 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 15 01 00 00 F4 03 04 00 16 8B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 20 02 00 35 04 06 00 5D 00 00 EC [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 03 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 03 00 06 28 00 90 00 A2 [18:12:37]RAPDU: 90 00 [18:12:37]wFMCommunicate OK [18:12:37]wFMCommunicate request_size=10 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 0D 02 02 05 4D 28 C7 C9 74 [18:12:37]Write to MH i2c: E2 0D 00 07 28 80 0D 02 02 05 00 4D 28 C7 C9 74 00 00 2C [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 03 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 03 00 07 28 00 90 00 A3 [18:12:37]RAPDU: 90 00 [18:12:37]wFMCommunicate OK [18:12:37]wFMCommunicate request_size=4 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 0D 03 02 [18:12:37]Write to MH i2c: E2 08 00 08 28 80 0D 03 02 00 00 00 00 AB [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 0B 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 0B 00 08 28 00 1D A6 53 43 E3 F9 C5 16 90 00 BC [18:12:37]RAPDU: 1D A6 53 43 E3 F9 C5 16 90 00 [18:12:37]wFMCommunicate OK [18:12:37]SAM_PROTO_SignData done [18:12:37]FM_MakeSignedData done [18:12:37]CreateOFDProtocolMessage [18:12:37]wFMCommunicate request_size=4 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 11 00 00 [18:12:37]Write to MH i2c: E2 08 00 09 28 80 11 00 00 00 00 00 00 AB [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 17 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 17 00 09 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 02 [18:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:12:37]wFMCommunicate OK [18:12:37]CreateOFDProtocolMessage done [18:12:37]OFDSenderStorePacket 139442 [18:12:37]StoreOFDPacket docnum=139442 [18:12:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EE 8A 07 01 90 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 15 01 00 00 F4 03 04 00 16 8B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 20 02 00 35 04 06 00 5D 4D 28 C7 C9 74 1D A6 53 43 E3 F9 C5 16 [18:12:37]CheckFolder [18:12:37]dirname=/storage/ofd_packets [18:12:37]CheckFolder done [18:12:37]ProducePacketName [18:12:37]name=ofd_packets/00139442 [18:12:37]NVStorageSaveData ofd_packets/00139442 [18:12:37]File name is /storage/ofd_packets/00139442 [18:12:37]Write 301 bytes [18:12:37]NVStorageSaveData done [18:12:37]OFDSenderStorePacket done [18:12:37]KKMCreateOFDPacket done [18:12:37]NVStorageSaveData kkm_last_timestamp [18:12:37]File name is /storage/kkm_last_timestamp [18:12:37]Write 4 bytes [18:12:37]NVStorageSaveData done [18:12:37]ExternCall_PrintAddStr [18:12:37]wPrintStart [18:12:37]Write to MH i2c: 01 00 00 0A 28 32 [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: 01 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: 01 07 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: 01 07 00 0A 28 00 00 00 00 00 FF 0F 47 [18:12:37]RasterBufferAndPrint [18:12:37]line Счет N : (1)593284 [18:12:37]line ИНН: 02508201610067 [18:12:37]line Контрольно-Кассовый Чек [18:12:37]line ПРОДАЖА [18:12:37]line ТРК (МРК, ГНК) : 62 [18:12:37]line Товар: 2710124130 [18:12:37]line Аи-92-К-5 [18:12:37]line 10.330 * 67.80 [18:12:37]line = 700.37 [18:12:37]line НДС 12% НСП 1% [18:12:37]line > о реализуемом товаре [18:12:37]line ОКРУГЛЕНИЕ: -0.37 [18:12:37]line ИТОГО: 700.00 [18:12:37]line Внесено: 700.00 [18:12:37]line СДАЧА: 0.00 [18:12:37]line НСП 1% : 6.20 [18:12:37]line НДС 12% : 74.38 [18:12:37]line Наличными: 700.00 [18:12:37]line Безнал.: 0.00 [18:12:37]line Место: АЗС № 136 "Партнер Нефть" [18:12:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:12:37]line СНО: Общий режим [18:12:37]line Чек 277 19.08.2024 18:12 [18:12:37]line Смена: 452 ФФД: 1.0 [18:12:37]line ЗНМ: 0300000067 [18:12:37]line РНМ: 0000000000092569 [18:12:37]line Версия ККМ: 001 [18:12:37]line ФМ: 0000000000871776 [18:12:37]line ФД: 139442 [18:12:37]line ФПД: 102585978046836 [18:12:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181238&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139442&fm=102585978046836&tin=02508201610067®Number=0000000000092569&sum=70000 [18:12:38]OFD Sender: Processing packet 139442 [packets to send 137, broken 136] [18:12:38]ProducePacketName [18:12:38]name=ofd_packets/00139442 [18:12:38]OFD Sender: To server: pG, [18:12:38]CommunicateWithHost lk.salyk.kg:30040 [18:12:38]ConnectInit lk.salyk.kg [18:12:38]written 0, free lines is 4095 [18:12:38]Connected sock=9 [18:12: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 37 36 0F 01 00 00 EE 8A 07 01 90 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 15 01 00 00 F4 03 04 00 16 8B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 20 02 00 35 04 06 00 5D 4D 28 C7 C9 74 1D A6 53 43 E3 F9 C5 16 [18:12:38]Write to MH i2c: 01 00 00 35 28 5D [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: 01 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: 01 07 00 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: 01 07 00 35 28 00 00 00 00 00 DC 0C 4C [18:12:38]RasterBufferAndPrint [18:12:38]line [18:12:38]line [18:12:38]line [18:12:38]line [18:12:38]line [18:12:38]written 0, free lines is 3298 [18:12:38]MH_Cut [18:12:38]Write to MH i2c: D1 01 00 3C 28 01 36 [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: D1 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: D1 01 00 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: D1 01 00 3C 28 00 35 [18:12:38]Write to MH i2c: 01 00 00 3D 28 65 [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12: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 37 36 4F 00 00 00 F9 62 47 00 E6 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 20 02 00 F4 03 04 00 AB 31 C3 66 B6 04 01 00 00 22 BD 3E 08 F7 07 73 05 [18:12:38]CommunicateWithHost err = 0 [18:12:38]CheckOFDResponse [18:12:38]1017 (14) - 77093643461234 [18:12:38]1041 (16) - 0000000000871776 [18:12:38]1040 (4) - 139442 [18:12:38]1012 (4) - 19.08.2024 11:51 [18:12:38]1206 (1) - 0 [18:12:38]OFD Sender: Remove packet 139442 [18:12:38]ProducePacketName [18:12:38]name=ofd_packets/00139442 [18:12:38]NVStorageDeleteData [18:12:39]OFD Sender: No OFD packet to send [18:12:39]*** Cut start [18:12:39]*** Partial cut [18:12:39]*** CUTSNS_PIN = 1 [18:12:39]*** CUTSNS_PIN = 0 [18:12:39]*** Brake cut motor [18:12:39]Read from MH i2c: 01 [18:12:40]MH_I2C_Read... [18:12:40]*** Stop cut motor [18:12:40]*** Cut end [18:12:40]Read from MH i2c: 01 07 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: 01 07 00 3D 28 00 00 00 00 00 FF 0F 7A [18:12:40]process_action close_receipt done [18:12:40]requested_data is exist [18:12:40]produce_requested_data [18:12:40]requested_item fm.sn is exist - process it [18:12:40]wFMCommunicate request_size=4 [18:12:40]MH_SAM_APDU [18:12:40]CAPDU: 80 11 00 00 [18:12:40]Write to MH i2c: E2 08 00 3E 28 80 11 00 00 00 00 00 00 E0 [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:40]Read from MH i2c: E2 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 17 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 17 00 3E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 37 [18:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:12:40]wFMCommunicate OK [18:12:40]requested_item fd.num is exist - process it [18:12:40]SAM_PROTO_GetFieldsCounters [18:12:40]wFMCommunicate request_size=4 [18:12:40]MH_SAM_APDU [18:12:40]CAPDU: 80 13 00 00 [18:12:40]Write to MH i2c: E2 08 00 3F 28 80 13 00 00 00 00 00 00 E3 [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:40]Read from MH i2c: E2 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 62 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 62 00 3F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 20 02 00 0E 04 04 00 C4 01 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 E9 [18:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 20 02 00 0E 04 04 00 C4 01 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 [18:12:40]wFMCommunicate OK [18:12:40]SAM_PROTO_GetFieldsCounters done [18:12:40]requested_item shift.num is exist - process it [18:12:40]requested_item shift.opened is exist - process it [18:12:40]req_shift_opened [18:12:40]FM_GetShiftState [18:12:40]SAM_PROTO_GetShiftState [18:12:40]wFMCommunicate request_size=4 [18:12:40]MH_SAM_APDU [18:12:40]CAPDU: 80 13 01 00 [18:12:40]Write to MH i2c: E2 08 00 40 28 80 13 01 00 00 00 00 00 E5 [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:40]Read from MH i2c: E2 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 0E 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 0E 00 40 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9C [18:12:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:12:40]wFMCommunicate OK [18:12:40]SAM_PROTO_GetShiftState done [18:12:40]FM_GetShiftState done [18:12:40]req_shift_opened done [18:12:40]requested_item shift.open_date is exist - process it [18:12:40]req_shift_open_date [18:12:40]req_shift_open_date done [18:12:40]produce_requested_data done [18:12:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139442,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:12:40]process_action_free close_receipt [18:12:40]json_value_free [18:12:40]json_value_free done [18:12:40]process_json_proto returns [18:12:40]Send response to host [18:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139442,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:12:40]free response buf [18:12:40]execute_script done [18:12:40]execute_script returns [18:12:40]free content buf [18:12:40]Sock 10.Close socket [18:12:40]Sock 10.Thread stoped [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:51]accept exits with 8 [18:15:51]New connection [18:15:51]New thread 3066817892 created [18:15:51]Thread 3066674532 joined [18:15:51]Waiting for new connection... [18:15:51] Sock 8.Parse request [18:15:51]Sock 8.Check first char [18:15:51]Sock 8.First char is OK [18:15:51]request: POST /json_proto HTTP/1.0 [18:15:51]Method: POST [18:15:51]URL: /json_proto [18:15:51]Method is POST - this is cgi request [18:15:51]url: /json_proto [18:15:51]query_string will be loaded in cgi processing [18:15:51]execute_cgi json_proto POST (null) [18:15:51]execute_cgi path=json_proto method=POST [18:15:51]POST find Content-Length [18:15:51]Host: 172.17.45.67:8080 [18:15:51]Content-Length: 658 [18:15:51]Content-Type: application/json [18:15:51] [18:15:51]POST finish read [18:15:51]Found Content-Length = 658 [18:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:51]execute_script... [18:15: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)593285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:51]POST & json_proto [18:15:51]process_json_proto [18:15:51]json parsed OK: [18:15:51]protocol is kg_v1.0 [18:15:51]action value=close_receipt [18:15:51]process_action close_receipt [18:15:51]cmd_close_receipt [18:15:51]MH_GetDate [18:15:51]Write to MH i2c: F0 00 00 41 28 58 [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: F0 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: F0 09 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: F0 09 00 41 28 00 D9 8B C3 66 5F 7F 2B 66 5D [18:15:51]GetLastDocTimeStamp 1724091158 [18:15:51]current date 1724091353 [18:15:51]FM_GetShiftState [18:15:51]SAM_PROTO_GetShiftState [18:15:51]wFMCommunicate request_size=4 [18:15:51]MH_SAM_APDU [18:15:51]CAPDU: 80 13 01 00 [18:15:51]Write to MH i2c: E2 08 00 42 28 80 13 01 00 00 00 00 00 E7 [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:51]Read from MH i2c: E2 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 0E 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 0E 00 42 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9E [18:15:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:15:51]wFMCommunicate OK [18:15:51]SAM_PROTO_GetShiftState done [18:15:51]FM_GetShiftState done [18:15:51]opened in 1724027888 [18:15:51]opened+sec_in_day 1724114288 [18:15:51]quantity*price = 50017 [18:15:51]sum+1 = 50019 [18:15:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 278 19.08.2024 18:15 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139443 ФПД: 175772741548720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181553&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139443&fm=175772741548720&tin=02508201610067®Number=0000000000092569&sum=50000 [18:15:52]StoreToDocumentArchive [18:15:52]shift 452 fd 139443 [18:15:52]save to /storage/0452/doc_00139443 [18:15:52]save last doc name /storage/0452/doc_00139443 to /storage/kkm_last_doc_name [18:15:52]save OK [18:15:52]Clear old archive folders... [18:15:52]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:15:52]tlvbuf is B6D87440 [18:15:52]SAM_PROTO_ClearQueue [18:15:52]wFMCommunicate request_size=4 [18:15:52]MH_SAM_APDU [18:15:52]CAPDU: 80 09 00 00 [18:15:52]Write to MH i2c: E2 08 00 4F 28 80 09 00 00 00 00 00 00 E9 [18:15:52]Write i2c OK [18:15:52]MH_I2C_Read... [18:15:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:52]Read from MH i2c: E2 [18:15:52]MH_I2C_Read... [18:15:52]Read from MH i2c: E2 03 00 [18:15:52]MH_I2C_Read... [18:15:52]Read from MH i2c: E2 03 00 4F 28 00 90 00 EB [18:15:52]RAPDU: 90 00 [18:15:52]wFMCommunicate OK [18:15:52]SAM_PROTO_ClearQueue done [18:15:52]KKMCreateOFDPacket [18:15:52]OFDProtocolAddRootSTLVToBuf [18:15:52]FM_MakeSignedData [18:15:52]FM_MakeSignedData [18:15:52]SAM_PROTO_SignData [18:15:52]wFMCommunicate request_size=4 [18:15:52]MH_SAM_APDU [18:15:52]CAPDU: 80 0D 01 02 [18:15:52]Write to MH i2c: E2 08 00 50 28 80 0D 01 02 00 00 00 00 F1 [18:15:52]Write i2c OK [18:15:52]MH_I2C_Read... [18:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:53]Read from MH i2c: E2 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 03 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 03 00 50 28 00 90 00 EC [18:15:53]RAPDU: 90 00 [18:15:53]wFMCommunicate OK [18:15:53]wFMCommunicate request_size=253 [18:15:53]MH_SAM_APDU [18:15:53]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 D9 8B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 20 02 00 35 04 06 00 9F DD 47 D2 3A B0 [18:15:53]Write to MH i2c: E2 00 01 51 28 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 D9 8B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 20 02 00 35 04 06 00 9F DD 47 D2 3A B0 00 00 C7 [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:53]Read from MH i2c: E2 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 03 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 03 00 51 28 00 90 00 ED [18:15:53]RAPDU: 90 00 [18:15:53]wFMCommunicate OK [18:15:53]wFMCommunicate request_size=4 [18:15:53]MH_SAM_APDU [18:15:53]CAPDU: 80 0D 03 02 [18:15:53]Write to MH i2c: E2 08 00 52 28 80 0D 03 02 00 00 00 00 F5 [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:53]Read from MH i2c: E2 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 0B 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 0B 00 52 28 00 35 33 2C 94 91 89 C9 1A 90 00 1B [18:15:53]RAPDU: 35 33 2C 94 91 89 C9 1A 90 00 [18:15:53]wFMCommunicate OK [18:15:53]SAM_PROTO_SignData done [18:15:53]FM_MakeSignedData done [18:15:53]CreateOFDProtocolMessage [18:15:53]wFMCommunicate request_size=4 [18:15:53]MH_SAM_APDU [18:15:53]CAPDU: 80 11 00 00 [18:15:53]Write to MH i2c: E2 08 00 53 28 80 11 00 00 00 00 00 00 F5 [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:53]Read from MH i2c: E2 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 17 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 17 00 53 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [18:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:15:53]wFMCommunicate OK [18:15:53]CreateOFDProtocolMessage done [18:15:53]OFDSenderStorePacket 139443 [18:15:53]StoreOFDPacket docnum=139443 [18:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 AC 06 00 01 36 27 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 D9 8B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 20 02 00 35 04 06 00 9F DD 47 D2 3A B0 35 33 2C 94 91 89 C9 1A [18:15:53]CheckFolder [18:15:53]dirname=/storage/ofd_packets [18:15:53]CheckFolder done [18:15:53]ProducePacketName [18:15:53]name=ofd_packets/00139443 [18:15:53]NVStorageSaveData ofd_packets/00139443 [18:15:53]File name is /storage/ofd_packets/00139443 [18:15:53]Write 294 bytes [18:15:53]NVStorageSaveData done [18:15:53]OFDSenderStorePacket done [18:15:53]KKMCreateOFDPacket done [18:15:53]NVStorageSaveData kkm_last_timestamp [18:15:53]File name is /storage/kkm_last_timestamp [18:15:53]Write 4 bytes [18:15:53]NVStorageSaveData done [18:15:53]ExternCall_PrintAddStr [18:15:53]wPrintStart [18:15:53]Write to MH i2c: 01 00 00 54 28 7C [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: 01 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: 01 07 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: 01 07 00 54 28 00 00 00 00 00 FF 0F 91 [18:15:53]RasterBufferAndPrint [18:15:53]line Счет N : (1)593285 [18:15:53]line ИНН: 02508201610067 [18:15:53]line Контрольно-Кассовый Чек [18:15:53]line ПРОДАЖА [18:15:53]line ТРК (МРК, ГНК) : 53 [18:15:53]line Товар: 2710124130 [18:15:53]line SU-92 [18:15:53]line 7.270 * 68.80 [18:15:53]line = 500.18 [18:15:53]line НДС 12% НСП 1% [18:15:53]line > о реализуемом товаре [18:15:53]line ОКРУГЛЕНИЕ: -0.18 [18:15:53]line ИТОГО: 500.00 [18:15:53]line Внесено: 500.00 [18:15:53]line СДАЧА: 0.00 [18:15:53]line НСП 1% : 4.43 [18:15:53]line НДС 12% : 53.12 [18:15:53]line Наличными: 500.00 [18:15:53]line Безнал.: 0.00 [18:15:53]line Место: АЗС № 136 "Партнер Нефть" [18:15:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:15:53]line СНО: Общий режим [18:15:53]line Чек 278 19.08.2024 18:15 [18:15:53]line Смена: 452 ФФД: 1.0 [18:15:53]line ЗНМ: 0300000067 [18:15:53]line РНМ: 0000000000092569 [18:15:53]line Версия ККМ: 001 [18:15:53]line ФМ: 0000000000871776 [18:15:53]line ФД: 139443 [18:15:53]line ФПД: 175772741548720 [18:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181553&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139443&fm=175772741548720&tin=02508201610067®Number=0000000000092569&sum=50000 [18:15:53]OFD Sender: Processing packet 139443 [packets to send 137, broken 136] [18:15:53]ProducePacketName [18:15:53]name=ofd_packets/00139443 [18:15:53]OFD Sender: To server: pG, [18:15:53]CommunicateWithHost lk.salyk.kg:30040 [18:15:53]ConnectInit lk.salyk.kg [18:15:53]written 0, free lines is 4095 [18:15:53]Connected sock=10 [18:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 AC 06 00 01 36 27 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 D9 8B C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 20 02 00 35 04 06 00 9F DD 47 D2 3A B0 35 33 2C 94 91 89 C9 1A [18:15: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 37 36 4F 00 00 00 D9 3A 47 00 8C 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 37 36 10 04 04 00 B3 20 02 00 F4 03 04 00 6E 32 C3 66 B6 04 01 00 00 93 BE A3 DD 87 D4 FB 4A [18:15:54]CommunicateWithHost err = 0 [18:15:54]CheckOFDResponse [18:15:54]1017 (14) - 77093643461234 [18:15:54]1041 (16) - 0000000000871776 [18:15:54]1040 (4) - 139443 [18:15:54]1012 (4) - 19.08.2024 11:54 [18:15:54]1206 (1) - 0 [18:15:54]OFD Sender: Remove packet 139443 [18:15:54]ProducePacketName [18:15:54]name=ofd_packets/00139443 [18:15:54]NVStorageDeleteData [18:15:54]Write to MH i2c: 01 00 00 7F 28 A7 [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: 01 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: 01 07 00 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: 01 07 00 7F 28 00 00 00 00 00 D0 0C 8A [18:15:54]RasterBufferAndPrint [18:15:54]line [18:15:54]line [18:15:54]line [18:15:54]line [18:15:54]line [18:15:54]written 0, free lines is 3287 [18:15:54]MH_Cut [18:15:54]Write to MH i2c: D1 01 00 86 28 01 80 [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: D1 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: D1 01 00 [18:15:54]MH_I2C_Read... [18:15:54]Read from MH i2c: D1 01 00 86 28 00 7F [18:15:54]Write to MH i2c: 01 00 00 87 28 AF [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:54]OFD Sender: No OFD packet to send [18:15:54]*** Cut start [18:15:54]*** Partial cut [18:15:54]*** CUTSNS_PIN = 1 [18:15:54]*** CUTSNS_PIN = 0 [18:15:55]*** Brake cut motor [18:15:55]Read from MH i2c: 01 [18:15:55]MH_I2C_Read... [18:15:55]*** Stop cut motor [18:15:55]*** Cut end [18:15:55]Read from MH i2c: 01 07 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: 01 07 00 87 28 00 00 00 00 00 FF 0F C4 [18:15:55]process_action close_receipt done [18:15:55]requested_data is exist [18:15:55]produce_requested_data [18:15:55]requested_item fm.sn is exist - process it [18:15:55]wFMCommunicate request_size=4 [18:15:55]MH_SAM_APDU [18:15:55]CAPDU: 80 11 00 00 [18:15:55]Write to MH i2c: E2 08 00 88 28 80 11 00 00 00 00 00 00 2A [18:15:55]Write i2c OK [18:15:55]MH_I2C_Read... [18:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:55]Read from MH i2c: E2 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 17 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 17 00 88 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [18:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:15:55]wFMCommunicate OK [18:15:55]requested_item fd.num is exist - process it [18:15:55]SAM_PROTO_GetFieldsCounters [18:15:55]wFMCommunicate request_size=4 [18:15:55]MH_SAM_APDU [18:15:55]CAPDU: 80 13 00 00 [18:15:55]Write to MH i2c: E2 08 00 89 28 80 13 00 00 00 00 00 00 2D [18:15:55]Write i2c OK [18:15:55]MH_I2C_Read... [18:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:55]Read from MH i2c: E2 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 62 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 62 00 89 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 20 02 00 0E 04 04 00 C4 01 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 37 [18:15:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 20 02 00 0E 04 04 00 C4 01 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 [18:15:55]wFMCommunicate OK [18:15:55]SAM_PROTO_GetFieldsCounters done [18:15:55]requested_item shift.num is exist - process it [18:15:55]requested_item shift.opened is exist - process it [18:15:55]req_shift_opened [18:15:55]FM_GetShiftState [18:15:55]SAM_PROTO_GetShiftState [18:15:55]wFMCommunicate request_size=4 [18:15:55]MH_SAM_APDU [18:15:55]CAPDU: 80 13 01 00 [18:15:55]Write to MH i2c: E2 08 00 8A 28 80 13 01 00 00 00 00 00 2F [18:15:55]Write i2c OK [18:15:55]MH_I2C_Read... [18:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:55]Read from MH i2c: E2 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 0E 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 0E 00 8A 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E6 [18:15:55]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:15:55]wFMCommunicate OK [18:15:55]SAM_PROTO_GetShiftState done [18:15:55]FM_GetShiftState done [18:15:55]req_shift_opened done [18:15:55]requested_item shift.open_date is exist - process it [18:15:55]req_shift_open_date [18:15:55]req_shift_open_date done [18:15:55]produce_requested_data done [18:15:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139443,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:15:55]process_action_free close_receipt [18:15:55]json_value_free [18:15:55]json_value_free done [18:15:55]process_json_proto returns [18:15:55]Send response to host [18:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139443,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:15:55]free response buf [18:15:55]execute_script done [18:15:55]execute_script returns [18:15:55]free content buf [18:15:55]Sock 8.Close socket [18:15:55]Sock 8.Thread stoped [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:47]accept exits with 9 [18:20:47]New connection [18:20:47]New thread 3066674532 created [18:20:47]Thread 3066817892 joined [18:20:47]Waiting for new connection... [18:20:47] Sock 9.Parse request [18:20:47]Sock 9.Check first char [18:20:47]Sock 9.First char is OK [18:20:47]request: POST /json_proto HTTP/1.0 [18:20:47]Method: POST [18:20:47]URL: /json_proto [18:20:47]Method is POST - this is cgi request [18:20:47]url: /json_proto [18:20:47]query_string will be loaded in cgi processing [18:20:47]execute_cgi json_proto POST (null) [18:20:47]execute_cgi path=json_proto method=POST [18:20:47]POST find Content-Length [18:20:47]Host: 172.17.45.67:8080 [18:20:47]Content-Length: 677 [18:20:47]Content-Type: application/json [18:20:47] [18:20:47]POST finish read [18:20:47]Found Content-Length = 677 [18:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:20:47]execute_script... [18:20: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)593286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:20:47]POST & json_proto [18:20:47]process_json_proto [18:20:47]json parsed OK: [18:20:47]protocol is kg_v1.0 [18:20:47]action value=close_receipt [18:20:47]process_action close_receipt [18:20:47]cmd_close_receipt [18:20:47]MH_GetDate [18:20:47]Write to MH i2c: F0 00 00 8B 28 A2 [18:20:47]Write i2c OK [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: F0 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: F0 09 00 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: F0 09 00 8B 28 00 01 8D C3 66 5F 7F 2B 66 D1 [18:20:47]GetLastDocTimeStamp 1724091353 [18:20:47]current date 1724091649 [18:20:47]FM_GetShiftState [18:20:47]SAM_PROTO_GetShiftState [18:20:47]wFMCommunicate request_size=4 [18:20:47]MH_SAM_APDU [18:20:47]CAPDU: 80 13 01 00 [18:20:47]Write to MH i2c: E2 08 00 8C 28 80 13 01 00 00 00 00 00 31 [18:20:47]Write i2c OK [18:20:47]MH_I2C_Read... [18:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:47]Read from MH i2c: E2 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 0E 00 [18:20:47]MH_I2C_Read... [18:20:47]Read from MH i2c: E2 0E 00 8C 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E8 [18:20:47]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:20:47]wFMCommunicate OK [18:20:47]SAM_PROTO_GetShiftState done [18:20:47]FM_GetShiftState done [18:20:47]opened in 1724027888 [18:20:47]opened+sec_in_day 1724114288 [18:20:47]quantity*price = 50036 [18:20:47]sum+1 = 50037 [18:20:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 279 19.08.2024 18:20 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139444 ФПД: 136803304003919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T182049&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139444&fm=136803304003919&tin=02508201610067®Number=0000000000092569&sum=50000 [18:20:48]StoreToDocumentArchive [18:20:48]shift 452 fd 139444 [18:20:48]save to /storage/0452/doc_00139444 [18:20:48]save last doc name /storage/0452/doc_00139444 to /storage/kkm_last_doc_name [18:20:48]save OK [18:20:48]Clear old archive folders... [18:20:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:48]tlvbuf is 011E4FE0 [18:20:48]SAM_PROTO_ClearQueue [18:20:48]wFMCommunicate request_size=4 [18:20:48]MH_SAM_APDU [18:20:48]CAPDU: 80 09 00 00 [18:20:48]Write to MH i2c: E2 08 00 99 28 80 09 00 00 00 00 00 00 33 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 03 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 03 00 99 28 00 90 00 35 [18:20:48]RAPDU: 90 00 [18:20:48]wFMCommunicate OK [18:20:48]SAM_PROTO_ClearQueue done [18:20:48]KKMCreateOFDPacket [18:20:48]OFDProtocolAddRootSTLVToBuf [18:20:48]FM_MakeSignedData [18:20:48]FM_MakeSignedData [18:20:48]SAM_PROTO_SignData [18:20:48]wFMCommunicate request_size=4 [18:20:48]MH_SAM_APDU [18:20:48]CAPDU: 80 0D 01 02 [18:20:48]Write to MH i2c: E2 08 00 9A 28 80 0D 01 02 00 00 00 00 3B [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 03 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 03 00 9A 28 00 90 00 36 [18:20:48]RAPDU: 90 00 [18:20:48]wFMCommunicate OK [18:20:48]wFMCommunicate request_size=255 [18:20:48]MH_SAM_APDU [18:20: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 01 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 20 02 00 35 04 06 00 7C [18:20:48]Write to MH i2c: E2 02 01 9B 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 01 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 20 02 00 35 04 06 00 7C 00 00 AA [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 03 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 03 00 9B 28 00 90 00 37 [18:20:48]RAPDU: 90 00 [18:20:48]wFMCommunicate OK [18:20:48]wFMCommunicate request_size=10 [18:20:48]MH_SAM_APDU [18:20:48]CAPDU: 80 0D 02 02 05 6C 00 56 D9 4F [18:20:48]Write to MH i2c: E2 0D 00 9C 28 80 0D 02 02 05 00 6C 00 56 D9 4F 00 00 32 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 03 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 03 00 9C 28 00 90 00 38 [18:20:48]RAPDU: 90 00 [18:20:48]wFMCommunicate OK [18:20:48]wFMCommunicate request_size=4 [18:20:48]MH_SAM_APDU [18:20:48]CAPDU: 80 0D 03 02 [18:20:48]Write to MH i2c: E2 08 00 9D 28 80 0D 03 02 00 00 00 00 40 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 0B 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 0B 00 9D 28 00 D8 43 F7 EB 74 74 50 1E 90 00 94 [18:20:48]RAPDU: D8 43 F7 EB 74 74 50 1E 90 00 [18:20:48]wFMCommunicate OK [18:20:48]SAM_PROTO_SignData done [18:20:48]FM_MakeSignedData done [18:20:48]CreateOFDProtocolMessage [18:20:48]wFMCommunicate request_size=4 [18:20:48]MH_SAM_APDU [18:20:48]CAPDU: 80 11 00 00 [18:20:48]Write to MH i2c: E2 08 00 9E 28 80 11 00 00 00 00 00 00 40 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:48]Read from MH i2c: E2 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 17 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: E2 17 00 9E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [18:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:20:48]wFMCommunicate OK [18:20:48]CreateOFDProtocolMessage done [18:20:48]OFDSenderStorePacket 139444 [18:20:48]StoreOFDPacket docnum=139444 [18:20:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 08 78 07 01 17 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 01 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 20 02 00 35 04 06 00 7C 6C 00 56 D9 4F D8 43 F7 EB 74 74 50 1E [18:20:48]CheckFolder [18:20:48]dirname=/storage/ofd_packets [18:20:48]CheckFolder done [18:20:48]ProducePacketName [18:20:48]name=ofd_packets/00139444 [18:20:48]NVStorageSaveData ofd_packets/00139444 [18:20:48]File name is /storage/ofd_packets/00139444 [18:20:48]Write 301 bytes [18:20:48]NVStorageSaveData done [18:20:48]OFDSenderStorePacket done [18:20:48]KKMCreateOFDPacket done [18:20:48]NVStorageSaveData kkm_last_timestamp [18:20:48]File name is /storage/kkm_last_timestamp [18:20:48]Write 4 bytes [18:20:48]NVStorageSaveData done [18:20:48]ExternCall_PrintAddStr [18:20:48]wPrintStart [18:20:48]Write to MH i2c: 01 00 00 9F 28 C7 [18:20:48]Write i2c OK [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: 01 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: 01 07 00 [18:20:48]MH_I2C_Read... [18:20:48]Read from MH i2c: 01 07 00 9F 28 00 00 00 00 00 FF 0F DC [18:20:48]RasterBufferAndPrint [18:20:48]line Счет N : (1)593286 [18:20:48]line ИНН: 02508201610067 [18:20:48]line Контрольно-Кассовый Чек [18:20:48]line ПРОДАЖА [18:20:48]line ТРК (МРК, ГНК) : 62 [18:20:48]line Товар: 2710124130 [18:20:48]line Аи-92-К-5 [18:20:48]line 7.380 * 67.80 [18:20:48]line = 500.36 [18:20:48]line НДС 12% НСП 1% [18:20:48]line > о реализуемом товаре [18:20:48]line ОКРУГЛЕНИЕ: -0.36 [18:20:48]line ИТОГО: 500.00 [18:20:48]line Внесено: 500.00 [18:20:48]line СДАЧА: 0.00 [18:20:48]line НСП 1% : 4.43 [18:20:48]line НДС 12% : 53.14 [18:20:48]line Наличными: 500.00 [18:20:48]line Безнал.: 0.00 [18:20:48]line Место: АЗС № 136 "Партнер Нефть" [18:20:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:20:48]line СНО: Общий режим [18:20:48]line Чек 279 19.08.2024 18:20 [18:20:48]line Смена: 452 ФФД: 1.0 [18:20:48]line ЗНМ: 0300000067 [18:20:48]line РНМ: 0000000000092569 [18:20:48]line Версия ККМ: 001 [18:20:48]line ФМ: 0000000000871776 [18:20:48]line ФД: 139444 [18:20:48]line ФПД: 136803304003919 [18:20:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T182049&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139444&fm=136803304003919&tin=02508201610067®Number=0000000000092569&sum=50000 [18:20:49]OFD Sender: Processing packet 139444 [packets to send 137, broken 136] [18:20:49]ProducePacketName [18:20:49]name=ofd_packets/00139444 [18:20:49]OFD Sender: To server: pG, [18:20:49]CommunicateWithHost lk.salyk.kg:30040 [18:20:49]ConnectInit lk.salyk.kg [18:20:49]written 0, free lines is 4095 [18:20:49]Connected sock=10 [18:20: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 37 36 0F 01 00 00 08 78 07 01 17 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 01 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 20 02 00 35 04 06 00 7C 6C 00 56 D9 4F D8 43 F7 EB 74 74 50 1E [18:20: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 37 36 4F 00 00 00 F2 6F 47 00 37 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 37 36 10 04 04 00 B4 20 02 00 F4 03 04 00 96 33 C3 66 B6 04 01 00 00 5E 91 F1 9E D1 62 5E 32 [18:20:49]CommunicateWithHost err = 0 [18:20:49]CheckOFDResponse [18:20:49]1017 (14) - 77093643461234 [18:20:49]1041 (16) - 0000000000871776 [18:20:49]1040 (4) - 139444 [18:20:49]1012 (4) - 19.08.2024 11:59 [18:20:49]1206 (1) - 0 [18:20:49]OFD Sender: Remove packet 139444 [18:20:49]ProducePacketName [18:20:49]name=ofd_packets/00139444 [18:20:49]NVStorageDeleteData [18:20:49]Write to MH i2c: 01 00 00 CA 28 F2 [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: 01 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: 01 07 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: 01 07 00 CA 28 00 00 00 00 00 D8 0C DD [18:20:49]RasterBufferAndPrint [18:20:49]line [18:20:49]line [18:20:49]line [18:20:49]line [18:20:49]line [18:20:49]written 0, free lines is 3296 [18:20:49]MH_Cut [18:20:49]Write to MH i2c: D1 01 00 D1 28 01 CB [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: D1 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: D1 01 00 [18:20:49]MH_I2C_Read... [18:20:49]Read from MH i2c: D1 01 00 D1 28 00 CA [18:20:49]Write to MH i2c: 01 00 00 D2 28 FA [18:20:49]Write i2c OK [18:20:49]MH_I2C_Read... [18:20:50]OFD Sender: No OFD packet to send [18:20:50]*** Cut start [18:20:50]*** Partial cut [18:20:50]*** CUTSNS_PIN = 1 [18:20:50]*** CUTSNS_PIN = 0 [18:20:50]*** Brake cut motor [18:20:50]Read from MH i2c: 01 [18:20:50]MH_I2C_Read... [18:20:50]*** Stop cut motor [18:20:50]*** Cut end [18:20:50]Read from MH i2c: 01 07 00 [18:20:50]MH_I2C_Read... [18:20:50]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 FF 0F 0F [18:20:50]process_action close_receipt done [18:20:50]requested_data is exist [18:20:50]produce_requested_data [18:20:50]requested_item fm.sn is exist - process it [18:20:50]wFMCommunicate request_size=4 [18:20:50]MH_SAM_APDU [18:20:50]CAPDU: 80 11 00 00 [18:20:50]Write to MH i2c: E2 08 00 D3 28 80 11 00 00 00 00 00 00 75 [18:20:50]Write i2c OK [18:20:50]MH_I2C_Read... [18:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:51]Read from MH i2c: E2 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: E2 17 00 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: E2 17 00 D3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [18:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:20:51]wFMCommunicate OK [18:20:51]requested_item fd.num is exist - process it [18:20:51]SAM_PROTO_GetFieldsCounters [18:20:51]wFMCommunicate request_size=4 [18:20:51]MH_SAM_APDU [18:20:51]CAPDU: 80 13 00 00 [18:20:51]Write to MH i2c: E2 08 00 D4 28 80 13 00 00 00 00 00 00 78 [18:20:51]Write i2c OK [18:20:51]MH_I2C_Read... [18:20:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:51]Read from MH i2c: E2 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: E2 62 00 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: E2 62 00 D4 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 20 02 00 0E 04 04 00 C4 01 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 86 [18:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 20 02 00 0E 04 04 00 C4 01 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 [18:20:51]wFMCommunicate OK [18:20:51]SAM_PROTO_GetFieldsCounters done [18:20:51]requested_item shift.num is exist - process it [18:20:51]requested_item shift.opened is exist - process it [18:20:51]req_shift_opened [18:20:51]FM_GetShiftState [18:20:51]SAM_PROTO_GetShiftState [18:20:51]wFMCommunicate request_size=4 [18:20:51]MH_SAM_APDU [18:20:51]CAPDU: 80 13 01 00 [18:20:51]Write to MH i2c: E2 08 00 D5 28 80 13 01 00 00 00 00 00 7A [18:20:51]Write i2c OK [18:20:51]MH_I2C_Read... [18:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:51]Read from MH i2c: E2 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: E2 0E 00 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: E2 0E 00 D5 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 31 [18:20:51]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:20:51]wFMCommunicate OK [18:20:51]SAM_PROTO_GetShiftState done [18:20:51]FM_GetShiftState done [18:20:51]req_shift_opened done [18:20:51]requested_item shift.open_date is exist - process it [18:20:51]req_shift_open_date [18:20:51]req_shift_open_date done [18:20:51]produce_requested_data done [18:20:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139444,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:20:51]process_action_free close_receipt [18:20:51]json_value_free [18:20:51]json_value_free done [18:20:51]process_json_proto returns [18:20:51]Send response to host [18:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139444,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:20:51]free response buf [18:20:51]execute_script done [18:20:51]execute_script returns [18:20:51]free content buf [18:20:51]Sock 9.Close socket [18:20:51]Sock 9.Thread stoped [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:52]accept exits with 8 [18:22:52]New connection [18:22:52]New thread 3066817892 created [18:22:52]Thread 3066674532 joined [18:22:52]Waiting for new connection... [18:22:52] Sock 8.Parse request [18:22:52]Sock 8.Check first char [18:22:52]Sock 8.First char is OK [18:22:52]request: POST /json_proto HTTP/1.0 [18:22:52]Method: POST [18:22:52]URL: /json_proto [18:22:52]Method is POST - this is cgi request [18:22:52]url: /json_proto [18:22:52]query_string will be loaded in cgi processing [18:22:52]execute_cgi json_proto POST (null) [18:22:52]execute_cgi path=json_proto method=POST [18:22:52]POST find Content-Length [18:22:52]Host: 172.17.45.67:8080 [18:22:52]Content-Length: 677 [18:22:52]Content-Type: application/json [18:22:52] [18:22:52]POST finish read [18:22:52]Found Content-Length = 677 [18:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:22:52]execute_script... [18:22: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)593288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:22:52]POST & json_proto [18:22:52]process_json_proto [18:22:52]json parsed OK: [18:22:52]protocol is kg_v1.0 [18:22:52]action value=close_receipt [18:22:52]process_action close_receipt [18:22:52]cmd_close_receipt [18:22:52]MH_GetDate [18:22:52]Write to MH i2c: F0 00 00 D6 28 ED [18:22:52]Write i2c OK [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: F0 [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: F0 09 00 [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: F0 09 00 D6 28 00 7D 8D C3 66 5F 7F 2B 66 98 [18:22:52]GetLastDocTimeStamp 1724091649 [18:22:52]current date 1724091773 [18:22:52]FM_GetShiftState [18:22:52]SAM_PROTO_GetShiftState [18:22:52]wFMCommunicate request_size=4 [18:22:52]MH_SAM_APDU [18:22:52]CAPDU: 80 13 01 00 [18:22:52]Write to MH i2c: E2 08 00 D7 28 80 13 01 00 00 00 00 00 7C [18:22:52]Write i2c OK [18:22:52]MH_I2C_Read... [18:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:52]Read from MH i2c: E2 [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: E2 0E 00 [18:22:52]MH_I2C_Read... [18:22:52]Read from MH i2c: E2 0E 00 D7 28 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 33 [18:22:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:22:52]wFMCommunicate OK [18:22:52]SAM_PROTO_GetShiftState done [18:22:52]FM_GetShiftState done [18:22:52]opened in 1724027888 [18:22:52]opened+sec_in_day 1724114288 [18:22:52]quantity*price = 50036 [18:22:52]sum+1 = 50037 [18:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 280 19.08.2024 18:22 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139445 ФПД: 65554453789889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T182254&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139445&fm=65554453789889&tin=02508201610067®Number=0000000000092569&sum=50000 [18:22:53]StoreToDocumentArchive [18:22:53]shift 452 fd 139445 [18:22:53]save to /storage/0452/doc_00139445 [18:22:53]save last doc name /storage/0452/doc_00139445 to /storage/kkm_last_doc_name [18:22:53]save OK [18:22:53]Clear old archive folders... [18:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:53]tlvbuf is 012756D0 [18:22:53]SAM_PROTO_ClearQueue [18:22:53]wFMCommunicate request_size=4 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 09 00 00 [18:22:53]Write to MH i2c: E2 08 00 E4 28 80 09 00 00 00 00 00 00 7E [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 E4 28 00 90 00 80 [18:22:53]RAPDU: 90 00 [18:22:53]wFMCommunicate OK [18:22:53]SAM_PROTO_ClearQueue done [18:22:53]KKMCreateOFDPacket [18:22:53]OFDProtocolAddRootSTLVToBuf [18:22:53]FM_MakeSignedData [18:22:53]FM_MakeSignedData [18:22:53]SAM_PROTO_SignData [18:22:53]wFMCommunicate request_size=4 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 0D 01 02 [18:22:53]Write to MH i2c: E2 08 00 E5 28 80 0D 01 02 00 00 00 00 86 [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 E5 28 00 90 00 81 [18:22:53]RAPDU: 90 00 [18:22:53]wFMCommunicate OK [18:22:53]wFMCommunicate request_size=255 [18:22:53]MH_SAM_APDU [18:22: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 18 01 00 00 F4 03 04 00 7E 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 20 02 00 35 04 06 00 3B [18:22:53]Write to MH i2c: E2 02 01 E6 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 18 01 00 00 F4 03 04 00 7E 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 20 02 00 35 04 06 00 3B 00 00 33 [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 E6 28 00 90 00 82 [18:22:53]RAPDU: 90 00 [18:22:53]wFMCommunicate OK [18:22:53]wFMCommunicate request_size=10 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 0D 02 02 05 9F 15 EE 7C C1 [18:22:53]Write to MH i2c: E2 0D 00 E7 28 80 0D 02 02 05 00 9F 15 EE 7C C1 00 00 72 [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 03 00 E7 28 00 90 00 83 [18:22:53]RAPDU: 90 00 [18:22:53]wFMCommunicate OK [18:22:53]wFMCommunicate request_size=4 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 0D 03 02 [18:22:53]Write to MH i2c: E2 08 00 E8 28 80 0D 03 02 00 00 00 00 8B [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 0B 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 0B 00 E8 28 00 D1 C5 F3 2C 81 65 34 A7 90 00 02 [18:22:53]RAPDU: D1 C5 F3 2C 81 65 34 A7 90 00 [18:22:53]wFMCommunicate OK [18:22:53]SAM_PROTO_SignData done [18:22:53]FM_MakeSignedData done [18:22:53]CreateOFDProtocolMessage [18:22:53]wFMCommunicate request_size=4 [18:22:53]MH_SAM_APDU [18:22:53]CAPDU: 80 11 00 00 [18:22:53]Write to MH i2c: E2 08 00 E9 28 80 11 00 00 00 00 00 00 8B [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:53]Read from MH i2c: E2 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 17 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: E2 17 00 E9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [18:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:22:53]wFMCommunicate OK [18:22:53]CreateOFDProtocolMessage done [18:22:53]OFDSenderStorePacket 139445 [18:22:53]StoreOFDPacket docnum=139445 [18:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E3 78 07 01 0D 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 18 01 00 00 F4 03 04 00 7E 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 20 02 00 35 04 06 00 3B 9F 15 EE 7C C1 D1 C5 F3 2C 81 65 34 A7 [18:22:53]CheckFolder [18:22:53]dirname=/storage/ofd_packets [18:22:53]CheckFolder done [18:22:53]ProducePacketName [18:22:53]name=ofd_packets/00139445 [18:22:53]NVStorageSaveData ofd_packets/00139445 [18:22:53]File name is /storage/ofd_packets/00139445 [18:22:53]Write 301 bytes [18:22:53]NVStorageSaveData done [18:22:53]OFDSenderStorePacket done [18:22:53]KKMCreateOFDPacket done [18:22:53]NVStorageSaveData kkm_last_timestamp [18:22:53]File name is /storage/kkm_last_timestamp [18:22:53]Write 4 bytes [18:22:53]NVStorageSaveData done [18:22:53]ExternCall_PrintAddStr [18:22:53]wPrintStart [18:22:53]Write to MH i2c: 01 00 00 EA 28 12 [18:22:53]Write i2c OK [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: 01 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: 01 07 00 [18:22:53]MH_I2C_Read... [18:22:53]Read from MH i2c: 01 07 00 EA 28 00 00 00 00 00 FF 0F 27 [18:22:53]RasterBufferAndPrint [18:22:53]line Счет N : (1)593288 [18:22:53]line ИНН: 02508201610067 [18:22:53]line Контрольно-Кассовый Чек [18:22:53]line ПРОДАЖА [18:22:53]line ТРК (МРК, ГНК) : 42 [18:22:53]line Товар: 2710124130 [18:22:53]line Аи-92-К-5 [18:22:53]line 7.380 * 67.80 [18:22:53]line = 500.36 [18:22:53]line НДС 12% НСП 1% [18:22:53]line > о реализуемом товаре [18:22:53]line ОКРУГЛЕНИЕ: -0.36 [18:22:53]line ИТОГО: 500.00 [18:22:53]line Внесено: 500.00 [18:22:53]line СДАЧА: 0.00 [18:22:53]line НСП 1% : 4.43 [18:22:53]line НДС 12% : 53.14 [18:22:53]line Наличными: 500.00 [18:22:53]line Безнал.: 0.00 [18:22:53]line Место: АЗС № 136 "Партнер Нефть" [18:22:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:22:53]line СНО: Общий режим [18:22:53]line Чек 280 19.08.2024 18:22 [18:22:53]line Смена: 452 ФФД: 1.0 [18:22:53]line ЗНМ: 0300000067 [18:22:53]line РНМ: 0000000000092569 [18:22:53]line Версия ККМ: 001 [18:22:53]line ФМ: 0000000000871776 [18:22:53]line ФД: 139445 [18:22:53]line ФПД: 65554453789889 [18:22:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T182254&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139445&fm=65554453789889&tin=02508201610067®Number=0000000000092569&sum=50000 [18:22:54]written 0, free lines is 4095 [18:22:54]OFD Sender: Processing packet 139445 [packets to send 137, broken 136] [18:22:54]ProducePacketName [18:22:54]name=ofd_packets/00139445 [18:22:54]OFD Sender: To server: pG, [18:22:54]CommunicateWithHost lk.salyk.kg:30040 [18:22:54]ConnectInit lk.salyk.kg [18:22:54]Connected sock=10 [18:22: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 37 36 0F 01 00 00 E3 78 07 01 0D 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 18 01 00 00 F4 03 04 00 7E 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 20 02 00 35 04 06 00 3B 9F 15 EE 7C C1 D1 C5 F3 2C 81 65 34 A7 [18:22: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 37 36 4F 00 00 00 C3 64 47 00 EC 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 37 36 10 04 04 00 B5 20 02 00 F4 03 04 00 13 34 C3 66 B6 04 01 00 00 9C 1A 79 A1 34 2F 0F 4E [18:22:54]CommunicateWithHost err = 0 [18:22:54]CheckOFDResponse [18:22:54]1017 (14) - 77093643461234 [18:22:54]1041 (16) - 0000000000871776 [18:22:54]1040 (4) - 139445 [18:22:54]1012 (4) - 19.08.2024 12:01 [18:22:54]1206 (1) - 0 [18:22:54]OFD Sender: Remove packet 139445 [18:22:54]ProducePacketName [18:22:54]name=ofd_packets/00139445 [18:22:54]NVStorageDeleteData [18:22:54]Write to MH i2c: 01 00 00 15 29 3E [18:22:54]Write i2c OK [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: 01 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: 01 07 00 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: 01 07 00 15 29 00 00 00 00 00 CD 0C 1E [18:22:54]RasterBufferAndPrint [18:22:54]line [18:22:54]line [18:22:54]line [18:22:54]line [18:22:54]line [18:22:54]written 0, free lines is 3285 [18:22:54]MH_Cut [18:22:54]Write to MH i2c: D1 01 00 1C 29 01 17 [18:22:54]Write i2c OK [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: D1 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: D1 01 00 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: D1 01 00 1C 29 00 16 [18:22:54]Write to MH i2c: 01 00 00 1D 29 46 [18:22:54]Write i2c OK [18:22:54]MH_I2C_Read... [18:22:55]OFD Sender: No OFD packet to send [18:22:55]*** Cut start [18:22:55]*** Partial cut [18:22:55]*** CUTSNS_PIN = 1 [18:22:55]*** CUTSNS_PIN = 0 [18:22:55]*** Brake cut motor [18:22:55]Read from MH i2c: 01 [18:22:55]MH_I2C_Read... [18:22:55]*** Stop cut motor [18:22:55]*** Cut end [18:22:55]Read from MH i2c: 01 07 00 [18:22:55]MH_I2C_Read... [18:22:55]Read from MH i2c: 01 07 00 1D 29 00 00 00 00 00 FF 0F 5B [18:22:55]process_action close_receipt done [18:22:55]requested_data is exist [18:22:55]produce_requested_data [18:22:55]requested_item fm.sn is exist - process it [18:22:55]wFMCommunicate request_size=4 [18:22:55]MH_SAM_APDU [18:22:55]CAPDU: 80 11 00 00 [18:22:55]Write to MH i2c: E2 08 00 1E 29 80 11 00 00 00 00 00 00 C1 [18:22:55]Write i2c OK [18:22:55]MH_I2C_Read... [18:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:55]Read from MH i2c: E2 [18:22:55]MH_I2C_Read... [18:22:55]Read from MH i2c: E2 17 00 [18:22:55]MH_I2C_Read... [18:22:55]Read from MH i2c: E2 17 00 1E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [18:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:22:55]wFMCommunicate OK [18:22:55]requested_item fd.num is exist - process it [18:22:55]SAM_PROTO_GetFieldsCounters [18:22:55]wFMCommunicate request_size=4 [18:22:55]MH_SAM_APDU [18:22:55]CAPDU: 80 13 00 00 [18:22:55]Write to MH i2c: E2 08 00 1F 29 80 13 00 00 00 00 00 00 C4 [18:22:55]Write i2c OK [18:22:55]MH_I2C_Read... [18:22:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:56]Read from MH i2c: E2 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: E2 62 00 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: E2 62 00 1F 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 20 02 00 0E 04 04 00 C4 01 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 D6 [18:22: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 20 02 00 0E 04 04 00 C4 01 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 [18:22:56]wFMCommunicate OK [18:22:56]SAM_PROTO_GetFieldsCounters done [18:22:56]requested_item shift.num is exist - process it [18:22:56]requested_item shift.opened is exist - process it [18:22:56]req_shift_opened [18:22:56]FM_GetShiftState [18:22:56]SAM_PROTO_GetShiftState [18:22:56]wFMCommunicate request_size=4 [18:22:56]MH_SAM_APDU [18:22:56]CAPDU: 80 13 01 00 [18:22:56]Write to MH i2c: E2 08 00 20 29 80 13 01 00 00 00 00 00 C6 [18:22:56]Write i2c OK [18:22:56]MH_I2C_Read... [18:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:56]Read from MH i2c: E2 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: E2 0E 00 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: E2 0E 00 20 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7D [18:22:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:22:56]wFMCommunicate OK [18:22:56]SAM_PROTO_GetShiftState done [18:22:56]FM_GetShiftState done [18:22:56]req_shift_opened done [18:22:56]requested_item shift.open_date is exist - process it [18:22:56]req_shift_open_date [18:22:56]req_shift_open_date done [18:22:56]produce_requested_data done [18:22:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139445,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:22:56]process_action_free close_receipt [18:22:56]json_value_free [18:22:56]json_value_free done [18:22:56]process_json_proto returns [18:22:56]Send response to host [18:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139445,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:22:56]free response buf [18:22:56]execute_script done [18:22:56]execute_script returns [18:22:56]free content buf [18:22:56]Sock 8.Close socket [18:22:56]Sock 8.Thread stoped [18:23:00]OFD Sender: No OFD packet to send [18:23:03]accept exits with 9 [18:23:03]New connection [18:23:03]New thread 3066674532 created [18:23:03]Thread 3066817892 joined [18:23:03]Waiting for new connection... [18:23:03] Sock 9.Parse request [18:23:03]Sock 9.Check first char [18:23:03]Sock 9.First char is OK [18:23:03]request: POST /json_proto HTTP/1.0 [18:23:03]Method: POST [18:23:03]URL: /json_proto [18:23:03]Method is POST - this is cgi request [18:23:03]url: /json_proto [18:23:03]query_string will be loaded in cgi processing [18:23:03]execute_cgi json_proto POST (null) [18:23:03]execute_cgi path=json_proto method=POST [18:23:03]POST find Content-Length [18:23:03]Host: 172.17.45.67:8080 [18:23:03]Content-Length: 677 [18:23:03]Content-Type: application/json [18:23:03] [18:23:03]POST finish read [18:23:03]Found Content-Length = 677 [18:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:23:03]execute_script... [18:23: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)593287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:23:03]POST & json_proto [18:23:03]process_json_proto [18:23:03]json parsed OK: [18:23:03]protocol is kg_v1.0 [18:23:03]action value=close_receipt [18:23:03]process_action close_receipt [18:23:03]cmd_close_receipt [18:23:03]MH_GetDate [18:23:03]Write to MH i2c: F0 00 00 21 29 39 [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: F0 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: F0 09 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: F0 09 00 21 29 00 89 8D C3 66 5F 7F 2B 66 F0 [18:23:03]GetLastDocTimeStamp 1724091774 [18:23:03]current date 1724091785 [18:23:03]FM_GetShiftState [18:23:03]SAM_PROTO_GetShiftState [18:23:03]wFMCommunicate request_size=4 [18:23:03]MH_SAM_APDU [18:23:03]CAPDU: 80 13 01 00 [18:23:03]Write to MH i2c: E2 08 00 22 29 80 13 01 00 00 00 00 00 C8 [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:03]Read from MH i2c: E2 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 0E 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 0E 00 22 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7F [18:23:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:23:03]wFMCommunicate OK [18:23:03]SAM_PROTO_GetShiftState done [18:23:03]FM_GetShiftState done [18:23:03]opened in 1724027888 [18:23:03]opened+sec_in_day 1724114288 [18:23:03]quantity*price = 50036 [18:23:03]sum+1 = 50037 [18:23:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 281 19.08.2024 18:23 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139446 ФПД: 252589690179428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T182305&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139446&fm=252589690179428&tin=02508201610067®Number=0000000000092569&sum=50000 [18:23:05]StoreToDocumentArchive [18:23:05]shift 452 fd 139446 [18:23:05]save to /storage/0452/doc_00139446 [18:23:05]save last doc name /storage/0452/doc_00139446 to /storage/kkm_last_doc_name [18:23:05]save OK [18:23:05]Clear old archive folders... [18:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:05]tlvbuf is B6EA09E0 [18:23:05]SAM_PROTO_ClearQueue [18:23:05]wFMCommunicate request_size=4 [18:23:05]MH_SAM_APDU [18:23:05]CAPDU: 80 09 00 00 [18:23:05]Write to MH i2c: E2 08 00 2F 29 80 09 00 00 00 00 00 00 CA [18:23:05]Write i2c OK [18:23:05]MH_I2C_Read... [18:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:05]OFD Sender: No OFD packet to send [18:23:05]Read from MH i2c: E2 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 03 00 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 03 00 2F 29 00 90 00 CC [18:23:05]RAPDU: 90 00 [18:23:05]wFMCommunicate OK [18:23:05]SAM_PROTO_ClearQueue done [18:23:05]KKMCreateOFDPacket [18:23:05]OFDProtocolAddRootSTLVToBuf [18:23:05]FM_MakeSignedData [18:23:05]FM_MakeSignedData [18:23:05]SAM_PROTO_SignData [18:23:05]wFMCommunicate request_size=4 [18:23:05]MH_SAM_APDU [18:23:05]CAPDU: 80 0D 01 02 [18:23:05]Write to MH i2c: E2 08 00 30 29 80 0D 01 02 00 00 00 00 D2 [18:23:05]Write i2c OK [18:23:05]MH_I2C_Read... [18:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:05]Read from MH i2c: E2 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 03 00 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 03 00 30 29 00 90 00 CD [18:23:05]RAPDU: 90 00 [18:23:05]wFMCommunicate OK [18:23:05]wFMCommunicate request_size=255 [18:23:05]MH_SAM_APDU [18:23: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 19 01 00 00 F4 03 04 00 89 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 20 02 00 35 04 06 00 E5 [18:23:05]Write to MH i2c: E2 02 01 31 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 19 01 00 00 F4 03 04 00 89 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 20 02 00 35 04 06 00 E5 00 00 36 [18:23:05]Write i2c OK [18:23:05]MH_I2C_Read... [18:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:05]Read from MH i2c: E2 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 03 00 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 03 00 31 29 00 90 00 CE [18:23:05]RAPDU: 90 00 [18:23:05]wFMCommunicate OK [18:23:05]wFMCommunicate request_size=10 [18:23:05]MH_SAM_APDU [18:23:05]CAPDU: 80 0D 02 02 05 BA 9E C1 CF 64 [18:23:05]Write to MH i2c: E2 0D 00 32 29 80 0D 02 02 05 00 BA 9E C1 CF 64 00 00 2B [18:23:05]Write i2c OK [18:23:05]MH_I2C_Read... [18:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:05]Read from MH i2c: E2 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 03 00 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 03 00 32 29 00 90 00 CF [18:23:05]RAPDU: 90 00 [18:23:05]wFMCommunicate OK [18:23:05]wFMCommunicate request_size=4 [18:23:05]MH_SAM_APDU [18:23:05]CAPDU: 80 0D 03 02 [18:23:05]Write to MH i2c: E2 08 00 33 29 80 0D 03 02 00 00 00 00 D7 [18:23:05]Write i2c OK [18:23:05]MH_I2C_Read... [18:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:05]Read from MH i2c: E2 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 0B 00 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 0B 00 33 29 00 FB CB 06 A1 8D 16 E3 2B 90 00 F6 [18:23:05]RAPDU: FB CB 06 A1 8D 16 E3 2B 90 00 [18:23:05]wFMCommunicate OK [18:23:05]SAM_PROTO_SignData done [18:23:05]FM_MakeSignedData done [18:23:05]CreateOFDProtocolMessage [18:23:05]wFMCommunicate request_size=4 [18:23:05]MH_SAM_APDU [18:23:05]CAPDU: 80 11 00 00 [18:23:05]Write to MH i2c: E2 08 00 34 29 80 11 00 00 00 00 00 00 D7 [18:23:05]Write i2c OK [18:23:05]MH_I2C_Read... [18:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:05]Read from MH i2c: E2 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 17 00 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: E2 17 00 34 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [18:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:23:05]wFMCommunicate OK [18:23:05]CreateOFDProtocolMessage done [18:23:05]OFDSenderStorePacket 139446 [18:23:05]StoreOFDPacket docnum=139446 [18:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 60 4F 07 01 30 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 19 01 00 00 F4 03 04 00 89 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 20 02 00 35 04 06 00 E5 BA 9E C1 CF 64 FB CB 06 A1 8D 16 E3 2B [18:23:05]CheckFolder [18:23:05]dirname=/storage/ofd_packets [18:23:05]CheckFolder done [18:23:05]ProducePacketName [18:23:05]name=ofd_packets/00139446 [18:23:05]NVStorageSaveData ofd_packets/00139446 [18:23:05]File name is /storage/ofd_packets/00139446 [18:23:05]Write 301 bytes [18:23:05]NVStorageSaveData done [18:23:05]OFDSenderStorePacket done [18:23:05]KKMCreateOFDPacket done [18:23:05]NVStorageSaveData kkm_last_timestamp [18:23:05]File name is /storage/kkm_last_timestamp [18:23:05]Write 4 bytes [18:23:05]NVStorageSaveData done [18:23:05]ExternCall_PrintAddStr [18:23:05]wPrintStart [18:23:05]Write to MH i2c: 01 00 00 35 29 5E [18:23:05]Write i2c OK [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: 01 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: 01 07 00 [18:23:05]MH_I2C_Read... [18:23:05]Read from MH i2c: 01 07 00 35 29 00 00 00 00 00 FF 0F 73 [18:23:05]RasterBufferAndPrint [18:23:05]line Счет N : (1)593287 [18:23:05]line ИНН: 02508201610067 [18:23:05]line Контрольно-Кассовый Чек [18:23:05]line ПРОДАЖА [18:23:05]line ТРК (МРК, ГНК) : 52 [18:23:05]line Товар: 2710124130 [18:23:05]line Аи-92-К-5 [18:23:05]line 7.380 * 67.80 [18:23:05]line = 500.36 [18:23:05]line НДС 12% НСП 1% [18:23:05]line > о реализуемом товаре [18:23:05]line ОКРУГЛЕНИЕ: -0.36 [18:23:05]line ИТОГО: 500.00 [18:23:05]line Внесено: 500.00 [18:23:05]line СДАЧА: 0.00 [18:23:05]line НСП 1% : 4.43 [18:23:05]line НДС 12% : 53.14 [18:23:05]line Наличными: 500.00 [18:23:05]line Безнал.: 0.00 [18:23:05]line Место: АЗС № 136 "Партнер Нефть" [18:23:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:23:05]line СНО: Общий режим [18:23:05]line Чек 281 19.08.2024 18:23 [18:23:05]line Смена: 452 ФФД: 1.0 [18:23:05]line ЗНМ: 0300000067 [18:23:05]line РНМ: 0000000000092569 [18:23:05]line Версия ККМ: 001 [18:23:05]line ФМ: 0000000000871776 [18:23:05]line ФД: 139446 [18:23:05]line ФПД: 252589690179428 [18:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T182305&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139446&fm=252589690179428&tin=02508201610067®Number=0000000000092569&sum=50000 [18:23:05]written 0, free lines is 4095 [18:23:05]OFD Sender: Processing packet 139446 [packets to send 137, broken 136] [18:23:05]ProducePacketName [18:23:05]name=ofd_packets/00139446 [18:23:05]OFD Sender: To server: pG, [18:23:05]CommunicateWithHost lk.salyk.kg:30040 [18:23:05]ConnectInit lk.salyk.kg [18:23:06]Write to MH i2c: 01 00 00 60 29 89 [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: 01 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: 01 07 00 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: 01 07 00 60 29 00 00 00 00 00 D3 0C 6F [18:23:06]RasterBufferAndPrint [18:23:06]line [18:23:06]line [18:23:06]line [18:23:06]line [18:23:06]line [18:23:06]written 0, free lines is 3290 [18:23:06]Connected sock=10 [18:23: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 37 36 0F 01 00 00 60 4F 07 01 30 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 19 01 00 00 F4 03 04 00 89 8D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 20 02 00 35 04 06 00 E5 BA 9E C1 CF 64 FB CB 06 A1 8D 16 E3 2B [18:23:06]MH_Cut [18:23:06]Write to MH i2c: D1 01 00 67 29 01 62 [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: D1 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: D1 01 00 [18:23:06]MH_I2C_Read... [18:23:06]Read from MH i2c: D1 01 00 67 29 00 61 [18:23:06]Write to MH i2c: 01 00 00 68 29 91 [18:23:06]Write i2c OK [18:23:06]MH_I2C_Read... [18:23: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 37 36 4F 00 00 00 C6 CB 47 00 E2 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 37 36 10 04 04 00 B6 20 02 00 F4 03 04 00 1F 34 C3 66 B6 04 01 00 00 3D 43 05 79 95 78 2D A3 [18:23:06]CommunicateWithHost err = 0 [18:23:06]CheckOFDResponse [18:23:06]1017 (14) - 77093643461234 [18:23:06]1041 (16) - 0000000000871776 [18:23:06]1040 (4) - 139446 [18:23:06]1012 (4) - 19.08.2024 12:01 [18:23:06]1206 (1) - 0 [18:23:06]OFD Sender: Remove packet 139446 [18:23:06]ProducePacketName [18:23:06]name=ofd_packets/00139446 [18:23:06]NVStorageDeleteData [18:23:06]*** Cut start [18:23:06]*** Partial cut [18:23:06]*** CUTSNS_PIN = 1 [18:23:06]*** CUTSNS_PIN = 0 [18:23:06]OFD Sender: No OFD packet to send [18:23:06]*** Brake cut motor [18:23:07]Read from MH i2c: 01 [18:23:07]MH_I2C_Read... [18:23:07]*** Stop cut motor [18:23:07]*** Cut end [18:23:07]Read from MH i2c: 01 07 00 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: 01 07 00 68 29 00 00 00 00 00 FF 0F A6 [18:23:07]process_action close_receipt done [18:23:07]requested_data is exist [18:23:07]produce_requested_data [18:23:07]requested_item fm.sn is exist - process it [18:23:07]wFMCommunicate request_size=4 [18:23:07]MH_SAM_APDU [18:23:07]CAPDU: 80 11 00 00 [18:23:07]Write to MH i2c: E2 08 00 69 29 80 11 00 00 00 00 00 00 0C [18:23:07]Write i2c OK [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: E2 [18:23:07]MH_I2C_Read... [18:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:07]Read from MH i2c: E2 17 00 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: E2 17 00 69 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [18:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:23:07]wFMCommunicate OK [18:23:07]requested_item fd.num is exist - process it [18:23:07]SAM_PROTO_GetFieldsCounters [18:23:07]wFMCommunicate request_size=4 [18:23:07]MH_SAM_APDU [18:23:07]CAPDU: 80 13 00 00 [18:23:07]Write to MH i2c: E2 08 00 6A 29 80 13 00 00 00 00 00 00 0F [18:23:07]Write i2c OK [18:23:07]MH_I2C_Read... [18:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:07]Read from MH i2c: E2 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: E2 62 00 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: E2 62 00 6A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 20 02 00 0E 04 04 00 C4 01 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 25 [18:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 20 02 00 0E 04 04 00 C4 01 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 [18:23:07]wFMCommunicate OK [18:23:07]SAM_PROTO_GetFieldsCounters done [18:23:07]requested_item shift.num is exist - process it [18:23:07]requested_item shift.opened is exist - process it [18:23:07]req_shift_opened [18:23:07]FM_GetShiftState [18:23:07]SAM_PROTO_GetShiftState [18:23:07]wFMCommunicate request_size=4 [18:23:07]MH_SAM_APDU [18:23:07]CAPDU: 80 13 01 00 [18:23:07]Write to MH i2c: E2 08 00 6B 29 80 13 01 00 00 00 00 00 11 [18:23:07]Write i2c OK [18:23:07]MH_I2C_Read... [18:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:07]Read from MH i2c: E2 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: E2 0E 00 [18:23:07]MH_I2C_Read... [18:23:07]Read from MH i2c: E2 0E 00 6B 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C8 [18:23:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:23:07]wFMCommunicate OK [18:23:07]SAM_PROTO_GetShiftState done [18:23:07]FM_GetShiftState done [18:23:07]req_shift_opened done [18:23:07]requested_item shift.open_date is exist - process it [18:23:07]req_shift_open_date [18:23:07]req_shift_open_date done [18:23:07]produce_requested_data done [18:23:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139446,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:23:07]process_action_free close_receipt [18:23:07]json_value_free [18:23:07]json_value_free done [18:23:07]process_json_proto returns [18:23:07]Send response to host [18:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139446,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:23:07]free response buf [18:23:07]execute_script done [18:23:07]execute_script returns [18:23:07]free content buf [18:23:07]Sock 9.Close socket [18:23:07]Sock 9.Thread stoped [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:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:47]accept exits with 8 [18:27:47]New connection [18:27:47]New thread 3066817892 created [18:27:47]Thread 3066674532 joined [18:27:47]Waiting for new connection... [18:27:47] Sock 8.Parse request [18:27:47]Sock 8.Check first char [18:27:47]Sock 8.First char is OK [18:27:47]request: POST /json_proto HTTP/1.0 [18:27:47]Method: POST [18:27:47]URL: /json_proto [18:27:47]Method is POST - this is cgi request [18:27:47]url: /json_proto [18:27:47]query_string will be loaded in cgi processing [18:27:47]execute_cgi json_proto POST (null) [18:27:47]execute_cgi path=json_proto method=POST [18:27:47]POST find Content-Length [18:27:47]Host: 172.17.45.67:8080 [18:27:47]Content-Length: 677 [18:27:47]Content-Type: application/json [18:27:47] [18:27:47]POST finish read [18:27:47]Found Content-Length = 677 [18:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.420, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:47]execute_script... [18:27:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.420, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:47]POST & json_proto [18:27:47]process_json_proto [18:27:47]json parsed OK: [18:27:47]protocol is kg_v1.0 [18:27:47]action value=close_receipt [18:27:47]process_action close_receipt [18:27:47]cmd_close_receipt [18:27:47]MH_GetDate [18:27:47]Write to MH i2c: F0 00 00 6C 29 84 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: F0 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: F0 09 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: F0 09 00 6C 29 00 A5 8E C3 66 5F 7F 2B 66 58 [18:27:47]GetLastDocTimeStamp 1724091785 [18:27:47]current date 1724092069 [18:27:47]FM_GetShiftState [18:27:47]SAM_PROTO_GetShiftState [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 13 01 00 [18:27:47]Write to MH i2c: E2 08 00 6D 29 80 13 01 00 00 00 00 00 13 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 6D 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CA [18:27:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:27:48]wFMCommunicate OK [18:27:48]SAM_PROTO_GetShiftState done [18:27:48]FM_GetShiftState done [18:27:48]opened in 1724027888 [18:27:48]opened+sec_in_day 1724114288 [18:27:48]quantity*price = 55056 [18:27:48]sum+1 = 55057 [18:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 282 19.08.2024 18:27 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139447 ФПД: 119483775612812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T182749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139447&fm=119483775612812&tin=02508201610067®Number=0000000000092569&sum=55000 [18:27:49]StoreToDocumentArchive [18:27:49]shift 452 fd 139447 [18:27:49]save to /storage/0452/doc_00139447 [18:27:49]save last doc name /storage/0452/doc_00139447 to /storage/kkm_last_doc_name [18:27:49]save OK [18:27:49]Clear old archive folders... [18:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:49]tlvbuf is B6EB9EB0 [18:27:49]SAM_PROTO_ClearQueue [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 09 00 00 [18:27:49]Write to MH i2c: E2 08 00 7A 29 80 09 00 00 00 00 00 00 15 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 7A 29 00 90 00 17 [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]SAM_PROTO_ClearQueue done [18:27:49]KKMCreateOFDPacket [18:27:49]OFDProtocolAddRootSTLVToBuf [18:27:49]FM_MakeSignedData [18:27:49]FM_MakeSignedData [18:27:49]SAM_PROTO_SignData [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 01 02 [18:27:49]Write to MH i2c: E2 08 00 7B 29 80 0D 01 02 00 00 00 00 1D [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 7B 29 00 90 00 18 [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]wFMCommunicate request_size=255 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 A5 8E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 20 02 00 35 04 06 00 6C [18:27:49]Write to MH i2c: E2 02 01 7C 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 A5 8E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 20 02 00 35 04 06 00 6C 00 00 FE [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 7C 29 00 90 00 19 [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]wFMCommunicate request_size=10 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 02 02 05 AB 7C 00 77 8C [18:27:49]Write to MH i2c: E2 0D 00 7D 29 80 0D 02 02 05 00 AB 7C 00 77 8C 00 00 54 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 7D 29 00 90 00 1A [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 03 02 [18:27:49]Write to MH i2c: E2 08 00 7E 29 80 0D 03 02 00 00 00 00 22 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 0B 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 0B 00 7E 29 00 C1 16 DD C5 A2 5C 8E 2F 90 00 57 [18:27:49]RAPDU: C1 16 DD C5 A2 5C 8E 2F 90 00 [18:27:49]wFMCommunicate OK [18:27:49]SAM_PROTO_SignData done [18:27:49]FM_MakeSignedData done [18:27:49]CreateOFDProtocolMessage [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 11 00 00 [18:27:49]Write to MH i2c: E2 08 00 7F 29 80 11 00 00 00 00 00 00 22 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 17 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 17 00 7F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [18:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:27:49]wFMCommunicate OK [18:27:49]CreateOFDProtocolMessage done [18:27:49]OFDSenderStorePacket 139447 [18:27:49]StoreOFDPacket docnum=139447 [18:27:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BA 8D 07 01 FD 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 A5 8E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 20 02 00 35 04 06 00 6C AB 7C 00 77 8C C1 16 DD C5 A2 5C 8E 2F [18:27:49]CheckFolder [18:27:49]dirname=/storage/ofd_packets [18:27:49]CheckFolder done [18:27:49]ProducePacketName [18:27:49]name=ofd_packets/00139447 [18:27:49]NVStorageSaveData ofd_packets/00139447 [18:27:49]File name is /storage/ofd_packets/00139447 [18:27:49]Write 301 bytes [18:27:49]NVStorageSaveData done [18:27:49]OFDSenderStorePacket done [18:27:49]KKMCreateOFDPacket done [18:27:49]NVStorageSaveData kkm_last_timestamp [18:27:49]File name is /storage/kkm_last_timestamp [18:27:49]Write 4 bytes [18:27:49]NVStorageSaveData done [18:27:49]ExternCall_PrintAddStr [18:27:49]wPrintStart [18:27:49]Write to MH i2c: 01 00 00 80 29 A9 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: 01 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: 01 07 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: 01 07 00 80 29 00 00 00 00 00 FF 0F BE [18:27:49]RasterBufferAndPrint [18:27:49]line Счет N : (1)593289 [18:27:49]line ИНН: 02508201610067 [18:27:49]line Контрольно-Кассовый Чек [18:27:49]line ПРОДАЖА [18:27:49]line ТРК (МРК, ГНК) : 41 [18:27:49]line Товар: 2710124500 [18:27:49]line Аи-95-К-5 [18:27:49]line 7.420 * 74.20 [18:27:49]line = 550.56 [18:27:49]line НДС 12% НСП 1% [18:27:49]line > о реализуемом товаре [18:27:49]line ОКРУГЛЕНИЕ: -0.56 [18:27:49]line ИТОГО: 550.00 [18:27:49]line Внесено: 550.00 [18:27:49]line СДАЧА: 0.00 [18:27:49]line НСП 1% : 4.87 [18:27:49]line НДС 12% : 58.47 [18:27:49]line Наличными: 550.00 [18:27:49]line Безнал.: 0.00 [18:27:49]line Место: АЗС № 136 "Партнер Нефть" [18:27:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:27:49]line СНО: Общий режим [18:27:49]line Чек 282 19.08.2024 18:27 [18:27:49]line Смена: 452 ФФД: 1.0 [18:27:49]line ЗНМ: 0300000067 [18:27:49]line РНМ: 0000000000092569 [18:27:49]line Версия ККМ: 001 [18:27:49]line ФМ: 0000000000871776 [18:27:49]line ФД: 139447 [18:27:49]line ФПД: 119483775612812 [18:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T182749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139447&fm=119483775612812&tin=02508201610067®Number=0000000000092569&sum=55000 [18:27:49]OFD Sender: Processing packet 139447 [packets to send 137, broken 136] [18:27:49]ProducePacketName [18:27:49]name=ofd_packets/00139447 [18:27:49]OFD Sender: To server: pG, [18:27:49]CommunicateWithHost lk.salyk.kg:30040 [18:27:49]ConnectInit lk.salyk.kg [18:27:49]written 0, free lines is 4095 [18:27:50]Connected sock=10 [18:27: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 37 36 0F 01 00 00 BA 8D 07 01 FD 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 A5 8E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 20 02 00 35 04 06 00 6C AB 7C 00 77 8C C1 16 DD C5 A2 5C 8E 2F [18:27: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 37 36 4F 00 00 00 DE 4A 47 00 78 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 37 36 10 04 04 00 B7 20 02 00 F4 03 04 00 3B 35 C3 66 B6 04 01 00 00 AF 11 DA 3B EC 68 03 7D [18:27:50]CommunicateWithHost err = 0 [18:27:50]CheckOFDResponse [18:27:50]1017 (14) - 77093643461234 [18:27:50]1041 (16) - 0000000000871776 [18:27:50]1040 (4) - 139447 [18:27:50]1012 (4) - 19.08.2024 12:06 [18:27:50]1206 (1) - 0 [18:27:50]OFD Sender: Remove packet 139447 [18:27:50]ProducePacketName [18:27:50]name=ofd_packets/00139447 [18:27:50]NVStorageDeleteData [18:27:50]Write to MH i2c: 01 00 00 AB 29 D4 [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 AB 29 00 00 00 00 00 D8 0C BF [18:27:50]RasterBufferAndPrint [18:27:50]line [18:27:50]line [18:27:50]line [18:27:50]line [18:27:50]line [18:27:50]written 0, free lines is 3297 [18:27:50]MH_Cut [18:27:50]Write to MH i2c: D1 01 00 B2 29 01 AD [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: D1 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: D1 01 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: D1 01 00 B2 29 00 AC [18:27:50]Write to MH i2c: 01 00 00 B3 29 DC [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]OFD Sender: No OFD packet to send [18:27:51]*** Cut start [18:27:51]*** Partial cut [18:27:51]*** CUTSNS_PIN = 1 [18:27:51]*** CUTSNS_PIN = 0 [18:27:51]*** Brake cut motor [18:27:51]Read from MH i2c: 01 [18:27:51]MH_I2C_Read... [18:27:51]*** Stop cut motor [18:27:51]*** Cut end [18:27:51]Read from MH i2c: 01 07 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: 01 07 00 B3 29 00 00 00 00 00 FF 0F F1 [18:27:51]process_action close_receipt done [18:27:51]requested_data is exist [18:27:51]produce_requested_data [18:27:51]requested_item fm.sn is exist - process it [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 11 00 00 [18:27:51]Write to MH i2c: E2 08 00 B4 29 80 11 00 00 00 00 00 00 57 [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:51]Read from MH i2c: E2 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 17 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 17 00 B4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [18:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:27:51]wFMCommunicate OK [18:27:51]requested_item fd.num is exist - process it [18:27:51]SAM_PROTO_GetFieldsCounters [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 13 00 00 [18:27:51]Write to MH i2c: E2 08 00 B5 29 80 13 00 00 00 00 00 00 5A [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:51]Read from MH i2c: E2 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 62 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 62 00 B5 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 20 02 00 0E 04 04 00 C4 01 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 74 [18:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 20 02 00 0E 04 04 00 C4 01 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 [18:27:51]wFMCommunicate OK [18:27:51]SAM_PROTO_GetFieldsCounters done [18:27:51]requested_item shift.num is exist - process it [18:27:51]requested_item shift.opened is exist - process it [18:27:51]req_shift_opened [18:27:51]FM_GetShiftState [18:27:51]SAM_PROTO_GetShiftState [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 13 01 00 [18:27:51]Write to MH i2c: E2 08 00 B6 29 80 13 01 00 00 00 00 00 5C [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:52]Read from MH i2c: E2 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 0E 00 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 0E 00 B6 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 13 [18:27:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:27:52]wFMCommunicate OK [18:27:52]SAM_PROTO_GetShiftState done [18:27:52]FM_GetShiftState done [18:27:52]req_shift_opened done [18:27:52]requested_item shift.open_date is exist - process it [18:27:52]req_shift_open_date [18:27:52]req_shift_open_date done [18:27:52]produce_requested_data done [18:27:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139447,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:27:52]process_action_free close_receipt [18:27:52]json_value_free [18:27:52]json_value_free done [18:27:52]process_json_proto returns [18:27:52]Send response to host [18:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139447,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:27:52]free response buf [18:27:52]execute_script done [18:27:52]execute_script returns [18:27:52]free content buf [18:27:52]Sock 8.Close socket [18:27:52]Sock 8.Thread stoped [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]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:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:33:56]accept exits with 9 [18:33:56]New connection [18:33:56]New thread 3066674532 created [18:33:56]Thread 3066817892 joined [18:33:56]Waiting for new connection... [18:33:56] Sock 9.Parse request [18:33:56]Sock 9.Check first char [18:33:56]Sock 9.First char is OK [18:33:56]request: POST /json_proto HTTP/1.0 [18:33:56]Method: POST [18:33:56]URL: /json_proto [18:33:56]Method is POST - this is cgi request [18:33:56]url: /json_proto [18:33:56]query_string will be loaded in cgi processing [18:33:56]execute_cgi json_proto POST (null) [18:33:56]execute_cgi path=json_proto method=POST [18:33:56]POST find Content-Length [18:33:56]Host: 172.17.45.67:8080 [18:33:56]Content-Length: 818 [18:33:56]Content-Type: application/json [18:33:56] [18:33:56]POST finish read [18:33:56]Found Content-Length = 818 [18:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.890, "sum" : 399.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 399.00, "payments": [ { "type": 1, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:56]execute_script... [18:33: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)593290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.890, "sum" : 399.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 399.00, "payments": [ { "type": 1, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:56]POST & json_proto [18:33:56]process_json_proto [18:33:56]json parsed OK: [18:33:56]protocol is kg_v1.0 [18:33:56]action value=close_receipt [18:33:56]process_action close_receipt [18:33:56]cmd_close_receipt [18:33:56]MH_GetDate [18:33:56]Write to MH i2c: F0 00 00 B7 29 CF [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: F0 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: F0 09 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: F0 09 00 B7 29 00 16 90 C3 66 5F 7F 2B 66 16 [18:33:56]GetLastDocTimeStamp 1724092069 [18:33:56]current date 1724092438 [18:33:56]FM_GetShiftState [18:33:56]SAM_PROTO_GetShiftState [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 13 01 00 [18:33:56]Write to MH i2c: E2 08 00 B8 29 80 13 01 00 00 00 00 00 5E [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 0E 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 0E 00 B8 29 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 15 [18:33:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:33:56]wFMCommunicate OK [18:33:56]SAM_PROTO_GetShiftState done [18:33:56]FM_GetShiftState done [18:33:56]opened in 1724027888 [18:33:56]opened+sec_in_day 1724114288 [18:33:56]quantity*price = 39934 [18:33:56]sum+1 = 39935 [18:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 399.00 НСП 1% : 3.53 НДС 12% : 42.41 Наличными: 0.00 Безнал.: 399.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 283 19.08.2024 18:33 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139448 ФПД: 203615807638182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183358&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139448&fm=203615807638182&tin=02508201610067®Number=0000000000092569&sum=39900 [18:33:58]StoreToDocumentArchive [18:33:58]shift 452 fd 139448 [18:33:58]save to /storage/0452/doc_00139448 [18:33:58]save last doc name /storage/0452/doc_00139448 to /storage/kkm_last_doc_name [18:33:58]save OK [18:33:58]Clear old archive folders... [18:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:58]tlvbuf is 01275850 [18:33:58]SAM_PROTO_ClearQueue [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 09 00 00 [18:33:58]Write to MH i2c: E2 08 00 C5 29 80 09 00 00 00 00 00 00 60 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 C5 29 00 90 00 62 [18:33:58]RAPDU: 90 00 [18:33:58]wFMCommunicate OK [18:33:58]SAM_PROTO_ClearQueue done [18:33:58]KKMCreateOFDPacket [18:33:58]OFDProtocolAddRootSTLVToBuf [18:33:58]FM_MakeSignedData [18:33:58]FM_MakeSignedData [18:33:58]SAM_PROTO_SignData [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 0D 01 02 [18:33:58]Write to MH i2c: E2 08 00 C6 29 80 0D 01 02 00 00 00 00 68 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 C6 29 00 90 00 63 [18:33:58]RAPDU: 90 00 [18:33:58]wFMCommunicate OK [18:33:58]wFMCommunicate request_size=255 [18:33:58]MH_SAM_APDU [18:33: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 02 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 16 90 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 20 02 00 35 04 06 00 B9 [18:33:58]Write to MH i2c: E2 02 01 C7 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 16 90 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 20 02 00 35 04 06 00 B9 00 00 F8 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 C7 29 00 90 00 64 [18:33:58]RAPDU: 90 00 [18:33:58]wFMCommunicate OK [18:33:58]wFMCommunicate request_size=10 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 0D 02 02 05 2F FF E2 8A A6 [18:33:58]Write to MH i2c: E2 0D 00 C8 29 80 0D 02 02 05 00 2F FF E2 8A A6 00 00 B5 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 03 00 C8 29 00 90 00 65 [18:33:58]RAPDU: 90 00 [18:33:58]wFMCommunicate OK [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 0D 03 02 [18:33:58]Write to MH i2c: E2 08 00 C9 29 80 0D 03 02 00 00 00 00 6D [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 0B 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 0B 00 C9 29 00 A6 B0 BE 62 AA 25 C3 7D 90 00 F3 [18:33:58]RAPDU: A6 B0 BE 62 AA 25 C3 7D 90 00 [18:33:58]wFMCommunicate OK [18:33:58]SAM_PROTO_SignData done [18:33:58]FM_MakeSignedData done [18:33:58]CreateOFDProtocolMessage [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 11 00 00 [18:33:58]Write to MH i2c: E2 08 00 CA 29 80 11 00 00 00 00 00 00 6D [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 17 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 17 00 CA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [18:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:33:58]wFMCommunicate OK [18:33:58]CreateOFDProtocolMessage done [18:33:58]OFDSenderStorePacket 139448 [18:33:58]StoreOFDPacket docnum=139448 [18:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 34 3F 07 01 77 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 02 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 16 90 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 20 02 00 35 04 06 00 B9 2F FF E2 8A A6 A6 B0 BE 62 AA 25 C3 7D [18:33:58]CheckFolder [18:33:58]dirname=/storage/ofd_packets [18:33:58]CheckFolder done [18:33:58]ProducePacketName [18:33:58]name=ofd_packets/00139448 [18:33:58]NVStorageSaveData ofd_packets/00139448 [18:33:58]File name is /storage/ofd_packets/00139448 [18:33:58]Write 301 bytes [18:33:58]NVStorageSaveData done [18:33:58]OFDSenderStorePacket done [18:33:58]KKMCreateOFDPacket done [18:33:58]NVStorageSaveData kkm_last_timestamp [18:33:58]File name is /storage/kkm_last_timestamp [18:33:58]Write 4 bytes [18:33:58]NVStorageSaveData done [18:33:58]ExternCall_PrintAddStr [18:33:58]wPrintStart [18:33:58]Write to MH i2c: 01 00 00 CB 29 F4 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 07 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 07 00 CB 29 00 00 00 00 00 FF 0F 09 [18:33:58]RasterBufferAndPrint [18:33:58]line Счет N : (1)593290 [18:33:58]line ИНН: 02508201610067 [18:33:58]line Контрольно-Кассовый Чек [18:33:58]line ПРОДАЖА [18:33:58]line ТРК (МРК, ГНК) : 42 [18:33:58]line Товар: 2710124130 [18:33:58]line Аи-92-К-5 [18:33:58]line 5.890 * 67.80 [18:33:58]line = 399.34 [18:33:58]line НДС 12% НСП 1% [18:33:58]line > о реализуемом товаре [18:33:58]line ОКРУГЛЕНИЕ: -0.34 [18:33:58]line ИТОГО: 399.00 [18:33:58]line НСП 1% : 3.53 [18:33:58]line НДС 12% : 42.41 [18:33:58]line Наличными: 0.00 [18:33:58]line Безнал.: 399.00 [18:33:58]line Место: АЗС № 136 "Партнер Нефть" [18:33:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:33:58]line СНО: Общий режим [18:33:58]line Чек 283 19.08.2024 18:33 [18:33:58]line Смена: 452 ФФД: 1.0 [18:33:58]line ЗНМ: 0300000067 [18:33:58]line РНМ: 0000000000092569 [18:33:58]line Версия ККМ: 001 [18:33:58]line Платежная система: O! деньги [18:33:58]line ФМ: 0000000000871776 [18:33:58]line ФД: 139448 [18:33:58]line ФПД: 203615807638182 [18:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183358&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139448&fm=203615807638182&tin=02508201610067®Number=0000000000092569&sum=39900 [18:33:58]OFD Sender: Processing packet 139448 [packets to send 137, broken 136] [18:33:58]ProducePacketName [18:33:58]name=ofd_packets/00139448 [18:33:58]OFD Sender: To server: pG, [18:33:58]CommunicateWithHost lk.salyk.kg:30040 [18:33:58]ConnectInit lk.salyk.kg [18:33:58]written 0, free lines is 4095 [18:33:59]Connected sock=10 [18:33: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 37 36 0F 01 00 00 34 3F 07 01 77 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 02 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 16 90 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 20 02 00 35 04 06 00 B9 2F FF E2 8A A6 A6 B0 BE 62 AA 25 C3 7D [18:33: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 37 36 4F 00 00 00 44 A4 47 00 5E 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 20 02 00 F4 03 04 00 AC 36 C3 66 B6 04 01 00 00 84 37 35 6D 82 CB AF 35 [18:33:59]CommunicateWithHost err = 0 [18:33:59]CheckOFDResponse [18:33:59]1017 (14) - 77093643461234 [18:33:59]1041 (16) - 0000000000871776 [18:33:59]1040 (4) - 139448 [18:33:59]1012 (4) - 19.08.2024 12:12 [18:33:59]1206 (1) - 0 [18:33:59]OFD Sender: Remove packet 139448 [18:33:59]ProducePacketName [18:33:59]name=ofd_packets/00139448 [18:33:59]NVStorageDeleteData [18:33:59]Write to MH i2c: 01 00 00 F6 29 1F [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 07 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 07 00 F6 29 00 00 00 00 00 DA 0C 0C [18:33:59]RasterBufferAndPrint [18:33:59]line [18:33:59]line [18:33:59]line [18:33:59]line [18:33:59]line [18:33:59]written 0, free lines is 3298 [18:33:59]MH_Cut [18:33:59]Write to MH i2c: D1 01 00 FD 29 01 F8 [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: D1 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: D1 01 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: D1 01 00 FD 29 00 F7 [18:33:59]Write to MH i2c: 01 00 00 FE 29 27 [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]OFD Sender: No OFD packet to send [18:34:00]*** Cut start [18:34:00]*** Partial cut [18:34:00]*** CUTSNS_PIN = 1 [18:34:00]*** CUTSNS_PIN = 0 [18:34:00]*** Brake cut motor [18:34:00]Read from MH i2c: 01 [18:34:00]MH_I2C_Read... [18:34:00]*** Stop cut motor [18:34:00]*** Cut end [18:34:00]Read from MH i2c: 01 07 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: 01 07 00 FE 29 00 00 00 00 00 FF 0F 3C [18:34:00]process_action close_receipt done [18:34:00]requested_data is exist [18:34:00]produce_requested_data [18:34:00]requested_item fm.sn is exist - process it [18:34:00]wFMCommunicate request_size=4 [18:34:00]MH_SAM_APDU [18:34:00]CAPDU: 80 11 00 00 [18:34:00]Write to MH i2c: E2 08 00 FF 29 80 11 00 00 00 00 00 00 A2 [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:00]Read from MH i2c: E2 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 17 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 17 00 FF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [18:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:34:00]wFMCommunicate OK [18:34:00]requested_item fd.num is exist - process it [18:34:00]SAM_PROTO_GetFieldsCounters [18:34:00]wFMCommunicate request_size=4 [18:34:00]MH_SAM_APDU [18:34:00]CAPDU: 80 13 00 00 [18:34:00]Write to MH i2c: E2 08 00 00 2A 80 13 00 00 00 00 00 00 A6 [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:00]Read from MH i2c: E2 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 62 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 62 00 00 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 20 02 00 0E 04 04 00 C4 01 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 C4 [18:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 20 02 00 0E 04 04 00 C4 01 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 [18:34:00]wFMCommunicate OK [18:34:00]SAM_PROTO_GetFieldsCounters done [18:34:00]requested_item shift.num is exist - process it [18:34:00]requested_item shift.opened is exist - process it [18:34:00]req_shift_opened [18:34:00]FM_GetShiftState [18:34:00]SAM_PROTO_GetShiftState [18:34:00]wFMCommunicate request_size=4 [18:34:00]MH_SAM_APDU [18:34:00]CAPDU: 80 13 01 00 [18:34:00]Write to MH i2c: E2 08 00 01 2A 80 13 01 00 00 00 00 00 A8 [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:00]Read from MH i2c: E2 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 0E 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 0E 00 01 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5F [18:34:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:34:00]wFMCommunicate OK [18:34:00]SAM_PROTO_GetShiftState done [18:34:00]FM_GetShiftState done [18:34:00]req_shift_opened done [18:34:00]requested_item shift.open_date is exist - process it [18:34:00]req_shift_open_date [18:34:00]req_shift_open_date done [18:34:00]produce_requested_data done [18:34:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139448,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:34:00]process_action_free close_receipt [18:34:00]json_value_free [18:34:00]json_value_free done [18:34:00]process_json_proto returns [18:34:00]Send response to host [18:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139448,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:34:00]free response buf [18:34:00]execute_script done [18:34:00]execute_script returns [18:34:00]free content buf [18:34:00]Sock 9.Close socket [18:34:00]Sock 9.Thread stoped [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:41]accept exits with 8 [18:35:41]New connection [18:35:41]New thread 3066817892 created [18:35:41]Thread 3066674532 joined [18:35:41]Waiting for new connection... [18:35:41] Sock 8.Parse request [18:35:41]Sock 8.Check first char [18:35:41]Sock 8.First char is OK [18:35:41]request: POST /json_proto HTTP/1.0 [18:35:41]Method: POST [18:35:41]URL: /json_proto [18:35:41]Method is POST - this is cgi request [18:35:41]url: /json_proto [18:35:41]query_string will be loaded in cgi processing [18:35:41]execute_cgi json_proto POST (null) [18:35:41]execute_cgi path=json_proto method=POST [18:35:41]POST find Content-Length [18:35:41]Host: 172.17.45.67:8080 [18:35:41]Content-Length: 677 [18:35:41]Content-Type: application/json [18:35:41] [18:35:41]POST finish read [18:35:41]Found Content-Length = 677 [18:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:35:41]execute_script... [18:35: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)593291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:35:41]POST & json_proto [18:35:41]process_json_proto [18:35:41]json parsed OK: [18:35:41]protocol is kg_v1.0 [18:35:41]action value=close_receipt [18:35:41]process_action close_receipt [18:35:41]cmd_close_receipt [18:35:41]MH_GetDate [18:35:41]Write to MH i2c: F0 00 00 02 2A 1B [18:35:41]Write i2c OK [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: F0 [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: F0 09 00 [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: F0 09 00 02 2A 00 7F 90 C3 66 5F 7F 2B 66 CB [18:35:41]GetLastDocTimeStamp 1724092438 [18:35:41]current date 1724092543 [18:35:41]FM_GetShiftState [18:35:41]SAM_PROTO_GetShiftState [18:35:41]wFMCommunicate request_size=4 [18:35:41]MH_SAM_APDU [18:35:41]CAPDU: 80 13 01 00 [18:35:41]Write to MH i2c: E2 08 00 03 2A 80 13 01 00 00 00 00 00 AA [18:35:41]Write i2c OK [18:35:41]MH_I2C_Read... [18:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:41]Read from MH i2c: E2 [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: E2 0E 00 [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: E2 0E 00 03 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 61 [18:35:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:35:41]wFMCommunicate OK [18:35:41]SAM_PROTO_GetShiftState done [18:35:41]FM_GetShiftState done [18:35:41]opened in 1724027888 [18:35:41]opened+sec_in_day 1724114288 [18:35:41]quantity*price = 50036 [18:35:41]sum+1 = 50037 [18:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 284 19.08.2024 18:35 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139449 ФПД: 248469458889413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139449&fm=248469458889413&tin=02508201610067®Number=0000000000092569&sum=50000 [18:35:42]StoreToDocumentArchive [18:35:42]shift 452 fd 139449 [18:35:42]save to /storage/0452/doc_00139449 [18:35:42]save last doc name /storage/0452/doc_00139449 to /storage/kkm_last_doc_name [18:35:42]save OK [18:35:42]Clear old archive folders... [18:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:42]tlvbuf is B6EB9520 [18:35:42]SAM_PROTO_ClearQueue [18:35:42]wFMCommunicate request_size=4 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 09 00 00 [18:35:42]Write to MH i2c: E2 08 00 10 2A 80 09 00 00 00 00 00 00 AC [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [18:35:42]RAPDU: 90 00 [18:35:42]wFMCommunicate OK [18:35:42]SAM_PROTO_ClearQueue done [18:35:42]KKMCreateOFDPacket [18:35:42]OFDProtocolAddRootSTLVToBuf [18:35:42]FM_MakeSignedData [18:35:42]FM_MakeSignedData [18:35:42]SAM_PROTO_SignData [18:35:42]wFMCommunicate request_size=4 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 0D 01 02 [18:35:42]Write to MH i2c: E2 08 00 11 2A 80 0D 01 02 00 00 00 00 B4 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 11 2A 00 90 00 AF [18:35:42]RAPDU: 90 00 [18:35:42]wFMCommunicate OK [18:35:42]wFMCommunicate request_size=255 [18:35:42]MH_SAM_APDU [18:35: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7F 90 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 20 02 00 35 04 06 00 E1 [18:35:42]Write to MH i2c: E2 02 01 12 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7F 90 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 20 02 00 35 04 06 00 E1 00 00 13 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]wFMCommunicate request_size=10 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 0D 02 02 05 FB 4D D5 AA C5 [18:35:43]Write to MH i2c: E2 0D 00 13 2A 80 0D 02 02 05 00 FB 4D D5 AA C5 00 00 4D [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 13 2A 00 90 00 B1 [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 0D 03 02 [18:35:43]Write to MH i2c: E2 08 00 14 2A 80 0D 03 02 00 00 00 00 B9 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 0B 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 0B 00 14 2A 00 66 72 18 47 27 68 69 DF 90 00 C8 [18:35:43]RAPDU: 66 72 18 47 27 68 69 DF 90 00 [18:35:43]wFMCommunicate OK [18:35:43]SAM_PROTO_SignData done [18:35:43]FM_MakeSignedData done [18:35:43]CreateOFDProtocolMessage [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 11 00 00 [18:35:43]Write to MH i2c: E2 08 00 15 2A 80 11 00 00 00 00 00 00 B9 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 17 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 17 00 15 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [18:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:35:43]wFMCommunicate OK [18:35:43]CreateOFDProtocolMessage done [18:35:43]OFDSenderStorePacket 139449 [18:35:43]StoreOFDPacket docnum=139449 [18:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 66 07 01 C2 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7F 90 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 20 02 00 35 04 06 00 E1 FB 4D D5 AA C5 66 72 18 47 27 68 69 DF [18:35:43]CheckFolder [18:35:43]dirname=/storage/ofd_packets [18:35:43]CheckFolder done [18:35:43]ProducePacketName [18:35:43]name=ofd_packets/00139449 [18:35:43]NVStorageSaveData ofd_packets/00139449 [18:35:43]File name is /storage/ofd_packets/00139449 [18:35:43]Write 301 bytes [18:35:43]NVStorageSaveData done [18:35:43]OFDSenderStorePacket done [18:35:43]KKMCreateOFDPacket done [18:35:43]NVStorageSaveData kkm_last_timestamp [18:35:43]File name is /storage/kkm_last_timestamp [18:35:43]Write 4 bytes [18:35:43]NVStorageSaveData done [18:35:43]ExternCall_PrintAddStr [18:35:43]wPrintStart [18:35:43]Write to MH i2c: 01 00 00 16 2A 40 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 16 2A 00 00 00 00 00 FF 0F 55 [18:35:43]RasterBufferAndPrint [18:35:43]line Счет N : (1)593291 [18:35:43]line ИНН: 02508201610067 [18:35:43]line Контрольно-Кассовый Чек [18:35:43]line ПРОДАЖА [18:35:43]line ТРК (МРК, ГНК) : 62 [18:35:43]line Товар: 2710124130 [18:35:43]line Аи-92-К-5 [18:35:43]line 7.380 * 67.80 [18:35:43]line = 500.36 [18:35:43]line НДС 12% НСП 1% [18:35:43]line > о реализуемом товаре [18:35:43]line ОКРУГЛЕНИЕ: -0.36 [18:35:43]line ИТОГО: 500.00 [18:35:43]line Внесено: 500.00 [18:35:43]line СДАЧА: 0.00 [18:35:43]line НСП 1% : 4.43 [18:35:43]line НДС 12% : 53.14 [18:35:43]line Наличными: 500.00 [18:35:43]line Безнал.: 0.00 [18:35:43]line Место: АЗС № 136 "Партнер Нефть" [18:35:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:35:43]line СНО: Общий режим [18:35:43]line Чек 284 19.08.2024 18:35 [18:35:43]line Смена: 452 ФФД: 1.0 [18:35:43]line ЗНМ: 0300000067 [18:35:43]line РНМ: 0000000000092569 [18:35:43]line Версия ККМ: 001 [18:35:43]line ФМ: 0000000000871776 [18:35:43]line ФД: 139449 [18:35:43]line ФПД: 248469458889413 [18:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139449&fm=248469458889413&tin=02508201610067®Number=0000000000092569&sum=50000 [18:35:43]written 0, free lines is 4095 [18:35:43]OFD Sender: Processing packet 139449 [packets to send 137, broken 136] [18:35:43]ProducePacketName [18:35:43]name=ofd_packets/00139449 [18:35:43]OFD Sender: To server: pG, [18:35:43]CommunicateWithHost lk.salyk.kg:30040 [18:35:43]ConnectInit lk.salyk.kg [18:35:43]Connected sock=10 [18:35: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 37 36 0F 01 00 00 38 66 07 01 C2 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 7F 90 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 20 02 00 35 04 06 00 E1 FB 4D D5 AA C5 66 72 18 47 27 68 69 DF [18:35: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 37 36 4F 00 00 00 1E C8 47 00 84 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 37 36 10 04 04 00 B9 20 02 00 F4 03 04 00 14 37 C3 66 B6 04 01 00 00 64 7B BC FD 50 3C 54 A9 [18:35:43]CommunicateWithHost err = 0 [18:35:43]CheckOFDResponse [18:35:43]1017 (14) - 77093643461234 [18:35:43]1041 (16) - 0000000000871776 [18:35:43]1040 (4) - 139449 [18:35:43]1012 (4) - 19.08.2024 12:14 [18:35:43]1206 (1) - 0 [18:35:43]OFD Sender: Remove packet 139449 [18:35:43]ProducePacketName [18:35:43]name=ofd_packets/00139449 [18:35:43]NVStorageDeleteData [18:35:43]Write to MH i2c: 01 00 00 41 2A 6B [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 41 2A 00 00 00 00 00 D8 0C 56 [18:35:43]RasterBufferAndPrint [18:35:43]line [18:35:43]line [18:35:43]line [18:35:43]line [18:35:43]line [18:35:43]written 0, free lines is 3295 [18:35:43]MH_Cut [18:35:43]Write to MH i2c: D1 01 00 48 2A 01 44 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: D1 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: D1 01 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: D1 01 00 48 2A 00 43 [18:35:43]Write to MH i2c: 01 00 00 49 2A 73 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:44]OFD Sender: No OFD packet to send [18:35:44]*** Cut start [18:35:44]*** Partial cut [18:35:44]*** CUTSNS_PIN = 1 [18:35:44]*** CUTSNS_PIN = 0 [18:35:44]*** Brake cut motor [18:35:45]Read from MH i2c: 01 [18:35:45]MH_I2C_Read... [18:35:45]*** Stop cut motor [18:35:45]*** Cut end [18:35:45]Read from MH i2c: 01 07 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: 01 07 00 49 2A 00 00 00 00 00 FF 0F 88 [18:35:45]process_action close_receipt done [18:35:45]requested_data is exist [18:35:45]produce_requested_data [18:35:45]requested_item fm.sn is exist - process it [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 11 00 00 [18:35:45]Write to MH i2c: E2 08 00 4A 2A 80 11 00 00 00 00 00 00 EE [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 17 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 17 00 4A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [18:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:35:45]wFMCommunicate OK [18:35:45]requested_item fd.num is exist - process it [18:35:45]SAM_PROTO_GetFieldsCounters [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 13 00 00 [18:35:45]Write to MH i2c: E2 08 00 4B 2A 80 13 00 00 00 00 00 00 F1 [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 62 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 62 00 4B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 20 02 00 0E 04 04 00 C4 01 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 13 [18:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 20 02 00 0E 04 04 00 C4 01 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 [18:35:45]wFMCommunicate OK [18:35:45]SAM_PROTO_GetFieldsCounters done [18:35:45]requested_item shift.num is exist - process it [18:35:45]requested_item shift.opened is exist - process it [18:35:45]req_shift_opened [18:35:45]FM_GetShiftState [18:35:45]SAM_PROTO_GetShiftState [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 13 01 00 [18:35:45]Write to MH i2c: E2 08 00 4C 2A 80 13 01 00 00 00 00 00 F3 [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 0E 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 0E 00 4C 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AA [18:35:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:35:45]wFMCommunicate OK [18:35:45]SAM_PROTO_GetShiftState done [18:35:45]FM_GetShiftState done [18:35:45]req_shift_opened done [18:35:45]requested_item shift.open_date is exist - process it [18:35:45]req_shift_open_date [18:35:45]req_shift_open_date done [18:35:45]produce_requested_data done [18:35:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139449,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:35:45]process_action_free close_receipt [18:35:45]json_value_free [18:35:45]json_value_free done [18:35:45]process_json_proto returns [18:35:45]Send response to host [18:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139449,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:35:45]free response buf [18:35:45]execute_script done [18:35:45]execute_script returns [18:35:45]free content buf [18:35:45]Sock 8.Close socket [18:35:45]Sock 8.Thread stoped [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:52]accept exits with 9 [18:39:52]New connection [18:39:52]New thread 3066674532 created [18:39:52]Thread 3066817892 joined [18:39:52]Waiting for new connection... [18:39:52] Sock 9.Parse request [18:39:52]Sock 9.Check first char [18:39:52]Sock 9.First char is OK [18:39:52]request: POST /json_proto HTTP/1.0 [18:39:52]Method: POST [18:39:52]URL: /json_proto [18:39:52]Method is POST - this is cgi request [18:39:52]url: /json_proto [18:39:52]query_string will be loaded in cgi processing [18:39:52]execute_cgi json_proto POST (null) [18:39:52]execute_cgi path=json_proto method=POST [18:39:52]POST find Content-Length [18:39:52]Host: 172.17.45.67:8080 [18:39:52]Content-Length: 677 [18:39:52]Content-Type: application/json [18:39:52] [18:39:52]POST finish read [18:39:52]Found Content-Length = 677 [18:39:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:52]execute_script... [18:39: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)593292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:52]POST & json_proto [18:39:52]process_json_proto [18:39:52]json parsed OK: [18:39:52]protocol is kg_v1.0 [18:39:52]action value=close_receipt [18:39:52]process_action close_receipt [18:39:52]cmd_close_receipt [18:39:52]MH_GetDate [18:39:52]Write to MH i2c: F0 00 00 4D 2A 66 [18:39:52]Write i2c OK [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: F0 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: F0 09 00 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: F0 09 00 4D 2A 00 7A 91 C3 66 5F 7F 2B 66 12 [18:39:52]GetLastDocTimeStamp 1724092543 [18:39:52]current date 1724092794 [18:39:52]FM_GetShiftState [18:39:52]SAM_PROTO_GetShiftState [18:39:52]wFMCommunicate request_size=4 [18:39:52]MH_SAM_APDU [18:39:52]CAPDU: 80 13 01 00 [18:39:52]Write to MH i2c: E2 08 00 4E 2A 80 13 01 00 00 00 00 00 F5 [18:39:52]Write i2c OK [18:39:52]MH_I2C_Read... [18:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:52]Read from MH i2c: E2 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 0E 00 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 0E 00 4E 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AC [18:39:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:39:52]wFMCommunicate OK [18:39:52]SAM_PROTO_GetShiftState done [18:39:52]FM_GetShiftState done [18:39:52]opened in 1724027888 [18:39:52]opened+sec_in_day 1724114288 [18:39:52]quantity*price = 30035 [18:39:52]sum+1 = 30036 [18:39:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 285 19.08.2024 18:39 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139450 ФПД: 118571491101646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183954&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139450&fm=118571491101646&tin=02508201610067®Number=0000000000092569&sum=30000 [18:39:53]StoreToDocumentArchive [18:39:53]shift 452 fd 139450 [18:39:53]save to /storage/0452/doc_00139450 [18:39:53]save last doc name /storage/0452/doc_00139450 to /storage/kkm_last_doc_name [18:39:53]save OK [18:39:53]Clear old archive folders... [18:39:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:53]tlvbuf is 012756D0 [18:39:53]SAM_PROTO_ClearQueue [18:39:53]wFMCommunicate request_size=4 [18:39:53]MH_SAM_APDU [18:39:53]CAPDU: 80 09 00 00 [18:39:53]Write to MH i2c: E2 08 00 5B 2A 80 09 00 00 00 00 00 00 F7 [18:39:53]Write i2c OK [18:39:53]MH_I2C_Read... [18:39:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:53]Read from MH i2c: E2 [18:39:53]MH_I2C_Read... [18:39:53]Read from MH i2c: E2 03 00 [18:39:53]MH_I2C_Read... [18:39:53]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [18:39:53]RAPDU: 90 00 [18:39:53]wFMCommunicate OK [18:39:53]SAM_PROTO_ClearQueue done [18:39:53]KKMCreateOFDPacket [18:39:53]OFDProtocolAddRootSTLVToBuf [18:39:53]FM_MakeSignedData [18:39:53]FM_MakeSignedData [18:39:53]SAM_PROTO_SignData [18:39:53]wFMCommunicate request_size=4 [18:39:53]MH_SAM_APDU [18:39:53]CAPDU: 80 0D 01 02 [18:39:53]Write to MH i2c: E2 08 00 5C 2A 80 0D 01 02 00 00 00 00 FF [18:39:53]Write i2c OK [18:39:53]MH_I2C_Read... [18:39:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:53]Read from MH i2c: E2 [18:39:53]MH_I2C_Read... [18:39:53]Read from MH i2c: E2 03 00 [18:39:53]MH_I2C_Read... [18:39:53]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [18:39:53]RAPDU: 90 00 [18:39:53]wFMCommunicate OK [18:39:53]wFMCommunicate request_size=255 [18:39:53]MH_SAM_APDU [18:39: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7A 91 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 20 02 00 35 04 06 00 6B [18:39:53]Write to MH i2c: E2 02 01 5D 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7A 91 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 20 02 00 35 04 06 00 6B 00 00 05 [18:39:53]Write i2c OK [18:39:53]MH_I2C_Read... [18:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:54]Read from MH i2c: E2 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 03 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [18:39:54]RAPDU: 90 00 [18:39:54]wFMCommunicate OK [18:39:54]wFMCommunicate request_size=10 [18:39:54]MH_SAM_APDU [18:39:54]CAPDU: 80 0D 02 02 05 D7 13 9B 8B CE [18:39:54]Write to MH i2c: E2 0D 00 5E 2A 80 0D 02 02 05 00 D7 13 9B 8B CE 00 00 EA [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:54]Read from MH i2c: E2 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 03 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [18:39:54]RAPDU: 90 00 [18:39:54]wFMCommunicate OK [18:39:54]wFMCommunicate request_size=4 [18:39:54]MH_SAM_APDU [18:39:54]CAPDU: 80 0D 03 02 [18:39:54]Write to MH i2c: E2 08 00 5F 2A 80 0D 03 02 00 00 00 00 04 [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:54]Read from MH i2c: E2 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 0B 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 0B 00 5F 2A 00 12 B0 30 19 3E 26 F2 B5 90 00 1B [18:39:54]RAPDU: 12 B0 30 19 3E 26 F2 B5 90 00 [18:39:54]wFMCommunicate OK [18:39:54]SAM_PROTO_SignData done [18:39:54]FM_MakeSignedData done [18:39:54]CreateOFDProtocolMessage [18:39:54]wFMCommunicate request_size=4 [18:39:54]MH_SAM_APDU [18:39:54]CAPDU: 80 11 00 00 [18:39:54]Write to MH i2c: E2 08 00 60 2A 80 11 00 00 00 00 00 00 04 [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:54]Read from MH i2c: E2 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 17 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: E2 17 00 60 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [18:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:39:54]wFMCommunicate OK [18:39:54]CreateOFDProtocolMessage done [18:39:54]OFDSenderStorePacket 139450 [18:39:54]StoreOFDPacket docnum=139450 [18:39:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E 0C 07 01 1D 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7A 91 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 20 02 00 35 04 06 00 6B D7 13 9B 8B CE 12 B0 30 19 3E 26 F2 B5 [18:39:54]CheckFolder [18:39:54]dirname=/storage/ofd_packets [18:39:54]CheckFolder done [18:39:54]ProducePacketName [18:39:54]name=ofd_packets/00139450 [18:39:54]NVStorageSaveData ofd_packets/00139450 [18:39:54]File name is /storage/ofd_packets/00139450 [18:39:54]Write 301 bytes [18:39:54]NVStorageSaveData done [18:39:54]OFDSenderStorePacket done [18:39:54]KKMCreateOFDPacket done [18:39:54]NVStorageSaveData kkm_last_timestamp [18:39:54]File name is /storage/kkm_last_timestamp [18:39:54]Write 4 bytes [18:39:54]NVStorageSaveData done [18:39:54]ExternCall_PrintAddStr [18:39:54]wPrintStart [18:39:54]Write to MH i2c: 01 00 00 61 2A 8B [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: 01 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: 01 07 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: 01 07 00 61 2A 00 00 00 00 00 FF 0F A0 [18:39:54]RasterBufferAndPrint [18:39:54]line Счет N : (1)593292 [18:39:54]line ИНН: 02508201610067 [18:39:54]line Контрольно-Кассовый Чек [18:39:54]line ПРОДАЖА [18:39:54]line ТРК (МРК, ГНК) : 42 [18:39:54]line Товар: 2710124130 [18:39:54]line Аи-92-К-5 [18:39:54]line 4.430 * 67.80 [18:39:54]line = 300.35 [18:39:54]line НДС 12% НСП 1% [18:39:54]line > о реализуемом товаре [18:39:54]line ОКРУГЛЕНИЕ: -0.35 [18:39:54]line ИТОГО: 300.00 [18:39:54]line Внесено: 300.00 [18:39:54]line СДАЧА: 0.00 [18:39:54]line НСП 1% : 2.66 [18:39:54]line НДС 12% : 31.90 [18:39:54]line Наличными: 300.00 [18:39:54]line Безнал.: 0.00 [18:39:54]line Место: АЗС № 136 "Партнер Нефть" [18:39:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:39:54]line СНО: Общий режим [18:39:54]line Чек 285 19.08.2024 18:39 [18:39:54]line Смена: 452 ФФД: 1.0 [18:39:54]line ЗНМ: 0300000067 [18:39:54]line РНМ: 0000000000092569 [18:39:54]line Версия ККМ: 001 [18:39:54]line ФМ: 0000000000871776 [18:39:54]line ФД: 139450 [18:39:54]line ФПД: 118571491101646 [18:39:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183954&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139450&fm=118571491101646&tin=02508201610067®Number=0000000000092569&sum=30000 [18:39:54]written 0, free lines is 4095 [18:39:54]OFD Sender: Processing packet 139450 [packets to send 137, broken 136] [18:39:54]ProducePacketName [18:39:54]name=ofd_packets/00139450 [18:39:54]OFD Sender: To server: pG, [18:39:54]CommunicateWithHost lk.salyk.kg:30040 [18:39:54]ConnectInit lk.salyk.kg [18:39:54]Connected sock=10 [18:39: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 37 36 0F 01 00 00 3E 0C 07 01 1D 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 7A 91 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 20 02 00 35 04 06 00 6B D7 13 9B 8B CE 12 B0 30 19 3E 26 F2 B5 [18:39:54]Write to MH i2c: 01 00 00 8C 2A B6 [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: 01 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: 01 07 00 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: 01 07 00 8C 2A 00 00 00 00 00 CD 0C 96 [18:39:54]RasterBufferAndPrint [18:39:54]line [18:39:54]line [18:39:54]line [18:39:54]line [18:39:54]line [18:39:54]written 0, free lines is 3283 [18:39:54]MH_Cut [18:39:54]Write to MH i2c: D1 01 00 93 2A 01 8F [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: D1 [18:39:54]MH_I2C_Read... [18:39:54]Read from MH i2c: D1 01 00 [18:39:54]MH_I2C_Read... [18:39: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 37 36 4F 00 00 00 30 BC 47 00 AD 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 37 36 10 04 04 00 BA 20 02 00 F4 03 04 00 0F 38 C3 66 B6 04 01 00 00 C5 9A EF 8D 59 C0 7F 2B [18:39:54]CommunicateWithHost err = 0 [18:39:54]CheckOFDResponse [18:39:54]1017 (14) - 77093643461234 [18:39:54]1041 (16) - 0000000000871776 [18:39:54]1040 (4) - 139450 [18:39:54]1012 (4) - 19.08.2024 12:18 [18:39:54]1206 (1) - 0 [18:39:54]OFD Sender: Remove packet 139450 [18:39:54]ProducePacketName [18:39:54]name=ofd_packets/00139450 [18:39:54]NVStorageDeleteData [18:39:54]Read from MH i2c: D1 01 00 93 2A 00 8E [18:39:54]Write to MH i2c: 01 00 00 94 2A BE [18:39:54]Write i2c OK [18:39:54]MH_I2C_Read... [18:39:55]OFD Sender: No OFD packet to send [18:39:55]*** Cut start [18:39:55]*** Partial cut [18:39:55]*** CUTSNS_PIN = 1 [18:39:55]*** CUTSNS_PIN = 0 [18:39:55]*** Brake cut motor [18:39:56]Read from MH i2c: 01 [18:39:56]MH_I2C_Read... [18:39:56]*** Stop cut motor [18:39:56]*** Cut end [18:39:56]Read from MH i2c: 01 07 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: 01 07 00 94 2A 00 00 00 00 00 FF 0F D3 [18:39:56]process_action close_receipt done [18:39:56]requested_data is exist [18:39:56]produce_requested_data [18:39:56]requested_item fm.sn is exist - process it [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 11 00 00 [18:39:56]Write to MH i2c: E2 08 00 95 2A 80 11 00 00 00 00 00 00 39 [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 17 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 17 00 95 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [18:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:39:56]wFMCommunicate OK [18:39:56]requested_item fd.num is exist - process it [18:39:56]SAM_PROTO_GetFieldsCounters [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 13 00 00 [18:39:56]Write to MH i2c: E2 08 00 96 2A 80 13 00 00 00 00 00 00 3C [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 62 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 62 00 96 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 20 02 00 0E 04 04 00 C4 01 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 62 [18:39: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 20 02 00 0E 04 04 00 C4 01 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 [18:39:56]wFMCommunicate OK [18:39:56]SAM_PROTO_GetFieldsCounters done [18:39:56]requested_item shift.num is exist - process it [18:39:56]requested_item shift.opened is exist - process it [18:39:56]req_shift_opened [18:39:56]FM_GetShiftState [18:39:56]SAM_PROTO_GetShiftState [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 13 01 00 [18:39:56]Write to MH i2c: E2 08 00 97 2A 80 13 01 00 00 00 00 00 3E [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 0E 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 0E 00 97 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F5 [18:39:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:39:56]wFMCommunicate OK [18:39:56]SAM_PROTO_GetShiftState done [18:39:56]FM_GetShiftState done [18:39:56]req_shift_opened done [18:39:56]requested_item shift.open_date is exist - process it [18:39:56]req_shift_open_date [18:39:56]req_shift_open_date done [18:39:56]produce_requested_data done [18:39:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139450,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:39:56]process_action_free close_receipt [18:39:56]json_value_free [18:39:56]json_value_free done [18:39:56]process_json_proto returns [18:39:56]Send response to host [18:39:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139450,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:39:56]free response buf [18:39:56]execute_script done [18:39:56]execute_script returns [18:39:56]free content buf [18:39:56]Sock 9.Close socket [18:39:56]Sock 9.Thread stoped [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:54]accept exits with 8 [18:44:54]New connection [18:44:54]New thread 3066817892 created [18:44:54]Thread 3066674532 joined [18:44:54]Waiting for new connection... [18:44:54] Sock 8.Parse request [18:44:54]Sock 8.Check first char [18:44:54]Sock 8.First char is OK [18:44:54]request: POST /json_proto HTTP/1.0 [18:44:54]Method: POST [18:44:54]URL: /json_proto [18:44:54]Method is POST - this is cgi request [18:44:54]url: /json_proto [18:44:54]query_string will be loaded in cgi processing [18:44:54]execute_cgi json_proto POST (null) [18:44:54]execute_cgi path=json_proto method=POST [18:44:54]POST find Content-Length [18:44:54]Host: 172.17.45.67:8080 [18:44:54]Content-Length: 822 [18:44:54]Content-Type: application/json [18:44:54] [18:44:54]POST finish read [18:44:54]Found Content-Length = 822 [18:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1300.00, "payments": [ { "type": 1, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:54]execute_script... [18:44: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)593293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1300.00, "payments": [ { "type": 1, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:54]POST & json_proto [18:44:54]process_json_proto [18:44:54]json parsed OK: [18:44:54]protocol is kg_v1.0 [18:44:54]action value=close_receipt [18:44:54]process_action close_receipt [18:44:54]cmd_close_receipt [18:44:54]MH_GetDate [18:44:54]Write to MH i2c: F0 00 00 98 2A B1 [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: F0 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: F0 09 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: F0 09 00 98 2A 00 A8 92 C3 66 5F 7F 2B 66 8C [18:44:54]GetLastDocTimeStamp 1724092794 [18:44:54]current date 1724093096 [18:44:54]FM_GetShiftState [18:44:54]SAM_PROTO_GetShiftState [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 13 01 00 [18:44:54]Write to MH i2c: E2 08 00 99 2A 80 13 01 00 00 00 00 00 40 [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 0E 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 0E 00 99 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F7 [18:44:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:44:54]wFMCommunicate OK [18:44:54]SAM_PROTO_GetShiftState done [18:44:54]FM_GetShiftState done [18:44:54]opened in 1724027888 [18:44:54]opened+sec_in_day 1724114288 [18:44:54]quantity*price = 130040 [18:44:54]sum+1 = 130041 [18:44:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1300.00 НСП 1% : 11.51 НДС 12% : 138.10 Наличными: 0.00 Безнал.: 1300.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 286 19.08.2024 18:44 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139451 ФПД: 57978868465253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T184456&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139451&fm=57978868465253&tin=02508201610067®Number=0000000000092569&sum=130000 [18:44:55]StoreToDocumentArchive [18:44:55]shift 452 fd 139451 [18:44:55]save to /storage/0452/doc_00139451 [18:44:55]save last doc name /storage/0452/doc_00139451 to /storage/kkm_last_doc_name [18:44:55]save OK [18:44:55]Clear old archive folders... [18:44:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:55]tlvbuf is B6D87510 [18:44:55]SAM_PROTO_ClearQueue [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 09 00 00 [18:44:55]Write to MH i2c: E2 08 00 A6 2A 80 09 00 00 00 00 00 00 42 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 A6 2A 00 90 00 44 [18:44:55]RAPDU: 90 00 [18:44:55]wFMCommunicate OK [18:44:55]SAM_PROTO_ClearQueue done [18:44:55]KKMCreateOFDPacket [18:44:55]OFDProtocolAddRootSTLVToBuf [18:44:55]FM_MakeSignedData [18:44:55]FM_MakeSignedData [18:44:55]SAM_PROTO_SignData [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 0D 01 02 [18:44:55]Write to MH i2c: E2 08 00 A7 2A 80 0D 01 02 00 00 00 00 4A [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 A7 2A 00 90 00 45 [18:44:55]RAPDU: 90 00 [18:44:55]wFMCommunicate OK [18:44:55]wFMCommunicate request_size=255 [18:44:55]MH_SAM_APDU [18:44: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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 A8 92 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 20 02 00 35 04 06 00 34 [18:44:55]Write to MH i2c: E2 02 01 A8 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 A8 92 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 20 02 00 35 04 06 00 34 00 00 B8 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]OFD Sender: No OFD packet to send [18:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 A8 2A 00 90 00 46 [18:44:55]RAPDU: 90 00 [18:44:55]wFMCommunicate OK [18:44:55]wFMCommunicate request_size=10 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 0D 02 02 05 BB 41 DB FE 65 [18:44:55]Write to MH i2c: E2 0D 00 A9 2A 80 0D 02 02 05 00 BB 41 DB FE 65 00 00 91 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [18:44:55]RAPDU: 90 00 [18:44:55]wFMCommunicate OK [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 0D 03 02 [18:44:55]Write to MH i2c: E2 08 00 AA 2A 80 0D 03 02 00 00 00 00 4F [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:56]Read from MH i2c: E2 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 0B 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 0B 00 AA 2A 00 69 77 9E 21 6D 54 A2 50 90 00 A2 [18:44:56]RAPDU: 69 77 9E 21 6D 54 A2 50 90 00 [18:44:56]wFMCommunicate OK [18:44:56]SAM_PROTO_SignData done [18:44:56]FM_MakeSignedData done [18:44:56]CreateOFDProtocolMessage [18:44:56]wFMCommunicate request_size=4 [18:44:56]MH_SAM_APDU [18:44:56]CAPDU: 80 11 00 00 [18:44:56]Write to MH i2c: E2 08 00 AB 2A 80 11 00 00 00 00 00 00 4F [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:56]Read from MH i2c: E2 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 17 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 17 00 AB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [18:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:44:56]wFMCommunicate OK [18:44:56]CreateOFDProtocolMessage done [18:44:56]OFDSenderStorePacket 139451 [18:44:56]StoreOFDPacket docnum=139451 [18:44:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 61 F0 07 01 63 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 A8 92 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 20 02 00 35 04 06 00 34 BB 41 DB FE 65 69 77 9E 21 6D 54 A2 50 [18:44:56]CheckFolder [18:44:56]dirname=/storage/ofd_packets [18:44:56]CheckFolder done [18:44:56]ProducePacketName [18:44:56]name=ofd_packets/00139451 [18:44:56]NVStorageSaveData ofd_packets/00139451 [18:44:56]File name is /storage/ofd_packets/00139451 [18:44:56]Write 301 bytes [18:44:56]NVStorageSaveData done [18:44:56]OFDSenderStorePacket done [18:44:56]KKMCreateOFDPacket done [18:44:56]NVStorageSaveData kkm_last_timestamp [18:44:56]File name is /storage/kkm_last_timestamp [18:44:56]Write 4 bytes [18:44:56]NVStorageSaveData done [18:44:56]ExternCall_PrintAddStr [18:44:56]wPrintStart [18:44:56]Write to MH i2c: 01 00 00 AC 2A D6 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: 01 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: 01 07 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: 01 07 00 AC 2A 00 00 00 00 00 FF 0F EB [18:44:56]RasterBufferAndPrint [18:44:56]line Счет N : (1)593293 [18:44:56]line ИНН: 02508201610067 [18:44:56]line Контрольно-Кассовый Чек [18:44:56]line ПРОДАЖА [18:44:56]line ТРК (МРК, ГНК) : 52 [18:44:56]line Товар: 2710124130 [18:44:56]line Аи-92-К-5 [18:44:56]line 19.180 * 67.80 [18:44:56]line = 1300.40 [18:44:56]line НДС 12% НСП 1% [18:44:56]line > о реализуемом товаре [18:44:56]line ОКРУГЛЕНИЕ: -0.40 [18:44:56]line ИТОГО: 1300.00 [18:44:56]line НСП 1% : 11.51 [18:44:56]line НДС 12% : 138.10 [18:44:56]line Наличными: 0.00 [18:44:56]line Безнал.: 1300.00 [18:44:56]line Место: АЗС № 136 "Партнер Нефть" [18:44:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:44:56]line СНО: Общий режим [18:44:56]line Чек 286 19.08.2024 18:44 [18:44:56]line Смена: 452 ФФД: 1.0 [18:44:56]line ЗНМ: 0300000067 [18:44:56]line РНМ: 0000000000092569 [18:44:56]line Версия ККМ: 001 [18:44:56]line Платежная система: O! деньги [18:44:56]line ФМ: 0000000000871776 [18:44:56]line ФД: 139451 [18:44:56]line ФПД: 57978868465253 [18:44:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T184456&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139451&fm=57978868465253&tin=02508201610067®Number=0000000000092569&sum=130000 [18:44:56]OFD Sender: Processing packet 139451 [packets to send 137, broken 136] [18:44:56]ProducePacketName [18:44:56]name=ofd_packets/00139451 [18:44:56]OFD Sender: To server: pG, [18:44:56]CommunicateWithHost lk.salyk.kg:30040 [18:44:56]ConnectInit lk.salyk.kg [18:44:56]written 0, free lines is 4095 [18:44:56]Connected sock=10 [18:44: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 37 36 0F 01 00 00 61 F0 07 01 63 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 A8 92 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 20 02 00 35 04 06 00 34 BB 41 DB FE 65 69 77 9E 21 6D 54 A2 50 [18:44: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 37 36 4F 00 00 00 B3 0C 47 00 4F 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 37 36 10 04 04 00 BB 20 02 00 F4 03 04 00 3D 39 C3 66 B6 04 01 00 00 A2 3A 75 47 50 11 64 D4 [18:44:56]CommunicateWithHost err = 0 [18:44:56]CheckOFDResponse [18:44:56]1017 (14) - 77093643461234 [18:44:56]1041 (16) - 0000000000871776 [18:44:56]1040 (4) - 139451 [18:44:56]1012 (4) - 19.08.2024 12:23 [18:44:56]1206 (1) - 0 [18:44:56]OFD Sender: Remove packet 139451 [18:44:56]ProducePacketName [18:44:56]name=ofd_packets/00139451 [18:44:56]NVStorageDeleteData [18:44:56]Write to MH i2c: 01 00 00 D7 2A 01 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: 01 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: 01 07 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: 01 07 00 D7 2A 00 00 00 00 00 E0 0C F4 [18:44:56]RasterBufferAndPrint [18:44:56]line [18:44:56]line [18:44:56]line [18:44:56]line [18:44:56]line [18:44:56]written 0, free lines is 3302 [18:44:56]MH_Cut [18:44:56]Write to MH i2c: D1 01 00 DE 2A 01 DA [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: D1 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: D1 01 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: D1 01 00 DE 2A 00 D9 [18:44:56]Write to MH i2c: 01 00 00 DF 2A 09 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:57]OFD Sender: No OFD packet to send [18:44:57]*** Cut start [18:44:57]*** Partial cut [18:44:57]*** CUTSNS_PIN = 1 [18:44:57]*** CUTSNS_PIN = 0 [18:44:57]*** Brake cut motor [18:44:58]Read from MH i2c: 01 [18:44:58]MH_I2C_Read... [18:44:58]*** Stop cut motor [18:44:58]*** Cut end [18:44:58]Read from MH i2c: 01 07 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: 01 07 00 DF 2A 00 00 00 00 00 FF 0F 1E [18:44:58]process_action close_receipt done [18:44:58]requested_data is exist [18:44:58]produce_requested_data [18:44:58]requested_item fm.sn is exist - process it [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 11 00 00 [18:44:58]Write to MH i2c: E2 08 00 E0 2A 80 11 00 00 00 00 00 00 84 [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 17 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 17 00 E0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [18:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:44:58]wFMCommunicate OK [18:44:58]requested_item fd.num is exist - process it [18:44:58]SAM_PROTO_GetFieldsCounters [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 13 00 00 [18:44:58]Write to MH i2c: E2 08 00 E1 2A 80 13 00 00 00 00 00 00 87 [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 62 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 62 00 E1 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 20 02 00 0E 04 04 00 C4 01 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 B1 [18:44: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 20 02 00 0E 04 04 00 C4 01 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 [18:44:58]wFMCommunicate OK [18:44:58]SAM_PROTO_GetFieldsCounters done [18:44:58]requested_item shift.num is exist - process it [18:44:58]requested_item shift.opened is exist - process it [18:44:58]req_shift_opened [18:44:58]FM_GetShiftState [18:44:58]SAM_PROTO_GetShiftState [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 13 01 00 [18:44:58]Write to MH i2c: E2 08 00 E2 2A 80 13 01 00 00 00 00 00 89 [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 0E 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 0E 00 E2 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 40 [18:44:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:44:58]wFMCommunicate OK [18:44:58]SAM_PROTO_GetShiftState done [18:44:58]FM_GetShiftState done [18:44:58]req_shift_opened done [18:44:58]requested_item shift.open_date is exist - process it [18:44:58]req_shift_open_date [18:44:58]req_shift_open_date done [18:44:58]produce_requested_data done [18:44:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139451,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:44:58]process_action_free close_receipt [18:44:58]json_value_free [18:44:58]json_value_free done [18:44:58]process_json_proto returns [18:44:58]Send response to host [18:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139451,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:44:58]free response buf [18:44:58]execute_script done [18:44:58]execute_script returns [18:44:58]free content buf [18:44:58]Sock 8.Close socket [18:44:58]Sock 8.Thread stoped [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]accept exits with 9 [18:49:37]New connection [18:49:37]New thread 3066674532 created [18:49:37]Thread 3066817892 joined [18:49:37]Waiting for new connection... [18:49:37] Sock 9.Parse request [18:49:37]Sock 9.Check first char [18:49:37]Sock 9.First char is OK [18:49:37]request: POST /json_proto HTTP/1.0 [18:49:37]Method: POST [18:49:37]URL: /json_proto [18:49:37]Method is POST - this is cgi request [18:49:37]url: /json_proto [18:49:37]query_string will be loaded in cgi processing [18:49:37]execute_cgi json_proto POST (null) [18:49:37]execute_cgi path=json_proto method=POST [18:49:37]POST find Content-Length [18:49:37]Host: 172.17.45.67:8080 [18:49:37]Content-Length: 677 [18:49:37]Content-Type: application/json [18:49:37] [18:49:37]POST finish read [18:49:37]Found Content-Length = 677 [18:49:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:49:37]execute_script... [18:49: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)593294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:49:37]POST & json_proto [18:49:37]process_json_proto [18:49:37]json parsed OK: [18:49:37]protocol is kg_v1.0 [18:49:37]action value=close_receipt [18:49:37]process_action close_receipt [18:49:37]cmd_close_receipt [18:49:37]MH_GetDate [18:49:37]Write to MH i2c: F0 00 00 E3 2A FC [18:49:37]Write i2c OK [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: F0 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: F0 09 00 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: F0 09 00 E3 2A 00 C3 93 C3 66 5F 7F 2B 66 F3 [18:49:37]GetLastDocTimeStamp 1724093096 [18:49:37]current date 1724093379 [18:49:37]FM_GetShiftState [18:49:37]SAM_PROTO_GetShiftState [18:49:37]wFMCommunicate request_size=4 [18:49:37]MH_SAM_APDU [18:49:37]CAPDU: 80 13 01 00 [18:49:37]Write to MH i2c: E2 08 00 E4 2A 80 13 01 00 00 00 00 00 8B [18:49:37]Write i2c OK [18:49:37]MH_I2C_Read... [18:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:37]Read from MH i2c: E2 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: E2 0E 00 [18:49:37]MH_I2C_Read... [18:49:37]Read from MH i2c: E2 0E 00 E4 2A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 42 [18:49:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:49:37]wFMCommunicate OK [18:49:37]SAM_PROTO_GetShiftState done [18:49:37]FM_GetShiftState done [18:49:37]opened in 1724027888 [18:49:37]opened+sec_in_day 1724114288 [18:49:37]quantity*price = 60003 [18:49:37]sum+1 = 60004 [18:49:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 287 19.08.2024 18:49 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139452 ФПД: 20843138849372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T184939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139452&fm=20843138849372&tin=02508201610067®Number=0000000000092569&sum=60000 [18:49:38]StoreToDocumentArchive [18:49:38]shift 452 fd 139452 [18:49:38]save to /storage/0452/doc_00139452 [18:49:38]save last doc name /storage/0452/doc_00139452 to /storage/kkm_last_doc_name [18:49:38]save OK [18:49:38]Clear old archive folders... [18:49:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:38]tlvbuf is B6D871E0 [18:49:38]SAM_PROTO_ClearQueue [18:49:38]wFMCommunicate request_size=4 [18:49:38]MH_SAM_APDU [18:49:38]CAPDU: 80 09 00 00 [18:49:38]Write to MH i2c: E2 08 00 F1 2A 80 09 00 00 00 00 00 00 8D [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 03 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [18:49:38]RAPDU: 90 00 [18:49:38]wFMCommunicate OK [18:49:38]SAM_PROTO_ClearQueue done [18:49:38]KKMCreateOFDPacket [18:49:38]OFDProtocolAddRootSTLVToBuf [18:49:38]FM_MakeSignedData [18:49:38]FM_MakeSignedData [18:49:38]SAM_PROTO_SignData [18:49:38]wFMCommunicate request_size=4 [18:49:38]MH_SAM_APDU [18:49:38]CAPDU: 80 0D 01 02 [18:49:38]Write to MH i2c: E2 08 00 F2 2A 80 0D 01 02 00 00 00 00 95 [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 03 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 03 00 F2 2A 00 90 00 90 [18:49:38]RAPDU: 90 00 [18:49:38]wFMCommunicate OK [18:49:38]wFMCommunicate request_size=255 [18:49:38]MH_SAM_APDU [18:49: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 1F 01 00 00 F4 03 04 00 C3 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 20 02 00 35 04 06 00 12 [18:49:38]Write to MH i2c: E2 02 01 F3 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 1F 01 00 00 F4 03 04 00 C3 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 20 02 00 35 04 06 00 12 00 00 39 [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 03 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 03 00 F3 2A 00 90 00 91 [18:49:38]RAPDU: 90 00 [18:49:38]wFMCommunicate OK [18:49:38]wFMCommunicate request_size=10 [18:49:38]MH_SAM_APDU [18:49:38]CAPDU: 80 0D 02 02 05 F4 EB E3 1A 5C [18:49:38]Write to MH i2c: E2 0D 00 F4 2A 80 0D 02 02 05 00 F4 EB E3 1A 5C 00 00 DA [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 03 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 03 00 F4 2A 00 90 00 92 [18:49:38]RAPDU: 90 00 [18:49:38]wFMCommunicate OK [18:49:38]wFMCommunicate request_size=4 [18:49:38]MH_SAM_APDU [18:49:38]CAPDU: 80 0D 03 02 [18:49:38]Write to MH i2c: E2 08 00 F5 2A 80 0D 03 02 00 00 00 00 9A [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 0B 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 0B 00 F5 2A 00 EF 95 81 2C D0 3D DB 6B 90 00 1F [18:49:38]RAPDU: EF 95 81 2C D0 3D DB 6B 90 00 [18:49:38]wFMCommunicate OK [18:49:38]SAM_PROTO_SignData done [18:49:38]FM_MakeSignedData done [18:49:38]CreateOFDProtocolMessage [18:49:38]wFMCommunicate request_size=4 [18:49:38]MH_SAM_APDU [18:49:38]CAPDU: 80 11 00 00 [18:49:38]Write to MH i2c: E2 08 00 F6 2A 80 11 00 00 00 00 00 00 9A [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:38]Read from MH i2c: E2 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 17 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: E2 17 00 F6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [18:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:49:38]wFMCommunicate OK [18:49:38]CreateOFDProtocolMessage done [18:49:38]OFDSenderStorePacket 139452 [18:49:38]StoreOFDPacket docnum=139452 [18:49:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 69 07 01 88 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 1F 01 00 00 F4 03 04 00 C3 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 20 02 00 35 04 06 00 12 F4 EB E3 1A 5C EF 95 81 2C D0 3D DB 6B [18:49:38]CheckFolder [18:49:38]dirname=/storage/ofd_packets [18:49:38]CheckFolder done [18:49:38]ProducePacketName [18:49:38]name=ofd_packets/00139452 [18:49:38]NVStorageSaveData ofd_packets/00139452 [18:49:38]File name is /storage/ofd_packets/00139452 [18:49:38]Write 301 bytes [18:49:38]NVStorageSaveData done [18:49:38]OFDSenderStorePacket done [18:49:38]KKMCreateOFDPacket done [18:49:38]NVStorageSaveData kkm_last_timestamp [18:49:38]File name is /storage/kkm_last_timestamp [18:49:38]Write 4 bytes [18:49:38]NVStorageSaveData done [18:49:38]ExternCall_PrintAddStr [18:49:38]wPrintStart [18:49:38]Write to MH i2c: 01 00 00 F7 2A 21 [18:49:38]Write i2c OK [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: 01 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: 01 07 00 [18:49:38]MH_I2C_Read... [18:49:38]Read from MH i2c: 01 07 00 F7 2A 00 00 00 00 00 FF 0F 36 [18:49:38]RasterBufferAndPrint [18:49:38]line Счет N : (1)593294 [18:49:38]line ИНН: 02508201610067 [18:49:38]line Контрольно-Кассовый Чек [18:49:38]line ПРОДАЖА [18:49:38]line ТРК (МРК, ГНК) : 42 [18:49:38]line Товар: 2710124130 [18:49:38]line Аи-92-К-5 [18:49:38]line 8.850 * 67.80 [18:49:38]line = 600.03 [18:49:38]line НДС 12% НСП 1% [18:49:38]line > о реализуемом товаре [18:49:38]line ОКРУГЛЕНИЕ: -0.03 [18:49:38]line ИТОГО: 600.00 [18:49:38]line Внесено: 600.00 [18:49:38]line СДАЧА: 0.00 [18:49:38]line НСП 1% : 5.31 [18:49:38]line НДС 12% : 63.72 [18:49:38]line Наличными: 600.00 [18:49:38]line Безнал.: 0.00 [18:49:38]line Место: АЗС № 136 "Партнер Нефть" [18:49:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:49:38]line СНО: Общий режим [18:49:38]line Чек 287 19.08.2024 18:49 [18:49:38]line Смена: 452 ФФД: 1.0 [18:49:38]line ЗНМ: 0300000067 [18:49:38]line РНМ: 0000000000092569 [18:49:38]line Версия ККМ: 001 [18:49:38]line ФМ: 0000000000871776 [18:49:38]line ФД: 139452 [18:49:38]line ФПД: 20843138849372 [18:49:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T184939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139452&fm=20843138849372&tin=02508201610067®Number=0000000000092569&sum=60000 [18:49:39]written 0, free lines is 4095 [18:49:39]OFD Sender: Processing packet 139452 [packets to send 137, broken 136] [18:49:39]ProducePacketName [18:49:39]name=ofd_packets/00139452 [18:49:39]OFD Sender: To server: pG, [18:49:39]CommunicateWithHost lk.salyk.kg:30040 [18:49:39]ConnectInit lk.salyk.kg [18:49:39]Connected sock=10 [18:49: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 37 36 0F 01 00 00 38 69 07 01 88 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 1F 01 00 00 F4 03 04 00 C3 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 20 02 00 35 04 06 00 12 F4 EB E3 1A 5C EF 95 81 2C D0 3D DB 6B [18:49:39]Write to MH i2c: 01 00 00 22 2B 4D [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: 01 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: 01 07 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: 01 07 00 22 2B 00 00 00 00 00 E0 0C 40 [18:49:39]RasterBufferAndPrint [18:49:39]line [18:49:39]line [18:49:39]line [18:49:39]line [18:49:39]line [18:49:39]written 0, free lines is 3302 [18:49:39]MH_Cut [18:49:39]Write to MH i2c: D1 01 00 29 2B 01 26 [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: D1 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: D1 01 00 [18:49:39]MH_I2C_Read... [18:49:39]Read from MH i2c: D1 01 00 29 2B 00 25 [18:49:39]Write to MH i2c: 01 00 00 2A 2B 55 [18:49:39]Write i2c OK [18:49:39]MH_I2C_Read... [18:49: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 37 36 4F 00 00 00 20 6C 47 00 CE 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 37 36 10 04 04 00 BC 20 02 00 F4 03 04 00 58 3A C3 66 B6 04 01 00 00 15 20 95 F8 31 BA 86 22 [18:49:39]CommunicateWithHost err = 0 [18:49:39]CheckOFDResponse [18:49:39]1017 (14) - 77093643461234 [18:49:39]1041 (16) - 0000000000871776 [18:49:39]1040 (4) - 139452 [18:49:39]1012 (4) - 19.08.2024 12:28 [18:49:39]1206 (1) - 0 [18:49:39]OFD Sender: Remove packet 139452 [18:49:39]ProducePacketName [18:49:39]name=ofd_packets/00139452 [18:49:39]NVStorageDeleteData [18:49:40]OFD Sender: No OFD packet to send [18:49:40]*** Cut start [18:49:40]*** Partial cut [18:49:40]*** CUTSNS_PIN = 1 [18:49:40]*** CUTSNS_PIN = 0 [18:49:40]*** Brake cut motor [18:49:40]Read from MH i2c: 01 [18:49:40]MH_I2C_Read... [18:49:40]*** Stop cut motor [18:49:40]*** Cut end [18:49:40]Read from MH i2c: 01 07 00 [18:49:40]MH_I2C_Read... [18:49:40]Read from MH i2c: 01 07 00 2A 2B 00 00 00 00 00 FF 0F 6A [18:49:40]process_action close_receipt done [18:49:40]requested_data is exist [18:49:40]produce_requested_data [18:49:40]requested_item fm.sn is exist - process it [18:49:40]wFMCommunicate request_size=4 [18:49:40]MH_SAM_APDU [18:49:40]CAPDU: 80 11 00 00 [18:49:40]Write to MH i2c: E2 08 00 2B 2B 80 11 00 00 00 00 00 00 D0 [18:49:40]Write i2c OK [18:49:40]MH_I2C_Read... [18:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:41]Read from MH i2c: E2 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: E2 17 00 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: E2 17 00 2B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [18:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:49:41]wFMCommunicate OK [18:49:41]requested_item fd.num is exist - process it [18:49:41]SAM_PROTO_GetFieldsCounters [18:49:41]wFMCommunicate request_size=4 [18:49:41]MH_SAM_APDU [18:49:41]CAPDU: 80 13 00 00 [18:49:41]Write to MH i2c: E2 08 00 2C 2B 80 13 00 00 00 00 00 00 D3 [18:49:41]Write i2c OK [18:49:41]MH_I2C_Read... [18:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:41]Read from MH i2c: E2 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: E2 62 00 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: E2 62 00 2C 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 20 02 00 0E 04 04 00 C4 01 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 01 [18:49:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 20 02 00 0E 04 04 00 C4 01 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 [18:49:41]wFMCommunicate OK [18:49:41]SAM_PROTO_GetFieldsCounters done [18:49:41]requested_item shift.num is exist - process it [18:49:41]requested_item shift.opened is exist - process it [18:49:41]req_shift_opened [18:49:41]FM_GetShiftState [18:49:41]SAM_PROTO_GetShiftState [18:49:41]wFMCommunicate request_size=4 [18:49:41]MH_SAM_APDU [18:49:41]CAPDU: 80 13 01 00 [18:49:41]Write to MH i2c: E2 08 00 2D 2B 80 13 01 00 00 00 00 00 D5 [18:49:41]Write i2c OK [18:49:41]MH_I2C_Read... [18:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:41]Read from MH i2c: E2 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: E2 0E 00 [18:49:41]MH_I2C_Read... [18:49:41]Read from MH i2c: E2 0E 00 2D 2B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8C [18:49:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:49:41]wFMCommunicate OK [18:49:41]SAM_PROTO_GetShiftState done [18:49:41]FM_GetShiftState done [18:49:41]req_shift_opened done [18:49:41]requested_item shift.open_date is exist - process it [18:49:41]req_shift_open_date [18:49:41]req_shift_open_date done [18:49:41]produce_requested_data done [18:49:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139452,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:49:41]process_action_free close_receipt [18:49:41]json_value_free [18:49:41]json_value_free done [18:49:41]process_json_proto returns [18:49:41]Send response to host [18:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139452,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:49:41]free response buf [18:49:41]execute_script done [18:49:41]execute_script returns [18:49:41]free content buf [18:49:41]Sock 9.Close socket [18:49:41]Sock 9.Thread stoped [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]accept exits with 8 [18:50:20]New connection [18:50:20]New thread 3066817892 created [18:50:20]Thread 3066674532 joined [18:50:20]Waiting for new connection... [18:50:20] Sock 8.Parse request [18:50:20]Sock 8.Check first char [18:50:20]Sock 8.First char is OK [18:50:20]request: POST /json_proto HTTP/1.0 [18:50:20]Method: POST [18:50:20]URL: /json_proto [18:50:20]Method is POST - this is cgi request [18:50:20]url: /json_proto [18:50:20]query_string will be loaded in cgi processing [18:50:20]execute_cgi json_proto POST (null) [18:50:20]execute_cgi path=json_proto method=POST [18:50:20]POST find Content-Length [18:50:20]Host: 172.17.45.67:8080 [18:50:20]Content-Length: 677 [18:50:20]Content-Type: application/json [18:50:20] [18:50:20]POST finish read [18:50:20]Found Content-Length = 677 [18:50:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:50:20]execute_script... [18:50: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)593295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:50:20]POST & json_proto [18:50:20]process_json_proto [18:50:20]json parsed OK: [18:50:20]protocol is kg_v1.0 [18:50:20]action value=close_receipt [18:50:20]process_action close_receipt [18:50:20]cmd_close_receipt [18:50:20]MH_GetDate [18:50:20]Write to MH i2c: F0 00 00 2E 2B 48 [18:50:20]Write i2c OK [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: F0 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: F0 09 00 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: F0 09 00 2E 2B 00 ED 93 C3 66 5F 7F 2B 66 69 [18:50:20]GetLastDocTimeStamp 1724093379 [18:50:20]current date 1724093421 [18:50:20]FM_GetShiftState [18:50:20]SAM_PROTO_GetShiftState [18:50:20]wFMCommunicate request_size=4 [18:50:20]MH_SAM_APDU [18:50:20]CAPDU: 80 13 01 00 [18:50:20]Write to MH i2c: E2 08 00 2F 2B 80 13 01 00 00 00 00 00 D7 [18:50:20]Write i2c OK [18:50:20]MH_I2C_Read... [18:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:20]Read from MH i2c: E2 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: E2 0E 00 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: E2 0E 00 2F 2B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8E [18:50:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:50:20]wFMCommunicate OK [18:50:20]SAM_PROTO_GetShiftState done [18:50:20]FM_GetShiftState done [18:50:20]opened in 1724027888 [18:50:20]opened+sec_in_day 1724114288 [18:50:20]quantity*price = 40002 [18:50:20]sum+1 = 40003 [18:50:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 288 19.08.2024 18:50 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139453 ФПД: 111832397222021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185022&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139453&fm=111832397222021&tin=02508201610067®Number=0000000000092569&sum=40000 [18:50:21]StoreToDocumentArchive [18:50:21]shift 452 fd 139453 [18:50:21]save to /storage/0452/doc_00139453 [18:50:21]save last doc name /storage/0452/doc_00139453 to /storage/kkm_last_doc_name [18:50:21]save OK [18:50:21]Clear old archive folders... [18:50:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:21]tlvbuf is 012A12F0 [18:50:21]SAM_PROTO_ClearQueue [18:50:21]wFMCommunicate request_size=4 [18:50:21]MH_SAM_APDU [18:50:21]CAPDU: 80 09 00 00 [18:50:21]Write to MH i2c: E2 08 00 3C 2B 80 09 00 00 00 00 00 00 D9 [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:21]Read from MH i2c: E2 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 03 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 03 00 3C 2B 00 90 00 DB [18:50:21]RAPDU: 90 00 [18:50:21]wFMCommunicate OK [18:50:21]SAM_PROTO_ClearQueue done [18:50:21]KKMCreateOFDPacket [18:50:21]OFDProtocolAddRootSTLVToBuf [18:50:21]FM_MakeSignedData [18:50:21]FM_MakeSignedData [18:50:21]SAM_PROTO_SignData [18:50:21]wFMCommunicate request_size=4 [18:50:21]MH_SAM_APDU [18:50:21]CAPDU: 80 0D 01 02 [18:50:21]Write to MH i2c: E2 08 00 3D 2B 80 0D 01 02 00 00 00 00 E1 [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:21]Read from MH i2c: E2 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 03 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 03 00 3D 2B 00 90 00 DC [18:50:21]RAPDU: 90 00 [18:50:21]wFMCommunicate OK [18:50:21]wFMCommunicate request_size=255 [18:50:21]MH_SAM_APDU [18:50: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 20 01 00 00 F4 03 04 00 EE 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 20 02 00 35 04 06 00 65 [18:50:21]Write to MH i2c: E2 02 01 3E 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 20 01 00 00 F4 03 04 00 EE 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 20 02 00 35 04 06 00 65 00 00 23 [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:21]Read from MH i2c: E2 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 03 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 03 00 3E 2B 00 90 00 DD [18:50:21]RAPDU: 90 00 [18:50:21]wFMCommunicate OK [18:50:21]wFMCommunicate request_size=10 [18:50:21]MH_SAM_APDU [18:50:21]CAPDU: 80 0D 02 02 05 B6 02 4F 90 85 [18:50:21]Write to MH i2c: E2 0D 00 3F 2B 80 0D 02 02 05 00 B6 02 4F 90 85 00 00 0A [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:21]Read from MH i2c: E2 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 03 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 03 00 3F 2B 00 90 00 DE [18:50:21]RAPDU: 90 00 [18:50:21]wFMCommunicate OK [18:50:21]wFMCommunicate request_size=4 [18:50:21]MH_SAM_APDU [18:50:21]CAPDU: 80 0D 03 02 [18:50:21]Write to MH i2c: E2 08 00 40 2B 80 0D 03 02 00 00 00 00 E6 [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:21]Read from MH i2c: E2 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 0B 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 0B 00 40 2B 00 E0 8E 51 24 07 A7 7A 8E 90 00 80 [18:50:21]RAPDU: E0 8E 51 24 07 A7 7A 8E 90 00 [18:50:21]wFMCommunicate OK [18:50:21]SAM_PROTO_SignData done [18:50:21]FM_MakeSignedData done [18:50:21]CreateOFDProtocolMessage [18:50:21]wFMCommunicate request_size=4 [18:50:21]MH_SAM_APDU [18:50:21]CAPDU: 80 11 00 00 [18:50:21]Write to MH i2c: E2 08 00 41 2B 80 11 00 00 00 00 00 00 E6 [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:21]Read from MH i2c: E2 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 17 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: E2 17 00 41 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3D [18:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:50:21]wFMCommunicate OK [18:50:21]CreateOFDProtocolMessage done [18:50:21]OFDSenderStorePacket 139453 [18:50:21]StoreOFDPacket docnum=139453 [18:50:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3B E7 07 01 68 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 20 01 00 00 F4 03 04 00 EE 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 20 02 00 35 04 06 00 65 B6 02 4F 90 85 E0 8E 51 24 07 A7 7A 8E [18:50:21]CheckFolder [18:50:21]dirname=/storage/ofd_packets [18:50:21]CheckFolder done [18:50:21]ProducePacketName [18:50:21]name=ofd_packets/00139453 [18:50:21]NVStorageSaveData ofd_packets/00139453 [18:50:21]File name is /storage/ofd_packets/00139453 [18:50:21]Write 301 bytes [18:50:21]NVStorageSaveData done [18:50:21]OFDSenderStorePacket done [18:50:21]KKMCreateOFDPacket done [18:50:21]NVStorageSaveData kkm_last_timestamp [18:50:21]File name is /storage/kkm_last_timestamp [18:50:21]Write 4 bytes [18:50:21]NVStorageSaveData done [18:50:21]ExternCall_PrintAddStr [18:50:21]wPrintStart [18:50:21]Write to MH i2c: 01 00 00 42 2B 6D [18:50:21]Write i2c OK [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: 01 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: 01 07 00 [18:50:21]MH_I2C_Read... [18:50:21]Read from MH i2c: 01 07 00 42 2B 00 00 00 00 00 FF 0F 82 [18:50:21]RasterBufferAndPrint [18:50:21]line Счет N : (1)593295 [18:50:21]line ИНН: 02508201610067 [18:50:21]line Контрольно-Кассовый Чек [18:50:21]line ПРОДАЖА [18:50:21]line ТРК (МРК, ГНК) : 62 [18:50:21]line Товар: 2710124130 [18:50:21]line Аи-92-К-5 [18:50:21]line 5.900 * 67.80 [18:50:21]line = 400.02 [18:50:21]line НДС 12% НСП 1% [18:50:21]line > о реализуемом товаре [18:50:21]line ОКРУГЛЕНИЕ: -0.02 [18:50:21]line ИТОГО: 400.00 [18:50:21]line Внесено: 400.00 [18:50:21]line СДАЧА: 0.00 [18:50:21]line НСП 1% : 3.54 [18:50:21]line НДС 12% : 42.48 [18:50:21]line Наличными: 400.00 [18:50:21]line Безнал.: 0.00 [18:50:21]line Место: АЗС № 136 "Партнер Нефть" [18:50:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:50:21]line СНО: Общий режим [18:50:21]line Чек 288 19.08.2024 18:50 [18:50:21]line Смена: 452 ФФД: 1.0 [18:50:21]line ЗНМ: 0300000067 [18:50:21]line РНМ: 0000000000092569 [18:50:21]line Версия ККМ: 001 [18:50:21]line ФМ: 0000000000871776 [18:50:21]line ФД: 139453 [18:50:21]line ФПД: 111832397222021 [18:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185022&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139453&fm=111832397222021&tin=02508201610067®Number=0000000000092569&sum=40000 [18:50:22]written 0, free lines is 4095 [18:50:22]OFD Sender: Processing packet 139453 [packets to send 137, broken 136] [18:50:22]ProducePacketName [18:50:22]name=ofd_packets/00139453 [18:50:22]OFD Sender: To server: pG, [18:50:22]CommunicateWithHost lk.salyk.kg:30040 [18:50:22]ConnectInit lk.salyk.kg [18:50:22]Connected sock=10 [18:50: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 37 36 0F 01 00 00 3B E7 07 01 68 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 20 01 00 00 F4 03 04 00 EE 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 20 02 00 35 04 06 00 65 B6 02 4F 90 85 E0 8E 51 24 07 A7 7A 8E [18:50:22]Write to MH i2c: 01 00 00 6D 2B 98 [18:50:22]Write i2c OK [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: 01 [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: 01 07 00 [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: 01 07 00 6D 2B 00 00 00 00 00 CD 0C 78 [18:50:22]RasterBufferAndPrint [18:50:22]line [18:50:22]line [18:50:22]line [18:50:22]line [18:50:22]line [18:50:22]written 0, free lines is 3283 [18:50:22]MH_Cut [18:50:22]Write to MH i2c: D1 01 00 74 2B 01 71 [18:50:22]Write i2c OK [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: D1 [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: D1 01 00 [18:50:22]MH_I2C_Read... [18:50:22]Read from MH i2c: D1 01 00 74 2B 00 70 [18:50:22]Write to MH i2c: 01 00 00 75 2B A0 [18:50:22]Write i2c OK [18:50:22]MH_I2C_Read... [18:50: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 37 36 4F 00 00 00 DE FB 47 00 44 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 37 36 10 04 04 00 BD 20 02 00 F4 03 04 00 83 3A C3 66 B6 04 01 00 00 D4 FD 29 1A 55 52 5A B1 [18:50:22]CommunicateWithHost err = 0 [18:50:22]CheckOFDResponse [18:50:22]1017 (14) - 77093643461234 [18:50:22]1041 (16) - 0000000000871776 [18:50:22]1040 (4) - 139453 [18:50:22]1012 (4) - 19.08.2024 12:28 [18:50:22]1206 (1) - 0 [18:50:22]OFD Sender: Remove packet 139453 [18:50:22]ProducePacketName [18:50:22]name=ofd_packets/00139453 [18:50:22]NVStorageDeleteData [18:50:23]OFD Sender: No OFD packet to send [18:50:23]*** Cut start [18:50:23]*** Partial cut [18:50:23]*** CUTSNS_PIN = 1 [18:50:23]*** CUTSNS_PIN = 0 [18:50:23]*** Brake cut motor [18:50:23]Read from MH i2c: 01 [18:50:23]MH_I2C_Read... [18:50:23]*** Stop cut motor [18:50:23]*** Cut end [18:50:23]Read from MH i2c: 01 07 00 [18:50:23]MH_I2C_Read... [18:50:23]Read from MH i2c: 01 07 00 75 2B 00 00 00 00 00 FF 0F B5 [18:50:23]process_action close_receipt done [18:50:23]requested_data is exist [18:50:23]produce_requested_data [18:50:23]requested_item fm.sn is exist - process it [18:50:23]wFMCommunicate request_size=4 [18:50:23]MH_SAM_APDU [18:50:23]CAPDU: 80 11 00 00 [18:50:23]Write to MH i2c: E2 08 00 76 2B 80 11 00 00 00 00 00 00 1B [18:50:23]Write i2c OK [18:50:23]MH_I2C_Read... [18:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:23]Read from MH i2c: E2 [18:50:23]MH_I2C_Read... [18:50:23]Read from MH i2c: E2 17 00 [18:50:23]MH_I2C_Read... [18:50:23]Read from MH i2c: E2 17 00 76 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [18:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:50:23]wFMCommunicate OK [18:50:23]requested_item fd.num is exist - process it [18:50:23]SAM_PROTO_GetFieldsCounters [18:50:23]wFMCommunicate request_size=4 [18:50:23]MH_SAM_APDU [18:50:23]CAPDU: 80 13 00 00 [18:50:23]Write to MH i2c: E2 08 00 77 2B 80 13 00 00 00 00 00 00 1E [18:50:23]Write i2c OK [18:50:23]MH_I2C_Read... [18:50:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:24]Read from MH i2c: E2 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 62 00 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 62 00 77 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 20 02 00 0E 04 04 00 C4 01 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 50 [18:50: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 20 02 00 0E 04 04 00 C4 01 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 [18:50:24]wFMCommunicate OK [18:50:24]SAM_PROTO_GetFieldsCounters done [18:50:24]requested_item shift.num is exist - process it [18:50:24]requested_item shift.opened is exist - process it [18:50:24]req_shift_opened [18:50:24]FM_GetShiftState [18:50:24]SAM_PROTO_GetShiftState [18:50:24]wFMCommunicate request_size=4 [18:50:24]MH_SAM_APDU [18:50:24]CAPDU: 80 13 01 00 [18:50:24]Write to MH i2c: E2 08 00 78 2B 80 13 01 00 00 00 00 00 20 [18:50:24]Write i2c OK [18:50:24]MH_I2C_Read... [18:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:24]Read from MH i2c: E2 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 0E 00 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 0E 00 78 2B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D7 [18:50:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:50:24]wFMCommunicate OK [18:50:24]SAM_PROTO_GetShiftState done [18:50:24]FM_GetShiftState done [18:50:24]req_shift_opened done [18:50:24]requested_item shift.open_date is exist - process it [18:50:24]req_shift_open_date [18:50:24]req_shift_open_date done [18:50:24]produce_requested_data done [18:50:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139453,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:50:24]process_action_free close_receipt [18:50:24]json_value_free [18:50:24]json_value_free done [18:50:24]process_json_proto returns [18:50:24]Send response to host [18:50:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139453,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:50:24]free response buf [18:50:24]execute_script done [18:50:24]execute_script returns [18:50:24]free content buf [18:50:24]Sock 8.Close socket [18:50:24]Sock 8.Thread stoped [18:50:24]accept exits with 9 [18:50:24]New connection [18:50:24]New thread 3066674532 created [18:50:24]Thread 3066817892 joined [18:50:24]Waiting for new connection... [18:50:24] Sock 9.Parse request [18:50:24]Sock 9.Check first char [18:50:24]Sock 9.First char is OK [18:50:24]request: POST /json_proto HTTP/1.0 [18:50:24]Method: POST [18:50:24]URL: /json_proto [18:50:24]Method is POST - this is cgi request [18:50:24]url: /json_proto [18:50:24]query_string will be loaded in cgi processing [18:50:24]execute_cgi json_proto POST (null) [18:50:24]execute_cgi path=json_proto method=POST [18:50:24]POST find Content-Length [18:50:24]Host: 172.17.45.67:8080 [18:50:24]Content-Length: 677 [18:50:24]Content-Type: application/json [18:50:24] [18:50:24]POST finish read [18:50:24]Found Content-Length = 677 [18:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:50:24]execute_script... [18:50: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)593296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:50:24]POST & json_proto [18:50:24]process_json_proto [18:50:24]json parsed OK: [18:50:24]protocol is kg_v1.0 [18:50:24]action value=close_receipt [18:50:24]process_action close_receipt [18:50:24]cmd_close_receipt [18:50:24]MH_GetDate [18:50:24]Write to MH i2c: F0 00 00 79 2B 93 [18:50:24]Write i2c OK [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: F0 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: F0 09 00 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: F0 09 00 79 2B 00 F2 93 C3 66 5F 7F 2B 66 B9 [18:50:24]GetLastDocTimeStamp 1724093422 [18:50:24]current date 1724093426 [18:50:24]FM_GetShiftState [18:50:24]SAM_PROTO_GetShiftState [18:50:24]wFMCommunicate request_size=4 [18:50:24]MH_SAM_APDU [18:50:24]CAPDU: 80 13 01 00 [18:50:24]Write to MH i2c: E2 08 00 7A 2B 80 13 01 00 00 00 00 00 22 [18:50:24]Write i2c OK [18:50:24]MH_I2C_Read... [18:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:24]Read from MH i2c: E2 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 0E 00 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 0E 00 7A 2B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D9 [18:50:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:50:24]wFMCommunicate OK [18:50:24]SAM_PROTO_GetShiftState done [18:50:24]FM_GetShiftState done [18:50:24]opened in 1724027888 [18:50:24]opened+sec_in_day 1724114288 [18:50:24]quantity*price = 20001 [18:50:24]sum+1 = 20002 [18:50:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 289 19.08.2024 18:50 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139454 ФПД: 107381859604069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185026&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139454&fm=107381859604069&tin=02508201610067®Number=0000000000092569&sum=20000 [18:50:25]StoreToDocumentArchive [18:50:25]shift 452 fd 139454 [18:50:25]save to /storage/0452/doc_00139454 [18:50:25]save last doc name /storage/0452/doc_00139454 to /storage/kkm_last_doc_name [18:50:25]save OK [18:50:25]Clear old archive folders... [18:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:25]tlvbuf is 01207BD0 [18:50:25]SAM_PROTO_ClearQueue [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 09 00 00 [18:50:25]Write to MH i2c: E2 08 00 87 2B 80 09 00 00 00 00 00 00 24 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 87 2B 00 90 00 26 [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]SAM_PROTO_ClearQueue done [18:50:25]KKMCreateOFDPacket [18:50:25]OFDProtocolAddRootSTLVToBuf [18:50:25]FM_MakeSignedData [18:50:25]FM_MakeSignedData [18:50:25]SAM_PROTO_SignData [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 01 02 [18:50:25]Write to MH i2c: E2 08 00 88 2B 80 0D 01 02 00 00 00 00 2C [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:26]Read from MH i2c: E2 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 03 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 03 00 88 2B 00 90 00 27 [18:50:26]RAPDU: 90 00 [18:50:26]wFMCommunicate OK [18:50:26]wFMCommunicate request_size=255 [18:50:26]MH_SAM_APDU [18:50: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 21 01 00 00 F4 03 04 00 F2 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 20 02 00 35 04 06 00 61 [18:50:26]Write to MH i2c: E2 02 01 89 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 21 01 00 00 F4 03 04 00 F2 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 20 02 00 35 04 06 00 61 00 00 8D [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:26]Read from MH i2c: E2 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 03 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 03 00 89 2B 00 90 00 28 [18:50:26]RAPDU: 90 00 [18:50:26]wFMCommunicate OK [18:50:26]wFMCommunicate request_size=10 [18:50:26]MH_SAM_APDU [18:50:26]CAPDU: 80 0D 02 02 05 A9 C9 98 D6 65 [18:50:26]Write to MH i2c: E2 0D 00 8A 2B 80 0D 02 02 05 00 A9 C9 98 D6 65 00 00 7E [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:26]Read from MH i2c: E2 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 03 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 03 00 8A 2B 00 90 00 29 [18:50:26]RAPDU: 90 00 [18:50:26]wFMCommunicate OK [18:50:26]wFMCommunicate request_size=4 [18:50:26]MH_SAM_APDU [18:50:26]CAPDU: 80 0D 03 02 [18:50:26]Write to MH i2c: E2 08 00 8B 2B 80 0D 03 02 00 00 00 00 31 [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:26]Read from MH i2c: E2 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 0B 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 0B 00 8B 2B 00 92 9F B2 F2 28 00 4C 2F 90 00 AA [18:50:26]RAPDU: 92 9F B2 F2 28 00 4C 2F 90 00 [18:50:26]wFMCommunicate OK [18:50:26]SAM_PROTO_SignData done [18:50:26]FM_MakeSignedData done [18:50:26]CreateOFDProtocolMessage [18:50:26]wFMCommunicate request_size=4 [18:50:26]MH_SAM_APDU [18:50:26]CAPDU: 80 11 00 00 [18:50:26]Write to MH i2c: E2 08 00 8C 2B 80 11 00 00 00 00 00 00 31 [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:26]Read from MH i2c: E2 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 17 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 17 00 8C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [18:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:50:26]wFMCommunicate OK [18:50:26]CreateOFDProtocolMessage done [18:50:26]OFDSenderStorePacket 139454 [18:50:26]StoreOFDPacket docnum=139454 [18:50:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B0 3A 07 01 63 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 21 01 00 00 F4 03 04 00 F2 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 20 02 00 35 04 06 00 61 A9 C9 98 D6 65 92 9F B2 F2 28 00 4C 2F [18:50:26]CheckFolder [18:50:26]dirname=/storage/ofd_packets [18:50:26]CheckFolder done [18:50:26]ProducePacketName [18:50:26]name=ofd_packets/00139454 [18:50:26]NVStorageSaveData ofd_packets/00139454 [18:50:26]File name is /storage/ofd_packets/00139454 [18:50:26]Write 301 bytes [18:50:26]NVStorageSaveData done [18:50:26]OFDSenderStorePacket done [18:50:26]KKMCreateOFDPacket done [18:50:26]NVStorageSaveData kkm_last_timestamp [18:50:26]File name is /storage/kkm_last_timestamp [18:50:26]Write 4 bytes [18:50:26]NVStorageSaveData done [18:50:26]ExternCall_PrintAddStr [18:50:26]wPrintStart [18:50:26]Write to MH i2c: 01 00 00 8D 2B B8 [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 8D 2B 00 00 00 00 00 FF 0F CD [18:50:26]RasterBufferAndPrint [18:50:26]line Счет N : (1)593296 [18:50:26]line ИНН: 02508201610067 [18:50:26]line Контрольно-Кассовый Чек [18:50:26]line ПРОДАЖА [18:50:26]line ТРК (МРК, ГНК) : 52 [18:50:26]line Товар: 2710124130 [18:50:26]line Аи-92-К-5 [18:50:26]line 2.950 * 67.80 [18:50:26]line = 200.01 [18:50:26]line НДС 12% НСП 1% [18:50:26]line > о реализуемом товаре [18:50:26]line ОКРУГЛЕНИЕ: -0.01 [18:50:26]line ИТОГО: 200.00 [18:50:26]line Внесено: 200.00 [18:50:26]line СДАЧА: 0.00 [18:50:26]line НСП 1% : 1.77 [18:50:26]line НДС 12% : 21.24 [18:50:26]line Наличными: 200.00 [18:50:26]line Безнал.: 0.00 [18:50:26]line Место: АЗС № 136 "Партнер Нефть" [18:50:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:50:26]OFD Sender: Processing packet 139454 [packets to send 137, broken 136] [18:50:26]ProducePacketName [18:50:26]name=ofd_packets/00139454 [18:50:26]OFD Sender: To server: pG, [18:50:26]CommunicateWithHost lk.salyk.kg:30040 [18:50:26]ConnectInit lk.salyk.kg [18:50:26]line СНО: Общий режим [18:50:26]line Чек 289 19.08.2024 18:50 [18:50:26]line Смена: 452 ФФД: 1.0 [18:50:26]line ЗНМ: 0300000067 [18:50:26]line РНМ: 0000000000092569 [18:50:26]line Версия ККМ: 001 [18:50:26]line ФМ: 0000000000871776 [18:50:26]line ФД: 139454 [18:50:26]line ФПД: 107381859604069 [18:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185026&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139454&fm=107381859604069&tin=02508201610067®Number=0000000000092569&sum=20000 [18:50:26]Connected sock=10 [18:50: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 37 36 0F 01 00 00 B0 3A 07 01 63 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 21 01 00 00 F4 03 04 00 F2 93 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 written 0, free lines is 4095 [18:50:26]30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 20 02 00 35 04 06 00 61 A9 C9 98 D6 65 92 9F B2 F2 28 00 4C 2F [18:50: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 37 36 4F 00 00 00 E0 95 47 00 4D 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 20 02 00 F4 03 04 00 87 3A C3 66 B6 04 01 00 00 1F 7D BC 5B 6B 96 E3 85 [18:50:27]CommunicateWithHost err = 0 [18:50:27]CheckOFDResponse [18:50:27]1017 (14) - 77093643461234 [18:50:27]1041 (16) - 0000000000871776 [18:50:27]1040 (4) - 139454 [18:50:27]1012 (4) - 19.08.2024 12:28 [18:50:27]1206 (1) - 0 [18:50:27]OFD Sender: Remove packet 139454 [18:50:27]ProducePacketName [18:50:27]name=ofd_packets/00139454 [18:50:27]NVStorageDeleteData [18:50:27]Write to MH i2c: 01 00 00 B8 2B E3 [18:50:27]Write i2c OK [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: 01 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: 01 07 00 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: 01 07 00 B8 2B 00 00 00 00 00 D0 0C C6 [18:50:27]RasterBufferAndPrint [18:50:27]line [18:50:27]line [18:50:27]line [18:50:27]line [18:50:27]line [18:50:27]written 0, free lines is 3296 [18:50:27]MH_Cut [18:50:27]Write to MH i2c: D1 01 00 BF 2B 01 BC [18:50:27]Write i2c OK [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: D1 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: D1 01 00 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: D1 01 00 BF 2B 00 BB [18:50:27]Write to MH i2c: 01 00 00 C0 2B EB [18:50:27]Write i2c OK [18:50:27]MH_I2C_Read... [18:50:27]OFD Sender: No OFD packet to send [18:50:28]*** Cut start [18:50:28]*** Partial cut [18:50:28]*** CUTSNS_PIN = 1 [18:50:28]*** CUTSNS_PIN = 0 [18:50:28]*** Brake cut motor [18:50:28]Read from MH i2c: 01 [18:50:28]MH_I2C_Read... [18:50:28]*** Stop cut motor [18:50:28]*** Cut end [18:50:28]Read from MH i2c: 01 07 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: 01 07 00 C0 2B 00 00 00 00 00 FF 0F 00 [18:50:28]process_action close_receipt done [18:50:28]requested_data is exist [18:50:28]produce_requested_data [18:50:28]requested_item fm.sn is exist - process it [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 11 00 00 [18:50:28]Write to MH i2c: E2 08 00 C1 2B 80 11 00 00 00 00 00 00 66 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 17 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 17 00 C1 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [18:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:50:28]wFMCommunicate OK [18:50:28]requested_item fd.num is exist - process it [18:50:28]SAM_PROTO_GetFieldsCounters [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 13 00 00 [18:50:28]Write to MH i2c: E2 08 00 C2 2B 80 13 00 00 00 00 00 00 69 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 62 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 62 00 C2 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 20 02 00 0E 04 04 00 C4 01 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 9F [18:50: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 20 02 00 0E 04 04 00 C4 01 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 [18:50:28]wFMCommunicate OK [18:50:28]SAM_PROTO_GetFieldsCounters done [18:50:28]requested_item shift.num is exist - process it [18:50:28]requested_item shift.opened is exist - process it [18:50:28]req_shift_opened [18:50:28]FM_GetShiftState [18:50:28]SAM_PROTO_GetShiftState [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 13 01 00 [18:50:28]Write to MH i2c: E2 08 00 C3 2B 80 13 01 00 00 00 00 00 6B [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 0E 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 0E 00 C3 2B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 22 [18:50:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:50:28]wFMCommunicate OK [18:50:28]SAM_PROTO_GetShiftState done [18:50:28]FM_GetShiftState done [18:50:28]req_shift_opened done [18:50:28]requested_item shift.open_date is exist - process it [18:50:28]req_shift_open_date [18:50:28]req_shift_open_date done [18:50:28]produce_requested_data done [18:50:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139454,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:50:28]process_action_free close_receipt [18:50:28]json_value_free [18:50:28]json_value_free done [18:50:28]process_json_proto returns [18:50:28]Send response to host [18:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139454,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:50:28]free response buf [18:50:28]execute_script done [18:50:28]execute_script returns [18:50:28]free content buf [18:50:28]Sock 9.Close socket [18:50:28]Sock 9.Thread stoped [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:36]accept exits with 8 [18:51:36]New connection [18:51:36]New thread 3066817892 created [18:51:36]Thread 3066674532 joined [18:51:36]Waiting for new connection... [18:51:36] Sock 8.Parse request [18:51:36]Sock 8.Check first char [18:51:36]Sock 8.First char is OK [18:51:36]request: POST /json_proto HTTP/1.0 [18:51:36]Method: POST [18:51:36]URL: /json_proto [18:51:36]Method is POST - this is cgi request [18:51:36]url: /json_proto [18:51:36]query_string will be loaded in cgi processing [18:51:36]execute_cgi json_proto POST (null) [18:51:36]execute_cgi path=json_proto method=POST [18:51:36]POST find Content-Length [18:51:36]Host: 172.17.45.67:8080 [18:51:36]Content-Length: 658 [18:51:36]Content-Type: application/json [18:51:36] [18:51:36]POST finish read [18:51:36]Found Content-Length = 658 [18:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:51:36]execute_script... [18:51: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)593297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:51:36]POST & json_proto [18:51:36]process_json_proto [18:51:36]json parsed OK: [18:51:36]protocol is kg_v1.0 [18:51:36]action value=close_receipt [18:51:36]process_action close_receipt [18:51:36]cmd_close_receipt [18:51:36]MH_GetDate [18:51:36]Write to MH i2c: F0 00 00 C4 2B DE [18:51:36]Write i2c OK [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: F0 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: F0 09 00 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: F0 09 00 C4 2B 00 3A 94 C3 66 5F 7F 2B 66 4D [18:51:36]GetLastDocTimeStamp 1724093426 [18:51:36]current date 1724093498 [18:51:36]FM_GetShiftState [18:51:36]SAM_PROTO_GetShiftState [18:51:36]wFMCommunicate request_size=4 [18:51:36]MH_SAM_APDU [18:51:36]CAPDU: 80 13 01 00 [18:51:36]Write to MH i2c: E2 08 00 C5 2B 80 13 01 00 00 00 00 00 6D [18:51:36]Write i2c OK [18:51:36]MH_I2C_Read... [18:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:36]Read from MH i2c: E2 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: E2 0E 00 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: E2 0E 00 C5 2B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 24 [18:51:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:51:36]wFMCommunicate OK [18:51:36]SAM_PROTO_GetShiftState done [18:51:36]FM_GetShiftState done [18:51:36]opened in 1724027888 [18:51:36]opened+sec_in_day 1724114288 [18:51:36]quantity*price = 40041 [18:51:36]sum+1 = 40043 [18:51:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 290 19.08.2024 18:51 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139455 ФПД: 86161352545850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185138&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139455&fm=86161352545850&tin=02508201610067®Number=0000000000092569&sum=40000 [18:51:37]StoreToDocumentArchive [18:51:37]shift 452 fd 139455 [18:51:37]save to /storage/0452/doc_00139455 [18:51:37]save last doc name /storage/0452/doc_00139455 to /storage/kkm_last_doc_name [18:51:37]save OK [18:51:37]Clear old archive folders... [18:51:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:51:37]tlvbuf is B6EB9350 [18:51:37]SAM_PROTO_ClearQueue [18:51:37]wFMCommunicate request_size=4 [18:51:37]MH_SAM_APDU [18:51:37]CAPDU: 80 09 00 00 [18:51:37]Write to MH i2c: E2 08 00 D2 2B 80 09 00 00 00 00 00 00 6F [18:51:37]Write i2c OK [18:51:37]MH_I2C_Read... [18:51:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:37]Read from MH i2c: E2 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 03 00 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 03 00 D2 2B 00 90 00 71 [18:51:37]RAPDU: 90 00 [18:51:37]wFMCommunicate OK [18:51:37]SAM_PROTO_ClearQueue done [18:51:37]KKMCreateOFDPacket [18:51:37]OFDProtocolAddRootSTLVToBuf [18:51:37]FM_MakeSignedData [18:51:37]FM_MakeSignedData [18:51:37]SAM_PROTO_SignData [18:51:37]wFMCommunicate request_size=4 [18:51:37]MH_SAM_APDU [18:51:37]CAPDU: 80 0D 01 02 [18:51:37]Write to MH i2c: E2 08 00 D3 2B 80 0D 01 02 00 00 00 00 77 [18:51:37]Write i2c OK [18:51:37]MH_I2C_Read... [18:51:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:37]Read from MH i2c: E2 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 03 00 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 03 00 D3 2B 00 90 00 72 [18:51:37]RAPDU: 90 00 [18:51:37]wFMCommunicate OK [18:51:37]wFMCommunicate request_size=253 [18:51:37]MH_SAM_APDU [18:51:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 3A 94 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 20 02 00 35 04 06 00 4E 5D 00 CF D6 3A [18:51:37]Write to MH i2c: E2 00 01 D4 2B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 3A 94 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 20 02 00 35 04 06 00 4E 5D 00 CF D6 3A 00 00 1C [18:51:37]Write i2c OK [18:51:37]MH_I2C_Read... [18:51:37]OFD Sender: No OFD packet to send [18:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:37]Read from MH i2c: E2 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 03 00 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 03 00 D4 2B 00 90 00 73 [18:51:37]RAPDU: 90 00 [18:51:37]wFMCommunicate OK [18:51:37]wFMCommunicate request_size=4 [18:51:37]MH_SAM_APDU [18:51:37]CAPDU: 80 0D 03 02 [18:51:37]Write to MH i2c: E2 08 00 D5 2B 80 0D 03 02 00 00 00 00 7B [18:51:37]Write i2c OK [18:51:37]MH_I2C_Read... [18:51:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:38]Read from MH i2c: E2 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: E2 0B 00 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: E2 0B 00 D5 2B 00 36 F6 18 F8 46 6B 6A 38 90 00 0B [18:51:38]RAPDU: 36 F6 18 F8 46 6B 6A 38 90 00 [18:51:38]wFMCommunicate OK [18:51:38]SAM_PROTO_SignData done [18:51:38]FM_MakeSignedData done [18:51:38]CreateOFDProtocolMessage [18:51:38]wFMCommunicate request_size=4 [18:51:38]MH_SAM_APDU [18:51:38]CAPDU: 80 11 00 00 [18:51:38]Write to MH i2c: E2 08 00 D6 2B 80 11 00 00 00 00 00 00 7B [18:51:38]Write i2c OK [18:51:38]MH_I2C_Read... [18:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:38]Read from MH i2c: E2 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: E2 17 00 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: E2 17 00 D6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [18:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:51:38]wFMCommunicate OK [18:51:38]CreateOFDProtocolMessage done [18:51:38]OFDSenderStorePacket 139455 [18:51:38]StoreOFDPacket docnum=139455 [18:51:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 AC 95 00 01 CF 19 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 3A 94 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 20 02 00 35 04 06 00 4E 5D 00 CF D6 3A 36 F6 18 F8 46 6B 6A 38 [18:51:38]CheckFolder [18:51:38]dirname=/storage/ofd_packets [18:51:38]CheckFolder done [18:51:38]ProducePacketName [18:51:38]name=ofd_packets/00139455 [18:51:38]NVStorageSaveData ofd_packets/00139455 [18:51:38]File name is /storage/ofd_packets/00139455 [18:51:38]Write 294 bytes [18:51:38]NVStorageSaveData done [18:51:38]OFDSenderStorePacket done [18:51:38]KKMCreateOFDPacket done [18:51:38]NVStorageSaveData kkm_last_timestamp [18:51:38]File name is /storage/kkm_last_timestamp [18:51:38]Write 4 bytes [18:51:38]NVStorageSaveData done [18:51:38]ExternCall_PrintAddStr [18:51:38]wPrintStart [18:51:38]Write to MH i2c: 01 00 00 D7 2B 02 [18:51:38]Write i2c OK [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: 01 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: 01 07 00 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: 01 07 00 D7 2B 00 00 00 00 00 FF 0F 17 [18:51:38]RasterBufferAndPrint [18:51:38]line Счет N : (1)593297 [18:51:38]line ИНН: 02508201610067 [18:51:38]line Контрольно-Кассовый Чек [18:51:38]line ПРОДАЖА [18:51:38]line ТРК (МРК, ГНК) : 33 [18:51:38]line Товар: 2710124130 [18:51:38]line SU-92 [18:51:38]line 5.820 * 68.80 [18:51:38]line = 400.42 [18:51:38]line НДС 12% НСП 1% [18:51:38]line > о реализуемом товаре [18:51:38]line ОКРУГЛЕНИЕ: -0.42 [18:51:38]line ИТОГО: 400.00 [18:51:38]line Внесено: 400.00 [18:51:38]line СДАЧА: 0.00 [18:51:38]line НСП 1% : 3.54 [18:51:38]line НДС 12% : 42.52 [18:51:38]line Наличными: 400.00 [18:51:38]line Безнал.: 0.00 [18:51:38]line Место: АЗС № 136 "Партнер Нефть" [18:51:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:51:38]line СНО: Общий режим [18:51:38]line Чек 290 19.08.2024 18:51 [18:51:38]line Смена: 452 ФФД: 1.0 [18:51:38]line ЗНМ: 0300000067 [18:51:38]line РНМ: 0000000000092569 [18:51:38]line Версия ККМ: 001 [18:51:38]line ФМ: 0000000000871776 [18:51:38]line ФД: 139455 [18:51:38]line ФПД: 86161352545850 [18:51:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185138&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139455&fm=86161352545850&tin=02508201610067®Number=0000000000092569&sum=40000 [18:51:38]OFD Sender: Processing packet 139455 [packets to send 137, broken 136] [18:51:38]ProducePacketName [18:51:38]name=ofd_packets/00139455 [18:51:38]OFD Sender: To server: pG, [18:51:38]CommunicateWithHost lk.salyk.kg:30040 [18:51:38]ConnectInit lk.salyk.kg [18:51:38]written 0, free lines is 4095 [18:51:38]Write to MH i2c: 01 00 00 02 2C 2E [18:51:38]Write i2c OK [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: 01 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: 01 07 00 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: 01 07 00 02 2C 00 00 00 00 00 D1 0C 12 [18:51:38]RasterBufferAndPrint [18:51:38]line [18:51:38]line [18:51:38]line [18:51:38]line [18:51:38]line [18:51:38]written 0, free lines is 3284 [18:51:38]MH_Cut [18:51:38]Write to MH i2c: D1 01 00 09 2C 01 07 [18:51:38]Write i2c OK [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: D1 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: D1 01 00 [18:51:38]MH_I2C_Read... [18:51:38]Read from MH i2c: D1 01 00 09 2C 00 06 [18:51:38]Write to MH i2c: 01 00 00 0A 2C 36 [18:51:38]Write i2c OK [18:51:38]MH_I2C_Read... [18:51:39]*** Cut start [18:51:39]*** Partial cut [18:51:39]*** CUTSNS_PIN = 1 [18:51:39]*** CUTSNS_PIN = 0 [18:51:39]*** Brake cut motor [18:51:40]Read from MH i2c: 01 [18:51:40]MH_I2C_Read... [18:51:40]*** Stop cut motor [18:51:40]*** Cut end [18:51:40]Read from MH i2c: 01 07 00 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: 01 07 00 0A 2C 00 00 00 00 00 FF 0F 4B [18:51:40]process_action close_receipt done [18:51:40]requested_data is exist [18:51:40]produce_requested_data [18:51:40]requested_item fm.sn is exist - process it [18:51:40]wFMCommunicate request_size=4 [18:51:40]MH_SAM_APDU [18:51:40]CAPDU: 80 11 00 00 [18:51:40]Write to MH i2c: E2 08 00 0B 2C 80 11 00 00 00 00 00 00 B1 [18:51:40]Write i2c OK [18:51:40]MH_I2C_Read... [18:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:40]Read from MH i2c: E2 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: E2 17 00 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: E2 17 00 0B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 08 [18:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:51:40]wFMCommunicate OK [18:51:40]requested_item fd.num is exist - process it [18:51:40]SAM_PROTO_GetFieldsCounters [18:51:40]wFMCommunicate request_size=4 [18:51:40]MH_SAM_APDU [18:51:40]CAPDU: 80 13 00 00 [18:51:40]Write to MH i2c: E2 08 00 0C 2C 80 13 00 00 00 00 00 00 B4 [18:51:40]Write i2c OK [18:51:40]MH_I2C_Read... [18:51:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:40]Read from MH i2c: E2 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: E2 62 00 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: E2 62 00 0C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 20 02 00 0E 04 04 00 C4 01 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 EE [18:51: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 20 02 00 0E 04 04 00 C4 01 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 [18:51:40]wFMCommunicate OK [18:51:40]SAM_PROTO_GetFieldsCounters done [18:51:40]requested_item shift.num is exist - process it [18:51:40]requested_item shift.opened is exist - process it [18:51:40]req_shift_opened [18:51:40]FM_GetShiftState [18:51:40]SAM_PROTO_GetShiftState [18:51:40]wFMCommunicate request_size=4 [18:51:40]MH_SAM_APDU [18:51:40]CAPDU: 80 13 01 00 [18:51:40]Write to MH i2c: E2 08 00 0D 2C 80 13 01 00 00 00 00 00 B6 [18:51:40]Write i2c OK [18:51:40]MH_I2C_Read... [18:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:40]Read from MH i2c: E2 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: E2 0E 00 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: E2 0E 00 0D 2C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6D [18:51:40]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:51:40]wFMCommunicate OK [18:51:40]SAM_PROTO_GetShiftState done [18:51:40]FM_GetShiftState done [18:51:40]req_shift_opened done [18:51:40]requested_item shift.open_date is exist - process it [18:51:40]req_shift_open_date [18:51:40]req_shift_open_date done [18:51:40]produce_requested_data done [18:51:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139455,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:51:40]process_action_free close_receipt [18:51:40]json_value_free [18:51:40]json_value_free done [18:51:40]process_json_proto returns [18:51:40]Send response to host [18:51:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139455,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:51:40]free response buf [18:51:40]execute_script done [18:51:40]execute_script returns [18:51:40]free content buf [18:51:40]Sock 8.Close socket [18:51:40]Sock 8.Thread stoped [18:53:14]accept exits with 9 [18:53:14]New connection [18:53:14]New thread 3066674532 created [18:53:14]Thread 3066817892 joined [18:53:14]Waiting for new connection... [18:53:14] Sock 9.Parse request [18:53:14]Sock 9.Check first char [18:53:14]Sock 9.First char is OK [18:53:14]request: POST /json_proto HTTP/1.0 [18:53:14]Method: POST [18:53:14]URL: /json_proto [18:53:14]Method is POST - this is cgi request [18:53:14]url: /json_proto [18:53:14]query_string will be loaded in cgi processing [18:53:14]execute_cgi json_proto POST (null) [18:53:14]execute_cgi path=json_proto method=POST [18:53:14]POST find Content-Length [18:53:14]Host: 172.17.45.67:8080 [18:53:14]Content-Length: 682 [18:53:14]Content-Type: application/json [18:53:14] [18:53:14]POST finish read [18:53:14]Found Content-Length = 682 [18:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:53:14]execute_script... [18:53: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)593298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:53:14]POST & json_proto [18:53:14]process_json_proto [18:53:14]json parsed OK: [18:53:14]protocol is kg_v1.0 [18:53:14]action value=close_receipt [18:53:14]process_action close_receipt [18:53:14]cmd_close_receipt [18:53:14]MH_GetDate [18:53:14]Write to MH i2c: F0 00 00 0E 2C 29 [18:53:14]Write i2c OK [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: F0 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: F0 09 00 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: F0 09 00 0E 2C 00 9C 94 C3 66 5F 7F 2B 66 FA [18:53:14]GetLastDocTimeStamp 1724093498 [18:53:14]current date 1724093596 [18:53:14]FM_GetShiftState [18:53:14]SAM_PROTO_GetShiftState [18:53:14]wFMCommunicate request_size=4 [18:53:14]MH_SAM_APDU [18:53:14]CAPDU: 80 13 01 00 [18:53:14]Write to MH i2c: E2 08 00 0F 2C 80 13 01 00 00 00 00 00 B8 [18:53:14]Write i2c OK [18:53:14]MH_I2C_Read... [18:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:14]Read from MH i2c: E2 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 0E 00 [18:53:14]MH_I2C_Read... [18:53:14]Read from MH i2c: E2 0E 00 0F 2C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6F [18:53:14]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:53:14]wFMCommunicate OK [18:53:14]SAM_PROTO_GetShiftState done [18:53:14]FM_GetShiftState done [18:53:14]opened in 1724027888 [18:53:14]opened+sec_in_day 1724114288 [18:53:14]quantity*price = 100021 [18:53:14]sum+1 = 100023 [18:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 291 19.08.2024 18:53 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139456 ФПД: 16130167203432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185316&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139456&fm=16130167203432&tin=02508201610067®Number=0000000000092569&sum=100000 [18:53:16]StoreToDocumentArchive [18:53:16]shift 452 fd 139456 [18:53:16]save to /storage/0452/doc_00139456 [18:53:16]save last doc name /storage/0452/doc_00139456 to /storage/kkm_last_doc_name [18:53:16]save OK [18:53:16]Clear old archive folders... [18:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:16]tlvbuf is B6EB9750 [18:53:16]SAM_PROTO_ClearQueue [18:53:16]wFMCommunicate request_size=4 [18:53:16]MH_SAM_APDU [18:53:16]CAPDU: 80 09 00 00 [18:53:16]Write to MH i2c: E2 08 00 1C 2C 80 09 00 00 00 00 00 00 BA [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:16]Read from MH i2c: E2 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 03 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 03 00 1C 2C 00 90 00 BC [18:53:16]RAPDU: 90 00 [18:53:16]wFMCommunicate OK [18:53:16]SAM_PROTO_ClearQueue done [18:53:16]KKMCreateOFDPacket [18:53:16]OFDProtocolAddRootSTLVToBuf [18:53:16]FM_MakeSignedData [18:53:16]FM_MakeSignedData [18:53:16]SAM_PROTO_SignData [18:53:16]wFMCommunicate request_size=4 [18:53:16]MH_SAM_APDU [18:53:16]CAPDU: 80 0D 01 02 [18:53:16]Write to MH i2c: E2 08 00 1D 2C 80 0D 01 02 00 00 00 00 C2 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:16]Read from MH i2c: E2 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 03 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 03 00 1D 2C 00 90 00 BD [18:53:16]RAPDU: 90 00 [18:53:16]wFMCommunicate OK [18:53:16]wFMCommunicate request_size=255 [18:53:16]MH_SAM_APDU [18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 9C 94 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 20 02 00 35 04 06 00 0E [18:53:16]Write to MH i2c: E2 02 01 1E 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 9C 94 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 20 02 00 35 04 06 00 0E 00 00 AA [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:16]Read from MH i2c: E2 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 03 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 03 00 1E 2C 00 90 00 BE [18:53:16]RAPDU: 90 00 [18:53:16]wFMCommunicate OK [18:53:16]wFMCommunicate request_size=10 [18:53:16]MH_SAM_APDU [18:53:16]CAPDU: 80 0D 02 02 05 AB 98 E2 E6 68 [18:53:16]Write to MH i2c: E2 0D 00 1F 2C 80 0D 02 02 05 00 AB 98 E2 E6 68 00 00 42 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:16]Read from MH i2c: E2 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 03 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 03 00 1F 2C 00 90 00 BF [18:53:16]RAPDU: 90 00 [18:53:16]wFMCommunicate OK [18:53:16]wFMCommunicate request_size=4 [18:53:16]MH_SAM_APDU [18:53:16]CAPDU: 80 0D 03 02 [18:53:16]Write to MH i2c: E2 08 00 20 2C 80 0D 03 02 00 00 00 00 C7 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:16]Read from MH i2c: E2 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 0B 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 0B 00 20 2C 00 EC 04 FC 29 89 88 C2 8F 90 00 3F [18:53:16]RAPDU: EC 04 FC 29 89 88 C2 8F 90 00 [18:53:16]wFMCommunicate OK [18:53:16]SAM_PROTO_SignData done [18:53:16]FM_MakeSignedData done [18:53:16]CreateOFDProtocolMessage [18:53:16]wFMCommunicate request_size=4 [18:53:16]MH_SAM_APDU [18:53:16]CAPDU: 80 11 00 00 [18:53:16]Write to MH i2c: E2 08 00 21 2C 80 11 00 00 00 00 00 00 C7 [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:16]Read from MH i2c: E2 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 17 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: E2 17 00 21 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [18:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:53:16]wFMCommunicate OK [18:53:16]CreateOFDProtocolMessage done [18:53:16]OFDSenderStorePacket 139456 [18:53:16]StoreOFDPacket docnum=139456 [18:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A4 9C 07 01 29 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 9C 94 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 20 02 00 35 04 06 00 0E AB 98 E2 E6 68 EC 04 FC 29 89 88 C2 8F [18:53:16]CheckFolder [18:53:16]dirname=/storage/ofd_packets [18:53:16]CheckFolder done [18:53:16]ProducePacketName [18:53:16]name=ofd_packets/00139456 [18:53:16]NVStorageSaveData ofd_packets/00139456 [18:53:16]File name is /storage/ofd_packets/00139456 [18:53:16]Write 301 bytes [18:53:16]NVStorageSaveData done [18:53:16]OFDSenderStorePacket done [18:53:16]KKMCreateOFDPacket done [18:53:16]NVStorageSaveData kkm_last_timestamp [18:53:16]File name is /storage/kkm_last_timestamp [18:53:16]Write 4 bytes [18:53:16]NVStorageSaveData done [18:53:16]ExternCall_PrintAddStr [18:53:16]wPrintStart [18:53:16]Write to MH i2c: 01 00 00 22 2C 4E [18:53:16]Write i2c OK [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 07 00 [18:53:16]MH_I2C_Read... [18:53:16]Read from MH i2c: 01 07 00 22 2C 00 00 00 00 00 FF 0F 63 [18:53:16]RasterBufferAndPrint [18:53:16]line Счет N : (1)593298 [18:53:16]line ИНН: 02508201610067 [18:53:16]line Контрольно-Кассовый Чек [18:53:16]line ПРОДАЖА [18:53:16]line ТРК (МРК, ГНК) : 41 [18:53:16]line Товар: 2710124500 [18:53:16]line Аи-95-К-5 [18:53:16]line 13.480 * 74.20 [18:53:16]line = 1000.22 [18:53:16]line НДС 12% НСП 1% [18:53:16]line > о реализуемом товаре [18:53:16]line ОКРУГЛЕНИЕ: -0.22 [18:53:16]line ИТОГО: 1000.00 [18:53:16]line Внесено: 1000.00 [18:53:16]line СДАЧА: 0.00 [18:53:16]line НСП 1% : 8.85 [18:53:16]line НДС 12% : 106.22 [18:53:16]line Наличными: 1000.00 [18:53:16]line Безнал.: 0.00 [18:53:16]line Место: АЗС № 136 "Партнер Нефть" [18:53:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:53:16]line СНО: Общий режим [18:53:16]line Чек 291 19.08.2024 18:53 [18:53:16]line Смена: 452 ФФД: 1.0 [18:53:16]line ЗНМ: 0300000067 [18:53:16]line РНМ: 0000000000092569 [18:53:16]line Версия ККМ: 001 [18:53:16]line ФМ: 0000000000871776 [18:53:16]line ФД: 139456 [18:53:16]line ФПД: 16130167203432 [18:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185316&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139456&fm=16130167203432&tin=02508201610067®Number=0000000000092569&sum=100000 [18:53:16]written 0, free lines is 4095 [18:53:17]Write to MH i2c: 01 00 00 4D 2C 79 [18:53:17]Write i2c OK [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: 01 [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: 01 07 00 [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: 01 07 00 4D 2C 00 00 00 00 00 CE 0C 5A [18:53:17]RasterBufferAndPrint [18:53:17]line [18:53:17]line [18:53:17]line [18:53:17]line [18:53:17]line [18:53:17]written 0, free lines is 3284 [18:53:17]MH_Cut [18:53:17]Write to MH i2c: D1 01 00 54 2C 01 52 [18:53:17]Write i2c OK [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: D1 [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: D1 01 00 [18:53:17]MH_I2C_Read... [18:53:17]Read from MH i2c: D1 01 00 54 2C 00 51 [18:53:17]Write to MH i2c: 01 00 00 55 2C 81 [18:53:17]Write i2c OK [18:53:17]MH_I2C_Read... [18:53:18]*** Cut start [18:53:18]*** Partial cut [18:53:18]*** CUTSNS_PIN = 1 [18:53:18]*** CUTSNS_PIN = 0 [18:53:18]*** Brake cut motor [18:53:18]Read from MH i2c: 01 [18:53:18]MH_I2C_Read... [18:53:18]*** Stop cut motor [18:53:18]*** Cut end [18:53:18]Read from MH i2c: 01 07 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: 01 07 00 55 2C 00 00 00 00 00 FF 0F 96 [18:53:18]process_action close_receipt done [18:53:18]requested_data is exist [18:53:18]produce_requested_data [18:53:18]requested_item fm.sn is exist - process it [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 11 00 00 [18:53:18]Write to MH i2c: E2 08 00 56 2C 80 11 00 00 00 00 00 00 FC [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 17 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 17 00 56 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [18:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:53:18]wFMCommunicate OK [18:53:18]requested_item fd.num is exist - process it [18:53:18]SAM_PROTO_GetFieldsCounters [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 13 00 00 [18:53:18]Write to MH i2c: E2 08 00 57 2C 80 13 00 00 00 00 00 00 FF [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 62 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 62 00 57 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 20 02 00 0E 04 04 00 C4 01 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 3D [18:53: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 20 02 00 0E 04 04 00 C4 01 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 [18:53:18]wFMCommunicate OK [18:53:18]SAM_PROTO_GetFieldsCounters done [18:53:18]requested_item shift.num is exist - process it [18:53:18]requested_item shift.opened is exist - process it [18:53:18]req_shift_opened [18:53:18]FM_GetShiftState [18:53:18]SAM_PROTO_GetShiftState [18:53:18]wFMCommunicate request_size=4 [18:53:18]MH_SAM_APDU [18:53:18]CAPDU: 80 13 01 00 [18:53:18]Write to MH i2c: E2 08 00 58 2C 80 13 01 00 00 00 00 00 01 [18:53:18]Write i2c OK [18:53:18]MH_I2C_Read... [18:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:18]Read from MH i2c: E2 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 0E 00 [18:53:18]MH_I2C_Read... [18:53:18]Read from MH i2c: E2 0E 00 58 2C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B8 [18:53:18]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:53:18]wFMCommunicate OK [18:53:18]SAM_PROTO_GetShiftState done [18:53:18]FM_GetShiftState done [18:53:18]req_shift_opened done [18:53:18]requested_item shift.open_date is exist - process it [18:53:18]req_shift_open_date [18:53:18]req_shift_open_date done [18:53:18]produce_requested_data done [18:53:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139456,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:53:18]process_action_free close_receipt [18:53:18]json_value_free [18:53:18]json_value_free done [18:53:18]process_json_proto returns [18:53:18]Send response to host [18:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139456,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:53:18]free response buf [18:53:18]execute_script done [18:53:18]execute_script returns [18:53:18]free content buf [18:53:18]Sock 9.Close socket [18:53:18]Sock 9.Thread stoped [18:53:49]ConnectInit Can't connect to host [18:53:49]CommunicateWithHost connect error [18:53:49]CommunicateWithHost err = -1 [18:53:49]OFD Sender: Server communicate error [18:53:49]OFD Sender: Processing packet 139455 [packets to send 138, broken 136] [18:53:49]ProducePacketName [18:53:49]name=ofd_packets/00139455 [18:53:49]OFD Sender: To server: pG, [18:53:49]CommunicateWithHost lk.salyk.kg:30040 [18:53:49]ConnectInit lk.salyk.kg [18:53:49]Connected sock=9 [18:53: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 37 36 08 01 00 00 AC 95 00 01 CF 19 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 3A 94 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 20 02 00 35 04 06 00 4E 5D 00 CF D6 3A 36 F6 18 F8 46 6B 6A 38 [18:53: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 37 36 4F 00 00 00 80 22 47 00 62 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 37 36 10 04 04 00 BF 20 02 00 F4 03 04 00 52 3B C3 66 B6 04 01 00 00 48 05 2F B2 B9 4C 41 30 [18:53:49]CommunicateWithHost err = 0 [18:53:49]CheckOFDResponse [18:53:49]1017 (14) - 77093643461234 [18:53:49]1041 (16) - 0000000000871776 [18:53:49]1040 (4) - 139455 [18:53:49]1012 (4) - 19.08.2024 12:32 [18:53:49]1206 (1) - 0 [18:53:49]OFD Sender: Remove packet 139455 [18:53:49]ProducePacketName [18:53:49]name=ofd_packets/00139455 [18:53:49]NVStorageDeleteData [18:53:50]OFD Sender: Processing packet 139456 [packets to send 137, broken 136] [18:53:50]ProducePacketName [18:53:50]name=ofd_packets/00139456 [18:53:50]OFD Sender: To server: pG, [18:53:50]CommunicateWithHost lk.salyk.kg:30040 [18:53:50]ConnectInit lk.salyk.kg [18:53:50]Connected sock=9 [18:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A4 9C 07 01 29 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 9C 94 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 20 02 00 35 04 06 00 0E AB 98 E2 E6 68 EC 04 FC 29 89 88 C2 8F [18:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F4 55 47 00 A6 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 20 02 00 F4 03 04 00 53 3B C3 66 B6 04 01 00 00 BE 8B 7C 63 50 8A E4 BC [18:53:50]CommunicateWithHost err = 0 [18:53:50]CheckOFDResponse [18:53:50]1017 (14) - 77093643461234 [18:53:50]1041 (16) - 0000000000871776 [18:53:50]1040 (4) - 139456 [18:53:50]1012 (4) - 19.08.2024 12:32 [18:53:50]1206 (1) - 0 [18:53:50]OFD Sender: Remove packet 139456 [18:53:50]ProducePacketName [18:53:50]name=ofd_packets/00139456 [18:53:50]NVStorageDeleteData [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:11]accept exits with 8 [18:56:11]New connection [18:56:11]New thread 3066817892 created [18:56:11]Thread 3066674532 joined [18:56:11]Waiting for new connection... [18:56:11] Sock 8.Parse request [18:56:11]Sock 8.Check first char [18:56:11]Sock 8.First char is OK [18:56:11]request: POST /json_proto HTTP/1.0 [18:56:11]Method: POST [18:56:11]URL: /json_proto [18:56:11]Method is POST - this is cgi request [18:56:11]url: /json_proto [18:56:11]query_string will be loaded in cgi processing [18:56:11]execute_cgi json_proto POST (null) [18:56:11]execute_cgi path=json_proto method=POST [18:56:11]POST find Content-Length [18:56:11]Host: 172.17.45.67:8080 [18:56:11]Content-Length: 677 [18:56:11]Content-Type: application/json [18:56:11] [18:56:11]POST finish read [18:56:11]Found Content-Length = 677 [18:56:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.760, "sum" : 390.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:11]execute_script... [18:56: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)593299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.760, "sum" : 390.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:11]POST & json_proto [18:56:11]process_json_proto [18:56:11]json parsed OK: [18:56:11]protocol is kg_v1.0 [18:56:11]action value=close_receipt [18:56:11]process_action close_receipt [18:56:11]cmd_close_receipt [18:56:11]MH_GetDate [18:56:11]Write to MH i2c: F0 00 00 59 2C 74 [18:56:11]Write i2c OK [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: F0 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: F0 09 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: F0 09 00 59 2C 00 4D 95 C3 66 5F 7F 2B 66 F7 [18:56:11]GetLastDocTimeStamp 1724093596 [18:56:11]current date 1724093773 [18:56:11]FM_GetShiftState [18:56:11]SAM_PROTO_GetShiftState [18:56:11]wFMCommunicate request_size=4 [18:56:11]MH_SAM_APDU [18:56:11]CAPDU: 80 13 01 00 [18:56:11]Write to MH i2c: E2 08 00 5A 2C 80 13 01 00 00 00 00 00 03 [18:56:11]Write i2c OK [18:56:11]MH_I2C_Read... [18:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:11]Read from MH i2c: E2 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 0E 00 [18:56:11]MH_I2C_Read... [18:56:11]Read from MH i2c: E2 0E 00 5A 2C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BA [18:56:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:56:11]wFMCommunicate OK [18:56:11]SAM_PROTO_GetShiftState done [18:56:11]FM_GetShiftState done [18:56:11]opened in 1724027888 [18:56:11]opened+sec_in_day 1724114288 [18:56:11]quantity*price = 39052 [18:56:11]sum+1 = 39054 [18:56:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.46 НДС 12% : 41.47 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 292 19.08.2024 18:56 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139457 ФПД: 36692882635661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185613&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139457&fm=36692882635661&tin=02508201610067®Number=0000000000092569&sum=39000 [18:56:12]StoreToDocumentArchive [18:56:12]shift 452 fd 139457 [18:56:12]save to /storage/0452/doc_00139457 [18:56:12]save last doc name /storage/0452/doc_00139457 to /storage/kkm_last_doc_name [18:56:12]save OK [18:56:12]Clear old archive folders... [18:56:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:12]tlvbuf is 01235170 [18:56:12]SAM_PROTO_ClearQueue [18:56:12]wFMCommunicate request_size=4 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 09 00 00 [18:56:12]Write to MH i2c: E2 08 00 67 2C 80 09 00 00 00 00 00 00 05 [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:12]Read from MH i2c: E2 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 67 2C 00 90 00 07 [18:56:12]RAPDU: 90 00 [18:56:12]wFMCommunicate OK [18:56:12]SAM_PROTO_ClearQueue done [18:56:12]KKMCreateOFDPacket [18:56:12]OFDProtocolAddRootSTLVToBuf [18:56:12]FM_MakeSignedData [18:56:12]FM_MakeSignedData [18:56:12]SAM_PROTO_SignData [18:56:12]wFMCommunicate request_size=4 [18:56:12]MH_SAM_APDU [18:56:12]CAPDU: 80 0D 01 02 [18:56:12]Write to MH i2c: E2 08 00 68 2C 80 0D 01 02 00 00 00 00 0D [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:12]Read from MH i2c: E2 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 [18:56:12]MH_I2C_Read... [18:56:12]Read from MH i2c: E2 03 00 68 2C 00 90 00 08 [18:56:12]RAPDU: 90 00 [18:56:12]wFMCommunicate OK [18:56:12]wFMCommunicate request_size=255 [18:56:12]MH_SAM_APDU [18:56: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 80 16 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4D 95 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 20 02 00 35 04 06 00 21 [18:56:12]Write to MH i2c: E2 02 01 69 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4D 95 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 20 02 00 35 04 06 00 21 00 00 E9 [18:56:12]Write i2c OK [18:56:12]MH_I2C_Read... [18:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:13]Read from MH i2c: E2 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 69 2C 00 90 00 09 [18:56:13]RAPDU: 90 00 [18:56:13]wFMCommunicate OK [18:56:13]wFMCommunicate request_size=10 [18:56:13]MH_SAM_APDU [18:56:13]CAPDU: 80 0D 02 02 05 5F 3A 3C 3B 8D [18:56:13]Write to MH i2c: E2 0D 00 6A 2C 80 0D 02 02 05 00 5F 3A 3C 3B 8D 00 00 B7 [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:13]Read from MH i2c: E2 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 03 00 6A 2C 00 90 00 0A [18:56:13]RAPDU: 90 00 [18:56:13]wFMCommunicate OK [18:56:13]wFMCommunicate request_size=4 [18:56:13]MH_SAM_APDU [18:56:13]CAPDU: 80 0D 03 02 [18:56:13]Write to MH i2c: E2 08 00 6B 2C 80 0D 03 02 00 00 00 00 12 [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:13]Read from MH i2c: E2 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 0B 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 0B 00 6B 2C 00 44 F0 40 98 C2 1E CB 90 90 00 5A [18:56:13]RAPDU: 44 F0 40 98 C2 1E CB 90 90 00 [18:56:13]wFMCommunicate OK [18:56:13]SAM_PROTO_SignData done [18:56:13]FM_MakeSignedData done [18:56:13]CreateOFDProtocolMessage [18:56:13]wFMCommunicate request_size=4 [18:56:13]MH_SAM_APDU [18:56:13]CAPDU: 80 11 00 00 [18:56:13]Write to MH i2c: E2 08 00 6C 2C 80 11 00 00 00 00 00 00 12 [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:13]Read from MH i2c: E2 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 17 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: E2 17 00 6C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [18:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:56:13]wFMCommunicate OK [18:56:13]CreateOFDProtocolMessage done [18:56:13]OFDSenderStorePacket 139457 [18:56:13]StoreOFDPacket docnum=139457 [18:56:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D5 69 07 01 6A A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4D 95 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 20 02 00 35 04 06 00 21 5F 3A 3C 3B 8D 44 F0 40 98 C2 1E CB 90 [18:56:13]CheckFolder [18:56:13]dirname=/storage/ofd_packets [18:56:13]CheckFolder done [18:56:13]ProducePacketName [18:56:13]name=ofd_packets/00139457 [18:56:13]NVStorageSaveData ofd_packets/00139457 [18:56:13]File name is /storage/ofd_packets/00139457 [18:56:13]Write 301 bytes [18:56:13]NVStorageSaveData done [18:56:13]OFDSenderStorePacket done [18:56:13]KKMCreateOFDPacket done [18:56:13]NVStorageSaveData kkm_last_timestamp [18:56:13]File name is /storage/kkm_last_timestamp [18:56:13]Write 4 bytes [18:56:13]NVStorageSaveData done [18:56:13]ExternCall_PrintAddStr [18:56:13]wPrintStart [18:56:13]Write to MH i2c: 01 00 00 6D 2C 99 [18:56:13]Write i2c OK [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: 01 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: 01 07 00 [18:56:13]MH_I2C_Read... [18:56:13]Read from MH i2c: 01 07 00 6D 2C 00 00 00 00 00 FF 0F AE [18:56:13]RasterBufferAndPrint [18:56:13]line Счет N : (1)593299 [18:56:13]line ИНН: 02508201610067 [18:56:13]line Контрольно-Кассовый Чек [18:56:13]line ПРОДАЖА [18:56:13]line ТРК (МРК, ГНК) : 42 [18:56:13]line Товар: 2710124130 [18:56:13]line Аи-92-К-5 [18:56:13]line 5.760 * 67.80 [18:56:13]line = 390.53 [18:56:13]line НДС 12% НСП 1% [18:56:13]line > о реализуемом товаре [18:56:13]line ОКРУГЛЕНИЕ: -0.53 [18:56:13]line ИТОГО: 390.00 [18:56:13]line Внесено: 390.00 [18:56:13]line СДАЧА: 0.00 [18:56:13]line НСП 1% : 3.46 [18:56:13]line НДС 12% : 41.47 [18:56:13]line Наличными: 390.00 [18:56:13]line Безнал.: 0.00 [18:56:13]line Место: АЗС № 136 "Партнер Нефть" [18:56:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:56:13]line СНО: Общий режим [18:56:13]line Чек 292 19.08.2024 18:56 [18:56:13]line Смена: 452 ФФД: 1.0 [18:56:13]line ЗНМ: 0300000067 [18:56:13]line РНМ: 0000000000092569 [18:56:13]line Версия ККМ: 001 [18:56:13]line ФМ: 0000000000871776 [18:56:13]line ФД: 139457 [18:56:13]line ФПД: 36692882635661 [18:56:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185613&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139457&fm=36692882635661&tin=02508201610067®Number=0000000000092569&sum=39000 [18:56:13]written 0, free lines is 4095 [18:56:13]OFD Sender: Processing packet 139457 [packets to send 137, broken 136] [18:56:13]ProducePacketName [18:56:13]name=ofd_packets/00139457 [18:56:13]OFD Sender: To server: pG, [18:56:13]CommunicateWithHost lk.salyk.kg:30040 [18:56:13]ConnectInit lk.salyk.kg [18:56:13]Connected sock=10 [18:56: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 37 36 0F 01 00 00 D5 69 07 01 6A A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4D 95 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 20 02 00 35 04 06 00 21 5F 3A 3C 3B 8D 44 F0 40 98 C2 1E CB 90 [18:56: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 37 36 4F 00 00 00 1F DE 47 00 6D 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 37 36 10 04 04 00 C1 20 02 00 F4 03 04 00 E2 3B C3 66 B6 04 01 00 00 30 1A 3B D6 C9 8E BB 47 [18:56:14]CommunicateWithHost err = 0 [18:56:14]CheckOFDResponse [18:56:14]1017 (14) - 77093643461234 [18:56:14]1041 (16) - 0000000000871776 [18:56:14]1040 (4) - 139457 [18:56:14]1012 (4) - 19.08.2024 12:34 [18:56:14]1206 (1) - 0 [18:56:14]OFD Sender: Remove packet 139457 [18:56:14]ProducePacketName [18:56:14]name=ofd_packets/00139457 [18:56:14]NVStorageDeleteData [18:56:14]Write to MH i2c: 01 00 00 98 2C C4 [18:56:14]Write i2c OK [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: 01 [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: 01 07 00 [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: 01 07 00 98 2C 00 00 00 00 00 F0 0C C7 [18:56:14]RasterBufferAndPrint [18:56:14]line [18:56:14]line [18:56:14]line [18:56:14]line [18:56:14]line [18:56:14]written 0, free lines is 3318 [18:56:14]MH_Cut [18:56:14]Write to MH i2c: D1 01 00 9F 2C 01 9D [18:56:14]Write i2c OK [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: D1 [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: D1 01 00 [18:56:14]MH_I2C_Read... [18:56:14]Read from MH i2c: D1 01 00 9F 2C 00 9C [18:56:14]Write to MH i2c: 01 00 00 A0 2C CC [18:56:14]Write i2c OK [18:56:14]MH_I2C_Read... [18:56:14]OFD Sender: No OFD packet to send [18:56:14]*** Cut start [18:56:14]*** Partial cut [18:56:14]*** CUTSNS_PIN = 1 [18:56:14]*** CUTSNS_PIN = 0 [18:56:14]*** Brake cut motor [18:56:15]Read from MH i2c: 01 [18:56:15]MH_I2C_Read... [18:56:15]*** Stop cut motor [18:56:15]*** Cut end [18:56:15]Read from MH i2c: 01 07 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: 01 07 00 A0 2C 00 00 00 00 00 FF 0F E1 [18:56:15]process_action close_receipt done [18:56:15]requested_data is exist [18:56:15]produce_requested_data [18:56:15]requested_item fm.sn is exist - process it [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 11 00 00 [18:56:15]Write to MH i2c: E2 08 00 A1 2C 80 11 00 00 00 00 00 00 47 [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 17 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 17 00 A1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [18:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:56:15]wFMCommunicate OK [18:56:15]requested_item fd.num is exist - process it [18:56:15]SAM_PROTO_GetFieldsCounters [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 13 00 00 [18:56:15]Write to MH i2c: E2 08 00 A2 2C 80 13 00 00 00 00 00 00 4A [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 62 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 62 00 A2 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 20 02 00 0E 04 04 00 C4 01 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 8C [18:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 20 02 00 0E 04 04 00 C4 01 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 [18:56:15]wFMCommunicate OK [18:56:15]SAM_PROTO_GetFieldsCounters done [18:56:15]requested_item shift.num is exist - process it [18:56:15]requested_item shift.opened is exist - process it [18:56:15]req_shift_opened [18:56:15]FM_GetShiftState [18:56:15]SAM_PROTO_GetShiftState [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 13 01 00 [18:56:15]Write to MH i2c: E2 08 00 A3 2C 80 13 01 00 00 00 00 00 4C [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 0E 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 0E 00 A3 2C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 03 [18:56:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:56:15]wFMCommunicate OK [18:56:15]SAM_PROTO_GetShiftState done [18:56:15]FM_GetShiftState done [18:56:15]req_shift_opened done [18:56:15]requested_item shift.open_date is exist - process it [18:56:15]req_shift_open_date [18:56:15]req_shift_open_date done [18:56:15]produce_requested_data done [18:56:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139457,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:56:15]process_action_free close_receipt [18:56:15]json_value_free [18:56:15]json_value_free done [18:56:15]process_json_proto returns [18:56:15]Send response to host [18:56:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139457,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:56:15]free response buf [18:56:15]execute_script done [18:56:15]execute_script returns [18:56:15]free content buf [18:56:15]Sock 8.Close socket [18:56:15]Sock 8.Thread stoped [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:56:59]accept exits with 9 [18:56:59]New connection [18:56:59]New thread 3066674532 created [18:56:59]Thread 3066817892 joined [18:56:59]Waiting for new connection... [18:56:59] Sock 9.Parse request [18:56:59]Sock 9.Check first char [18:56:59]Sock 9.First char is OK [18:56:59]request: POST /json_proto HTTP/1.0 [18:56:59]Method: POST [18:56:59]URL: /json_proto [18:56:59]Method is POST - this is cgi request [18:56:59]url: /json_proto [18:56:59]query_string will be loaded in cgi processing [18:56:59]execute_cgi json_proto POST (null) [18:56:59]execute_cgi path=json_proto method=POST [18:56:59]POST find Content-Length [18:56:59]Host: 172.17.45.67:8080 [18:56:59]Content-Length: 677 [18:56:59]Content-Type: application/json [18:56:59] [18:56:59]POST finish read [18:56:59]Found Content-Length = 677 [18:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:56:59]execute_script... [18:56: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)593301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:56:59]POST & json_proto [18:56:59]process_json_proto [18:56:59]json parsed OK: [18:56:59]protocol is kg_v1.0 [18:56:59]action value=close_receipt [18:56:59]process_action close_receipt [18:56:59]cmd_close_receipt [18:56:59]MH_GetDate [18:56:59]Write to MH i2c: F0 00 00 A4 2C BF [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: F0 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: F0 09 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: F0 09 00 A4 2C 00 7D 95 C3 66 5F 7F 2B 66 72 [18:56:59]GetLastDocTimeStamp 1724093773 [18:56:59]current date 1724093821 [18:56:59]FM_GetShiftState [18:56:59]SAM_PROTO_GetShiftState [18:56:59]wFMCommunicate request_size=4 [18:56:59]MH_SAM_APDU [18:56:59]CAPDU: 80 13 01 00 [18:56:59]Write to MH i2c: E2 08 00 A5 2C 80 13 01 00 00 00 00 00 4E [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:59]Read from MH i2c: E2 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 0E 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 0E 00 A5 2C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 05 [18:56:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:56:59]wFMCommunicate OK [18:56:59]SAM_PROTO_GetShiftState done [18:56:59]FM_GetShiftState done [18:56:59]opened in 1724027888 [18:56:59]opened+sec_in_day 1724114288 [18:56:59]quantity*price = 60003 [18:56:59]sum+1 = 60004 [18:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 293 19.08.2024 18:57 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139458 ФПД: 20046897713162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139458&fm=20046897713162&tin=02508201610067®Number=0000000000092569&sum=60000 [18:57:01]StoreToDocumentArchive [18:57:01]shift 452 fd 139458 [18:57:01]save to /storage/0452/doc_00139458 [18:57:01]save last doc name /storage/0452/doc_00139458 to /storage/kkm_last_doc_name [18:57:01]save OK [18:57:01]Clear old archive folders... [18:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:01]tlvbuf is B6EB9990 [18:57:01]SAM_PROTO_ClearQueue [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 09 00 00 [18:57:01]Write to MH i2c: E2 08 00 B2 2C 80 09 00 00 00 00 00 00 50 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 B2 2C 00 90 00 52 [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_ClearQueue done [18:57:01]KKMCreateOFDPacket [18:57:01]OFDProtocolAddRootSTLVToBuf [18:57:01]FM_MakeSignedData [18:57:01]FM_MakeSignedData [18:57:01]SAM_PROTO_SignData [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 0D 01 02 [18:57:01]Write to MH i2c: E2 08 00 B3 2C 80 0D 01 02 00 00 00 00 58 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 B3 2C 00 90 00 53 [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]wFMCommunicate request_size=255 [18:57:01]MH_SAM_APDU [18:57: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 25 01 00 00 F4 03 04 00 7D 95 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 20 02 00 35 04 06 00 12 [18:57:01]Write to MH i2c: E2 02 01 B4 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 25 01 00 00 F4 03 04 00 7D 95 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 20 02 00 35 04 06 00 12 00 00 C4 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 B4 2C 00 90 00 54 [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]wFMCommunicate request_size=10 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 0D 02 02 05 3B 88 37 90 0A [18:57:01]Write to MH i2c: E2 0D 00 B5 2C 80 0D 02 02 05 00 3B 88 37 90 0A 00 00 F9 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 B5 2C 00 90 00 55 [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 0D 03 02 [18:57:01]Write to MH i2c: E2 08 00 B6 2C 80 0D 03 02 00 00 00 00 5D [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0B 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0B 00 B6 2C 00 69 7D E5 21 E7 36 A2 0F 90 00 18 [18:57:01]RAPDU: 69 7D E5 21 E7 36 A2 0F 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_SignData done [18:57:01]FM_MakeSignedData done [18:57:01]CreateOFDProtocolMessage [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 11 00 00 [18:57:01]Write to MH i2c: E2 08 00 B7 2C 80 11 00 00 00 00 00 00 5D [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 B7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [18:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:57:01]wFMCommunicate OK [18:57:01]CreateOFDProtocolMessage done [18:57:01]OFDSenderStorePacket 139458 [18:57:01]StoreOFDPacket docnum=139458 [18:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E 37 07 01 F4 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 25 01 00 00 F4 03 04 00 7D 95 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 20 02 00 35 04 06 00 12 3B 88 37 90 0A 69 7D E5 21 E7 36 A2 0F [18:57:01]CheckFolder [18:57:01]dirname=/storage/ofd_packets [18:57:01]CheckFolder done [18:57:01]ProducePacketName [18:57:01]name=ofd_packets/00139458 [18:57:01]NVStorageSaveData ofd_packets/00139458 [18:57:01]File name is /storage/ofd_packets/00139458 [18:57:01]Write 301 bytes [18:57:01]NVStorageSaveData done [18:57:01]OFDSenderStorePacket done [18:57:01]KKMCreateOFDPacket done [18:57:01]NVStorageSaveData kkm_last_timestamp [18:57:01]File name is /storage/kkm_last_timestamp [18:57:01]OFD Sender: Processing packet 139458 [packets to send 137, broken 136] [18:57:01]ProducePacketName [18:57:01]name=ofd_packets/00139458 [18:57:01]OFD Sender: To server: pG, [18:57:01]CommunicateWithHost lk.salyk.kg:30040 [18:57:01]ConnectInit lk.salyk.kg [18:57:01]Write 4 bytes [18:57:01]NVStorageSaveData done [18:57:01]ExternCall_PrintAddStr [18:57:01]wPrintStart [18:57:01]Write to MH i2c: 01 00 00 B8 2C E4 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 07 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 07 00 B8 2C 00 00 00 00 00 FF 0F F9 [18:57:01]RasterBufferAndPrint [18:57:01]line Счет N : (1)593301 [18:57:01]line ИНН: 02508201610067 [18:57:01]line Контрольно-Кассовый Чек [18:57:01]line ПРОДАЖА [18:57:01]line ТРК (МРК, ГНК) : 62 [18:57:01]line Товар: 2710124130 [18:57:01]line Аи-92-К-5 [18:57:01]line 8.850 * 67.80 [18:57:01]line = 600.03 [18:57:01]line НДС 12% НСП 1% [18:57:01]line > о реализуемом товаре [18:57:01]line ОКРУГЛЕНИЕ: -0.03 [18:57:01]line ИТОГО: 600.00 [18:57:01]line Внесено: 600.00 [18:57:01]line СДАЧА: 0.00 [18:57:01]line НСП 1% : 5.31 [18:57:01]line НДС 12% : 63.72 [18:57:01]line Наличными: 600.00 [18:57:01]line Безнал.: 0.00 [18:57:01]line Место: АЗС № 136 "Партнер Нефть" [18:57:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:57:01]line СНО: Общий режим [18:57:01]line Чек 293 19.08.2024 18:57 [18:57:01]line Смена: 452 ФФД: 1.0 [18:57:01]line ЗНМ: 0300000067 [18:57:01]line РНМ: 0000000000092569 [18:57:01]line Версия ККМ: 001 [18:57:01]line ФМ: 0000000000871776 [18:57:01]line ФД: 139458 [18:57:01]line ФПД: 20046897713162 [18:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139458&fm=20046897713162&tin=02508201610067®Number=0000000000092569&sum=60000 [18:57:01]Connected sock=11 [18:57: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 37 36 0F 01 00 00 1E 37 07 01 F4 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 25 01 00 00 F4 03 04 00 7D 95 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 20 02 00 35 04 06 00 12 3B 88 37 90 0A 69 7D E5 21 E7 36 A2 0F [18:57:01]written 0, free lines is 4095 [18:57: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 37 36 4F 00 00 00 6B BD 47 00 A7 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 37 36 10 04 04 00 C2 20 02 00 F4 03 04 00 13 3C C3 66 B6 04 01 00 00 74 1D B6 E1 DA 1A 9D 8D [18:57:02]CommunicateWithHost err = 0 [18:57:02]CheckOFDResponse [18:57:02]1017 (14) - 77093643461234 [18:57:02]1041 (16) - 0000000000871776 [18:57:02]1040 (4) - 139458 [18:57:02]1012 (4) - 19.08.2024 12:35 [18:57:02]1206 (1) - 0 [18:57:02]OFD Sender: Remove packet 139458 [18:57:02]ProducePacketName [18:57:02]name=ofd_packets/00139458 [18:57:02]NVStorageDeleteData [18:57:02]Write to MH i2c: 01 00 00 E3 2C 0F [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 E3 2C 00 00 00 00 00 DD 0C FF [18:57:02]RasterBufferAndPrint [18:57:02]line [18:57:02]line [18:57:02]line [18:57:02]line [18:57:02]line [18:57:02]written 0, free lines is 3299 [18:57:02]MH_Cut [18:57:02]Write to MH i2c: D1 01 00 EA 2C 01 E8 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: D1 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: D1 01 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: D1 01 00 EA 2C 00 E7 [18:57:02]Write to MH i2c: 01 00 00 EB 2C 17 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]OFD Sender: No OFD packet to send [18:57:03]*** Cut start [18:57:03]*** Partial cut [18:57:03]*** CUTSNS_PIN = 1 [18:57:03]*** CUTSNS_PIN = 0 [18:57:03]*** Brake cut motor [18:57:03]Read from MH i2c: 01 [18:57:03]MH_I2C_Read... [18:57:03]*** Stop cut motor [18:57:03]*** Cut end [18:57:03]Read from MH i2c: 01 07 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 07 00 EB 2C 00 00 00 00 00 FF 0F 2C [18:57:03]process_action close_receipt done [18:57:03]requested_data is exist [18:57:03]produce_requested_data [18:57:03]requested_item fm.sn is exist - process it [18:57:03]wFMCommunicate request_size=4 [18:57:03]MH_SAM_APDU [18:57:03]CAPDU: 80 11 00 00 [18:57:03]Write to MH i2c: E2 08 00 EC 2C 80 11 00 00 00 00 00 00 92 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:03]Read from MH i2c: E2 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 17 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 17 00 EC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E9 [18:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:57:03]wFMCommunicate OK [18:57:03]requested_item fd.num is exist - process it [18:57:03]SAM_PROTO_GetFieldsCounters [18:57:03]wFMCommunicate request_size=4 [18:57:03]MH_SAM_APDU [18:57:03]CAPDU: 80 13 00 00 [18:57:03]Write to MH i2c: E2 08 00 ED 2C 80 13 00 00 00 00 00 00 95 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:03]Read from MH i2c: E2 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 62 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 62 00 ED 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 20 02 00 0E 04 04 00 C4 01 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 DB [18:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 20 02 00 0E 04 04 00 C4 01 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 [18:57:03]wFMCommunicate OK [18:57:03]SAM_PROTO_GetFieldsCounters done [18:57:03]requested_item shift.num is exist - process it [18:57:03]requested_item shift.opened is exist - process it [18:57:03]req_shift_opened [18:57:03]FM_GetShiftState [18:57:03]SAM_PROTO_GetShiftState [18:57:03]wFMCommunicate request_size=4 [18:57:03]MH_SAM_APDU [18:57:03]CAPDU: 80 13 01 00 [18:57:03]Write to MH i2c: E2 08 00 EE 2C 80 13 01 00 00 00 00 00 97 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:03]Read from MH i2c: E2 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 0E 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 0E 00 EE 2C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4E [18:57:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [18:57:03]wFMCommunicate OK [18:57:03]SAM_PROTO_GetShiftState done [18:57:03]FM_GetShiftState done [18:57:03]req_shift_opened done [18:57:03]requested_item shift.open_date is exist - process it [18:57:03]req_shift_open_date [18:57:03]req_shift_open_date done [18:57:03]produce_requested_data done [18:57:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139458,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [18:57:03]process_action_free close_receipt [18:57:03]json_value_free [18:57:03]json_value_free done [18:57:03]process_json_proto returns [18:57:03]Send response to host [18:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139458,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [18:57:03]free response buf [18:57:03]execute_script done [18:57:03]execute_script returns [18:57:03]free content buf [18:57:03]Sock 9.Close socket [18:57:03]Sock 9.Thread stoped [18:57:04]int [18:57:04]Write to MH i2c: 01 00 00 EF 2C 1B [18:57:04]*** FLAG_PRN_KEY set [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 07 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 07 00 EF 2C 00 08 00 00 00 FF 0F 38 [18:57:04]state=0 [18:57:04]Key pressed [18:57:04]Feed [18:57:04]Write to MH i2c: D8 00 00 F0 2C F3 [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: D8 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: D8 01 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: D8 01 00 F0 2C 00 F4 [18:57:04]int [18:57:04]Write to MH i2c: 01 00 00 F1 2C 1D [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 07 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 07 00 F1 2C 00 48 00 00 00 3C 00 A8 [18:57:04]state=2 [18:57:04]Key pressed [18:57:04]int [18:57:04]Write to MH i2c: 01 00 00 F2 2C 1E [18:57:04]*** FLAG_PRN_KEY reset [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 07 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 07 00 F2 2C 00 00 00 00 00 F8 0F 2C [18:57:04]state=2 [18:57:04]Stop feed [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]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:31]accept exits with 8 [19:02:31]New connection [19:02:31]New thread 3066817892 created [19:02:31]Thread 3066674532 joined [19:02:31]Waiting for new connection... [19:02:31] Sock 8.Parse request [19:02:31]Sock 8.Check first char [19:02:31]Sock 8.First char is OK [19:02:31]request: POST /json_proto HTTP/1.0 [19:02:31]Method: POST [19:02:31]URL: /json_proto [19:02:31]Method is POST - this is cgi request [19:02:31]url: /json_proto [19:02:31]query_string will be loaded in cgi processing [19:02:31]execute_cgi json_proto POST (null) [19:02:31]execute_cgi path=json_proto method=POST [19:02:31]POST find Content-Length [19:02:31]Host: 172.17.45.67:8080 [19:02:31]Content-Length: 682 [19:02:31]Content-Type: application/json [19:02:31] [19:02:31]POST finish read [19:02:31]Found Content-Length = 682 [19:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 80.870, "sum" : 6000.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:31]execute_script... [19:02:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 80.870, "sum" : 6000.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:31]POST & json_proto [19:02:31]process_json_proto [19:02:31]json parsed OK: [19:02:31]protocol is kg_v1.0 [19:02:31]action value=close_receipt [19:02:31]process_action close_receipt [19:02:31]cmd_close_receipt [19:02:31]MH_GetDate [19:02:31]Write to MH i2c: F0 00 00 F3 2C 0E [19:02:31]Write i2c OK [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: F0 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: F0 09 00 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: F0 09 00 F3 2C 00 C9 96 C3 66 5F 7F 2B 66 0E [19:02:31]GetLastDocTimeStamp 1724093821 [19:02:31]current date 1724094153 [19:02:31]FM_GetShiftState [19:02:31]SAM_PROTO_GetShiftState [19:02:31]wFMCommunicate request_size=4 [19:02:31]MH_SAM_APDU [19:02:31]CAPDU: 80 13 01 00 [19:02:31]Write to MH i2c: E2 08 00 F4 2C 80 13 01 00 00 00 00 00 9D [19:02:31]Write i2c OK [19:02:31]MH_I2C_Read... [19:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:31]Read from MH i2c: E2 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 0E 00 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 0E 00 F4 2C 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 54 [19:02:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:02:31]wFMCommunicate OK [19:02:31]SAM_PROTO_GetShiftState done [19:02:31]FM_GetShiftState done [19:02:31]opened in 1724027888 [19:02:31]opened+sec_in_day 1724114288 [19:02:31]quantity*price = 600055 [19:02:31]sum+1 = 600056 [19:02:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.23 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 294 19.08.2024 19:02 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139459 ФПД: 163462772884239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190233&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139459&fm=163462772884239&tin=02508201610067®Number=0000000000092569&sum=600000 [19:02:32]StoreToDocumentArchive [19:02:32]shift 452 fd 139459 [19:02:32]save to /storage/0452/doc_00139459 [19:02:32]save last doc name /storage/0452/doc_00139459 to /storage/kkm_last_doc_name [19:02:32]save OK [19:02:32]Clear old archive folders... [19:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:32]tlvbuf is 012A14D0 [19:02:32]SAM_PROTO_ClearQueue [19:02:32]wFMCommunicate request_size=4 [19:02:32]MH_SAM_APDU [19:02:32]CAPDU: 80 09 00 00 [19:02:32]Write to MH i2c: E2 08 00 01 2D 80 09 00 00 00 00 00 00 A0 [19:02:32]Write i2c OK [19:02:32]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 03 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 03 00 01 2D 00 90 00 A2 [19:02:33]RAPDU: 90 00 [19:02:33]wFMCommunicate OK [19:02:33]SAM_PROTO_ClearQueue done [19:02:33]KKMCreateOFDPacket [19:02:33]OFDProtocolAddRootSTLVToBuf [19:02:33]FM_MakeSignedData [19:02:33]FM_MakeSignedData [19:02:33]SAM_PROTO_SignData [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 0D 01 02 [19:02:33]Write to MH i2c: E2 08 00 02 2D 80 0D 01 02 00 00 00 00 A8 [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 03 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 03 00 02 2D 00 90 00 A3 [19:02:33]RAPDU: 90 00 [19:02:33]wFMCommunicate OK [19:02:33]wFMCommunicate request_size=255 [19:02:33]MH_SAM_APDU [19:02: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 3B 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 C9 96 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 20 02 00 35 04 06 00 94 [19:02:33]Write to MH i2c: E2 02 01 03 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 3B 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 C9 96 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 20 02 00 35 04 06 00 94 00 00 A3 [19:02:33]OFD Sender: No OFD packet to send [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 03 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 03 00 03 2D 00 90 00 A4 [19:02:33]RAPDU: 90 00 [19:02:33]wFMCommunicate OK [19:02:33]wFMCommunicate request_size=10 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 0D 02 02 05 AB 24 83 03 0F [19:02:33]Write to MH i2c: E2 0D 00 04 2D 80 0D 02 02 05 00 AB 24 83 03 0F 00 00 19 [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 03 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 03 00 04 2D 00 90 00 A5 [19:02:33]RAPDU: 90 00 [19:02:33]wFMCommunicate OK [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 0D 03 02 [19:02:33]Write to MH i2c: E2 08 00 05 2D 80 0D 03 02 00 00 00 00 AD [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0B 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0B 00 05 2D 00 12 C8 60 29 94 C9 13 3B 90 00 BC [19:02:33]RAPDU: 12 C8 60 29 94 C9 13 3B 90 00 [19:02:33]wFMCommunicate OK [19:02:33]SAM_PROTO_SignData done [19:02:33]FM_MakeSignedData done [19:02:33]CreateOFDProtocolMessage [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 11 00 00 [19:02:33]Write to MH i2c: E2 08 00 06 2D 80 11 00 00 00 00 00 00 AD [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 17 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 17 00 06 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [19:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:02:33]wFMCommunicate OK [19:02:33]CreateOFDProtocolMessage done [19:02:33]OFDSenderStorePacket 139459 [19:02:33]StoreOFDPacket docnum=139459 [19:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8F 9C 07 01 61 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 3B 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 C9 96 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 20 02 00 35 04 06 00 94 AB 24 83 03 0F 12 C8 60 29 94 C9 13 3B [19:02:33]CheckFolder [19:02:33]dirname=/storage/ofd_packets [19:02:33]CheckFolder done [19:02:33]ProducePacketName [19:02:33]name=ofd_packets/00139459 [19:02:33]NVStorageSaveData ofd_packets/00139459 [19:02:33]File name is /storage/ofd_packets/00139459 [19:02:33]Write 301 bytes [19:02:33]NVStorageSaveData done [19:02:33]OFDSenderStorePacket done [19:02:33]KKMCreateOFDPacket done [19:02:33]NVStorageSaveData kkm_last_timestamp [19:02:33]File name is /storage/kkm_last_timestamp [19:02:33]Write 4 bytes [19:02:33]NVStorageSaveData done [19:02:33]ExternCall_PrintAddStr [19:02:33]wPrintStart [19:02:33]Write to MH i2c: 01 00 00 07 2D 34 [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: 01 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: 01 07 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: 01 07 00 07 2D 00 00 00 00 00 FF 0F 49 [19:02:33]RasterBufferAndPrint [19:02:33]line Счет N : (1)593300 [19:02:33]line ИНН: 02508201610067 [19:02:33]line Контрольно-Кассовый Чек [19:02:33]line ПРОДАЖА [19:02:33]line ТРК (МРК, ГНК) : 51 [19:02:33]line Товар: 2710124500 [19:02:33]line Аи-95-К-5 [19:02:33]line 80.870 * 74.20 [19:02:33]line = 6000.55 [19:02:33]line НДС 12% НСП 1% [19:02:33]line > о реализуемом товаре [19:02:33]line ОКРУГЛЕНИЕ: -0.55 [19:02:33]line ИТОГО: 6000.00 [19:02:33]line Внесено: 6000.00 [19:02:33]line СДАЧА: 0.00 [19:02:33]line НСП 1% : 53.10 [19:02:33]line НДС 12% : 637.23 [19:02:33]line Наличными: 6000.00 [19:02:33]line Безнал.: 0.00 [19:02:33]line Место: АЗС № 136 "Партнер Нефть" [19:02:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:02:33]line СНО: Общий режим [19:02:33]line Чек 294 19.08.2024 19:02 [19:02:33]line Смена: 452 ФФД: 1.0 [19:02:33]line ЗНМ: 0300000067 [19:02:33]line РНМ: 0000000000092569 [19:02:33]line Версия ККМ: 001 [19:02:33]line ФМ: 0000000000871776 [19:02:33]line ФД: 139459 [19:02:33]line ФПД: 163462772884239 [19:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190233&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139459&fm=163462772884239&tin=02508201610067®Number=0000000000092569&sum=600000 [19:02:33]OFD Sender: Processing packet 139459 [packets to send 137, broken 136] [19:02:33]ProducePacketName [19:02:33]name=ofd_packets/00139459 [19:02:33]OFD Sender: To server: pG, [19:02:33]CommunicateWithHost lk.salyk.kg:30040 [19:02:33]ConnectInit lk.salyk.kg [19:02:33]written 0, free lines is 4095 [19:02:34]Connected sock=10 [19:02: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 37 36 0F 01 00 00 8F 9C 07 01 61 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 3B 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 C9 96 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 20 02 00 35 04 06 00 94 AB 24 83 03 0F 12 C8 60 29 94 C9 13 3B [19:02:34]Write to MH i2c: 01 00 00 32 2D 5F [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: 01 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: 01 07 00 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: 01 07 00 32 2D 00 00 00 00 00 E8 0C 5A [19:02:34]RasterBufferAndPrint [19:02:34]line [19:02:34]line [19:02:34]line [19:02:34]line [19:02:34]line [19:02:34]written 0, free lines is 3310 [19:02:34]MH_Cut [19:02:34]Write to MH i2c: D1 01 00 39 2D 01 38 [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: D1 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: D1 01 00 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: D1 01 00 39 2D 00 37 [19:02:34]Write to MH i2c: 01 00 00 3A 2D 67 [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02: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 37 36 4F 00 00 00 28 F8 47 00 B8 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 37 36 10 04 04 00 C3 20 02 00 F4 03 04 00 5F 3D C3 66 B6 04 01 00 00 4A 30 41 94 6E B7 E0 A9 [19:02:34]CommunicateWithHost err = 0 [19:02:34]CheckOFDResponse [19:02:34]1017 (14) - 77093643461234 [19:02:34]1041 (16) - 0000000000871776 [19:02:34]1040 (4) - 139459 [19:02:34]1012 (4) - 19.08.2024 12:41 [19:02:34]1206 (1) - 0 [19:02:34]OFD Sender: Remove packet 139459 [19:02:34]ProducePacketName [19:02:34]name=ofd_packets/00139459 [19:02:34]NVStorageDeleteData [19:02:34]OFD Sender: No OFD packet to send [19:02:35]*** Cut start [19:02:35]*** Partial cut [19:02:35]*** CUTSNS_PIN = 1 [19:02:35]*** CUTSNS_PIN = 0 [19:02:35]*** Brake cut motor [19:02:35]Read from MH i2c: 01 [19:02:35]MH_I2C_Read... [19:02:35]*** Stop cut motor [19:02:35]*** Cut end [19:02:35]Read from MH i2c: 01 07 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: 01 07 00 3A 2D 00 00 00 00 00 FF 0F 7C [19:02:35]process_action close_receipt done [19:02:35]requested_data is exist [19:02:35]produce_requested_data [19:02:35]requested_item fm.sn is exist - process it [19:02:35]wFMCommunicate request_size=4 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 11 00 00 [19:02:35]Write to MH i2c: E2 08 00 3B 2D 80 11 00 00 00 00 00 00 E2 [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 17 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 17 00 3B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [19:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:02:35]wFMCommunicate OK [19:02:35]requested_item fd.num is exist - process it [19:02:35]SAM_PROTO_GetFieldsCounters [19:02:35]wFMCommunicate request_size=4 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 13 00 00 [19:02:35]Write to MH i2c: E2 08 00 3C 2D 80 13 00 00 00 00 00 00 E5 [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 62 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 62 00 3C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 20 02 00 0E 04 04 00 C4 01 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 2F [19:02:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 20 02 00 0E 04 04 00 C4 01 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 [19:02:35]wFMCommunicate OK [19:02:35]SAM_PROTO_GetFieldsCounters done [19:02:35]requested_item shift.num is exist - process it [19:02:35]requested_item shift.opened is exist - process it [19:02:35]req_shift_opened [19:02:35]FM_GetShiftState [19:02:35]SAM_PROTO_GetShiftState [19:02:35]wFMCommunicate request_size=4 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 13 01 00 [19:02:35]Write to MH i2c: E2 08 00 3D 2D 80 13 01 00 00 00 00 00 E7 [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 0E 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 0E 00 3D 2D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9E [19:02:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:02:35]wFMCommunicate OK [19:02:35]SAM_PROTO_GetShiftState done [19:02:35]FM_GetShiftState done [19:02:35]req_shift_opened done [19:02:35]requested_item shift.open_date is exist - process it [19:02:35]req_shift_open_date [19:02:35]req_shift_open_date done [19:02:35]produce_requested_data done [19:02:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139459,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:02:35]process_action_free close_receipt [19:02:35]json_value_free [19:02:35]json_value_free done [19:02:35]process_json_proto returns [19:02:35]Send response to host [19:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139459,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:02:35]free response buf [19:02:35]execute_script done [19:02:35]execute_script returns [19:02:35]free content buf [19:02:35]Sock 8.Close socket [19:02:35]Sock 8.Thread stoped [19:02:39]OFD Sender: No OFD packet to send [19:02:44]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:48]accept exits with 9 [19:03:48]New connection [19:03:48]New thread 3066674532 created [19:03:48]Thread 3066817892 joined [19:03:48]Waiting for new connection... [19:03:48] Sock 9.Parse request [19:03:48]Sock 9.Check first char [19:03:48]Sock 9.First char is OK [19:03:48]request: POST /json_proto HTTP/1.0 [19:03:48]Method: POST [19:03:48]URL: /json_proto [19:03:48]Method is POST - this is cgi request [19:03:48]url: /json_proto [19:03:48]query_string will be loaded in cgi processing [19:03:48]execute_cgi json_proto POST (null) [19:03:48]execute_cgi path=json_proto method=POST [19:03:48]POST find Content-Length [19:03:48]Host: 172.17.45.67:8080 [19:03:48]Content-Length: 677 [19:03:48]Content-Type: application/json [19:03:48] [19:03:48]POST finish read [19:03:48]Found Content-Length = 677 [19:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:03:48]execute_script... [19:03: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)593302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:03:48]POST & json_proto [19:03:48]process_json_proto [19:03:48]json parsed OK: [19:03:48]protocol is kg_v1.0 [19:03:48]action value=close_receipt [19:03:48]process_action close_receipt [19:03:48]cmd_close_receipt [19:03:48]MH_GetDate [19:03:48]Write to MH i2c: F0 00 00 3E 2D 5A [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: F0 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: F0 09 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: F0 09 00 3E 2D 00 16 97 C3 66 5F 7F 2B 66 A8 [19:03:48]GetLastDocTimeStamp 1724094153 [19:03:48]current date 1724094230 [19:03:48]FM_GetShiftState [19:03:48]SAM_PROTO_GetShiftState [19:03:48]wFMCommunicate request_size=4 [19:03:48]MH_SAM_APDU [19:03:48]CAPDU: 80 13 01 00 [19:03:48]Write to MH i2c: E2 08 00 3F 2D 80 13 01 00 00 00 00 00 E9 [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:48]Read from MH i2c: E2 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 0E 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 0E 00 3F 2D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A0 [19:03:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:03:48]wFMCommunicate OK [19:03:48]SAM_PROTO_GetShiftState done [19:03:48]FM_GetShiftState done [19:03:48]opened in 1724027888 [19:03:48]opened+sec_in_day 1724114288 [19:03:48]quantity*price = 50010 [19:03:48]sum+1 = 50012 [19:03:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 295 19.08.2024 19:03 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139460 ФПД: 174108103636583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190350&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139460&fm=174108103636583&tin=02508201610067®Number=0000000000092569&sum=50000 [19:03:49]StoreToDocumentArchive [19:03:49]shift 452 fd 139460 [19:03:49]save to /storage/0452/doc_00139460 [19:03:49]save last doc name /storage/0452/doc_00139460 to /storage/kkm_last_doc_name [19:03:49]save OK [19:03:49]Clear old archive folders... [19:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:49]tlvbuf is B6F34780 [19:03:49]SAM_PROTO_ClearQueue [19:03:49]wFMCommunicate request_size=4 [19:03:49]MH_SAM_APDU [19:03:49]CAPDU: 80 09 00 00 [19:03:49]Write to MH i2c: E2 08 00 4C 2D 80 09 00 00 00 00 00 00 EB [19:03:49]Write i2c OK [19:03:49]MH_I2C_Read... [19:03:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:49]Read from MH i2c: E2 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: E2 03 00 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: E2 03 00 4C 2D 00 90 00 ED [19:03:49]RAPDU: 90 00 [19:03:49]wFMCommunicate OK [19:03:49]SAM_PROTO_ClearQueue done [19:03:49]KKMCreateOFDPacket [19:03:49]OFDProtocolAddRootSTLVToBuf [19:03:49]FM_MakeSignedData [19:03:49]FM_MakeSignedData [19:03:49]SAM_PROTO_SignData [19:03:49]wFMCommunicate request_size=4 [19:03:49]MH_SAM_APDU [19:03:49]CAPDU: 80 0D 01 02 [19:03:49]Write to MH i2c: E2 08 00 4D 2D 80 0D 01 02 00 00 00 00 F3 [19:03:49]Write i2c OK [19:03:49]MH_I2C_Read... [19:03:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:49]Read from MH i2c: E2 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: E2 03 00 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: E2 03 00 4D 2D 00 90 00 EE [19:03:49]RAPDU: 90 00 [19:03:49]wFMCommunicate OK [19:03:49]wFMCommunicate request_size=255 [19:03:49]MH_SAM_APDU [19:03:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 16 97 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 20 02 00 35 04 06 00 9E [19:03:49]Write to MH i2c: E2 02 01 4E 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 16 97 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 20 02 00 35 04 06 00 9E 00 00 AB [19:03:49]Write i2c OK [19:03:49]MH_I2C_Read... [19:03:49]OFD Sender: No OFD packet to send [19:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:49]Read from MH i2c: E2 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: E2 03 00 [19:03:49]MH_I2C_Read... [19:03:49]Read from MH i2c: E2 03 00 4E 2D 00 90 00 EF [19:03:49]RAPDU: 90 00 [19:03:49]wFMCommunicate OK [19:03:49]wFMCommunicate request_size=10 [19:03:49]MH_SAM_APDU [19:03:49]CAPDU: 80 0D 02 02 05 59 B3 AB 76 67 [19:03:49]Write to MH i2c: E2 0D 00 4F 2D 80 0D 02 02 05 00 59 B3 AB 76 67 00 00 94 [19:03:49]Write i2c OK [19:03:49]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 4F 2D 00 90 00 F0 [19:03:50]RAPDU: 90 00 [19:03:50]wFMCommunicate OK [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 0D 03 02 [19:03:50]Write to MH i2c: E2 08 00 50 2D 80 0D 03 02 00 00 00 00 F8 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0B 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0B 00 50 2D 00 5C 4F 1B 54 07 F8 5F EB 90 00 5C [19:03:50]RAPDU: 5C 4F 1B 54 07 F8 5F EB 90 00 [19:03:50]wFMCommunicate OK [19:03:50]SAM_PROTO_SignData done [19:03:50]FM_MakeSignedData done [19:03:50]CreateOFDProtocolMessage [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 11 00 00 [19:03:50]Write to MH i2c: E2 08 00 51 2D 80 11 00 00 00 00 00 00 F8 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 17 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 17 00 51 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [19:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:03:50]wFMCommunicate OK [19:03:50]CreateOFDProtocolMessage done [19:03:50]OFDSenderStorePacket 139460 [19:03:50]StoreOFDPacket docnum=139460 [19:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 C3 07 01 DA DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 16 97 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 20 02 00 35 04 06 00 9E 59 B3 AB 76 67 5C 4F 1B 54 07 F8 5F EB [19:03:50]CheckFolder [19:03:50]dirname=/storage/ofd_packets [19:03:50]CheckFolder done [19:03:50]ProducePacketName [19:03:50]name=ofd_packets/00139460 [19:03:50]NVStorageSaveData ofd_packets/00139460 [19:03:50]File name is /storage/ofd_packets/00139460 [19:03:50]Write 301 bytes [19:03:50]NVStorageSaveData done [19:03:50]OFDSenderStorePacket done [19:03:50]KKMCreateOFDPacket done [19:03:50]NVStorageSaveData kkm_last_timestamp [19:03:50]File name is /storage/kkm_last_timestamp [19:03:50]Write 4 bytes [19:03:50]NVStorageSaveData done [19:03:50]ExternCall_PrintAddStr [19:03:50]wPrintStart [19:03:50]Write to MH i2c: 01 00 00 52 2D 7F [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 07 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 07 00 52 2D 00 00 00 00 00 FF 0F 94 [19:03:50]RasterBufferAndPrint [19:03:50]line Счет N : (1)593302 [19:03:50]line ИНН: 02508201610067 [19:03:50]line Контрольно-Кассовый Чек [19:03:50]line ПРОДАЖА [19:03:50]line ТРК (МРК, ГНК) : 31 [19:03:50]line Товар: 2710124500 [19:03:50]line Аи-95-К-5 [19:03:50]line 6.740 * 74.20 [19:03:50]line = 500.11 [19:03:50]line НДС 12% НСП 1% [19:03:50]line > о реализуемом товаре [19:03:50]line ОКРУГЛЕНИЕ: -0.11 [19:03:50]line ИТОГО: 500.00 [19:03:50]line Внесено: 500.00 [19:03:50]line СДАЧА: 0.00 [19:03:50]line НСП 1% : 4.43 [19:03:50]line НДС 12% : 53.11 [19:03:50]line Наличными: 500.00 [19:03:50]line Безнал.: 0.00 [19:03:50]line Место: АЗС № 136 "Партнер Нефть" [19:03:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:03:50]line СНО: Общий режим [19:03:50]line Чек 295 19.08.2024 19:03 [19:03:50]line Смена: 452 ФФД: 1.0 [19:03:50]line ЗНМ: 0300000067 [19:03:50]line РНМ: 0000000000092569 [19:03:50]line Версия ККМ: 001 [19:03:50]line ФМ: 0000000000871776 [19:03:50]line ФД: 139460 [19:03:50]line ФПД: 174108103636583 [19:03:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190350&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139460&fm=174108103636583&tin=02508201610067®Number=0000000000092569&sum=50000 [19:03:50]OFD Sender: Processing packet 139460 [packets to send 137, broken 136] [19:03:50]ProducePacketName [19:03:50]name=ofd_packets/00139460 [19:03:50]OFD Sender: To server: pG, [19:03:50]CommunicateWithHost lk.salyk.kg:30040 [19:03:50]ConnectInit lk.salyk.kg [19:03:50]written 0, free lines is 4095 [19:03:50]Connected sock=10 [19:03: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 37 36 0F 01 00 00 A1 C3 07 01 DA DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 16 97 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 20 02 00 35 04 06 00 9E 59 B3 AB 76 67 5C 4F 1B 54 07 F8 5F EB [19:03:50]Write to MH i2c: 01 00 00 7D 2D AA [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 07 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 07 00 7D 2D 00 00 00 00 00 C6 0C 83 [19:03:50]RasterBufferAndPrint [19:03:50]line [19:03:50]line [19:03:50]line [19:03:50]line [19:03:50]line [19:03:50]written 0, free lines is 3276 [19:03:50]MH_Cut [19:03:50]Write to MH i2c: D1 01 00 84 2D 01 83 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: D1 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: D1 01 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: D1 01 00 84 2D 00 82 [19:03:50]Write to MH i2c: 01 00 00 85 2D B2 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03: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 37 36 4F 00 00 00 17 19 47 00 3E 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 37 36 10 04 04 00 C4 20 02 00 F4 03 04 00 AB 3D C3 66 B6 04 01 00 00 13 8B EF 33 A5 A2 7A A0 [19:03:50]CommunicateWithHost err = 0 [19:03:50]CheckOFDResponse [19:03:50]1017 (14) - 77093643461234 [19:03:50]1041 (16) - 0000000000871776 [19:03:50]1040 (4) - 139460 [19:03:50]1012 (4) - 19.08.2024 12:42 [19:03:50]1206 (1) - 0 [19:03:50]OFD Sender: Remove packet 139460 [19:03:50]ProducePacketName [19:03:50]name=ofd_packets/00139460 [19:03:50]NVStorageDeleteData [19:03:51]OFD Sender: No OFD packet to send [19:03:51]*** Cut start [19:03:51]*** Partial cut [19:03:51]*** CUTSNS_PIN = 1 [19:03:51]*** CUTSNS_PIN = 0 [19:03:51]*** Brake cut motor [19:03:52]Read from MH i2c: 01 [19:03:52]MH_I2C_Read... [19:03:52]*** Stop cut motor [19:03:52]*** Cut end [19:03:52]Read from MH i2c: 01 07 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: 01 07 00 85 2D 00 00 00 00 00 FF 0F C7 [19:03:52]process_action close_receipt done [19:03:52]requested_data is exist [19:03:52]produce_requested_data [19:03:52]requested_item fm.sn is exist - process it [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 11 00 00 [19:03:52]Write to MH i2c: E2 08 00 86 2D 80 11 00 00 00 00 00 00 2D [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 17 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 17 00 86 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [19:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:03:52]wFMCommunicate OK [19:03:52]requested_item fd.num is exist - process it [19:03:52]SAM_PROTO_GetFieldsCounters [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 13 00 00 [19:03:52]Write to MH i2c: E2 08 00 87 2D 80 13 00 00 00 00 00 00 30 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 62 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 62 00 87 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 20 02 00 0E 04 04 00 C4 01 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 7E [19:03: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 20 02 00 0E 04 04 00 C4 01 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 [19:03:52]wFMCommunicate OK [19:03:52]SAM_PROTO_GetFieldsCounters done [19:03:52]requested_item shift.num is exist - process it [19:03:52]requested_item shift.opened is exist - process it [19:03:52]req_shift_opened [19:03:52]FM_GetShiftState [19:03:52]SAM_PROTO_GetShiftState [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 13 01 00 [19:03:52]Write to MH i2c: E2 08 00 88 2D 80 13 01 00 00 00 00 00 32 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 0E 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 0E 00 88 2D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E9 [19:03:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:03:52]wFMCommunicate OK [19:03:52]SAM_PROTO_GetShiftState done [19:03:52]FM_GetShiftState done [19:03:52]req_shift_opened done [19:03:52]requested_item shift.open_date is exist - process it [19:03:52]req_shift_open_date [19:03:52]req_shift_open_date done [19:03:52]produce_requested_data done [19:03:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139460,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:03:52]process_action_free close_receipt [19:03:52]json_value_free [19:03:52]json_value_free done [19:03:52]process_json_proto returns [19:03:52]Send response to host [19:03:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139460,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:03:52]free response buf [19:03:52]execute_script done [19:03:52]execute_script returns [19:03:52]free content buf [19:03:52]Sock 9.Close socket [19:03:52]Sock 9.Thread stoped [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]accept exits with 8 [19:06:46]New connection [19:06:46]New thread 3066817892 created [19:06:46]Thread 3066674532 joined [19:06:46]Waiting for new connection... [19:06:46] Sock 8.Parse request [19:06:46]Sock 8.Check first char [19:06:46]Sock 8.First char is OK [19:06:46]request: POST /json_proto HTTP/1.0 [19:06:46]Method: POST [19:06:46]URL: /json_proto [19:06:46]Method is POST - this is cgi request [19:06:46]url: /json_proto [19:06:46]query_string will be loaded in cgi processing [19:06:46]execute_cgi json_proto POST (null) [19:06:46]execute_cgi path=json_proto method=POST [19:06:46]POST find Content-Length [19:06:46]Host: 172.17.45.67:8080 [19:06:46]Content-Length: 677 [19:06:46]Content-Type: application/json [19:06:46] [19:06:46]POST finish read [19:06:46]Found Content-Length = 677 [19:06:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:06:46]execute_script... [19:06: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)593303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:06:46]POST & json_proto [19:06:46]process_json_proto [19:06:46]json parsed OK: [19:06:46]protocol is kg_v1.0 [19:06:46]action value=close_receipt [19:06:46]process_action close_receipt [19:06:46]cmd_close_receipt [19:06:46]MH_GetDate [19:06:46]Write to MH i2c: F0 00 00 89 2D A5 [19:06:46]Write i2c OK [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: F0 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: F0 09 00 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: F0 09 00 89 2D 00 C8 97 C3 66 5F 7F 2B 66 A5 [19:06:46]GetLastDocTimeStamp 1724094230 [19:06:46]current date 1724094408 [19:06:46]FM_GetShiftState [19:06:46]SAM_PROTO_GetShiftState [19:06:46]wFMCommunicate request_size=4 [19:06:46]MH_SAM_APDU [19:06:46]CAPDU: 80 13 01 00 [19:06:46]Write to MH i2c: E2 08 00 8A 2D 80 13 01 00 00 00 00 00 34 [19:06:46]Write i2c OK [19:06:46]MH_I2C_Read... [19:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:46]Read from MH i2c: E2 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 0E 00 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 0E 00 8A 2D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EB [19:06:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:06:46]wFMCommunicate OK [19:06:46]SAM_PROTO_GetShiftState done [19:06:46]FM_GetShiftState done [19:06:46]opened in 1724027888 [19:06:46]opened+sec_in_day 1724114288 [19:06:46]quantity*price = 50036 [19:06:46]sum+1 = 50037 [19:06:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 296 19.08.2024 19:06 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139461 ФПД: 272080627132338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190648&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139461&fm=272080627132338&tin=02508201610067®Number=0000000000092569&sum=50000 [19:06:47]StoreToDocumentArchive [19:06:47]shift 452 fd 139461 [19:06:47]save to /storage/0452/doc_00139461 [19:06:47]save last doc name /storage/0452/doc_00139461 to /storage/kkm_last_doc_name [19:06:47]save OK [19:06:47]Clear old archive folders... [19:06:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:47]tlvbuf is B6D87550 [19:06:47]SAM_PROTO_ClearQueue [19:06:47]wFMCommunicate request_size=4 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 09 00 00 [19:06:47]Write to MH i2c: E2 08 00 97 2D 80 09 00 00 00 00 00 00 36 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 97 2D 00 90 00 38 [19:06:47]RAPDU: 90 00 [19:06:47]wFMCommunicate OK [19:06:47]SAM_PROTO_ClearQueue done [19:06:47]KKMCreateOFDPacket [19:06:47]OFDProtocolAddRootSTLVToBuf [19:06:47]FM_MakeSignedData [19:06:47]FM_MakeSignedData [19:06:47]SAM_PROTO_SignData [19:06:47]wFMCommunicate request_size=4 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 0D 01 02 [19:06:47]Write to MH i2c: E2 08 00 98 2D 80 0D 01 02 00 00 00 00 3E [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 98 2D 00 90 00 39 [19:06:47]RAPDU: 90 00 [19:06:47]wFMCommunicate OK [19:06:47]wFMCommunicate request_size=255 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 28 01 00 00 F4 03 04 00 C8 97 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 20 02 00 35 04 06 00 F7 [19:06:47]Write to MH i2c: E2 02 01 99 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 28 01 00 00 F4 03 04 00 C8 97 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 20 02 00 35 04 06 00 F7 00 00 1B [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 99 2D 00 90 00 3A [19:06:48]RAPDU: 90 00 [19:06:48]wFMCommunicate OK [19:06:48]wFMCommunicate request_size=10 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 0D 02 02 05 74 B5 21 67 B2 [19:06:48]Write to MH i2c: E2 0D 00 9A 2D 80 0D 02 02 05 00 74 B5 21 67 B2 00 00 AE [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 9A 2D 00 90 00 3B [19:06:48]RAPDU: 90 00 [19:06:48]wFMCommunicate OK [19:06:48]wFMCommunicate request_size=4 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 0D 03 02 [19:06:48]Write to MH i2c: E2 08 00 9B 2D 80 0D 03 02 00 00 00 00 43 [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 0B 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 0B 00 9B 2D 00 5B 91 D6 4A 37 78 9A 12 90 00 AB [19:06:48]RAPDU: 5B 91 D6 4A 37 78 9A 12 90 00 [19:06:48]wFMCommunicate OK [19:06:48]SAM_PROTO_SignData done [19:06:48]FM_MakeSignedData done [19:06:48]CreateOFDProtocolMessage [19:06:48]wFMCommunicate request_size=4 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 11 00 00 [19:06:48]Write to MH i2c: E2 08 00 9C 2D 80 11 00 00 00 00 00 00 43 [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 17 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 17 00 9C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [19:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:06:48]wFMCommunicate OK [19:06:48]CreateOFDProtocolMessage done [19:06:48]OFDSenderStorePacket 139461 [19:06:48]StoreOFDPacket docnum=139461 [19:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F AF 07 01 F1 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 28 01 00 00 F4 03 04 00 C8 97 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 20 02 00 35 04 06 00 F7 74 B5 21 67 B2 5B 91 D6 4A 37 78 9A 12 [19:06:48]CheckFolder [19:06:48]dirname=/storage/ofd_packets [19:06:48]CheckFolder done [19:06:48]ProducePacketName [19:06:48]name=ofd_packets/00139461 [19:06:48]NVStorageSaveData ofd_packets/00139461 [19:06:48]File name is /storage/ofd_packets/00139461 [19:06:48]Write 301 bytes [19:06:48]NVStorageSaveData done [19:06:48]OFDSenderStorePacket done [19:06:48]KKMCreateOFDPacket done [19:06:48]NVStorageSaveData kkm_last_timestamp [19:06:48]File name is /storage/kkm_last_timestamp [19:06:48]Write 4 bytes [19:06:48]NVStorageSaveData done [19:06:48]ExternCall_PrintAddStr [19:06:48]wPrintStart [19:06:48]Write to MH i2c: 01 00 00 9D 2D CA [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 9D 2D 00 00 00 00 00 FF 0F DF [19:06:48]RasterBufferAndPrint [19:06:48]line Счет N : (1)593303 [19:06:48]line ИНН: 02508201610067 [19:06:48]line Контрольно-Кассовый Чек [19:06:48]line ПРОДАЖА [19:06:48]line ТРК (МРК, ГНК) : 52 [19:06:48]line Товар: 2710124130 [19:06:48]line Аи-92-К-5 [19:06:48]line 7.380 * 67.80 [19:06:48]line = 500.36 [19:06:48]line НДС 12% НСП 1% [19:06:48]line > о реализуемом товаре [19:06:48]line ОКРУГЛЕНИЕ: -0.36 [19:06:48]line ИТОГО: 500.00 [19:06:48]line Внесено: 500.00 [19:06:48]line СДАЧА: 0.00 [19:06:48]line НСП 1% : 4.43 [19:06:48]line НДС 12% : 53.14 [19:06:48]line Наличными: 500.00 [19:06:48]line Безнал.: 0.00 [19:06:48]line Место: АЗС № 136 "Партнер Нефть" [19:06:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:06:48]line СНО: Общий режим [19:06:48]line Чек 296 19.08.2024 19:06 [19:06:48]line Смена: 452 ФФД: 1.0 [19:06:48]line ЗНМ: 0300000067 [19:06:48]line РНМ: 0000000000092569 [19:06:48]line Версия ККМ: 001 [19:06:48]line ФМ: 0000000000871776 [19:06:48]line ФД: 139461 [19:06:48]line ФПД: 272080627132338 [19:06:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190648&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139461&fm=272080627132338&tin=02508201610067®Number=0000000000092569&sum=50000 [19:06:48]OFD Sender: Processing packet 139461 [packets to send 137, broken 136] [19:06:48]ProducePacketName [19:06:48]name=ofd_packets/00139461 [19:06:48]OFD Sender: To server: pG, [19:06:48]CommunicateWithHost lk.salyk.kg:30040 [19:06:48]ConnectInit lk.salyk.kg [19:06:48]written 0, free lines is 4095 [19:06:48]Connected sock=9 [19:06:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F AF 07 01 F1 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 28 01 00 00 F4 03 04 00 C8 97 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 20 02 00 35 04 06 00 F7 74 B5 21 67 B2 5B 91 D6 4A 37 78 9A 12 [19:06: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 37 36 4F 00 00 00 95 49 47 00 22 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 20 02 00 F4 03 04 00 5D 3E C3 66 B6 04 01 00 00 C9 86 95 6F 71 36 9C AD [19:06:48]CommunicateWithHost err = 0 [19:06:48]CheckOFDResponse [19:06:48]1017 (14) - 77093643461234 [19:06:48]1041 (16) - 0000000000871776 [19:06:48]1040 (4) - 139461 [19:06:48]1012 (4) - 19.08.2024 12:45 [19:06:48]1206 (1) - 0 [19:06:48]OFD Sender: Remove packet 139461 [19:06:48]ProducePacketName [19:06:48]name=ofd_packets/00139461 [19:06:48]NVStorageDeleteData [19:06:48]Write to MH i2c: 01 00 00 C8 2D F5 [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 C8 2D 00 00 00 00 00 DD 0C E5 [19:06:48]RasterBufferAndPrint [19:06:48]line [19:06:48]line [19:06:49]line [19:06:49]line [19:06:49]line [19:06:49]written 0, free lines is 3299 [19:06:49]MH_Cut [19:06:49]Write to MH i2c: D1 01 00 CF 2D 01 CE [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: D1 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: D1 01 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: D1 01 00 CF 2D 00 CD [19:06:49]Write to MH i2c: 01 00 00 D0 2D FD [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]OFD Sender: No OFD packet to send [19:06:49]*** Cut start [19:06:49]*** Partial cut [19:06:49]*** CUTSNS_PIN = 1 [19:06:49]*** CUTSNS_PIN = 0 [19:06:49]*** Brake cut motor [19:06:50]Read from MH i2c: 01 [19:06:50]MH_I2C_Read... [19:06:50]*** Stop cut motor [19:06:50]*** Cut end [19:06:50]Read from MH i2c: 01 07 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: 01 07 00 D0 2D 00 00 00 00 00 FF 0F 12 [19:06:50]process_action close_receipt done [19:06:50]requested_data is exist [19:06:50]produce_requested_data [19:06:50]requested_item fm.sn is exist - process it [19:06:50]wFMCommunicate request_size=4 [19:06:50]MH_SAM_APDU [19:06:50]CAPDU: 80 11 00 00 [19:06:50]Write to MH i2c: E2 08 00 D1 2D 80 11 00 00 00 00 00 00 78 [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:50]Read from MH i2c: E2 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 17 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 17 00 D1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [19:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:06:50]wFMCommunicate OK [19:06:50]requested_item fd.num is exist - process it [19:06:50]SAM_PROTO_GetFieldsCounters [19:06:50]wFMCommunicate request_size=4 [19:06:50]MH_SAM_APDU [19:06:50]CAPDU: 80 13 00 00 [19:06:50]Write to MH i2c: E2 08 00 D2 2D 80 13 00 00 00 00 00 00 7B [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:50]Read from MH i2c: E2 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 62 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 62 00 D2 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 20 02 00 0E 04 04 00 C4 01 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 CD [19:06: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 20 02 00 0E 04 04 00 C4 01 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 [19:06:50]wFMCommunicate OK [19:06:50]SAM_PROTO_GetFieldsCounters done [19:06:50]requested_item shift.num is exist - process it [19:06:50]requested_item shift.opened is exist - process it [19:06:50]req_shift_opened [19:06:50]FM_GetShiftState [19:06:50]SAM_PROTO_GetShiftState [19:06:50]wFMCommunicate request_size=4 [19:06:50]MH_SAM_APDU [19:06:50]CAPDU: 80 13 01 00 [19:06:50]Write to MH i2c: E2 08 00 D3 2D 80 13 01 00 00 00 00 00 7D [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:50]Read from MH i2c: E2 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 0E 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 0E 00 D3 2D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 34 [19:06:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:06:50]wFMCommunicate OK [19:06:50]SAM_PROTO_GetShiftState done [19:06:50]FM_GetShiftState done [19:06:50]req_shift_opened done [19:06:50]requested_item shift.open_date is exist - process it [19:06:50]req_shift_open_date [19:06:50]req_shift_open_date done [19:06:50]produce_requested_data done [19:06:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139461,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:06:50]process_action_free close_receipt [19:06:50]json_value_free [19:06:50]json_value_free done [19:06:50]process_json_proto returns [19:06:50]Send response to host [19:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139461,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:06:50]free response buf [19:06:50]execute_script done [19:06:50]execute_script returns [19:06:50]free content buf [19:06:50]Sock 8.Close socket [19:06:50]Sock 8.Thread stoped [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:01]accept exits with 10 [19:12:01]New connection [19:12:01]New thread 3066674532 created [19:12:01]Thread 3066817892 joined [19:12:01]Waiting for new connection... [19:12:01] Sock 10.Parse request [19:12:01]Sock 10.Check first char [19:12:01]Sock 10.First char is OK [19:12:01]request: POST /json_proto HTTP/1.0 [19:12:01]Method: POST [19:12:01]URL: /json_proto [19:12:01]Method is POST - this is cgi request [19:12:01]url: /json_proto [19:12:01]query_string will be loaded in cgi processing [19:12:01]execute_cgi json_proto POST (null) [19:12:01]execute_cgi path=json_proto method=POST [19:12:01]POST find Content-Length [19:12:01]Host: 172.17.45.67:8080 [19:12:01]Content-Length: 838 [19:12:01]Content-Type: application/json [19:12:01] [19:12:01]POST finish read [19:12:01]Found Content-Length = 838 [19:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:01]execute_script... [19:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:01]POST & json_proto [19:12:01]process_json_proto [19:12:01]json parsed OK: [19:12:01]protocol is kg_v1.0 [19:12:01]action value=close_receipt [19:12:01]process_action close_receipt [19:12:01]cmd_close_receipt [19:12:01]MH_GetDate [19:12:01]Write to MH i2c: F0 00 00 D4 2D F0 [19:12:01]Write i2c OK [19:12:01]MH_I2C_Read... [19:12:01]Read from MH i2c: F0 [19:12:01]MH_I2C_Read... [19:12:01]Read from MH i2c: F0 09 00 [19:12:01]MH_I2C_Read... [19:12:01]Read from MH i2c: F0 09 00 D4 2D 00 03 99 C3 66 5F 7F 2B 66 2D [19:12:01]GetLastDocTimeStamp 1724094408 [19:12:01]current date 1724094723 [19:12:01]FM_GetShiftState [19:12:01]SAM_PROTO_GetShiftState [19:12:01]wFMCommunicate request_size=4 [19:12:01]MH_SAM_APDU [19:12:01]CAPDU: 80 13 01 00 [19:12:01]Write to MH i2c: E2 08 00 D5 2D 80 13 01 00 00 00 00 00 7F [19:12:01]Write i2c OK [19:12:01]MH_I2C_Read... [19:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:01]Read from MH i2c: E2 [19:12:01]MH_I2C_Read... [19:12:01]Read from MH i2c: E2 0E 00 [19:12:01]MH_I2C_Read... [19:12:01]Read from MH i2c: E2 0E 00 D5 2D 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 36 [19:12:01]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:12:01]wFMCommunicate OK [19:12:01]SAM_PROTO_GetShiftState done [19:12:01]FM_GetShiftState done [19:12:01]opened in 1724027888 [19:12:01]opened+sec_in_day 1724114288 [19:12:01]quantity*price = 150041 [19:12:01]sum+1 = 150042 [19:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 297 19.08.2024 19:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139462 ФПД: 176353989408969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139462&fm=176353989408969&tin=02508201610067®Number=0000000000092569&sum=150000 [19:12:03]StoreToDocumentArchive [19:12:03]shift 452 fd 139462 [19:12:03]save to /storage/0452/doc_00139462 [19:12:03]save last doc name /storage/0452/doc_00139462 to /storage/kkm_last_doc_name [19:12:03]save OK [19:12:03]Clear old archive folders... [19:12:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:03]tlvbuf is 0120FEA0 [19:12:03]SAM_PROTO_ClearQueue [19:12:03]wFMCommunicate request_size=4 [19:12:03]MH_SAM_APDU [19:12:03]CAPDU: 80 09 00 00 [19:12:03]Write to MH i2c: E2 08 00 E2 2D 80 09 00 00 00 00 00 00 81 [19:12:03]Write i2c OK [19:12:03]MH_I2C_Read... [19:12:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:03]Read from MH i2c: E2 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 03 00 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 03 00 E2 2D 00 90 00 83 [19:12:03]RAPDU: 90 00 [19:12:03]wFMCommunicate OK [19:12:03]SAM_PROTO_ClearQueue done [19:12:03]KKMCreateOFDPacket [19:12:03]OFDProtocolAddRootSTLVToBuf [19:12:03]FM_MakeSignedData [19:12:03]FM_MakeSignedData [19:12:03]SAM_PROTO_SignData [19:12:03]wFMCommunicate request_size=4 [19:12:03]MH_SAM_APDU [19:12:03]CAPDU: 80 0D 01 02 [19:12:03]Write to MH i2c: E2 08 00 E3 2D 80 0D 01 02 00 00 00 00 89 [19:12:03]Write i2c OK [19:12:03]MH_I2C_Read... [19:12:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:03]Read from MH i2c: E2 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 03 00 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 03 00 E3 2D 00 90 00 84 [19:12:03]RAPDU: 90 00 [19:12:03]wFMCommunicate OK [19:12:03]wFMCommunicate request_size=255 [19:12:03]MH_SAM_APDU [19:12: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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 03 99 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 20 02 00 35 04 06 00 A0 [19:12:03]Write to MH i2c: E2 02 01 E4 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 03 99 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 20 02 00 35 04 06 00 A0 00 00 C3 [19:12:03]Write i2c OK [19:12:03]MH_I2C_Read... [19:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:03]Read from MH i2c: E2 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 03 00 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 03 00 E4 2D 00 90 00 85 [19:12:03]RAPDU: 90 00 [19:12:03]wFMCommunicate OK [19:12:03]wFMCommunicate request_size=10 [19:12:03]MH_SAM_APDU [19:12:03]CAPDU: 80 0D 02 02 05 64 9C E4 B8 C9 [19:12:03]Write to MH i2c: E2 0D 00 E5 2D 80 0D 02 02 05 00 64 9C E4 B8 C9 00 00 FB [19:12:03]Write i2c OK [19:12:03]MH_I2C_Read... [19:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:03]Read from MH i2c: E2 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 03 00 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 03 00 E5 2D 00 90 00 86 [19:12:03]RAPDU: 90 00 [19:12:03]wFMCommunicate OK [19:12:03]wFMCommunicate request_size=4 [19:12:03]MH_SAM_APDU [19:12:03]CAPDU: 80 0D 03 02 [19:12:03]Write to MH i2c: E2 08 00 E6 2D 80 0D 03 02 00 00 00 00 8E [19:12:03]Write i2c OK [19:12:03]MH_I2C_Read... [19:12:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:03]Read from MH i2c: E2 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 0B 00 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 0B 00 E6 2D 00 42 3C 24 9B 72 B2 81 10 90 00 81 [19:12:03]RAPDU: 42 3C 24 9B 72 B2 81 10 90 00 [19:12:03]wFMCommunicate OK [19:12:03]SAM_PROTO_SignData done [19:12:03]FM_MakeSignedData done [19:12:03]CreateOFDProtocolMessage [19:12:03]wFMCommunicate request_size=4 [19:12:03]MH_SAM_APDU [19:12:03]CAPDU: 80 11 00 00 [19:12:03]Write to MH i2c: E2 08 00 E7 2D 80 11 00 00 00 00 00 00 8E [19:12:03]Write i2c OK [19:12:03]MH_I2C_Read... [19:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:03]Read from MH i2c: E2 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 17 00 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: E2 17 00 E7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E5 [19:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:12:03]wFMCommunicate OK [19:12:03]CreateOFDProtocolMessage done [19:12:03]OFDSenderStorePacket 139462 [19:12:03]StoreOFDPacket docnum=139462 [19:12:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 13 90 07 01 F1 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 03 99 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 20 02 00 35 04 06 00 A0 64 9C E4 B8 C9 42 3C 24 9B 72 B2 81 10 [19:12:03]CheckFolder [19:12:03]dirname=/storage/ofd_packets [19:12:03]CheckFolder done [19:12:03]ProducePacketName [19:12:03]name=ofd_packets/00139462 [19:12:03]NVStorageSaveData ofd_packets/00139462 [19:12:03]File name is /storage/ofd_packets/00139462 [19:12:03]Write 301 bytes [19:12:03]NVStorageSaveData done [19:12:03]OFDSenderStorePacket done [19:12:03]KKMCreateOFDPacket done [19:12:03]NVStorageSaveData kkm_last_timestamp [19:12:03]File name is /storage/kkm_last_timestamp [19:12:03]Write 4 bytes [19:12:03]NVStorageSaveData done [19:12:03]ExternCall_PrintAddStr [19:12:03]wPrintStart [19:12:03]Write to MH i2c: 01 00 00 E8 2D 15 [19:12:03]Write i2c OK [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: 01 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: 01 07 00 [19:12:03]MH_I2C_Read... [19:12:03]Read from MH i2c: 01 07 00 E8 2D 00 00 00 00 00 FF 0F 2A [19:12:03]RasterBufferAndPrint [19:12:03]line Счет N : (1)593304 [19:12:03]line ИНН: 02508201610067 [19:12:03]line Контрольно-Кассовый Чек [19:12:03]line ПРОДАЖА [19:12:03]line ТРК (МРК, ГНК) : 42 [19:12:03]line Товар: 2710124130 [19:12:03]line Аи-92-К-5 [19:12:03]line 22.130 * 67.80 [19:12:03]line = 1500.41 [19:12:03]line НДС 12% НСП 1% [19:12:03]line > о реализуемом товаре [19:12:03]line ОКРУГЛЕНИЕ: -0.41 [19:12:03]line ИТОГО: 1500.00 [19:12:03]line НСП 1% : 13.28 [19:12:03]line НДС 12% : 159.34 [19:12:03]line Наличными: 0.00 [19:12:03]line Безнал.: 1500.00 [19:12:03]line Место: АЗС № 136 "Партнер Нефть" [19:12:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:12:03]line СНО: Общий режим [19:12:03]line Чек 297 19.08.2024 19:12 [19:12:03]line Смена: 452 ФФД: 1.0 [19:12:03]line ЗНМ: 0300000067 [19:12:03]line РНМ: 0000000000092569 [19:12:03]line Версия ККМ: 001 [19:12:03]line Платежная система: Бакай Банк [19:12:03]line ФМ: 0000000000871776 [19:12:03]line ФД: 139462 [19:12:03]line ФПД: 176353989408969 [19:12:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139462&fm=176353989408969&tin=02508201610067®Number=0000000000092569&sum=150000 [19:12:03]OFD Sender: Processing packet 139462 [packets to send 137, broken 136] [19:12:03]ProducePacketName [19:12:03]name=ofd_packets/00139462 [19:12:03]OFD Sender: To server: pG, [19:12:03]CommunicateWithHost lk.salyk.kg:30040 [19:12:03]ConnectInit lk.salyk.kg [19:12:03]written 0, free lines is 4095 [19:12:04]Connected sock=8 [19:12: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 37 36 0F 01 00 00 13 90 07 01 F1 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 03 99 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 20 02 00 35 04 06 00 A0 64 9C E4 B8 C9 42 3C 24 9B 72 B2 81 10 [19:12: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 37 36 4F 00 00 00 66 20 47 00 7C 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 37 36 10 04 04 00 C6 20 02 00 F4 03 04 00 99 3F C3 66 B6 04 01 00 00 ED 0F EF 21 CD 4A E9 85 [19:12:04]CommunicateWithHost err = 0 [19:12:04]CheckOFDResponse [19:12:04]1017 (14) - 77093643461234 [19:12:04]1041 (16) - 0000000000871776 [19:12:04]1040 (4) - 139462 [19:12:04]1012 (4) - 19.08.2024 12:50 [19:12:04]1206 (1) - 0 [19:12:04]OFD Sender: Remove packet 139462 [19:12:04]ProducePacketName [19:12:04]name=ofd_packets/00139462 [19:12:04]NVStorageDeleteData [19:12:04]Write to MH i2c: 01 00 00 13 2E 41 [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: 01 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: 01 07 00 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: 01 07 00 13 2E 00 00 00 00 00 ED 0C 41 [19:12:04]RasterBufferAndPrint [19:12:04]line [19:12:04]line [19:12:04]line [19:12:04]line [19:12:04]line [19:12:04]written 0, free lines is 3317 [19:12:04]MH_Cut [19:12:04]Write to MH i2c: D1 01 00 1A 2E 01 1A [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: D1 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: D1 01 00 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: D1 01 00 1A 2E 00 19 [19:12:04]Write to MH i2c: 01 00 00 1B 2E 49 [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:04]OFD Sender: No OFD packet to send [19:12:05]*** Cut start [19:12:05]*** Partial cut [19:12:05]*** CUTSNS_PIN = 1 [19:12:05]*** CUTSNS_PIN = 0 [19:12:05]*** Brake cut motor [19:12:05]Read from MH i2c: 01 [19:12:05]MH_I2C_Read... [19:12:05]*** Stop cut motor [19:12:05]*** Cut end [19:12:05]Read from MH i2c: 01 07 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: 01 07 00 1B 2E 00 00 00 00 00 FF 0F 5E [19:12:05]process_action close_receipt done [19:12:05]requested_data is exist [19:12:05]produce_requested_data [19:12:05]requested_item fm.sn is exist - process it [19:12:05]wFMCommunicate request_size=4 [19:12:05]MH_SAM_APDU [19:12:05]CAPDU: 80 11 00 00 [19:12:05]Write to MH i2c: E2 08 00 1C 2E 80 11 00 00 00 00 00 00 C4 [19:12:05]Write i2c OK [19:12:05]MH_I2C_Read... [19:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:05]Read from MH i2c: E2 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 17 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 17 00 1C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1B [19:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:12:05]wFMCommunicate OK [19:12:05]requested_item fd.num is exist - process it [19:12:05]SAM_PROTO_GetFieldsCounters [19:12:05]wFMCommunicate request_size=4 [19:12:05]MH_SAM_APDU [19:12:05]CAPDU: 80 13 00 00 [19:12:05]Write to MH i2c: E2 08 00 1D 2E 80 13 00 00 00 00 00 00 C7 [19:12:05]Write i2c OK [19:12:05]MH_I2C_Read... [19:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:05]Read from MH i2c: E2 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 62 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 62 00 1D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 20 02 00 0E 04 04 00 C4 01 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 1D [19:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 20 02 00 0E 04 04 00 C4 01 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 [19:12:05]wFMCommunicate OK [19:12:05]SAM_PROTO_GetFieldsCounters done [19:12:05]requested_item shift.num is exist - process it [19:12:05]requested_item shift.opened is exist - process it [19:12:05]req_shift_opened [19:12:05]FM_GetShiftState [19:12:05]SAM_PROTO_GetShiftState [19:12:05]wFMCommunicate request_size=4 [19:12:05]MH_SAM_APDU [19:12:05]CAPDU: 80 13 01 00 [19:12:05]Write to MH i2c: E2 08 00 1E 2E 80 13 01 00 00 00 00 00 C9 [19:12:05]Write i2c OK [19:12:05]MH_I2C_Read... [19:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:05]Read from MH i2c: E2 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 0E 00 [19:12:05]MH_I2C_Read... [19:12:05]Read from MH i2c: E2 0E 00 1E 2E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 80 [19:12:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:12:05]wFMCommunicate OK [19:12:05]SAM_PROTO_GetShiftState done [19:12:05]FM_GetShiftState done [19:12:05]req_shift_opened done [19:12:05]requested_item shift.open_date is exist - process it [19:12:05]req_shift_open_date [19:12:05]req_shift_open_date done [19:12:05]produce_requested_data done [19:12:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139462,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:12:05]process_action_free close_receipt [19:12:05]json_value_free [19:12:05]json_value_free done [19:12:05]process_json_proto returns [19:12:05]Send response to host [19:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139462,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:12:05]free response buf [19:12:05]execute_script done [19:12:05]execute_script returns [19:12:05]free content buf [19:12:05]Sock 10.Close socket [19:12:05]Sock 10.Thread stoped [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:40]accept exits with 9 [19:17:40]New connection [19:17:40]New thread 3066817892 created [19:17:40]Thread 3066674532 joined [19:17:40]Waiting for new connection... [19:17:40] Sock 9.Parse request [19:17:40]Sock 9.Check first char [19:17:40]Sock 9.First char is OK [19:17:40]request: POST /json_proto HTTP/1.0 [19:17:40]Method: POST [19:17:40]URL: /json_proto [19:17:40]Method is POST - this is cgi request [19:17:40]url: /json_proto [19:17:40]query_string will be loaded in cgi processing [19:17:40]execute_cgi json_proto POST (null) [19:17:40]execute_cgi path=json_proto method=POST [19:17:40]POST find Content-Length [19:17:40]Host: 172.17.45.67:8080 [19:17:40]Content-Length: 682 [19:17:40]Content-Type: application/json [19:17:40] [19:17:40]POST finish read [19:17:40]Found Content-Length = 682 [19:17:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:17:40]execute_script... [19:17: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)593305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:17:40]POST & json_proto [19:17:40]process_json_proto [19:17:40]json parsed OK: [19:17:40]protocol is kg_v1.0 [19:17:40]action value=close_receipt [19:17:40]process_action close_receipt [19:17:40]cmd_close_receipt [19:17:40]MH_GetDate [19:17:40]Write to MH i2c: F0 00 00 1F 2E 3C [19:17:40]Write i2c OK [19:17:40]MH_I2C_Read... [19:17:40]Read from MH i2c: F0 [19:17:40]MH_I2C_Read... [19:17:40]Read from MH i2c: F0 09 00 [19:17:40]MH_I2C_Read... [19:17:40]Read from MH i2c: F0 09 00 1F 2E 00 57 9A C3 66 5F 7F 2B 66 CE [19:17:40]GetLastDocTimeStamp 1724094723 [19:17:40]current date 1724095063 [19:17:40]FM_GetShiftState [19:17:40]SAM_PROTO_GetShiftState [19:17:40]wFMCommunicate request_size=4 [19:17:40]MH_SAM_APDU [19:17:40]CAPDU: 80 13 01 00 [19:17:40]Write to MH i2c: E2 08 00 20 2E 80 13 01 00 00 00 00 00 CB [19:17:41]Write i2c OK [19:17:41]MH_I2C_Read... [19:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:41]Read from MH i2c: E2 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 0E 00 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 0E 00 20 2E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 82 [19:17:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:17:41]wFMCommunicate OK [19:17:41]SAM_PROTO_GetShiftState done [19:17:41]FM_GetShiftState done [19:17:41]opened in 1724027888 [19:17:41]opened+sec_in_day 1724114288 [19:17:41]quantity*price = 100021 [19:17:41]sum+1 = 100023 [19:17:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 298 19.08.2024 19:17 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139463 ФПД: 167968344216216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191743&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139463&fm=167968344216216&tin=02508201610067®Number=0000000000092569&sum=100000 [19:17:42]StoreToDocumentArchive [19:17:42]shift 452 fd 139463 [19:17:42]save to /storage/0452/doc_00139463 [19:17:42]save last doc name /storage/0452/doc_00139463 to /storage/kkm_last_doc_name [19:17:42]save OK [19:17:42]Clear old archive folders... [19:17:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:42]tlvbuf is 0121D030 [19:17:42]SAM_PROTO_ClearQueue [19:17:42]wFMCommunicate request_size=4 [19:17:42]MH_SAM_APDU [19:17:42]CAPDU: 80 09 00 00 [19:17:42]Write to MH i2c: E2 08 00 2D 2E 80 09 00 00 00 00 00 00 CD [19:17:42]Write i2c OK [19:17:42]MH_I2C_Read... [19:17:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:42]Read from MH i2c: E2 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 03 00 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 03 00 2D 2E 00 90 00 CF [19:17:42]RAPDU: 90 00 [19:17:42]wFMCommunicate OK [19:17:42]SAM_PROTO_ClearQueue done [19:17:42]KKMCreateOFDPacket [19:17:42]OFDProtocolAddRootSTLVToBuf [19:17:42]FM_MakeSignedData [19:17:42]FM_MakeSignedData [19:17:42]SAM_PROTO_SignData [19:17:42]wFMCommunicate request_size=4 [19:17:42]MH_SAM_APDU [19:17:42]CAPDU: 80 0D 01 02 [19:17:42]Write to MH i2c: E2 08 00 2E 2E 80 0D 01 02 00 00 00 00 D5 [19:17:42]Write i2c OK [19:17:42]MH_I2C_Read... [19:17:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:42]Read from MH i2c: E2 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 03 00 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 03 00 2E 2E 00 90 00 D0 [19:17:42]RAPDU: 90 00 [19:17:42]wFMCommunicate OK [19:17:42]wFMCommunicate request_size=255 [19:17:42]MH_SAM_APDU [19:17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 57 9A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 20 02 00 35 04 06 00 98 [19:17:42]Write to MH i2c: E2 02 01 2F 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 57 9A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 20 02 00 35 04 06 00 98 00 00 16 [19:17:42]Write i2c OK [19:17:42]MH_I2C_Read... [19:17:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:42]Read from MH i2c: E2 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 03 00 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 03 00 2F 2E 00 90 00 D1 [19:17:42]RAPDU: 90 00 [19:17:42]wFMCommunicate OK [19:17:42]wFMCommunicate request_size=10 [19:17:42]MH_SAM_APDU [19:17:42]CAPDU: 80 0D 02 02 05 C4 2D 7D 92 98 [19:17:42]Write to MH i2c: E2 0D 00 30 2E 80 0D 02 02 05 00 C4 2D 7D 92 98 00 00 7A [19:17:42]Write i2c OK [19:17:42]MH_I2C_Read... [19:17:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:42]Read from MH i2c: E2 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 03 00 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 03 00 30 2E 00 90 00 D2 [19:17:42]RAPDU: 90 00 [19:17:42]wFMCommunicate OK [19:17:42]wFMCommunicate request_size=4 [19:17:42]MH_SAM_APDU [19:17:42]CAPDU: 80 0D 03 02 [19:17:42]Write to MH i2c: E2 08 00 31 2E 80 0D 03 02 00 00 00 00 DA [19:17:42]Write i2c OK [19:17:42]MH_I2C_Read... [19:17:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:42]Read from MH i2c: E2 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 0B 00 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 0B 00 31 2E 00 9E 1A 07 85 15 64 34 06 90 00 D2 [19:17:42]RAPDU: 9E 1A 07 85 15 64 34 06 90 00 [19:17:42]wFMCommunicate OK [19:17:42]SAM_PROTO_SignData done [19:17:42]FM_MakeSignedData done [19:17:42]CreateOFDProtocolMessage [19:17:42]wFMCommunicate request_size=4 [19:17:42]MH_SAM_APDU [19:17:42]CAPDU: 80 11 00 00 [19:17:42]Write to MH i2c: E2 08 00 32 2E 80 11 00 00 00 00 00 00 DA [19:17:42]Write i2c OK [19:17:42]MH_I2C_Read... [19:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:42]Read from MH i2c: E2 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 17 00 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: E2 17 00 32 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 31 [19:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:17:42]wFMCommunicate OK [19:17:42]CreateOFDProtocolMessage done [19:17:42]OFDSenderStorePacket 139463 [19:17:42]StoreOFDPacket docnum=139463 [19:17:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 99 07 01 21 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 57 9A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 20 02 00 35 04 06 00 98 C4 2D 7D 92 98 9E 1A 07 85 15 64 34 06 [19:17:42]CheckFolder [19:17:42]dirname=/storage/ofd_packets [19:17:42]CheckFolder done [19:17:42]ProducePacketName [19:17:42]name=ofd_packets/00139463 [19:17:42]NVStorageSaveData ofd_packets/00139463 [19:17:42]File name is /storage/ofd_packets/00139463 [19:17:42]Write 301 bytes [19:17:42]NVStorageSaveData done [19:17:42]OFDSenderStorePacket done [19:17:42]KKMCreateOFDPacket done [19:17:42]NVStorageSaveData kkm_last_timestamp [19:17:42]File name is /storage/kkm_last_timestamp [19:17:42]Write 4 bytes [19:17:42]NVStorageSaveData done [19:17:42]ExternCall_PrintAddStr [19:17:42]wPrintStart [19:17:42]Write to MH i2c: 01 00 00 33 2E 61 [19:17:42]Write i2c OK [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: 01 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: 01 07 00 [19:17:42]MH_I2C_Read... [19:17:42]Read from MH i2c: 01 07 00 33 2E 00 00 00 00 00 FF 0F 76 [19:17:42]RasterBufferAndPrint [19:17:42]line Счет N : (1)593305 [19:17:42]line ИНН: 02508201610067 [19:17:42]line Контрольно-Кассовый Чек [19:17:42]line ПРОДАЖА [19:17:42]line ТРК (МРК, ГНК) : 51 [19:17:42]line Товар: 2710124500 [19:17:42]line Аи-95-К-5 [19:17:42]line 13.480 * 74.20 [19:17:42]line = 1000.22 [19:17:42]line НДС 12% НСП 1% [19:17:42]line > о реализуемом товаре [19:17:42]line ОКРУГЛЕНИЕ: -0.22 [19:17:42]line ИТОГО: 1000.00 [19:17:42]line Внесено: 1000.00 [19:17:42]line СДАЧА: 0.00 [19:17:42]line НСП 1% : 8.85 [19:17:42]line НДС 12% : 106.22 [19:17:42]line Наличными: 1000.00 [19:17:42]line Безнал.: 0.00 [19:17:42]line Место: АЗС № 136 "Партнер Нефть" [19:17:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:17:42]line СНО: Общий режим [19:17:42]line Чек 298 19.08.2024 19:17 [19:17:42]line Смена: 452 ФФД: 1.0 [19:17:42]line ЗНМ: 0300000067 [19:17:42]line РНМ: 0000000000092569 [19:17:42]line Версия ККМ: 001 [19:17:42]line ФМ: 0000000000871776 [19:17:42]line ФД: 139463 [19:17:42]line ФПД: 167968344216216 [19:17:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191743&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139463&fm=167968344216216&tin=02508201610067®Number=0000000000092569&sum=100000 [19:17:42]written 0, free lines is 4095 [19:17:42]OFD Sender: Processing packet 139463 [packets to send 137, broken 136] [19:17:42]ProducePacketName [19:17:42]name=ofd_packets/00139463 [19:17:42]OFD Sender: To server: pG, [19:17:42]CommunicateWithHost lk.salyk.kg:30040 [19:17:42]ConnectInit lk.salyk.kg [19:17:43]Connected sock=10 [19:17: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 37 36 0F 01 00 00 C1 99 07 01 21 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 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 57 9A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 20 02 00 35 04 06 00 98 C4 2D 7D 92 98 9E 1A 07 85 15 64 34 06 [19:17:43]Write to MH i2c: 01 00 00 5E 2E 8C [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: 01 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: 01 07 00 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: 01 07 00 5E 2E 00 00 00 00 00 E3 0C 82 [19:17:43]RasterBufferAndPrint [19:17:43]line [19:17:43]line [19:17:43]line [19:17:43]line [19:17:43]line [19:17:43]written 0, free lines is 3305 [19:17:43]MH_Cut [19:17:43]Write to MH i2c: D1 01 00 65 2E 01 65 [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: D1 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: D1 01 00 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: D1 01 00 65 2E 00 64 [19:17:43]Write to MH i2c: 01 00 00 66 2E 94 [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17: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 37 36 4F 00 00 00 7B E3 47 00 3D 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 37 36 10 04 04 00 C7 20 02 00 F4 03 04 00 EC 40 C3 66 B6 04 01 00 00 39 16 CB 5B 4B 3C 47 B4 [19:17:43]CommunicateWithHost err = 0 [19:17:43]CheckOFDResponse [19:17:43]1017 (14) - 77093643461234 [19:17:43]1041 (16) - 0000000000871776 [19:17:43]1040 (4) - 139463 [19:17:43]1012 (4) - 19.08.2024 12:56 [19:17:43]1206 (1) - 0 [19:17:43]OFD Sender: Remove packet 139463 [19:17:43]ProducePacketName [19:17:43]name=ofd_packets/00139463 [19:17:43]NVStorageDeleteData [19:17:43]OFD Sender: No OFD packet to send [19:17:43]*** Cut start [19:17:43]*** Partial cut [19:17:43]*** CUTSNS_PIN = 1 [19:17:43]*** CUTSNS_PIN = 0 [19:17:44]*** Brake cut motor [19:17:44]Read from MH i2c: 01 [19:17:44]MH_I2C_Read... [19:17:44]*** Stop cut motor [19:17:44]*** Cut end [19:17:44]Read from MH i2c: 01 07 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: 01 07 00 66 2E 00 00 00 00 00 FF 0F A9 [19:17:44]process_action close_receipt done [19:17:44]requested_data is exist [19:17:44]produce_requested_data [19:17:44]requested_item fm.sn is exist - process it [19:17:44]wFMCommunicate request_size=4 [19:17:44]MH_SAM_APDU [19:17:44]CAPDU: 80 11 00 00 [19:17:44]Write to MH i2c: E2 08 00 67 2E 80 11 00 00 00 00 00 00 0F [19:17:44]Write i2c OK [19:17:44]MH_I2C_Read... [19:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:44]Read from MH i2c: E2 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 17 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 17 00 67 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 66 [19:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:17:44]wFMCommunicate OK [19:17:44]requested_item fd.num is exist - process it [19:17:44]SAM_PROTO_GetFieldsCounters [19:17:44]wFMCommunicate request_size=4 [19:17:44]MH_SAM_APDU [19:17:44]CAPDU: 80 13 00 00 [19:17:44]Write to MH i2c: E2 08 00 68 2E 80 13 00 00 00 00 00 00 12 [19:17:44]Write i2c OK [19:17:44]MH_I2C_Read... [19:17:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:44]Read from MH i2c: E2 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 62 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 62 00 68 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 20 02 00 0E 04 04 00 C4 01 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 6C [19:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 20 02 00 0E 04 04 00 C4 01 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 [19:17:44]wFMCommunicate OK [19:17:44]SAM_PROTO_GetFieldsCounters done [19:17:44]requested_item shift.num is exist - process it [19:17:44]requested_item shift.opened is exist - process it [19:17:44]req_shift_opened [19:17:44]FM_GetShiftState [19:17:44]SAM_PROTO_GetShiftState [19:17:44]wFMCommunicate request_size=4 [19:17:44]MH_SAM_APDU [19:17:44]CAPDU: 80 13 01 00 [19:17:44]Write to MH i2c: E2 08 00 69 2E 80 13 01 00 00 00 00 00 14 [19:17:44]Write i2c OK [19:17:44]MH_I2C_Read... [19:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:44]Read from MH i2c: E2 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 0E 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 0E 00 69 2E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CB [19:17:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:17:44]wFMCommunicate OK [19:17:44]SAM_PROTO_GetShiftState done [19:17:44]FM_GetShiftState done [19:17:44]req_shift_opened done [19:17:44]requested_item shift.open_date is exist - process it [19:17:44]req_shift_open_date [19:17:44]req_shift_open_date done [19:17:44]produce_requested_data done [19:17:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139463,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:17:44]process_action_free close_receipt [19:17:44]json_value_free [19:17:44]json_value_free done [19:17:44]process_json_proto returns [19:17:44]Send response to host [19:17:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139463,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:17:44]free response buf [19:17:44]execute_script done [19:17:44]execute_script returns [19:17:44]free content buf [19:17:44]Sock 9.Close socket [19:17:44]Sock 9.Thread stoped [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:29]accept exits with 8 [19:18:29]New connection [19:18:29]New thread 3066674532 created [19:18:29]Thread 3066817892 joined [19:18:29]Waiting for new connection... [19:18:29] Sock 8.Parse request [19:18:29]Sock 8.Check first char [19:18:29]Sock 8.First char is OK [19:18:29]request: POST /json_proto HTTP/1.0 [19:18:29]Method: POST [19:18:29]URL: /json_proto [19:18:29]Method is POST - this is cgi request [19:18:29]url: /json_proto [19:18:29]query_string will be loaded in cgi processing [19:18:29]execute_cgi json_proto POST (null) [19:18:29]execute_cgi path=json_proto method=POST [19:18:29]POST find Content-Length [19:18:29]Host: 172.17.45.67:8080 [19:18:29]Content-Length: 658 [19:18:29]Content-Type: application/json [19:18:29] [19:18:29]POST finish read [19:18:29]Found Content-Length = 658 [19:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "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:18:29]execute_script... [19:18: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)593306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "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:18:29]POST & json_proto [19:18:29]process_json_proto [19:18:29]json parsed OK: [19:18:29]protocol is kg_v1.0 [19:18:29]action value=close_receipt [19:18:29]process_action close_receipt [19:18:29]cmd_close_receipt [19:18:29]MH_GetDate [19:18:29]Write to MH i2c: F0 00 00 6A 2E 87 [19:18:29]Write i2c OK [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: F0 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: F0 09 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: F0 09 00 6A 2E 00 87 9A C3 66 5F 7F 2B 66 49 [19:18:29]GetLastDocTimeStamp 1724095063 [19:18:29]current date 1724095111 [19:18:29]FM_GetShiftState [19:18:29]SAM_PROTO_GetShiftState [19:18:29]wFMCommunicate request_size=4 [19:18:29]MH_SAM_APDU [19:18:29]CAPDU: 80 13 01 00 [19:18:29]Write to MH i2c: E2 08 00 6B 2E 80 13 01 00 00 00 00 00 16 [19:18:29]Write i2c OK [19:18:29]MH_I2C_Read... [19:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:29]Read from MH i2c: E2 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 0E 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 0E 00 6B 2E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CD [19:18:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:18:29]wFMCommunicate OK [19:18:29]SAM_PROTO_GetShiftState done [19:18:29]FM_GetShiftState done [19:18:29]opened in 1724027888 [19:18:29]opened+sec_in_day 1724114288 [19:18:29]quantity*price = 20020 [19:18:29]sum+1 = 20022 [19:18:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 299 19.08.2024 19:18 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139464 ФПД: 98819532276856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191831&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139464&fm=98819532276856&tin=02508201610067®Number=0000000000092569&sum=20000 [19:18:30]StoreToDocumentArchive [19:18:30]shift 452 fd 139464 [19:18:30]save to /storage/0452/doc_00139464 [19:18:30]save last doc name /storage/0452/doc_00139464 to /storage/kkm_last_doc_name [19:18:30]save OK [19:18:30]Clear old archive folders... [19:18:30]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:18:30]tlvbuf is B6EB9800 [19:18:30]SAM_PROTO_ClearQueue [19:18:30]wFMCommunicate request_size=4 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 09 00 00 [19:18:30]Write to MH i2c: E2 08 00 78 2E 80 09 00 00 00 00 00 00 18 [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:30]Read from MH i2c: E2 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 03 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 03 00 78 2E 00 90 00 1A [19:18:30]RAPDU: 90 00 [19:18:30]wFMCommunicate OK [19:18:30]SAM_PROTO_ClearQueue done [19:18:30]KKMCreateOFDPacket [19:18:30]OFDProtocolAddRootSTLVToBuf [19:18:30]FM_MakeSignedData [19:18:30]FM_MakeSignedData [19:18:30]SAM_PROTO_SignData [19:18:30]wFMCommunicate request_size=4 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 0D 01 02 [19:18:30]Write to MH i2c: E2 08 00 79 2E 80 0D 01 02 00 00 00 00 20 [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:30]Read from MH i2c: E2 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 03 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 03 00 79 2E 00 90 00 1B [19:18:30]RAPDU: 90 00 [19:18:30]wFMCommunicate OK [19:18:30]wFMCommunicate request_size=253 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 2B 01 00 00 F4 03 04 00 87 9A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 20 02 00 35 04 06 00 59 E0 37 1E 44 78 [19:18:30]Write to MH i2c: E2 00 01 7A 2E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 2B 01 00 00 F4 03 04 00 87 9A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 20 02 00 35 04 06 00 59 E0 37 1E 44 78 00 00 1A [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:30]Read from MH i2c: E2 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 03 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 03 00 7A 2E 00 90 00 1C [19:18:30]RAPDU: 90 00 [19:18:30]wFMCommunicate OK [19:18:30]wFMCommunicate request_size=4 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 0D 03 02 [19:18:30]Write to MH i2c: E2 08 00 7B 2E 80 0D 03 02 00 00 00 00 24 [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:30]Read from MH i2c: E2 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 0B 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 0B 00 7B 2E 00 3F 27 FA F5 D3 F3 B7 89 90 00 80 [19:18:30]RAPDU: 3F 27 FA F5 D3 F3 B7 89 90 00 [19:18:30]wFMCommunicate OK [19:18:30]SAM_PROTO_SignData done [19:18:30]FM_MakeSignedData done [19:18:30]CreateOFDProtocolMessage [19:18:30]wFMCommunicate request_size=4 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 11 00 00 [19:18:30]Write to MH i2c: E2 08 00 7C 2E 80 11 00 00 00 00 00 00 24 [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:30]Read from MH i2c: E2 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 17 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 17 00 7C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7B [19:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:18:30]wFMCommunicate OK [19:18:30]CreateOFDProtocolMessage done [19:18:30]OFDSenderStorePacket 139464 [19:18:30]StoreOFDPacket docnum=139464 [19:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 3F B4 00 01 45 07 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 2B 01 00 00 F4 03 04 00 87 9A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 20 02 00 35 04 06 00 59 E0 37 1E 44 78 3F 27 FA F5 D3 F3 B7 89 [19:18:30]CheckFolder [19:18:30]dirname=/storage/ofd_packets [19:18:30]CheckFolder done [19:18:30]ProducePacketName [19:18:30]name=ofd_packets/00139464 [19:18:30]NVStorageSaveData ofd_packets/00139464 [19:18:30]File name is /storage/ofd_packets/00139464 [19:18:30]Write 294 bytes [19:18:30]NVStorageSaveData done [19:18:30]OFDSenderStorePacket done [19:18:30]KKMCreateOFDPacket done [19:18:30]NVStorageSaveData kkm_last_timestamp [19:18:30]File name is /storage/kkm_last_timestamp [19:18:30]Write 4 bytes [19:18:30]NVStorageSaveData done [19:18:30]ExternCall_PrintAddStr [19:18:30]wPrintStart [19:18:30]Write to MH i2c: 01 00 00 7D 2E AB [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: 01 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: 01 07 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: 01 07 00 7D 2E 00 00 00 00 00 FF 0F C0 [19:18:30]RasterBufferAndPrint [19:18:30]line Счет N : (1)593306 [19:18:30]line ИНН: 02508201610067 [19:18:30]line Контрольно-Кассовый Чек [19:18:30]line ПРОДАЖА [19:18:30]line ТРК (МРК, ГНК) : 43 [19:18:30]line Товар: 2710124130 [19:18:30]line SU-92 [19:18:30]line 2.910 * 68.80 [19:18:30]line = 200.21 [19:18:30]line НДС 12% НСП 1% [19:18:30]line > о реализуемом товаре [19:18:30]line ОКРУГЛЕНИЕ: -0.21 [19:18:30]line ИТОГО: 200.00 [19:18:30]line Внесено: 200.00 [19:18:30]line СДАЧА: 0.00 [19:18:30]line НСП 1% : 1.77 [19:18:30]line НДС 12% : 21.26 [19:18:30]line Наличными: 200.00 [19:18:30]line Безнал.: 0.00 [19:18:30]line Место: АЗС № 136 "Партнер Нефть" [19:18:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:18:30]line СНО: Общий режим [19:18:30]line Чек 299 19.08.2024 19:18 [19:18:30]line Смена: 452 ФФД: 1.0 [19:18:30]line ЗНМ: 0300000067 [19:18:30]line РНМ: 0000000000092569 [19:18:30]line Версия ККМ: 001 [19:18:30]line ФМ: 0000000000871776 [19:18:30]line ФД: 139464 [19:18:30]line ФПД: 98819532276856 [19:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191831&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139464&fm=98819532276856&tin=02508201610067®Number=0000000000092569&sum=20000 [19:18:31]OFD Sender: Processing packet 139464 [packets to send 137, broken 136] [19:18:31]ProducePacketName [19:18:31]name=ofd_packets/00139464 [19:18:31]OFD Sender: To server: pG, [19:18:31]CommunicateWithHost lk.salyk.kg:30040 [19:18:31]ConnectInit lk.salyk.kg [19:18:31]written 0, free lines is 4095 [19:18:31]Connected sock=10 [19:18: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 37 36 08 01 00 00 3F B4 00 01 45 07 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 2B 01 00 00 F4 03 04 00 87 9A C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 20 02 00 35 04 06 00 59 E0 37 1E 44 78 3F 27 FA F5 D3 F3 B7 89 [19:18: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 37 36 4F 00 00 00 C0 10 47 00 9E 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 20 02 00 F4 03 04 00 1C 41 C3 66 B6 04 01 00 00 62 1B BD 01 E6 E6 DF 3C [19:18:31]CommunicateWithHost err = 0 [19:18:31]CheckOFDResponse [19:18:31]1017 (14) - 77093643461234 [19:18:31]1041 (16) - 0000000000871776 [19:18:31]1040 (4) - 139464 [19:18:31]1012 (4) - 19.08.2024 12:57 [19:18:31]1206 (1) - 0 [19:18:31]OFD Sender: Remove packet 139464 [19:18:31]ProducePacketName [19:18:31]name=ofd_packets/00139464 [19:18:31]NVStorageDeleteData [19:18:31]Write to MH i2c: 01 00 00 A8 2E D6 [19:18:31]Write i2c OK [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: 01 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: 01 07 00 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: 01 07 00 A8 2E 00 00 00 00 00 D9 0C C2 [19:18:31]RasterBufferAndPrint [19:18:31]line [19:18:31]line [19:18:31]line [19:18:31]line [19:18:31]line [19:18:31]written 0, free lines is 3296 [19:18:31]MH_Cut [19:18:31]Write to MH i2c: D1 01 00 AF 2E 01 AF [19:18:31]Write i2c OK [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: D1 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: D1 01 00 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: D1 01 00 AF 2E 00 AE [19:18:31]Write to MH i2c: 01 00 00 B0 2E DE [19:18:31]Write i2c OK [19:18:31]MH_I2C_Read... [19:18:32]OFD Sender: No OFD packet to send [19:18:32]*** Cut start [19:18:32]*** Partial cut [19:18:32]*** CUTSNS_PIN = 1 [19:18:32]*** CUTSNS_PIN = 0 [19:18:32]*** Brake cut motor [19:18:33]Read from MH i2c: 01 [19:18:33]MH_I2C_Read... [19:18:33]*** Stop cut motor [19:18:33]*** Cut end [19:18:33]Read from MH i2c: 01 07 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: 01 07 00 B0 2E 00 00 00 00 00 FF 0F F3 [19:18:33]process_action close_receipt done [19:18:33]requested_data is exist [19:18:33]produce_requested_data [19:18:33]requested_item fm.sn is exist - process it [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 11 00 00 [19:18:33]Write to MH i2c: E2 08 00 B1 2E 80 11 00 00 00 00 00 00 59 [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:33]Read from MH i2c: E2 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 17 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 17 00 B1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B0 [19:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:18:33]wFMCommunicate OK [19:18:33]requested_item fd.num is exist - process it [19:18:33]SAM_PROTO_GetFieldsCounters [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 13 00 00 [19:18:33]Write to MH i2c: E2 08 00 B2 2E 80 13 00 00 00 00 00 00 5C [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:33]Read from MH i2c: E2 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 62 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 62 00 B2 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 20 02 00 0E 04 04 00 C4 01 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 BA [19:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 20 02 00 0E 04 04 00 C4 01 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 [19:18:33]wFMCommunicate OK [19:18:33]SAM_PROTO_GetFieldsCounters done [19:18:33]requested_item shift.num is exist - process it [19:18:33]requested_item shift.opened is exist - process it [19:18:33]req_shift_opened [19:18:33]FM_GetShiftState [19:18:33]SAM_PROTO_GetShiftState [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 13 01 00 [19:18:33]Write to MH i2c: E2 08 00 B3 2E 80 13 01 00 00 00 00 00 5E [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:33]Read from MH i2c: E2 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 0E 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 0E 00 B3 2E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 15 [19:18:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:18:33]wFMCommunicate OK [19:18:33]SAM_PROTO_GetShiftState done [19:18:33]FM_GetShiftState done [19:18:33]req_shift_opened done [19:18:33]requested_item shift.open_date is exist - process it [19:18:33]req_shift_open_date [19:18:33]req_shift_open_date done [19:18:33]produce_requested_data done [19:18:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139464,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:18:33]process_action_free close_receipt [19:18:33]json_value_free [19:18:33]json_value_free done [19:18:33]process_json_proto returns [19:18:33]Send response to host [19:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139464,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:18:33]free response buf [19:18:33]execute_script done [19:18:33]execute_script returns [19:18:33]free content buf [19:18:33]Sock 8.Close socket [19:18:33]Sock 8.Thread stoped [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:08]accept exits with 9 [19:25:08]New connection [19:25:08]New thread 3066817892 created [19:25:08]Thread 3066674532 joined [19:25:08]Waiting for new connection... [19:25:08] Sock 9.Parse request [19:25:08]Sock 9.Check first char [19:25:08]Sock 9.First char is OK [19:25:08]request: POST /json_proto HTTP/1.0 [19:25:08]Method: POST [19:25:08]URL: /json_proto [19:25:08]Method is POST - this is cgi request [19:25:08]url: /json_proto [19:25:08]query_string will be loaded in cgi processing [19:25:08]execute_cgi json_proto POST (null) [19:25:08]execute_cgi path=json_proto method=POST [19:25:08]POST find Content-Length [19:25:08]Host: 172.17.45.67:8080 [19:25:08]Content-Length: 677 [19:25:08]Content-Type: application/json [19:25:08] [19:25:08]POST finish read [19:25:08]Found Content-Length = 677 [19:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.280, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:08]execute_script... [19:25: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)593307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.280, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:08]POST & json_proto [19:25:08]process_json_proto [19:25:08]json parsed OK: [19:25:08]protocol is kg_v1.0 [19:25:08]action value=close_receipt [19:25:08]process_action close_receipt [19:25:08]cmd_close_receipt [19:25:08]MH_GetDate [19:25:08]Write to MH i2c: F0 00 00 B4 2E D1 [19:25:08]Write i2c OK [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: F0 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: F0 09 00 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: F0 09 00 B4 2E 00 16 9C C3 66 5F 7F 2B 66 24 [19:25:08]GetLastDocTimeStamp 1724095111 [19:25:08]current date 1724095510 [19:25:08]FM_GetShiftState [19:25:08]SAM_PROTO_GetShiftState [19:25:08]wFMCommunicate request_size=4 [19:25:08]MH_SAM_APDU [19:25:08]CAPDU: 80 13 01 00 [19:25:08]Write to MH i2c: E2 08 00 B5 2E 80 13 01 00 00 00 00 00 60 [19:25:08]Write i2c OK [19:25:08]MH_I2C_Read... [19:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:08]Read from MH i2c: E2 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: E2 0E 00 [19:25:08]MH_I2C_Read... [19:25:08]Read from MH i2c: E2 0E 00 B5 2E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 17 [19:25:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:25:08]wFMCommunicate OK [19:25:08]SAM_PROTO_GetShiftState done [19:25:08]FM_GetShiftState done [19:25:08]opened in 1724027888 [19:25:08]opened+sec_in_day 1724114288 [19:25:08]quantity*price = 29018 [19:25:08]sum+1 = 29019 [19:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.82 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 300 19.08.2024 19:25 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139465 ФПД: 26472398988335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139465&fm=26472398988335&tin=02508201610067®Number=0000000000092569&sum=29000 [19:25:09]StoreToDocumentArchive [19:25:09]shift 452 fd 139465 [19:25:09]save to /storage/0452/doc_00139465 [19:25:09]save last doc name /storage/0452/doc_00139465 to /storage/kkm_last_doc_name [19:25:09]save OK [19:25:09]Clear old archive folders... [19:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:09]tlvbuf is 01252640 [19:25:09]SAM_PROTO_ClearQueue [19:25:09]wFMCommunicate request_size=4 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 09 00 00 [19:25:09]Write to MH i2c: E2 08 00 C2 2E 80 09 00 00 00 00 00 00 62 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 C2 2E 00 90 00 64 [19:25:09]RAPDU: 90 00 [19:25:09]wFMCommunicate OK [19:25:09]SAM_PROTO_ClearQueue done [19:25:09]KKMCreateOFDPacket [19:25:09]OFDProtocolAddRootSTLVToBuf [19:25:09]FM_MakeSignedData [19:25:09]FM_MakeSignedData [19:25:09]SAM_PROTO_SignData [19:25:09]wFMCommunicate request_size=4 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 0D 01 02 [19:25:09]Write to MH i2c: E2 08 00 C3 2E 80 0D 01 02 00 00 00 00 6A [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 C3 2E 00 90 00 65 [19:25:09]RAPDU: 90 00 [19:25:09]wFMCommunicate OK [19:25:09]wFMCommunicate request_size=255 [19:25:09]MH_SAM_APDU [19:25: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 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 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 16 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 20 02 00 35 04 06 00 18 [19:25:09]Write to MH i2c: E2 02 01 C4 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 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 16 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 20 02 00 35 04 06 00 18 00 00 01 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 C4 2E 00 90 00 66 [19:25:09]RAPDU: 90 00 [19:25:09]wFMCommunicate OK [19:25:09]wFMCommunicate request_size=10 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 0D 02 02 05 13 95 F0 24 2F [19:25:09]Write to MH i2c: E2 0D 00 C5 2E 80 0D 02 02 05 00 13 95 F0 24 2F 00 00 62 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 03 00 C5 2E 00 90 00 67 [19:25:09]RAPDU: 90 00 [19:25:09]wFMCommunicate OK [19:25:09]wFMCommunicate request_size=4 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 0D 03 02 [19:25:09]Write to MH i2c: E2 08 00 C6 2E 80 0D 03 02 00 00 00 00 6F [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 0B 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 0B 00 C6 2E 00 3C 0B 16 7C 99 08 95 F2 90 00 71 [19:25:09]RAPDU: 3C 0B 16 7C 99 08 95 F2 90 00 [19:25:09]wFMCommunicate OK [19:25:09]SAM_PROTO_SignData done [19:25:09]FM_MakeSignedData done [19:25:09]CreateOFDProtocolMessage [19:25:09]wFMCommunicate request_size=4 [19:25:09]MH_SAM_APDU [19:25:09]CAPDU: 80 11 00 00 [19:25:09]Write to MH i2c: E2 08 00 C7 2E 80 11 00 00 00 00 00 00 6F [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:09]Read from MH i2c: E2 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 17 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: E2 17 00 C7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C6 [19:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:25:09]wFMCommunicate OK [19:25:09]CreateOFDProtocolMessage done [19:25:09]OFDSenderStorePacket 139465 [19:25:09]StoreOFDPacket docnum=139465 [19:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D9 12 07 01 6D 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 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 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 16 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 20 02 00 35 04 06 00 18 13 95 F0 24 2F 3C 0B 16 7C 99 08 95 F2 [19:25:09]CheckFolder [19:25:09]dirname=/storage/ofd_packets [19:25:09]CheckFolder done [19:25:09]ProducePacketName [19:25:09]name=ofd_packets/00139465 [19:25:09]NVStorageSaveData ofd_packets/00139465 [19:25:09]File name is /storage/ofd_packets/00139465 [19:25:09]Write 301 bytes [19:25:09]NVStorageSaveData done [19:25:09]OFDSenderStorePacket done [19:25:09]KKMCreateOFDPacket done [19:25:09]NVStorageSaveData kkm_last_timestamp [19:25:09]File name is /storage/kkm_last_timestamp [19:25:09]Write 4 bytes [19:25:09]NVStorageSaveData done [19:25:09]ExternCall_PrintAddStr [19:25:09]wPrintStart [19:25:09]Write to MH i2c: 01 00 00 C8 2E F6 [19:25:09]Write i2c OK [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: 01 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: 01 07 00 [19:25:09]MH_I2C_Read... [19:25:09]Read from MH i2c: 01 07 00 C8 2E 00 00 00 00 00 FF 0F 0B [19:25:09]RasterBufferAndPrint [19:25:09]line Счет N : (1)593307 [19:25:09]line ИНН: 02508201610067 [19:25:09]line Контрольно-Кассовый Чек [19:25:09]line ПРОДАЖА [19:25:09]line ТРК (МРК, ГНК) : 32 [19:25:09]line Товар: 2710124130 [19:25:09]line Аи-92-К-5 [19:25:09]line 4.280 * 67.80 [19:25:09]line = 290.18 [19:25:09]line НДС 12% НСП 1% [19:25:09]line > о реализуемом товаре [19:25:09]line ОКРУГЛЕНИЕ: -0.18 [19:25:09]line ИТОГО: 290.00 [19:25:09]line Внесено: 290.00 [19:25:09]line СДАЧА: 0.00 [19:25:09]line НСП 1% : 2.57 [19:25:09]line НДС 12% : 30.82 [19:25:09]line Наличными: 290.00 [19:25:09]line Безнал.: 0.00 [19:25:09]line Место: АЗС № 136 "Партнер Нефть" [19:25:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:25:09]line СНО: Общий режим [19:25:09]line Чек 300 19.08.2024 19:25 [19:25:09]line Смена: 452 ФФД: 1.0 [19:25:09]line ЗНМ: 0300000067 [19:25:09]line РНМ: 0000000000092569 [19:25:09]line Версия ККМ: 001 [19:25:09]line ФМ: 0000000000871776 [19:25:09]line ФД: 139465 [19:25:09]line ФПД: 26472398988335 [19:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139465&fm=26472398988335&tin=02508201610067®Number=0000000000092569&sum=29000 [19:25:10]written 0, free lines is 4095 [19:25:10]OFD Sender: Processing packet 139465 [packets to send 137, broken 136] [19:25:10]ProducePacketName [19:25:10]name=ofd_packets/00139465 [19:25:10]OFD Sender: To server: pG, [19:25:10]CommunicateWithHost lk.salyk.kg:30040 [19:25:10]ConnectInit lk.salyk.kg [19:25:10]Connected sock=10 [19:25: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 37 36 0F 01 00 00 D9 12 07 01 6D 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 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 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 16 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 20 02 00 35 04 06 00 18 13 95 F0 24 2F 3C 0B 16 7C 99 08 95 F2 [19:25: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 37 36 4F 00 00 00 D5 5C 47 00 6B 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 20 02 00 F4 03 04 00 AB 42 C3 66 B6 04 01 00 00 B7 84 88 A5 DB 3D BE B3 [19:25:10]CommunicateWithHost err = 0 [19:25:10]CheckOFDResponse [19:25:10]1017 (14) - 77093643461234 [19:25:10]1041 (16) - 0000000000871776 [19:25:10]1040 (4) - 139465 [19:25:10]1012 (4) - 19.08.2024 13:03 [19:25:10]1206 (1) - 0 [19:25:10]OFD Sender: Remove packet 139465 [19:25:10]ProducePacketName [19:25:10]name=ofd_packets/00139465 [19:25:10]NVStorageDeleteData [19:25:10]Write to MH i2c: 01 00 00 F3 2E 21 [19:25:10]Write i2c OK [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: 01 [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: 01 07 00 [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: 01 07 00 F3 2E 00 00 00 00 00 E4 0C 18 [19:25:10]RasterBufferAndPrint [19:25:10]line [19:25:10]line [19:25:10]line [19:25:10]line [19:25:10]line [19:25:10]written 0, free lines is 3306 [19:25:10]MH_Cut [19:25:10]Write to MH i2c: D1 01 00 FA 2E 01 FA [19:25:10]Write i2c OK [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: D1 [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: D1 01 00 [19:25:10]MH_I2C_Read... [19:25:10]Read from MH i2c: D1 01 00 FA 2E 00 F9 [19:25:10]Write to MH i2c: 01 00 00 FB 2E 29 [19:25:10]Write i2c OK [19:25:10]MH_I2C_Read... [19:25:11]OFD Sender: No OFD packet to send [19:25:11]*** Cut start [19:25:11]*** Partial cut [19:25:11]*** CUTSNS_PIN = 1 [19:25:11]*** CUTSNS_PIN = 0 [19:25:11]*** Brake cut motor [19:25:11]Read from MH i2c: 01 [19:25:11]MH_I2C_Read... [19:25:11]*** Stop cut motor [19:25:11]*** Cut end [19:25:11]Read from MH i2c: 01 07 00 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: 01 07 00 FB 2E 00 00 00 00 00 FF 0F 3E [19:25:11]process_action close_receipt done [19:25:11]requested_data is exist [19:25:11]produce_requested_data [19:25:11]requested_item fm.sn is exist - process it [19:25:11]wFMCommunicate request_size=4 [19:25:11]MH_SAM_APDU [19:25:11]CAPDU: 80 11 00 00 [19:25:11]Write to MH i2c: E2 08 00 FC 2E 80 11 00 00 00 00 00 00 A4 [19:25:11]Write i2c OK [19:25:11]MH_I2C_Read... [19:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:11]Read from MH i2c: E2 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: E2 17 00 [19:25:11]MH_I2C_Read... [19:25:11]Read from MH i2c: E2 17 00 FC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FB [19:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:25:11]wFMCommunicate OK [19:25:11]requested_item fd.num is exist - process it [19:25:11]SAM_PROTO_GetFieldsCounters [19:25:11]wFMCommunicate request_size=4 [19:25:11]MH_SAM_APDU [19:25:11]CAPDU: 80 13 00 00 [19:25:11]Write to MH i2c: E2 08 00 FD 2E 80 13 00 00 00 00 00 00 A7 [19:25:11]Write i2c OK [19:25:11]MH_I2C_Read... [19:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:12]Read from MH i2c: E2 [19:25:12]MH_I2C_Read... [19:25:12]Read from MH i2c: E2 62 00 [19:25:12]MH_I2C_Read... [19:25:12]Read from MH i2c: E2 62 00 FD 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 20 02 00 0E 04 04 00 C4 01 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 09 [19:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 20 02 00 0E 04 04 00 C4 01 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 [19:25:12]wFMCommunicate OK [19:25:12]SAM_PROTO_GetFieldsCounters done [19:25:12]requested_item shift.num is exist - process it [19:25:12]requested_item shift.opened is exist - process it [19:25:12]req_shift_opened [19:25:12]FM_GetShiftState [19:25:12]SAM_PROTO_GetShiftState [19:25:12]wFMCommunicate request_size=4 [19:25:12]MH_SAM_APDU [19:25:12]CAPDU: 80 13 01 00 [19:25:12]Write to MH i2c: E2 08 00 FE 2E 80 13 01 00 00 00 00 00 A9 [19:25:12]Write i2c OK [19:25:12]MH_I2C_Read... [19:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:12]Read from MH i2c: E2 [19:25:12]MH_I2C_Read... [19:25:12]Read from MH i2c: E2 0E 00 [19:25:12]MH_I2C_Read... [19:25:12]Read from MH i2c: E2 0E 00 FE 2E 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 60 [19:25:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:25:12]wFMCommunicate OK [19:25:12]SAM_PROTO_GetShiftState done [19:25:12]FM_GetShiftState done [19:25:12]req_shift_opened done [19:25:12]requested_item shift.open_date is exist - process it [19:25:12]req_shift_open_date [19:25:12]req_shift_open_date done [19:25:12]produce_requested_data done [19:25:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139465,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:25:12]process_action_free close_receipt [19:25:12]json_value_free [19:25:12]json_value_free done [19:25:12]process_json_proto returns [19:25:12]Send response to host [19:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139465,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:25:12]free response buf [19:25:12]execute_script done [19:25:12]execute_script returns [19:25:12]free content buf [19:25:12]Sock 9.Close socket [19:25:12]Sock 9.Thread stoped [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:45]accept exits with 8 [19:25:45]New connection [19:25:45]New thread 3066674532 created [19:25:45]Thread 3066817892 joined [19:25:45]Waiting for new connection... [19:25:45] Sock 8.Parse request [19:25:45]Sock 8.Check first char [19:25:45]Sock 8.First char is OK [19:25:45]request: POST /json_proto HTTP/1.0 [19:25:45]Method: POST [19:25:45]URL: /json_proto [19:25:45]Method is POST - this is cgi request [19:25:45]url: /json_proto [19:25:45]query_string will be loaded in cgi processing [19:25:45]execute_cgi json_proto POST (null) [19:25:45]execute_cgi path=json_proto method=POST [19:25:45]POST find Content-Length [19:25:45]Host: 172.17.45.67:8080 [19:25:45]Content-Length: 677 [19:25:45]Content-Type: application/json [19:25:45] [19:25:45]POST finish read [19:25:45]Found Content-Length = 677 [19:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [19:25:45]execute_script... [19:25: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)593308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [19:25:45]POST & json_proto [19:25:45]process_json_proto [19:25:45]json parsed OK: [19:25:45]protocol is kg_v1.0 [19:25:45]action value=close_receipt [19:25:45]process_action close_receipt [19:25:45]cmd_close_receipt [19:25:45]MH_GetDate [19:25:45]Write to MH i2c: F0 00 00 FF 2E 1C [19:25:45]Write i2c OK [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: F0 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: F0 09 00 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: F0 09 00 FF 2E 00 3B 9C C3 66 5F 7F 2B 66 94 [19:25:45]GetLastDocTimeStamp 1724095510 [19:25:45]current date 1724095547 [19:25:45]FM_GetShiftState [19:25:45]SAM_PROTO_GetShiftState [19:25:45]wFMCommunicate request_size=4 [19:25:45]MH_SAM_APDU [19:25:45]CAPDU: 80 13 01 00 [19:25:45]Write to MH i2c: E2 08 00 00 2F 80 13 01 00 00 00 00 00 AC [19:25:45]Write i2c OK [19:25:45]MH_I2C_Read... [19:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:45]Read from MH i2c: E2 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: E2 0E 00 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: E2 0E 00 00 2F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 63 [19:25:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:25:45]wFMCommunicate OK [19:25:45]SAM_PROTO_GetShiftState done [19:25:45]FM_GetShiftState done [19:25:45]opened in 1724027888 [19:25:45]opened+sec_in_day 1724114288 [19:25:45]quantity*price = 25018 [19:25:45]sum+1 = 25019 [19:25:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 301 19.08.2024 19:25 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139466 ФПД: 60292513304100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192547&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139466&fm=60292513304100&tin=02508201610067®Number=0000000000092569&sum=25000 [19:25:46]StoreToDocumentArchive [19:25:46]shift 452 fd 139466 [19:25:46]save to /storage/0452/doc_00139466 [19:25:46]save last doc name /storage/0452/doc_00139466 to /storage/kkm_last_doc_name [19:25:46]save OK [19:25:46]Clear old archive folders... [19:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:46]tlvbuf is 0121CE70 [19:25:46]SAM_PROTO_ClearQueue [19:25:46]wFMCommunicate request_size=4 [19:25:46]MH_SAM_APDU [19:25:46]CAPDU: 80 09 00 00 [19:25:46]Write to MH i2c: E2 08 00 0D 2F 80 09 00 00 00 00 00 00 AE [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:46]Read from MH i2c: E2 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 0D 2F 00 90 00 B0 [19:25:46]RAPDU: 90 00 [19:25:46]wFMCommunicate OK [19:25:46]SAM_PROTO_ClearQueue done [19:25:46]KKMCreateOFDPacket [19:25:46]OFDProtocolAddRootSTLVToBuf [19:25:46]FM_MakeSignedData [19:25:46]FM_MakeSignedData [19:25:46]SAM_PROTO_SignData [19:25:46]wFMCommunicate request_size=4 [19:25:46]MH_SAM_APDU [19:25:46]CAPDU: 80 0D 01 02 [19:25:46]Write to MH i2c: E2 08 00 0E 2F 80 0D 01 02 00 00 00 00 B6 [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:46]Read from MH i2c: E2 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 [19:25:46]MH_I2C_Read... [19:25:46]Read from MH i2c: E2 03 00 0E 2F 00 90 00 B1 [19:25:46]RAPDU: 90 00 [19:25:46]wFMCommunicate OK [19:25:46]wFMCommunicate request_size=255 [19:25:46]MH_SAM_APDU [19:25: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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 2D 01 00 00 F4 03 04 00 3B 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 20 02 00 35 04 06 00 36 [19:25:46]Write to MH i2c: E2 02 01 0F 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 2D 01 00 00 F4 03 04 00 3B 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 20 02 00 35 04 06 00 36 00 00 62 [19:25:46]Write i2c OK [19:25:46]MH_I2C_Read... [19:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:47]Read from MH i2c: E2 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: E2 03 00 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: E2 03 00 0F 2F 00 90 00 B2 [19:25:47]RAPDU: 90 00 [19:25:47]wFMCommunicate OK [19:25:47]wFMCommunicate request_size=10 [19:25:47]MH_SAM_APDU [19:25:47]CAPDU: 80 0D 02 02 05 D5 F1 D6 8E 24 [19:25:47]Write to MH i2c: E2 0D 00 10 2F 80 0D 02 02 05 00 D5 F1 D6 8E 24 00 00 11 [19:25:47]Write i2c OK [19:25:47]MH_I2C_Read... [19:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:47]Read from MH i2c: E2 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: E2 03 00 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: E2 03 00 10 2F 00 90 00 B3 [19:25:47]RAPDU: 90 00 [19:25:47]wFMCommunicate OK [19:25:47]wFMCommunicate request_size=4 [19:25:47]MH_SAM_APDU [19:25:47]CAPDU: 80 0D 03 02 [19:25:47]Write to MH i2c: E2 08 00 11 2F 80 0D 03 02 00 00 00 00 BB [19:25:47]Write i2c OK [19:25:47]MH_I2C_Read... [19:25:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:47]Read from MH i2c: E2 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: E2 0B 00 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: E2 0B 00 11 2F 00 FF 5F 59 DA E7 64 B1 1B 90 00 64 [19:25:47]RAPDU: FF 5F 59 DA E7 64 B1 1B 90 00 [19:25:47]wFMCommunicate OK [19:25:47]SAM_PROTO_SignData done [19:25:47]FM_MakeSignedData done [19:25:47]CreateOFDProtocolMessage [19:25:47]wFMCommunicate request_size=4 [19:25:47]MH_SAM_APDU [19:25:47]CAPDU: 80 11 00 00 [19:25:47]Write to MH i2c: E2 08 00 12 2F 80 11 00 00 00 00 00 00 BB [19:25:47]Write i2c OK [19:25:47]MH_I2C_Read... [19:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:47]Read from MH i2c: E2 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: E2 17 00 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: E2 17 00 12 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 12 [19:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:25:47]wFMCommunicate OK [19:25:47]CreateOFDProtocolMessage done [19:25:47]OFDSenderStorePacket 139466 [19:25:47]StoreOFDPacket docnum=139466 [19:25:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 67 17 07 01 3E 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 2D 01 00 00 F4 03 04 00 3B 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 20 02 00 35 04 06 00 36 D5 F1 D6 8E 24 FF 5F 59 DA E7 64 B1 1B [19:25:47]CheckFolder [19:25:47]dirname=/storage/ofd_packets [19:25:47]CheckFolder done [19:25:47]ProducePacketName [19:25:47]name=ofd_packets/00139466 [19:25:47]NVStorageSaveData ofd_packets/00139466 [19:25:47]File name is /storage/ofd_packets/00139466 [19:25:47]Write 301 bytes [19:25:47]NVStorageSaveData done [19:25:47]OFDSenderStorePacket done [19:25:47]KKMCreateOFDPacket done [19:25:47]NVStorageSaveData kkm_last_timestamp [19:25:47]File name is /storage/kkm_last_timestamp [19:25:47]Write 4 bytes [19:25:47]NVStorageSaveData done [19:25:47]ExternCall_PrintAddStr [19:25:47]wPrintStart [19:25:47]Write to MH i2c: 01 00 00 13 2F 42 [19:25:47]Write i2c OK [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: 01 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: 01 07 00 [19:25:47]MH_I2C_Read... [19:25:47]Read from MH i2c: 01 07 00 13 2F 00 00 00 00 00 FF 0F 57 [19:25:47]RasterBufferAndPrint [19:25:47]line Счет N : (1)593308 [19:25:47]line ИНН: 02508201610067 [19:25:47]line Контрольно-Кассовый Чек [19:25:47]line ПРОДАЖА [19:25:47]line ТРК (МРК, ГНК) : 42 [19:25:47]line Товар: 2710124130 [19:25:47]line Аи-92-К-5 [19:25:47]line 3.690 * 67.80 [19:25:47]line = 250.18 [19:25:47]line НДС 12% НСП 1% [19:25:47]line > о реализуемом товаре [19:25:47]line ОКРУГЛЕНИЕ: -0.18 [19:25:47]line ИТОГО: 250.00 [19:25:47]line Внесено: 250.00 [19:25:47]line СДАЧА: 0.00 [19:25:47]line НСП 1% : 2.21 [19:25:47]line НДС 12% : 26.57 [19:25:47]line Наличными: 250.00 [19:25:47]line Безнал.: 0.00 [19:25:47]line Место: АЗС № 136 "Партнер Нефть" [19:25:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:25:47]line СНО: Общий режим [19:25:47]line Чек 301 19.08.2024 19:25 [19:25:47]line Смена: 452 ФФД: 1.0 [19:25:47]line ЗНМ: 0300000067 [19:25:47]line РНМ: 0000000000092569 [19:25:47]line Версия ККМ: 001 [19:25:47]line ФМ: 0000000000871776 [19:25:47]line ФД: 139466 [19:25:47]line ФПД: 60292513304100 [19:25:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192547&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139466&fm=60292513304100&tin=02508201610067®Number=0000000000092569&sum=25000 [19:25:47]written 0, free lines is 4095 [19:25:47]OFD Sender: Processing packet 139466 [packets to send 137, broken 136] [19:25:47]ProducePacketName [19:25:47]name=ofd_packets/00139466 [19:25:47]OFD Sender: To server: pG, [19:25:47]CommunicateWithHost lk.salyk.kg:30040 [19:25:47]ConnectInit lk.salyk.kg [19:25:47]Connected sock=10 [19:25: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 37 36 0F 01 00 00 67 17 07 01 3E 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 2D 01 00 00 F4 03 04 00 3B 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 20 02 00 35 04 06 00 36 D5 F1 D6 8E 24 FF 5F 59 DA E7 64 B1 1B [19:25: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 37 36 4F 00 00 00 88 E6 47 00 C5 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 37 36 10 04 04 00 CA 20 02 00 F4 03 04 00 D1 42 C3 66 B6 04 01 00 00 FC 82 7E 9E F9 34 8D B5 [19:25:48]CommunicateWithHost err = 0 [19:25:48]CheckOFDResponse [19:25:48]1017 (14) - 77093643461234 [19:25:48]1041 (16) - 0000000000871776 [19:25:48]1040 (4) - 139466 [19:25:48]1012 (4) - 19.08.2024 13:04 [19:25:48]1206 (1) - 0 [19:25:48]OFD Sender: Remove packet 139466 [19:25:48]ProducePacketName [19:25:48]name=ofd_packets/00139466 [19:25:48]NVStorageDeleteData [19:25:48]Write to MH i2c: 01 00 00 3E 2F 6D [19:25:48]Write i2c OK [19:25:48]MH_I2C_Read... [19:25:48]Read from MH i2c: 01 [19:25:48]MH_I2C_Read... [19:25:48]Read from MH i2c: 01 07 00 [19:25:48]MH_I2C_Read... [19:25:48]Read from MH i2c: 01 07 00 3E 2F 00 00 00 00 00 DA 0C 5A [19:25:48]RasterBufferAndPrint [19:25:48]line [19:25:48]line [19:25:48]line [19:25:48]line [19:25:48]line [19:25:48]written 0, free lines is 3297 [19:25:48]MH_Cut [19:25:48]Write to MH i2c: D1 01 00 45 2F 01 46 [19:25:48]Write i2c OK [19:25:48]MH_I2C_Read... [19:25:48]Read from MH i2c: D1 [19:25:48]MH_I2C_Read... [19:25:48]Read from MH i2c: D1 01 00 [19:25:48]MH_I2C_Read... [19:25:48]Read from MH i2c: D1 01 00 45 2F 00 45 [19:25:48]Write to MH i2c: 01 00 00 46 2F 75 [19:25:48]Write i2c OK [19:25:48]MH_I2C_Read... [19:25:48]OFD Sender: No OFD packet to send [19:25:48]*** Cut start [19:25:48]*** Partial cut [19:25:48]*** CUTSNS_PIN = 1 [19:25:48]*** CUTSNS_PIN = 0 [19:25:49]*** Brake cut motor [19:25:49]Read from MH i2c: 01 [19:25:49]MH_I2C_Read... [19:25:49]*** Stop cut motor [19:25:49]*** Cut end [19:25:49]Read from MH i2c: 01 07 00 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: 01 07 00 46 2F 00 00 00 00 00 FF 0F 8A [19:25:49]process_action close_receipt done [19:25:49]requested_data is exist [19:25:49]produce_requested_data [19:25:49]requested_item fm.sn is exist - process it [19:25:49]wFMCommunicate request_size=4 [19:25:49]MH_SAM_APDU [19:25:49]CAPDU: 80 11 00 00 [19:25:49]Write to MH i2c: E2 08 00 47 2F 80 11 00 00 00 00 00 00 F0 [19:25:49]Write i2c OK [19:25:49]MH_I2C_Read... [19:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:49]Read from MH i2c: E2 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 17 00 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 17 00 47 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 47 [19:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:25:49]wFMCommunicate OK [19:25:49]requested_item fd.num is exist - process it [19:25:49]SAM_PROTO_GetFieldsCounters [19:25:49]wFMCommunicate request_size=4 [19:25:49]MH_SAM_APDU [19:25:49]CAPDU: 80 13 00 00 [19:25:49]Write to MH i2c: E2 08 00 48 2F 80 13 00 00 00 00 00 00 F3 [19:25:49]Write i2c OK [19:25:49]MH_I2C_Read... [19:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:49]Read from MH i2c: E2 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 62 00 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 62 00 48 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 20 02 00 0E 04 04 00 C4 01 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 59 [19:25:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 20 02 00 0E 04 04 00 C4 01 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 [19:25:49]wFMCommunicate OK [19:25:49]SAM_PROTO_GetFieldsCounters done [19:25:49]requested_item shift.num is exist - process it [19:25:49]requested_item shift.opened is exist - process it [19:25:49]req_shift_opened [19:25:49]FM_GetShiftState [19:25:49]SAM_PROTO_GetShiftState [19:25:49]wFMCommunicate request_size=4 [19:25:49]MH_SAM_APDU [19:25:49]CAPDU: 80 13 01 00 [19:25:49]Write to MH i2c: E2 08 00 49 2F 80 13 01 00 00 00 00 00 F5 [19:25:49]Write i2c OK [19:25:49]MH_I2C_Read... [19:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:49]Read from MH i2c: E2 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 0E 00 [19:25:49]MH_I2C_Read... [19:25:49]Read from MH i2c: E2 0E 00 49 2F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AC [19:25:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:25:49]wFMCommunicate OK [19:25:49]SAM_PROTO_GetShiftState done [19:25:49]FM_GetShiftState done [19:25:49]req_shift_opened done [19:25:49]requested_item shift.open_date is exist - process it [19:25:49]req_shift_open_date [19:25:49]req_shift_open_date done [19:25:49]produce_requested_data done [19:25:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139466,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:25:49]process_action_free close_receipt [19:25:49]json_value_free [19:25:49]json_value_free done [19:25:49]process_json_proto returns [19:25:49]Send response to host [19:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139466,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:25:49]free response buf [19:25:49]execute_script done [19:25:49]execute_script returns [19:25:49]free content buf [19:25:49]Sock 8.Close socket [19:25:49]Sock 8.Thread stoped [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:34]accept exits with 9 [19:26:34]New connection [19:26:34]New thread 3066817892 created [19:26:34]Thread 3066674532 joined [19:26:34]Waiting for new connection... [19:26:34] Sock 9.Parse request [19:26:34]Sock 9.Check first char [19:26:35]Sock 9.First char is OK [19:26:35]request: POST /json_proto HTTP/1.0 [19:26:35]Method: POST [19:26:35]URL: /json_proto [19:26:35]Method is POST - this is cgi request [19:26:35]url: /json_proto [19:26:35]query_string will be loaded in cgi processing [19:26:35]execute_cgi json_proto POST (null) [19:26:35]execute_cgi path=json_proto method=POST [19:26:35]POST find Content-Length [19:26:35]Host: 172.17.45.67:8080 [19:26:35]Content-Length: 834 [19:26:35]Content-Type: application/json [19:26:35] [19:26:35]POST finish read [19:26:35]Found Content-Length = 834 [19:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:35]execute_script... [19:26: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)593309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:35]POST & json_proto [19:26:35]process_json_proto [19:26:35]json parsed OK: [19:26:35]protocol is kg_v1.0 [19:26:35]action value=close_receipt [19:26:35]process_action close_receipt [19:26:35]cmd_close_receipt [19:26:35]MH_GetDate [19:26:35]Write to MH i2c: F0 00 00 4A 2F 68 [19:26:35]Write i2c OK [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: F0 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: F0 09 00 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: F0 09 00 4A 2F 00 6D 9C C3 66 5F 7F 2B 66 12 [19:26:35]GetLastDocTimeStamp 1724095547 [19:26:35]current date 1724095597 [19:26:35]FM_GetShiftState [19:26:35]SAM_PROTO_GetShiftState [19:26:35]wFMCommunicate request_size=4 [19:26:35]MH_SAM_APDU [19:26:35]CAPDU: 80 13 01 00 [19:26:35]Write to MH i2c: E2 08 00 4B 2F 80 13 01 00 00 00 00 00 F7 [19:26:35]Write i2c OK [19:26:35]MH_I2C_Read... [19:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:35]Read from MH i2c: E2 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 0E 00 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 0E 00 4B 2F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AE [19:26:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:26:35]wFMCommunicate OK [19:26:35]SAM_PROTO_GetShiftState done [19:26:35]FM_GetShiftState done [19:26:35]opened in 1724027888 [19:26:35]opened+sec_in_day 1724114288 [19:26:35]quantity*price = 50036 [19:26:35]sum+1 = 50037 [19:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 302 19.08.2024 19:26 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139467 ФПД: 80376252154297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192637&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139467&fm=80376252154297&tin=02508201610067®Number=0000000000092569&sum=50000 [19:26:36]StoreToDocumentArchive [19:26:36]shift 452 fd 139467 [19:26:36]save to /storage/0452/doc_00139467 [19:26:36]save last doc name /storage/0452/doc_00139467 to /storage/kkm_last_doc_name [19:26:36]save OK [19:26:36]Clear old archive folders... [19:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:36]tlvbuf is 0120FDC0 [19:26:36]SAM_PROTO_ClearQueue [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 09 00 00 [19:26:36]Write to MH i2c: E2 08 00 58 2F 80 09 00 00 00 00 00 00 F9 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 58 2F 00 90 00 FB [19:26:36]RAPDU: 90 00 [19:26:36]wFMCommunicate OK [19:26:36]SAM_PROTO_ClearQueue done [19:26:36]KKMCreateOFDPacket [19:26:36]OFDProtocolAddRootSTLVToBuf [19:26:36]FM_MakeSignedData [19:26:36]FM_MakeSignedData [19:26:36]SAM_PROTO_SignData [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 0D 01 02 [19:26:36]Write to MH i2c: E2 08 00 59 2F 80 0D 01 02 00 00 00 00 01 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 59 2F 00 90 00 FC [19:26:36]RAPDU: 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=255 [19:26:36]MH_SAM_APDU [19:26: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 6D 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 20 02 00 35 04 06 00 49 [19:26:36]Write to MH i2c: E2 02 01 5A 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 6D 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 20 02 00 35 04 06 00 49 00 00 E6 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 5A 2F 00 90 00 FD [19:26:36]RAPDU: 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=10 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 0D 02 02 05 1A 0D F5 41 B9 [19:26:36]Write to MH i2c: E2 0D 00 5B 2F 80 0D 02 02 05 00 1A 0D F5 41 B9 00 00 24 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 5B 2F 00 90 00 FE [19:26:36]RAPDU: 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 0D 03 02 [19:26:36]Write to MH i2c: E2 08 00 5C 2F 80 0D 03 02 00 00 00 00 06 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0B 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0B 00 5C 2F 00 7D 01 D4 14 EE E7 BF 0F 90 00 10 [19:26:36]RAPDU: 7D 01 D4 14 EE E7 BF 0F 90 00 [19:26:36]wFMCommunicate OK [19:26:36]SAM_PROTO_SignData done [19:26:36]FM_MakeSignedData done [19:26:36]CreateOFDProtocolMessage [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 11 00 00 [19:26:36]Write to MH i2c: E2 08 00 5D 2F 80 11 00 00 00 00 00 00 06 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 17 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 17 00 5D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5D [19:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:26:36]wFMCommunicate OK [19:26:36]CreateOFDProtocolMessage done [19:26:36]OFDSenderStorePacket 139467 [19:26:36]StoreOFDPacket docnum=139467 [19:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 75 C3 07 01 84 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 6D 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 20 02 00 35 04 06 00 49 1A 0D F5 41 B9 7D 01 D4 14 EE E7 BF 0F [19:26:36]CheckFolder [19:26:36]dirname=/storage/ofd_packets [19:26:36]CheckFolder done [19:26:36]ProducePacketName [19:26:36]name=ofd_packets/00139467 [19:26:36]NVStorageSaveData ofd_packets/00139467 [19:26:36]File name is /storage/ofd_packets/00139467 [19:26:36]Write 301 bytes [19:26:36]NVStorageSaveData done [19:26:36]OFDSenderStorePacket done [19:26:36]KKMCreateOFDPacket done [19:26:36]NVStorageSaveData kkm_last_timestamp [19:26:36]File name is /storage/kkm_last_timestamp [19:26:36]Write 4 bytes [19:26:36]NVStorageSaveData done [19:26:36]ExternCall_PrintAddStr [19:26:36]wPrintStart [19:26:36]Write to MH i2c: 01 00 00 5E 2F 8D [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: 01 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: 01 07 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: 01 07 00 5E 2F 00 00 00 00 00 FF 0F A2 [19:26:36]RasterBufferAndPrint [19:26:36]line Счет N : (1)593309 [19:26:36]line ИНН: 02508201610067 [19:26:36]line Контрольно-Кассовый Чек [19:26:36]line ПРОДАЖА [19:26:36]line ТРК (МРК, ГНК) : 52 [19:26:36]line Товар: 2710124130 [19:26:36]line Аи-92-К-5 [19:26:36]line 7.380 * 67.80 [19:26:36]line = 500.36 [19:26:36]line НДС 12% НСП 1% [19:26:36]line > о реализуемом товаре [19:26:36]line ОКРУГЛЕНИЕ: -0.36 [19:26:36]line ИТОГО: 500.00 [19:26:36]line НСП 1% : 4.43 [19:26:36]line НДС 12% : 53.14 [19:26:36]line Наличными: 0.00 [19:26:36]line Безнал.: 500.00 [19:26:36]line Место: АЗС № 136 "Партнер Нефть" [19:26:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:26:36]line СНО: Общий режим [19:26:36]line Чек 302 19.08.2024 19:26 [19:26:36]line Смена: 452 ФФД: 1.0 [19:26:36]line ЗНМ: 0300000067 [19:26:36]line РНМ: 0000000000092569 [19:26:36]line Версия ККМ: 001 [19:26:36]line Платежная система: Бакай Банк [19:26:36]line ФМ: 0000000000871776 [19:26:36]line ФД: 139467 [19:26:36]line ФПД: 80376252154297 [19:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192637&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139467&fm=80376252154297&tin=02508201610067®Number=0000000000092569&sum=50000 [19:26:37]OFD Sender: Processing packet 139467 [packets to send 137, broken 136] [19:26:37]ProducePacketName [19:26:37]name=ofd_packets/00139467 [19:26:37]OFD Sender: To server: pG, [19:26:37]CommunicateWithHost lk.salyk.kg:30040 [19:26:37]ConnectInit lk.salyk.kg [19:26:37]written 0, free lines is 4095 [19:26:37]Connected sock=10 [19:26: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 37 36 0F 01 00 00 75 C3 07 01 84 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 6D 9C C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 20 02 00 35 04 06 00 49 1A 0D F5 41 B9 7D 01 D4 14 EE E7 BF 0F [19:26: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 37 36 4F 00 00 00 EE 04 47 00 29 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 20 02 00 F4 03 04 00 02 43 C3 66 B6 04 01 00 00 EC FA 52 C5 87 D2 A0 12 [19:26:37]CommunicateWithHost err = 0 [19:26:37]CheckOFDResponse [19:26:37]1017 (14) - 77093643461234 [19:26:37]1041 (16) - 0000000000871776 [19:26:37]1040 (4) - 139467 [19:26:37]1012 (4) - 19.08.2024 13:05 [19:26:37]1206 (1) - 0 [19:26:37]OFD Sender: Remove packet 139467 [19:26:37]ProducePacketName [19:26:37]name=ofd_packets/00139467 [19:26:37]NVStorageDeleteData [19:26:37]Write to MH i2c: 01 00 00 89 2F B8 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 89 2F 00 00 00 00 00 E3 0C AE [19:26:37]RasterBufferAndPrint [19:26:37]line [19:26:37]line [19:26:37]line [19:26:37]line [19:26:37]line [19:26:37]written 0, free lines is 3306 [19:26:37]MH_Cut [19:26:37]Write to MH i2c: D1 01 00 90 2F 01 91 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: D1 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: D1 01 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: D1 01 00 90 2F 00 90 [19:26:37]Write to MH i2c: 01 00 00 91 2F C0 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]OFD Sender: No OFD packet to send [19:26:38]*** Cut start [19:26:38]*** Partial cut [19:26:38]*** CUTSNS_PIN = 1 [19:26:38]*** CUTSNS_PIN = 0 [19:26:38]*** Brake cut motor [19:26:38]Read from MH i2c: 01 [19:26:38]MH_I2C_Read... [19:26:38]*** Stop cut motor [19:26:38]*** Cut end [19:26:38]Read from MH i2c: 01 07 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: 01 07 00 91 2F 00 00 00 00 00 FF 0F D5 [19:26:38]process_action close_receipt done [19:26:38]requested_data is exist [19:26:38]produce_requested_data [19:26:38]requested_item fm.sn is exist - process it [19:26:38]wFMCommunicate request_size=4 [19:26:38]MH_SAM_APDU [19:26:38]CAPDU: 80 11 00 00 [19:26:38]Write to MH i2c: E2 08 00 92 2F 80 11 00 00 00 00 00 00 3B [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:38]Read from MH i2c: E2 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 17 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 17 00 92 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 92 [19:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:26:38]wFMCommunicate OK [19:26:38]requested_item fd.num is exist - process it [19:26:38]SAM_PROTO_GetFieldsCounters [19:26:38]wFMCommunicate request_size=4 [19:26:38]MH_SAM_APDU [19:26:38]CAPDU: 80 13 00 00 [19:26:38]Write to MH i2c: E2 08 00 93 2F 80 13 00 00 00 00 00 00 3E [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:38]Read from MH i2c: E2 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 62 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 62 00 93 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 20 02 00 0E 04 04 00 C4 01 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 A8 [19:26: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 20 02 00 0E 04 04 00 C4 01 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 [19:26:39]wFMCommunicate OK [19:26:39]SAM_PROTO_GetFieldsCounters done [19:26:39]requested_item shift.num is exist - process it [19:26:39]requested_item shift.opened is exist - process it [19:26:39]req_shift_opened [19:26:39]FM_GetShiftState [19:26:39]SAM_PROTO_GetShiftState [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 13 01 00 [19:26:39]Write to MH i2c: E2 08 00 94 2F 80 13 01 00 00 00 00 00 40 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 0E 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 0E 00 94 2F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F7 [19:26:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:26:39]wFMCommunicate OK [19:26:39]SAM_PROTO_GetShiftState done [19:26:39]FM_GetShiftState done [19:26:39]req_shift_opened done [19:26:39]requested_item shift.open_date is exist - process it [19:26:39]req_shift_open_date [19:26:39]req_shift_open_date done [19:26:39]produce_requested_data done [19:26:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139467,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:26:39]process_action_free close_receipt [19:26:39]json_value_free [19:26:39]json_value_free done [19:26:39]process_json_proto returns [19:26:39]Send response to host [19:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139467,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:26:39]free response buf [19:26:39]execute_script done [19:26:39]execute_script returns [19:26:39]free content buf [19:26:39]Sock 9.Close socket [19:26:39]Sock 9.Thread stoped [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:35]accept exits with 8 [19:30:35]New connection [19:30:35]New thread 3066674532 created [19:30:35]Thread 3066817892 joined [19:30:35]Waiting for new connection... [19:30:35] Sock 8.Parse request [19:30:35]Sock 8.Check first char [19:30:35]Sock 8.First char is OK [19:30:35]request: POST /json_proto HTTP/1.0 [19:30:35]Method: POST [19:30:35]URL: /json_proto [19:30:35]Method is POST - this is cgi request [19:30:35]url: /json_proto [19:30:35]query_string will be loaded in cgi processing [19:30:35]execute_cgi json_proto POST (null) [19:30:35]execute_cgi path=json_proto method=POST [19:30:35]POST find Content-Length [19:30:35]Host: 172.17.45.67:8080 [19:30:35]Content-Length: 792 [19:30:35]Content-Type: application/json [19:30:35] [19:30:35]POST finish read [19:30:35]Found Content-Length = 792 [19:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:35]execute_script... [19:30: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)593310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:35]POST & json_proto [19:30:35]process_json_proto [19:30:35]json parsed OK: [19:30:35]protocol is kg_v1.0 [19:30:35]action value=close_receipt [19:30:35]process_action close_receipt [19:30:35]cmd_close_receipt [19:30:35]MH_GetDate [19:30:35]Write to MH i2c: F0 00 00 95 2F B3 [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: F0 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: F0 09 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: F0 09 00 95 2F 00 5D 9D C3 66 5F 7F 2B 66 4E [19:30:35]GetLastDocTimeStamp 1724095597 [19:30:35]current date 1724095837 [19:30:35]FM_GetShiftState [19:30:35]SAM_PROTO_GetShiftState [19:30:35]wFMCommunicate request_size=4 [19:30:35]MH_SAM_APDU [19:30:35]CAPDU: 80 13 01 00 [19:30:35]Write to MH i2c: E2 08 00 96 2F 80 13 01 00 00 00 00 00 42 [19:30:35]Write i2c OK [19:30:35]MH_I2C_Read... [19:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:35]Read from MH i2c: E2 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 0E 00 [19:30:35]MH_I2C_Read... [19:30:35]Read from MH i2c: E2 0E 00 96 2F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F9 [19:30:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:30:35]wFMCommunicate OK [19:30:35]SAM_PROTO_GetShiftState done [19:30:35]FM_GetShiftState done [19:30:35]opened in 1724027888 [19:30:35]opened+sec_in_day 1724114288 [19:30:35]quantity*price = 0 [19:30:35]sum+1 = 1 [19:30:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 303 19.08.2024 19:30 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139468 ФПД: 227296533993110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T193037&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139468&fm=227296533993110&tin=02508201610067®Number=0000000000092569&sum=0 [19:30:36]StoreToDocumentArchive [19:30:36]shift 452 fd 139468 [19:30:36]save to /storage/0452/doc_00139468 [19:30:36]save last doc name /storage/0452/doc_00139468 to /storage/kkm_last_doc_name [19:30:36]save OK [19:30:36]Clear old archive folders... [19:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:36]tlvbuf is B6EB9A80 [19:30:36]SAM_PROTO_ClearQueue [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 09 00 00 [19:30:36]Write to MH i2c: E2 08 00 A3 2F 80 09 00 00 00 00 00 00 44 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 A3 2F 00 90 00 46 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]SAM_PROTO_ClearQueue done [19:30:36]KKMCreateOFDPacket [19:30:36]OFDProtocolAddRootSTLVToBuf [19:30:36]FM_MakeSignedData [19:30:36]FM_MakeSignedData [19:30:36]SAM_PROTO_SignData [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 01 02 [19:30:36]Write to MH i2c: E2 08 00 A4 2F 80 0D 01 02 00 00 00 00 4C [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 A4 2F 00 90 00 47 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]wFMCommunicate request_size=255 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 2F 01 00 00 F4 03 04 00 5D 9D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 20 02 00 35 04 06 00 CE [19:30:36]Write to MH i2c: E2 02 01 A5 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 2F 01 00 00 F4 03 04 00 5D 9D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 20 02 00 35 04 06 00 CE 00 00 A6 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 A5 2F 00 90 00 48 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]wFMCommunicate request_size=10 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 02 02 05 B9 99 2A D6 96 [19:30:36]Write to MH i2c: E2 0D 00 A6 2F 80 0D 02 02 05 00 B9 99 2A D6 96 00 00 41 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 A6 2F 00 90 00 49 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 03 02 [19:30:36]Write to MH i2c: E2 08 00 A7 2F 80 0D 03 02 00 00 00 00 51 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 0B 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 0B 00 A7 2F 00 00 CC EE 01 A1 35 FF 59 90 00 3B [19:30:36]RAPDU: 00 CC EE 01 A1 35 FF 59 90 00 [19:30:36]wFMCommunicate OK [19:30:36]SAM_PROTO_SignData done [19:30:36]FM_MakeSignedData done [19:30:36]CreateOFDProtocolMessage [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 11 00 00 [19:30:36]Write to MH i2c: E2 08 00 A8 2F 80 11 00 00 00 00 00 00 51 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 17 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 17 00 A8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A8 [19:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:30:36]wFMCommunicate OK [19:30:36]CreateOFDProtocolMessage done [19:30:36]OFDSenderStorePacket 139468 [19:30:36]StoreOFDPacket docnum=139468 [19:30:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2D E0 07 01 99 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 2F 01 00 00 F4 03 04 00 5D 9D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 20 02 00 35 04 06 00 CE B9 99 2A D6 96 00 CC EE 01 A1 35 FF 59 [19:30:36]CheckFolder [19:30:36]dirname=/storage/ofd_packets [19:30:36]CheckFolder done [19:30:36]ProducePacketName [19:30:36]name=ofd_packets/00139468 [19:30:36]NVStorageSaveData ofd_packets/00139468 [19:30:36]File name is /storage/ofd_packets/00139468 [19:30:36]Write 301 bytes [19:30:36]NVStorageSaveData done [19:30:36]OFDSenderStorePacket done [19:30:36]KKMCreateOFDPacket done [19:30:36]NVStorageSaveData kkm_last_timestamp [19:30:36]File name is /storage/kkm_last_timestamp [19:30:36]Write 4 bytes [19:30:36]NVStorageSaveData done [19:30:36]ExternCall_PrintAddStr [19:30:36]wPrintStart [19:30:36]Write to MH i2c: 01 00 00 A9 2F D8 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: 01 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: 01 07 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: 01 07 00 A9 2F 00 00 00 00 00 FF 0F ED [19:30:36]RasterBufferAndPrint [19:30:36]line Счет N : (1)593310 [19:30:36]line ИНН: 02508201610067 [19:30:36]line Контрольно-Кассовый Чек [19:30:36]line ПРОДАЖА [19:30:36]line ТРК (МРК, ГНК) : 31 [19:30:36]line Товар: 2710124500 [19:30:36]line Аи-95-К-5 [19:30:36]line 20.000 * 0.00 [19:30:36]line = 0.00 [19:30:36]line НДС 12% НСП 1% [19:30:36]line > о реализуемом товаре [19:30:36]line ИТОГО: 0.00 [19:30:36]line НСП 1% : 0.00 [19:30:36]line НДС 12% : 0.00 [19:30:36]line Наличными: 0.00 [19:30:36]line Безнал.: 0.00 [19:30:36]line Место: АЗС № 136 "Партнер Нефть" [19:30:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:30:36]line СНО: Общий режим [19:30:36]line Чек 303 19.08.2024 19:30 [19:30:36]line Смена: 452 ФФД: 1.0 [19:30:36]line ЗНМ: 0300000067 [19:30:36]line РНМ: 0000000000092569 [19:30:36]line Версия ККМ: 001 [19:30:36]line Талоны: Топливная Карта [19:30:36]line 99761 [19:30:36]line ФМ: 0000000000871776 [19:30:36]line ФД: 139468 [19:30:36]line ФПД: 227296533993110 [19:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T193037&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139468&fm=227296533993110&tin=02508201610067®Number=0000000000092569&sum=0 [19:30:36]written 0, free lines is 4095 [19:30:37]OFD Sender: Processing packet 139468 [packets to send 137, broken 136] [19:30:37]ProducePacketName [19:30:37]name=ofd_packets/00139468 [19:30:37]OFD Sender: To server: pG, [19:30:37]CommunicateWithHost lk.salyk.kg:30040 [19:30:37]ConnectInit lk.salyk.kg [19:30:37]Connected sock=10 [19:30: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 37 36 0F 01 00 00 2D E0 07 01 99 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 2F 01 00 00 F4 03 04 00 5D 9D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 20 02 00 35 04 06 00 CE B9 99 2A D6 96 00 CC EE 01 A1 35 FF 59 [19:30:37]Write to MH i2c: 01 00 00 D3 2F 02 [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 07 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 07 00 D3 2F 00 00 00 00 00 EC 0C 01 [19:30:37]RasterBufferAndPrint [19:30:37]line [19:30:37]line [19:30:37]line [19:30:37]line [19:30:37]line [19:30:37]written 0, free lines is 3313 [19:30:37]MH_Cut [19:30:37]Write to MH i2c: D1 01 00 DA 2F 01 DB [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: D1 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: D1 01 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: D1 01 00 DA 2F 00 DA [19:30:37]Write to MH i2c: 01 00 00 DB 2F 0A [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30: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 37 36 4F 00 00 00 CB 90 47 00 27 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 20 02 00 F4 03 04 00 F2 43 C3 66 B6 04 01 00 00 7D BD 4F C8 9A 61 DB AB [19:30:37]CommunicateWithHost err = 0 [19:30:37]CheckOFDResponse [19:30:37]1017 (14) - 77093643461234 [19:30:37]1041 (16) - 0000000000871776 [19:30:37]1040 (4) - 139468 [19:30:37]1012 (4) - 19.08.2024 13:09 [19:30:37]1206 (1) - 0 [19:30:37]OFD Sender: Remove packet 139468 [19:30:37]ProducePacketName [19:30:37]name=ofd_packets/00139468 [19:30:37]NVStorageDeleteData [19:30:38]OFD Sender: No OFD packet to send [19:30:38]*** Cut start [19:30:38]*** Partial cut [19:30:38]*** CUTSNS_PIN = 1 [19:30:38]*** CUTSNS_PIN = 0 [19:30:38]*** Brake cut motor [19:30:38]Read from MH i2c: 01 [19:30:38]MH_I2C_Read... [19:30:38]*** Stop cut motor [19:30:38]*** Cut end [19:30:38]Read from MH i2c: 01 07 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: 01 07 00 DB 2F 00 00 00 00 00 FF 0F 1F [19:30:38]process_action close_receipt done [19:30:38]requested_data is exist [19:30:38]produce_requested_data [19:30:38]requested_item fm.sn is exist - process it [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 11 00 00 [19:30:38]Write to MH i2c: E2 08 00 DC 2F 80 11 00 00 00 00 00 00 85 [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:38]Read from MH i2c: E2 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 17 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 17 00 DC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DC [19:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:30:38]wFMCommunicate OK [19:30:38]requested_item fd.num is exist - process it [19:30:38]SAM_PROTO_GetFieldsCounters [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 13 00 00 [19:30:38]Write to MH i2c: E2 08 00 DD 2F 80 13 00 00 00 00 00 00 88 [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:38]Read from MH i2c: E2 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 62 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 62 00 DD 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 20 02 00 0E 04 04 00 C4 01 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 F6 [19:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 20 02 00 0E 04 04 00 C4 01 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 [19:30:38]wFMCommunicate OK [19:30:38]SAM_PROTO_GetFieldsCounters done [19:30:38]requested_item shift.num is exist - process it [19:30:38]requested_item shift.opened is exist - process it [19:30:38]req_shift_opened [19:30:38]FM_GetShiftState [19:30:38]SAM_PROTO_GetShiftState [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 13 01 00 [19:30:38]Write to MH i2c: E2 08 00 DE 2F 80 13 01 00 00 00 00 00 8A [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:38]Read from MH i2c: E2 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 0E 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 0E 00 DE 2F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 41 [19:30:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:30:38]wFMCommunicate OK [19:30:38]SAM_PROTO_GetShiftState done [19:30:38]FM_GetShiftState done [19:30:38]req_shift_opened done [19:30:38]requested_item shift.open_date is exist - process it [19:30:38]req_shift_open_date [19:30:38]req_shift_open_date done [19:30:38]produce_requested_data done [19:30:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139468,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:30:38]process_action_free close_receipt [19:30:38]json_value_free [19:30:38]json_value_free done [19:30:38]process_json_proto returns [19:30:38]Send response to host [19:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139468,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:30:38]free response buf [19:30:38]execute_script done [19:30:38]execute_script returns [19:30:38]free content buf [19:30:38]Sock 8.Close socket [19:30:38]Sock 8.Thread stoped [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:06]accept exits with 9 [19:33:06]New connection [19:33:06]New thread 3066817892 created [19:33:06]Thread 3066674532 joined [19:33:06]Waiting for new connection... [19:33:06] Sock 9.Parse request [19:33:06]Sock 9.Check first char [19:33:06]Sock 9.First char is OK [19:33:06]request: POST /json_proto HTTP/1.0 [19:33:06]Method: POST [19:33:06]URL: /json_proto [19:33:06]Method is POST - this is cgi request [19:33:06]url: /json_proto [19:33:06]query_string will be loaded in cgi processing [19:33:06]execute_cgi json_proto POST (null) [19:33:06]execute_cgi path=json_proto method=POST [19:33:06]POST find Content-Length [19:33:06]Host: 172.17.45.67:8080 [19:33:06]Content-Length: 677 [19:33:06]Content-Type: application/json [19:33:06] [19:33:06]POST finish read [19:33:06]Found Content-Length = 677 [19:33:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:33:06]execute_script... [19:33: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)593311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:33:06]POST & json_proto [19:33:06]process_json_proto [19:33:06]json parsed OK: [19:33:06]protocol is kg_v1.0 [19:33:06]action value=close_receipt [19:33:06]process_action close_receipt [19:33:06]cmd_close_receipt [19:33:06]MH_GetDate [19:33:06]Write to MH i2c: F0 00 00 DF 2F FD [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: F0 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: F0 09 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: F0 09 00 DF 2F 00 F4 9D C3 66 5F 7F 2B 66 2F [19:33:06]GetLastDocTimeStamp 1724095837 [19:33:06]current date 1724095988 [19:33:06]FM_GetShiftState [19:33:06]SAM_PROTO_GetShiftState [19:33:06]wFMCommunicate request_size=4 [19:33:06]MH_SAM_APDU [19:33:06]CAPDU: 80 13 01 00 [19:33:06]Write to MH i2c: E2 08 00 E0 2F 80 13 01 00 00 00 00 00 8C [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:06]Read from MH i2c: E2 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 0E 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 0E 00 E0 2F 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 43 [19:33:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:33:06]wFMCommunicate OK [19:33:06]SAM_PROTO_GetShiftState done [19:33:06]FM_GetShiftState done [19:33:06]opened in 1724027888 [19:33:06]opened+sec_in_day 1724114288 [19:33:06]quantity*price = 50036 [19:33:06]sum+1 = 50037 [19:33:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 304 19.08.2024 19:33 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139469 ФПД: 240533347284008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T193308&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139469&fm=240533347284008&tin=02508201610067®Number=0000000000092569&sum=50000 [19:33:07]StoreToDocumentArchive [19:33:07]shift 452 fd 139469 [19:33:07]save to /storage/0452/doc_00139469 [19:33:07]save last doc name /storage/0452/doc_00139469 to /storage/kkm_last_doc_name [19:33:07]save OK [19:33:07]Clear old archive folders... [19:33:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:07]tlvbuf is 0120FA30 [19:33:07]SAM_PROTO_ClearQueue [19:33:07]wFMCommunicate request_size=4 [19:33:07]MH_SAM_APDU [19:33:07]CAPDU: 80 09 00 00 [19:33:07]Write to MH i2c: E2 08 00 ED 2F 80 09 00 00 00 00 00 00 8E [19:33:07]Write i2c OK [19:33:07]MH_I2C_Read... [19:33:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:07]Read from MH i2c: E2 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 03 00 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 03 00 ED 2F 00 90 00 90 [19:33:07]RAPDU: 90 00 [19:33:07]wFMCommunicate OK [19:33:07]SAM_PROTO_ClearQueue done [19:33:07]KKMCreateOFDPacket [19:33:07]OFDProtocolAddRootSTLVToBuf [19:33:07]FM_MakeSignedData [19:33:07]FM_MakeSignedData [19:33:07]SAM_PROTO_SignData [19:33:07]wFMCommunicate request_size=4 [19:33:07]MH_SAM_APDU [19:33:07]CAPDU: 80 0D 01 02 [19:33:07]Write to MH i2c: E2 08 00 EE 2F 80 0D 01 02 00 00 00 00 96 [19:33:07]Write i2c OK [19:33:07]MH_I2C_Read... [19:33:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:07]Read from MH i2c: E2 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 03 00 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 03 00 EE 2F 00 90 00 91 [19:33:07]RAPDU: 90 00 [19:33:07]wFMCommunicate OK [19:33:07]wFMCommunicate request_size=255 [19:33:07]MH_SAM_APDU [19:33: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 30 01 00 00 F4 03 04 00 F4 9D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 20 02 00 35 04 06 00 DA [19:33:07]Write to MH i2c: E2 02 01 EF 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 30 01 00 00 F4 03 04 00 F4 9D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 20 02 00 35 04 06 00 DA 00 00 98 [19:33:07]Write i2c OK [19:33:07]MH_I2C_Read... [19:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:08]Read from MH i2c: E2 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 03 00 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 03 00 EF 2F 00 90 00 92 [19:33:08]RAPDU: 90 00 [19:33:08]wFMCommunicate OK [19:33:08]wFMCommunicate request_size=10 [19:33:08]MH_SAM_APDU [19:33:08]CAPDU: 80 0D 02 02 05 C3 88 B8 B4 28 [19:33:08]Write to MH i2c: E2 0D 00 F0 2F 80 0D 02 02 05 00 C3 88 B8 B4 28 00 00 82 [19:33:08]Write i2c OK [19:33:08]MH_I2C_Read... [19:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:08]Read from MH i2c: E2 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 03 00 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 03 00 F0 2F 00 90 00 93 [19:33:08]RAPDU: 90 00 [19:33:08]wFMCommunicate OK [19:33:08]wFMCommunicate request_size=4 [19:33:08]MH_SAM_APDU [19:33:08]CAPDU: 80 0D 03 02 [19:33:08]Write to MH i2c: E2 08 00 F1 2F 80 0D 03 02 00 00 00 00 9B [19:33:08]Write i2c OK [19:33:08]MH_I2C_Read... [19:33:08]OFD Sender: No OFD packet to send [19:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:08]Read from MH i2c: E2 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 0B 00 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 0B 00 F1 2F 00 F5 C6 A0 E9 64 FE 61 EF 90 00 92 [19:33:08]RAPDU: F5 C6 A0 E9 64 FE 61 EF 90 00 [19:33:08]wFMCommunicate OK [19:33:08]SAM_PROTO_SignData done [19:33:08]FM_MakeSignedData done [19:33:08]CreateOFDProtocolMessage [19:33:08]wFMCommunicate request_size=4 [19:33:08]MH_SAM_APDU [19:33:08]CAPDU: 80 11 00 00 [19:33:08]Write to MH i2c: E2 08 00 F2 2F 80 11 00 00 00 00 00 00 9B [19:33:08]Write i2c OK [19:33:08]MH_I2C_Read... [19:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:08]Read from MH i2c: E2 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 17 00 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: E2 17 00 F2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [19:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:33:08]wFMCommunicate OK [19:33:08]CreateOFDProtocolMessage done [19:33:08]OFDSenderStorePacket 139469 [19:33:08]StoreOFDPacket docnum=139469 [19:33:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8C 35 07 01 11 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 30 01 00 00 F4 03 04 00 F4 9D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 20 02 00 35 04 06 00 DA C3 88 B8 B4 28 F5 C6 A0 E9 64 FE 61 EF [19:33:08]CheckFolder [19:33:08]dirname=/storage/ofd_packets [19:33:08]CheckFolder done [19:33:08]ProducePacketName [19:33:08]name=ofd_packets/00139469 [19:33:08]NVStorageSaveData ofd_packets/00139469 [19:33:08]File name is /storage/ofd_packets/00139469 [19:33:08]Write 301 bytes [19:33:08]NVStorageSaveData done [19:33:08]OFDSenderStorePacket done [19:33:08]KKMCreateOFDPacket done [19:33:08]NVStorageSaveData kkm_last_timestamp [19:33:08]File name is /storage/kkm_last_timestamp [19:33:08]Write 4 bytes [19:33:08]NVStorageSaveData done [19:33:08]ExternCall_PrintAddStr [19:33:08]wPrintStart [19:33:08]Write to MH i2c: 01 00 00 F3 2F 22 [19:33:08]Write i2c OK [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: 01 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: 01 07 00 [19:33:08]MH_I2C_Read... [19:33:08]Read from MH i2c: 01 07 00 F3 2F 00 00 00 00 00 FF 0F 37 [19:33:08]RasterBufferAndPrint [19:33:08]line Счет N : (1)593311 [19:33:08]line ИНН: 02508201610067 [19:33:08]line Контрольно-Кассовый Чек [19:33:08]line ПРОДАЖА [19:33:08]line ТРК (МРК, ГНК) : 42 [19:33:08]line Товар: 2710124130 [19:33:08]line Аи-92-К-5 [19:33:08]line 7.380 * 67.80 [19:33:08]line = 500.36 [19:33:08]line НДС 12% НСП 1% [19:33:08]line > о реализуемом товаре [19:33:08]line ОКРУГЛЕНИЕ: -0.36 [19:33:08]line ИТОГО: 500.00 [19:33:08]line Внесено: 500.00 [19:33:08]line СДАЧА: 0.00 [19:33:08]line НСП 1% : 4.43 [19:33:08]line НДС 12% : 53.14 [19:33:08]line Наличными: 500.00 [19:33:08]line Безнал.: 0.00 [19:33:08]line Место: АЗС № 136 "Партнер Нефть" [19:33:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:33:08]line СНО: Общий режим [19:33:08]line Чек 304 19.08.2024 19:33 [19:33:08]line Смена: 452 ФФД: 1.0 [19:33:08]line ЗНМ: 0300000067 [19:33:08]line РНМ: 0000000000092569 [19:33:08]line Версия ККМ: 001 [19:33:08]line ФМ: 0000000000871776 [19:33:08]line ФД: 139469 [19:33:08]line ФПД: 240533347284008 [19:33:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T193308&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139469&fm=240533347284008&tin=02508201610067®Number=0000000000092569&sum=50000 [19:33:08]OFD Sender: Processing packet 139469 [packets to send 137, broken 136] [19:33:08]ProducePacketName [19:33:08]name=ofd_packets/00139469 [19:33:08]OFD Sender: To server: pG, [19:33:08]CommunicateWithHost lk.salyk.kg:30040 [19:33:08]ConnectInit lk.salyk.kg [19:33:08]written 0, free lines is 4095 [19:33:08]Connected sock=10 [19:33: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 37 36 0F 01 00 00 8C 35 07 01 11 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 30 01 00 00 F4 03 04 00 F4 9D C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 20 02 00 35 04 06 00 DA C3 88 B8 B4 28 F5 C6 A0 E9 64 FE 61 EF [19:33: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 37 36 4F 00 00 00 A1 44 47 00 BB B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 20 02 00 F4 03 04 00 8A 44 C3 66 B6 04 01 00 00 6D B5 B9 5A F8 0D 71 4D [19:33:09]CommunicateWithHost err = 0 [19:33:09]CheckOFDResponse [19:33:09]1017 (14) - 77093643461234 [19:33:09]1041 (16) - 0000000000871776 [19:33:09]1040 (4) - 139469 [19:33:09]1012 (4) - 19.08.2024 13:11 [19:33:09]1206 (1) - 0 [19:33:09]OFD Sender: Remove packet 139469 [19:33:09]ProducePacketName [19:33:09]name=ofd_packets/00139469 [19:33:09]NVStorageDeleteData [19:33:09]Write to MH i2c: 01 00 00 1E 30 4E [19:33:09]Write i2c OK [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: 01 [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: 01 07 00 [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: 01 07 00 1E 30 00 00 00 00 00 E4 0C 45 [19:33:09]RasterBufferAndPrint [19:33:09]line [19:33:09]line [19:33:09]line [19:33:09]line [19:33:09]line [19:33:09]written 0, free lines is 3306 [19:33:09]MH_Cut [19:33:09]Write to MH i2c: D1 01 00 25 30 01 27 [19:33:09]Write i2c OK [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: D1 [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: D1 01 00 [19:33:09]MH_I2C_Read... [19:33:09]Read from MH i2c: D1 01 00 25 30 00 26 [19:33:09]Write to MH i2c: 01 00 00 26 30 56 [19:33:09]Write i2c OK [19:33:09]MH_I2C_Read... [19:33:09]OFD Sender: No OFD packet to send [19:33:09]*** Cut start [19:33:09]*** Partial cut [19:33:09]*** CUTSNS_PIN = 1 [19:33:09]*** CUTSNS_PIN = 0 [19:33:10]*** Brake cut motor [19:33:10]Read from MH i2c: 01 [19:33:10]MH_I2C_Read... [19:33:10]*** Stop cut motor [19:33:10]*** Cut end [19:33:10]Read from MH i2c: 01 07 00 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: 01 07 00 26 30 00 00 00 00 00 FF 0F 6B [19:33:10]process_action close_receipt done [19:33:10]requested_data is exist [19:33:10]produce_requested_data [19:33:10]requested_item fm.sn is exist - process it [19:33:10]wFMCommunicate request_size=4 [19:33:10]MH_SAM_APDU [19:33:10]CAPDU: 80 11 00 00 [19:33:10]Write to MH i2c: E2 08 00 27 30 80 11 00 00 00 00 00 00 D1 [19:33:10]Write i2c OK [19:33:10]MH_I2C_Read... [19:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:10]Read from MH i2c: E2 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: E2 17 00 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: E2 17 00 27 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 28 [19:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:33:10]wFMCommunicate OK [19:33:10]requested_item fd.num is exist - process it [19:33:10]SAM_PROTO_GetFieldsCounters [19:33:10]wFMCommunicate request_size=4 [19:33:10]MH_SAM_APDU [19:33:10]CAPDU: 80 13 00 00 [19:33:10]Write to MH i2c: E2 08 00 28 30 80 13 00 00 00 00 00 00 D4 [19:33:10]Write i2c OK [19:33:10]MH_I2C_Read... [19:33:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:10]Read from MH i2c: E2 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: E2 62 00 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: E2 62 00 28 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 20 02 00 0E 04 04 00 C4 01 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 46 [19:33: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 20 02 00 0E 04 04 00 C4 01 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 [19:33:10]wFMCommunicate OK [19:33:10]SAM_PROTO_GetFieldsCounters done [19:33:10]requested_item shift.num is exist - process it [19:33:10]requested_item shift.opened is exist - process it [19:33:10]req_shift_opened [19:33:10]FM_GetShiftState [19:33:10]SAM_PROTO_GetShiftState [19:33:10]wFMCommunicate request_size=4 [19:33:10]MH_SAM_APDU [19:33:10]CAPDU: 80 13 01 00 [19:33:10]Write to MH i2c: E2 08 00 29 30 80 13 01 00 00 00 00 00 D6 [19:33:10]Write i2c OK [19:33:10]MH_I2C_Read... [19:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:10]Read from MH i2c: E2 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: E2 0E 00 [19:33:10]MH_I2C_Read... [19:33:10]Read from MH i2c: E2 0E 00 29 30 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8D [19:33:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:33:10]wFMCommunicate OK [19:33:10]SAM_PROTO_GetShiftState done [19:33:10]FM_GetShiftState done [19:33:10]req_shift_opened done [19:33:10]requested_item shift.open_date is exist - process it [19:33:10]req_shift_open_date [19:33:10]req_shift_open_date done [19:33:10]produce_requested_data done [19:33:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139469,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:33:10]process_action_free close_receipt [19:33:10]json_value_free [19:33:10]json_value_free done [19:33:10]process_json_proto returns [19:33:10]Send response to host [19:33:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139469,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:33:10]free response buf [19:33:10]execute_script done [19:33:10]execute_script returns [19:33:10]free content buf [19:33:10]Sock 9.Close socket [19:33:10]Sock 9.Thread stoped [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:22]accept exits with 8 [19:34:22]New connection [19:34:22]New thread 3066674532 created [19:34:22]Thread 3066817892 joined [19:34:22]Waiting for new connection... [19:34:22] Sock 8.Parse request [19:34:22]Sock 8.Check first char [19:34:22]Sock 8.First char is OK [19:34:22]request: POST /json_proto HTTP/1.0 [19:34:22]Method: POST [19:34:22]URL: /json_proto [19:34:22]Method is POST - this is cgi request [19:34:22]url: /json_proto [19:34:22]query_string will be loaded in cgi processing [19:34:22]execute_cgi json_proto POST (null) [19:34:22]execute_cgi path=json_proto method=POST [19:34:22]POST find Content-Length [19:34:22]Host: 172.17.45.67:8080 [19:34:22]Content-Length: 792 [19:34:22]Content-Type: application/json [19:34:22] [19:34:22]POST finish read [19:34:22]Found Content-Length = 792 [19:34:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:22]execute_script... [19:34: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)593312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:22]POST & json_proto [19:34:22]process_json_proto [19:34:22]json parsed OK: [19:34:22]protocol is kg_v1.0 [19:34:22]action value=close_receipt [19:34:22]process_action close_receipt [19:34:22]cmd_close_receipt [19:34:22]MH_GetDate [19:34:22]Write to MH i2c: F0 00 00 2A 30 49 [19:34:22]Write i2c OK [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: F0 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: F0 09 00 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: F0 09 00 2A 30 00 40 9E C3 66 5F 7F 2B 66 C8 [19:34:22]GetLastDocTimeStamp 1724095988 [19:34:22]current date 1724096064 [19:34:22]FM_GetShiftState [19:34:22]SAM_PROTO_GetShiftState [19:34:22]wFMCommunicate request_size=4 [19:34:22]MH_SAM_APDU [19:34:22]CAPDU: 80 13 01 00 [19:34:22]Write to MH i2c: E2 08 00 2B 30 80 13 01 00 00 00 00 00 D8 [19:34:22]Write i2c OK [19:34:22]MH_I2C_Read... [19:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:22]Read from MH i2c: E2 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 0E 00 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 0E 00 2B 30 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8F [19:34:22]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:34:22]wFMCommunicate OK [19:34:22]SAM_PROTO_GetShiftState done [19:34:22]FM_GetShiftState done [19:34:22]opened in 1724027888 [19:34:22]opened+sec_in_day 1724114288 [19:34:22]quantity*price = 0 [19:34:22]sum+1 = 1 [19:34:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 305 19.08.2024 19:34 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139470 ФПД: 108118154735693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T193424&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139470&fm=108118154735693&tin=02508201610067®Number=0000000000092569&sum=0 [19:34:23]StoreToDocumentArchive [19:34:23]shift 452 fd 139470 [19:34:23]save to /storage/0452/doc_00139470 [19:34:23]save last doc name /storage/0452/doc_00139470 to /storage/kkm_last_doc_name [19:34:23]save OK [19:34:23]Clear old archive folders... [19:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:23]tlvbuf is 01237980 [19:34:23]SAM_PROTO_ClearQueue [19:34:23]wFMCommunicate request_size=4 [19:34:23]MH_SAM_APDU [19:34:23]CAPDU: 80 09 00 00 [19:34:23]Write to MH i2c: E2 08 00 38 30 80 09 00 00 00 00 00 00 DA [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:23]Read from MH i2c: E2 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 38 30 00 90 00 DC [19:34:23]RAPDU: 90 00 [19:34:23]wFMCommunicate OK [19:34:23]SAM_PROTO_ClearQueue done [19:34:23]KKMCreateOFDPacket [19:34:23]OFDProtocolAddRootSTLVToBuf [19:34:23]FM_MakeSignedData [19:34:23]FM_MakeSignedData [19:34:23]SAM_PROTO_SignData [19:34:23]wFMCommunicate request_size=4 [19:34:23]MH_SAM_APDU [19:34:23]CAPDU: 80 0D 01 02 [19:34:23]Write to MH i2c: E2 08 00 39 30 80 0D 01 02 00 00 00 00 E2 [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:23]Read from MH i2c: E2 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 [19:34:23]MH_I2C_Read... [19:34:23]Read from MH i2c: E2 03 00 39 30 00 90 00 DD [19:34:23]RAPDU: 90 00 [19:34:23]wFMCommunicate OK [19:34:23]wFMCommunicate request_size=255 [19:34:23]MH_SAM_APDU [19:34: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 B0 36 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 31 01 00 00 F4 03 04 00 40 9E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 20 02 00 35 04 06 00 62 [19:34:23]Write to MH i2c: E2 02 01 3A 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 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 31 01 00 00 F4 03 04 00 40 9E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 20 02 00 35 04 06 00 62 00 00 2C [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 3A 30 00 90 00 DE [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]wFMCommunicate request_size=10 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 0D 02 02 05 55 38 34 F0 4D [19:34:24]Write to MH i2c: E2 0D 00 3B 30 80 0D 02 02 05 00 55 38 34 F0 4D 00 00 ED [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 3B 30 00 90 00 DF [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 0D 03 02 [19:34:24]Write to MH i2c: E2 08 00 3C 30 80 0D 03 02 00 00 00 00 E7 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 0B 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 0B 00 3C 30 00 E4 05 F1 C3 97 3E B7 24 90 00 35 [19:34:24]RAPDU: E4 05 F1 C3 97 3E B7 24 90 00 [19:34:24]wFMCommunicate OK [19:34:24]SAM_PROTO_SignData done [19:34:24]FM_MakeSignedData done [19:34:24]CreateOFDProtocolMessage [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 11 00 00 [19:34:24]Write to MH i2c: E2 08 00 3D 30 80 11 00 00 00 00 00 00 E7 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 17 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 17 00 3D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [19:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:34:24]wFMCommunicate OK [19:34:24]CreateOFDProtocolMessage done [19:34:24]OFDSenderStorePacket 139470 [19:34:24]StoreOFDPacket docnum=139470 [19:34:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 00 1F 07 01 24 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 B0 36 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 31 01 00 00 F4 03 04 00 40 9E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 20 02 00 35 04 06 00 62 55 38 34 F0 4D E4 05 F1 C3 97 3E B7 24 [19:34:24]CheckFolder [19:34:24]dirname=/storage/ofd_packets [19:34:24]CheckFolder done [19:34:24]ProducePacketName [19:34:24]name=ofd_packets/00139470 [19:34:24]NVStorageSaveData ofd_packets/00139470 [19:34:24]File name is /storage/ofd_packets/00139470 [19:34:24]Write 301 bytes [19:34:24]NVStorageSaveData done [19:34:24]OFDSenderStorePacket done [19:34:24]KKMCreateOFDPacket done [19:34:24]NVStorageSaveData kkm_last_timestamp [19:34:24]File name is /storage/kkm_last_timestamp [19:34:24]Write 4 bytes [19:34:24]NVStorageSaveData done [19:34:24]ExternCall_PrintAddStr [19:34:24]wPrintStart [19:34:24]Write to MH i2c: 01 00 00 3E 30 6E [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 3E 30 00 00 00 00 00 FF 0F 83 [19:34:24]RasterBufferAndPrint [19:34:24]line Счет N : (1)593312 [19:34:24]line ИНН: 02508201610067 [19:34:24]line Контрольно-Кассовый Чек [19:34:24]line ПРОДАЖА [19:34:24]line ТРК (МРК, ГНК) : 52 [19:34:24]line Товар: 2710124130 [19:34:24]line Аи-92-К-5 [19:34:24]line 14.000 * 0.00 [19:34:24]line = 0.00 [19:34:24]line НДС 12% НСП 1% [19:34:24]line > о реализуемом товаре [19:34:24]line ИТОГО: 0.00 [19:34:24]line НСП 1% : 0.00 [19:34:24]line НДС 12% : 0.00 [19:34:24]line Наличными: 0.00 [19:34:24]line Безнал.: 0.00 [19:34:24]line Место: АЗС № 136 "Партнер Нефть" [19:34:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:34:24]line СНО: Общий режим [19:34:24]line Чек 305 19.08.2024 19:34 [19:34:24]line Смена: 452 ФФД: 1.0 [19:34:24]line ЗНМ: 0300000067 [19:34:24]line РНМ: 0000000000092569 [19:34:24]line Версия ККМ: 001 [19:34:24]line Талоны: Топливная Карта [19:34:24]line 99761 [19:34:24]line ФМ: 0000000000871776 [19:34:24]line ФД: 139470 [19:34:24]line ФПД: 108118154735693 [19:34:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T193424&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139470&fm=108118154735693&tin=02508201610067®Number=0000000000092569&sum=0 [19:34:24]written 0, free lines is 4095 [19:34:24]OFD Sender: Processing packet 139470 [packets to send 137, broken 136] [19:34:24]ProducePacketName [19:34:24]name=ofd_packets/00139470 [19:34:24]OFD Sender: To server: pG, [19:34:24]CommunicateWithHost lk.salyk.kg:30040 [19:34:24]ConnectInit lk.salyk.kg [19:34:24]Connected sock=10 [19:34: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 37 36 0F 01 00 00 00 1F 07 01 24 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 B0 36 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 31 01 00 00 F4 03 04 00 40 9E C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 20 02 00 35 04 06 00 62 55 38 34 F0 4D E4 05 F1 C3 97 3E B7 24 [19:34: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 37 36 4F 00 00 00 07 DD 47 00 36 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 20 02 00 F4 03 04 00 D5 44 C3 66 B6 04 01 00 00 F8 2A 7E B4 70 14 64 18 [19:34:24]CommunicateWithHost err = 0 [19:34:24]CheckOFDResponse [19:34:24]1017 (14) - 77093643461234 [19:34:24]1041 (16) - 0000000000871776 [19:34:24]1040 (4) - 139470 [19:34:24]1012 (4) - 19.08.2024 13:12 [19:34:24]1206 (1) - 0 [19:34:24]OFD Sender: Remove packet 139470 [19:34:24]ProducePacketName [19:34:24]name=ofd_packets/00139470 [19:34:24]NVStorageDeleteData [19:34:24]Write to MH i2c: 01 00 00 68 30 98 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 68 30 00 00 00 00 00 03 0D AF [19:34:24]RasterBufferAndPrint [19:34:24]line [19:34:24]line [19:34:24]line [19:34:24]line [19:34:24]line [19:34:24]written 0, free lines is 3338 [19:34:24]MH_Cut [19:34:24]Write to MH i2c: D1 01 00 6F 30 01 71 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: D1 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: D1 01 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: D1 01 00 6F 30 00 70 [19:34:24]Write to MH i2c: 01 00 00 70 30 A0 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:25]OFD Sender: No OFD packet to send [19:34:25]*** Cut start [19:34:25]*** Partial cut [19:34:25]*** CUTSNS_PIN = 1 [19:34:25]*** CUTSNS_PIN = 0 [19:34:25]*** Brake cut motor [19:34:26]Read from MH i2c: 01 [19:34:26]*** Stop cut motor [19:34:26]*** Cut end [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: 01 07 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: 01 07 00 70 30 00 00 00 00 00 FF 0F B5 [19:34:26]process_action close_receipt done [19:34:26]requested_data is exist [19:34:26]produce_requested_data [19:34:26]requested_item fm.sn is exist - process it [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 11 00 00 [19:34:26]Write to MH i2c: E2 08 00 71 30 80 11 00 00 00 00 00 00 1B [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 17 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 17 00 71 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [19:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:34:26]wFMCommunicate OK [19:34:26]requested_item fd.num is exist - process it [19:34:26]SAM_PROTO_GetFieldsCounters [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 13 00 00 [19:34:26]Write to MH i2c: E2 08 00 72 30 80 13 00 00 00 00 00 00 1E [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 62 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 62 00 72 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 20 02 00 0E 04 04 00 C4 01 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 94 [19:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 20 02 00 0E 04 04 00 C4 01 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 [19:34:26]wFMCommunicate OK [19:34:26]SAM_PROTO_GetFieldsCounters done [19:34:26]requested_item shift.num is exist - process it [19:34:26]requested_item shift.opened is exist - process it [19:34:26]req_shift_opened [19:34:26]FM_GetShiftState [19:34:26]SAM_PROTO_GetShiftState [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 13 01 00 [19:34:26]Write to MH i2c: E2 08 00 73 30 80 13 01 00 00 00 00 00 20 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 0E 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 0E 00 73 30 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D7 [19:34:26]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:34:26]wFMCommunicate OK [19:34:26]SAM_PROTO_GetShiftState done [19:34:26]FM_GetShiftState done [19:34:26]req_shift_opened done [19:34:26]requested_item shift.open_date is exist - process it [19:34:26]req_shift_open_date [19:34:26]req_shift_open_date done [19:34:26]produce_requested_data done [19:34:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139470,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:34:26]process_action_free close_receipt [19:34:26]json_value_free [19:34:26]json_value_free done [19:34:26]process_json_proto returns [19:34:26]Send response to host [19:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139470,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:34:26]free response buf [19:34:26]execute_script done [19:34:26]execute_script returns [19:34:26]free content buf [19:34:26]Sock 8.Close socket [19:34:26]Sock 8.Thread stoped [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:37:59]accept exits with 9 [19:37:59]New connection [19:37:59]New thread 3066817892 created [19:37:59]Thread 3066674532 joined [19:37:59]Waiting for new connection... [19:37:59] Sock 9.Parse request [19:37:59]Sock 9.Check first char [19:37:59]Sock 9.First char is OK [19:37:59]request: POST /json_proto HTTP/1.0 [19:37:59]Method: POST [19:37:59]URL: /json_proto [19:37:59]Method is POST - this is cgi request [19:37:59]url: /json_proto [19:37:59]query_string will be loaded in cgi processing [19:37:59]execute_cgi json_proto POST (null) [19:37:59]execute_cgi path=json_proto method=POST [19:37:59]POST find Content-Length [19:37:59]Host: 172.17.45.67:8080 [19:37:59]Content-Length: 838 [19:37:59]Content-Type: application/json [19:37:59] [19:37:59]POST finish read [19:37:59]Found Content-Length = 838 [19:37:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:59]execute_script... [19:37: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)593313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:59]POST & json_proto [19:37:59]process_json_proto [19:37:59]json parsed OK: [19:37:59]protocol is kg_v1.0 [19:37:59]action value=close_receipt [19:37:59]process_action close_receipt [19:37:59]cmd_close_receipt [19:37:59]MH_GetDate [19:37:59]Write to MH i2c: F0 00 00 74 30 93 [19:37:59]Write i2c OK [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: F0 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: F0 09 00 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: F0 09 00 74 30 00 19 9F C3 66 5F 7F 2B 66 EC [19:37:59]GetLastDocTimeStamp 1724096064 [19:37:59]current date 1724096281 [19:37:59]FM_GetShiftState [19:37:59]SAM_PROTO_GetShiftState [19:37:59]wFMCommunicate request_size=4 [19:37:59]MH_SAM_APDU [19:37:59]CAPDU: 80 13 01 00 [19:37:59]Write to MH i2c: E2 08 00 75 30 80 13 01 00 00 00 00 00 22 [19:37:59]Write i2c OK [19:37:59]MH_I2C_Read... [19:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:59]Read from MH i2c: E2 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 0E 00 [19:37:59]MH_I2C_Read... [19:37:59]Read from MH i2c: E2 0E 00 75 30 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D9 [19:37:59]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:37:59]wFMCommunicate OK [19:37:59]SAM_PROTO_GetShiftState done [19:37:59]FM_GetShiftState done [19:37:59]opened in 1724027888 [19:37:59]opened+sec_in_day 1724114288 [19:37:59]quantity*price = 100021 [19:37:59]sum+1 = 100023 [19:37:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 306 19.08.2024 19:38 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139471 ФПД: 55111543549939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T193801&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139471&fm=55111543549939&tin=02508201610067®Number=0000000000092569&sum=100000 [19:38:00]StoreToDocumentArchive [19:38:00]shift 452 fd 139471 [19:38:00]save to /storage/0452/doc_00139471 [19:38:00]save last doc name /storage/0452/doc_00139471 to /storage/kkm_last_doc_name [19:38:00]save OK [19:38:00]Clear old archive folders... [19:38:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:00]tlvbuf is 011E5520 [19:38:00]SAM_PROTO_ClearQueue [19:38:00]wFMCommunicate request_size=4 [19:38:00]MH_SAM_APDU [19:38:00]CAPDU: 80 09 00 00 [19:38:00]Write to MH i2c: E2 08 00 82 30 80 09 00 00 00 00 00 00 24 [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:00]Read from MH i2c: E2 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 03 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 03 00 82 30 00 90 00 26 [19:38:00]RAPDU: 90 00 [19:38:00]wFMCommunicate OK [19:38:00]SAM_PROTO_ClearQueue done [19:38:00]KKMCreateOFDPacket [19:38:00]OFDProtocolAddRootSTLVToBuf [19:38:00]FM_MakeSignedData [19:38:00]FM_MakeSignedData [19:38:00]SAM_PROTO_SignData [19:38:00]wFMCommunicate request_size=4 [19:38:00]MH_SAM_APDU [19:38:00]CAPDU: 80 0D 01 02 [19:38:00]Write to MH i2c: E2 08 00 83 30 80 0D 01 02 00 00 00 00 2C [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:00]Read from MH i2c: E2 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 03 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 03 00 83 30 00 90 00 27 [19:38:00]RAPDU: 90 00 [19:38:00]wFMCommunicate OK [19:38:00]wFMCommunicate request_size=255 [19:38:00]MH_SAM_APDU [19:38:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 19 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 20 02 00 35 04 06 00 32 [19:38:00]Write to MH i2c: E2 02 01 84 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 19 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 20 02 00 35 04 06 00 32 00 00 DE [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]OFD Sender: No OFD packet to send [19:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:00]Read from MH i2c: E2 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 03 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 03 00 84 30 00 90 00 28 [19:38:00]RAPDU: 90 00 [19:38:00]wFMCommunicate OK [19:38:00]wFMCommunicate request_size=10 [19:38:00]MH_SAM_APDU [19:38:00]CAPDU: 80 0D 02 02 05 1F A7 F9 EF F3 [19:38:00]Write to MH i2c: E2 0D 00 85 30 80 0D 02 02 05 00 1F A7 F9 EF F3 00 00 DA [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:00]Read from MH i2c: E2 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 03 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 03 00 85 30 00 90 00 29 [19:38:00]RAPDU: 90 00 [19:38:00]wFMCommunicate OK [19:38:00]wFMCommunicate request_size=4 [19:38:00]MH_SAM_APDU [19:38:00]CAPDU: 80 0D 03 02 [19:38:00]Write to MH i2c: E2 08 00 86 30 80 0D 03 02 00 00 00 00 31 [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:00]Read from MH i2c: E2 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 0B 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 0B 00 86 30 00 B5 9C 6F B0 2D 3E 71 AB 90 00 29 [19:38:00]RAPDU: B5 9C 6F B0 2D 3E 71 AB 90 00 [19:38:00]wFMCommunicate OK [19:38:00]SAM_PROTO_SignData done [19:38:00]FM_MakeSignedData done [19:38:00]CreateOFDProtocolMessage [19:38:00]wFMCommunicate request_size=4 [19:38:00]MH_SAM_APDU [19:38:00]CAPDU: 80 11 00 00 [19:38:00]Write to MH i2c: E2 08 00 87 30 80 11 00 00 00 00 00 00 31 [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:00]Read from MH i2c: E2 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 17 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: E2 17 00 87 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [19:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:38:00]wFMCommunicate OK [19:38:00]CreateOFDProtocolMessage done [19:38:00]OFDSenderStorePacket 139471 [19:38:00]StoreOFDPacket docnum=139471 [19:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 39 C2 07 01 27 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 19 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 20 02 00 35 04 06 00 32 1F A7 F9 EF F3 B5 9C 6F B0 2D 3E 71 AB [19:38:00]CheckFolder [19:38:00]dirname=/storage/ofd_packets [19:38:00]CheckFolder done [19:38:00]ProducePacketName [19:38:00]name=ofd_packets/00139471 [19:38:00]NVStorageSaveData ofd_packets/00139471 [19:38:00]File name is /storage/ofd_packets/00139471 [19:38:00]Write 301 bytes [19:38:00]NVStorageSaveData done [19:38:00]OFDSenderStorePacket done [19:38:00]KKMCreateOFDPacket done [19:38:00]NVStorageSaveData kkm_last_timestamp [19:38:00]File name is /storage/kkm_last_timestamp [19:38:00]Write 4 bytes [19:38:00]NVStorageSaveData done [19:38:00]ExternCall_PrintAddStr [19:38:00]wPrintStart [19:38:00]Write to MH i2c: 01 00 00 88 30 B8 [19:38:00]Write i2c OK [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: 01 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: 01 07 00 [19:38:00]MH_I2C_Read... [19:38:00]Read from MH i2c: 01 07 00 88 30 00 00 00 00 00 FF 0F CD [19:38:00]RasterBufferAndPrint [19:38:00]line Счет N : (1)593313 [19:38:00]line ИНН: 02508201610067 [19:38:00]line Контрольно-Кассовый Чек [19:38:00]line ПРОДАЖА [19:38:00]line ТРК (МРК, ГНК) : 31 [19:38:00]line Товар: 2710124500 [19:38:00]line Аи-95-К-5 [19:38:00]line 13.480 * 74.20 [19:38:00]line = 1000.22 [19:38:00]line НДС 12% НСП 1% [19:38:00]line > о реализуемом товаре [19:38:00]line ОКРУГЛЕНИЕ: -0.22 [19:38:00]line ИТОГО: 1000.00 [19:38:00]line НСП 1% : 8.85 [19:38:00]line НДС 12% : 106.22 [19:38:00]line Наличными: 0.00 [19:38:00]line Безнал.: 1000.00 [19:38:00]line Место: АЗС № 136 "Партнер Нефть" [19:38:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:38:00]line СНО: Общий режим [19:38:00]line Чек 306 19.08.2024 19:38 [19:38:00]line Смена: 452 ФФД: 1.0 [19:38:00]line ЗНМ: 0300000067 [19:38:00]line РНМ: 0000000000092569 [19:38:00]line Версия ККМ: 001 [19:38:00]line Платежная система: Бакай Банк [19:38:00]line ФМ: 0000000000871776 [19:38:00]line ФД: 139471 [19:38:00]line ФПД: 55111543549939 [19:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T193801&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139471&fm=55111543549939&tin=02508201610067®Number=0000000000092569&sum=100000 [19:38:00]OFD Sender: Processing packet 139471 [packets to send 137, broken 136] [19:38:00]ProducePacketName [19:38:00]name=ofd_packets/00139471 [19:38:00]OFD Sender: To server: pG, [19:38:00]CommunicateWithHost lk.salyk.kg:30040 [19:38:00]ConnectInit lk.salyk.kg [19:38:00]written 0, free lines is 4095 [19:38:01]Connected sock=10 [19:38: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 37 36 0F 01 00 00 39 C2 07 01 27 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 19 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 20 02 00 35 04 06 00 32 1F A7 F9 EF F3 B5 9C 6F B0 2D 3E 71 AB [19:38: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 37 36 4F 00 00 00 74 2C 47 00 57 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 37 36 10 04 04 00 CF 20 02 00 F4 03 04 00 AE 45 C3 66 B6 04 01 00 00 54 57 64 B6 50 A3 3C 3D [19:38:01]CommunicateWithHost err = 0 [19:38:01]CheckOFDResponse [19:38:01]1017 (14) - 77093643461234 [19:38:01]1041 (16) - 0000000000871776 [19:38:01]1040 (4) - 139471 [19:38:01]1012 (4) - 19.08.2024 13:16 [19:38:01]1206 (1) - 0 [19:38:01]OFD Sender: Remove packet 139471 [19:38:01]ProducePacketName [19:38:01]name=ofd_packets/00139471 [19:38:01]NVStorageDeleteData [19:38:01]Write to MH i2c: 01 00 00 B3 30 E3 [19:38:01]Write i2c OK [19:38:01]MH_I2C_Read... [19:38:01]Read from MH i2c: 01 [19:38:01]MH_I2C_Read... [19:38:01]Read from MH i2c: 01 07 00 [19:38:01]MH_I2C_Read... [19:38:01]Read from MH i2c: 01 07 00 B3 30 00 00 00 00 00 EB 0C E1 [19:38:01]RasterBufferAndPrint [19:38:01]line [19:38:01]line [19:38:01]line [19:38:01]line [19:38:01]line [19:38:01]written 0, free lines is 3314 [19:38:01]MH_Cut [19:38:01]Write to MH i2c: D1 01 00 BA 30 01 BC [19:38:01]Write i2c OK [19:38:01]MH_I2C_Read... [19:38:01]Read from MH i2c: D1 [19:38:01]MH_I2C_Read... [19:38:01]Read from MH i2c: D1 01 00 [19:38:01]MH_I2C_Read... [19:38:01]Read from MH i2c: D1 01 00 BA 30 00 BB [19:38:01]Write to MH i2c: 01 00 00 BB 30 EB [19:38:01]Write i2c OK [19:38:01]MH_I2C_Read... [19:38:01]OFD Sender: No OFD packet to send [19:38:02]*** Cut start [19:38:02]*** Partial cut [19:38:02]*** CUTSNS_PIN = 1 [19:38:02]*** CUTSNS_PIN = 0 [19:38:02]*** Brake cut motor [19:38:02]Read from MH i2c: 01 [19:38:02]MH_I2C_Read... [19:38:02]*** Stop cut motor [19:38:02]*** Cut end [19:38:02]Read from MH i2c: 01 07 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: 01 07 00 BB 30 00 00 00 00 00 FF 0F 00 [19:38:02]process_action close_receipt done [19:38:02]requested_data is exist [19:38:02]produce_requested_data [19:38:02]requested_item fm.sn is exist - process it [19:38:02]wFMCommunicate request_size=4 [19:38:02]MH_SAM_APDU [19:38:02]CAPDU: 80 11 00 00 [19:38:02]Write to MH i2c: E2 08 00 BC 30 80 11 00 00 00 00 00 00 66 [19:38:02]Write i2c OK [19:38:02]MH_I2C_Read... [19:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:02]Read from MH i2c: E2 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 17 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 17 00 BC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [19:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:38:02]wFMCommunicate OK [19:38:02]requested_item fd.num is exist - process it [19:38:02]SAM_PROTO_GetFieldsCounters [19:38:02]wFMCommunicate request_size=4 [19:38:02]MH_SAM_APDU [19:38:02]CAPDU: 80 13 00 00 [19:38:02]Write to MH i2c: E2 08 00 BD 30 80 13 00 00 00 00 00 00 69 [19:38:02]Write i2c OK [19:38:02]MH_I2C_Read... [19:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:02]Read from MH i2c: E2 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 62 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 62 00 BD 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 20 02 00 0E 04 04 00 C4 01 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 E3 [19:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 20 02 00 0E 04 04 00 C4 01 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 [19:38:02]wFMCommunicate OK [19:38:02]SAM_PROTO_GetFieldsCounters done [19:38:02]requested_item shift.num is exist - process it [19:38:02]requested_item shift.opened is exist - process it [19:38:02]req_shift_opened [19:38:02]FM_GetShiftState [19:38:02]SAM_PROTO_GetShiftState [19:38:02]wFMCommunicate request_size=4 [19:38:02]MH_SAM_APDU [19:38:02]CAPDU: 80 13 01 00 [19:38:02]Write to MH i2c: E2 08 00 BE 30 80 13 01 00 00 00 00 00 6B [19:38:02]Write i2c OK [19:38:02]MH_I2C_Read... [19:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:02]Read from MH i2c: E2 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 0E 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 0E 00 BE 30 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 22 [19:38:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:38:02]wFMCommunicate OK [19:38:02]SAM_PROTO_GetShiftState done [19:38:02]FM_GetShiftState done [19:38:02]req_shift_opened done [19:38:02]requested_item shift.open_date is exist - process it [19:38:02]req_shift_open_date [19:38:02]req_shift_open_date done [19:38:02]produce_requested_data done [19:38:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139471,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:38:02]process_action_free close_receipt [19:38:02]json_value_free [19:38:02]json_value_free done [19:38:02]process_json_proto returns [19:38:02]Send response to host [19:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139471,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:38:02]free response buf [19:38:02]execute_script done [19:38:02]execute_script returns [19:38:02]free content buf [19:38:02]Sock 9.Close socket [19:38:02]Sock 9.Thread stoped [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39: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:43]accept exits with 8 [19:40:43]New connection [19:40:43]New thread 3066674532 created [19:40:43]Thread 3066817892 joined [19:40:43]Waiting for new connection... [19:40:43] Sock 8.Parse request [19:40:43]Sock 8.Check first char [19:40:43]Sock 8.First char is OK [19:40:43]request: POST /json_proto HTTP/1.0 [19:40:43]Method: POST [19:40:43]URL: /json_proto [19:40:43]Method is POST - this is cgi request [19:40:43]url: /json_proto [19:40:43]query_string will be loaded in cgi processing [19:40:43]execute_cgi json_proto POST (null) [19:40:43]execute_cgi path=json_proto method=POST [19:40:43]POST find Content-Length [19:40:43]Host: 172.17.45.67:8080 [19:40:43]Content-Length: 677 [19:40:43]Content-Type: application/json [19:40:43] [19:40:43]POST finish read [19:40:43]Found Content-Length = 677 [19:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:43]execute_script... [19:40: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)593315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:43]POST & json_proto [19:40:43]process_json_proto [19:40:43]json parsed OK: [19:40:43]protocol is kg_v1.0 [19:40:43]action value=close_receipt [19:40:43]process_action close_receipt [19:40:43]cmd_close_receipt [19:40:43]MH_GetDate [19:40:43]Write to MH i2c: F0 00 00 BF 30 DE [19:40:43]Write i2c OK [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: F0 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: F0 09 00 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: F0 09 00 BF 30 00 BD 9F C3 66 5F 7F 2B 66 DB [19:40:43]GetLastDocTimeStamp 1724096281 [19:40:43]current date 1724096445 [19:40:43]FM_GetShiftState [19:40:43]SAM_PROTO_GetShiftState [19:40:43]wFMCommunicate request_size=4 [19:40:43]MH_SAM_APDU [19:40:43]CAPDU: 80 13 01 00 [19:40:43]Write to MH i2c: E2 08 00 C0 30 80 13 01 00 00 00 00 00 6D [19:40:43]Write i2c OK [19:40:43]MH_I2C_Read... [19:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:43]Read from MH i2c: E2 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 0E 00 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 0E 00 C0 30 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 24 [19:40:43]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:40:43]wFMCommunicate OK [19:40:43]SAM_PROTO_GetShiftState done [19:40:43]FM_GetShiftState done [19:40:43]opened in 1724027888 [19:40:43]opened+sec_in_day 1724114288 [19:40:43]quantity*price = 30035 [19:40:43]sum+1 = 30036 [19:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 307 19.08.2024 19:40 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139472 ФПД: 54380532697493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194045&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139472&fm=54380532697493&tin=02508201610067®Number=0000000000092569&sum=30000 [19:40:44]StoreToDocumentArchive [19:40:44]shift 452 fd 139472 [19:40:44]save to /storage/0452/doc_00139472 [19:40:44]save last doc name /storage/0452/doc_00139472 to /storage/kkm_last_doc_name [19:40:44]save OK [19:40:44]Clear old archive folders... [19:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:44]tlvbuf is 012E24F0 [19:40:44]SAM_PROTO_ClearQueue [19:40:44]wFMCommunicate request_size=4 [19:40:44]MH_SAM_APDU [19:40:44]CAPDU: 80 09 00 00 [19:40:44]Write to MH i2c: E2 08 00 CD 30 80 09 00 00 00 00 00 00 6F [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:44]Read from MH i2c: E2 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 CD 30 00 90 00 71 [19:40:44]RAPDU: 90 00 [19:40:44]wFMCommunicate OK [19:40:44]SAM_PROTO_ClearQueue done [19:40:44]KKMCreateOFDPacket [19:40:44]OFDProtocolAddRootSTLVToBuf [19:40:44]FM_MakeSignedData [19:40:44]FM_MakeSignedData [19:40:44]SAM_PROTO_SignData [19:40:44]wFMCommunicate request_size=4 [19:40:44]MH_SAM_APDU [19:40:44]CAPDU: 80 0D 01 02 [19:40:44]Write to MH i2c: E2 08 00 CE 30 80 0D 01 02 00 00 00 00 77 [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:44]Read from MH i2c: E2 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 [19:40:44]MH_I2C_Read... [19:40:44]Read from MH i2c: E2 03 00 CE 30 00 90 00 72 [19:40:44]RAPDU: 90 00 [19:40:44]wFMCommunicate OK [19:40:44]wFMCommunicate request_size=255 [19:40:44]MH_SAM_APDU [19:40: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BD 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 20 02 00 35 04 06 00 31 [19:40:44]Write to MH i2c: E2 02 01 CF 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BD 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 20 02 00 35 04 06 00 31 00 00 C0 [19:40:44]Write i2c OK [19:40:44]MH_I2C_Read... [19:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:45]Read from MH i2c: E2 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 CF 30 00 90 00 73 [19:40:45]RAPDU: 90 00 [19:40:45]wFMCommunicate OK [19:40:45]wFMCommunicate request_size=10 [19:40:45]MH_SAM_APDU [19:40:45]CAPDU: 80 0D 02 02 05 75 74 55 89 95 [19:40:45]Write to MH i2c: E2 0D 00 D0 30 80 0D 02 02 05 00 75 74 55 89 95 00 00 E0 [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:45]Read from MH i2c: E2 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 03 00 D0 30 00 90 00 74 [19:40:45]RAPDU: 90 00 [19:40:45]wFMCommunicate OK [19:40:45]wFMCommunicate request_size=4 [19:40:45]MH_SAM_APDU [19:40:45]CAPDU: 80 0D 03 02 [19:40:45]Write to MH i2c: E2 08 00 D1 30 80 0D 03 02 00 00 00 00 7C [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:45]Read from MH i2c: E2 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 0B 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 0B 00 D1 30 00 D4 00 52 6B 2A 7D B2 9C 90 00 03 [19:40:45]RAPDU: D4 00 52 6B 2A 7D B2 9C 90 00 [19:40:45]wFMCommunicate OK [19:40:45]SAM_PROTO_SignData done [19:40:45]FM_MakeSignedData done [19:40:45]CreateOFDProtocolMessage [19:40:45]wFMCommunicate request_size=4 [19:40:45]MH_SAM_APDU [19:40:45]CAPDU: 80 11 00 00 [19:40:45]Write to MH i2c: E2 08 00 D2 30 80 11 00 00 00 00 00 00 7C [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:45]Read from MH i2c: E2 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 17 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: E2 17 00 D2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [19:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:40:45]wFMCommunicate OK [19:40:45]CreateOFDProtocolMessage done [19:40:45]OFDSenderStorePacket 139472 [19:40:45]StoreOFDPacket docnum=139472 [19:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4F 47 07 01 37 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BD 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 20 02 00 35 04 06 00 31 75 74 55 89 95 D4 00 52 6B 2A 7D B2 9C [19:40:45]CheckFolder [19:40:45]dirname=/storage/ofd_packets [19:40:45]CheckFolder done [19:40:45]ProducePacketName [19:40:45]name=ofd_packets/00139472 [19:40:45]NVStorageSaveData ofd_packets/00139472 [19:40:45]File name is /storage/ofd_packets/00139472 [19:40:45]Write 301 bytes [19:40:45]NVStorageSaveData done [19:40:45]OFDSenderStorePacket done [19:40:45]KKMCreateOFDPacket done [19:40:45]NVStorageSaveData kkm_last_timestamp [19:40:45]File name is /storage/kkm_last_timestamp [19:40:45]Write 4 bytes [19:40:45]NVStorageSaveData done [19:40:45]ExternCall_PrintAddStr [19:40:45]wPrintStart [19:40:45]Write to MH i2c: 01 00 00 D3 30 03 [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: 01 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: 01 07 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: 01 07 00 D3 30 00 00 00 00 00 FF 0F 18 [19:40:45]RasterBufferAndPrint [19:40:45]line Счет N : (1)593315 [19:40:45]line ИНН: 02508201610067 [19:40:45]line Контрольно-Кассовый Чек [19:40:45]line ПРОДАЖА [19:40:45]line ТРК (МРК, ГНК) : 62 [19:40:45]line Товар: 2710124130 [19:40:45]line Аи-92-К-5 [19:40:45]line 4.430 * 67.80 [19:40:45]line = 300.35 [19:40:45]line НДС 12% НСП 1% [19:40:45]line > о реализуемом товаре [19:40:45]line ОКРУГЛЕНИЕ: -0.35 [19:40:45]line ИТОГО: 300.00 [19:40:45]line Внесено: 300.00 [19:40:45]line СДАЧА: 0.00 [19:40:45]line НСП 1% : 2.66 [19:40:45]line НДС 12% : 31.90 [19:40:45]line Наличными: 300.00 [19:40:45]line Безнал.: 0.00 [19:40:45]line Место: АЗС № 136 "Партнер Нефть" [19:40:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:40:45]line СНО: Общий режим [19:40:45]line Чек 307 19.08.2024 19:40 [19:40:45]line Смена: 452 ФФД: 1.0 [19:40:45]line ЗНМ: 0300000067 [19:40:45]line РНМ: 0000000000092569 [19:40:45]line Версия ККМ: 001 [19:40:45]line ФМ: 0000000000871776 [19:40:45]line ФД: 139472 [19:40:45]line ФПД: 54380532697493 [19:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194045&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139472&fm=54380532697493&tin=02508201610067®Number=0000000000092569&sum=30000 [19:40:45]OFD Sender: Processing packet 139472 [packets to send 137, broken 136] [19:40:45]ProducePacketName [19:40:45]name=ofd_packets/00139472 [19:40:45]OFD Sender: To server: pG, [19:40:45]CommunicateWithHost lk.salyk.kg:30040 [19:40:45]ConnectInit lk.salyk.kg [19:40:45]written 0, free lines is 4095 [19:40:45]Connected sock=10 [19:40: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 37 36 0F 01 00 00 4F 47 07 01 37 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BD 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 20 02 00 35 04 06 00 31 75 74 55 89 95 D4 00 52 6B 2A 7D B2 9C [19:40: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 37 36 4F 00 00 00 87 29 47 00 CA 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 37 36 10 04 04 00 D0 20 02 00 F4 03 04 00 52 46 C3 66 B6 04 01 00 00 DE 9E 67 58 56 61 1B 0D [19:40:45]CommunicateWithHost err = 0 [19:40:45]CheckOFDResponse [19:40:45]1017 (14) - 77093643461234 [19:40:45]1041 (16) - 0000000000871776 [19:40:45]1040 (4) - 139472 [19:40:45]1012 (4) - 19.08.2024 13:19 [19:40:45]1206 (1) - 0 [19:40:45]OFD Sender: Remove packet 139472 [19:40:45]ProducePacketName [19:40:45]name=ofd_packets/00139472 [19:40:45]NVStorageDeleteData [19:40:45]Write to MH i2c: 01 00 00 FE 30 2E [19:40:45]Write i2c OK [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: 01 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: 01 07 00 [19:40:45]MH_I2C_Read... [19:40:45]Read from MH i2c: 01 07 00 FE 30 00 00 00 00 00 DD 0C 1E [19:40:45]RasterBufferAndPrint [19:40:45]line [19:40:45]line [19:40:45]line [19:40:45]line [19:40:45]line [19:40:45]written 0, free lines is 3299 [19:40:46]MH_Cut [19:40:46]Write to MH i2c: D1 01 00 05 31 01 08 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: D1 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: D1 01 00 [19:40:46]MH_I2C_Read... [19:40:46]Read from MH i2c: D1 01 00 05 31 00 07 [19:40:46]Write to MH i2c: 01 00 00 06 31 37 [19:40:46]Write i2c OK [19:40:46]MH_I2C_Read... [19:40:46]OFD Sender: No OFD packet to send [19:40:46]*** Cut start [19:40:46]*** Partial cut [19:40:46]*** CUTSNS_PIN = 1 [19:40:46]*** CUTSNS_PIN = 0 [19:40:46]*** Brake cut motor [19:40:47]Read from MH i2c: 01 [19:40:47]MH_I2C_Read... [19:40:47]*** Stop cut motor [19:40:47]*** Cut end [19:40:47]Read from MH i2c: 01 07 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: 01 07 00 06 31 00 00 00 00 00 FF 0F 4C [19:40:47]process_action close_receipt done [19:40:47]requested_data is exist [19:40:47]produce_requested_data [19:40:47]requested_item fm.sn is exist - process it [19:40:47]wFMCommunicate request_size=4 [19:40:47]MH_SAM_APDU [19:40:47]CAPDU: 80 11 00 00 [19:40:47]Write to MH i2c: E2 08 00 07 31 80 11 00 00 00 00 00 00 B2 [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:47]Read from MH i2c: E2 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 17 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 17 00 07 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [19:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:40:47]wFMCommunicate OK [19:40:47]requested_item fd.num is exist - process it [19:40:47]SAM_PROTO_GetFieldsCounters [19:40:47]wFMCommunicate request_size=4 [19:40:47]MH_SAM_APDU [19:40:47]CAPDU: 80 13 00 00 [19:40:47]Write to MH i2c: E2 08 00 08 31 80 13 00 00 00 00 00 00 B5 [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:47]Read from MH i2c: E2 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 62 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 62 00 08 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 20 02 00 0E 04 04 00 C4 01 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 33 [19:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 20 02 00 0E 04 04 00 C4 01 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 [19:40:47]wFMCommunicate OK [19:40:47]SAM_PROTO_GetFieldsCounters done [19:40:47]requested_item shift.num is exist - process it [19:40:47]requested_item shift.opened is exist - process it [19:40:47]req_shift_opened [19:40:47]FM_GetShiftState [19:40:47]SAM_PROTO_GetShiftState [19:40:47]wFMCommunicate request_size=4 [19:40:47]MH_SAM_APDU [19:40:47]CAPDU: 80 13 01 00 [19:40:47]Write to MH i2c: E2 08 00 09 31 80 13 01 00 00 00 00 00 B7 [19:40:47]Write i2c OK [19:40:47]MH_I2C_Read... [19:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:47]Read from MH i2c: E2 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 0E 00 [19:40:47]MH_I2C_Read... [19:40:47]Read from MH i2c: E2 0E 00 09 31 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6E [19:40:47]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:40:47]wFMCommunicate OK [19:40:47]SAM_PROTO_GetShiftState done [19:40:47]FM_GetShiftState done [19:40:47]req_shift_opened done [19:40:47]requested_item shift.open_date is exist - process it [19:40:47]req_shift_open_date [19:40:47]req_shift_open_date done [19:40:47]produce_requested_data done [19:40:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139472,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:40:47]process_action_free close_receipt [19:40:47]json_value_free [19:40:47]json_value_free done [19:40:47]process_json_proto returns [19:40:47]Send response to host [19:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139472,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:40:47]free response buf [19:40:47]execute_script done [19:40:47]execute_script returns [19:40:47]free content buf [19:40:47]Sock 8.Close socket [19:40:47]Sock 8.Thread stoped [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:15]accept exits with 9 [19:41:15]New connection [19:41:15]New thread 3066817892 created [19:41:15]Thread 3066674532 joined [19:41:15]Waiting for new connection... [19:41:15] Sock 9.Parse request [19:41:15]Sock 9.Check first char [19:41:15]Sock 9.First char is OK [19:41:15]request: POST /json_proto HTTP/1.0 [19:41:15]Method: POST [19:41:15]URL: /json_proto [19:41:15]Method is POST - this is cgi request [19:41:15]url: /json_proto [19:41:15]query_string will be loaded in cgi processing [19:41:15]execute_cgi json_proto POST (null) [19:41:15]execute_cgi path=json_proto method=POST [19:41:15]POST find Content-Length [19:41:15]Host: 172.17.45.67:8080 [19:41:15]Content-Length: 677 [19:41:15]Content-Type: application/json [19:41:15] [19:41:15]POST finish read [19:41:15]Found Content-Length = 677 [19:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:41:15]execute_script... [19:41: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)593316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:41:15]POST & json_proto [19:41:15]process_json_proto [19:41:15]json parsed OK: [19:41:15]protocol is kg_v1.0 [19:41:15]action value=close_receipt [19:41:15]process_action close_receipt [19:41:15]cmd_close_receipt [19:41:15]MH_GetDate [19:41:15]Write to MH i2c: F0 00 00 0A 31 2A [19:41:15]Write i2c OK [19:41:15]MH_I2C_Read... [19:41:15]Read from MH i2c: F0 [19:41:15]MH_I2C_Read... [19:41:15]Read from MH i2c: F0 09 00 [19:41:15]MH_I2C_Read... [19:41:15]Read from MH i2c: F0 09 00 0A 31 00 DE 9F C3 66 5F 7F 2B 66 48 [19:41:15]GetLastDocTimeStamp 1724096445 [19:41:15]current date 1724096478 [19:41:15]FM_GetShiftState [19:41:15]SAM_PROTO_GetShiftState [19:41:15]wFMCommunicate request_size=4 [19:41:15]MH_SAM_APDU [19:41:15]CAPDU: 80 13 01 00 [19:41:15]Write to MH i2c: E2 08 00 0B 31 80 13 01 00 00 00 00 00 B9 [19:41:15]Write i2c OK [19:41:15]MH_I2C_Read... [19:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:15]Read from MH i2c: E2 [19:41:15]MH_I2C_Read... [19:41:15]Read from MH i2c: E2 0E 00 [19:41:15]MH_I2C_Read... [19:41:15]Read from MH i2c: E2 0E 00 0B 31 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 70 [19:41:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:41:15]wFMCommunicate OK [19:41:15]SAM_PROTO_GetShiftState done [19:41:15]FM_GetShiftState done [19:41:15]opened in 1724027888 [19:41:15]opened+sec_in_day 1724114288 [19:41:15]quantity*price = 50036 [19:41:15]sum+1 = 50037 [19:41:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 308 19.08.2024 19:41 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139473 ФПД: 125250943110395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194118&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139473&fm=125250943110395&tin=02508201610067®Number=0000000000092569&sum=50000 [19:41:17]StoreToDocumentArchive [19:41:17]shift 452 fd 139473 [19:41:17]save to /storage/0452/doc_00139473 [19:41:17]save last doc name /storage/0452/doc_00139473 to /storage/kkm_last_doc_name [19:41:17]save OK [19:41:17]Clear old archive folders... [19:41:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:17]tlvbuf is 01209E60 [19:41:17]SAM_PROTO_ClearQueue [19:41:17]wFMCommunicate request_size=4 [19:41:17]MH_SAM_APDU [19:41:17]CAPDU: 80 09 00 00 [19:41:17]Write to MH i2c: E2 08 00 18 31 80 09 00 00 00 00 00 00 BB [19:41:17]Write i2c OK [19:41:17]MH_I2C_Read... [19:41:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:17]Read from MH i2c: E2 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 03 00 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 03 00 18 31 00 90 00 BD [19:41:17]RAPDU: 90 00 [19:41:17]wFMCommunicate OK [19:41:17]SAM_PROTO_ClearQueue done [19:41:17]KKMCreateOFDPacket [19:41:17]OFDProtocolAddRootSTLVToBuf [19:41:17]FM_MakeSignedData [19:41:17]FM_MakeSignedData [19:41:17]SAM_PROTO_SignData [19:41:17]wFMCommunicate request_size=4 [19:41:17]MH_SAM_APDU [19:41:17]CAPDU: 80 0D 01 02 [19:41:17]Write to MH i2c: E2 08 00 19 31 80 0D 01 02 00 00 00 00 C3 [19:41:17]Write i2c OK [19:41:17]MH_I2C_Read... [19:41:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:17]Read from MH i2c: E2 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 03 00 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 03 00 19 31 00 90 00 BE [19:41:17]RAPDU: 90 00 [19:41:17]wFMCommunicate OK [19:41:17]wFMCommunicate request_size=255 [19:41:17]MH_SAM_APDU [19:41: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 34 01 00 00 F4 03 04 00 DE 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 20 02 00 35 04 06 00 71 [19:41:17]Write to MH i2c: E2 02 01 1A 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 34 01 00 00 F4 03 04 00 DE 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 20 02 00 35 04 06 00 71 00 00 50 [19:41:17]Write i2c OK [19:41:17]MH_I2C_Read... [19:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:17]Read from MH i2c: E2 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 03 00 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 03 00 1A 31 00 90 00 BF [19:41:17]RAPDU: 90 00 [19:41:17]wFMCommunicate OK [19:41:17]wFMCommunicate request_size=10 [19:41:17]MH_SAM_APDU [19:41:17]CAPDU: 80 0D 02 02 05 EA 41 F8 CC FB [19:41:17]Write to MH i2c: E2 0D 00 1B 31 80 0D 02 02 05 00 EA 41 F8 CC FB 00 00 BA [19:41:17]Write i2c OK [19:41:17]MH_I2C_Read... [19:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:17]Read from MH i2c: E2 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 03 00 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 03 00 1B 31 00 90 00 C0 [19:41:17]RAPDU: 90 00 [19:41:17]wFMCommunicate OK [19:41:17]wFMCommunicate request_size=4 [19:41:17]MH_SAM_APDU [19:41:17]CAPDU: 80 0D 03 02 [19:41:17]Write to MH i2c: E2 08 00 1C 31 80 0D 03 02 00 00 00 00 C8 [19:41:17]Write i2c OK [19:41:17]MH_I2C_Read... [19:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:17]Read from MH i2c: E2 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 0B 00 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 0B 00 1C 31 00 79 9C A5 69 09 BB 75 BF 90 00 E4 [19:41:17]RAPDU: 79 9C A5 69 09 BB 75 BF 90 00 [19:41:17]wFMCommunicate OK [19:41:17]SAM_PROTO_SignData done [19:41:17]FM_MakeSignedData done [19:41:17]CreateOFDProtocolMessage [19:41:17]wFMCommunicate request_size=4 [19:41:17]MH_SAM_APDU [19:41:17]CAPDU: 80 11 00 00 [19:41:17]Write to MH i2c: E2 08 00 1D 31 80 11 00 00 00 00 00 00 C8 [19:41:17]Write i2c OK [19:41:17]MH_I2C_Read... [19:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:17]Read from MH i2c: E2 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 17 00 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: E2 17 00 1D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [19:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:41:17]wFMCommunicate OK [19:41:17]CreateOFDProtocolMessage done [19:41:17]OFDSenderStorePacket 139473 [19:41:17]StoreOFDPacket docnum=139473 [19:41:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 B5 07 01 70 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 34 01 00 00 F4 03 04 00 DE 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 20 02 00 35 04 06 00 71 EA 41 F8 CC FB 79 9C A5 69 09 BB 75 BF [19:41:17]CheckFolder [19:41:17]dirname=/storage/ofd_packets [19:41:17]CheckFolder done [19:41:17]ProducePacketName [19:41:17]name=ofd_packets/00139473 [19:41:17]NVStorageSaveData ofd_packets/00139473 [19:41:17]File name is /storage/ofd_packets/00139473 [19:41:17]Write 301 bytes [19:41:17]NVStorageSaveData done [19:41:17]OFDSenderStorePacket done [19:41:17]KKMCreateOFDPacket done [19:41:17]NVStorageSaveData kkm_last_timestamp [19:41:17]File name is /storage/kkm_last_timestamp [19:41:17]Write 4 bytes [19:41:17]NVStorageSaveData done [19:41:17]ExternCall_PrintAddStr [19:41:17]wPrintStart [19:41:17]Write to MH i2c: 01 00 00 1E 31 4F [19:41:17]Write i2c OK [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: 01 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: 01 07 00 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: 01 07 00 1E 31 00 00 00 00 00 FF 0F 64 [19:41:17]RasterBufferAndPrint [19:41:17]line Счет N : (1)593316 [19:41:17]line ИНН: 02508201610067 [19:41:17]line Контрольно-Кассовый Чек [19:41:17]line ПРОДАЖА [19:41:17]line ТРК (МРК, ГНК) : 42 [19:41:17]line Товар: 2710124130 [19:41:17]line Аи-92-К-5 [19:41:17]line 7.380 * 67.80 [19:41:17]line = 500.36 [19:41:17]line НДС 12% НСП 1% [19:41:17]line > о реализуемом товаре [19:41:17]line ОКРУГЛЕНИЕ: -0.36 [19:41:17]line ИТОГО: 500.00 [19:41:17]line Внесено: 500.00 [19:41:17]line СДАЧА: 0.00 [19:41:17]line НСП 1% : 4.43 [19:41:17]line НДС 12% : 53.14 [19:41:17]line Наличными: 500.00 [19:41:17]line Безнал.: 0.00 [19:41:17]line Место: АЗС № 136 "Партнер Нефть" [19:41:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:41:17]line СНО: Общий режим [19:41:17]line Чек 308 19.08.2024 19:41 [19:41:17]line Смена: 452 ФФД: 1.0 [19:41:17]line ЗНМ: 0300000067 [19:41:17]line РНМ: 0000000000092569 [19:41:17]line Версия ККМ: 001 [19:41:17]line ФМ: 0000000000871776 [19:41:17]line ФД: 139473 [19:41:17]line ФПД: 125250943110395 [19:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194118&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139473&fm=125250943110395&tin=02508201610067®Number=0000000000092569&sum=50000 [19:41:17]OFD Sender: Processing packet 139473 [packets to send 137, broken 136] [19:41:17]ProducePacketName [19:41:17]name=ofd_packets/00139473 [19:41:17]OFD Sender: To server: pG, [19:41:17]CommunicateWithHost lk.salyk.kg:30040 [19:41:17]ConnectInit lk.salyk.kg [19:41:17]written 0, free lines is 4095 [19:41:18]Connected sock=10 [19:41: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 37 36 0F 01 00 00 93 B5 07 01 70 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 34 01 00 00 F4 03 04 00 DE 9F C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 20 02 00 35 04 06 00 71 EA 41 F8 CC FB 79 9C A5 69 09 BB 75 BF [19:41: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 37 36 4F 00 00 00 E2 26 47 00 74 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 20 02 00 F4 03 04 00 73 46 C3 66 B6 04 01 00 00 CB 6D FA 71 F3 21 37 C1 [19:41:18]CommunicateWithHost err = 0 [19:41:18]CheckOFDResponse [19:41:18]1017 (14) - 77093643461234 [19:41:18]1041 (16) - 0000000000871776 [19:41:18]1040 (4) - 139473 [19:41:18]1012 (4) - 19.08.2024 13:19 [19:41:18]1206 (1) - 0 [19:41:18]OFD Sender: Remove packet 139473 [19:41:18]ProducePacketName [19:41:18]name=ofd_packets/00139473 [19:41:18]NVStorageDeleteData [19:41:18]Write to MH i2c: 01 00 00 49 31 7A [19:41:18]Write i2c OK [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: 01 [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: 01 07 00 [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: 01 07 00 49 31 00 00 00 00 00 DF 0C 6C [19:41:18]RasterBufferAndPrint [19:41:18]line [19:41:18]line [19:41:18]line [19:41:18]line [19:41:18]line [19:41:18]written 0, free lines is 3300 [19:41:18]MH_Cut [19:41:18]Write to MH i2c: D1 01 00 50 31 01 53 [19:41:18]Write i2c OK [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: D1 [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: D1 01 00 [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: D1 01 00 50 31 00 52 [19:41:18]Write to MH i2c: 01 00 00 51 31 82 [19:41:18]Write i2c OK [19:41:18]MH_I2C_Read... [19:41:18]OFD Sender: No OFD packet to send [19:41:19]*** Cut start [19:41:19]*** Partial cut [19:41:19]*** CUTSNS_PIN = 1 [19:41:19]*** CUTSNS_PIN = 0 [19:41:19]*** Brake cut motor [19:41:19]Read from MH i2c: 01 [19:41:19]MH_I2C_Read... [19:41:19]*** Stop cut motor [19:41:19]*** Cut end [19:41:19]Read from MH i2c: 01 07 00 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: 01 07 00 51 31 00 00 00 00 00 FF 0F 97 [19:41:19]process_action close_receipt done [19:41:19]requested_data is exist [19:41:19]produce_requested_data [19:41:19]requested_item fm.sn is exist - process it [19:41:19]wFMCommunicate request_size=4 [19:41:19]MH_SAM_APDU [19:41:19]CAPDU: 80 11 00 00 [19:41:19]Write to MH i2c: E2 08 00 52 31 80 11 00 00 00 00 00 00 FD [19:41:19]Write i2c OK [19:41:19]MH_I2C_Read... [19:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:19]Read from MH i2c: E2 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: E2 17 00 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: E2 17 00 52 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [19:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:41:19]wFMCommunicate OK [19:41:19]requested_item fd.num is exist - process it [19:41:19]SAM_PROTO_GetFieldsCounters [19:41:19]wFMCommunicate request_size=4 [19:41:19]MH_SAM_APDU [19:41:19]CAPDU: 80 13 00 00 [19:41:19]Write to MH i2c: E2 08 00 53 31 80 13 00 00 00 00 00 00 00 [19:41:19]Write i2c OK [19:41:19]MH_I2C_Read... [19:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:19]Read from MH i2c: E2 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: E2 62 00 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: E2 62 00 53 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 20 02 00 0E 04 04 00 C4 01 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 82 [19:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 20 02 00 0E 04 04 00 C4 01 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 [19:41:19]wFMCommunicate OK [19:41:19]SAM_PROTO_GetFieldsCounters done [19:41:19]requested_item shift.num is exist - process it [19:41:19]requested_item shift.opened is exist - process it [19:41:19]req_shift_opened [19:41:19]FM_GetShiftState [19:41:19]SAM_PROTO_GetShiftState [19:41:19]wFMCommunicate request_size=4 [19:41:19]MH_SAM_APDU [19:41:19]CAPDU: 80 13 01 00 [19:41:19]Write to MH i2c: E2 08 00 54 31 80 13 01 00 00 00 00 00 02 [19:41:19]Write i2c OK [19:41:19]MH_I2C_Read... [19:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:19]Read from MH i2c: E2 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: E2 0E 00 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: E2 0E 00 54 31 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B9 [19:41:19]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:41:19]wFMCommunicate OK [19:41:19]SAM_PROTO_GetShiftState done [19:41:19]FM_GetShiftState done [19:41:19]req_shift_opened done [19:41:19]requested_item shift.open_date is exist - process it [19:41:19]req_shift_open_date [19:41:19]req_shift_open_date done [19:41:19]produce_requested_data done [19:41:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139473,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:41:19]process_action_free close_receipt [19:41:19]json_value_free [19:41:19]json_value_free done [19:41:19]process_json_proto returns [19:41:19]Send response to host [19:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139473,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:41:19]free response buf [19:41:19]execute_script done [19:41:19]execute_script returns [19:41:19]free content buf [19:41:19]Sock 9.Close socket [19:41:19]Sock 9.Thread stoped [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:33]accept exits with 8 [19:46:33]New connection [19:46:33]New thread 3066674532 created [19:46:33]Thread 3066817892 joined [19:46:33]Waiting for new connection... [19:46:33] Sock 8.Parse request [19:46:33]Sock 8.Check first char [19:46:33]Sock 8.First char is OK [19:46:33]request: POST /json_proto HTTP/1.0 [19:46:33]Method: POST [19:46:33]URL: /json_proto [19:46:33]Method is POST - this is cgi request [19:46:33]url: /json_proto [19:46:33]query_string will be loaded in cgi processing [19:46:33]execute_cgi json_proto POST (null) [19:46:33]execute_cgi path=json_proto method=POST [19:46:33]POST find Content-Length [19:46:33]Host: 172.17.45.67:8080 [19:46:33]Content-Length: 677 [19:46:33]Content-Type: application/json [19:46:33] [19:46:33]POST finish read [19:46:33]Found Content-Length = 677 [19:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:33]execute_script... [19: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)593317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:33]POST & json_proto [19:46:33]process_json_proto [19:46:33]json parsed OK: [19:46:33]protocol is kg_v1.0 [19:46:33]action value=close_receipt [19:46:33]process_action close_receipt [19:46:33]cmd_close_receipt [19:46:33]MH_GetDate [19:46:33]Write to MH i2c: F0 00 00 55 31 75 [19:46:33]Write i2c OK [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: F0 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: F0 09 00 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: F0 09 00 55 31 00 1B A1 C3 66 5F 7F 2B 66 D2 [19:46:33]GetLastDocTimeStamp 1724096478 [19:46:33]current date 1724096795 [19:46:33]FM_GetShiftState [19:46:33]SAM_PROTO_GetShiftState [19:46:33]wFMCommunicate request_size=4 [19:46:33]MH_SAM_APDU [19:46:33]CAPDU: 80 13 01 00 [19:46:33]Write to MH i2c: E2 08 00 56 31 80 13 01 00 00 00 00 00 04 [19:46:33]Write i2c OK [19:46:33]MH_I2C_Read... [19:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:33]Read from MH i2c: E2 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: E2 0E 00 [19:46:33]MH_I2C_Read... [19:46:33]Read from MH i2c: E2 0E 00 56 31 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BB [19:46:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:46:33]wFMCommunicate OK [19:46:33]SAM_PROTO_GetShiftState done [19:46:33]FM_GetShiftState done [19:46:33]opened in 1724027888 [19:46:33]opened+sec_in_day 1724114288 [19:46:33]quantity*price = 30035 [19:46:33]sum+1 = 30036 [19:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 309 19.08.2024 19:46 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139474 ФПД: 28127743859523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194635&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139474&fm=28127743859523&tin=02508201610067®Number=0000000000092569&sum=30000 [19:46:34]StoreToDocumentArchive [19:46:34]shift 452 fd 139474 [19:46:34]save to /storage/0452/doc_00139474 [19:46:34]save last doc name /storage/0452/doc_00139474 to /storage/kkm_last_doc_name [19:46:34]save OK [19:46:34]Clear old archive folders... [19:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:34]tlvbuf is B6D87350 [19:46:34]SAM_PROTO_ClearQueue [19:46:34]wFMCommunicate request_size=4 [19:46:34]MH_SAM_APDU [19:46:34]CAPDU: 80 09 00 00 [19:46:34]Write to MH i2c: E2 08 00 63 31 80 09 00 00 00 00 00 00 06 [19:46:34]Write i2c OK [19:46:34]MH_I2C_Read... [19:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:34]Read from MH i2c: E2 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 03 00 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 03 00 63 31 00 90 00 08 [19:46:34]RAPDU: 90 00 [19:46:34]wFMCommunicate OK [19:46:34]SAM_PROTO_ClearQueue done [19:46:34]KKMCreateOFDPacket [19:46:34]OFDProtocolAddRootSTLVToBuf [19:46:34]FM_MakeSignedData [19:46:34]FM_MakeSignedData [19:46:34]SAM_PROTO_SignData [19:46:34]wFMCommunicate request_size=4 [19:46:34]MH_SAM_APDU [19:46:34]CAPDU: 80 0D 01 02 [19:46:34]Write to MH i2c: E2 08 00 64 31 80 0D 01 02 00 00 00 00 0E [19:46:34]Write i2c OK [19:46:34]MH_I2C_Read... [19:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:34]Read from MH i2c: E2 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 03 00 [19:46:34]MH_I2C_Read... [19:46:34]Read from MH i2c: E2 03 00 64 31 00 90 00 09 [19:46:34]RAPDU: 90 00 [19:46:34]wFMCommunicate OK [19:46:34]wFMCommunicate request_size=255 [19:46:34]MH_SAM_APDU [19: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 1B A1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 20 02 00 35 04 06 00 19 [19:46:34]Write to MH i2c: E2 02 01 65 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 1B A1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 20 02 00 35 04 06 00 19 00 00 A3 [19:46:34]Write i2c OK [19:46:34]MH_I2C_Read... [19:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:35]Read from MH i2c: E2 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 03 00 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 03 00 65 31 00 90 00 0A [19:46:35]RAPDU: 90 00 [19:46:35]wFMCommunicate OK [19:46:35]wFMCommunicate request_size=10 [19:46:35]MH_SAM_APDU [19:46:35]CAPDU: 80 0D 02 02 05 95 00 2E 5B 43 [19:46:35]Write to MH i2c: E2 0D 00 66 31 80 0D 02 02 05 00 95 00 2E 5B 43 00 00 7C [19:46:35]Write i2c OK [19:46:35]MH_I2C_Read... [19:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:35]Read from MH i2c: E2 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 03 00 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 03 00 66 31 00 90 00 0B [19:46:35]RAPDU: 90 00 [19:46:35]wFMCommunicate OK [19:46:35]wFMCommunicate request_size=4 [19:46:35]MH_SAM_APDU [19:46:35]CAPDU: 80 0D 03 02 [19:46:35]Write to MH i2c: E2 08 00 67 31 80 0D 03 02 00 00 00 00 13 [19:46:35]Write i2c OK [19:46:35]MH_I2C_Read... [19:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:35]Read from MH i2c: E2 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 0B 00 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 0B 00 67 31 00 C8 9F B5 87 5E 90 44 EF 90 00 D8 [19:46:35]RAPDU: C8 9F B5 87 5E 90 44 EF 90 00 [19:46:35]wFMCommunicate OK [19:46:35]SAM_PROTO_SignData done [19:46:35]FM_MakeSignedData done [19:46:35]CreateOFDProtocolMessage [19:46:35]wFMCommunicate request_size=4 [19:46:35]MH_SAM_APDU [19:46:35]CAPDU: 80 11 00 00 [19:46:35]Write to MH i2c: E2 08 00 68 31 80 11 00 00 00 00 00 00 13 [19:46:35]Write i2c OK [19:46:35]MH_I2C_Read... [19:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:35]Read from MH i2c: E2 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 17 00 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 17 00 68 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [19:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:46:35]wFMCommunicate OK [19:46:35]CreateOFDProtocolMessage done [19:46:35]OFDSenderStorePacket 139474 [19:46:35]StoreOFDPacket docnum=139474 [19:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 50 46 07 01 80 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 1B A1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 20 02 00 35 04 06 00 19 95 00 2E 5B 43 C8 9F B5 87 5E 90 44 EF [19:46:35]CheckFolder [19:46:35]dirname=/storage/ofd_packets [19:46:35]CheckFolder done [19:46:35]ProducePacketName [19:46:35]name=ofd_packets/00139474 [19:46:35]NVStorageSaveData ofd_packets/00139474 [19:46:35]File name is /storage/ofd_packets/00139474 [19:46:35]Write 301 bytes [19:46:35]NVStorageSaveData done [19:46:35]OFDSenderStorePacket done [19:46:35]KKMCreateOFDPacket done [19:46:35]NVStorageSaveData kkm_last_timestamp [19:46:35]File name is /storage/kkm_last_timestamp [19:46:35]Write 4 bytes [19:46:35]NVStorageSaveData done [19:46:35]ExternCall_PrintAddStr [19:46:35]wPrintStart [19:46:35]Write to MH i2c: 01 00 00 69 31 9A [19:46:35]Write i2c OK [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: 01 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: 01 07 00 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: 01 07 00 69 31 00 00 00 00 00 FF 0F AF [19:46:35]RasterBufferAndPrint [19:46:35]line Счет N : (1)593317 [19:46:35]line ИНН: 02508201610067 [19:46:35]line Контрольно-Кассовый Чек [19:46:35]line ПРОДАЖА [19:46:35]line ТРК (МРК, ГНК) : 42 [19:46:35]line Товар: 2710124130 [19:46:35]line Аи-92-К-5 [19:46:35]line 4.430 * 67.80 [19:46:35]line = 300.35 [19:46:35]line НДС 12% НСП 1% [19:46:35]line > о реализуемом товаре [19:46:35]line ОКРУГЛЕНИЕ: -0.35 [19:46:35]line ИТОГО: 300.00 [19:46:35]line Внесено: 300.00 [19:46:35]line СДАЧА: 0.00 [19:46:35]line НСП 1% : 2.66 [19:46:35]line НДС 12% : 31.90 [19:46:35]line Наличными: 300.00 [19:46:35]line Безнал.: 0.00 [19:46:35]line Место: АЗС № 136 "Партнер Нефть" [19:46:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:46:35]line СНО: Общий режим [19:46:35]line Чек 309 19.08.2024 19:46 [19:46:35]line Смена: 452 ФФД: 1.0 [19:46:35]line ЗНМ: 0300000067 [19:46:35]line РНМ: 0000000000092569 [19:46:35]line Версия ККМ: 001 [19:46:35]line ФМ: 0000000000871776 [19:46:35]line ФД: 139474 [19:46:35]line ФПД: 28127743859523 [19:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194635&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139474&fm=28127743859523&tin=02508201610067®Number=0000000000092569&sum=30000 [19:46:35]written 0, free lines is 4095 [19:46:35]OFD Sender: Processing packet 139474 [packets to send 137, broken 136] [19:46:35]ProducePacketName [19:46:35]name=ofd_packets/00139474 [19:46:35]OFD Sender: To server: pG, [19:46:35]CommunicateWithHost lk.salyk.kg:30040 [19:46:35]ConnectInit lk.salyk.kg [19:46:35]Connected sock=10 [19: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 37 36 0F 01 00 00 50 46 07 01 80 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 1B A1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 20 02 00 35 04 06 00 19 95 00 2E 5B 43 C8 9F B5 87 5E 90 44 EF [19:46: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 37 36 4F 00 00 00 BC F0 47 00 9E 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 37 36 10 04 04 00 D2 20 02 00 F4 03 04 00 B0 47 C3 66 B6 04 01 00 00 1F C2 ED 8C E7 7E C9 14 [19:46:36]CommunicateWithHost err = 0 [19:46:36]CheckOFDResponse [19:46:36]1017 (14) - 77093643461234 [19:46:36]1041 (16) - 0000000000871776 [19:46:36]1040 (4) - 139474 [19:46:36]1012 (4) - 19.08.2024 13:25 [19:46:36]1206 (1) - 0 [19:46:36]OFD Sender: Remove packet 139474 [19:46:36]ProducePacketName [19:46:36]name=ofd_packets/00139474 [19:46:36]NVStorageDeleteData [19:46:36]Write to MH i2c: 01 00 00 94 31 C5 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: 01 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: 01 07 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: 01 07 00 94 31 00 00 00 00 00 D5 0C AD [19:46:36]RasterBufferAndPrint [19:46:36]line [19:46:36]line [19:46:36]line [19:46:36]line [19:46:36]line [19:46:36]written 0, free lines is 3293 [19:46:36]MH_Cut [19:46:36]Write to MH i2c: D1 01 00 9B 31 01 9E [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: D1 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: D1 01 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: D1 01 00 9B 31 00 9D [19:46:36]Write to MH i2c: 01 00 00 9C 31 CD [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]OFD Sender: No OFD packet to send [19:46:36]*** Cut start [19:46:36]*** Partial cut [19:46:36]*** CUTSNS_PIN = 1 [19:46:36]*** CUTSNS_PIN = 0 [19:46:37]*** Brake cut motor [19:46:37]Read from MH i2c: 01 [19:46:37]MH_I2C_Read... [19:46:37]*** Stop cut motor [19:46:37]*** Cut end [19:46:37]Read from MH i2c: 01 07 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 07 00 9C 31 00 00 00 00 00 FF 0F E2 [19:46:37]process_action close_receipt done [19:46:37]requested_data is exist [19:46:37]produce_requested_data [19:46:37]requested_item fm.sn is exist - process it [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 11 00 00 [19:46:37]Write to MH i2c: E2 08 00 9D 31 80 11 00 00 00 00 00 00 48 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 17 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 17 00 9D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9F [19:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:46:37]wFMCommunicate OK [19:46:37]requested_item fd.num is exist - process it [19:46:37]SAM_PROTO_GetFieldsCounters [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 13 00 00 [19:46:37]Write to MH i2c: E2 08 00 9E 31 80 13 00 00 00 00 00 00 4B [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 62 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 62 00 9E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 20 02 00 0E 04 04 00 C4 01 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 D1 [19:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 20 02 00 0E 04 04 00 C4 01 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 [19:46:37]wFMCommunicate OK [19:46:37]SAM_PROTO_GetFieldsCounters done [19:46:37]requested_item shift.num is exist - process it [19:46:37]requested_item shift.opened is exist - process it [19:46:37]req_shift_opened [19:46:37]FM_GetShiftState [19:46:37]SAM_PROTO_GetShiftState [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 13 01 00 [19:46:37]Write to MH i2c: E2 08 00 9F 31 80 13 01 00 00 00 00 00 4D [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 0E 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 0E 00 9F 31 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 04 [19:46:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:46:37]wFMCommunicate OK [19:46:37]SAM_PROTO_GetShiftState done [19:46:37]FM_GetShiftState done [19:46:37]req_shift_opened done [19:46:37]requested_item shift.open_date is exist - process it [19:46:37]req_shift_open_date [19:46:37]req_shift_open_date done [19:46:37]produce_requested_data done [19:46:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139474,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:46:37]process_action_free close_receipt [19:46:37]json_value_free [19:46:37]json_value_free done [19:46:37]process_json_proto returns [19:46:37]Send response to host [19:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139474,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:46:37]free response buf [19:46:37]execute_script done [19:46:37]execute_script returns [19:46:37]free content buf [19:46:37]Sock 8.Close socket [19:46:37]Sock 8.Thread stoped [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]accept exits with 9 [19:49:21]New connection [19:49:21]New thread 3066817892 created [19:49:21]Thread 3066674532 joined [19:49:21]Waiting for new connection... [19:49:21] Sock 9.Parse request [19:49:21]Sock 9.Check first char [19:49:21]Sock 9.First char is OK [19:49:21]request: POST /json_proto HTTP/1.0 [19:49:21]Method: POST [19:49:21]URL: /json_proto [19:49:21]Method is POST - this is cgi request [19:49:21]url: /json_proto [19:49:21]query_string will be loaded in cgi processing [19:49:21]execute_cgi json_proto POST (null) [19:49:21]execute_cgi path=json_proto method=POST [19:49:21]POST find Content-Length [19:49:21]Host: 172.17.45.67:8080 [19:49:21]Content-Length: 677 [19:49:21]Content-Type: application/json [19:49:21] [19:49:21]POST finish read [19:49:21]Found Content-Length = 677 [19:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:21]execute_script... [19:49: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)593318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:21]POST & json_proto [19:49:21]process_json_proto [19:49:21]json parsed OK: [19:49:21]protocol is kg_v1.0 [19:49:21]action value=close_receipt [19:49:21]process_action close_receipt [19:49:21]cmd_close_receipt [19:49:21]MH_GetDate [19:49:21]Write to MH i2c: F0 00 00 A0 31 C0 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: F0 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: F0 09 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: F0 09 00 A0 31 00 C3 A1 C3 66 5F 7F 2B 66 C5 [19:49:21]GetLastDocTimeStamp 1724096795 [19:49:21]current date 1724096963 [19:49:21]FM_GetShiftState [19:49:21]SAM_PROTO_GetShiftState [19:49:21]wFMCommunicate request_size=4 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 13 01 00 [19:49:21]Write to MH i2c: E2 08 00 A1 31 80 13 01 00 00 00 00 00 4F [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 0E 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 0E 00 A1 31 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 06 [19:49:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:49:21]wFMCommunicate OK [19:49:21]SAM_PROTO_GetShiftState done [19:49:21]FM_GetShiftState done [19:49:21]opened in 1724027888 [19:49:21]opened+sec_in_day 1724114288 [19:49:21]quantity*price = 30035 [19:49:21]sum+1 = 30036 [19:49:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 310 19.08.2024 19:49 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139475 ФПД: 142889759598122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194923&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139475&fm=142889759598122&tin=02508201610067®Number=0000000000092569&sum=30000 [19:49:22]StoreToDocumentArchive [19:49:22]shift 452 fd 139475 [19:49:22]save to /storage/0452/doc_00139475 [19:49:22]save last doc name /storage/0452/doc_00139475 to /storage/kkm_last_doc_name [19:49:22]save OK [19:49:22]Clear old archive folders... [19:49:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:22]tlvbuf is B6EB9940 [19:49:22]SAM_PROTO_ClearQueue [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 09 00 00 [19:49:22]Write to MH i2c: E2 08 00 AE 31 80 09 00 00 00 00 00 00 51 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 AE 31 00 90 00 53 [19:49:22]RAPDU: 90 00 [19:49:22]wFMCommunicate OK [19:49:22]SAM_PROTO_ClearQueue done [19:49:22]KKMCreateOFDPacket [19:49:22]OFDProtocolAddRootSTLVToBuf [19:49:22]FM_MakeSignedData [19:49:22]FM_MakeSignedData [19:49:22]SAM_PROTO_SignData [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 0D 01 02 [19:49:22]Write to MH i2c: E2 08 00 AF 31 80 0D 01 02 00 00 00 00 59 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 AF 31 00 90 00 54 [19:49:22]RAPDU: 90 00 [19:49:22]wFMCommunicate OK [19:49:22]wFMCommunicate request_size=255 [19:49:22]MH_SAM_APDU [19:49: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 C3 A1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 20 02 00 35 04 06 00 81 [19:49:22]Write to MH i2c: E2 02 01 B0 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 C3 A1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 20 02 00 35 04 06 00 81 00 00 00 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 B0 31 00 90 00 55 [19:49:22]RAPDU: 90 00 [19:49:22]wFMCommunicate OK [19:49:22]wFMCommunicate request_size=10 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 0D 02 02 05 F5 1D 5C E6 2A [19:49:22]Write to MH i2c: E2 0D 00 B1 31 80 0D 02 02 05 00 F5 1D 5C E6 2A 00 00 E4 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 B1 31 00 90 00 56 [19:49:22]RAPDU: 90 00 [19:49:22]wFMCommunicate OK [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 0D 03 02 [19:49:22]Write to MH i2c: E2 08 00 B2 31 80 0D 03 02 00 00 00 00 5E [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0B 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0B 00 B2 31 00 96 3E 58 9E 96 64 FF B5 90 00 D7 [19:49:22]RAPDU: 96 3E 58 9E 96 64 FF B5 90 00 [19:49:22]wFMCommunicate OK [19:49:22]SAM_PROTO_SignData done [19:49:22]FM_MakeSignedData done [19:49:22]CreateOFDProtocolMessage [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 11 00 00 [19:49:22]Write to MH i2c: E2 08 00 B3 31 80 11 00 00 00 00 00 00 5E [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:23]Read from MH i2c: E2 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 17 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 17 00 B3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [19:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:49:23]wFMCommunicate OK [19:49:23]CreateOFDProtocolMessage done [19:49:23]OFDSenderStorePacket 139475 [19:49:23]StoreOFDPacket docnum=139475 [19:49:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 74 4F 07 01 BB 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 C3 A1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 20 02 00 35 04 06 00 81 F5 1D 5C E6 2A 96 3E 58 9E 96 64 FF B5 [19:49:23]CheckFolder [19:49:23]dirname=/storage/ofd_packets [19:49:23]CheckFolder done [19:49:23]ProducePacketName [19:49:23]name=ofd_packets/00139475 [19:49:23]NVStorageSaveData ofd_packets/00139475 [19:49:23]File name is /storage/ofd_packets/00139475 [19:49:23]Write 301 bytes [19:49:23]NVStorageSaveData done [19:49:23]OFDSenderStorePacket done [19:49:23]KKMCreateOFDPacket done [19:49:23]NVStorageSaveData kkm_last_timestamp [19:49:23]File name is /storage/kkm_last_timestamp [19:49:23]Write 4 bytes [19:49:23]NVStorageSaveData done [19:49:23]ExternCall_PrintAddStr [19:49:23]wPrintStart [19:49:23]Write to MH i2c: 01 00 00 B4 31 E5 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 07 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 07 00 B4 31 00 00 00 00 00 FF 0F FA [19:49:23]RasterBufferAndPrint [19:49:23]line Счет N : (1)593318 [19:49:23]line ИНН: 02508201610067 [19:49:23]line Контрольно-Кассовый Чек [19:49:23]line ПРОДАЖА [19:49:23]line ТРК (МРК, ГНК) : 42 [19:49:23]line Товар: 2710124130 [19:49:23]line Аи-92-К-5 [19:49:23]line 4.430 * 67.80 [19:49:23]line = 300.35 [19:49:23]line НДС 12% НСП 1% [19:49:23]line > о реализуемом товаре [19:49:23]line ОКРУГЛЕНИЕ: -0.35 [19:49:23]line ИТОГО: 300.00 [19:49:23]line Внесено: 300.00 [19:49:23]line СДАЧА: 0.00 [19:49:23]line НСП 1% : 2.66 [19:49:23]line НДС 12% : 31.90 [19:49:23]line Наличными: 300.00 [19:49:23]line Безнал.: 0.00 [19:49:23]line Место: АЗС № 136 "Партнер Нефть" [19:49:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:49:23]line СНО: Общий режим [19:49:23]line Чек 310 19.08.2024 19:49 [19:49:23]line Смена: 452 ФФД: 1.0 [19:49:23]line ЗНМ: 0300000067 [19:49:23]line РНМ: 0000000000092569 [19:49:23]line Версия ККМ: 001 [19:49:23]line ФМ: 0000000000871776 [19:49:23]line ФД: 139475 [19:49:23]line ФПД: 142889759598122 [19:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194923&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139475&fm=142889759598122&tin=02508201610067®Number=0000000000092569&sum=30000 [19:49:23]written 0, free lines is 4095 [19:49:23]OFD Sender: Processing packet 139475 [packets to send 137, broken 136] [19:49:23]ProducePacketName [19:49:23]name=ofd_packets/00139475 [19:49:23]OFD Sender: To server: pG, [19:49:23]CommunicateWithHost lk.salyk.kg:30040 [19:49:23]ConnectInit lk.salyk.kg [19:49:23]Write to MH i2c: 01 00 00 DF 31 10 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 07 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 07 00 DF 31 00 00 00 00 00 D6 0C F9 [19:49:23]RasterBufferAndPrint [19:49:23]line [19:49:23]line [19:49:23]line [19:49:23]line [19:49:23]line [19:49:23]written 0, free lines is 3290 [19:49:23]MH_Cut [19:49:23]Write to MH i2c: D1 01 00 E6 31 01 E9 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: D1 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: D1 01 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: D1 01 00 E6 31 00 E8 [19:49:23]Write to MH i2c: 01 00 00 E7 31 18 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:24]*** Cut start [19:49:24]*** Partial cut [19:49:24]*** CUTSNS_PIN = 1 [19:49:24]*** CUTSNS_PIN = 0 [19:49:24]*** Brake cut motor [19:49:25]Read from MH i2c: 01 [19:49:25]MH_I2C_Read... [19:49:25]*** Stop cut motor [19:49:25]*** Cut end [19:49:25]Read from MH i2c: 01 07 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: 01 07 00 E7 31 00 00 00 00 00 FF 0F 2D [19:49:25]process_action close_receipt done [19:49:25]requested_data is exist [19:49:25]produce_requested_data [19:49:25]requested_item fm.sn is exist - process it [19:49:25]wFMCommunicate request_size=4 [19:49:25]MH_SAM_APDU [19:49:25]CAPDU: 80 11 00 00 [19:49:25]Write to MH i2c: E2 08 00 E8 31 80 11 00 00 00 00 00 00 93 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:25]Read from MH i2c: E2 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 17 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 17 00 E8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [19:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:49:25]wFMCommunicate OK [19:49:25]requested_item fd.num is exist - process it [19:49:25]SAM_PROTO_GetFieldsCounters [19:49:25]wFMCommunicate request_size=4 [19:49:25]MH_SAM_APDU [19:49:25]CAPDU: 80 13 00 00 [19:49:25]Write to MH i2c: E2 08 00 E9 31 80 13 00 00 00 00 00 00 96 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:25]Read from MH i2c: E2 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 62 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 62 00 E9 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 20 02 00 0E 04 04 00 C4 01 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 20 [19:49: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 20 02 00 0E 04 04 00 C4 01 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 [19:49:25]wFMCommunicate OK [19:49:25]SAM_PROTO_GetFieldsCounters done [19:49:25]requested_item shift.num is exist - process it [19:49:25]requested_item shift.opened is exist - process it [19:49:25]req_shift_opened [19:49:25]FM_GetShiftState [19:49:25]SAM_PROTO_GetShiftState [19:49:25]wFMCommunicate request_size=4 [19:49:25]MH_SAM_APDU [19:49:25]CAPDU: 80 13 01 00 [19:49:25]Write to MH i2c: E2 08 00 EA 31 80 13 01 00 00 00 00 00 98 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:25]Read from MH i2c: E2 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 0E 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 0E 00 EA 31 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4F [19:49:25]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:49:25]wFMCommunicate OK [19:49:25]SAM_PROTO_GetShiftState done [19:49:25]FM_GetShiftState done [19:49:25]req_shift_opened done [19:49:25]requested_item shift.open_date is exist - process it [19:49:25]req_shift_open_date [19:49:25]req_shift_open_date done [19:49:25]produce_requested_data done [19:49:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139475,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:49:25]process_action_free close_receipt [19:49:25]json_value_free [19:49:25]json_value_free done [19:49:25]process_json_proto returns [19:49:25]Send response to host [19:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139475,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:49:25]free response buf [19:49:25]execute_script done [19:49:25]execute_script returns [19:49:25]free content buf [19:49:25]Sock 9.Close socket [19:49:25]Sock 9.Thread stoped [19:51:35]ConnectInit Can't connect to host [19:51:35]CommunicateWithHost connect error [19:51:35]CommunicateWithHost err = -1 [19:51:35]OFD Sender: Server communicate error [19:51:40]OFD Sender: Processing packet 139475 [packets to send 137, broken 136] [19:51:40]ProducePacketName [19:51:40]name=ofd_packets/00139475 [19:51:40]OFD Sender: To server: pG, [19:51:40]CommunicateWithHost lk.salyk.kg:30040 [19:51:40]ConnectInit lk.salyk.kg [19:51:40]Connected sock=9 [19:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 74 4F 07 01 BB 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 C3 A1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 20 02 00 35 04 06 00 81 F5 1D 5C E6 2A 96 3E 58 9E 96 64 FF B5 [19:51: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 37 36 4F 00 00 00 E7 37 47 00 CC 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 37 36 10 04 04 00 D3 20 02 00 F4 03 04 00 E1 48 C3 66 B6 04 01 00 00 81 92 44 31 4B 25 C2 57 [19:51:41]CommunicateWithHost err = 0 [19:51:41]CheckOFDResponse [19:51:41]1017 (14) - 77093643461234 [19:51:41]1041 (16) - 0000000000871776 [19:51:41]1040 (4) - 139475 [19:51:41]1012 (4) - 19.08.2024 13:30 [19:51:41]1206 (1) - 0 [19:51:41]OFD Sender: Remove packet 139475 [19:51:41]ProducePacketName [19:51:41]name=ofd_packets/00139475 [19:51:41]NVStorageDeleteData [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:39]accept exits with 8 [19:54:39]New connection [19:54:39]New thread 3066674532 created [19:54:39]Thread 3066817892 joined [19:54:39]Waiting for new connection... [19:54:39] Sock 8.Parse request [19:54:39]Sock 8.Check first char [19:54:39]Sock 8.First char is OK [19:54:39]request: POST /json_proto HTTP/1.0 [19:54:39]Method: POST [19:54:39]URL: /json_proto [19:54:39]Method is POST - this is cgi request [19:54:39]url: /json_proto [19:54:39]query_string will be loaded in cgi processing [19:54:39]execute_cgi json_proto POST (null) [19:54:39]execute_cgi path=json_proto method=POST [19:54:39]POST find Content-Length [19:54:39]Host: 172.17.45.67:8080 [19:54:39]Content-Length: 687 [19:54:39]Content-Type: application/json [19:54:39] [19:54:39]POST finish read [19:54:39]Found Content-Length = 687 [19:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:54:39]execute_script... [19:54: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)593319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:54:39]POST & json_proto [19:54:39]process_json_proto [19:54:39]json parsed OK: [19:54:39]protocol is kg_v1.0 [19:54:39]action value=close_receipt [19:54:39]process_action close_receipt [19:54:39]cmd_close_receipt [19:54:39]MH_GetDate [19:54:39]Write to MH i2c: F0 00 00 EB 31 0B [19:54:39]Write i2c OK [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: F0 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: F0 09 00 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: F0 09 00 EB 31 00 01 A3 C3 66 5F 7F 2B 66 50 [19:54:39]GetLastDocTimeStamp 1724096963 [19:54:39]current date 1724097281 [19:54:39]FM_GetShiftState [19:54:39]SAM_PROTO_GetShiftState [19:54:39]wFMCommunicate request_size=4 [19:54:39]MH_SAM_APDU [19:54:39]CAPDU: 80 13 01 00 [19:54:39]Write to MH i2c: E2 08 00 EC 31 80 13 01 00 00 00 00 00 9A [19:54:39]Write i2c OK [19:54:39]MH_I2C_Read... [19:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:39]Read from MH i2c: E2 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 0E 00 [19:54:39]MH_I2C_Read... [19:54:39]Read from MH i2c: E2 0E 00 EC 31 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 51 [19:54:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:54:39]wFMCommunicate OK [19:54:39]SAM_PROTO_GetShiftState done [19:54:39]FM_GetShiftState done [19:54:39]opened in 1724027888 [19:54:39]opened+sec_in_day 1724114288 [19:54:39]quantity*price = 100050 [19:54:39]sum+1 = 100052 [19:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 311 19.08.2024 19:54 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139476 ФПД: 230107198595598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195441&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139476&fm=230107198595598&tin=02508201610067®Number=0000000000092569&sum=100000 [19:54:40]StoreToDocumentArchive [19:54:40]shift 452 fd 139476 [19:54:40]save to /storage/0452/doc_00139476 [19:54:40]save last doc name /storage/0452/doc_00139476 to /storage/kkm_last_doc_name [19:54:40]save OK [19:54:40]Clear old archive folders... [19:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:54:40]tlvbuf is 012E2540 [19:54:40]SAM_PROTO_ClearQueue [19:54:40]wFMCommunicate request_size=4 [19:54:40]MH_SAM_APDU [19:54:40]CAPDU: 80 09 00 00 [19:54:40]Write to MH i2c: E2 08 00 F9 31 80 09 00 00 00 00 00 00 9C [19:54:40]Write i2c OK [19:54:40]MH_I2C_Read... [19:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:40]Read from MH i2c: E2 [19:54:40]MH_I2C_Read... [19:54:40]Read from MH i2c: E2 03 00 [19:54:40]MH_I2C_Read... [19:54:40]Read from MH i2c: E2 03 00 F9 31 00 90 00 9E [19:54:40]RAPDU: 90 00 [19:54:40]wFMCommunicate OK [19:54:40]SAM_PROTO_ClearQueue done [19:54:40]KKMCreateOFDPacket [19:54:40]OFDProtocolAddRootSTLVToBuf [19:54:40]FM_MakeSignedData [19:54:40]FM_MakeSignedData [19:54:40]SAM_PROTO_SignData [19:54:40]wFMCommunicate request_size=4 [19:54:40]MH_SAM_APDU [19:54:40]CAPDU: 80 0D 01 02 [19:54:40]Write to MH i2c: E2 08 00 FA 31 80 0D 01 02 00 00 00 00 A4 [19:54:40]Write i2c OK [19:54:40]MH_I2C_Read... [19:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:40]Read from MH i2c: E2 [19:54:40]MH_I2C_Read... [19:54:40]Read from MH i2c: E2 03 00 [19:54:40]MH_I2C_Read... [19:54:40]Read from MH i2c: E2 03 00 FA 31 00 90 00 9F [19:54:40]RAPDU: 90 00 [19:54:40]wFMCommunicate OK [19:54:40]wFMCommunicate request_size=255 [19:54:40]MH_SAM_APDU [19:54:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 37 01 00 00 F4 03 04 00 01 A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 20 02 00 35 04 06 00 [19:54:40]Write to MH i2c: E2 02 01 FB 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 37 01 00 00 F4 03 04 00 01 A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 20 02 00 35 04 06 00 00 00 DB [19:54:40]Write i2c OK [19:54:40]MH_I2C_Read... [19:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:41]Read from MH i2c: E2 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 03 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 03 00 FB 31 00 90 00 A0 [19:54:41]RAPDU: 90 00 [19:54:41]wFMCommunicate OK [19:54:41]wFMCommunicate request_size=11 [19:54:41]MH_SAM_APDU [19:54:41]CAPDU: 80 0D 02 02 06 D1 48 01 D5 22 0E [19:54:41]Write to MH i2c: E2 0E 00 FC 31 80 0D 02 02 06 00 D1 48 01 D5 22 0E 00 00 D2 [19:54:41]Write i2c OK [19:54:41]MH_I2C_Read... [19:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:41]Read from MH i2c: E2 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 03 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 03 00 FC 31 00 90 00 A1 [19:54:41]RAPDU: 90 00 [19:54:41]wFMCommunicate OK [19:54:41]wFMCommunicate request_size=4 [19:54:41]MH_SAM_APDU [19:54:41]CAPDU: 80 0D 03 02 [19:54:41]Write to MH i2c: E2 08 00 FD 31 80 0D 03 02 00 00 00 00 A9 [19:54:41]Write i2c OK [19:54:41]MH_I2C_Read... [19:54:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:41]Read from MH i2c: E2 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 0B 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 0B 00 FD 31 00 3A AB 41 18 4D 7B 7D C1 90 00 EE [19:54:41]RAPDU: 3A AB 41 18 4D 7B 7D C1 90 00 [19:54:41]wFMCommunicate OK [19:54:41]SAM_PROTO_SignData done [19:54:41]FM_MakeSignedData done [19:54:41]CreateOFDProtocolMessage [19:54:41]wFMCommunicate request_size=4 [19:54:41]MH_SAM_APDU [19:54:41]CAPDU: 80 11 00 00 [19:54:41]Write to MH i2c: E2 08 00 FE 31 80 11 00 00 00 00 00 00 A9 [19:54:41]Write i2c OK [19:54:41]MH_I2C_Read... [19:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:41]Read from MH i2c: E2 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 17 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: E2 17 00 FE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 00 [19:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:54:41]wFMCommunicate OK [19:54:41]CreateOFDProtocolMessage done [19:54:41]OFDSenderStorePacket 139476 [19:54:41]StoreOFDPacket docnum=139476 [19:54:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 7A E0 08 01 5D 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 37 01 00 00 F4 03 04 00 01 A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 20 02 00 35 04 06 00 D1 48 01 D5 22 0E 3A AB 41 18 4D 7B 7D C1 [19:54:41]CheckFolder [19:54:41]dirname=/storage/ofd_packets [19:54:41]CheckFolder done [19:54:41]ProducePacketName [19:54:41]name=ofd_packets/00139476 [19:54:41]NVStorageSaveData ofd_packets/00139476 [19:54:41]File name is /storage/ofd_packets/00139476 [19:54:41]Write 302 bytes [19:54:41]NVStorageSaveData done [19:54:41]OFDSenderStorePacket done [19:54:41]KKMCreateOFDPacket done [19:54:41]NVStorageSaveData kkm_last_timestamp [19:54:41]File name is /storage/kkm_last_timestamp [19:54:41]Write 4 bytes [19:54:41]NVStorageSaveData done [19:54:41]ExternCall_PrintAddStr [19:54:41]wPrintStart [19:54:41]Write to MH i2c: 01 00 00 FF 31 30 [19:54:41]Write i2c OK [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: 01 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: 01 07 00 [19:54:41]MH_I2C_Read... [19:54:41]Read from MH i2c: 01 07 00 FF 31 00 00 00 00 00 FF 0F 45 [19:54:41]RasterBufferAndPrint [19:54:41]line Счет N : (1)593319 [19:54:41]line ИНН: 02508201610067 [19:54:41]line Контрольно-Кассовый Чек [19:54:41]line ПРОДАЖА [19:54:41]line ТРК (МРК, ГНК) : 64 [19:54:41]line Товар: 2710194210 [19:54:41]line ДТ(л)-К-5 [19:54:41]line 13.130 * 76.20 [19:54:41]line = 1000.51 [19:54:41]line НДС 12% НСП 1% [19:54:41]line > о реализуемом товаре [19:54:41]line ОКРУГЛЕНИЕ: -0.51 [19:54:41]line ИТОГО: 1000.00 [19:54:41]line Внесено: 1000.00 [19:54:41]line СДАЧА: 0.00 [19:54:41]line НСП 1% : 8.85 [19:54:41]line НДС 12% : 106.25 [19:54:41]line Наличными: 1000.00 [19:54:41]line Безнал.: 0.00 [19:54:41]line Место: АЗС № 136 "Партнер Нефть" [19:54:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:54:41]line СНО: Общий режим [19:54:41]line Чек 311 19.08.2024 19:54 [19:54:41]line Смена: 452 ФФД: 1.0 [19:54:41]line ЗНМ: 0300000067 [19:54:41]line РНМ: 0000000000092569 [19:54:41]line Версия ККМ: 001 [19:54:41]line ФМ: 0000000000871776 [19:54:41]OFD Sender: Processing packet 139476 [packets to send 137, broken 136] [19:54:41]ProducePacketName [19:54:41]name=ofd_packets/00139476 [19:54:41]OFD Sender: To server: pG, [19:54:41]CommunicateWithHost lk.salyk.kg:30040 [19:54:41]ConnectInit lk.salyk.kg [19:54:41]line ФД: 139476 [19:54:41]line ФПД: 230107198595598 [19:54:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195441&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139476&fm=230107198595598&tin=02508201610067®Number=0000000000092569&sum=100000 [19:54:41]Connected sock=11 [19:54: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 37 36 10 01 00 00 7A E0 08 01 5D 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 37 01 00 00 F4 03 04 00 01 A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 20 02 00 35 04 06 00 D1 48 01 D5 22 0E 3A AB 41 18 4D 7B 7D C1 [19:54:41]written 0, free lines is 4095 [19:54: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 37 36 4F 00 00 00 73 47 47 00 27 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 20 02 00 F4 03 04 00 96 49 C3 66 B6 04 01 00 00 91 93 F7 8E D1 96 38 53 [19:54:41]CommunicateWithHost err = 0 [19:54:41]CheckOFDResponse [19:54:41]1017 (14) - 77093643461234 [19:54:41]1041 (16) - 0000000000871776 [19:54:41]1040 (4) - 139476 [19:54:41]1012 (4) - 19.08.2024 13:33 [19:54:41]1206 (1) - 0 [19:54:41]OFD Sender: Remove packet 139476 [19:54:41]ProducePacketName [19:54:41]name=ofd_packets/00139476 [19:54:41]NVStorageDeleteData [19:54:42]Write to MH i2c: 01 00 00 2A 32 5C [19:54:42]Write i2c OK [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: 01 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: 01 07 00 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: 01 07 00 2A 32 00 00 00 00 00 D9 0C 48 [19:54:42]RasterBufferAndPrint [19:54:42]line [19:54:42]line [19:54:42]line [19:54:42]line [19:54:42]line [19:54:42]written 0, free lines is 3296 [19:54:42]MH_Cut [19:54:42]Write to MH i2c: D1 01 00 31 32 01 35 [19:54:42]Write i2c OK [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: D1 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: D1 01 00 [19:54:42]MH_I2C_Read... [19:54:42]Read from MH i2c: D1 01 00 31 32 00 34 [19:54:42]Write to MH i2c: 01 00 00 32 32 64 [19:54:42]Write i2c OK [19:54:42]MH_I2C_Read... [19:54:42]OFD Sender: No OFD packet to send [19:54:42]*** Cut start [19:54:42]*** Partial cut [19:54:42]*** CUTSNS_PIN = 1 [19:54:42]*** CUTSNS_PIN = 0 [19:54:43]*** Brake cut motor [19:54:43]Read from MH i2c: 01 [19:54:43]MH_I2C_Read... [19:54:43]*** Stop cut motor [19:54:43]*** Cut end [19:54:43]Read from MH i2c: 01 07 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: 01 07 00 32 32 00 00 00 00 00 FF 0F 79 [19:54:43]process_action close_receipt done [19:54:43]requested_data is exist [19:54:43]produce_requested_data [19:54:43]requested_item fm.sn is exist - process it [19:54:43]wFMCommunicate request_size=4 [19:54:43]MH_SAM_APDU [19:54:43]CAPDU: 80 11 00 00 [19:54:43]Write to MH i2c: E2 08 00 33 32 80 11 00 00 00 00 00 00 DF [19:54:43]Write i2c OK [19:54:43]MH_I2C_Read... [19:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:43]Read from MH i2c: E2 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 17 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 17 00 33 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [19:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:54:43]wFMCommunicate OK [19:54:43]requested_item fd.num is exist - process it [19:54:43]SAM_PROTO_GetFieldsCounters [19:54:43]wFMCommunicate request_size=4 [19:54:43]MH_SAM_APDU [19:54:43]CAPDU: 80 13 00 00 [19:54:43]Write to MH i2c: E2 08 00 34 32 80 13 00 00 00 00 00 00 E2 [19:54:43]Write i2c OK [19:54:43]MH_I2C_Read... [19:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:43]Read from MH i2c: E2 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 62 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 62 00 34 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 20 02 00 0E 04 04 00 C4 01 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 70 [19:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 20 02 00 0E 04 04 00 C4 01 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 [19:54:43]wFMCommunicate OK [19:54:43]SAM_PROTO_GetFieldsCounters done [19:54:43]requested_item shift.num is exist - process it [19:54:43]requested_item shift.opened is exist - process it [19:54:43]req_shift_opened [19:54:43]FM_GetShiftState [19:54:43]SAM_PROTO_GetShiftState [19:54:43]wFMCommunicate request_size=4 [19:54:43]MH_SAM_APDU [19:54:43]CAPDU: 80 13 01 00 [19:54:43]Write to MH i2c: E2 08 00 35 32 80 13 01 00 00 00 00 00 E4 [19:54:43]Write i2c OK [19:54:43]MH_I2C_Read... [19:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:43]Read from MH i2c: E2 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 0E 00 [19:54:43]MH_I2C_Read... [19:54:43]Read from MH i2c: E2 0E 00 35 32 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9B [19:54:43]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:54:43]wFMCommunicate OK [19:54:43]SAM_PROTO_GetShiftState done [19:54:43]FM_GetShiftState done [19:54:43]req_shift_opened done [19:54:43]requested_item shift.open_date is exist - process it [19:54:43]req_shift_open_date [19:54:43]req_shift_open_date done [19:54:43]produce_requested_data done [19:54:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139476,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:54:43]process_action_free close_receipt [19:54:43]json_value_free [19:54:43]json_value_free done [19:54:43]process_json_proto returns [19:54:43]Send response to host [19:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139476,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:54:43]free response buf [19:54:43]execute_script done [19:54:43]execute_script returns [19:54:43]free content buf [19:54:43]Sock 8.Close socket [19:54:43]Sock 8.Thread stoped [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:03]accept exits with 9 [19:56:03]New connection [19:56:03]New thread 3066817892 created [19:56:03]Thread 3066674532 joined [19:56:03]Waiting for new connection... [19:56:03] Sock 9.Parse request [19:56:03]Sock 9.Check first char [19:56:03]Sock 9.First char is OK [19:56:03]request: POST /json_proto HTTP/1.0 [19:56:03]Method: POST [19:56:03]URL: /json_proto [19:56:03]Method is POST - this is cgi request [19:56:03]url: /json_proto [19:56:03]query_string will be loaded in cgi processing [19:56:03]execute_cgi json_proto POST (null) [19:56:03]execute_cgi path=json_proto method=POST [19:56:03]POST find Content-Length [19:56:03]Host: 172.17.45.67:8080 [19:56:03]Content-Length: 663 [19:56:03]Content-Type: application/json [19:56:03] [19:56:03]POST finish read [19:56:03]Found Content-Length = 663 [19:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 40.700, "sum" : 2800.16, "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" ] } } [19:56:03]execute_script... [19:56: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)593320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 40.700, "sum" : 2800.16, "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" ] } } [19:56:03]POST & json_proto [19:56:03]process_json_proto [19:56:03]json parsed OK: [19:56:03]protocol is kg_v1.0 [19:56:03]action value=close_receipt [19:56:03]process_action close_receipt [19:56:03]cmd_close_receipt [19:56:03]MH_GetDate [19:56:03]Write to MH i2c: F0 00 00 36 32 57 [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: F0 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: F0 09 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: F0 09 00 36 32 00 55 A3 C3 66 5F 7F 2B 66 F0 [19:56:03]GetLastDocTimeStamp 1724097281 [19:56:03]current date 1724097365 [19:56:03]FM_GetShiftState [19:56:03]SAM_PROTO_GetShiftState [19:56:03]wFMCommunicate request_size=4 [19:56:03]MH_SAM_APDU [19:56:03]CAPDU: 80 13 01 00 [19:56:03]Write to MH i2c: E2 08 00 37 32 80 13 01 00 00 00 00 00 E6 [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:03]Read from MH i2c: E2 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 0E 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 0E 00 37 32 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9D [19:56:03]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:56:03]wFMCommunicate OK [19:56:03]SAM_PROTO_GetShiftState done [19:56:03]FM_GetShiftState done [19:56:03]opened in 1724027888 [19:56:03]opened+sec_in_day 1724114288 [19:56:03]quantity*price = 280016 [19:56:03]sum+1 = 280017 [19:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.36 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 312 19.08.2024 19:56 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139477 ФПД: 228628016234860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195605&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139477&fm=228628016234860&tin=02508201610067®Number=0000000000092569&sum=280000 [19:56:04]StoreToDocumentArchive [19:56:04]shift 452 fd 139477 [19:56:04]save to /storage/0452/doc_00139477 [19:56:04]save last doc name /storage/0452/doc_00139477 to /storage/kkm_last_doc_name [19:56:04]save OK [19:56:04]Clear old archive folders... [19:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:56:04]tlvbuf is 01234E70 [19:56:04]SAM_PROTO_ClearQueue [19:56:04]wFMCommunicate request_size=4 [19:56:04]MH_SAM_APDU [19:56:04]CAPDU: 80 09 00 00 [19:56:04]Write to MH i2c: E2 08 00 44 32 80 09 00 00 00 00 00 00 E8 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 44 32 00 90 00 EA [19:56:04]RAPDU: 90 00 [19:56:04]wFMCommunicate OK [19:56:04]SAM_PROTO_ClearQueue done [19:56:04]KKMCreateOFDPacket [19:56:04]OFDProtocolAddRootSTLVToBuf [19:56:04]FM_MakeSignedData [19:56:04]FM_MakeSignedData [19:56:04]SAM_PROTO_SignData [19:56:04]wFMCommunicate request_size=4 [19:56:04]MH_SAM_APDU [19:56:04]CAPDU: 80 0D 01 02 [19:56:04]Write to MH i2c: E2 08 00 45 32 80 0D 01 02 00 00 00 00 F0 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 45 32 00 90 00 EB [19:56:04]RAPDU: 90 00 [19:56:04]wFMCommunicate OK [19:56:04]wFMCommunicate request_size=253 [19:56:04]MH_SAM_APDU [19:56:04]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 FC 9E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D0 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 28 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 38 01 00 00 F4 03 04 00 55 A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 20 02 00 35 04 06 00 CF EF 9B B1 81 6C [19:56:04]Write to MH i2c: E2 00 01 46 32 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 FC 9E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D0 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 28 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 38 01 00 00 F4 03 04 00 55 A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 20 02 00 35 04 06 00 CF EF 9B B1 81 6C 00 00 D1 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 46 32 00 90 00 EC [19:56:04]RAPDU: 90 00 [19:56:04]wFMCommunicate OK [19:56:04]wFMCommunicate request_size=4 [19:56:04]MH_SAM_APDU [19:56:04]CAPDU: 80 0D 03 02 [19:56:04]Write to MH i2c: E2 08 00 47 32 80 0D 03 02 00 00 00 00 F4 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 0B 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 0B 00 47 32 00 30 AF 81 50 54 3A 6A AF 90 00 4C [19:56:04]RAPDU: 30 AF 81 50 54 3A 6A AF 90 00 [19:56:04]wFMCommunicate OK [19:56:04]SAM_PROTO_SignData done [19:56:04]FM_MakeSignedData done [19:56:04]CreateOFDProtocolMessage [19:56:04]wFMCommunicate request_size=4 [19:56:04]MH_SAM_APDU [19:56:04]CAPDU: 80 11 00 00 [19:56:04]Write to MH i2c: E2 08 00 48 32 80 11 00 00 00 00 00 00 F4 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 17 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 17 00 48 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [19:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:56:04]wFMCommunicate OK [19:56:04]CreateOFDProtocolMessage done [19:56:04]OFDSenderStorePacket 139477 [19:56:04]StoreOFDPacket docnum=139477 [19:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 94 2F 00 01 49 1A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 FC 9E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D0 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 28 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 38 01 00 00 F4 03 04 00 55 A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 20 02 00 35 04 06 00 CF EF 9B B1 81 6C 30 AF 81 50 54 3A 6A AF [19:56:04]CheckFolder [19:56:04]dirname=/storage/ofd_packets [19:56:04]CheckFolder done [19:56:04]ProducePacketName [19:56:04]name=ofd_packets/00139477 [19:56:04]NVStorageSaveData ofd_packets/00139477 [19:56:04]File name is /storage/ofd_packets/00139477 [19:56:04]Write 294 bytes [19:56:04]NVStorageSaveData done [19:56:04]OFDSenderStorePacket done [19:56:04]KKMCreateOFDPacket done [19:56:04]NVStorageSaveData kkm_last_timestamp [19:56:04]File name is /storage/kkm_last_timestamp [19:56:04]Write 4 bytes [19:56:04]NVStorageSaveData done [19:56:04]ExternCall_PrintAddStr [19:56:04]wPrintStart [19:56:04]Write to MH i2c: 01 00 00 49 32 7B [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: 01 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: 01 07 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: 01 07 00 49 32 00 00 00 00 00 FF 0F 90 [19:56:04]RasterBufferAndPrint [19:56:04]line Счет N : (1)593320 [19:56:04]line ИНН: 02508201610067 [19:56:04]line Контрольно-Кассовый Чек [19:56:04]line ПРОДАЖА [19:56:04]line ТРК (МРК, ГНК) : 53 [19:56:04]line Товар: 2710124130 [19:56:04]line SU-92 [19:56:04]line 40.700 * 68.80 [19:56:04]line = 2800.16 [19:56:04]line НДС 12% НСП 1% [19:56:04]line > о реализуемом товаре [19:56:04]line ОКРУГЛЕНИЕ: -0.16 [19:56:04]line ИТОГО: 2800.00 [19:56:04]line Внесено: 2800.00 [19:56:04]line СДАЧА: 0.00 [19:56:04]line НСП 1% : 24.78 [19:56:04]line НДС 12% : 297.36 [19:56:04]line Наличными: 2800.00 [19:56:04]line Безнал.: 0.00 [19:56:04]line Место: АЗС № 136 "Партнер Нефть" [19:56:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:56:04]line СНО: Общий режим [19:56:04]line Чек 312 19.08.2024 19:56 [19:56:04]line Смена: 452 ФФД: 1.0 [19:56:04]line ЗНМ: 0300000067 [19:56:04]line РНМ: 0000000000092569 [19:56:04]line Версия ККМ: 001 [19:56:04]line ФМ: 0000000000871776 [19:56:04]line ФД: 139477 [19:56:04]line ФПД: 228628016234860 [19:56:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195605&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139477&fm=228628016234860&tin=02508201610067®Number=0000000000092569&sum=280000 [19:56:05]OFD Sender: Processing packet 139477 [packets to send 137, broken 136] [19:56:05]ProducePacketName [19:56:05]name=ofd_packets/00139477 [19:56:05]OFD Sender: To server: pG, [19:56:05]CommunicateWithHost lk.salyk.kg:30040 [19:56:05]ConnectInit lk.salyk.kg [19:56:05]written 0, free lines is 4095 [19:56:05]Connected sock=10 [19:56: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 37 36 08 01 00 00 94 2F 00 01 49 1A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 FC 9E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D0 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 28 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 38 01 00 00 F4 03 04 00 55 A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 20 02 00 35 04 06 00 CF EF 9B B1 81 6C 30 AF 81 50 54 3A 6A AF [19:56: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 37 36 4F 00 00 00 3E 4E 47 00 80 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 37 36 10 04 04 00 D5 20 02 00 F4 03 04 00 EA 49 C3 66 B6 04 01 00 00 3E D8 9B 61 12 F8 C1 52 [19:56:05]CommunicateWithHost err = 0 [19:56:05]CheckOFDResponse [19:56:05]1017 (14) - 77093643461234 [19:56:05]1041 (16) - 0000000000871776 [19:56:05]1040 (4) - 139477 [19:56:05]1012 (4) - 19.08.2024 13:34 [19:56:05]1206 (1) - 0 [19:56:05]OFD Sender: Remove packet 139477 [19:56:05]ProducePacketName [19:56:05]name=ofd_packets/00139477 [19:56:05]NVStorageDeleteData [19:56:05]Write to MH i2c: 01 00 00 74 32 A6 [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: 01 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: 01 07 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: 01 07 00 74 32 00 00 00 00 00 E3 0C 9C [19:56:05]RasterBufferAndPrint [19:56:05]line [19:56:05]line [19:56:05]line [19:56:05]line [19:56:05]line [19:56:05]written 0, free lines is 3305 [19:56:05]MH_Cut [19:56:05]Write to MH i2c: D1 01 00 7B 32 01 7F [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: D1 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: D1 01 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: D1 01 00 7B 32 00 7E [19:56:05]Write to MH i2c: 01 00 00 7C 32 AE [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:06]OFD Sender: No OFD packet to send [19:56:06]*** Cut start [19:56:06]*** Partial cut [19:56:06]*** CUTSNS_PIN = 1 [19:56:06]*** CUTSNS_PIN = 0 [19:56:06]*** Brake cut motor [19:56:06]Read from MH i2c: 01 [19:56:07]MH_I2C_Read... [19:56:07]*** Stop cut motor [19:56:07]*** Cut end [19:56:07]Read from MH i2c: 01 07 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: 01 07 00 7C 32 00 00 00 00 00 FF 0F C3 [19:56:07]process_action close_receipt done [19:56:07]requested_data is exist [19:56:07]produce_requested_data [19:56:07]requested_item fm.sn is exist - process it [19:56:07]wFMCommunicate request_size=4 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 11 00 00 [19:56:07]Write to MH i2c: E2 08 00 7D 32 80 11 00 00 00 00 00 00 29 [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 17 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 17 00 7D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [19:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:56:07]wFMCommunicate OK [19:56:07]requested_item fd.num is exist - process it [19:56:07]SAM_PROTO_GetFieldsCounters [19:56:07]wFMCommunicate request_size=4 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 13 00 00 [19:56:07]Write to MH i2c: E2 08 00 7E 32 80 13 00 00 00 00 00 00 2C [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 62 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 62 00 7E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 20 02 00 0E 04 04 00 C4 01 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 BE [19:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 20 02 00 0E 04 04 00 C4 01 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 [19:56:07]wFMCommunicate OK [19:56:07]SAM_PROTO_GetFieldsCounters done [19:56:07]requested_item shift.num is exist - process it [19:56:07]requested_item shift.opened is exist - process it [19:56:07]req_shift_opened [19:56:07]FM_GetShiftState [19:56:07]SAM_PROTO_GetShiftState [19:56:07]wFMCommunicate request_size=4 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 13 01 00 [19:56:07]Write to MH i2c: E2 08 00 7F 32 80 13 01 00 00 00 00 00 2E [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 0E 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 0E 00 7F 32 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E5 [19:56:07]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:56:07]wFMCommunicate OK [19:56:07]SAM_PROTO_GetShiftState done [19:56:07]FM_GetShiftState done [19:56:07]req_shift_opened done [19:56:07]requested_item shift.open_date is exist - process it [19:56:07]req_shift_open_date [19:56:07]req_shift_open_date done [19:56:07]produce_requested_data done [19:56:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139477,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:56:07]process_action_free close_receipt [19:56:07]json_value_free [19:56:07]json_value_free done [19:56:07]process_json_proto returns [19:56:07]Send response to host [19:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139477,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:56:07]free response buf [19:56:07]execute_script done [19:56:07]execute_script returns [19:56:07]free content buf [19:56:07]Sock 9.Close socket [19:56:07]Sock 9.Thread stoped [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [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:49]accept exits with 8 [19:57:49]New connection [19:57:49]New thread 3066674532 created [19:57:49]Thread 3066817892 joined [19:57:49]Waiting for new connection... [19:57:49] Sock 8.Parse request [19:57:49]Sock 8.Check first char [19:57:49]Sock 8.First char is OK [19:57:49]request: POST /json_proto HTTP/1.0 [19:57:49]Method: POST [19:57:49]URL: /json_proto [19:57:49]Method is POST - this is cgi request [19:57:49]url: /json_proto [19:57:49]query_string will be loaded in cgi processing [19:57:49]execute_cgi json_proto POST (null) [19:57:49]execute_cgi path=json_proto method=POST [19:57:49]POST find Content-Length [19:57:49]Host: 172.17.45.67:8080 [19:57:49]Content-Length: 677 [19:57:49]Content-Type: application/json [19:57:49] [19:57:49]POST finish read [19:57:49]Found Content-Length = 677 [19:57:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:49]execute_script... [19:57: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)593321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:49]POST & json_proto [19:57:49]process_json_proto [19:57:49]json parsed OK: [19:57:49]protocol is kg_v1.0 [19:57:49]action value=close_receipt [19:57:49]process_action close_receipt [19:57:49]cmd_close_receipt [19:57:49]MH_GetDate [19:57:49]Write to MH i2c: F0 00 00 80 32 A1 [19:57:49]Write i2c OK [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: F0 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: F0 09 00 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: F0 09 00 80 32 00 BF A3 C3 66 5F 7F 2B 66 A4 [19:57:49]GetLastDocTimeStamp 1724097365 [19:57:49]current date 1724097471 [19:57:49]FM_GetShiftState [19:57:49]SAM_PROTO_GetShiftState [19:57:49]wFMCommunicate request_size=4 [19:57:49]MH_SAM_APDU [19:57:49]CAPDU: 80 13 01 00 [19:57:49]Write to MH i2c: E2 08 00 81 32 80 13 01 00 00 00 00 00 30 [19:57:49]Write i2c OK [19:57:49]MH_I2C_Read... [19:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:49]Read from MH i2c: E2 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: E2 0E 00 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: E2 0E 00 81 32 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E7 [19:57:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:57:49]wFMCommunicate OK [19:57:49]SAM_PROTO_GetShiftState done [19:57:49]FM_GetShiftState done [19:57:49]opened in 1724027888 [19:57:49]opened+sec_in_day 1724114288 [19:57:49]quantity*price = 70044 [19:57:49]sum+1 = 70046 [19:57:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 313 19.08.2024 19:57 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139478 ФПД: 139459684592472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195751&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139478&fm=139459684592472&tin=02508201610067®Number=0000000000092569&sum=70000 [19:57:50]StoreToDocumentArchive [19:57:50]shift 452 fd 139478 [19:57:50]save to /storage/0452/doc_00139478 [19:57:50]save last doc name /storage/0452/doc_00139478 to /storage/kkm_last_doc_name [19:57:50]save OK [19:57:50]Clear old archive folders... [19:57:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:50]tlvbuf is 0127E5E0 [19:57:50]SAM_PROTO_ClearQueue [19:57:50]wFMCommunicate request_size=4 [19:57:50]MH_SAM_APDU [19:57:50]CAPDU: 80 09 00 00 [19:57:50]Write to MH i2c: E2 08 00 8E 32 80 09 00 00 00 00 00 00 32 [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:50]Read from MH i2c: E2 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 03 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 03 00 8E 32 00 90 00 34 [19:57:50]RAPDU: 90 00 [19:57:50]wFMCommunicate OK [19:57:50]SAM_PROTO_ClearQueue done [19:57:50]KKMCreateOFDPacket [19:57:50]OFDProtocolAddRootSTLVToBuf [19:57:50]FM_MakeSignedData [19:57:50]FM_MakeSignedData [19:57:50]SAM_PROTO_SignData [19:57:50]wFMCommunicate request_size=4 [19:57:50]MH_SAM_APDU [19:57:50]CAPDU: 80 0D 01 02 [19:57:50]Write to MH i2c: E2 08 00 8F 32 80 0D 01 02 00 00 00 00 3A [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:50]Read from MH i2c: E2 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 03 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 03 00 8F 32 00 90 00 35 [19:57:50]RAPDU: 90 00 [19:57:50]wFMCommunicate OK [19:57:50]wFMCommunicate request_size=255 [19:57:50]MH_SAM_APDU [19:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 39 01 00 00 F4 03 04 00 BF A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 20 02 00 35 04 06 00 7E [19:57:50]Write to MH i2c: E2 02 01 90 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 39 01 00 00 F4 03 04 00 BF A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 20 02 00 35 04 06 00 7E 00 00 BA [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:50]Read from MH i2c: E2 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 03 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 03 00 90 32 00 90 00 36 [19:57:50]RAPDU: 90 00 [19:57:50]wFMCommunicate OK [19:57:50]wFMCommunicate request_size=10 [19:57:50]MH_SAM_APDU [19:57:50]CAPDU: 80 0D 02 02 05 D6 7C F5 EB 58 [19:57:50]Write to MH i2c: E2 0D 00 91 32 80 0D 02 02 05 00 D6 7C F5 EB 58 00 00 D1 [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:50]Read from MH i2c: E2 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 03 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 03 00 91 32 00 90 00 37 [19:57:50]RAPDU: 90 00 [19:57:50]wFMCommunicate OK [19:57:50]wFMCommunicate request_size=4 [19:57:50]MH_SAM_APDU [19:57:50]CAPDU: 80 0D 03 02 [19:57:50]Write to MH i2c: E2 08 00 92 32 80 0D 03 02 00 00 00 00 3F [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:50]Read from MH i2c: E2 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 0B 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 0B 00 92 32 00 0F DE AB 8E F2 9F 05 70 90 00 6C [19:57:50]RAPDU: 0F DE AB 8E F2 9F 05 70 90 00 [19:57:50]wFMCommunicate OK [19:57:50]SAM_PROTO_SignData done [19:57:50]FM_MakeSignedData done [19:57:50]CreateOFDProtocolMessage [19:57:50]wFMCommunicate request_size=4 [19:57:50]MH_SAM_APDU [19:57:50]CAPDU: 80 11 00 00 [19:57:50]Write to MH i2c: E2 08 00 93 32 80 11 00 00 00 00 00 00 3F [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:50]Read from MH i2c: E2 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 17 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: E2 17 00 93 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 96 [19:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:57:50]wFMCommunicate OK [19:57:50]CreateOFDProtocolMessage done [19:57:50]OFDSenderStorePacket 139478 [19:57:50]StoreOFDPacket docnum=139478 [19:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2E BC 07 01 0B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 39 01 00 00 F4 03 04 00 BF A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 20 02 00 35 04 06 00 7E D6 7C F5 EB 58 0F DE AB 8E F2 9F 05 70 [19:57:50]CheckFolder [19:57:50]dirname=/storage/ofd_packets [19:57:50]CheckFolder done [19:57:50]ProducePacketName [19:57:50]name=ofd_packets/00139478 [19:57:50]NVStorageSaveData ofd_packets/00139478 [19:57:50]File name is /storage/ofd_packets/00139478 [19:57:50]Write 301 bytes [19:57:50]NVStorageSaveData done [19:57:50]OFDSenderStorePacket done [19:57:50]KKMCreateOFDPacket done [19:57:50]NVStorageSaveData kkm_last_timestamp [19:57:50]File name is /storage/kkm_last_timestamp [19:57:50]Write 4 bytes [19:57:50]NVStorageSaveData done [19:57:50]ExternCall_PrintAddStr [19:57:50]wPrintStart [19:57:50]Write to MH i2c: 01 00 00 94 32 C6 [19:57:50]Write i2c OK [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: 01 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: 01 07 00 [19:57:50]MH_I2C_Read... [19:57:50]Read from MH i2c: 01 07 00 94 32 00 00 00 00 00 FF 0F DB [19:57:50]RasterBufferAndPrint [19:57:50]line Счет N : (1)593321 [19:57:50]line ИНН: 02508201610067 [19:57:50]line Контрольно-Кассовый Чек [19:57:50]line ПРОДАЖА [19:57:50]line ТРК (МРК, ГНК) : 41 [19:57:50]line Товар: 2710124500 [19:57:50]line Аи-95-К-5 [19:57:50]line 9.440 * 74.20 [19:57:50]line = 700.45 [19:57:50]line НДС 12% НСП 1% [19:57:50]line > о реализуемом товаре [19:57:50]line ОКРУГЛЕНИЕ: -0.45 [19:57:50]line ИТОГО: 700.00 [19:57:50]line Внесено: 700.00 [19:57:50]line СДАЧА: 0.00 [19:57:50]line НСП 1% : 6.20 [19:57:50]line НДС 12% : 74.38 [19:57:50]line Наличными: 700.00 [19:57:50]line Безнал.: 0.00 [19:57:50]line Место: АЗС № 136 "Партнер Нефть" [19:57:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:57:50]line СНО: Общий режим [19:57:50]line Чек 313 19.08.2024 19:57 [19:57:50]line Смена: 452 ФФД: 1.0 [19:57:50]line ЗНМ: 0300000067 [19:57:50]line РНМ: 0000000000092569 [19:57:50]line Версия ККМ: 001 [19:57:50]line ФМ: 0000000000871776 [19:57:50]line ФД: 139478 [19:57:50]line ФПД: 139459684592472 [19:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195751&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139478&fm=139459684592472&tin=02508201610067®Number=0000000000092569&sum=70000 [19:57:51]OFD Sender: Processing packet 139478 [packets to send 137, broken 136] [19:57:51]ProducePacketName [19:57:51]name=ofd_packets/00139478 [19:57:51]OFD Sender: To server: pG, [19:57:51]CommunicateWithHost lk.salyk.kg:30040 [19:57:51]ConnectInit lk.salyk.kg [19:57:51]written 0, free lines is 4095 [19:57:51]Connected sock=10 [19:57: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 37 36 0F 01 00 00 2E BC 07 01 0B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 39 01 00 00 F4 03 04 00 BF A3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 20 02 00 35 04 06 00 7E D6 7C F5 EB 58 0F DE AB 8E F2 9F 05 70 [19:57: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 37 36 4F 00 00 00 D2 68 47 00 25 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 20 02 00 F4 03 04 00 54 4A C3 66 B6 04 01 00 00 9C 8C 4D A5 AC 89 78 E9 [19:57:51]CommunicateWithHost err = 0 [19:57:51]CheckOFDResponse [19:57:51]1017 (14) - 77093643461234 [19:57:51]1041 (16) - 0000000000871776 [19:57:51]1040 (4) - 139478 [19:57:51]1012 (4) - 19.08.2024 13:36 [19:57:51]1206 (1) - 0 [19:57:51]OFD Sender: Remove packet 139478 [19:57:51]ProducePacketName [19:57:51]name=ofd_packets/00139478 [19:57:51]NVStorageDeleteData [19:57:51]Write to MH i2c: 01 00 00 BF 32 F1 [19:57:51]Write i2c OK [19:57:51]MH_I2C_Read... [19:57:51]Read from MH i2c: 01 [19:57:51]MH_I2C_Read... [19:57:51]Read from MH i2c: 01 07 00 [19:57:51]MH_I2C_Read... [19:57:51]Read from MH i2c: 01 07 00 BF 32 00 00 00 00 00 E2 0C E6 [19:57:51]RasterBufferAndPrint [19:57:51]line [19:57:51]line [19:57:51]line [19:57:51]line [19:57:51]line [19:57:51]written 0, free lines is 3304 [19:57:51]MH_Cut [19:57:51]Write to MH i2c: D1 01 00 C6 32 01 CA [19:57:51]Write i2c OK [19:57:51]MH_I2C_Read... [19:57:51]Read from MH i2c: D1 [19:57:51]MH_I2C_Read... [19:57:51]Read from MH i2c: D1 01 00 [19:57:51]MH_I2C_Read... [19:57:51]Read from MH i2c: D1 01 00 C6 32 00 C9 [19:57:51]Write to MH i2c: 01 00 00 C7 32 F9 [19:57:51]Write i2c OK [19:57:51]MH_I2C_Read... [19:57:52]OFD Sender: No OFD packet to send [19:57:52]*** Cut start [19:57:52]*** Partial cut [19:57:52]*** CUTSNS_PIN = 1 [19:57:52]*** CUTSNS_PIN = 0 [19:57:52]*** Brake cut motor [19:57:53]Read from MH i2c: 01 [19:57:53]MH_I2C_Read... [19:57:53]*** Stop cut motor [19:57:53]*** Cut end [19:57:53]Read from MH i2c: 01 07 00 [19:57:53]MH_I2C_Read... [19:57:53]Read from MH i2c: 01 07 00 C7 32 00 00 00 00 00 FF 0F 0E [19:57:53]process_action close_receipt done [19:57:53]requested_data is exist [19:57:53]produce_requested_data [19:57:53]requested_item fm.sn is exist - process it [19:57:53]wFMCommunicate request_size=4 [19:57:53]MH_SAM_APDU [19:57:53]CAPDU: 80 11 00 00 [19:57:53]Write to MH i2c: E2 08 00 C8 32 80 11 00 00 00 00 00 00 74 [19:57:53]Write i2c OK [19:57:53]MH_I2C_Read... [19:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:53]Read from MH i2c: E2 [19:57:53]MH_I2C_Read... [19:57:53]Read from MH i2c: E2 17 00 [19:57:53]MH_I2C_Read... [19:57:53]Read from MH i2c: E2 17 00 C8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [19:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:57:53]wFMCommunicate OK [19:57:53]requested_item fd.num is exist - process it [19:57:53]SAM_PROTO_GetFieldsCounters [19:57:53]wFMCommunicate request_size=4 [19:57:53]MH_SAM_APDU [19:57:53]CAPDU: 80 13 00 00 [19:57:53]Write to MH i2c: E2 08 00 C9 32 80 13 00 00 00 00 00 00 77 [19:57:53]Write i2c OK [19:57:53]MH_I2C_Read... [19:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:53]Read from MH i2c: E2 [19:57:53]MH_I2C_Read... [19:57:53]Read from MH i2c: E2 62 00 [19:57:53]MH_I2C_Read... [19:57:53]Read from MH i2c: E2 62 00 C9 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 20 02 00 0E 04 04 00 C4 01 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 0D [19:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 20 02 00 0E 04 04 00 C4 01 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 [19:57:53]wFMCommunicate OK [19:57:53]SAM_PROTO_GetFieldsCounters done [19:57:53]requested_item shift.num is exist - process it [19:57:53]requested_item shift.opened is exist - process it [19:57:53]req_shift_opened [19:57:53]FM_GetShiftState [19:57:53]SAM_PROTO_GetShiftState [19:57:53]wFMCommunicate request_size=4 [19:57:53]MH_SAM_APDU [19:57:53]CAPDU: 80 13 01 00 [19:57:53]Write to MH i2c: E2 08 00 CA 32 80 13 01 00 00 00 00 00 79 [19:57:53]Write i2c OK [19:57:53]MH_I2C_Read... [19:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:53]Read from MH i2c: E2 [19:57:53]MH_I2C_Read... [19:57:53]Read from MH i2c: E2 0E 00 [19:57:53]MH_I2C_Read... [19:57:53]Read from MH i2c: E2 0E 00 CA 32 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 30 [19:57:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [19:57:53]wFMCommunicate OK [19:57:53]SAM_PROTO_GetShiftState done [19:57:53]FM_GetShiftState done [19:57:53]req_shift_opened done [19:57:53]requested_item shift.open_date is exist - process it [19:57:53]req_shift_open_date [19:57:53]req_shift_open_date done [19:57:53]produce_requested_data done [19:57:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139478,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [19:57:53]process_action_free close_receipt [19:57:53]json_value_free [19:57:53]json_value_free done [19:57:53]process_json_proto returns [19:57:53]Send response to host [19:57:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139478,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [19:57:53]free response buf [19:57:53]execute_script done [19:57:53]execute_script returns [19:57:53]free content buf [19:57:53]Sock 8.Close socket [19:57:53]Sock 8.Thread stoped [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:41]accept exits with 9 [20:01:41]New connection [20:01:41]New thread 3066817892 created [20:01:41]Thread 3066674532 joined [20:01:41]Waiting for new connection... [20:01:41] Sock 9.Parse request [20:01:41]Sock 9.Check first char [20:01:41]Sock 9.First char is OK [20:01:41]request: POST /json_proto HTTP/1.0 [20:01:41]Method: POST [20:01:41]URL: /json_proto [20:01:41]Method is POST - this is cgi request [20:01:41]url: /json_proto [20:01:41]query_string will be loaded in cgi processing [20:01:41]execute_cgi json_proto POST (null) [20:01:41]execute_cgi path=json_proto method=POST [20:01:41]POST find Content-Length [20:01:41]Host: 172.17.45.67:8080 [20:01:41]Content-Length: 682 [20:01:41]Content-Type: application/json [20:01:41] [20:01:41]POST finish read [20:01:41]Found Content-Length = 682 [20:01:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:41]execute_script... [20:01: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)593322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:41]POST & json_proto [20:01:41]process_json_proto [20:01:41]json parsed OK: [20:01:41]protocol is kg_v1.0 [20:01:41]action value=close_receipt [20:01:41]process_action close_receipt [20:01:41]cmd_close_receipt [20:01:41]MH_GetDate [20:01:41]Write to MH i2c: F0 00 00 CB 32 EC [20:01:41]Write i2c OK [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: F0 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: F0 09 00 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: F0 09 00 CB 32 00 A8 A4 C3 66 5F 7F 2B 66 D9 [20:01:41]GetLastDocTimeStamp 1724097471 [20:01:41]current date 1724097704 [20:01:41]FM_GetShiftState [20:01:41]SAM_PROTO_GetShiftState [20:01:41]wFMCommunicate request_size=4 [20:01:41]MH_SAM_APDU [20:01:41]CAPDU: 80 13 01 00 [20:01:41]Write to MH i2c: E2 08 00 CC 32 80 13 01 00 00 00 00 00 7B [20:01:41]Write i2c OK [20:01:41]MH_I2C_Read... [20:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:41]Read from MH i2c: E2 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 0E 00 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 0E 00 CC 32 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 32 [20:01:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:01:41]wFMCommunicate OK [20:01:41]SAM_PROTO_GetShiftState done [20:01:41]FM_GetShiftState done [20:01:41]opened in 1724027888 [20:01:41]opened+sec_in_day 1724114288 [20:01:41]quantity*price = 100021 [20:01:41]sum+1 = 100023 [20:01:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 314 19.08.2024 20:01 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139479 ФПД: 80239931163448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T200144&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139479&fm=80239931163448&tin=02508201610067®Number=0000000000092569&sum=100000 [20:01:43]StoreToDocumentArchive [20:01:43]shift 452 fd 139479 [20:01:43]save to /storage/0452/doc_00139479 [20:01:43]save last doc name /storage/0452/doc_00139479 to /storage/kkm_last_doc_name [20:01:43]save OK [20:01:43]Clear old archive folders... [20:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:43]tlvbuf is 012E2400 [20:01:43]SAM_PROTO_ClearQueue [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 09 00 00 [20:01:43]Write to MH i2c: E2 08 00 D9 32 80 09 00 00 00 00 00 00 7D [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 D9 32 00 90 00 7F [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]SAM_PROTO_ClearQueue done [20:01:43]KKMCreateOFDPacket [20:01:43]OFDProtocolAddRootSTLVToBuf [20:01:43]FM_MakeSignedData [20:01:43]FM_MakeSignedData [20:01:43]SAM_PROTO_SignData [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 01 02 [20:01:43]Write to MH i2c: E2 08 00 DA 32 80 0D 01 02 00 00 00 00 85 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 DA 32 00 90 00 80 [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=255 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 A8 A4 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 20 02 00 35 04 06 00 48 [20:01:43]Write to MH i2c: E2 02 01 DB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 A8 A4 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 20 02 00 35 04 06 00 48 00 00 F1 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 DB 32 00 90 00 81 [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=10 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 02 02 05 FA 50 98 03 38 [20:01:43]Write to MH i2c: E2 0D 00 DC 32 80 0D 02 02 05 00 FA 50 98 03 38 00 00 AF [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 DC 32 00 90 00 82 [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 03 02 [20:01:43]Write to MH i2c: E2 08 00 DD 32 80 0D 03 02 00 00 00 00 8A [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 0B 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 0B 00 DD 32 00 BC F9 61 EC 11 D4 F0 00 90 00 62 [20:01:43]RAPDU: BC F9 61 EC 11 D4 F0 00 90 00 [20:01:43]wFMCommunicate OK [20:01:43]SAM_PROTO_SignData done [20:01:43]FM_MakeSignedData done [20:01:43]CreateOFDProtocolMessage [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 11 00 00 [20:01:43]Write to MH i2c: E2 08 00 DE 32 80 11 00 00 00 00 00 00 8A [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 17 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 17 00 DE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [20:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:01:43]wFMCommunicate OK [20:01:43]CreateOFDProtocolMessage done [20:01:43]OFDSenderStorePacket 139479 [20:01:43]StoreOFDPacket docnum=139479 [20:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 14 73 07 01 B4 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 A8 A4 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 20 02 00 35 04 06 00 48 FA 50 98 03 38 BC F9 61 EC 11 D4 F0 00 [20:01:43]CheckFolder [20:01:43]dirname=/storage/ofd_packets [20:01:43]CheckFolder done [20:01:43]ProducePacketName [20:01:43]name=ofd_packets/00139479 [20:01:43]NVStorageSaveData ofd_packets/00139479 [20:01:43]File name is /storage/ofd_packets/00139479 [20:01:43]Write 301 bytes [20:01:43]NVStorageSaveData done [20:01:43]OFDSenderStorePacket done [20:01:43]KKMCreateOFDPacket done [20:01:43]NVStorageSaveData kkm_last_timestamp [20:01:43]File name is /storage/kkm_last_timestamp [20:01:43]Write 4 bytes [20:01:43]NVStorageSaveData done [20:01:43]ExternCall_PrintAddStr [20:01:43]wPrintStart [20:01:43]Write to MH i2c: 01 00 00 DF 32 11 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: 01 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: 01 07 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: 01 07 00 DF 32 00 00 00 00 00 FF 0F 26 [20:01:43]RasterBufferAndPrint [20:01:43]line Счет N : (1)593322 [20:01:43]line ИНН: 02508201610067 [20:01:43]line Контрольно-Кассовый Чек [20:01:43]line ПРОДАЖА [20:01:43]line ТРК (МРК, ГНК) : 51 [20:01:43]line Товар: 2710124500 [20:01:43]line Аи-95-К-5 [20:01:43]line 13.480 * 74.20 [20:01:43]line = 1000.22 [20:01:43]line НДС 12% НСП 1% [20:01:43]line > о реализуемом товаре [20:01:43]line ОКРУГЛЕНИЕ: -0.22 [20:01:43]line ИТОГО: 1000.00 [20:01:43]line Внесено: 1000.00 [20:01:43]line СДАЧА: 0.00 [20:01:43]line НСП 1% : 8.85 [20:01:43]line НДС 12% : 106.22 [20:01:43]line Наличными: 1000.00 [20:01:43]line Безнал.: 0.00 [20:01:43]line Место: АЗС № 136 "Партнер Нефть" [20:01:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:01:43]line СНО: Общий режим [20:01:43]line Чек 314 19.08.2024 20:01 [20:01:43]line Смена: 452 ФФД: 1.0 [20:01:43]line ЗНМ: 0300000067 [20:01:43]line РНМ: 0000000000092569 [20:01:43]line Версия ККМ: 001 [20:01:43]line ФМ: 0000000000871776 [20:01:43]line ФД: 139479 [20:01:43]line ФПД: 80239931163448 [20:01:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T200144&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139479&fm=80239931163448&tin=02508201610067®Number=0000000000092569&sum=100000 [20:01:43]written 0, free lines is 4095 [20:01:43]OFD Sender: Processing packet 139479 [packets to send 137, broken 136] [20:01:43]ProducePacketName [20:01:43]name=ofd_packets/00139479 [20:01:43]OFD Sender: To server: pG, [20:01:43]CommunicateWithHost lk.salyk.kg:30040 [20:01:43]ConnectInit lk.salyk.kg [20:01:44]Connected sock=11 [20:01: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 37 36 0F 01 00 00 14 73 07 01 B4 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 A8 A4 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 20 02 00 35 04 06 00 48 FA 50 98 03 38 BC F9 61 EC 11 D4 F0 00 [20:01:44]Write to MH i2c: 01 00 00 0A 33 3D [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 0A 33 00 00 00 00 00 D7 0C 27 [20:01:44]RasterBufferAndPrint [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]written 0, free lines is 3293 [20:01:44]MH_Cut [20:01:44]Write to MH i2c: D1 01 00 11 33 01 16 [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 01 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 01 00 11 33 00 15 [20:01:44]Write to MH i2c: 01 00 00 12 33 45 [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01: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 37 36 4F 00 00 00 57 C5 47 00 A5 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 37 36 10 04 04 00 D7 20 02 00 F4 03 04 00 3D 4B C3 66 B6 04 01 00 00 D1 ED 98 1B 1D 0F 35 00 [20:01:44]CommunicateWithHost err = 0 [20:01:44]CheckOFDResponse [20:01:44]1017 (14) - 77093643461234 [20:01:44]1041 (16) - 0000000000871776 [20:01:44]1040 (4) - 139479 [20:01:44]1012 (4) - 19.08.2024 13:40 [20:01:44]1206 (1) - 0 [20:01:44]OFD Sender: Remove packet 139479 [20:01:44]ProducePacketName [20:01:44]name=ofd_packets/00139479 [20:01:44]NVStorageDeleteData [20:01:45]OFD Sender: No OFD packet to send [20:01:45]*** Cut start [20:01:45]*** Partial cut [20:01:45]*** CUTSNS_PIN = 1 [20:01:45]*** CUTSNS_PIN = 0 [20:01:45]*** Brake cut motor [20:01:45]Read from MH i2c: 01 [20:01:45]MH_I2C_Read... [20:01:45]*** Stop cut motor [20:01:45]*** Cut end [20:01:45]Read from MH i2c: 01 07 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: 01 07 00 12 33 00 00 00 00 00 FF 0F 5A [20:01:45]process_action close_receipt done [20:01:45]requested_data is exist [20:01:45]produce_requested_data [20:01:45]requested_item fm.sn is exist - process it [20:01:45]wFMCommunicate request_size=4 [20:01:45]MH_SAM_APDU [20:01:45]CAPDU: 80 11 00 00 [20:01:45]Write to MH i2c: E2 08 00 13 33 80 11 00 00 00 00 00 00 C0 [20:01:45]Write i2c OK [20:01:45]MH_I2C_Read... [20:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:45]Read from MH i2c: E2 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 17 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 17 00 13 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [20:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:01:45]wFMCommunicate OK [20:01:45]requested_item fd.num is exist - process it [20:01:45]SAM_PROTO_GetFieldsCounters [20:01:45]wFMCommunicate request_size=4 [20:01:45]MH_SAM_APDU [20:01:45]CAPDU: 80 13 00 00 [20:01:45]Write to MH i2c: E2 08 00 14 33 80 13 00 00 00 00 00 00 C3 [20:01:45]Write i2c OK [20:01:45]MH_I2C_Read... [20:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:45]Read from MH i2c: E2 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 62 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 62 00 14 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 20 02 00 0E 04 04 00 C4 01 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 5D [20:01: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 20 02 00 0E 04 04 00 C4 01 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 [20:01:45]wFMCommunicate OK [20:01:45]SAM_PROTO_GetFieldsCounters done [20:01:45]requested_item shift.num is exist - process it [20:01:45]requested_item shift.opened is exist - process it [20:01:45]req_shift_opened [20:01:45]FM_GetShiftState [20:01:45]SAM_PROTO_GetShiftState [20:01:45]wFMCommunicate request_size=4 [20:01:45]MH_SAM_APDU [20:01:45]CAPDU: 80 13 01 00 [20:01:45]Write to MH i2c: E2 08 00 15 33 80 13 01 00 00 00 00 00 C5 [20:01:45]Write i2c OK [20:01:45]MH_I2C_Read... [20:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:45]Read from MH i2c: E2 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 0E 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 0E 00 15 33 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7C [20:01:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:01:45]wFMCommunicate OK [20:01:45]SAM_PROTO_GetShiftState done [20:01:45]FM_GetShiftState done [20:01:45]req_shift_opened done [20:01:45]requested_item shift.open_date is exist - process it [20:01:45]req_shift_open_date [20:01:45]req_shift_open_date done [20:01:45]produce_requested_data done [20:01:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139479,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:01:45]process_action_free close_receipt [20:01:45]json_value_free [20:01:45]json_value_free done [20:01:45]process_json_proto returns [20:01:45]Send response to host [20:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139479,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:01:45]free response buf [20:01:45]execute_script done [20:01:45]execute_script returns [20:01:45]free content buf [20:01:45]Sock 9.Close socket [20:01:45]Sock 9.Thread stoped [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:52]accept exits with 8 [20:17:52]New connection [20:17:52]New thread 3066674532 created [20:17:52]Thread 3066817892 joined [20:17:52]Waiting for new connection... [20:17:52] Sock 8.Parse request [20:17:52]Sock 8.Check first char [20:17:52]Sock 8.First char is OK [20:17:52]request: POST /json_proto HTTP/1.0 [20:17:52]Method: POST [20:17:52]URL: /json_proto [20:17:52]Method is POST - this is cgi request [20:17:52]url: /json_proto [20:17:52]query_string will be loaded in cgi processing [20:17:52]execute_cgi json_proto POST (null) [20:17:52]execute_cgi path=json_proto method=POST [20:17:52]POST find Content-Length [20:17:52]Host: 172.17.45.67:8080 [20:17:52]Content-Length: 682 [20:17:52]Content-Type: application/json [20:17:52] [20:17:52]POST finish read [20:17:52]Found Content-Length = 682 [20:17:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:17:52]execute_script... [20:17: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)593323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:17:52]POST & json_proto [20:17:52]process_json_proto [20:17:52]json parsed OK: [20:17:52]protocol is kg_v1.0 [20:17:52]action value=close_receipt [20:17:52]process_action close_receipt [20:17:52]cmd_close_receipt [20:17:52]MH_GetDate [20:17:52]Write to MH i2c: F0 00 00 16 33 38 [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: F0 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: F0 09 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: F0 09 00 16 33 00 72 A8 C3 66 5F 7F 2B 66 F3 [20:17:52]GetLastDocTimeStamp 1724097704 [20:17:52]current date 1724098674 [20:17:52]FM_GetShiftState [20:17:52]SAM_PROTO_GetShiftState [20:17:52]wFMCommunicate request_size=4 [20:17:52]MH_SAM_APDU [20:17:52]CAPDU: 80 13 01 00 [20:17:52]Write to MH i2c: E2 08 00 17 33 80 13 01 00 00 00 00 00 C7 [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:52]Read from MH i2c: E2 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 0E 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 0E 00 17 33 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7E [20:17:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:17:52]wFMCommunicate OK [20:17:52]SAM_PROTO_GetShiftState done [20:17:52]FM_GetShiftState done [20:17:52]opened in 1724027888 [20:17:52]opened+sec_in_day 1724114288 [20:17:52]quantity*price = 100005 [20:17:52]sum+1 = 100006 [20:17:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 315 19.08.2024 20:17 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139480 ФПД: 127510086477230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T201754&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139480&fm=127510086477230&tin=02508201610067®Number=0000000000092569&sum=100000 [20:17:53]StoreToDocumentArchive [20:17:53]shift 452 fd 139480 [20:17:53]save to /storage/0452/doc_00139480 [20:17:53]save last doc name /storage/0452/doc_00139480 to /storage/kkm_last_doc_name [20:17:53]save OK [20:17:53]Clear old archive folders... [20:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:53]tlvbuf is 012DDE00 [20:17:53]SAM_PROTO_ClearQueue [20:17:53]wFMCommunicate request_size=4 [20:17:53]MH_SAM_APDU [20:17:53]CAPDU: 80 09 00 00 [20:17:53]Write to MH i2c: E2 08 00 24 33 80 09 00 00 00 00 00 00 C9 [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:53]Read from MH i2c: E2 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: E2 03 00 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: E2 03 00 24 33 00 90 00 CB [20:17:53]RAPDU: 90 00 [20:17:53]wFMCommunicate OK [20:17:53]SAM_PROTO_ClearQueue done [20:17:53]KKMCreateOFDPacket [20:17:53]OFDProtocolAddRootSTLVToBuf [20:17:53]FM_MakeSignedData [20:17:53]FM_MakeSignedData [20:17:53]SAM_PROTO_SignData [20:17:53]wFMCommunicate request_size=4 [20:17:53]MH_SAM_APDU [20:17:53]CAPDU: 80 0D 01 02 [20:17:53]Write to MH i2c: E2 08 00 25 33 80 0D 01 02 00 00 00 00 D1 [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:53]Read from MH i2c: E2 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: E2 03 00 [20:17:53]MH_I2C_Read... [20:17:53]Read from MH i2c: E2 03 00 25 33 00 90 00 CC [20:17:53]RAPDU: 90 00 [20:17:53]wFMCommunicate OK [20:17:53]wFMCommunicate request_size=255 [20:17:53]MH_SAM_APDU [20:17: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 72 A8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 20 02 00 35 04 06 00 73 [20:17:53]Write to MH i2c: E2 02 01 26 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 72 A8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 20 02 00 35 04 06 00 73 00 00 9A [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 26 33 00 90 00 CD [20:17:54]RAPDU: 90 00 [20:17:54]wFMCommunicate OK [20:17:54]wFMCommunicate request_size=10 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 0D 02 02 05 F8 41 68 E5 AE [20:17:54]Write to MH i2c: E2 0D 00 27 33 80 0D 02 02 05 00 F8 41 68 E5 AE 00 00 12 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 27 33 00 90 00 CE [20:17:54]RAPDU: 90 00 [20:17:54]wFMCommunicate OK [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 0D 03 02 [20:17:54]Write to MH i2c: E2 08 00 28 33 80 0D 03 02 00 00 00 00 D6 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0B 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0B 00 28 33 00 D3 98 AC 8C C8 FD 45 84 90 00 08 [20:17:54]RAPDU: D3 98 AC 8C C8 FD 45 84 90 00 [20:17:54]wFMCommunicate OK [20:17:54]SAM_PROTO_SignData done [20:17:54]FM_MakeSignedData done [20:17:54]CreateOFDProtocolMessage [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 11 00 00 [20:17:54]Write to MH i2c: E2 08 00 29 33 80 11 00 00 00 00 00 00 D6 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 17 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 17 00 29 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2D [20:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:17:54]wFMCommunicate OK [20:17:54]CreateOFDProtocolMessage done [20:17:54]OFDSenderStorePacket 139480 [20:17:54]StoreOFDPacket docnum=139480 [20:17:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 32 DE 07 01 16 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 72 A8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 20 02 00 35 04 06 00 73 F8 41 68 E5 AE D3 98 AC 8C C8 FD 45 84 [20:17:54]CheckFolder [20:17:54]dirname=/storage/ofd_packets [20:17:54]CheckFolder done [20:17:54]ProducePacketName [20:17:54]name=ofd_packets/00139480 [20:17:54]NVStorageSaveData ofd_packets/00139480 [20:17:54]File name is /storage/ofd_packets/00139480 [20:17:54]Write 301 bytes [20:17:54]NVStorageSaveData done [20:17:54]OFDSenderStorePacket done [20:17:54]KKMCreateOFDPacket done [20:17:54]NVStorageSaveData kkm_last_timestamp [20:17:54]File name is /storage/kkm_last_timestamp [20:17:54]Write 4 bytes [20:17:54]NVStorageSaveData done [20:17:54]ExternCall_PrintAddStr [20:17:54]wPrintStart [20:17:54]Write to MH i2c: 01 00 00 2A 33 5D [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 07 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 07 00 2A 33 00 00 00 00 00 FF 0F 72 [20:17:54]RasterBufferAndPrint [20:17:54]line Счет N : (1)593323 [20:17:54]line ИНН: 02508201610067 [20:17:54]line Контрольно-Кассовый Чек [20:17:54]line ПРОДАЖА [20:17:54]line ТРК (МРК, ГНК) : 42 [20:17:54]line Товар: 2710124130 [20:17:54]line Аи-92-К-5 [20:17:54]line 14.750 * 67.80 [20:17:54]line = 1000.05 [20:17:54]line НДС 12% НСП 1% [20:17:54]line > о реализуемом товаре [20:17:54]line ОКРУГЛЕНИЕ: -0.05 [20:17:54]line ИТОГО: 1000.00 [20:17:54]line Внесено: 1000.00 [20:17:54]line СДАЧА: 0.00 [20:17:54]line НСП 1% : 8.85 [20:17:54]line НДС 12% : 106.20 [20:17:54]line Наличными: 1000.00 [20:17:54]line Безнал.: 0.00 [20:17:54]line Место: АЗС № 136 "Партнер Нефть" [20:17:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:17:54]line СНО: Общий режим [20:17:54]line Чек 315 19.08.2024 20:17 [20:17:54]line Смена: 452 ФФД: 1.0 [20:17:54]line ЗНМ: 0300000067 [20:17:54]line РНМ: 0000000000092569 [20:17:54]line Версия ККМ: 001 [20:17:54]line ФМ: 0000000000871776 [20:17:54]line ФД: 139480 [20:17:54]line ФПД: 127510086477230 [20:17:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T201754&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139480&fm=127510086477230&tin=02508201610067®Number=0000000000092569&sum=100000 [20:17:54]OFD Sender: Processing packet 139480 [packets to send 137, broken 136] [20:17:54]ProducePacketName [20:17:54]name=ofd_packets/00139480 [20:17:54]OFD Sender: To server: pG, [20:17:54]CommunicateWithHost lk.salyk.kg:30040 [20:17:54]ConnectInit lk.salyk.kg [20:17:54]written 0, free lines is 4095 [20:17:55]Write to MH i2c: 01 00 00 55 33 88 [20:17:55]Write i2c OK [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: 01 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: 01 07 00 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: 01 07 00 55 33 00 00 00 00 00 C8 0C 63 [20:17:55]RasterBufferAndPrint [20:17:55]line [20:17:55]line [20:17:55]line [20:17:55]line [20:17:55]line [20:17:55]written 0, free lines is 3277 [20:17:55]MH_Cut [20:17:55]Write to MH i2c: D1 01 00 5C 33 01 61 [20:17:55]Write i2c OK [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: D1 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: D1 01 00 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: D1 01 00 5C 33 00 60 [20:17:55]Write to MH i2c: 01 00 00 5D 33 90 [20:17:55]Write i2c OK [20:17:55]MH_I2C_Read... [20:17:55]Connected sock=10 [20:17: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 37 36 0F 01 00 00 32 DE 07 01 16 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 72 A8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 20 02 00 35 04 06 00 73 F8 41 68 E5 AE D3 98 AC 8C C8 FD 45 84 [20:17: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 37 36 4F 00 00 00 E6 C3 47 00 59 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 37 36 10 04 04 00 D8 20 02 00 F4 03 04 00 08 4F C3 66 B6 04 01 00 00 E5 AF 3A 34 4D B2 36 72 [20:17:55]CommunicateWithHost err = 0 [20:17:55]CheckOFDResponse [20:17:55]1017 (14) - 77093643461234 [20:17:55]1041 (16) - 0000000000871776 [20:17:55]1040 (4) - 139480 [20:17:55]1012 (4) - 19.08.2024 13:56 [20:17:55]1206 (1) - 0 [20:17:55]OFD Sender: Remove packet 139480 [20:17:55]ProducePacketName [20:17:55]name=ofd_packets/00139480 [20:17:55]NVStorageDeleteData [20:17:55]*** Cut start [20:17:55]*** Partial cut [20:17:55]*** CUTSNS_PIN = 1 [20:17:55]*** CUTSNS_PIN = 0 [20:17:55]OFD Sender: No OFD packet to send [20:17:56]*** Brake cut motor [20:17:56]Read from MH i2c: 01 [20:17:56]MH_I2C_Read... [20:17:56]*** Stop cut motor [20:17:56]*** Cut end [20:17:56]Read from MH i2c: 01 07 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 5D 33 00 00 00 00 00 FF 0F A5 [20:17:56]process_action close_receipt done [20:17:56]requested_data is exist [20:17:56]produce_requested_data [20:17:56]requested_item fm.sn is exist - process it [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 11 00 00 [20:17:56]Write to MH i2c: E2 08 00 5E 33 80 11 00 00 00 00 00 00 0B [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 17 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 17 00 5E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [20:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:17:56]wFMCommunicate OK [20:17:56]requested_item fd.num is exist - process it [20:17:56]SAM_PROTO_GetFieldsCounters [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 13 00 00 [20:17:56]Write to MH i2c: E2 08 00 5F 33 80 13 00 00 00 00 00 00 0E [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 62 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 62 00 5F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 20 02 00 0E 04 04 00 C4 01 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 AC [20:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 20 02 00 0E 04 04 00 C4 01 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 [20:17:56]wFMCommunicate OK [20:17:56]SAM_PROTO_GetFieldsCounters done [20:17:56]requested_item shift.num is exist - process it [20:17:56]requested_item shift.opened is exist - process it [20:17:56]req_shift_opened [20:17:56]FM_GetShiftState [20:17:56]SAM_PROTO_GetShiftState [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 13 01 00 [20:17:56]Write to MH i2c: E2 08 00 60 33 80 13 01 00 00 00 00 00 10 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 0E 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 0E 00 60 33 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C7 [20:17:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:17:56]wFMCommunicate OK [20:17:56]SAM_PROTO_GetShiftState done [20:17:56]FM_GetShiftState done [20:17:56]req_shift_opened done [20:17:56]requested_item shift.open_date is exist - process it [20:17:56]req_shift_open_date [20:17:56]req_shift_open_date done [20:17:56]produce_requested_data done [20:17:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139480,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:17:56]process_action_free close_receipt [20:17:56]json_value_free [20:17:56]json_value_free done [20:17:56]process_json_proto returns [20:17:56]Send response to host [20:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139480,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:17:56]free response buf [20:17:56]execute_script done [20:17:56]execute_script returns [20:17:56]free content buf [20:17:56]Sock 8.Close socket [20:17:56]Sock 8.Thread stoped [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:38]accept exits with 9 [20:18:38]New connection [20:18:38]New thread 3066817892 created [20:18:38]Thread 3066674532 joined [20:18:38]Waiting for new connection... [20:18:38] Sock 9.Parse request [20:18:38]Sock 9.Check first char [20:18:38]Sock 9.First char is OK [20:18:38]request: POST /json_proto HTTP/1.0 [20:18:38]Method: POST [20:18:38]URL: /json_proto [20:18:38]Method is POST - this is cgi request [20:18:38]url: /json_proto [20:18:38]query_string will be loaded in cgi processing [20:18:38]execute_cgi json_proto POST (null) [20:18:38]execute_cgi path=json_proto method=POST [20:18:38]POST find Content-Length [20:18:38]Host: 172.17.45.67:8080 [20:18:38]Content-Length: 658 [20:18:38]Content-Type: application/json [20:18:38] [20:18:38]POST finish read [20:18:38]Found Content-Length = 658 [20:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.620, "sum" : 180.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:38]execute_script... [20:18: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)593324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.620, "sum" : 180.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:38]POST & json_proto [20:18:38]process_json_proto [20:18:38]json parsed OK: [20:18:38]protocol is kg_v1.0 [20:18:38]action value=close_receipt [20:18:38]process_action close_receipt [20:18:38]cmd_close_receipt [20:18:38]MH_GetDate [20:18:38]Write to MH i2c: F0 00 00 61 33 83 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: F0 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: F0 09 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: F0 09 00 61 33 00 A0 A8 C3 66 5F 7F 2B 66 6C [20:18:38]GetLastDocTimeStamp 1724098674 [20:18:38]current date 1724098720 [20:18:38]FM_GetShiftState [20:18:38]SAM_PROTO_GetShiftState [20:18:38]wFMCommunicate request_size=4 [20:18:38]MH_SAM_APDU [20:18:38]CAPDU: 80 13 01 00 [20:18:38]Write to MH i2c: E2 08 00 62 33 80 13 01 00 00 00 00 00 12 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:38]Read from MH i2c: E2 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 0E 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 0E 00 62 33 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C9 [20:18:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:18:38]wFMCommunicate OK [20:18:38]SAM_PROTO_GetShiftState done [20:18:38]FM_GetShiftState done [20:18:38]opened in 1724027888 [20:18:38]opened+sec_in_day 1724114288 [20:18:38]quantity*price = 18025 [20:18:38]sum+1 = 18027 [20:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.59 НДС 12% : 19.14 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 316 19.08.2024 20:18 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139481 ФПД: 219743646397062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T201840&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139481&fm=219743646397062&tin=02508201610067®Number=0000000000092569&sum=18000 [20:18:39]StoreToDocumentArchive [20:18:39]shift 452 fd 139481 [20:18:39]save to /storage/0452/doc_00139481 [20:18:39]save last doc name /storage/0452/doc_00139481 to /storage/kkm_last_doc_name [20:18:39]save OK [20:18:39]Clear old archive folders... [20:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:18:39]tlvbuf is 0133D2E0 [20:18:39]SAM_PROTO_ClearQueue [20:18:39]wFMCommunicate request_size=4 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 09 00 00 [20:18:39]Write to MH i2c: E2 08 00 6F 33 80 09 00 00 00 00 00 00 14 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 6F 33 00 90 00 16 [20:18:39]RAPDU: 90 00 [20:18:39]wFMCommunicate OK [20:18:39]SAM_PROTO_ClearQueue done [20:18:39]KKMCreateOFDPacket [20:18:39]OFDProtocolAddRootSTLVToBuf [20:18:39]FM_MakeSignedData [20:18:39]FM_MakeSignedData [20:18:39]SAM_PROTO_SignData [20:18:39]wFMCommunicate request_size=4 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 0D 01 02 [20:18:39]Write to MH i2c: E2 08 00 70 33 80 0D 01 02 00 00 00 00 1C [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 70 33 00 90 00 17 [20:18:39]RAPDU: 90 00 [20:18:39]wFMCommunicate OK [20:18:39]wFMCommunicate request_size=253 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 3C 0A 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 07 00 00 00 00 07 04 06 00 50 46 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 A0 A8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 20 02 00 35 04 06 00 C7 DB 0D FC 32 86 [20:18:39]Write to MH i2c: E2 00 01 71 33 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 3C 0A 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 07 00 00 00 00 07 04 06 00 50 46 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 A0 A8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 20 02 00 35 04 06 00 C7 DB 0D FC 32 86 00 00 EB [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 71 33 00 90 00 18 [20:18:39]RAPDU: 90 00 [20:18:39]wFMCommunicate OK [20:18:39]wFMCommunicate request_size=4 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 0D 03 02 [20:18:39]Write to MH i2c: E2 08 00 72 33 80 0D 03 02 00 00 00 00 20 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 0B 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 0B 00 72 33 00 8A 88 15 B8 64 66 C3 C0 90 00 4D [20:18:39]RAPDU: 8A 88 15 B8 64 66 C3 C0 90 00 [20:18:39]wFMCommunicate OK [20:18:39]SAM_PROTO_SignData done [20:18:39]FM_MakeSignedData done [20:18:39]CreateOFDProtocolMessage [20:18:39]wFMCommunicate request_size=4 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 11 00 00 [20:18:39]Write to MH i2c: E2 08 00 73 33 80 11 00 00 00 00 00 00 20 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 17 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 17 00 73 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 77 [20:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:39]wFMCommunicate OK [20:18:39]CreateOFDProtocolMessage done [20:18:39]OFDSenderStorePacket 139481 [20:18:39]StoreOFDPacket docnum=139481 [20:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 59 60 00 01 79 94 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 3C 0A 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 07 00 00 00 00 07 04 06 00 50 46 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 A0 A8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 20 02 00 35 04 06 00 C7 DB 0D FC 32 86 8A 88 15 B8 64 66 C3 C0 [20:18:39]CheckFolder [20:18:39]dirname=/storage/ofd_packets [20:18:39]CheckFolder done [20:18:39]ProducePacketName [20:18:39]name=ofd_packets/00139481 [20:18:39]NVStorageSaveData ofd_packets/00139481 [20:18:39]File name is /storage/ofd_packets/00139481 [20:18:39]Write 294 bytes [20:18:39]NVStorageSaveData done [20:18:39]OFDSenderStorePacket done [20:18:39]KKMCreateOFDPacket done [20:18:39]NVStorageSaveData kkm_last_timestamp [20:18:39]File name is /storage/kkm_last_timestamp [20:18:39]Write 4 bytes [20:18:39]NVStorageSaveData done [20:18:39]ExternCall_PrintAddStr [20:18:39]wPrintStart [20:18:39]Write to MH i2c: 01 00 00 74 33 A7 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 07 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 07 00 74 33 00 00 00 00 00 FF 0F BC [20:18:39]RasterBufferAndPrint [20:18:39]line Счет N : (1)593324 [20:18:39]line ИНН: 02508201610067 [20:18:39]line Контрольно-Кассовый Чек [20:18:39]line ПРОДАЖА [20:18:39]line ТРК (МРК, ГНК) : 33 [20:18:39]line Товар: 2710124130 [20:18:39]line SU-92 [20:18:39]line 2.620 * 68.80 [20:18:39]line = 180.26 [20:18:39]line НДС 12% НСП 1% [20:18:39]line > о реализуемом товаре [20:18:39]line ОКРУГЛЕНИЕ: -0.26 [20:18:39]line ИТОГО: 180.00 [20:18:39]line Внесено: 180.00 [20:18:39]line СДАЧА: 0.00 [20:18:39]line НСП 1% : 1.59 [20:18:39]line НДС 12% : 19.14 [20:18:39]line Наличными: 180.00 [20:18:39]line Безнал.: 0.00 [20:18:39]line Место: АЗС № 136 "Партнер Нефть" [20:18:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:18:39]line СНО: Общий режим [20:18:39]line Чек 316 19.08.2024 20:18 [20:18:39]line Смена: 452 ФФД: 1.0 [20:18:39]line ЗНМ: 0300000067 [20:18:39]line РНМ: 0000000000092569 [20:18:39]line Версия ККМ: 001 [20:18:39]line ФМ: 0000000000871776 [20:18:39]line ФД: 139481 [20:18:39]line ФПД: 219743646397062 [20:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T201840&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139481&fm=219743646397062&tin=02508201610067®Number=0000000000092569&sum=18000 [20:18:39]OFD Sender: Processing packet 139481 [packets to send 137, broken 136] [20:18:39]ProducePacketName [20:18:39]name=ofd_packets/00139481 [20:18:39]OFD Sender: To server: pG, [20:18:39]CommunicateWithHost lk.salyk.kg:30040 [20:18:39]ConnectInit lk.salyk.kg [20:18:39]written 0, free lines is 4095 [20:18:40]Connected sock=10 [20:18: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 37 36 08 01 00 00 59 60 00 01 79 94 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 3C 0A 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 07 00 00 00 00 07 04 06 00 50 46 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 A0 A8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 20 02 00 35 04 06 00 C7 DB 0D FC 32 86 8A 88 15 B8 64 66 C3 C0 [20:18:40]Write to MH i2c: 01 00 00 9F 33 D2 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 07 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 07 00 9F 33 00 00 00 00 00 D2 0C B7 [20:18:40]RasterBufferAndPrint [20:18:40]line [20:18:40]line [20:18:40]line [20:18:40]line [20:18:40]line [20:18:40]written 0, free lines is 3285 [20:18: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 37 36 4F 00 00 00 34 E7 47 00 53 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 37 36 10 04 04 00 D9 20 02 00 F4 03 04 00 35 4F C3 66 B6 04 01 00 00 0A 81 84 8F 4A C9 0A D8 [20:18:40]CommunicateWithHost err = 0 [20:18:40]CheckOFDResponse [20:18:40]1017 (14) - 77093643461234 [20:18:40]1041 (16) - 0000000000871776 [20:18:40]1040 (4) - 139481 [20:18:40]1012 (4) - 19.08.2024 13:57 [20:18:40]1206 (1) - 0 [20:18:40]OFD Sender: Remove packet 139481 [20:18:40]ProducePacketName [20:18:40]name=ofd_packets/00139481 [20:18:40]NVStorageDeleteData [20:18:40]MH_Cut [20:18:40]Write to MH i2c: D1 01 00 A6 33 01 AB [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: D1 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: D1 01 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: D1 01 00 A6 33 00 AA [20:18:40]Write to MH i2c: 01 00 00 A7 33 DA [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]OFD Sender: No OFD packet to send [20:18:41]*** Cut start [20:18:41]*** Partial cut [20:18:41]*** CUTSNS_PIN = 1 [20:18:41]*** CUTSNS_PIN = 0 [20:18:41]*** Brake cut motor [20:18:41]Read from MH i2c: 01 [20:18:41]MH_I2C_Read... [20:18:41]*** Stop cut motor [20:18:41]*** Cut end [20:18:41]Read from MH i2c: 01 07 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 07 00 A7 33 00 00 00 00 00 FF 0F EF [20:18:41]process_action close_receipt done [20:18:41]requested_data is exist [20:18:41]produce_requested_data [20:18:41]requested_item fm.sn is exist - process it [20:18:41]wFMCommunicate request_size=4 [20:18:41]MH_SAM_APDU [20:18:41]CAPDU: 80 11 00 00 [20:18:41]Write to MH i2c: E2 08 00 A8 33 80 11 00 00 00 00 00 00 55 [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:41]Read from MH i2c: E2 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 17 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 17 00 A8 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [20:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:41]wFMCommunicate OK [20:18:41]requested_item fd.num is exist - process it [20:18:41]SAM_PROTO_GetFieldsCounters [20:18:41]wFMCommunicate request_size=4 [20:18:41]MH_SAM_APDU [20:18:41]CAPDU: 80 13 00 00 [20:18:41]Write to MH i2c: E2 08 00 A9 33 80 13 00 00 00 00 00 00 58 [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:41]Read from MH i2c: E2 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 62 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 62 00 A9 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 20 02 00 0E 04 04 00 C4 01 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 FA [20:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 20 02 00 0E 04 04 00 C4 01 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 [20:18:41]wFMCommunicate OK [20:18:41]SAM_PROTO_GetFieldsCounters done [20:18:41]requested_item shift.num is exist - process it [20:18:41]requested_item shift.opened is exist - process it [20:18:41]req_shift_opened [20:18:41]FM_GetShiftState [20:18:41]SAM_PROTO_GetShiftState [20:18:41]wFMCommunicate request_size=4 [20:18:41]MH_SAM_APDU [20:18:41]CAPDU: 80 13 01 00 [20:18:41]Write to MH i2c: E2 08 00 AA 33 80 13 01 00 00 00 00 00 5A [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:41]Read from MH i2c: E2 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 0E 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 0E 00 AA 33 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 11 [20:18:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:18:41]wFMCommunicate OK [20:18:41]SAM_PROTO_GetShiftState done [20:18:41]FM_GetShiftState done [20:18:41]req_shift_opened done [20:18:41]requested_item shift.open_date is exist - process it [20:18:41]req_shift_open_date [20:18:41]req_shift_open_date done [20:18:41]produce_requested_data done [20:18:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139481,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:18:41]process_action_free close_receipt [20:18:41]json_value_free [20:18:41]json_value_free done [20:18:41]process_json_proto returns [20:18:41]Send response to host [20:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139481,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:18:41]free response buf [20:18:41]execute_script done [20:18:41]execute_script returns [20:18:41]free content buf [20:18:41]Sock 9.Close socket [20:18:41]Sock 9.Thread stoped [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:41]accept exits with 8 [20:20:41]New connection [20:20:41]New thread 3066674532 created [20:20:41]Thread 3066817892 joined [20:20:41]Waiting for new connection... [20:20:41] Sock 8.Parse request [20:20:41]Sock 8.Check first char [20:20:41]Sock 8.First char is OK [20:20:41]request: POST /json_proto HTTP/1.0 [20:20:41]Method: POST [20:20:41]URL: /json_proto [20:20:41]Method is POST - this is cgi request [20:20:41]url: /json_proto [20:20:41]query_string will be loaded in cgi processing [20:20:41]execute_cgi json_proto POST (null) [20:20:41]execute_cgi path=json_proto method=POST [20:20:41]POST find Content-Length [20:20:41]Host: 172.17.45.67:8080 [20:20:41]Content-Length: 677 [20:20:41]Content-Type: application/json [20:20:41] [20:20:41]POST finish read [20:20:41]Found Content-Length = 677 [20:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:20:41]execute_script... [20:20:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:20:41]POST & json_proto [20:20:41]process_json_proto [20:20:41]json parsed OK: [20:20:41]protocol is kg_v1.0 [20:20:41]action value=close_receipt [20:20:41]process_action close_receipt [20:20:41]cmd_close_receipt [20:20:41]MH_GetDate [20:20:41]Write to MH i2c: F0 00 00 AB 33 CD [20:20:41]Write i2c OK [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: F0 [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: F0 09 00 [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: F0 09 00 AB 33 00 1C A9 C3 66 5F 7F 2B 66 33 [20:20:41]GetLastDocTimeStamp 1724098720 [20:20:41]current date 1724098844 [20:20:41]FM_GetShiftState [20:20:41]SAM_PROTO_GetShiftState [20:20:41]wFMCommunicate request_size=4 [20:20:41]MH_SAM_APDU [20:20:41]CAPDU: 80 13 01 00 [20:20:41]Write to MH i2c: E2 08 00 AC 33 80 13 01 00 00 00 00 00 5C [20:20:41]Write i2c OK [20:20:41]MH_I2C_Read... [20:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:41]Read from MH i2c: E2 [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: E2 0E 00 [20:20:41]MH_I2C_Read... [20:20:41]Read from MH i2c: E2 0E 00 AC 33 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 13 [20:20:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:20:41]wFMCommunicate OK [20:20:41]SAM_PROTO_GetShiftState done [20:20:41]FM_GetShiftState done [20:20:41]opened in 1724027888 [20:20:41]opened+sec_in_day 1724114288 [20:20:41]quantity*price = 50036 [20:20:41]sum+1 = 50037 [20:20:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 317 19.08.2024 20:20 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139482 ФПД: 252304957946728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139482&fm=252304957946728&tin=02508201610067®Number=0000000000092569&sum=50000 [20:20:43]StoreToDocumentArchive [20:20:43]shift 452 fd 139482 [20:20:43]save to /storage/0452/doc_00139482 [20:20:43]save last doc name /storage/0452/doc_00139482 to /storage/kkm_last_doc_name [20:20:43]save OK [20:20:43]Clear old archive folders... [20:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:43]tlvbuf is 011FE5E0 [20:20:43]SAM_PROTO_ClearQueue [20:20:43]wFMCommunicate request_size=4 [20:20:43]MH_SAM_APDU [20:20:43]CAPDU: 80 09 00 00 [20:20:43]Write to MH i2c: E2 08 00 B9 33 80 09 00 00 00 00 00 00 5E [20:20:43]Write i2c OK [20:20:43]MH_I2C_Read... [20:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:43]Read from MH i2c: E2 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 03 00 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 03 00 B9 33 00 90 00 60 [20:20:43]RAPDU: 90 00 [20:20:43]wFMCommunicate OK [20:20:43]SAM_PROTO_ClearQueue done [20:20:43]KKMCreateOFDPacket [20:20:43]OFDProtocolAddRootSTLVToBuf [20:20:43]FM_MakeSignedData [20:20:43]FM_MakeSignedData [20:20:43]SAM_PROTO_SignData [20:20:43]wFMCommunicate request_size=4 [20:20:43]MH_SAM_APDU [20:20:43]CAPDU: 80 0D 01 02 [20:20:43]Write to MH i2c: E2 08 00 BA 33 80 0D 01 02 00 00 00 00 66 [20:20:43]Write i2c OK [20:20:43]MH_I2C_Read... [20:20:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:43]Read from MH i2c: E2 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 03 00 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 03 00 BA 33 00 90 00 61 [20:20:43]RAPDU: 90 00 [20:20:43]wFMCommunicate OK [20:20:43]wFMCommunicate request_size=255 [20:20:43]MH_SAM_APDU [20:20: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 3D 01 00 00 F4 03 04 00 1C A9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 20 02 00 35 04 06 00 E5 [20:20:43]Write to MH i2c: E2 02 01 BB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 3D 01 00 00 F4 03 04 00 1C A9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 20 02 00 35 04 06 00 E5 00 00 C1 [20:20:43]Write i2c OK [20:20:43]MH_I2C_Read... [20:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:43]Read from MH i2c: E2 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 03 00 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 03 00 BB 33 00 90 00 62 [20:20:43]RAPDU: 90 00 [20:20:43]wFMCommunicate OK [20:20:43]wFMCommunicate request_size=10 [20:20:43]MH_SAM_APDU [20:20:43]CAPDU: 80 0D 02 02 05 78 53 64 BB 68 [20:20:43]Write to MH i2c: E2 0D 00 BC 33 80 0D 02 02 05 00 78 53 64 BB 68 00 00 C5 [20:20:43]Write i2c OK [20:20:43]MH_I2C_Read... [20:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:43]Read from MH i2c: E2 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 03 00 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 03 00 BC 33 00 90 00 63 [20:20:43]RAPDU: 90 00 [20:20:43]wFMCommunicate OK [20:20:43]wFMCommunicate request_size=4 [20:20:43]MH_SAM_APDU [20:20:43]CAPDU: 80 0D 03 02 [20:20:43]Write to MH i2c: E2 08 00 BD 33 80 0D 03 02 00 00 00 00 6B [20:20:43]Write i2c OK [20:20:43]MH_I2C_Read... [20:20:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:43]Read from MH i2c: E2 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 0B 00 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 0B 00 BD 33 00 1A C6 2C 37 05 E8 B8 7F 90 00 D3 [20:20:43]RAPDU: 1A C6 2C 37 05 E8 B8 7F 90 00 [20:20:43]wFMCommunicate OK [20:20:43]SAM_PROTO_SignData done [20:20:43]FM_MakeSignedData done [20:20:43]CreateOFDProtocolMessage [20:20:43]wFMCommunicate request_size=4 [20:20:43]MH_SAM_APDU [20:20:43]CAPDU: 80 11 00 00 [20:20:43]Write to MH i2c: E2 08 00 BE 33 80 11 00 00 00 00 00 00 6B [20:20:43]Write i2c OK [20:20:43]MH_I2C_Read... [20:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:43]Read from MH i2c: E2 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 17 00 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: E2 17 00 BE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C2 [20:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:20:43]wFMCommunicate OK [20:20:43]CreateOFDProtocolMessage done [20:20:43]OFDSenderStorePacket 139482 [20:20:43]StoreOFDPacket docnum=139482 [20:20:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CC 0D 07 01 CF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 3D 01 00 00 F4 03 04 00 1C A9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 20 02 00 35 04 06 00 E5 78 53 64 BB 68 1A C6 2C 37 05 E8 B8 7F [20:20:43]CheckFolder [20:20:43]dirname=/storage/ofd_packets [20:20:43]CheckFolder done [20:20:43]ProducePacketName [20:20:43]name=ofd_packets/00139482 [20:20:43]NVStorageSaveData ofd_packets/00139482 [20:20:43]File name is /storage/ofd_packets/00139482 [20:20:43]Write 301 bytes [20:20:43]NVStorageSaveData done [20:20:43]OFDSenderStorePacket done [20:20:43]KKMCreateOFDPacket done [20:20:43]NVStorageSaveData kkm_last_timestamp [20:20:43]File name is /storage/kkm_last_timestamp [20:20:43]Write 4 bytes [20:20:43]NVStorageSaveData done [20:20:43]ExternCall_PrintAddStr [20:20:43]wPrintStart [20:20:43]Write to MH i2c: 01 00 00 BF 33 F2 [20:20:43]Write i2c OK [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: 01 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: 01 07 00 [20:20:43]MH_I2C_Read... [20:20:43]Read from MH i2c: 01 07 00 BF 33 00 00 00 00 00 FF 0F 07 [20:20:43]RasterBufferAndPrint [20:20:43]line Счет N : (1)593325 [20:20:43]line ИНН: 02508201610067 [20:20:43]line Контрольно-Кассовый Чек [20:20:43]line ПРОДАЖА [20:20:43]line ТРК (МРК, ГНК) : 62 [20:20:43]line Товар: 2710124130 [20:20:43]line Аи-92-К-5 [20:20:43]line 7.380 * 67.80 [20:20:43]line = 500.36 [20:20:43]line НДС 12% НСП 1% [20:20:43]line > о реализуемом товаре [20:20:43]line ОКРУГЛЕНИЕ: -0.36 [20:20:43]line ИТОГО: 500.00 [20:20:43]line Внесено: 500.00 [20:20:43]line СДАЧА: 0.00 [20:20:43]line НСП 1% : 4.43 [20:20:43]line НДС 12% : 53.14 [20:20:43]line Наличными: 500.00 [20:20:43]line Безнал.: 0.00 [20:20:43]line Место: АЗС № 136 "Партнер Нефть" [20:20:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:20:43]line СНО: Общий режим [20:20:43]line Чек 317 19.08.2024 20:20 [20:20:43]line Смена: 452 ФФД: 1.0 [20:20:43]line ЗНМ: 0300000067 [20:20:43]line РНМ: 0000000000092569 [20:20:43]line Версия ККМ: 001 [20:20:43]line ФМ: 0000000000871776 [20:20:43]line ФД: 139482 [20:20:43]line ФПД: 252304957946728 [20:20:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139482&fm=252304957946728&tin=02508201610067®Number=0000000000092569&sum=50000 [20:20:43]OFD Sender: Processing packet 139482 [packets to send 137, broken 136] [20:20:43]ProducePacketName [20:20:43]name=ofd_packets/00139482 [20:20:43]OFD Sender: To server: pG, [20:20:43]CommunicateWithHost lk.salyk.kg:30040 [20:20:43]ConnectInit lk.salyk.kg [20:20:43]written 0, free lines is 4095 [20:20:44]Connected sock=9 [20:20: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 37 36 0F 01 00 00 CC 0D 07 01 CF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 3D 01 00 00 F4 03 04 00 1C A9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 20 02 00 35 04 06 00 E5 78 53 64 BB 68 1A C6 2C 37 05 E8 B8 7F [20:20: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 37 36 4F 00 00 00 66 8A 47 00 C4 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 37 36 10 04 04 00 DA 20 02 00 F4 03 04 00 B1 4F C3 66 B6 04 01 00 00 94 1C 2A 7B 46 B5 5A 85 [20:20:44]CommunicateWithHost err = 0 [20:20:44]CheckOFDResponse [20:20:44]1017 (14) - 77093643461234 [20:20:44]1041 (16) - 0000000000871776 [20:20:44]1040 (4) - 139482 [20:20:44]1012 (4) - 19.08.2024 13:59 [20:20:44]1206 (1) - 0 [20:20:44]OFD Sender: Remove packet 139482 [20:20:44]ProducePacketName [20:20:44]name=ofd_packets/00139482 [20:20:44]NVStorageDeleteData [20:20:44]Write to MH i2c: 01 00 00 EA 33 1D [20:20:44]Write i2c OK [20:20:44]MH_I2C_Read... [20:20:44]Read from MH i2c: 01 [20:20:44]MH_I2C_Read... [20:20:44]Read from MH i2c: 01 07 00 [20:20:44]MH_I2C_Read... [20:20:44]Read from MH i2c: 01 07 00 EA 33 00 00 00 00 00 D5 0C 05 [20:20:44]RasterBufferAndPrint [20:20:44]line [20:20:44]line [20:20:44]line [20:20:44]line [20:20:44]line [20:20:44]written 0, free lines is 3293 [20:20:44]MH_Cut [20:20:44]Write to MH i2c: D1 01 00 F1 33 01 F6 [20:20:44]Write i2c OK [20:20:44]MH_I2C_Read... [20:20:44]Read from MH i2c: D1 [20:20:44]MH_I2C_Read... [20:20:44]Read from MH i2c: D1 01 00 [20:20:44]MH_I2C_Read... [20:20:44]Read from MH i2c: D1 01 00 F1 33 00 F5 [20:20:44]Write to MH i2c: 01 00 00 F2 33 25 [20:20:44]Write i2c OK [20:20:44]MH_I2C_Read... [20:20:44]OFD Sender: No OFD packet to send [20:20:45]*** Cut start [20:20:45]*** Partial cut [20:20:45]*** CUTSNS_PIN = 1 [20:20:45]*** CUTSNS_PIN = 0 [20:20:45]*** Brake cut motor [20:20:45]Read from MH i2c: 01 [20:20:45]MH_I2C_Read... [20:20:45]*** Stop cut motor [20:20:45]*** Cut end [20:20:45]Read from MH i2c: 01 07 00 [20:20:45]MH_I2C_Read... [20:20:45]Read from MH i2c: 01 07 00 F2 33 00 00 00 00 00 FF 0F 3A [20:20:45]process_action close_receipt done [20:20:45]requested_data is exist [20:20:45]produce_requested_data [20:20:45]requested_item fm.sn is exist - process it [20:20:45]wFMCommunicate request_size=4 [20:20:45]MH_SAM_APDU [20:20:45]CAPDU: 80 11 00 00 [20:20:45]Write to MH i2c: E2 08 00 F3 33 80 11 00 00 00 00 00 00 A0 [20:20:45]Write i2c OK [20:20:45]MH_I2C_Read... [20:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:45]Read from MH i2c: E2 [20:20:45]MH_I2C_Read... [20:20:45]Read from MH i2c: E2 17 00 [20:20:45]MH_I2C_Read... [20:20:45]Read from MH i2c: E2 17 00 F3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F7 [20:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:20:45]wFMCommunicate OK [20:20:45]requested_item fd.num is exist - process it [20:20:45]SAM_PROTO_GetFieldsCounters [20:20:45]wFMCommunicate request_size=4 [20:20:45]MH_SAM_APDU [20:20:45]CAPDU: 80 13 00 00 [20:20:45]Write to MH i2c: E2 08 00 F4 33 80 13 00 00 00 00 00 00 A3 [20:20:45]Write i2c OK [20:20:45]MH_I2C_Read... [20:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:45]Read from MH i2c: E2 [20:20:45]MH_I2C_Read... [20:20:45]Read from MH i2c: E2 62 00 [20:20:45]MH_I2C_Read... [20:20:45]Read from MH i2c: E2 62 00 F4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 20 02 00 0E 04 04 00 C4 01 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 49 [20:20:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 20 02 00 0E 04 04 00 C4 01 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 [20:20:45]wFMCommunicate OK [20:20:45]SAM_PROTO_GetFieldsCounters done [20:20:45]requested_item shift.num is exist - process it [20:20:45]requested_item shift.opened is exist - process it [20:20:45]req_shift_opened [20:20:45]FM_GetShiftState [20:20:45]SAM_PROTO_GetShiftState [20:20:45]wFMCommunicate request_size=4 [20:20:45]MH_SAM_APDU [20:20:45]CAPDU: 80 13 01 00 [20:20:45]Write to MH i2c: E2 08 00 F5 33 80 13 01 00 00 00 00 00 A5 [20:20:45]Write i2c OK [20:20:45]MH_I2C_Read... [20:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:45]Read from MH i2c: E2 [20:20:45]MH_I2C_Read... [20:20:45]Read from MH i2c: E2 0E 00 [20:20:45]MH_I2C_Read... [20:20:45]Read from MH i2c: E2 0E 00 F5 33 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5C [20:20:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:20:45]wFMCommunicate OK [20:20:45]SAM_PROTO_GetShiftState done [20:20:45]FM_GetShiftState done [20:20:45]req_shift_opened done [20:20:45]requested_item shift.open_date is exist - process it [20:20:45]req_shift_open_date [20:20:45]req_shift_open_date done [20:20:45]produce_requested_data done [20:20:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139482,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:20:45]process_action_free close_receipt [20:20:45]json_value_free [20:20:45]json_value_free done [20:20:45]process_json_proto returns [20:20:45]Send response to host [20:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139482,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:20:45]free response buf [20:20:45]execute_script done [20:20:45]execute_script returns [20:20:45]free content buf [20:20:45]Sock 8.Close socket [20:20:45]Sock 8.Thread stoped [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:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:35]accept exits with 10 [20:22:35]New connection [20:22:35]New thread 3066817892 created [20:22:35]Thread 3066674532 joined [20:22:35]Waiting for new connection... [20:22:35] Sock 10.Parse request [20:22:35]Sock 10.Check first char [20:22:35]Sock 10.First char is OK [20:22:35]request: POST /json_proto HTTP/1.0 [20:22:35]Method: POST [20:22:35]URL: /json_proto [20:22:35]Method is POST - this is cgi request [20:22:35]url: /json_proto [20:22:35]query_string will be loaded in cgi processing [20:22:35]execute_cgi json_proto POST (null) [20:22:35]execute_cgi path=json_proto method=POST [20:22:35]POST find Content-Length [20:22:35]Host: 172.17.45.67:8080 [20:22:35]Content-Length: 677 [20:22:35]Content-Type: application/json [20:22:35] [20:22:35]POST finish read [20:22:35]Found Content-Length = 677 [20:22:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:22:35]execute_script... [20:22: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)593326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:22:35]POST & json_proto [20:22:35]process_json_proto [20:22:35]json parsed OK: [20:22:35]protocol is kg_v1.0 [20:22:35]action value=close_receipt [20:22:35]process_action close_receipt [20:22:35]cmd_close_receipt [20:22:35]MH_GetDate [20:22:35]Write to MH i2c: F0 00 00 F6 33 18 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: F0 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: F0 09 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: F0 09 00 F6 33 00 8D A9 C3 66 5F 7F 2B 66 EF [20:22:35]GetLastDocTimeStamp 1724098844 [20:22:35]current date 1724098957 [20:22:35]FM_GetShiftState [20:22:35]SAM_PROTO_GetShiftState [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 13 01 00 [20:22:35]Write to MH i2c: E2 08 00 F7 33 80 13 01 00 00 00 00 00 A7 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 0E 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 0E 00 F7 33 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5E [20:22:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:22:35]wFMCommunicate OK [20:22:35]SAM_PROTO_GetShiftState done [20:22:35]FM_GetShiftState done [20:22:35]opened in 1724027888 [20:22:35]opened+sec_in_day 1724114288 [20:22:35]quantity*price = 50010 [20:22:35]sum+1 = 50012 [20:22:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 318 19.08.2024 20:22 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139483 ФПД: 247269896172740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202237&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139483&fm=247269896172740&tin=02508201610067®Number=0000000000092569&sum=50000 [20:22:36]StoreToDocumentArchive [20:22:36]shift 452 fd 139483 [20:22:36]save to /storage/0452/doc_00139483 [20:22:36]save last doc name /storage/0452/doc_00139483 to /storage/kkm_last_doc_name [20:22:36]save OK [20:22:36]Clear old archive folders... [20:22:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:36]tlvbuf is 012E22B0 [20:22:36]SAM_PROTO_ClearQueue [20:22:36]wFMCommunicate request_size=4 [20:22:36]MH_SAM_APDU [20:22:36]CAPDU: 80 09 00 00 [20:22:36]Write to MH i2c: E2 08 00 04 34 80 09 00 00 00 00 00 00 AA [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 03 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 03 00 04 34 00 90 00 AC [20:22:36]RAPDU: 90 00 [20:22:36]wFMCommunicate OK [20:22:36]SAM_PROTO_ClearQueue done [20:22:36]KKMCreateOFDPacket [20:22:36]OFDProtocolAddRootSTLVToBuf [20:22:36]FM_MakeSignedData [20:22:36]FM_MakeSignedData [20:22:36]SAM_PROTO_SignData [20:22:36]wFMCommunicate request_size=4 [20:22:36]MH_SAM_APDU [20:22:36]CAPDU: 80 0D 01 02 [20:22:36]Write to MH i2c: E2 08 00 05 34 80 0D 01 02 00 00 00 00 B2 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 03 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 03 00 05 34 00 90 00 AD [20:22:36]RAPDU: 90 00 [20:22:36]wFMCommunicate OK [20:22:36]wFMCommunicate request_size=255 [20:22:36]MH_SAM_APDU [20:22:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 8D A9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 20 02 00 35 04 06 00 E0 [20:22:36]Write to MH i2c: E2 02 01 06 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 8D A9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 20 02 00 35 04 06 00 E0 00 00 63 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 03 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 03 00 06 34 00 90 00 AE [20:22:36]RAPDU: 90 00 [20:22:36]wFMCommunicate OK [20:22:36]wFMCommunicate request_size=10 [20:22:36]MH_SAM_APDU [20:22:36]CAPDU: 80 0D 02 02 05 E4 02 53 34 C4 [20:22:36]Write to MH i2c: E2 0D 00 07 34 80 0D 02 02 05 00 E4 02 53 34 C4 00 00 F0 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 03 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 03 00 07 34 00 90 00 AF [20:22:36]RAPDU: 90 00 [20:22:36]wFMCommunicate OK [20:22:36]wFMCommunicate request_size=4 [20:22:36]MH_SAM_APDU [20:22:36]CAPDU: 80 0D 03 02 [20:22:36]Write to MH i2c: E2 08 00 08 34 80 0D 03 02 00 00 00 00 B7 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 0B 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 0B 00 08 34 00 00 E7 0B 33 5D B1 B5 2A 90 00 CA [20:22:36]RAPDU: 00 E7 0B 33 5D B1 B5 2A 90 00 [20:22:36]wFMCommunicate OK [20:22:36]SAM_PROTO_SignData done [20:22:36]FM_MakeSignedData done [20:22:36]CreateOFDProtocolMessage [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 09 34 80 11 00 00 00 00 00 00 B7 [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 09 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0E [20:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:22:36]wFMCommunicate OK [20:22:36]CreateOFDProtocolMessage done [20:22:36]OFDSenderStorePacket 139483 [20:22:36]StoreOFDPacket docnum=139483 [20:22:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B4 29 07 01 1D 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 8D A9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 20 02 00 35 04 06 00 E0 E4 02 53 34 C4 00 E7 0B 33 5D B1 B5 2A [20:22:36]CheckFolder [20:22:36]dirname=/storage/ofd_packets [20:22:36]CheckFolder done [20:22:36]ProducePacketName [20:22:36]name=ofd_packets/00139483 [20:22:36]NVStorageSaveData ofd_packets/00139483 [20:22:36]File name is /storage/ofd_packets/00139483 [20:22:36]Write 301 bytes [20:22:36]NVStorageSaveData done [20:22:36]OFDSenderStorePacket done [20:22:36]KKMCreateOFDPacket done [20:22:36]NVStorageSaveData kkm_last_timestamp [20:22:36]File name is /storage/kkm_last_timestamp [20:22:36]Write 4 bytes [20:22:36]NVStorageSaveData done [20:22:36]ExternCall_PrintAddStr [20:22:36]wPrintStart [20:22:36]Write to MH i2c: 01 00 00 0A 34 3E [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 0A 34 00 00 00 00 00 FF 0F 53 [20:22:36]RasterBufferAndPrint [20:22:36]line Счет N : (1)593326 [20:22:36]line ИНН: 02508201610067 [20:22:36]line Контрольно-Кассовый Чек [20:22:36]line ПРОДАЖА [20:22:36]line ТРК (МРК, ГНК) : 51 [20:22:36]line Товар: 2710124500 [20:22:36]line Аи-95-К-5 [20:22:36]line 6.740 * 74.20 [20:22:36]line = 500.11 [20:22:36]line НДС 12% НСП 1% [20:22:36]line > о реализуемом товаре [20:22:36]line ОКРУГЛЕНИЕ: -0.11 [20:22:36]line ИТОГО: 500.00 [20:22:36]line Внесено: 500.00 [20:22:36]line СДАЧА: 0.00 [20:22:36]line НСП 1% : 4.43 [20:22:36]line НДС 12% : 53.11 [20:22:36]line Наличными: 500.00 [20:22:36]line Безнал.: 0.00 [20:22:36]line Место: АЗС № 136 "Партнер Нефть" [20:22:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:22:36]line СНО: Общий режим [20:22:36]line Чек 318 19.08.2024 20:22 [20:22:36]line Смена: 452 ФФД: 1.0 [20:22:36]line ЗНМ: 0300000067 [20:22:36]line РНМ: 0000000000092569 [20:22:36]line Версия ККМ: 001 [20:22:36]line ФМ: 0000000000871776 [20:22:36]line ФД: 139483 [20:22:36]line ФПД: 247269896172740 [20:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202237&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139483&fm=247269896172740&tin=02508201610067®Number=0000000000092569&sum=50000 [20:22:37]OFD Sender: Processing packet 139483 [packets to send 137, broken 136] [20:22:37]ProducePacketName [20:22:37]name=ofd_packets/00139483 [20:22:37]OFD Sender: To server: pG, [20:22:37]CommunicateWithHost lk.salyk.kg:30040 [20:22:37]ConnectInit lk.salyk.kg [20:22:37]written 0, free lines is 4095 [20:22:37]Connected sock=9 [20:22: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 37 36 0F 01 00 00 B4 29 07 01 1D 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 8D A9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 20 02 00 35 04 06 00 E0 E4 02 53 34 C4 00 E7 0B 33 5D B1 B5 2A [20:22: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 37 36 4F 00 00 00 AA AB 47 00 50 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 20 02 00 F4 03 04 00 22 50 C3 66 B6 04 01 00 00 45 64 59 47 68 7F B0 6C [20:22:37]CommunicateWithHost err = 0 [20:22:37]CheckOFDResponse [20:22:37]1017 (14) - 77093643461234 [20:22:37]1041 (16) - 0000000000871776 [20:22:37]1040 (4) - 139483 [20:22:37]1012 (4) - 19.08.2024 14:01 [20:22:37]1206 (1) - 0 [20:22:37]OFD Sender: Remove packet 139483 [20:22:37]ProducePacketName [20:22:37]name=ofd_packets/00139483 [20:22:37]NVStorageDeleteData [20:22:37]Write to MH i2c: 01 00 00 35 34 69 [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: 01 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: 01 07 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: 01 07 00 35 34 00 00 00 00 00 C7 0C 43 [20:22:37]RasterBufferAndPrint [20:22:37]line [20:22:37]line [20:22:37]line [20:22:37]line [20:22:37]line [20:22:37]written 0, free lines is 3277 [20:22:37]MH_Cut [20:22:37]Write to MH i2c: D1 01 00 3C 34 01 42 [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: D1 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: D1 01 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: D1 01 00 3C 34 00 41 [20:22:37]Write to MH i2c: 01 00 00 3D 34 71 [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:38]OFD Sender: No OFD packet to send [20:22:38]*** Cut start [20:22:38]*** Partial cut [20:22:38]*** CUTSNS_PIN = 1 [20:22:38]*** CUTSNS_PIN = 0 [20:22:38]*** Brake cut motor [20:22:39]Read from MH i2c: 01 [20:22:39]MH_I2C_Read... [20:22:39]*** Stop cut motor [20:22:39]*** Cut end [20:22:39]Read from MH i2c: 01 07 00 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: 01 07 00 3D 34 00 00 00 00 00 FF 0F 86 [20:22:39]process_action close_receipt done [20:22:39]requested_data is exist [20:22:39]produce_requested_data [20:22:39]requested_item fm.sn is exist - process it [20:22:39]wFMCommunicate request_size=4 [20:22:39]MH_SAM_APDU [20:22:39]CAPDU: 80 11 00 00 [20:22:39]Write to MH i2c: E2 08 00 3E 34 80 11 00 00 00 00 00 00 EC [20:22:39]Write i2c OK [20:22:39]MH_I2C_Read... [20:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:39]Read from MH i2c: E2 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: E2 17 00 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: E2 17 00 3E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [20:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:22:39]wFMCommunicate OK [20:22:39]requested_item fd.num is exist - process it [20:22:39]SAM_PROTO_GetFieldsCounters [20:22:39]wFMCommunicate request_size=4 [20:22:39]MH_SAM_APDU [20:22:39]CAPDU: 80 13 00 00 [20:22:39]Write to MH i2c: E2 08 00 3F 34 80 13 00 00 00 00 00 00 EF [20:22:39]Write i2c OK [20:22:39]MH_I2C_Read... [20:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:39]Read from MH i2c: E2 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: E2 62 00 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: E2 62 00 3F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 20 02 00 0E 04 04 00 C4 01 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 99 [20:22: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 20 02 00 0E 04 04 00 C4 01 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 [20:22:39]wFMCommunicate OK [20:22:39]SAM_PROTO_GetFieldsCounters done [20:22:39]requested_item shift.num is exist - process it [20:22:39]requested_item shift.opened is exist - process it [20:22:39]req_shift_opened [20:22:39]FM_GetShiftState [20:22:39]SAM_PROTO_GetShiftState [20:22:39]wFMCommunicate request_size=4 [20:22:39]MH_SAM_APDU [20:22:39]CAPDU: 80 13 01 00 [20:22:39]Write to MH i2c: E2 08 00 40 34 80 13 01 00 00 00 00 00 F1 [20:22:39]Write i2c OK [20:22:39]MH_I2C_Read... [20:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:39]Read from MH i2c: E2 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: E2 0E 00 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: E2 0E 00 40 34 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A8 [20:22:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:22:39]wFMCommunicate OK [20:22:39]SAM_PROTO_GetShiftState done [20:22:39]FM_GetShiftState done [20:22:39]req_shift_opened done [20:22:39]requested_item shift.open_date is exist - process it [20:22:39]req_shift_open_date [20:22:39]req_shift_open_date done [20:22:39]produce_requested_data done [20:22:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139483,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:22:39]process_action_free close_receipt [20:22:39]json_value_free [20:22:39]json_value_free done [20:22:39]process_json_proto returns [20:22:39]Send response to host [20:22:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139483,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:22:39]free response buf [20:22:39]execute_script done [20:22:39]execute_script returns [20:22:39]free content buf [20:22:39]Sock 10.Close socket [20:22:39]Sock 10.Thread stoped [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:11]accept exits with 8 [20:25:11]New connection [20:25:11]New thread 3066674532 created [20:25:11]Thread 3066817892 joined [20:25:11]Waiting for new connection... [20:25:11] Sock 8.Parse request [20:25:11]Sock 8.Check first char [20:25:11]Sock 8.First char is OK [20:25:11]request: POST /json_proto HTTP/1.0 [20:25:11]Method: POST [20:25:11]URL: /json_proto [20:25:11]Method is POST - this is cgi request [20:25:11]url: /json_proto [20:25:11]query_string will be loaded in cgi processing [20:25:11]execute_cgi json_proto POST (null) [20:25:11]execute_cgi path=json_proto method=POST [20:25:11]POST find Content-Length [20:25:11]Host: 172.17.45.67:8080 [20:25:11]Content-Length: 677 [20:25:11]Content-Type: application/json [20:25:11] [20:25:11]POST finish read [20:25:11]Found Content-Length = 677 [20:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:25:11]execute_script... [20: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)593327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:25:11]POST & json_proto [20:25:11]process_json_proto [20:25:11]json parsed OK: [20:25:11]protocol is kg_v1.0 [20:25:11]action value=close_receipt [20:25:11]process_action close_receipt [20:25:11]cmd_close_receipt [20:25:11]MH_GetDate [20:25:11]Write to MH i2c: F0 00 00 41 34 64 [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: F0 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: F0 09 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: F0 09 00 41 34 00 29 AA C3 66 5F 7F 2B 66 D8 [20:25:11]GetLastDocTimeStamp 1724098957 [20:25:11]current date 1724099113 [20:25:11]FM_GetShiftState [20:25:11]SAM_PROTO_GetShiftState [20:25:11]wFMCommunicate request_size=4 [20:25:11]MH_SAM_APDU [20:25:11]CAPDU: 80 13 01 00 [20:25:11]Write to MH i2c: E2 08 00 42 34 80 13 01 00 00 00 00 00 F3 [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:11]Read from MH i2c: E2 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 0E 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 0E 00 42 34 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AA [20:25:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:25:11]wFMCommunicate OK [20:25:11]SAM_PROTO_GetShiftState done [20:25:11]FM_GetShiftState done [20:25:11]opened in 1724027888 [20:25:11]opened+sec_in_day 1724114288 [20:25:11]quantity*price = 50036 [20:25:11]sum+1 = 50037 [20:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 319 19.08.2024 20:25 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139484 ФПД: 2658028001531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202513&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139484&fm=2658028001531&tin=02508201610067®Number=0000000000092569&sum=50000 [20:25:12]StoreToDocumentArchive [20:25:12]shift 452 fd 139484 [20:25:12]save to /storage/0452/doc_00139484 [20:25:12]save last doc name /storage/0452/doc_00139484 to /storage/kkm_last_doc_name [20:25:12]save OK [20:25:12]Clear old archive folders... [20:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:12]tlvbuf is B6F37900 [20:25:12]SAM_PROTO_ClearQueue [20:25:12]wFMCommunicate request_size=4 [20:25:12]MH_SAM_APDU [20:25:12]CAPDU: 80 09 00 00 [20:25:12]Write to MH i2c: E2 08 00 4F 34 80 09 00 00 00 00 00 00 F5 [20:25:12]Write i2c OK [20:25:12]MH_I2C_Read... [20:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:12]Read from MH i2c: E2 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 03 00 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 03 00 4F 34 00 90 00 F7 [20:25:12]RAPDU: 90 00 [20:25:12]wFMCommunicate OK [20:25:12]SAM_PROTO_ClearQueue done [20:25:12]KKMCreateOFDPacket [20:25:12]OFDProtocolAddRootSTLVToBuf [20:25:12]FM_MakeSignedData [20:25:12]FM_MakeSignedData [20:25:12]SAM_PROTO_SignData [20:25:12]wFMCommunicate request_size=4 [20:25:12]MH_SAM_APDU [20:25:12]CAPDU: 80 0D 01 02 [20:25:12]Write to MH i2c: E2 08 00 50 34 80 0D 01 02 00 00 00 00 FD [20:25:12]Write i2c OK [20:25:12]MH_I2C_Read... [20:25:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:12]Read from MH i2c: E2 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 03 00 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 03 00 50 34 00 90 00 F8 [20:25:12]RAPDU: 90 00 [20:25:12]wFMCommunicate OK [20:25:12]wFMCommunicate request_size=255 [20:25:12]MH_SAM_APDU [20:25: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 3F 01 00 00 F4 03 04 00 29 AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 20 02 00 35 04 06 00 02 [20:25:12]Write to MH i2c: E2 02 01 51 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 3F 01 00 00 F4 03 04 00 29 AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 20 02 00 35 04 06 00 02 00 00 87 [20:25:12]Write i2c OK [20:25:12]MH_I2C_Read... [20:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:12]Read from MH i2c: E2 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 03 00 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 03 00 51 34 00 90 00 F9 [20:25:12]RAPDU: 90 00 [20:25:12]wFMCommunicate OK [20:25:12]wFMCommunicate request_size=10 [20:25:12]MH_SAM_APDU [20:25:12]CAPDU: 80 0D 02 02 05 6A DE D0 98 FB [20:25:12]Write to MH i2c: E2 0D 00 52 34 80 0D 02 02 05 00 6A DE D0 98 FB 00 00 B5 [20:25:12]Write i2c OK [20:25:12]MH_I2C_Read... [20:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:12]Read from MH i2c: E2 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 03 00 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 03 00 52 34 00 90 00 FA [20:25:12]RAPDU: 90 00 [20:25:12]wFMCommunicate OK [20:25:12]wFMCommunicate request_size=4 [20:25:12]MH_SAM_APDU [20:25:12]CAPDU: 80 0D 03 02 [20:25:12]Write to MH i2c: E2 08 00 53 34 80 0D 03 02 00 00 00 00 02 [20:25:12]Write i2c OK [20:25:12]MH_I2C_Read... [20:25:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:12]Read from MH i2c: E2 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 0B 00 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: E2 0B 00 53 34 00 65 96 87 47 B8 BD 7D B9 90 00 77 [20:25:12]RAPDU: 65 96 87 47 B8 BD 7D B9 90 00 [20:25:12]wFMCommunicate OK [20:25:12]SAM_PROTO_SignData done [20:25:12]FM_MakeSignedData done [20:25:12]CreateOFDProtocolMessage [20:25:12]wFMCommunicate request_size=4 [20:25:12]MH_SAM_APDU [20:25:12]CAPDU: 80 11 00 00 [20:25:12]Write to MH i2c: E2 08 00 54 34 80 11 00 00 00 00 00 00 02 [20:25:12]Write i2c OK [20:25:12]MH_I2C_Read... [20:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:13]Read from MH i2c: E2 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 17 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 17 00 54 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 59 [20:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:25:13]wFMCommunicate OK [20:25:13]CreateOFDProtocolMessage done [20:25:13]OFDSenderStorePacket 139484 [20:25:13]StoreOFDPacket docnum=139484 [20:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 22 43 07 01 F8 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 3F 01 00 00 F4 03 04 00 29 AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 20 02 00 35 04 06 00 02 6A DE D0 98 FB 65 96 87 47 B8 BD 7D B9 [20:25:13]CheckFolder [20:25:13]dirname=/storage/ofd_packets [20:25:13]CheckFolder done [20:25:13]ProducePacketName [20:25:13]name=ofd_packets/00139484 [20:25:13]NVStorageSaveData ofd_packets/00139484 [20:25:13]File name is /storage/ofd_packets/00139484 [20:25:13]Write 301 bytes [20:25:13]NVStorageSaveData done [20:25:13]OFDSenderStorePacket done [20:25:13]KKMCreateOFDPacket done [20:25:13]NVStorageSaveData kkm_last_timestamp [20:25:13]File name is /storage/kkm_last_timestamp [20:25:13]Write 4 bytes [20:25:13]NVStorageSaveData done [20:25:13]ExternCall_PrintAddStr [20:25:13]wPrintStart [20:25:13]Write to MH i2c: 01 00 00 55 34 89 [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 07 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 07 00 55 34 00 00 00 00 00 FF 0F 9E [20:25:13]RasterBufferAndPrint [20:25:13]line Счет N : (1)593327 [20:25:13]line ИНН: 02508201610067 [20:25:13]line Контрольно-Кассовый Чек [20:25:13]line ПРОДАЖА [20:25:13]line ТРК (МРК, ГНК) : 42 [20:25:13]line Товар: 2710124130 [20:25:13]line Аи-92-К-5 [20:25:13]line 7.380 * 67.80 [20:25:13]line = 500.36 [20:25:13]line НДС 12% НСП 1% [20:25:13]line > о реализуемом товаре [20:25:13]line ОКРУГЛЕНИЕ: -0.36 [20:25:13]line ИТОГО: 500.00 [20:25:13]line Внесено: 500.00 [20:25:13]line СДАЧА: 0.00 [20:25:13]line НСП 1% : 4.43 [20:25:13]line НДС 12% : 53.14 [20:25:13]line Наличными: 500.00 [20:25:13]line Безнал.: 0.00 [20:25:13]line Место: АЗС № 136 "Партнер Нефть" [20:25:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:25:13]line СНО: Общий режим [20:25:13]line Чек 319 19.08.2024 20:25 [20:25:13]line Смена: 452 ФФД: 1.0 [20:25:13]line ЗНМ: 0300000067 [20:25:13]line РНМ: 0000000000092569 [20:25:13]line Версия ККМ: 001 [20:25:13]line ФМ: 0000000000871776 [20:25:13]line ФД: 139484 [20:25:13]line ФПД: 2658028001531 [20:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202513&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139484&fm=2658028001531&tin=02508201610067®Number=0000000000092569&sum=50000 [20:25:13]OFD Sender: Processing packet 139484 [packets to send 137, broken 136] [20:25:13]ProducePacketName [20:25:13]name=ofd_packets/00139484 [20:25:13]OFD Sender: To server: pG, [20:25:13]CommunicateWithHost lk.salyk.kg:30040 [20:25:13]ConnectInit lk.salyk.kg [20:25:13]written 0, free lines is 4095 [20:25:13]Connected sock=10 [20: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 37 36 0F 01 00 00 22 43 07 01 F8 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 3F 01 00 00 F4 03 04 00 29 AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 20 02 00 35 04 06 00 02 6A DE D0 98 FB 65 96 87 47 B8 BD 7D B9 [20:25:13]Write to MH i2c: 01 00 00 80 34 B4 [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 07 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 07 00 80 34 00 00 00 00 00 D0 0C 97 [20:25:13]RasterBufferAndPrint [20:25:13]line [20:25:13]line [20:25:13]line [20:25:13]line [20:25:13]line [20:25:13]written 0, free lines is 3287 [20:25:13]MH_Cut [20:25:13]Write to MH i2c: D1 01 00 87 34 01 8D [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: D1 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: D1 01 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: D1 01 00 87 34 00 8C [20:25:13]Write to MH i2c: 01 00 00 88 34 BC [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20: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 37 36 4F 00 00 00 05 83 47 00 9C 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 37 36 10 04 04 00 DC 20 02 00 F4 03 04 00 BE 50 C3 66 B6 04 01 00 00 FB CF 13 5C D0 9C 93 AD [20:25:13]CommunicateWithHost err = 0 [20:25:13]CheckOFDResponse [20:25:13]1017 (14) - 77093643461234 [20:25:13]1041 (16) - 0000000000871776 [20:25:13]1040 (4) - 139484 [20:25:13]1012 (4) - 19.08.2024 14:03 [20:25:13]1206 (1) - 0 [20:25:13]OFD Sender: Remove packet 139484 [20:25:13]ProducePacketName [20:25:13]name=ofd_packets/00139484 [20:25:13]NVStorageDeleteData [20:25:14]OFD Sender: No OFD packet to send [20:25:14]*** Cut start [20:25:14]*** Partial cut [20:25:14]*** CUTSNS_PIN = 1 [20:25:14]*** CUTSNS_PIN = 0 [20:25:14]*** Brake cut motor [20:25:15]Read from MH i2c: 01 [20:25:15]MH_I2C_Read... [20:25:15]*** Stop cut motor [20:25:15]*** Cut end [20:25:15]Read from MH i2c: 01 07 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: 01 07 00 88 34 00 00 00 00 00 FF 0F D1 [20:25:15]process_action close_receipt done [20:25:15]requested_data is exist [20:25:15]produce_requested_data [20:25:15]requested_item fm.sn is exist - process it [20:25:15]wFMCommunicate request_size=4 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 11 00 00 [20:25:15]Write to MH i2c: E2 08 00 89 34 80 11 00 00 00 00 00 00 37 [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:15]Read from MH i2c: E2 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 17 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 17 00 89 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8E [20:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:25:15]wFMCommunicate OK [20:25:15]requested_item fd.num is exist - process it [20:25:15]SAM_PROTO_GetFieldsCounters [20:25:15]wFMCommunicate request_size=4 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 13 00 00 [20:25:15]Write to MH i2c: E2 08 00 8A 34 80 13 00 00 00 00 00 00 3A [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:15]Read from MH i2c: E2 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 62 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 62 00 8A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 20 02 00 0E 04 04 00 C4 01 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 E8 [20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 20 02 00 0E 04 04 00 C4 01 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 [20:25:15]wFMCommunicate OK [20:25:15]SAM_PROTO_GetFieldsCounters done [20:25:15]requested_item shift.num is exist - process it [20:25:15]requested_item shift.opened is exist - process it [20:25:15]req_shift_opened [20:25:15]FM_GetShiftState [20:25:15]SAM_PROTO_GetShiftState [20:25:15]wFMCommunicate request_size=4 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 13 01 00 [20:25:15]Write to MH i2c: E2 08 00 8B 34 80 13 01 00 00 00 00 00 3C [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:15]Read from MH i2c: E2 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 0E 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 0E 00 8B 34 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F3 [20:25:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:25:15]wFMCommunicate OK [20:25:15]SAM_PROTO_GetShiftState done [20:25:15]FM_GetShiftState done [20:25:15]req_shift_opened done [20:25:15]requested_item shift.open_date is exist - process it [20:25:15]req_shift_open_date [20:25:15]req_shift_open_date done [20:25:15]produce_requested_data done [20:25:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139484,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:25:15]process_action_free close_receipt [20:25:15]json_value_free [20:25:15]json_value_free done [20:25:15]process_json_proto returns [20:25:15]Send response to host [20:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139484,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:25:15]free response buf [20:25:15]execute_script done [20:25:15]execute_script returns [20:25:15]free content buf [20:25:15]Sock 8.Close socket [20:25:15]Sock 8.Thread stoped [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]accept exits with 9 [20:26:39]New connection [20:26:39]New thread 3066817892 created [20:26:39]Thread 3066674532 joined [20:26:39]Waiting for new connection... [20:26:39] Sock 9.Parse request [20:26:39]Sock 9.Check first char [20:26:39]Sock 9.First char is OK [20:26:39]request: POST /json_proto HTTP/1.0 [20:26:39]Method: POST [20:26:39]URL: /json_proto [20:26:39]Method is POST - this is cgi request [20:26:39]url: /json_proto [20:26:39]query_string will be loaded in cgi processing [20:26:39]execute_cgi json_proto POST (null) [20:26:39]execute_cgi path=json_proto method=POST [20:26:39]POST find Content-Length [20:26:39]Host: 172.17.45.67:8080 [20:26:39]Content-Length: 677 [20:26:39]Content-Type: application/json [20:26:39] [20:26:39]POST finish read [20:26:39]Found Content-Length = 677 [20:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:26:39]execute_script... [20:26:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:26:39]POST & json_proto [20:26:39]process_json_proto [20:26:39]json parsed OK: [20:26:39]protocol is kg_v1.0 [20:26:39]action value=close_receipt [20:26:39]process_action close_receipt [20:26:39]cmd_close_receipt [20:26:39]MH_GetDate [20:26:39]Write to MH i2c: F0 00 00 8C 34 AF [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: F0 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: F0 09 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: F0 09 00 8C 34 00 81 AA C3 66 5F 7F 2B 66 7B [20:26:39]GetLastDocTimeStamp 1724099113 [20:26:39]current date 1724099201 [20:26:39]FM_GetShiftState [20:26:39]SAM_PROTO_GetShiftState [20:26:39]wFMCommunicate request_size=4 [20:26:39]MH_SAM_APDU [20:26:39]CAPDU: 80 13 01 00 [20:26:39]Write to MH i2c: E2 08 00 8D 34 80 13 01 00 00 00 00 00 3E [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:39]Read from MH i2c: E2 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 0E 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 0E 00 8D 34 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F5 [20:26:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:26:39]wFMCommunicate OK [20:26:39]SAM_PROTO_GetShiftState done [20:26:39]FM_GetShiftState done [20:26:39]opened in 1724027888 [20:26:39]opened+sec_in_day 1724114288 [20:26:39]quantity*price = 50036 [20:26:39]sum+1 = 50037 [20:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 320 19.08.2024 20:26 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139485 ФПД: 237293665530895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202641&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139485&fm=237293665530895&tin=02508201610067®Number=0000000000092569&sum=50000 [20:26:40]StoreToDocumentArchive [20:26:40]shift 452 fd 139485 [20:26:40]save to /storage/0452/doc_00139485 [20:26:40]save last doc name /storage/0452/doc_00139485 to /storage/kkm_last_doc_name [20:26:40]save OK [20:26:40]Clear old archive folders... [20:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:40]tlvbuf is 0127E640 [20:26:40]SAM_PROTO_ClearQueue [20:26:40]wFMCommunicate request_size=4 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 09 00 00 [20:26:40]Write to MH i2c: E2 08 00 9A 34 80 09 00 00 00 00 00 00 40 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 9A 34 00 90 00 42 [20:26:40]RAPDU: 90 00 [20:26:40]wFMCommunicate OK [20:26:40]SAM_PROTO_ClearQueue done [20:26:40]KKMCreateOFDPacket [20:26:40]OFDProtocolAddRootSTLVToBuf [20:26:40]FM_MakeSignedData [20:26:40]FM_MakeSignedData [20:26:40]SAM_PROTO_SignData [20:26:40]wFMCommunicate request_size=4 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 0D 01 02 [20:26:40]Write to MH i2c: E2 08 00 9B 34 80 0D 01 02 00 00 00 00 48 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 9B 34 00 90 00 43 [20:26:40]RAPDU: 90 00 [20:26:40]wFMCommunicate OK [20:26:40]wFMCommunicate request_size=255 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 40 01 00 00 F4 03 04 00 81 AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 20 02 00 35 04 06 00 D7 [20:26:40]Write to MH i2c: E2 02 01 9C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 40 01 00 00 F4 03 04 00 81 AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 20 02 00 35 04 06 00 D7 00 00 01 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 9C 34 00 90 00 44 [20:26:40]RAPDU: 90 00 [20:26:40]wFMCommunicate OK [20:26:40]wFMCommunicate request_size=10 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 0D 02 02 05 D1 3C A4 34 0F [20:26:40]Write to MH i2c: E2 0D 00 9D 34 80 0D 02 02 05 00 D1 3C A4 34 0F 00 00 49 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 9D 34 00 90 00 45 [20:26:40]RAPDU: 90 00 [20:26:40]wFMCommunicate OK [20:26:40]wFMCommunicate request_size=4 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 0D 03 02 [20:26:40]Write to MH i2c: E2 08 00 9E 34 80 0D 03 02 00 00 00 00 4D [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 0B 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 0B 00 9E 34 00 7A BA C6 44 73 9C 53 4B 90 00 39 [20:26:40]RAPDU: 7A BA C6 44 73 9C 53 4B 90 00 [20:26:40]wFMCommunicate OK [20:26:40]SAM_PROTO_SignData done [20:26:40]FM_MakeSignedData done [20:26:40]CreateOFDProtocolMessage [20:26:40]wFMCommunicate request_size=4 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 11 00 00 [20:26:40]Write to MH i2c: E2 08 00 9F 34 80 11 00 00 00 00 00 00 4D [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 17 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 17 00 9F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A4 [20:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:26:40]wFMCommunicate OK [20:26:40]CreateOFDProtocolMessage done [20:26:40]OFDSenderStorePacket 139485 [20:26:40]StoreOFDPacket docnum=139485 [20:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 F9 07 01 47 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 40 01 00 00 F4 03 04 00 81 AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 20 02 00 35 04 06 00 D7 D1 3C A4 34 0F 7A BA C6 44 73 9C 53 4B [20:26:40]CheckFolder [20:26:40]dirname=/storage/ofd_packets [20:26:40]CheckFolder done [20:26:40]ProducePacketName [20:26:40]name=ofd_packets/00139485 [20:26:40]NVStorageSaveData ofd_packets/00139485 [20:26:40]File name is /storage/ofd_packets/00139485 [20:26:40]Write 301 bytes [20:26:40]NVStorageSaveData done [20:26:40]OFDSenderStorePacket done [20:26:40]KKMCreateOFDPacket done [20:26:40]NVStorageSaveData kkm_last_timestamp [20:26:40]File name is /storage/kkm_last_timestamp [20:26:40]Write 4 bytes [20:26:40]NVStorageSaveData done [20:26:40]ExternCall_PrintAddStr [20:26:40]wPrintStart [20:26:40]Write to MH i2c: 01 00 00 A0 34 D4 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: 01 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: 01 07 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: 01 07 00 A0 34 00 00 00 00 00 FF 0F E9 [20:26:40]RasterBufferAndPrint [20:26:40]line Счет N : (1)593328 [20:26:40]line ИНН: 02508201610067 [20:26:40]line Контрольно-Кассовый Чек [20:26:40]line ПРОДАЖА [20:26:40]line ТРК (МРК, ГНК) : 52 [20:26:40]line Товар: 2710124130 [20:26:40]line Аи-92-К-5 [20:26:40]line 7.380 * 67.80 [20:26:40]line = 500.36 [20:26:40]line НДС 12% НСП 1% [20:26:40]line > о реализуемом товаре [20:26:40]line ОКРУГЛЕНИЕ: -0.36 [20:26:40]line ИТОГО: 500.00 [20:26:40]line Внесено: 500.00 [20:26:40]line СДАЧА: 0.00 [20:26:40]line НСП 1% : 4.43 [20:26:40]line НДС 12% : 53.14 [20:26:40]line Наличными: 500.00 [20:26:40]line Безнал.: 0.00 [20:26:40]line Место: АЗС № 136 "Партнер Нефть" [20:26:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:26:40]line СНО: Общий режим [20:26:40]line Чек 320 19.08.2024 20:26 [20:26:40]line Смена: 452 ФФД: 1.0 [20:26:40]line ЗНМ: 0300000067 [20:26:40]line РНМ: 0000000000092569 [20:26:40]line Версия ККМ: 001 [20:26:40]line ФМ: 0000000000871776 [20:26:40]line ФД: 139485 [20:26:40]line ФПД: 237293665530895 [20:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202641&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139485&fm=237293665530895&tin=02508201610067®Number=0000000000092569&sum=50000 [20:26:41]OFD Sender: Processing packet 139485 [packets to send 137, broken 136] [20:26:41]ProducePacketName [20:26:41]name=ofd_packets/00139485 [20:26:41]OFD Sender: To server: pG, [20:26:41]CommunicateWithHost lk.salyk.kg:30040 [20:26:41]ConnectInit lk.salyk.kg [20:26:41]written 0, free lines is 4095 [20:26:41]Connected sock=10 [20:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 F9 07 01 47 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 40 01 00 00 F4 03 04 00 81 AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 20 02 00 35 04 06 00 D7 D1 3C A4 34 0F 7A BA C6 44 73 9C 53 4B [20:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7F 1D 47 00 D2 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 37 36 10 04 04 00 DD 20 02 00 F4 03 04 00 16 51 C3 66 B6 04 01 00 00 96 72 C1 2F 0A AB A9 02 [20:26:41]CommunicateWithHost err = 0 [20:26:41]CheckOFDResponse [20:26:41]1017 (14) - 77093643461234 [20:26:41]1041 (16) - 0000000000871776 [20:26:41]1040 (4) - 139485 [20:26:41]1012 (4) - 19.08.2024 14:05 [20:26:41]1206 (1) - 0 [20:26:41]OFD Sender: Remove packet 139485 [20:26:41]ProducePacketName [20:26:41]name=ofd_packets/00139485 [20:26:41]NVStorageDeleteData [20:26:41]Write to MH i2c: 01 00 00 CB 34 FF [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 07 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 07 00 CB 34 00 00 00 00 00 DD 0C EF [20:26:41]RasterBufferAndPrint [20:26:41]line [20:26:41]line [20:26:41]line [20:26:41]line [20:26:41]line [20:26:41]written 0, free lines is 3300 [20:26:41]MH_Cut [20:26:41]Write to MH i2c: D1 01 00 D2 34 01 D8 [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: D1 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: D1 01 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: D1 01 00 D2 34 00 D7 [20:26:41]Write to MH i2c: 01 00 00 D3 34 07 [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:42]OFD Sender: No OFD packet to send [20:26:42]*** Cut start [20:26:42]*** Partial cut [20:26:42]*** CUTSNS_PIN = 1 [20:26:42]*** CUTSNS_PIN = 0 [20:26:42]*** Brake cut motor [20:26:43]Read from MH i2c: 01 [20:26:43]MH_I2C_Read... [20:26:43]*** Stop cut motor [20:26:43]*** Cut end [20:26:43]Read from MH i2c: 01 07 00 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: 01 07 00 D3 34 00 00 00 00 00 FF 0F 1C [20:26:43]process_action close_receipt done [20:26:43]requested_data is exist [20:26:43]produce_requested_data [20:26:43]requested_item fm.sn is exist - process it [20:26:43]wFMCommunicate request_size=4 [20:26:43]MH_SAM_APDU [20:26:43]CAPDU: 80 11 00 00 [20:26:43]Write to MH i2c: E2 08 00 D4 34 80 11 00 00 00 00 00 00 82 [20:26:43]Write i2c OK [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 [20:26:43]MH_I2C_Read... [20:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:43]Read from MH i2c: E2 17 00 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 17 00 D4 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D9 [20:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:26:43]wFMCommunicate OK [20:26:43]requested_item fd.num is exist - process it [20:26:43]SAM_PROTO_GetFieldsCounters [20:26:43]wFMCommunicate request_size=4 [20:26:43]MH_SAM_APDU [20:26:43]CAPDU: 80 13 00 00 [20:26:43]Write to MH i2c: E2 08 00 D5 34 80 13 00 00 00 00 00 00 85 [20:26:43]Write i2c OK [20:26:43]MH_I2C_Read... [20:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:43]Read from MH i2c: E2 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 62 00 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 62 00 D5 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 20 02 00 0E 04 04 00 C4 01 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 37 [20:26:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 20 02 00 0E 04 04 00 C4 01 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 [20:26:43]wFMCommunicate OK [20:26:43]SAM_PROTO_GetFieldsCounters done [20:26:43]requested_item shift.num is exist - process it [20:26:43]requested_item shift.opened is exist - process it [20:26:43]req_shift_opened [20:26:43]FM_GetShiftState [20:26:43]SAM_PROTO_GetShiftState [20:26:43]wFMCommunicate request_size=4 [20:26:43]MH_SAM_APDU [20:26:43]CAPDU: 80 13 01 00 [20:26:43]Write to MH i2c: E2 08 00 D6 34 80 13 01 00 00 00 00 00 87 [20:26:43]Write i2c OK [20:26:43]MH_I2C_Read... [20:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:43]Read from MH i2c: E2 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 0E 00 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 0E 00 D6 34 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 3E [20:26:43]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:26:43]wFMCommunicate OK [20:26:43]SAM_PROTO_GetShiftState done [20:26:43]FM_GetShiftState done [20:26:43]req_shift_opened done [20:26:43]requested_item shift.open_date is exist - process it [20:26:43]req_shift_open_date [20:26:43]req_shift_open_date done [20:26:43]produce_requested_data done [20:26:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139485,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:26:43]process_action_free close_receipt [20:26:43]json_value_free [20:26:43]json_value_free done [20:26:43]process_json_proto returns [20:26:43]Send response to host [20:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139485,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:26:43]free response buf [20:26:43]execute_script done [20:26:43]execute_script returns [20:26:43]free content buf [20:26:43]Sock 9.Close socket [20:26:43]Sock 9.Thread stoped [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:20]accept exits with 8 [20:27:20]New connection [20:27:20]New thread 3066674532 created [20:27:20]Thread 3066817892 joined [20:27:20]Waiting for new connection... [20:27:20] Sock 8.Parse request [20:27:20]Sock 8.Check first char [20:27:20]Sock 8.First char is OK [20:27:20]request: POST /json_proto HTTP/1.0 [20:27:20]Method: POST [20:27:20]URL: /json_proto [20:27:20]Method is POST - this is cgi request [20:27:20]url: /json_proto [20:27:20]query_string will be loaded in cgi processing [20:27:20]execute_cgi json_proto POST (null) [20:27:20]execute_cgi path=json_proto method=POST [20:27:20]POST find Content-Length [20:27:20]Host: 172.17.45.67:8080 [20:27:20]Content-Length: 682 [20:27:20]Content-Type: application/json [20:27:20] [20:27:20]POST finish read [20:27:20]Found Content-Length = 682 [20:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:27:20]execute_script... [20:27: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)593329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:27:20]POST & json_proto [20:27:20]process_json_proto [20:27:20]json parsed OK: [20:27:20]protocol is kg_v1.0 [20:27:20]action value=close_receipt [20:27:20]process_action close_receipt [20:27:20]cmd_close_receipt [20:27:20]MH_GetDate [20:27:20]Write to MH i2c: F0 00 00 D7 34 FA [20:27:20]Write i2c OK [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: F0 [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: F0 09 00 [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: F0 09 00 D7 34 00 AB AA C3 66 5F 7F 2B 66 F0 [20:27:20]GetLastDocTimeStamp 1724099201 [20:27:20]current date 1724099243 [20:27:20]FM_GetShiftState [20:27:20]SAM_PROTO_GetShiftState [20:27:20]wFMCommunicate request_size=4 [20:27:20]MH_SAM_APDU [20:27:20]CAPDU: 80 13 01 00 [20:27:20]Write to MH i2c: E2 08 00 D8 34 80 13 01 00 00 00 00 00 89 [20:27:20]Write i2c OK [20:27:20]MH_I2C_Read... [20:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:20]Read from MH i2c: E2 [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: E2 0E 00 [20:27:20]MH_I2C_Read... [20:27:20]Read from MH i2c: E2 0E 00 D8 34 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 40 [20:27:20]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:27:20]wFMCommunicate OK [20:27:20]SAM_PROTO_GetShiftState done [20:27:20]FM_GetShiftState done [20:27:20]opened in 1724027888 [20:27:20]opened+sec_in_day 1724114288 [20:27:20]quantity*price = 100021 [20:27:20]sum+1 = 100023 [20:27:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 321 19.08.2024 20:27 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139486 ФПД: 215074617276021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139486&fm=215074617276021&tin=02508201610067®Number=0000000000092569&sum=100000 [20:27:22]StoreToDocumentArchive [20:27:22]shift 452 fd 139486 [20:27:22]save to /storage/0452/doc_00139486 [20:27:22]save last doc name /storage/0452/doc_00139486 to /storage/kkm_last_doc_name [20:27:22]save OK [20:27:22]Clear old archive folders... [20:27:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:22]tlvbuf is B6D87480 [20:27:22]SAM_PROTO_ClearQueue [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 09 00 00 [20:27:22]Write to MH i2c: E2 08 00 E5 34 80 09 00 00 00 00 00 00 8B [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 E5 34 00 90 00 8D [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]SAM_PROTO_ClearQueue done [20:27:22]KKMCreateOFDPacket [20:27:22]OFDProtocolAddRootSTLVToBuf [20:27:22]FM_MakeSignedData [20:27:22]FM_MakeSignedData [20:27:22]SAM_PROTO_SignData [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 0D 01 02 [20:27:22]Write to MH i2c: E2 08 00 E6 34 80 0D 01 02 00 00 00 00 93 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 E6 34 00 90 00 8E [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]wFMCommunicate request_size=255 [20:27:22]MH_SAM_APDU [20:27: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 AB AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 20 02 00 35 04 06 00 C3 [20:27:22]Write to MH i2c: E2 02 01 E7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 AB AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 20 02 00 35 04 06 00 C3 00 00 91 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]OFD Sender: No OFD packet to send [20:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 E7 34 00 90 00 8F [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]wFMCommunicate request_size=10 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 0D 02 02 05 9B F6 29 B6 75 [20:27:22]Write to MH i2c: E2 0D 00 E8 34 80 0D 02 02 05 00 9B F6 29 B6 75 00 00 85 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 E8 34 00 90 00 90 [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 0D 03 02 [20:27:22]Write to MH i2c: E2 08 00 E9 34 80 0D 03 02 00 00 00 00 98 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 0B 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 0B 00 E9 34 00 FF 1C 45 FB 1C 63 17 C7 90 00 51 [20:27:22]RAPDU: FF 1C 45 FB 1C 63 17 C7 90 00 [20:27:22]wFMCommunicate OK [20:27:22]SAM_PROTO_SignData done [20:27:22]FM_MakeSignedData done [20:27:22]CreateOFDProtocolMessage [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 11 00 00 [20:27:22]Write to MH i2c: E2 08 00 EA 34 80 11 00 00 00 00 00 00 98 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 17 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 17 00 EA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EF [20:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:27:22]wFMCommunicate OK [20:27:22]CreateOFDProtocolMessage done [20:27:22]OFDSenderStorePacket 139486 [20:27:22]StoreOFDPacket docnum=139486 [20:27:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DB 79 07 01 0C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 AB AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 20 02 00 35 04 06 00 C3 9B F6 29 B6 75 FF 1C 45 FB 1C 63 17 C7 [20:27:22]CheckFolder [20:27:22]dirname=/storage/ofd_packets [20:27:22]CheckFolder done [20:27:22]ProducePacketName [20:27:22]name=ofd_packets/00139486 [20:27:22]NVStorageSaveData ofd_packets/00139486 [20:27:22]File name is /storage/ofd_packets/00139486 [20:27:22]Write 301 bytes [20:27:22]NVStorageSaveData done [20:27:22]OFDSenderStorePacket done [20:27:22]KKMCreateOFDPacket done [20:27:22]NVStorageSaveData kkm_last_timestamp [20:27:22]File name is /storage/kkm_last_timestamp [20:27:22]Write 4 bytes [20:27:22]NVStorageSaveData done [20:27:22]ExternCall_PrintAddStr [20:27:22]wPrintStart [20:27:22]Write to MH i2c: 01 00 00 EB 34 1F [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: 01 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: 01 07 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: 01 07 00 EB 34 00 00 00 00 00 FF 0F 34 [20:27:22]RasterBufferAndPrint [20:27:22]line Счет N : (1)593329 [20:27:22]line ИНН: 02508201610067 [20:27:22]line Контрольно-Кассовый Чек [20:27:22]line ПРОДАЖА [20:27:22]line ТРК (МРК, ГНК) : 31 [20:27:22]line Товар: 2710124500 [20:27:22]line Аи-95-К-5 [20:27:22]line 13.480 * 74.20 [20:27:22]line = 1000.22 [20:27:22]line НДС 12% НСП 1% [20:27:22]line > о реализуемом товаре [20:27:22]line ОКРУГЛЕНИЕ: -0.22 [20:27:22]line ИТОГО: 1000.00 [20:27:22]line Внесено: 1000.00 [20:27:22]line СДАЧА: 0.00 [20:27:22]line НСП 1% : 8.85 [20:27:22]line НДС 12% : 106.22 [20:27:22]line Наличными: 1000.00 [20:27:22]line Безнал.: 0.00 [20:27:22]line Место: АЗС № 136 "Партнер Нефть" [20:27:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:27:22]line СНО: Общий режим [20:27:22]line Чек 321 19.08.2024 20:27 [20:27:22]line Смена: 452 ФФД: 1.0 [20:27:22]line ЗНМ: 0300000067 [20:27:22]line РНМ: 0000000000092569 [20:27:22]line Версия ККМ: 001 [20:27:22]line ФМ: 0000000000871776 [20:27:22]line ФД: 139486 [20:27:22]line ФПД: 215074617276021 [20:27:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139486&fm=215074617276021&tin=02508201610067®Number=0000000000092569&sum=100000 [20:27:22]OFD Sender: Processing packet 139486 [packets to send 137, broken 136] [20:27:22]ProducePacketName [20:27:22]name=ofd_packets/00139486 [20:27:22]OFD Sender: To server: pG, [20:27:22]CommunicateWithHost lk.salyk.kg:30040 [20:27:22]ConnectInit lk.salyk.kg [20:27:22]written 0, free lines is 4095 [20:27:23]Connected sock=10 [20:27: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 37 36 0F 01 00 00 DB 79 07 01 0C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 AB AA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 20 02 00 35 04 06 00 C3 9B F6 29 B6 75 FF 1C 45 FB 1C 63 17 C7 [20:27:23]Write to MH i2c: 01 00 00 16 35 4B [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 07 00 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 07 00 16 35 00 00 00 00 00 CB 0C 29 [20:27:23]RasterBufferAndPrint [20:27:23]line [20:27:23]line [20:27:23]line [20:27:23]line [20:27:23]line [20:27:23]written 0, free lines is 3279 [20:27:23]MH_Cut [20:27:23]Write to MH i2c: D1 01 00 1D 35 01 24 [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: D1 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: D1 01 00 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: D1 01 00 1D 35 00 23 [20:27:23]Write to MH i2c: 01 00 00 1E 35 53 [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27: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 37 36 4F 00 00 00 11 92 47 00 D5 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 20 02 00 F4 03 04 00 40 51 C3 66 B6 04 01 00 00 0B 46 C1 F3 55 CF 16 86 [20:27:23]CommunicateWithHost err = 0 [20:27:23]CheckOFDResponse [20:27:23]1017 (14) - 77093643461234 [20:27:23]1041 (16) - 0000000000871776 [20:27:23]1040 (4) - 139486 [20:27:23]1012 (4) - 19.08.2024 14:05 [20:27:23]1206 (1) - 0 [20:27:23]OFD Sender: Remove packet 139486 [20:27:23]ProducePacketName [20:27:23]name=ofd_packets/00139486 [20:27:23]NVStorageDeleteData [20:27:23]OFD Sender: No OFD packet to send [20:27:24]*** Cut start [20:27:24]*** Partial cut [20:27:24]*** CUTSNS_PIN = 1 [20:27:24]*** CUTSNS_PIN = 0 [20:27:24]*** Brake cut motor [20:27:24]Read from MH i2c: 01 [20:27:24]*** Stop cut motor [20:27:24]*** Cut end [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: 01 07 00 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: 01 07 00 1E 35 00 00 00 00 00 FF 0F 68 [20:27:24]process_action close_receipt done [20:27:24]requested_data is exist [20:27:24]produce_requested_data [20:27:24]requested_item fm.sn is exist - process it [20:27:24]wFMCommunicate request_size=4 [20:27:24]MH_SAM_APDU [20:27:24]CAPDU: 80 11 00 00 [20:27:24]Write to MH i2c: E2 08 00 1F 35 80 11 00 00 00 00 00 00 CE [20:27:24]Write i2c OK [20:27:24]MH_I2C_Read... [20:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:24]Read from MH i2c: E2 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 17 00 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 17 00 1F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 25 [20:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:27:24]wFMCommunicate OK [20:27:24]requested_item fd.num is exist - process it [20:27:24]SAM_PROTO_GetFieldsCounters [20:27:24]wFMCommunicate request_size=4 [20:27:24]MH_SAM_APDU [20:27:24]CAPDU: 80 13 00 00 [20:27:24]Write to MH i2c: E2 08 00 20 35 80 13 00 00 00 00 00 00 D1 [20:27:24]Write i2c OK [20:27:24]MH_I2C_Read... [20:27:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:24]Read from MH i2c: E2 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 62 00 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 62 00 20 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 20 02 00 0E 04 04 00 C4 01 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 87 [20:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 20 02 00 0E 04 04 00 C4 01 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 [20:27:24]wFMCommunicate OK [20:27:24]SAM_PROTO_GetFieldsCounters done [20:27:24]requested_item shift.num is exist - process it [20:27:24]requested_item shift.opened is exist - process it [20:27:24]req_shift_opened [20:27:24]FM_GetShiftState [20:27:24]SAM_PROTO_GetShiftState [20:27:24]wFMCommunicate request_size=4 [20:27:24]MH_SAM_APDU [20:27:24]CAPDU: 80 13 01 00 [20:27:24]Write to MH i2c: E2 08 00 21 35 80 13 01 00 00 00 00 00 D3 [20:27:24]Write i2c OK [20:27:24]MH_I2C_Read... [20:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:24]Read from MH i2c: E2 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 0E 00 [20:27:24]MH_I2C_Read... [20:27:24]Read from MH i2c: E2 0E 00 21 35 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8A [20:27:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:27:24]wFMCommunicate OK [20:27:24]SAM_PROTO_GetShiftState done [20:27:24]FM_GetShiftState done [20:27:24]req_shift_opened done [20:27:24]requested_item shift.open_date is exist - process it [20:27:24]req_shift_open_date [20:27:24]req_shift_open_date done [20:27:24]produce_requested_data done [20:27:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139486,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:27:24]process_action_free close_receipt [20:27:24]json_value_free [20:27:24]json_value_free done [20:27:24]process_json_proto returns [20:27:24]Send response to host [20:27:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139486,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:27:24]free response buf [20:27:24]execute_script done [20:27:24]execute_script returns [20:27:24]free content buf [20:27:24]Sock 8.Close socket [20:27:24]Sock 8.Thread stoped [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:04]accept exits with 9 [20:29:04]New connection [20:29:04]New thread 3066817892 created [20:29:04]Thread 3066674532 joined [20:29:04]Waiting for new connection... [20:29:04] Sock 9.Parse request [20:29:04]Sock 9.Check first char [20:29:04]Sock 9.First char is OK [20:29:04]request: POST /json_proto HTTP/1.0 [20:29:04]Method: POST [20:29:04]URL: /json_proto [20:29:04]Method is POST - this is cgi request [20:29:04]url: /json_proto [20:29:04]query_string will be loaded in cgi processing [20:29:04]execute_cgi json_proto POST (null) [20:29:04]execute_cgi path=json_proto method=POST [20:29:04]POST find Content-Length [20:29:04]Host: 172.17.45.67:8080 [20:29:04]Content-Length: 687 [20:29:04]Content-Type: application/json [20:29:04] [20:29:04]POST finish read [20:29:04]Found Content-Length = 687 [20:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:29:04]execute_script... [20:29:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:29:04]POST & json_proto [20:29:04]process_json_proto [20:29:04]json parsed OK: [20:29:04]protocol is kg_v1.0 [20:29:04]action value=close_receipt [20:29:04]process_action close_receipt [20:29:04]cmd_close_receipt [20:29:04]MH_GetDate [20:29:04]Write to MH i2c: F0 00 00 22 35 46 [20:29:04]Write i2c OK [20:29:04]MH_I2C_Read... [20:29:04]Read from MH i2c: F0 [20:29:04]MH_I2C_Read... [20:29:04]Read from MH i2c: F0 09 00 [20:29:04]MH_I2C_Read... [20:29:04]Read from MH i2c: F0 09 00 22 35 00 12 AB C3 66 5F 7F 2B 66 A4 [20:29:04]GetLastDocTimeStamp 1724099243 [20:29:04]current date 1724099346 [20:29:04]FM_GetShiftState [20:29:04]SAM_PROTO_GetShiftState [20:29:04]wFMCommunicate request_size=4 [20:29:04]MH_SAM_APDU [20:29:04]CAPDU: 80 13 01 00 [20:29:04]Write to MH i2c: E2 08 00 23 35 80 13 01 00 00 00 00 00 D5 [20:29:04]Write i2c OK [20:29:04]MH_I2C_Read... [20:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:04]Read from MH i2c: E2 [20:29:04]MH_I2C_Read... [20:29:04]Read from MH i2c: E2 0E 00 [20:29:04]MH_I2C_Read... [20:29:04]Read from MH i2c: E2 0E 00 23 35 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8C [20:29:04]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:29:04]wFMCommunicate OK [20:29:04]SAM_PROTO_GetShiftState done [20:29:04]FM_GetShiftState done [20:29:04]opened in 1724027888 [20:29:04]opened+sec_in_day 1724114288 [20:29:04]quantity*price = 150037 [20:29:04]sum+1 = 150039 [20:29: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 322 19.08.2024 20:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139487 ФПД: 28977296276198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202906&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139487&fm=28977296276198&tin=02508201610067®Number=0000000000092569&sum=150000 [20:29:05]StoreToDocumentArchive [20:29:05]shift 452 fd 139487 [20:29:05]save to /storage/0452/doc_00139487 [20:29:05]save last doc name /storage/0452/doc_00139487 to /storage/kkm_last_doc_name [20:29:05]save OK [20:29:05]Clear old archive folders... [20:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:29:05]tlvbuf is 012351D0 [20:29:05]SAM_PROTO_ClearQueue [20:29:05]wFMCommunicate request_size=4 [20:29:05]MH_SAM_APDU [20:29:05]CAPDU: 80 09 00 00 [20:29:05]Write to MH i2c: E2 08 00 30 35 80 09 00 00 00 00 00 00 D7 [20:29:05]Write i2c OK [20:29:05]MH_I2C_Read... [20:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:05]Read from MH i2c: E2 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 03 00 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 03 00 30 35 00 90 00 D9 [20:29:05]RAPDU: 90 00 [20:29:05]wFMCommunicate OK [20:29:05]SAM_PROTO_ClearQueue done [20:29:05]KKMCreateOFDPacket [20:29:05]OFDProtocolAddRootSTLVToBuf [20:29:05]FM_MakeSignedData [20:29:05]FM_MakeSignedData [20:29:05]SAM_PROTO_SignData [20:29:05]wFMCommunicate request_size=4 [20:29:05]MH_SAM_APDU [20:29:05]CAPDU: 80 0D 01 02 [20:29:05]Write to MH i2c: E2 08 00 31 35 80 0D 01 02 00 00 00 00 DF [20:29:05]Write i2c OK [20:29:05]MH_I2C_Read... [20:29:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:05]Read from MH i2c: E2 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 03 00 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 03 00 31 35 00 90 00 DA [20:29:05]RAPDU: 90 00 [20:29:05]wFMCommunicate OK [20:29:05]wFMCommunicate request_size=255 [20:29:05]MH_SAM_APDU [20:29:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 42 01 00 00 F4 03 04 00 12 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 20 02 00 35 04 06 00 [20:29:05]Write to MH i2c: E2 02 01 32 35 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 42 01 00 00 F4 03 04 00 12 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 20 02 00 35 04 06 00 00 00 BC [20:29:05]Write i2c OK [20:29:05]MH_I2C_Read... [20:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:05]Read from MH i2c: E2 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 03 00 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 03 00 32 35 00 90 00 DB [20:29:05]RAPDU: 90 00 [20:29:05]wFMCommunicate OK [20:29:05]wFMCommunicate request_size=11 [20:29:05]MH_SAM_APDU [20:29:05]CAPDU: 80 0D 02 02 06 1A 5A CD 73 7A E6 [20:29:05]Write to MH i2c: E2 0E 00 33 35 80 0D 02 02 06 00 1A 5A CD 73 7A E6 00 00 02 [20:29:05]Write i2c OK [20:29:05]MH_I2C_Read... [20:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:05]Read from MH i2c: E2 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 03 00 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 03 00 33 35 00 90 00 DC [20:29:05]RAPDU: 90 00 [20:29:05]wFMCommunicate OK [20:29:05]wFMCommunicate request_size=4 [20:29:05]MH_SAM_APDU [20:29:05]CAPDU: 80 0D 03 02 [20:29:05]Write to MH i2c: E2 08 00 34 35 80 0D 03 02 00 00 00 00 E4 [20:29:05]Write i2c OK [20:29:05]MH_I2C_Read... [20:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:06]Read from MH i2c: E2 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: E2 0B 00 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: E2 0B 00 34 35 00 F2 0F 14 55 BE 19 58 BD 90 00 3B [20:29:06]RAPDU: F2 0F 14 55 BE 19 58 BD 90 00 [20:29:06]wFMCommunicate OK [20:29:06]SAM_PROTO_SignData done [20:29:06]FM_MakeSignedData done [20:29:06]CreateOFDProtocolMessage [20:29:06]wFMCommunicate request_size=4 [20:29:06]MH_SAM_APDU [20:29:06]CAPDU: 80 11 00 00 [20:29:06]Write to MH i2c: E2 08 00 35 35 80 11 00 00 00 00 00 00 E4 [20:29:06]Write i2c OK [20:29:06]MH_I2C_Read... [20:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:06]Read from MH i2c: E2 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: E2 17 00 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: E2 17 00 35 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [20:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:29:06]wFMCommunicate OK [20:29:06]CreateOFDProtocolMessage done [20:29:06]OFDSenderStorePacket 139487 [20:29:06]StoreOFDPacket docnum=139487 [20:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 EB 87 08 01 E5 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 42 01 00 00 F4 03 04 00 12 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 20 02 00 35 04 06 00 1A 5A CD 73 7A E6 F2 0F 14 55 BE 19 58 BD [20:29:06]CheckFolder [20:29:06]dirname=/storage/ofd_packets [20:29:06]CheckFolder done [20:29:06]ProducePacketName [20:29:06]name=ofd_packets/00139487 [20:29:06]NVStorageSaveData ofd_packets/00139487 [20:29:06]File name is /storage/ofd_packets/00139487 [20:29:06]Write 302 bytes [20:29:06]NVStorageSaveData done [20:29:06]OFDSenderStorePacket done [20:29:06]KKMCreateOFDPacket done [20:29:06]NVStorageSaveData kkm_last_timestamp [20:29:06]File name is /storage/kkm_last_timestamp [20:29:06]Write 4 bytes [20:29:06]NVStorageSaveData done [20:29:06]ExternCall_PrintAddStr [20:29:06]wPrintStart [20:29:06]Write to MH i2c: 01 00 00 36 35 6B [20:29:06]Write i2c OK [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: 01 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: 01 07 00 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: 01 07 00 36 35 00 00 00 00 00 FF 0F 80 [20:29:06]RasterBufferAndPrint [20:29:06]line Счет N : (1)593330 [20:29:06]line ИНН: 02508201610067 [20:29:06]line Контрольно-Кассовый Чек [20:29:06]line ПРОДАЖА [20:29:06]line ТРК (МРК, ГНК) : 44 [20:29:06]line Товар: 2710194210 [20:29:06]line ДТ(л)-К-5 [20:29:06]line 19.690 * 76.20 [20:29:06]line = 1500.38 [20:29:06]line НДС 12% НСП 1% [20:29:06]line > о реализуемом товаре [20:29:06]line ОКРУГЛЕНИЕ: -0.38 [20:29:06]line ИТОГО: 1500.00 [20:29:06]line Внесено: 1500.00 [20:29:06]line СДАЧА: 0.00 [20:29:06]line НСП 1% : 13.28 [20:29:06]line НДС 12% : 159.33 [20:29:06]line Наличными: 1500.00 [20:29:06]line Безнал.: 0.00 [20:29:06]line Место: АЗС № 136 "Партнер Нефть" [20:29:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:29:06]line СНО: Общий режим [20:29:06]line Чек 322 19.08.2024 20:29 [20:29:06]line Смена: 452 ФФД: 1.0 [20:29:06]line ЗНМ: 0300000067 [20:29:06]line РНМ: 0000000000092569 [20:29:06]line Версия ККМ: 001 [20:29:06]line ФМ: 0000000000871776 [20:29:06]line ФД: 139487 [20:29:06]line ФПД: 28977296276198 [20:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T202906&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139487&fm=28977296276198&tin=02508201610067®Number=0000000000092569&sum=150000 [20:29:06]OFD Sender: Processing packet 139487 [packets to send 137, broken 136] [20:29:06]ProducePacketName [20:29:06]name=ofd_packets/00139487 [20:29:06]OFD Sender: To server: pG, [20:29:06]CommunicateWithHost lk.salyk.kg:30040 [20:29:06]ConnectInit lk.salyk.kg [20:29:06]written 0, free lines is 4095 [20:29:06]Connected sock=10 [20:29:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 EB 87 08 01 E5 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 42 01 00 00 F4 03 04 00 12 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 20 02 00 35 04 06 00 1A 5A CD 73 7A E6 F2 0F 14 55 BE 19 58 BD [20:29: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 37 36 4F 00 00 00 54 F5 47 00 2B 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 37 36 10 04 04 00 DF 20 02 00 F4 03 04 00 A7 51 C3 66 B6 04 01 00 00 14 30 51 E8 B1 32 CE 23 [20:29:06]CommunicateWithHost err = 0 [20:29:06]CheckOFDResponse [20:29:06]1017 (14) - 77093643461234 [20:29:06]1041 (16) - 0000000000871776 [20:29:06]1040 (4) - 139487 [20:29:06]1012 (4) - 19.08.2024 14:07 [20:29:06]1206 (1) - 0 [20:29:06]OFD Sender: Remove packet 139487 [20:29:06]ProducePacketName [20:29:06]name=ofd_packets/00139487 [20:29:06]NVStorageDeleteData [20:29:06]Write to MH i2c: 01 00 00 61 35 96 [20:29:06]Write i2c OK [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: 01 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: 01 07 00 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: 01 07 00 61 35 00 00 00 00 00 D8 0C 81 [20:29:06]RasterBufferAndPrint [20:29:06]line [20:29:06]line [20:29:06]line [20:29:06]line [20:29:06]line [20:29:06]written 0, free lines is 3295 [20:29:06]MH_Cut [20:29:06]Write to MH i2c: D1 01 00 68 35 01 6F [20:29:06]Write i2c OK [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: D1 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: D1 01 00 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: D1 01 00 68 35 00 6E [20:29:06]Write to MH i2c: 01 00 00 69 35 9E [20:29:06]Write i2c OK [20:29:06]MH_I2C_Read... [20:29:07]OFD Sender: No OFD packet to send [20:29:07]*** Cut start [20:29:07]*** Partial cut [20:29:07]*** CUTSNS_PIN = 1 [20:29:07]*** CUTSNS_PIN = 0 [20:29:07]*** Brake cut motor [20:29:08]Read from MH i2c: 01 [20:29:08]MH_I2C_Read... [20:29:08]*** Stop cut motor [20:29:08]*** Cut end [20:29:08]Read from MH i2c: 01 07 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: 01 07 00 69 35 00 00 00 00 00 FF 0F B3 [20:29:08]process_action close_receipt done [20:29:08]requested_data is exist [20:29:08]produce_requested_data [20:29:08]requested_item fm.sn is exist - process it [20:29:08]wFMCommunicate request_size=4 [20:29:08]MH_SAM_APDU [20:29:08]CAPDU: 80 11 00 00 [20:29:08]Write to MH i2c: E2 08 00 6A 35 80 11 00 00 00 00 00 00 19 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 17 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 17 00 6A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [20:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:29:08]wFMCommunicate OK [20:29:08]requested_item fd.num is exist - process it [20:29:08]SAM_PROTO_GetFieldsCounters [20:29:08]wFMCommunicate request_size=4 [20:29:08]MH_SAM_APDU [20:29:08]CAPDU: 80 13 00 00 [20:29:08]Write to MH i2c: E2 08 00 6B 35 80 13 00 00 00 00 00 00 1C [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 62 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 62 00 6B 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 20 02 00 0E 04 04 00 C4 01 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 D6 [20:29:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 20 02 00 0E 04 04 00 C4 01 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 [20:29:08]wFMCommunicate OK [20:29:08]SAM_PROTO_GetFieldsCounters done [20:29:08]requested_item shift.num is exist - process it [20:29:08]requested_item shift.opened is exist - process it [20:29:08]req_shift_opened [20:29:08]FM_GetShiftState [20:29:08]SAM_PROTO_GetShiftState [20:29:08]wFMCommunicate request_size=4 [20:29:08]MH_SAM_APDU [20:29:08]CAPDU: 80 13 01 00 [20:29:08]Write to MH i2c: E2 08 00 6C 35 80 13 01 00 00 00 00 00 1E [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 0E 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 0E 00 6C 35 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D5 [20:29:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:29:08]wFMCommunicate OK [20:29:08]SAM_PROTO_GetShiftState done [20:29:08]FM_GetShiftState done [20:29:08]req_shift_opened done [20:29:08]requested_item shift.open_date is exist - process it [20:29:08]req_shift_open_date [20:29:08]req_shift_open_date done [20:29:08]produce_requested_data done [20:29:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139487,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:29:08]process_action_free close_receipt [20:29:08]json_value_free [20:29:08]json_value_free done [20:29:08]process_json_proto returns [20:29:08]Send response to host [20:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139487,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:29:08]free response buf [20:29:08]execute_script done [20:29:08]execute_script returns [20:29:08]free content buf [20:29:08]Sock 9.Close socket [20:29:08]Sock 9.Thread stoped [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:11]accept exits with 8 [20:30:11]New connection [20:30:11]New thread 3066674532 created [20:30:11]Thread 3066817892 joined [20:30:11]Waiting for new connection... [20:30:11] Sock 8.Parse request [20:30:11]Sock 8.Check first char [20:30:11]Sock 8.First char is OK [20:30:11]request: POST /json_proto HTTP/1.0 [20:30:11]Method: POST [20:30:11]URL: /json_proto [20:30:11]Method is POST - this is cgi request [20:30:11]url: /json_proto [20:30:11]query_string will be loaded in cgi processing [20:30:11]execute_cgi json_proto POST (null) [20:30:11]execute_cgi path=json_proto method=POST [20:30:11]POST find Content-Length [20:30:11]Host: 172.17.45.67:8080 [20:30:11]Content-Length: 677 [20:30:11]Content-Type: application/json [20:30:11] [20:30:11]POST finish read [20:30:11]Found Content-Length = 677 [20:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:30:11]execute_script... [20:30:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:30:11]POST & json_proto [20:30:11]process_json_proto [20:30:11]json parsed OK: [20:30:11]protocol is kg_v1.0 [20:30:11]action value=close_receipt [20:30:11]process_action close_receipt [20:30:11]cmd_close_receipt [20:30:11]MH_GetDate [20:30:11]Write to MH i2c: F0 00 00 6D 35 91 [20:30:11]Write i2c OK [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: F0 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: F0 09 00 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: F0 09 00 6D 35 00 56 AB C3 66 5F 7F 2B 66 33 [20:30:11]GetLastDocTimeStamp 1724099346 [20:30:11]current date 1724099414 [20:30:11]FM_GetShiftState [20:30:11]SAM_PROTO_GetShiftState [20:30:11]wFMCommunicate request_size=4 [20:30:11]MH_SAM_APDU [20:30:11]CAPDU: 80 13 01 00 [20:30:11]Write to MH i2c: E2 08 00 6E 35 80 13 01 00 00 00 00 00 20 [20:30:11]Write i2c OK [20:30:11]MH_I2C_Read... [20:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:11]Read from MH i2c: E2 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: E2 0E 00 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: E2 0E 00 6E 35 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D7 [20:30:11]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:30:11]wFMCommunicate OK [20:30:11]SAM_PROTO_GetShiftState done [20:30:11]FM_GetShiftState done [20:30:11]opened in 1724027888 [20:30:11]opened+sec_in_day 1724114288 [20:30:11]quantity*price = 40002 [20:30:11]sum+1 = 40003 [20:30:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 323 19.08.2024 20:30 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139488 ФПД: 169491361357467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139488&fm=169491361357467&tin=02508201610067®Number=0000000000092569&sum=40000 [20:30:12]StoreToDocumentArchive [20:30:12]shift 452 fd 139488 [20:30:12]save to /storage/0452/doc_00139488 [20:30:12]save last doc name /storage/0452/doc_00139488 to /storage/kkm_last_doc_name [20:30:12]save OK [20:30:12]Clear old archive folders... [20:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:12]tlvbuf is 01252590 [20:30:12]SAM_PROTO_ClearQueue [20:30:12]wFMCommunicate request_size=4 [20:30:12]MH_SAM_APDU [20:30:12]CAPDU: 80 09 00 00 [20:30:12]Write to MH i2c: E2 08 00 7B 35 80 09 00 00 00 00 00 00 22 [20:30:12]Write i2c OK [20:30:12]MH_I2C_Read... [20:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:13]Read from MH i2c: E2 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 03 00 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 03 00 7B 35 00 90 00 24 [20:30:13]RAPDU: 90 00 [20:30:13]wFMCommunicate OK [20:30:13]SAM_PROTO_ClearQueue done [20:30:13]KKMCreateOFDPacket [20:30:13]OFDProtocolAddRootSTLVToBuf [20:30:13]FM_MakeSignedData [20:30:13]FM_MakeSignedData [20:30:13]SAM_PROTO_SignData [20:30:13]wFMCommunicate request_size=4 [20:30:13]MH_SAM_APDU [20:30:13]CAPDU: 80 0D 01 02 [20:30:13]Write to MH i2c: E2 08 00 7C 35 80 0D 01 02 00 00 00 00 2A [20:30:13]Write i2c OK [20:30:13]MH_I2C_Read... [20:30:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:13]Read from MH i2c: E2 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 03 00 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 03 00 7C 35 00 90 00 25 [20:30:13]RAPDU: 90 00 [20:30:13]wFMCommunicate OK [20:30:13]wFMCommunicate request_size=255 [20:30:13]MH_SAM_APDU [20:30: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 01 00 00 F4 03 04 00 56 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 20 02 00 35 04 06 00 9A [20:30:13]Write to MH i2c: E2 02 01 7D 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 01 00 00 F4 03 04 00 56 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 20 02 00 35 04 06 00 9A 00 00 67 [20:30:13]Write i2c OK [20:30:13]MH_I2C_Read... [20:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:13]Read from MH i2c: E2 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 03 00 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 03 00 7D 35 00 90 00 26 [20:30:13]RAPDU: 90 00 [20:30:13]wFMCommunicate OK [20:30:13]wFMCommunicate request_size=10 [20:30:13]MH_SAM_APDU [20:30:13]CAPDU: 80 0D 02 02 05 26 C8 62 DE 9B [20:30:13]Write to MH i2c: E2 0D 00 7E 35 80 0D 02 02 05 00 26 C8 62 DE 9B 00 00 00 [20:30:13]Write i2c OK [20:30:13]MH_I2C_Read... [20:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:13]Read from MH i2c: E2 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 03 00 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 03 00 7E 35 00 90 00 27 [20:30:13]RAPDU: 90 00 [20:30:13]wFMCommunicate OK [20:30:13]wFMCommunicate request_size=4 [20:30:13]MH_SAM_APDU [20:30:13]CAPDU: 80 0D 03 02 [20:30:13]Write to MH i2c: E2 08 00 7F 35 80 0D 03 02 00 00 00 00 2F [20:30:13]Write i2c OK [20:30:13]MH_I2C_Read... [20:30:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:13]Read from MH i2c: E2 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 0B 00 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 0B 00 7F 35 00 67 8F DB 7C 52 C9 2C 7F 90 00 43 [20:30:13]RAPDU: 67 8F DB 7C 52 C9 2C 7F 90 00 [20:30:13]wFMCommunicate OK [20:30:13]SAM_PROTO_SignData done [20:30:13]FM_MakeSignedData done [20:30:13]CreateOFDProtocolMessage [20:30:13]wFMCommunicate request_size=4 [20:30:13]MH_SAM_APDU [20:30:13]CAPDU: 80 11 00 00 [20:30:13]Write to MH i2c: E2 08 00 80 35 80 11 00 00 00 00 00 00 2F [20:30:13]Write i2c OK [20:30:13]MH_I2C_Read... [20:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:13]Read from MH i2c: E2 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 17 00 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: E2 17 00 80 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [20:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:30:13]wFMCommunicate OK [20:30:13]CreateOFDProtocolMessage done [20:30:13]OFDSenderStorePacket 139488 [20:30:13]StoreOFDPacket docnum=139488 [20:30:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BE FB 07 01 EE 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 01 00 00 F4 03 04 00 56 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 20 02 00 35 04 06 00 9A 26 C8 62 DE 9B 67 8F DB 7C 52 C9 2C 7F [20:30:13]CheckFolder [20:30:13]dirname=/storage/ofd_packets [20:30:13]CheckFolder done [20:30:13]ProducePacketName [20:30:13]name=ofd_packets/00139488 [20:30:13]NVStorageSaveData ofd_packets/00139488 [20:30:13]File name is /storage/ofd_packets/00139488 [20:30:13]Write 301 bytes [20:30:13]NVStorageSaveData done [20:30:13]OFDSenderStorePacket done [20:30:13]KKMCreateOFDPacket done [20:30:13]NVStorageSaveData kkm_last_timestamp [20:30:13]File name is /storage/kkm_last_timestamp [20:30:13]Write 4 bytes [20:30:13]NVStorageSaveData done [20:30:13]ExternCall_PrintAddStr [20:30:13]wPrintStart [20:30:13]Write to MH i2c: 01 00 00 81 35 B6 [20:30:13]Write i2c OK [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: 01 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: 01 07 00 [20:30:13]MH_I2C_Read... [20:30:13]Read from MH i2c: 01 07 00 81 35 00 00 00 00 00 FF 0F CB [20:30:13]RasterBufferAndPrint [20:30:13]line Счет N : (1)593331 [20:30:13]line ИНН: 02508201610067 [20:30:13]line Контрольно-Кассовый Чек [20:30:13]line ПРОДАЖА [20:30:13]line ТРК (МРК, ГНК) : 32 [20:30:13]line Товар: 2710124130 [20:30:13]line Аи-92-К-5 [20:30:13]line 5.900 * 67.80 [20:30:13]line = 400.02 [20:30:13]line НДС 12% НСП 1% [20:30:13]line > о реализуемом товаре [20:30:13]line ОКРУГЛЕНИЕ: -0.02 [20:30:13]line ИТОГО: 400.00 [20:30:13]line Внесено: 400.00 [20:30:13]line СДАЧА: 0.00 [20:30:13]line НСП 1% : 3.54 [20:30:13]line НДС 12% : 42.48 [20:30:13]line Наличными: 400.00 [20:30:13]line Безнал.: 0.00 [20:30:13]line Место: АЗС № 136 "Партнер Нефть" [20:30:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:30:13]line СНО: Общий режим [20:30:13]line Чек 323 19.08.2024 20:30 [20:30:13]line Смена: 452 ФФД: 1.0 [20:30:13]line ЗНМ: 0300000067 [20:30:13]line РНМ: 0000000000092569 [20:30:13]line Версия ККМ: 001 [20:30:13]line ФМ: 0000000000871776 [20:30:13]line ФД: 139488 [20:30:13]line ФПД: 169491361357467 [20:30:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139488&fm=169491361357467&tin=02508201610067®Number=0000000000092569&sum=40000 [20:30:13]OFD Sender: Processing packet 139488 [packets to send 137, broken 136] [20:30:13]ProducePacketName [20:30:13]name=ofd_packets/00139488 [20:30:13]OFD Sender: To server: pG, [20:30:13]CommunicateWithHost lk.salyk.kg:30040 [20:30:13]ConnectInit lk.salyk.kg [20:30:13]written 0, free lines is 4095 [20:30:13]Connected sock=10 [20:30:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BE FB 07 01 EE 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 01 00 00 F4 03 04 00 56 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 20 02 00 35 04 06 00 9A 26 C8 62 DE 9B 67 8F DB 7C 52 C9 2C 7F [20:30: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 37 36 4F 00 00 00 D0 66 47 00 3B E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 20 02 00 F4 03 04 00 EB 51 C3 66 B6 04 01 00 00 C3 13 8C 1B AD 9E 2C C0 [20:30:14]CommunicateWithHost err = 0 [20:30:14]CheckOFDResponse [20:30:14]1017 (14) - 77093643461234 [20:30:14]1041 (16) - 0000000000871776 [20:30:14]1040 (4) - 139488 [20:30:14]1012 (4) - 19.08.2024 14:08 [20:30:14]1206 (1) - 0 [20:30:14]OFD Sender: Remove packet 139488 [20:30:14]ProducePacketName [20:30:14]name=ofd_packets/00139488 [20:30:14]NVStorageDeleteData [20:30:14]Write to MH i2c: 01 00 00 AC 35 E1 [20:30:14]Write i2c OK [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: 01 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: 01 07 00 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: 01 07 00 AC 35 00 00 00 00 00 C6 0C BA [20:30:14]RasterBufferAndPrint [20:30:14]line [20:30:14]line [20:30:14]line [20:30:14]line [20:30:14]line [20:30:14]written 0, free lines is 3276 [20:30:14]MH_Cut [20:30:14]Write to MH i2c: D1 01 00 B3 35 01 BA [20:30:14]Write i2c OK [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: D1 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: D1 01 00 [20:30:14]MH_I2C_Read... [20:30:14]Read from MH i2c: D1 01 00 B3 35 00 B9 [20:30:14]Write to MH i2c: 01 00 00 B4 35 E9 [20:30:14]Write i2c OK [20:30:14]MH_I2C_Read... [20:30:14]OFD Sender: No OFD packet to send [20:30:15]*** Cut start [20:30:15]*** Partial cut [20:30:15]*** CUTSNS_PIN = 1 [20:30:15]*** CUTSNS_PIN = 0 [20:30:15]*** Brake cut motor [20:30:15]Read from MH i2c: 01 [20:30:15]MH_I2C_Read... [20:30:15]*** Stop cut motor [20:30:15]Read from MH i2c: 01 07 00 [20:30:15]MH_I2C_Read... [20:30:15]*** Cut end [20:30:15]Read from MH i2c: 01 07 00 B4 35 00 00 00 00 00 FF 0F FE [20:30:15]process_action close_receipt done [20:30:15]requested_data is exist [20:30:15]produce_requested_data [20:30:15]requested_item fm.sn is exist - process it [20:30:15]wFMCommunicate request_size=4 [20:30:15]MH_SAM_APDU [20:30:15]CAPDU: 80 11 00 00 [20:30:15]Write to MH i2c: E2 08 00 B5 35 80 11 00 00 00 00 00 00 64 [20:30:15]Write i2c OK [20:30:15]MH_I2C_Read... [20:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:15]Read from MH i2c: E2 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 17 00 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 17 00 B5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [20:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:30:15]wFMCommunicate OK [20:30:15]requested_item fd.num is exist - process it [20:30:15]SAM_PROTO_GetFieldsCounters [20:30:15]wFMCommunicate request_size=4 [20:30:15]MH_SAM_APDU [20:30:15]CAPDU: 80 13 00 00 [20:30:15]Write to MH i2c: E2 08 00 B6 35 80 13 00 00 00 00 00 00 67 [20:30:15]Write i2c OK [20:30:15]MH_I2C_Read... [20:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:15]Read from MH i2c: E2 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 62 00 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 62 00 B6 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 20 02 00 0E 04 04 00 C4 01 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 25 [20:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 20 02 00 0E 04 04 00 C4 01 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 [20:30:15]wFMCommunicate OK [20:30:15]SAM_PROTO_GetFieldsCounters done [20:30:15]requested_item shift.num is exist - process it [20:30:15]requested_item shift.opened is exist - process it [20:30:15]req_shift_opened [20:30:15]FM_GetShiftState [20:30:15]SAM_PROTO_GetShiftState [20:30:15]wFMCommunicate request_size=4 [20:30:15]MH_SAM_APDU [20:30:15]CAPDU: 80 13 01 00 [20:30:15]Write to MH i2c: E2 08 00 B7 35 80 13 01 00 00 00 00 00 69 [20:30:15]Write i2c OK [20:30:15]MH_I2C_Read... [20:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:15]Read from MH i2c: E2 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 0E 00 [20:30:15]MH_I2C_Read... [20:30:15]Read from MH i2c: E2 0E 00 B7 35 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 20 [20:30:15]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:30:15]wFMCommunicate OK [20:30:15]SAM_PROTO_GetShiftState done [20:30:15]FM_GetShiftState done [20:30:15]req_shift_opened done [20:30:15]requested_item shift.open_date is exist - process it [20:30:15]req_shift_open_date [20:30:15]req_shift_open_date done [20:30:15]produce_requested_data done [20:30:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139488,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:30:15]process_action_free close_receipt [20:30:15]json_value_free [20:30:15]json_value_free done [20:30:15]process_json_proto returns [20:30:15]Send response to host [20:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139488,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:30:15]free response buf [20:30:15]execute_script done [20:30:15]execute_script returns [20:30:15]free content buf [20:30:15]Sock 8.Close socket [20:30:15]Sock 8.Thread stoped [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]accept exits with 9 [20:32:04]New connection [20:32:04]New thread 3066817892 created [20:32:04]Thread 3066674532 joined [20:32:04]Waiting for new connection... [20:32:04] Sock 9.Parse request [20:32:04]Sock 9.Check first char [20:32:04]Sock 9.First char is OK [20:32:04]request: POST /json_proto HTTP/1.0 [20:32:04]Method: POST [20:32:04]URL: /json_proto [20:32:04]Method is POST - this is cgi request [20:32:04]url: /json_proto [20:32:04]query_string will be loaded in cgi processing [20:32:04]execute_cgi json_proto POST (null) [20:32:04]execute_cgi path=json_proto method=POST [20:32:04]POST find Content-Length [20:32:04]Host: 172.17.45.67:8080 [20:32:04]Content-Length: 677 [20:32:04]Content-Type: application/json [20:32:04] [20:32:04]POST finish read [20:32:04]Found Content-Length = 677 [20:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.610, "sum" : 380.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:04]execute_script... [20:32: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)593332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.610, "sum" : 380.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:04]POST & json_proto [20:32:04]process_json_proto [20:32:04]json parsed OK: [20:32:04]protocol is kg_v1.0 [20:32:04]action value=close_receipt [20:32:04]process_action close_receipt [20:32:04]cmd_close_receipt [20:32:04]MH_GetDate [20:32:04]Write to MH i2c: F0 00 00 B8 35 DC [20:32:04]Write i2c OK [20:32:04]MH_I2C_Read... [20:32:04]Read from MH i2c: F0 [20:32:04]MH_I2C_Read... [20:32:04]Read from MH i2c: F0 09 00 [20:32:04]MH_I2C_Read... [20:32:04]Read from MH i2c: F0 09 00 B8 35 00 C7 AB C3 66 5F 7F 2B 66 EF [20:32:04]GetLastDocTimeStamp 1724099414 [20:32:04]current date 1724099527 [20:32:04]FM_GetShiftState [20:32:04]SAM_PROTO_GetShiftState [20:32:04]wFMCommunicate request_size=4 [20:32:04]MH_SAM_APDU [20:32:04]CAPDU: 80 13 01 00 [20:32:04]Write to MH i2c: E2 08 00 B9 35 80 13 01 00 00 00 00 00 6B [20:32:04]Write i2c OK [20:32:04]MH_I2C_Read... [20:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:04]Read from MH i2c: E2 [20:32:04]MH_I2C_Read... [20:32:04]Read from MH i2c: E2 0E 00 [20:32:04]MH_I2C_Read... [20:32:04]Read from MH i2c: E2 0E 00 B9 35 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 22 [20:32:04]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:32:04]wFMCommunicate OK [20:32:04]SAM_PROTO_GetShiftState done [20:32:04]FM_GetShiftState done [20:32:04]opened in 1724027888 [20:32:04]opened+sec_in_day 1724114288 [20:32:04]quantity*price = 38035 [20:32:04]sum+1 = 38037 [20:32:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.39 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 324 19.08.2024 20:32 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139489 ФПД: 228348136019634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203207&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139489&fm=228348136019634&tin=02508201610067®Number=0000000000092569&sum=38000 [20:32:05]StoreToDocumentArchive [20:32:05]shift 452 fd 139489 [20:32:05]save to /storage/0452/doc_00139489 [20:32:05]save last doc name /storage/0452/doc_00139489 to /storage/kkm_last_doc_name [20:32:05]save OK [20:32:05]Clear old archive folders... [20:32:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:05]tlvbuf is 0120FDB0 [20:32:05]SAM_PROTO_ClearQueue [20:32:05]wFMCommunicate request_size=4 [20:32:05]MH_SAM_APDU [20:32:05]CAPDU: 80 09 00 00 [20:32:05]Write to MH i2c: E2 08 00 C6 35 80 09 00 00 00 00 00 00 6D [20:32:05]Write i2c OK [20:32:05]MH_I2C_Read... [20:32:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:05]Read from MH i2c: E2 [20:32:05]MH_I2C_Read... [20:32:05]Read from MH i2c: E2 03 00 [20:32:05]MH_I2C_Read... [20:32:05]Read from MH i2c: E2 03 00 C6 35 00 90 00 6F [20:32:05]RAPDU: 90 00 [20:32:05]wFMCommunicate OK [20:32:05]SAM_PROTO_ClearQueue done [20:32:05]KKMCreateOFDPacket [20:32:05]OFDProtocolAddRootSTLVToBuf [20:32:05]FM_MakeSignedData [20:32:05]FM_MakeSignedData [20:32:05]SAM_PROTO_SignData [20:32:05]wFMCommunicate request_size=4 [20:32:05]MH_SAM_APDU [20:32:05]CAPDU: 80 0D 01 02 [20:32:05]Write to MH i2c: E2 08 00 C7 35 80 0D 01 02 00 00 00 00 75 [20:32:05]Write i2c OK [20:32:05]MH_I2C_Read... [20:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:06]Read from MH i2c: E2 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 03 00 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 03 00 C7 35 00 90 00 70 [20:32:06]RAPDU: 90 00 [20:32:06]wFMCommunicate OK [20:32:06]wFMCommunicate request_size=255 [20:32:06]MH_SAM_APDU [20:32:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 C7 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 20 02 00 35 04 06 00 CF [20:32:06]Write to MH i2c: E2 02 01 C8 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 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 C7 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 20 02 00 35 04 06 00 CF 00 00 ED [20:32:06]Write i2c OK [20:32:06]MH_I2C_Read... [20:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:06]Read from MH i2c: E2 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 03 00 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 03 00 C8 35 00 90 00 71 [20:32:06]RAPDU: 90 00 [20:32:06]wFMCommunicate OK [20:32:06]wFMCommunicate request_size=10 [20:32:06]MH_SAM_APDU [20:32:06]CAPDU: 80 0D 02 02 05 AE 71 88 56 B2 [20:32:06]Write to MH i2c: E2 0D 00 C9 35 80 0D 02 02 05 00 AE 71 88 56 B2 00 00 31 [20:32:06]Write i2c OK [20:32:06]MH_I2C_Read... [20:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:06]Read from MH i2c: E2 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 03 00 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 03 00 C9 35 00 90 00 72 [20:32:06]RAPDU: 90 00 [20:32:06]wFMCommunicate OK [20:32:06]wFMCommunicate request_size=4 [20:32:06]MH_SAM_APDU [20:32:06]CAPDU: 80 0D 03 02 [20:32:06]Write to MH i2c: E2 08 00 CA 35 80 0D 03 02 00 00 00 00 7A [20:32:06]Write i2c OK [20:32:06]MH_I2C_Read... [20:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:06]Read from MH i2c: E2 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 0B 00 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 0B 00 CA 35 00 61 0E 00 F4 73 A9 EA D1 90 00 B5 [20:32:06]RAPDU: 61 0E 00 F4 73 A9 EA D1 90 00 [20:32:06]wFMCommunicate OK [20:32:06]SAM_PROTO_SignData done [20:32:06]FM_MakeSignedData done [20:32:06]CreateOFDProtocolMessage [20:32:06]wFMCommunicate request_size=4 [20:32:06]MH_SAM_APDU [20:32:06]CAPDU: 80 11 00 00 [20:32:06]Write to MH i2c: E2 08 00 CB 35 80 11 00 00 00 00 00 00 7A [20:32:06]Write i2c OK [20:32:06]MH_I2C_Read... [20:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:06]Read from MH i2c: E2 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 17 00 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: E2 17 00 CB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D1 [20:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:32:06]wFMCommunicate OK [20:32:06]CreateOFDProtocolMessage done [20:32:06]OFDSenderStorePacket 139489 [20:32:06]StoreOFDPacket docnum=139489 [20:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 51 88 07 01 C5 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 C7 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 20 02 00 35 04 06 00 CF AE 71 88 56 B2 61 0E 00 F4 73 A9 EA D1 [20:32:06]CheckFolder [20:32:06]dirname=/storage/ofd_packets [20:32:06]CheckFolder done [20:32:06]ProducePacketName [20:32:06]name=ofd_packets/00139489 [20:32:06]NVStorageSaveData ofd_packets/00139489 [20:32:06]File name is /storage/ofd_packets/00139489 [20:32:06]Write 301 bytes [20:32:06]NVStorageSaveData done [20:32:06]OFDSenderStorePacket done [20:32:06]KKMCreateOFDPacket done [20:32:06]NVStorageSaveData kkm_last_timestamp [20:32:06]File name is /storage/kkm_last_timestamp [20:32:06]Write 4 bytes [20:32:06]NVStorageSaveData done [20:32:06]ExternCall_PrintAddStr [20:32:06]wPrintStart [20:32:06]Write to MH i2c: 01 00 00 CC 35 01 [20:32:06]Write i2c OK [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: 01 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: 01 07 00 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: 01 07 00 CC 35 00 00 00 00 00 FF 0F 16 [20:32:06]RasterBufferAndPrint [20:32:06]line Счет N : (1)593332 [20:32:06]line ИНН: 02508201610067 [20:32:06]line Контрольно-Кассовый Чек [20:32:06]line ПРОДАЖА [20:32:06]line ТРК (МРК, ГНК) : 52 [20:32:06]line Товар: 2710124130 [20:32:06]line Аи-92-К-5 [20:32:06]line 5.610 * 67.80 [20:32:06]line = 380.36 [20:32:06]line НДС 12% НСП 1% [20:32:06]line > о реализуемом товаре [20:32:06]line ОКРУГЛЕНИЕ: -0.36 [20:32:06]line ИТОГО: 380.00 [20:32:06]line Внесено: 380.00 [20:32:06]line СДАЧА: 0.00 [20:32:06]line НСП 1% : 3.37 [20:32:06]line НДС 12% : 40.39 [20:32:06]line Наличными: 380.00 [20:32:06]line Безнал.: 0.00 [20:32:06]line Место: АЗС № 136 "Партнер Нефть" [20:32:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:32:06]line СНО: Общий режим [20:32:06]line Чек 324 19.08.2024 20:32 [20:32:06]line Смена: 452 ФФД: 1.0 [20:32:06]line ЗНМ: 0300000067 [20:32:06]line РНМ: 0000000000092569 [20:32:06]line Версия ККМ: 001 [20:32:06]line ФМ: 0000000000871776 [20:32:06]line ФД: 139489 [20:32:06]line ФПД: 228348136019634 [20:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203207&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139489&fm=228348136019634&tin=02508201610067®Number=0000000000092569&sum=38000 [20:32:06]written 0, free lines is 4095 [20:32:06]OFD Sender: Processing packet 139489 [packets to send 137, broken 136] [20:32:06]ProducePacketName [20:32:06]name=ofd_packets/00139489 [20:32:06]OFD Sender: To server: pG, [20:32:06]CommunicateWithHost lk.salyk.kg:30040 [20:32:06]ConnectInit lk.salyk.kg [20:32:07]Connected sock=11 [20:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 51 88 07 01 C5 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 C7 AB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 20 02 00 35 04 06 00 CF AE 71 88 56 B2 61 0E 00 F4 73 A9 EA D1 [20:32:07]Write to MH i2c: 01 00 00 F7 35 2C [20:32:07]Write i2c OK [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: 01 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: 01 07 00 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: 01 07 00 F7 35 00 00 00 00 00 D4 0C 13 [20:32:07]RasterBufferAndPrint [20:32:07]line [20:32:07]line [20:32:07]line [20:32:07]line [20:32:07]line [20:32:07]written 0, free lines is 3292 [20:32:07]MH_Cut [20:32:07]Write to MH i2c: D1 01 00 FE 35 01 05 [20:32:07]Write i2c OK [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: D1 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: D1 01 00 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: D1 01 00 FE 35 00 04 [20:32:07]Write to MH i2c: 01 00 00 FF 35 34 [20:32:07]Write i2c OK [20:32:07]MH_I2C_Read... [20:32: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 37 36 4F 00 00 00 F1 F6 47 00 D6 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 37 36 10 04 04 00 E1 20 02 00 F4 03 04 00 5C 52 C3 66 B6 04 01 00 00 FD 57 51 8B E9 5A 63 2D [20:32:07]CommunicateWithHost err = 0 [20:32:07]CheckOFDResponse [20:32:07]1017 (14) - 77093643461234 [20:32:07]1041 (16) - 0000000000871776 [20:32:07]1040 (4) - 139489 [20:32:07]1012 (4) - 19.08.2024 14:10 [20:32:07]1206 (1) - 0 [20:32:07]OFD Sender: Remove packet 139489 [20:32:07]ProducePacketName [20:32:07]name=ofd_packets/00139489 [20:32:07]NVStorageDeleteData [20:32:07]OFD Sender: No OFD packet to send [20:32:07]*** Cut start [20:32:07]*** Partial cut [20:32:07]*** CUTSNS_PIN = 1 [20:32:08]*** CUTSNS_PIN = 0 [20:32:08]*** Brake cut motor [20:32:08]Read from MH i2c: 01 [20:32:08]MH_I2C_Read... [20:32:08]*** Stop cut motor [20:32:08]*** Cut end [20:32:08]Read from MH i2c: 01 07 00 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: 01 07 00 FF 35 00 00 00 00 00 FF 0F 49 [20:32:08]process_action close_receipt done [20:32:08]requested_data is exist [20:32:08]produce_requested_data [20:32:08]requested_item fm.sn is exist - process it [20:32:08]wFMCommunicate request_size=4 [20:32:08]MH_SAM_APDU [20:32:08]CAPDU: 80 11 00 00 [20:32:08]Write to MH i2c: E2 08 00 00 36 80 11 00 00 00 00 00 00 B0 [20:32:08]Write i2c OK [20:32:08]MH_I2C_Read... [20:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:08]Read from MH i2c: E2 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 17 00 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 17 00 00 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 07 [20:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:32:08]wFMCommunicate OK [20:32:08]requested_item fd.num is exist - process it [20:32:08]SAM_PROTO_GetFieldsCounters [20:32:08]wFMCommunicate request_size=4 [20:32:08]MH_SAM_APDU [20:32:08]CAPDU: 80 13 00 00 [20:32:08]Write to MH i2c: E2 08 00 01 36 80 13 00 00 00 00 00 00 B3 [20:32:08]Write i2c OK [20:32:08]MH_I2C_Read... [20:32:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:08]Read from MH i2c: E2 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 62 00 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 62 00 01 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 20 02 00 0E 04 04 00 C4 01 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 75 [20:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 20 02 00 0E 04 04 00 C4 01 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 [20:32:08]wFMCommunicate OK [20:32:08]SAM_PROTO_GetFieldsCounters done [20:32:08]requested_item shift.num is exist - process it [20:32:08]requested_item shift.opened is exist - process it [20:32:08]req_shift_opened [20:32:08]FM_GetShiftState [20:32:08]SAM_PROTO_GetShiftState [20:32:08]wFMCommunicate request_size=4 [20:32:08]MH_SAM_APDU [20:32:08]CAPDU: 80 13 01 00 [20:32:08]Write to MH i2c: E2 08 00 02 36 80 13 01 00 00 00 00 00 B5 [20:32:08]Write i2c OK [20:32:08]MH_I2C_Read... [20:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:08]Read from MH i2c: E2 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 0E 00 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 0E 00 02 36 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6C [20:32:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:32:08]wFMCommunicate OK [20:32:08]SAM_PROTO_GetShiftState done [20:32:08]FM_GetShiftState done [20:32:08]req_shift_opened done [20:32:08]requested_item shift.open_date is exist - process it [20:32:08]req_shift_open_date [20:32:08]req_shift_open_date done [20:32:08]produce_requested_data done [20:32:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139489,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:32:08]process_action_free close_receipt [20:32:08]json_value_free [20:32:08]json_value_free done [20:32:08]process_json_proto returns [20:32:08]Send response to host [20:32:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139489,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:32:08]free response buf [20:32:08]execute_script done [20:32:08]execute_script returns [20:32:08]free content buf [20:32:08]Sock 9.Close socket [20:32:08]Sock 9.Thread stoped [20:32:09]int [20:32:09]Write to MH i2c: 01 00 00 03 36 39 [20:32:09]*** FLAG_PRN_PAP1 set [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 03 36 00 01 00 00 00 FF 0F 4F [20:32:09]state=0 [20:32:09]No paper [20:32:10]int [20:32:10]Write to MH i2c: 01 00 00 04 36 3A [20:32:10]*** FLAG_PRN_PAP2 set [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 07 00 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 07 00 04 36 00 03 00 00 00 FF 0F 52 [20:32:10]state=0 [20:32:10]No paper [20:32:10]Cover opened [20:32:12]OFD Sender: No OFD packet to send [20:32:15]Write to MH i2c: 01 00 00 05 36 3B [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: 01 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: 01 07 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: 01 07 00 05 36 00 03 00 00 00 FF 0F 53 [20:32:15]state=3 [20:32:15]No paper [20:32:15]Cover opened [20:32:17]OFD Sender: No OFD packet to send [20:32:20]Write to MH i2c: 01 00 00 06 36 3C [20:32:20]Write i2c OK [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: 01 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: 01 07 00 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: 01 07 00 06 36 00 03 00 00 00 FF 0F 54 [20:32:20]state=3 [20:32:20]No paper [20:32:20]Cover opened [20:32:22]OFD Sender: No OFD packet to send [20:32:23]int [20:32:23]Write to MH i2c: 01 00 00 07 36 3D [20:32:23]*** FLAG_PRN_PAP2 reset [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 07 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 07 00 07 36 00 01 00 00 00 FF 0F 53 [20:32:23]state=3 [20:32:23]No paper [20:32:23]Cover closed [20:32:23]int [20:32:23]Write to MH i2c: 01 00 00 08 36 3E [20:32:23]*** FLAG_PRN_PAP2 set [20:32:23]Write i2c OK [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 07 00 [20:32:23]MH_I2C_Read... [20:32:23]Read from MH i2c: 01 07 00 08 36 00 03 00 00 00 FF 0F 56 [20:32:23]state=0 [20:32:23]No paper [20:32:23]Cover opened [20:32:27]OFD Sender: No OFD packet to send [20:32:28]int [20:32:28]Write to MH i2c: 01 00 00 09 36 3F [20:32:28]*** FLAG_PRN_PAP2 reset [20:32:28]Write i2c OK [20:32:28]MH_I2C_Read... [20:32:28]Read from MH i2c: 01 [20:32:28]MH_I2C_Read... [20:32:28]Read from MH i2c: 01 07 00 [20:32:28]MH_I2C_Read... [20:32:28]Read from MH i2c: 01 07 00 09 36 00 01 00 00 00 FF 0F 55 [20:32:28]state=3 [20:32:28]No paper [20:32:28]Cover closed [20:32:28]int [20:32:28]Write to MH i2c: 01 00 00 0A 36 40 [20:32:28]*** FLAG_PRN_PAP1 reset [20:32:28]Write i2c OK [20:32:28]MH_I2C_Read... [20:32:28]Read from MH i2c: 01 [20:32:28]MH_I2C_Read... [20:32:28]Read from MH i2c: 01 07 00 [20:32:28]MH_I2C_Read... [20:32:28]Read from MH i2c: 01 07 00 0A 36 00 00 00 00 00 FF 0F 55 [20:32:28]state=0 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 9972880+1714126687=1724099567 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 F0 AB C3 66 5F 7F 2B 66 32 [20:32:48]Current date/time: 19.08.2024 20:32 [20:32:48]FM_Init [20:32:48]wFMConnect [20:32:48]MH_SAM_On [20:32:48]Write to MH i2c: E0 00 00 08 00 E7 [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:48]*** iso7816_init finished! [20:32:48]*** atr: [20:32:48]*** 0F 3B D5 18 FF 81 91 FE [20:32:48]*** 1F C3 80 73 C8 21 10 0A [20:32:48]*** 00 00 00 00 00 00 00 00 [20:32:48]*** 00 00 00 00 00 00 00 00 [20:32:48]*** 00 00 00 00 00 00 00 00 [20:32:48]*** 00 00 00 00 00 00 00 00 [20:32:48]*** 00 00 00 00 00 00 00 00 [20:32:48]*** 00 00 00 00 00 00 00 00 [20:32:48]Read from MH i2c: E0 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E0 10 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [20:32:48]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:32:48]wFMCommunicate request_size=10 [20:32:48]MH_SAM_APDU [20:32:48]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:32:48]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:48]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:32:48]Read from MH i2c: E2 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 03 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:32:48]RAPDU: 90 00 [20:32:48]wFMCommunicate OK [20:32:48]wFMCommunicate request_size=4 [20:32:48]MH_SAM_APDU [20:32:48]CAPDU: 80 11 00 00 [20:32:48]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:48]Read from MH i2c: E2 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 17 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [20:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:32:48]wFMCommunicate OK [20:32:48]Detected FM SN is 0000000000871776 [20:32:48]Stored FM SN is 0000000000871776 [20:32:48]wFMCommunicate request_size=9 [20:32:48]MH_SAM_APDU [20:32:48]CAPDU: 80 16 00 00 04 3F B1 00 00 [20:32:48]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:48]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:32:48]Read from MH i2c: E2 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 03 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:32:48]RAPDU: 90 00 [20:32:48]wFMCommunicate OK [20:32:48]FM PIN OK [20:32:48]wFMCommunicate request_size=8 [20:32:48]MH_SAM_APDU [20:32:48]CAPDU: 80 14 04 00 03 02 00 01 [20:32:48]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:48]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:32:48]Read from MH i2c: E2 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 03 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:32:48]RAPDU: 90 00 [20:32:48]wFMCommunicate OK [20:32:48]wFMCommunicate request_size=13 [20:32:48]MH_SAM_APDU [20:32:48]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:32:48]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:48]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:32:48]Read from MH i2c: E2 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 03 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:32:48]RAPDU: 90 00 [20:32:48]wFMCommunicate OK [20:32:48]wFMCommunicate request_size=4 [20:32:48]MH_SAM_APDU [20:32:48]CAPDU: 80 11 00 00 [20:32:48]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:48]Read from MH i2c: E2 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 17 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [20:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:32:48]wFMCommunicate OK [20:32:48]DocumentArchiveInit [20:32:48]Start Httpd... [20:32:48]Httpd thread 3067501924 created [20:32:48]Write to MH i2c: 01 00 00 0F 00 0F [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: 01 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: 01 07 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:32:48]MH Int Process started [20:32:48]Allocated Socket 8 [20:32:48]Bind OK [20:32:48]Listen OK [20:32:48]httpd running on port 8080 [20:32:48]Waiting for new connection... [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:57]accept exits with 9 [20:32:57]New connection [20:32:57]New thread 3067215204 created [20:32:57]Waiting for new connection... [20:32:57] Sock 9.Parse request [20:32:57]Sock 9.Check first char [20:32:57]Sock 9.First char is OK [20:32:57]request: POST /json_proto HTTP/1.0 [20:32:57]Method: POST [20:32:57]URL: /json_proto [20:32:57]Method is POST - this is cgi request [20:32:57]url: /json_proto [20:32:57]query_string will be loaded in cgi processing [20:32:57]execute_cgi json_proto POST (null) [20:32:57]execute_cgi path=json_proto method=POST [20:32:57]POST find Content-Length [20:32:57]Host: 172.17.45.67:8080 [20:32:57]Content-Length: 215 [20:32:57]Content-Type: application/json [20:32:57] [20:32:57]POST finish read [20:32:57]Found Content-Length = 215 [20:32:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:57]execute_script... [20:32:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:57]POST & json_proto [20:32:57]process_json_proto [20:32:57]json parsed OK: [20:32:57]protocol is kg_v1.0 [20:32:57]action value=get_value [20:32:57]process_action get_value [20:32:57]cmd_get_value [20:32:57]process_action get_value done [20:32:57]requested_data is exist [20:32:57]produce_requested_data [20:32:57]requested_item kkm.sn is exist - process it [20:32:57]requested_item kkm.ver is exist - process it [20:32:57]requested_item fm.sn is exist - process it [20:32:57]wFMCommunicate request_size=4 [20:32:57]MH_SAM_APDU [20:32:57]CAPDU: 80 11 00 00 [20:32:57]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [20:32:57]Write i2c OK [20:32:57]MH_I2C_Read... [20:32:57]Read from MH i2c: E2 [20:32:57]MH_I2C_Read... [20:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:57]Read from MH i2c: E2 17 00 [20:32:57]MH_I2C_Read... [20:32:57]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [20:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:32:57]wFMCommunicate OK [20:32:57]requested_item fd.num is exist - process it [20:32:57]SAM_PROTO_GetFieldsCounters [20:32:57]wFMCommunicate request_size=4 [20:32:57]MH_SAM_APDU [20:32:57]CAPDU: 80 13 00 00 [20:32:57]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [20:32:57]Write i2c OK [20:32:57]MH_I2C_Read... [20:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:57]Read from MH i2c: E2 [20:32:57]MH_I2C_Read... [20:32:57]Read from MH i2c: E2 62 00 [20:32:57]MH_I2C_Read... [20:32:57]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 20 02 00 0E 04 04 00 C4 01 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 4F [20:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 20 02 00 0E 04 04 00 C4 01 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 [20:32:57]wFMCommunicate OK [20:32:57]SAM_PROTO_GetFieldsCounters done [20:32:57]requested_item shift.num is exist - process it [20:32:57]requested_item shift.opened is exist - process it [20:32:57]req_shift_opened [20:32:57]FM_GetShiftState [20:32:57]SAM_PROTO_GetShiftState [20:32:57]wFMCommunicate request_size=4 [20:32:57]MH_SAM_APDU [20:32:57]CAPDU: 80 13 01 00 [20:32:57]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [20:32:57]Write i2c OK [20:32:57]MH_I2C_Read... [20:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:57]Read from MH i2c: E2 [20:32:57]MH_I2C_Read... [20:32:57]Read from MH i2c: E2 0E 00 [20:32:57]MH_I2C_Read... [20:32:57]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 46 [20:32:57]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:32:57]wFMCommunicate OK [20:32:57]SAM_PROTO_GetShiftState done [20:32:57]FM_GetShiftState done [20:32:57]req_shift_opened done [20:32:57]requested_item shift.open_date is exist - process it [20:32:57]req_shift_open_date [20:32:57]req_shift_open_date done [20:32:57]produce_requested_data done [20:32:57]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139489,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:32:57]process_action_free get_value [20:32:57]json_value_free [20:32:57]json_value_free done [20:32:57]process_json_proto returns [20:32:57]Send response to host [20:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139489,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:32:57]free response buf [20:32:57]execute_script done [20:32:57]execute_script returns [20:32:57]free content buf [20:32:57]Sock 9.Close socket [20:32:57]Sock 9.Thread stoped [20:32:57]accept exits with 7 [20:32:57]New connection [20:32:57]New thread 3067071844 created [20:32:57]Thread 3067215204 joined [20:32:57]Waiting for new connection... [20:32:57] Sock 7.Parse request [20:32:57]Sock 7.Check first char [20:32:57]Sock 7.First char is OK [20:32:57]request: POST /json_proto HTTP/1.0 [20:32:57]Method: POST [20:32:57]URL: /json_proto [20:32:57]Method is POST - this is cgi request [20:32:57]url: /json_proto [20:32:57]query_string will be loaded in cgi processing [20:32:57]execute_cgi json_proto POST (null) [20:32:57]execute_cgi path=json_proto method=POST [20:32:57]POST find Content-Length [20:32:57]Host: 172.17.45.67:8080 [20:32:57]Content-Length: 331 [20:32:57]Content-Type: application/json [20:32:57] [20:32:57]POST finish read [20:32:57]Found Content-Length = 331 [20:32: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" ] } } [20:32:57]execute_script... [20:32: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" ] } } [20:32:57]POST & json_proto [20:32:57]process_json_proto [20:32:57]json parsed OK: [20:32:57]protocol is kg_v1.0 [20:32:57]action value=get_value [20:32:57]process_action get_value [20:32:57]cmd_get_value [20:32:57]process_action get_value done [20:32:57]requested_data is exist [20:32:57]produce_requested_data [20:32:57]requested_item fm.sale.total is exist - process it [20:32:57]SAM_PROTO_GetFMData [20:32:57]wFMCommunicate request_size=4 [20:32:57]MH_SAM_APDU [20:32:57]CAPDU: 80 13 03 00 [20:32:57]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [20:32:57]Write i2c OK [20:32:57]MH_I2C_Read... [20:32:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:32:58]Read from MH i2c: E2 [20:32:58]MH_I2C_Read... [20:32:58]Read from MH i2c: E2 FD 00 [20:32:58]MH_I2C_Read... [20:32:58]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 58 1D 02 00 69 04 A3 00 6F 04 04 00 D7 1C 02 00 B1 04 05 00 F7 74 1C 3A 02 70 04 05 00 20 3D 06 F0 01 72 04 04 00 D7 37 16 4A 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 19 33 92 3C 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 A5 0F 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 D6 [20:32:58]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 58 1D 02 00 69 04 A3 00 6F 04 04 00 D7 1C 02 00 B1 04 05 00 F7 74 1C 3A 02 70 04 05 00 20 3D 06 F0 01 72 04 04 00 D7 37 16 4A 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 19 33 92 3C 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 A5 0F 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [20:32:58]wFMCommunicate OK [20:32:58]wFMCommunicate request_size=4 [20:32:58]MH_SAM_APDU [20:32:58]CAPDU: 80 17 00 00 [20:32:58]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [20:32:58]Write i2c OK [20:32:58]MH_I2C_Read... [20:32:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:32:58]Read from MH i2c: E2 [20:32:58]MH_I2C_Read... [20:32:58]Read from MH i2c: E2 FD 00 [20:32:58]MH_I2C_Read... [20:32:58]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 99 [20:32:58]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [20:32:58]wFMCommunicate OK [20:32:58]wFMCommunicate request_size=4 [20:32:58]MH_SAM_APDU [20:32:58]CAPDU: 80 17 00 00 [20:32:58]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [20:32:58]Write i2c OK [20:32:58]MH_I2C_Read... [20:32:58]OFD Sender: No OFD packet to send [20:32:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:32:58]Read from MH i2c: E2 [20:32:58]MH_I2C_Read... [20:32:58]Read from MH i2c: E2 FD 00 [20:32:58]MH_I2C_Read... [20:32:58]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [20:32:58]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [20:32:58]wFMCommunicate OK [20:32:58]wFMCommunicate request_size=4 [20:32:58]MH_SAM_APDU [20:32:58]CAPDU: 80 17 00 00 [20:32:58]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [20:32:58]Write i2c OK [20:32:58]MH_I2C_Read... [20:32:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:32:58]Read from MH i2c: E2 [20:32:58]MH_I2C_Read... [20:32:58]Read from MH i2c: E2 FD 00 [20:32:58]MH_I2C_Read... [20:32:58]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [20:32:58]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:32:59]wFMCommunicate OK [20:32:59]wFMCommunicate request_size=4 [20:32:59]MH_SAM_APDU [20:32:59]CAPDU: 80 17 00 00 [20:32:59]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [20:32:59]Write i2c OK [20:32:59]MH_I2C_Read... [20:32:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [20:32:59]Read from MH i2c: E2 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: E2 E1 00 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [20:32:59]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:32:59]wFMCommunicate OK [20:32:59]SAM_PROTO_GetFMData done [20:32:59]requested_item fm.sale_refund.total is exist - process it [20:32:59]requested_item fm.buy.total is exist - process it [20:32:59]requested_item shift.sale.total is exist - process it [20:32:59]SAM_PROTO_GetShiftData [20:32:59]wFMCommunicate request_size=4 [20:32:59]MH_SAM_APDU [20:32:59]CAPDU: 80 13 02 00 [20:32:59]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [20:32:59]Write i2c OK [20:32:59]MH_I2C_Read... [20:32:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:32:59]Read from MH i2c: E2 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: E2 FD 00 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 44 01 00 00 69 04 9E 00 6F 04 04 00 44 01 00 00 B1 04 04 00 10 D6 5E 01 70 04 04 00 8C 9B 4A 01 72 04 03 00 84 3A 14 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 76 45 25 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 2C 1B 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 AA [20:32:59]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 44 01 00 00 69 04 9E 00 6F 04 04 00 44 01 00 00 B1 04 04 00 10 D6 5E 01 70 04 04 00 8C 9B 4A 01 72 04 03 00 84 3A 14 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 76 45 25 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 2C 1B 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 [20:32:59]wFMCommunicate OK [20:32:59]wFMCommunicate request_size=4 [20:32:59]MH_SAM_APDU [20:32:59]CAPDU: 80 17 00 00 [20:32:59]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [20:32:59]Write i2c OK [20:32:59]MH_I2C_Read... [20:32:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:32:59]Read from MH i2c: E2 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: E2 FD 00 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: E2 FD 00 19 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 B2 [20:32:59]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 [20:33:00]wFMCommunicate OK [20:33:00]wFMCommunicate request_size=4 [20:33:00]MH_SAM_APDU [20:33:00]CAPDU: 80 17 00 00 [20:33:00]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [20:33:00]Write i2c OK [20:33:00]MH_I2C_Read... [20:33:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:33:00]Read from MH i2c: E2 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 FD 00 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 FD 00 1A 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 53 [20:33:00]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 [20:33:00]wFMCommunicate OK [20:33:00]wFMCommunicate request_size=4 [20:33:00]MH_SAM_APDU [20:33:00]CAPDU: 80 17 00 00 [20:33:00]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [20:33:00]Write i2c OK [20:33:00]MH_I2C_Read... [20:33:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:33:00]Read from MH i2c: E2 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 FD 00 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 FD 00 1B 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 13 [20:33:00]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 [20:33:00]wFMCommunicate OK [20:33:00]wFMCommunicate request_size=4 [20:33:00]MH_SAM_APDU [20:33:00]CAPDU: 80 17 00 00 [20:33:00]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [20:33:00]Write i2c OK [20:33:00]MH_I2C_Read... [20:33:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [20:33:00]Read from MH i2c: E2 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 CE 00 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 CE 00 1C 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 81 [20:33:00]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 [20:33:00]wFMCommunicate OK [20:33:00]SAM_PROTO_GetShiftData done [20:33:00]requested_item shift.sale.total_cash is exist - process it [20:33:00]requested_item shift.sale_refund.total is exist - process it [20:33:00]requested_item shift.sale_refund.total_cash is exist - process it [20:33:00]requested_item shift.buy.total is exist - process it [20:33:00]requested_item shift.buy.total_cash is exist - process it [20:33:00]produce_requested_data done [20:33:00]produce_requested_data return {"fm.sale.total":95648780.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":229924.00,"shift.sale.total_cash":216667.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} [20:33:00]process_action_free get_value [20:33:00]json_value_free [20:33:00]json_value_free done [20:33:00]process_json_proto returns [20:33:00]Send response to host [20:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95648780.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":229924.00,"shift.sale.total_cash":216667.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}}} [20:33:00]free response buf [20:33:00]execute_script done [20:33:00]execute_script returns [20:33:00]free content buf [20:33:00]Sock 7.Close socket [20:33:00]Sock 7.Thread stoped [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:02]accept exits with 9 [20:36:02]New connection [20:36:02]New thread 3067215204 created [20:36:02]Thread 3067071844 joined [20:36:02]Waiting for new connection... [20:36:02] Sock 9.Parse request [20:36:02]Sock 9.Check first char [20:36:02]Sock 9.First char is OK [20:36:02]request: POST /json_proto HTTP/1.0 [20:36:02]Method: POST [20:36:02]URL: /json_proto [20:36:02]Method is POST - this is cgi request [20:36:02]url: /json_proto [20:36:02]query_string will be loaded in cgi processing [20:36:02]execute_cgi json_proto POST (null) [20:36:02]execute_cgi path=json_proto method=POST [20:36:02]POST find Content-Length [20:36:02]Host: 172.17.45.67:8080 [20:36:02]Content-Length: 682 [20:36:02]Content-Type: application/json [20:36:02] [20:36:02]POST finish read [20:36:02]Found Content-Length = 682 [20:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:36:02]execute_script... [20:36: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)593333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:36:02]POST & json_proto [20:36:02]process_json_proto [20:36:02]json parsed OK: [20:36:02]protocol is kg_v1.0 [20:36:02]action value=close_receipt [20:36:02]process_action close_receipt [20:36:02]cmd_close_receipt [20:36:02]MH_GetDate [20:36:02]Write to MH i2c: F0 00 00 1D 00 0C [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: F0 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: F0 09 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: F0 09 00 1D 00 00 B2 AC C3 66 5F 7F 2B 66 0B [20:36:02]GetLastDocTimeStamp 97 [20:36:02]current date 1724099762 [20:36:02]FM_GetShiftState [20:36:02]SAM_PROTO_GetShiftState [20:36:02]wFMCommunicate request_size=4 [20:36:02]MH_SAM_APDU [20:36:02]CAPDU: 80 13 01 00 [20:36:02]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:02]Read from MH i2c: E2 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 0E 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 52 [20:36:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:36:02]wFMCommunicate OK [20:36:02]SAM_PROTO_GetShiftState done [20:36:02]FM_GetShiftState done [20:36:02]opened in 1724027888 [20:36:02]opened+sec_in_day 1724114288 [20:36:02]quantity*price = 100005 [20:36:02]sum+1 = 100006 [20:36:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 325 19.08.2024 20:36 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139490 ФПД: 274921538254173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203602&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139490&fm=274921538254173&tin=02508201610067®Number=0000000000092569&sum=100000 [20:36:03]StoreToDocumentArchive [20:36:03]shift 452 fd 139490 [20:36:03]save to /storage/0452/doc_00139490 [20:36:03]save last doc name /storage/0452/doc_00139490 to /storage/kkm_last_doc_name [20:36:03]save OK [20:36:03]Clear old archive folders... [20:36:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:03]tlvbuf is 00D28A30 [20:36:03]SAM_PROTO_ClearQueue [20:36:03]wFMCommunicate request_size=4 [20:36:03]MH_SAM_APDU [20:36:03]CAPDU: 80 09 00 00 [20:36:03]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [20:36:03]Write i2c OK [20:36:03]MH_I2C_Read... [20:36:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:03]Read from MH i2c: E2 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: E2 03 00 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [20:36:03]RAPDU: 90 00 [20:36:03]wFMCommunicate OK [20:36:03]SAM_PROTO_ClearQueue done [20:36:03]KKMCreateOFDPacket [20:36:03]OFDProtocolAddRootSTLVToBuf [20:36:03]FM_MakeSignedData [20:36:03]FM_MakeSignedData [20:36:03]SAM_PROTO_SignData [20:36:03]wFMCommunicate request_size=4 [20:36:03]MH_SAM_APDU [20:36:03]CAPDU: 80 0D 01 02 [20:36:03]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [20:36:03]Write i2c OK [20:36:03]MH_I2C_Read... [20:36:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:03]Read from MH i2c: E2 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: E2 03 00 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [20:36:03]RAPDU: 90 00 [20:36:03]wFMCommunicate OK [20:36:03]wFMCommunicate request_size=255 [20:36:03]MH_SAM_APDU [20:36: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 B2 AC C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 20 02 00 35 04 06 00 FA [20:36:03]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 B2 AC C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 20 02 00 35 04 06 00 FA 00 00 4D [20:36:03]Write i2c OK [20:36:03]MH_I2C_Read... [20:36:04]OFD Sender: No OFD packet to send [20:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:04]Read from MH i2c: E2 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 03 00 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [20:36:04]RAPDU: 90 00 [20:36:04]wFMCommunicate OK [20:36:04]wFMCommunicate request_size=10 [20:36:04]MH_SAM_APDU [20:36:04]CAPDU: 80 0D 02 02 05 0A 28 A0 F5 5D [20:36:04]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 0A 28 A0 F5 5D 00 00 D6 [20:36:04]Write i2c OK [20:36:04]MH_I2C_Read... [20:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:04]Read from MH i2c: E2 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 03 00 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [20:36:04]RAPDU: 90 00 [20:36:04]wFMCommunicate OK [20:36:04]wFMCommunicate request_size=4 [20:36:04]MH_SAM_APDU [20:36:04]CAPDU: 80 0D 03 02 [20:36:04]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [20:36:04]Write i2c OK [20:36:04]MH_I2C_Read... [20:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:04]Read from MH i2c: E2 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 0B 00 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 0B 00 2F 00 00 39 DB 2F 3C 8A 99 F7 A1 90 00 E5 [20:36:04]RAPDU: 39 DB 2F 3C 8A 99 F7 A1 90 00 [20:36:04]wFMCommunicate OK [20:36:04]SAM_PROTO_SignData done [20:36:04]FM_MakeSignedData done [20:36:04]CreateOFDProtocolMessage [20:36:04]wFMCommunicate request_size=4 [20:36:04]MH_SAM_APDU [20:36:04]CAPDU: 80 11 00 00 [20:36:04]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [20:36:04]Write i2c OK [20:36:04]MH_I2C_Read... [20:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:04]Read from MH i2c: E2 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 17 00 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [20:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:36:04]wFMCommunicate OK [20:36:04]CreateOFDProtocolMessage done [20:36:04]OFDSenderStorePacket 139490 [20:36:04]StoreOFDPacket docnum=139490 [20:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AD 5F 07 01 78 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 B2 AC C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 20 02 00 35 04 06 00 FA 0A 28 A0 F5 5D 39 DB 2F 3C 8A 99 F7 A1 [20:36:04]CheckFolder [20:36:04]dirname=/storage/ofd_packets [20:36:04]CheckFolder done [20:36:04]ProducePacketName [20:36:04]name=ofd_packets/00139490 [20:36:04]NVStorageSaveData ofd_packets/00139490 [20:36:04]File name is /storage/ofd_packets/00139490 [20:36:04]Write 301 bytes [20:36:04]NVStorageSaveData done [20:36:04]OFDSenderStorePacket done [20:36:04]KKMCreateOFDPacket done [20:36:04]NVStorageSaveData kkm_last_timestamp [20:36:04]File name is /storage/kkm_last_timestamp [20:36:04]Write 4 bytes [20:36:04]NVStorageSaveData done [20:36:04]ExternCall_PrintAddStr [20:36:04]wPrintStart [20:36:04]Write to MH i2c: 01 00 00 31 00 31 [20:36:04]Write i2c OK [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: 01 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: 01 07 00 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [20:36:04]RasterBufferAndPrint [20:36:04]line Счет N : (1)593333 [20:36:04]line ИНН: 02508201610067 [20:36:04]line Контрольно-Кассовый Чек [20:36:04]line ПРОДАЖА [20:36:04]line ТРК (МРК, ГНК) : 32 [20:36:04]line Товар: 2710124130 [20:36:04]line Аи-92-К-5 [20:36:04]line 14.750 * 67.80 [20:36:04]line = 1000.05 [20:36:04]line НДС 12% НСП 1% [20:36:04]line > о реализуемом товаре [20:36:04]line ОКРУГЛЕНИЕ: -0.05 [20:36:04]line ИТОГО: 1000.00 [20:36:04]line Внесено: 1000.00 [20:36:04]line СДАЧА: 0.00 [20:36:04]line НСП 1% : 8.85 [20:36:04]line НДС 12% : 106.20 [20:36:04]line Наличными: 1000.00 [20:36:04]line Безнал.: 0.00 [20:36:04]line Место: АЗС № 136 "Партнер Нефть" [20:36:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:36:04]line СНО: Общий режим [20:36:04]line Чек 325 19.08.2024 20:36 [20:36:04]line Смена: 452 ФФД: 1.0 [20:36:04]line ЗНМ: 0300000067 [20:36:04]line РНМ: 0000000000092569 [20:36:04]line Версия ККМ: 001 [20:36:04]line ФМ: 0000000000871776 [20:36:04]line ФД: 139490 [20:36:04]line ФПД: 274921538254173 [20:36:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203602&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139490&fm=274921538254173&tin=02508201610067®Number=0000000000092569&sum=100000 [20:36:04]OFD Sender: Processing packet 139490 [packets to send 137, broken 136] [20:36:04]ProducePacketName [20:36:04]name=ofd_packets/00139490 [20:36:04]OFD Sender: To server: pG, [20:36:04]CommunicateWithHost lk.salyk.kg:30040 [20:36:04]ConnectInit lk.salyk.kg [20:36:04]written 0, free lines is 4095 [20:36:05]Connected sock=11 [20:36: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 37 36 0F 01 00 00 AD 5F 07 01 78 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 B2 AC C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 20 02 00 35 04 06 00 FA 0A 28 A0 F5 5D 39 DB 2F 3C 8A 99 F7 A1 [20:36:05]Write to MH i2c: 01 00 00 5C 00 5C [20:36:05]Write i2c OK [20:36:05]MH_I2C_Read... [20:36:05]Read from MH i2c: 01 [20:36:05]MH_I2C_Read... [20:36:05]Read from MH i2c: 01 07 00 [20:36:05]MH_I2C_Read... [20:36:05]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 D7 0C 46 [20:36:05]RasterBufferAndPrint [20:36:05]line [20:36:05]line [20:36:05]line [20:36:05]line [20:36:05]line [20:36:05]written 0, free lines is 3293 [20:36:05]MH_Cut [20:36:05]Write to MH i2c: D1 01 00 63 00 01 35 [20:36:05]Write i2c OK [20:36:05]MH_I2C_Read... [20:36:05]Read from MH i2c: D1 [20:36:05]MH_I2C_Read... [20:36:05]Read from MH i2c: D1 01 00 [20:36:05]MH_I2C_Read... [20:36:05]Read from MH i2c: D1 01 00 63 00 00 34 [20:36:05]Write to MH i2c: 01 00 00 64 00 64 [20:36:05]Write i2c OK [20:36:05]MH_I2C_Read... [20:36: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 37 36 4F 00 00 00 B4 FE 47 00 59 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 37 36 10 04 04 00 E2 20 02 00 F4 03 04 00 48 53 C3 66 B6 04 01 00 00 86 66 DA 10 88 56 93 A5 [20:36:05]CommunicateWithHost err = 0 [20:36:05]CheckOFDResponse [20:36:05]1017 (14) - 77093643461234 [20:36:05]1041 (16) - 0000000000871776 [20:36:05]1040 (4) - 139490 [20:36:05]1012 (4) - 19.08.2024 14:14 [20:36:05]1206 (1) - 0 [20:36:05]OFD Sender: Remove packet 139490 [20:36:05]ProducePacketName [20:36:05]name=ofd_packets/00139490 [20:36:05]NVStorageDeleteData [20:36:05]OFD Sender: No OFD packet to send [20:36:05]*** Cut start [20:36:05]*** Partial cut [20:36:05]*** CUTSNS_PIN = 1 [20:36:05]*** CUTSNS_PIN = 0 [20:36:06]*** Brake cut motor [20:36:06]Read from MH i2c: 01 [20:36:06]MH_I2C_Read... [20:36:06]*** Stop cut motor [20:36:06]*** Cut end [20:36:06]Read from MH i2c: 01 07 00 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [20:36:06]process_action close_receipt done [20:36:06]requested_data is exist [20:36:06]produce_requested_data [20:36:06]requested_item fm.sn is exist - process it [20:36:06]wFMCommunicate request_size=4 [20:36:06]MH_SAM_APDU [20:36:06]CAPDU: 80 11 00 00 [20:36:06]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [20:36:06]Write i2c OK [20:36:06]MH_I2C_Read... [20:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:06]Read from MH i2c: E2 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: E2 17 00 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [20:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:36:06]wFMCommunicate OK [20:36:06]requested_item fd.num is exist - process it [20:36:06]SAM_PROTO_GetFieldsCounters [20:36:06]wFMCommunicate request_size=4 [20:36:06]MH_SAM_APDU [20:36:06]CAPDU: 80 13 00 00 [20:36:06]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [20:36:06]Write i2c OK [20:36:06]MH_I2C_Read... [20:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:06]Read from MH i2c: E2 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: E2 62 00 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: E2 62 00 66 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 20 02 00 0E 04 04 00 C4 01 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 A8 [20:36: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 20 02 00 0E 04 04 00 C4 01 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 [20:36:06]wFMCommunicate OK [20:36:06]SAM_PROTO_GetFieldsCounters done [20:36:06]requested_item shift.num is exist - process it [20:36:06]requested_item shift.opened is exist - process it [20:36:06]req_shift_opened [20:36:06]FM_GetShiftState [20:36:06]SAM_PROTO_GetShiftState [20:36:06]wFMCommunicate request_size=4 [20:36:06]MH_SAM_APDU [20:36:06]CAPDU: 80 13 01 00 [20:36:06]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [20:36:06]Write i2c OK [20:36:06]MH_I2C_Read... [20:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:06]Read from MH i2c: E2 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: E2 0E 00 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9B [20:36:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:36:06]wFMCommunicate OK [20:36:06]SAM_PROTO_GetShiftState done [20:36:06]FM_GetShiftState done [20:36:06]req_shift_opened done [20:36:06]requested_item shift.open_date is exist - process it [20:36:06]req_shift_open_date [20:36:06]req_shift_open_date done [20:36:06]produce_requested_data done [20:36:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139490,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:36:06]process_action_free close_receipt [20:36:06]json_value_free [20:36:06]json_value_free done [20:36:06]process_json_proto returns [20:36:06]Send response to host [20:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139490,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:36:06]free response buf [20:36:06]execute_script done [20:36:06]execute_script returns [20:36:06]free content buf [20:36:06]Sock 9.Close socket [20:36:06]Sock 9.Thread stoped [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:39]accept exits with 7 [20:39:39]New connection [20:39:39]New thread 3067071844 created [20:39:39]Thread 3067215204 joined [20:39:39]Waiting for new connection... [20:39:39] Sock 7.Parse request [20:39:39]Sock 7.Check first char [20:39:39]Sock 7.First char is OK [20:39:39]request: POST /json_proto HTTP/1.0 [20:39:39]Method: POST [20:39:39]URL: /json_proto [20:39:39]Method is POST - this is cgi request [20:39:39]url: /json_proto [20:39:39]query_string will be loaded in cgi processing [20:39:39]execute_cgi json_proto POST (null) [20:39:39]execute_cgi path=json_proto method=POST [20:39:39]POST find Content-Length [20:39:39]Host: 172.17.45.67:8080 [20:39:39]Content-Length: 682 [20:39:39]Content-Type: application/json [20:39:39] [20:39:39]POST finish read [20:39:39]Found Content-Length = 682 [20:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "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" ] } } [20:39:39]execute_script... [20:39:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "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" ] } } [20:39:39]POST & json_proto [20:39:39]process_json_proto [20:39:39]json parsed OK: [20:39:39]protocol is kg_v1.0 [20:39:39]action value=close_receipt [20:39:39]process_action close_receipt [20:39:39]cmd_close_receipt [20:39:39]MH_GetDate [20:39:39]Write to MH i2c: F0 00 00 68 00 57 [20:39:39]Write i2c OK [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: F0 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: F0 09 00 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: F0 09 00 68 00 00 8B AD C3 66 5F 7F 2B 66 30 [20:39:39]GetLastDocTimeStamp 1724099762 [20:39:39]current date 1724099979 [20:39:39]FM_GetShiftState [20:39:39]SAM_PROTO_GetShiftState [20:39:39]wFMCommunicate request_size=4 [20:39:39]MH_SAM_APDU [20:39:39]CAPDU: 80 13 01 00 [20:39:39]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [20:39:39]Write i2c OK [20:39:39]MH_I2C_Read... [20:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:39]Read from MH i2c: E2 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: E2 0E 00 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9D [20:39:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:39:39]wFMCommunicate OK [20:39:39]SAM_PROTO_GetShiftState done [20:39:39]FM_GetShiftState done [20:39:39]opened in 1724027888 [20:39:39]opened+sec_in_day 1724114288 [20:39:39]quantity*price = 75057 [20:39:39]sum+1 = 75058 [20:39:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 326 19.08.2024 20:39 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139491 ФПД: 136465402896041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139491&fm=136465402896041&tin=02508201610067®Number=0000000000092569&sum=75000 [20:39:40]StoreToDocumentArchive [20:39:40]shift 452 fd 139491 [20:39:40]save to /storage/0452/doc_00139491 [20:39:40]save last doc name /storage/0452/doc_00139491 to /storage/kkm_last_doc_name [20:39:40]save OK [20:39:40]Clear old archive folders... [20:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:39:40]tlvbuf is 00D26070 [20:39:40]SAM_PROTO_ClearQueue [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 09 00 00 [20:39:40]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 03 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [20:39:40]RAPDU: 90 00 [20:39:40]wFMCommunicate OK [20:39:40]SAM_PROTO_ClearQueue done [20:39:40]KKMCreateOFDPacket [20:39:40]OFDProtocolAddRootSTLVToBuf [20:39:40]FM_MakeSignedData [20:39:40]FM_MakeSignedData [20:39:40]SAM_PROTO_SignData [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 0D 01 02 [20:39:40]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 03 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [20:39:40]RAPDU: 90 00 [20:39:40]wFMCommunicate OK [20:39:40]wFMCommunicate request_size=255 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 46 01 00 00 F4 03 04 00 8B AD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 20 02 00 35 04 06 00 [20:39:40]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 46 01 00 00 F4 03 04 00 8B AD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 20 02 00 35 04 06 00 00 00 9F [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 03 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [20:39:40]RAPDU: 90 00 [20:39:40]wFMCommunicate OK [20:39:40]wFMCommunicate request_size=11 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 0D 02 02 06 7C 1D 53 DD 1E A9 [20:39:40]Write to MH i2c: E2 0E 00 79 00 80 0D 02 02 06 00 7C 1D 53 DD 1E A9 00 00 8F [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 03 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [20:39:40]RAPDU: 90 00 [20:39:40]wFMCommunicate OK [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 0D 03 02 [20:39:40]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 0B 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 0B 00 7A 00 00 AC 73 02 3B A2 44 1E A6 90 00 FC [20:39:40]RAPDU: AC 73 02 3B A2 44 1E A6 90 00 [20:39:40]wFMCommunicate OK [20:39:40]SAM_PROTO_SignData done [20:39:40]FM_MakeSignedData done [20:39:40]CreateOFDProtocolMessage [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 11 00 00 [20:39:40]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 17 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [20:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:39:40]wFMCommunicate OK [20:39:40]CreateOFDProtocolMessage done [20:39:40]OFDSenderStorePacket 139491 [20:39:40]StoreOFDPacket docnum=139491 [20:39:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 D9 8A 08 01 53 63 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 46 01 00 00 F4 03 04 00 8B AD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 20 02 00 35 04 06 00 7C 1D 53 DD 1E A9 AC 73 02 3B A2 44 1E A6 [20:39:40]CheckFolder [20:39:40]dirname=/storage/ofd_packets [20:39:40]CheckFolder done [20:39:40]ProducePacketName [20:39:40]name=ofd_packets/00139491 [20:39:40]NVStorageSaveData ofd_packets/00139491 [20:39:40]File name is /storage/ofd_packets/00139491 [20:39:40]Write 302 bytes [20:39:40]NVStorageSaveData done [20:39:40]OFDSenderStorePacket done [20:39:40]KKMCreateOFDPacket done [20:39:40]NVStorageSaveData kkm_last_timestamp [20:39:40]File name is /storage/kkm_last_timestamp [20:39:40]Write 4 bytes [20:39:40]NVStorageSaveData done [20:39:40]ExternCall_PrintAddStr [20:39:40]wPrintStart [20:39:40]Write to MH i2c: 01 00 00 7C 00 7C [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: 01 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: 01 07 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [20:39:40]RasterBufferAndPrint [20:39:40]line Счет N : (1)593334 [20:39:40]line ИНН: 02508201610067 [20:39:40]line Контрольно-Кассовый Чек [20:39:40]line ПРОДАЖА [20:39:40]line ТРК (МРК, ГНК) : 44 [20:39:40]line Товар: 2710194210 [20:39:40]line ДТ(л)-К-5 [20:39:40]line 9.850 * 76.20 [20:39:40]line = 750.57 [20:39:40]line НДС 12% НСП 1% [20:39:40]line > о реализуемом товаре [20:39:40]line ОКРУГЛЕНИЕ: -0.57 [20:39:40]line ИТОГО: 750.00 [20:39:40]line Внесено: 750.00 [20:39:40]line СДАЧА: 0.00 [20:39:40]line НСП 1% : 6.64 [20:39:40]line НДС 12% : 79.71 [20:39:40]line Наличными: 750.00 [20:39:40]line Безнал.: 0.00 [20:39:40]line Место: АЗС № 136 "Партнер Нефть" [20:39:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:39:40]line СНО: Общий режим [20:39:40]line Чек 326 19.08.2024 20:39 [20:39:40]line Смена: 452 ФФД: 1.0 [20:39:40]line ЗНМ: 0300000067 [20:39:40]line РНМ: 0000000000092569 [20:39:40]line Версия ККМ: 001 [20:39:40]line ФМ: 0000000000871776 [20:39:40]line ФД: 139491 [20:39:40]line ФПД: 136465402896041 [20:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139491&fm=136465402896041&tin=02508201610067®Number=0000000000092569&sum=75000 [20:39:41]OFD Sender: Processing packet 139491 [packets to send 137, broken 136] [20:39:41]ProducePacketName [20:39:41]name=ofd_packets/00139491 [20:39:41]OFD Sender: To server: pG, [20:39:41]CommunicateWithHost lk.salyk.kg:30040 [20:39:41]ConnectInit lk.salyk.kg [20:39:41]written 0, free lines is 4095 [20:39:41]Connected sock=10 [20:39:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 D9 8A 08 01 53 63 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 46 01 00 00 F4 03 04 00 8B AD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 20 02 00 35 04 06 00 7C 1D 53 DD 1E A9 AC 73 02 3B A2 44 1E A6 [20:39: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 37 36 4F 00 00 00 E9 CA 47 00 2D 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 20 02 00 F4 03 04 00 20 54 C3 66 B6 04 01 00 00 03 85 55 45 23 3E A7 6A [20:39:41]CommunicateWithHost err = 0 [20:39:41]CheckOFDResponse [20:39:41]1017 (14) - 77093643461234 [20:39:41]1041 (16) - 0000000000871776 [20:39:41]1040 (4) - 139491 [20:39:41]1012 (4) - 19.08.2024 14:18 [20:39:41]1206 (1) - 0 [20:39:41]OFD Sender: Remove packet 139491 [20:39:41]ProducePacketName [20:39:41]name=ofd_packets/00139491 [20:39:41]NVStorageDeleteData [20:39:41]Write to MH i2c: 01 00 00 A7 00 A7 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: 01 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: 01 07 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 DA 0C 94 [20:39:41]RasterBufferAndPrint [20:39:41]line [20:39:41]line [20:39:41]line [20:39:41]line [20:39:41]line [20:39:41]written 0, free lines is 3297 [20:39:41]MH_Cut [20:39:41]Write to MH i2c: D1 01 00 AE 00 01 80 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: D1 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: D1 01 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: D1 01 00 AE 00 00 7F [20:39:41]Write to MH i2c: 01 00 00 AF 00 AF [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:42]OFD Sender: No OFD packet to send [20:39:42]*** Cut start [20:39:42]*** Partial cut [20:39:42]*** CUTSNS_PIN = 1 [20:39:42]*** CUTSNS_PIN = 0 [20:39:42]*** Brake cut motor [20:39:42]Read from MH i2c: 01 [20:39:42]MH_I2C_Read... [20:39:42]*** Stop cut motor [20:39:42]*** Cut end [20:39:42]Read from MH i2c: 01 07 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [20:39:42]process_action close_receipt done [20:39:42]requested_data is exist [20:39:42]produce_requested_data [20:39:42]requested_item fm.sn is exist - process it [20:39:42]wFMCommunicate request_size=4 [20:39:42]MH_SAM_APDU [20:39:42]CAPDU: 80 11 00 00 [20:39:42]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 17 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [20:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:39:43]wFMCommunicate OK [20:39:43]requested_item fd.num is exist - process it [20:39:43]SAM_PROTO_GetFieldsCounters [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 13 00 00 [20:39:43]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 62 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 62 00 B1 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 20 02 00 0E 04 04 00 C4 01 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 F7 [20:39:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 20 02 00 0E 04 04 00 C4 01 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 [20:39:43]wFMCommunicate OK [20:39:43]SAM_PROTO_GetFieldsCounters done [20:39:43]requested_item shift.num is exist - process it [20:39:43]requested_item shift.opened is exist - process it [20:39:43]req_shift_opened [20:39:43]FM_GetShiftState [20:39:43]SAM_PROTO_GetShiftState [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 13 01 00 [20:39:43]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 0E 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E6 [20:39:43]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:39:43]wFMCommunicate OK [20:39:43]SAM_PROTO_GetShiftState done [20:39:43]FM_GetShiftState done [20:39:43]req_shift_opened done [20:39:43]requested_item shift.open_date is exist - process it [20:39:43]req_shift_open_date [20:39:43]req_shift_open_date done [20:39:43]produce_requested_data done [20:39:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139491,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:39:43]process_action_free close_receipt [20:39:43]json_value_free [20:39:43]json_value_free done [20:39:43]process_json_proto returns [20:39:43]Send response to host [20:39:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139491,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:39:43]free response buf [20:39:43]execute_script done [20:39:43]execute_script returns [20:39:43]free content buf [20:39:43]Sock 7.Close socket [20:39:43]Sock 7.Thread stoped [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:32]accept exits with 9 [20:41:32]New connection [20:41:32]New thread 3067215204 created [20:41:32]Thread 3067071844 joined [20:41:32]Waiting for new connection... [20:41:32] Sock 9.Parse request [20:41:32]Sock 9.Check first char [20:41:32]Sock 9.First char is OK [20:41:32]request: POST /json_proto HTTP/1.0 [20:41:32]Method: POST [20:41:32]URL: /json_proto [20:41:32]Method is POST - this is cgi request [20:41:32]url: /json_proto [20:41:32]query_string will be loaded in cgi processing [20:41:32]execute_cgi json_proto POST (null) [20:41:32]execute_cgi path=json_proto method=POST [20:41:32]POST find Content-Length [20:41:32]Host: 172.17.45.67:8080 [20:41:32]Content-Length: 687 [20:41:32]Content-Type: application/json [20:41:32] [20:41:32]POST finish read [20:41:32]Found Content-Length = 687 [20:41:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:32]execute_script... [20:41: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)593335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:32]POST & json_proto [20:41:32]process_json_proto [20:41:32]json parsed OK: [20:41:32]protocol is kg_v1.0 [20:41:32]action value=close_receipt [20:41:32]process_action close_receipt [20:41:32]cmd_close_receipt [20:41:32]MH_GetDate [20:41:32]Write to MH i2c: F0 00 00 B3 00 A2 [20:41:32]Write i2c OK [20:41:32]MH_I2C_Read... [20:41:32]Read from MH i2c: F0 [20:41:32]MH_I2C_Read... [20:41:32]Read from MH i2c: F0 09 00 [20:41:32]MH_I2C_Read... [20:41:32]Read from MH i2c: F0 09 00 B3 00 00 FC AD C3 66 5F 7F 2B 66 EC [20:41:32]GetLastDocTimeStamp 1724099979 [20:41:32]current date 1724100092 [20:41:32]FM_GetShiftState [20:41:32]SAM_PROTO_GetShiftState [20:41:32]wFMCommunicate request_size=4 [20:41:32]MH_SAM_APDU [20:41:32]CAPDU: 80 13 01 00 [20:41:32]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [20:41:32]Write i2c OK [20:41:32]MH_I2C_Read... [20:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:32]Read from MH i2c: E2 [20:41:32]MH_I2C_Read... [20:41:32]Read from MH i2c: E2 0E 00 [20:41:32]MH_I2C_Read... [20:41:32]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E8 [20:41:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:41:32]wFMCommunicate OK [20:41:32]SAM_PROTO_GetShiftState done [20:41:32]FM_GetShiftState done [20:41:32]opened in 1724027888 [20:41:32]opened+sec_in_day 1724114288 [20:41:32]quantity*price = 250012 [20:41:32]sum+1 = 250013 [20:41:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 327 19.08.2024 20:41 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139492 ФПД: 101264238488758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T204132&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139492&fm=101264238488758&tin=02508201610067®Number=0000000000092569&sum=250000 [20:41:33]StoreToDocumentArchive [20:41:33]shift 452 fd 139492 [20:41:33]save to /storage/0452/doc_00139492 [20:41:33]save last doc name /storage/0452/doc_00139492 to /storage/kkm_last_doc_name [20:41:33]save OK [20:41:33]Clear old archive folders... [20:41:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:41:33]tlvbuf is 00D21060 [20:41:33]SAM_PROTO_ClearQueue [20:41:33]wFMCommunicate request_size=4 [20:41:33]MH_SAM_APDU [20:41:33]CAPDU: 80 09 00 00 [20:41:33]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [20:41:33]Write i2c OK [20:41:33]MH_I2C_Read... [20:41:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:33]Read from MH i2c: E2 [20:41:33]MH_I2C_Read... [20:41:33]Read from MH i2c: E2 03 00 [20:41:33]MH_I2C_Read... [20:41:33]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [20:41:33]RAPDU: 90 00 [20:41:33]wFMCommunicate OK [20:41:33]SAM_PROTO_ClearQueue done [20:41:33]KKMCreateOFDPacket [20:41:33]OFDProtocolAddRootSTLVToBuf [20:41:33]FM_MakeSignedData [20:41:33]FM_MakeSignedData [20:41:33]SAM_PROTO_SignData [20:41:33]wFMCommunicate request_size=4 [20:41:33]MH_SAM_APDU [20:41:33]CAPDU: 80 0D 01 02 [20:41:33]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [20:41:33]Write i2c OK [20:41:33]MH_I2C_Read... [20:41:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:33]Read from MH i2c: E2 [20:41:33]MH_I2C_Read... [20:41:33]Read from MH i2c: E2 03 00 [20:41:33]MH_I2C_Read... [20:41:33]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [20:41:33]RAPDU: 90 00 [20:41:33]wFMCommunicate OK [20:41:33]wFMCommunicate request_size=255 [20:41:33]MH_SAM_APDU [20:41:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 47 01 00 00 F4 03 04 00 FC AD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 20 02 00 35 04 06 00 [20:41:33]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 47 01 00 00 F4 03 04 00 FC AD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 20 02 00 35 04 06 00 00 00 F8 [20:41:33]Write i2c OK [20:41:33]MH_I2C_Read... [20:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:34]Read from MH i2c: E2 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: E2 03 00 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [20:41:34]RAPDU: 90 00 [20:41:34]wFMCommunicate OK [20:41:34]wFMCommunicate request_size=11 [20:41:34]MH_SAM_APDU [20:41:34]CAPDU: 80 0D 02 02 06 5C 19 6A F6 AC B6 [20:41:34]Write to MH i2c: E2 0E 00 C4 00 80 0D 02 02 06 00 5C 19 6A F6 AC B6 00 00 81 [20:41:34]Write i2c OK [20:41:34]MH_I2C_Read... [20:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:34]Read from MH i2c: E2 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: E2 03 00 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [20:41:34]RAPDU: 90 00 [20:41:34]wFMCommunicate OK [20:41:34]wFMCommunicate request_size=4 [20:41:34]MH_SAM_APDU [20:41:34]CAPDU: 80 0D 03 02 [20:41:34]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [20:41:34]Write i2c OK [20:41:34]MH_I2C_Read... [20:41:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:34]Read from MH i2c: E2 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: E2 0B 00 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: E2 0B 00 C5 00 00 15 D0 24 F3 2A 94 D7 13 90 00 E5 [20:41:34]RAPDU: 15 D0 24 F3 2A 94 D7 13 90 00 [20:41:34]wFMCommunicate OK [20:41:34]SAM_PROTO_SignData done [20:41:34]FM_MakeSignedData done [20:41:34]CreateOFDProtocolMessage [20:41:34]wFMCommunicate request_size=4 [20:41:34]MH_SAM_APDU [20:41:34]CAPDU: 80 11 00 00 [20:41:34]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [20:41:34]Write i2c OK [20:41:34]MH_I2C_Read... [20:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:34]Read from MH i2c: E2 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: E2 17 00 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [20:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:41:34]wFMCommunicate OK [20:41:34]CreateOFDProtocolMessage done [20:41:34]OFDSenderStorePacket 139492 [20:41:34]StoreOFDPacket docnum=139492 [20:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 5E A8 08 01 46 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 47 01 00 00 F4 03 04 00 FC AD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 20 02 00 35 04 06 00 5C 19 6A F6 AC B6 15 D0 24 F3 2A 94 D7 13 [20:41:34]CheckFolder [20:41:34]dirname=/storage/ofd_packets [20:41:34]CheckFolder done [20:41:34]ProducePacketName [20:41:34]name=ofd_packets/00139492 [20:41:34]NVStorageSaveData ofd_packets/00139492 [20:41:34]File name is /storage/ofd_packets/00139492 [20:41:34]Write 302 bytes [20:41:34]NVStorageSaveData done [20:41:34]OFDSenderStorePacket done [20:41:34]KKMCreateOFDPacket done [20:41:34]NVStorageSaveData kkm_last_timestamp [20:41:34]File name is /storage/kkm_last_timestamp [20:41:34]Write 4 bytes [20:41:34]NVStorageSaveData done [20:41:34]ExternCall_PrintAddStr [20:41:34]wPrintStart [20:41:34]Write to MH i2c: 01 00 00 C7 00 C7 [20:41:34]Write i2c OK [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: 01 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: 01 07 00 [20:41:34]MH_I2C_Read... [20:41:34]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [20:41:34]RasterBufferAndPrint [20:41:34]line Счет N : (1)593335 [20:41:34]line ИНН: 02508201610067 [20:41:34]line Контрольно-Кассовый Чек [20:41:34]line ПРОДАЖА [20:41:34]line ТРК (МРК, ГНК) : 64 [20:41:34]line Товар: 2710194210 [20:41:34]line ДТ(л)-К-5 [20:41:34]line 32.810 * 76.20 [20:41:34]line = 2500.12 [20:41:34]line НДС 12% НСП 1% [20:41:34]line > о реализуемом товаре [20:41:34]line ОКРУГЛЕНИЕ: -0.12 [20:41:34]line ИТОГО: 2500.00 [20:41:34]line Внесено: 2500.00 [20:41:34]line СДАЧА: 0.00 [20:41:34]line НСП 1% : 22.12 [20:41:34]line НДС 12% : 265.50 [20:41:34]line Наличными: 2500.00 [20:41:34]line Безнал.: 0.00 [20:41:34]line Место: АЗС № 136 "Партнер Нефть" [20:41:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:41:34]line СНО: Общий режим [20:41:34]line Чек 327 19.08.2024 20:41 [20:41:34]line Смена: 452 ФФД: 1.0 [20:41:34]line ЗНМ: 0300000067 [20:41:34]line РНМ: 0000000000092569 [20:41:34]line Версия ККМ: 001 [20:41:34]line ФМ: 0000000000871776 [20:41:34]line ФД: 139492 [20:41:34]line ФПД: 101264238488758 [20:41:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T204132&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139492&fm=101264238488758&tin=02508201610067®Number=0000000000092569&sum=250000 [20:41:34]OFD Sender: Processing packet 139492 [packets to send 137, broken 136] [20:41:34]ProducePacketName [20:41:34]name=ofd_packets/00139492 [20:41:34]OFD Sender: To server: pG, [20:41:34]CommunicateWithHost lk.salyk.kg:30040 [20:41:34]ConnectInit lk.salyk.kg [20:41:34]written 0, free lines is 4095 [20:41:34]Connected sock=10 [20:41: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 37 36 10 01 00 00 5E A8 08 01 46 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 B6 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 47 01 00 00 F4 03 04 00 FC AD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 20 02 00 35 04 06 00 5C 19 6A F6 AC B6 15 D0 24 F3 2A 94 D7 13 [20:41:35]Write to MH i2c: 01 00 00 F2 00 F2 [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: 01 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: 01 07 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 CE 0C D3 [20:41:35]RasterBufferAndPrint [20:41:35]line [20:41:35]line [20:41:35]line [20:41:35]line [20:41:35]line [20:41:35]written 0, free lines is 3284 [20:41:35]MH_Cut [20:41:35]Write to MH i2c: D1 01 00 F9 00 01 CB [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: D1 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: D1 01 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: D1 01 00 F9 00 00 CA [20:41:35]Write to MH i2c: 01 00 00 FA 00 FA [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41: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 37 36 4F 00 00 00 B9 AA 47 00 73 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 37 36 10 04 04 00 E4 20 02 00 F4 03 04 00 91 54 C3 66 B6 04 01 00 00 08 92 F6 70 BB B4 7D 3F [20:41:35]CommunicateWithHost err = 0 [20:41:35]CheckOFDResponse [20:41:35]1017 (14) - 77093643461234 [20:41:35]1041 (16) - 0000000000871776 [20:41:35]1040 (4) - 139492 [20:41:35]1012 (4) - 19.08.2024 14:20 [20:41:35]1206 (1) - 0 [20:41:35]OFD Sender: Remove packet 139492 [20:41:35]ProducePacketName [20:41:35]name=ofd_packets/00139492 [20:41:35]NVStorageDeleteData [20:41:35]OFD Sender: No OFD packet to send [20:41:35]*** Cut start [20:41:35]*** Partial cut [20:41:35]*** CUTSNS_PIN = 1 [20:41:35]*** CUTSNS_PIN = 0 [20:41:36]*** Brake cut motor [20:41:36]Read from MH i2c: 01 [20:41:36]MH_I2C_Read... [20:41:36]*** Stop cut motor [20:41:36]*** Cut end [20:41:36]Read from MH i2c: 01 07 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [20:41:36]process_action close_receipt done [20:41:36]requested_data is exist [20:41:36]produce_requested_data [20:41:36]requested_item fm.sn is exist - process it [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 11 00 00 [20:41:36]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 17 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [20:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:41:36]wFMCommunicate OK [20:41:36]requested_item fd.num is exist - process it [20:41:36]SAM_PROTO_GetFieldsCounters [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 13 00 00 [20:41:36]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 62 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 62 00 FC 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 20 02 00 0E 04 04 00 C4 01 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 46 [20:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 20 02 00 0E 04 04 00 C4 01 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 [20:41:36]wFMCommunicate OK [20:41:36]SAM_PROTO_GetFieldsCounters done [20:41:36]requested_item shift.num is exist - process it [20:41:36]requested_item shift.opened is exist - process it [20:41:36]req_shift_opened [20:41:36]FM_GetShiftState [20:41:36]SAM_PROTO_GetShiftState [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 13 01 00 [20:41:36]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:36]Read from MH i2c: E2 0E 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 31 [20:41:36]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:41:36]wFMCommunicate OK [20:41:36]SAM_PROTO_GetShiftState done [20:41:36]FM_GetShiftState done [20:41:36]req_shift_opened done [20:41:36]requested_item shift.open_date is exist - process it [20:41:36]req_shift_open_date [20:41:36]req_shift_open_date done [20:41:36]produce_requested_data done [20:41:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139492,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:41:36]process_action_free close_receipt [20:41:36]json_value_free [20:41:36]json_value_free done [20:41:36]process_json_proto returns [20:41:36]Send response to host [20:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139492,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:41:36]free response buf [20:41:36]execute_script done [20:41:36]execute_script returns [20:41:36]free content buf [20:41:36]Sock 9.Close socket [20:41:36]Sock 9.Thread stoped [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:46]accept exits with 7 [20:43:46]New connection [20:43:46]New thread 3067071844 created [20:43:46]Thread 3067215204 joined [20:43:46]Waiting for new connection... [20:43:46] Sock 7.Parse request [20:43:46]Sock 7.Check first char [20:43:46]Sock 7.First char is OK [20:43:46]request: POST /json_proto HTTP/1.0 [20:43:46]Method: POST [20:43:46]URL: /json_proto [20:43:46]Method is POST - this is cgi request [20:43:46]url: /json_proto [20:43:46]query_string will be loaded in cgi processing [20:43:46]execute_cgi json_proto POST (null) [20:43:46]execute_cgi path=json_proto method=POST [20:43:46]POST find Content-Length [20:43:46]Host: 172.17.45.67:8080 [20:43:46]Content-Length: 838 [20:43:46]Content-Type: application/json [20:43:46] [20:43:46]POST finish read [20:43:46]Found Content-Length = 838 [20:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:46]execute_script... [20: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)593336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:46]POST & json_proto [20:43:46]process_json_proto [20:43:46]json parsed OK: [20:43:46]protocol is kg_v1.0 [20:43:46]action value=close_receipt [20:43:46]process_action close_receipt [20:43:46]cmd_close_receipt [20:43:46]MH_GetDate [20:43:46]Write to MH i2c: F0 00 00 FE 00 ED [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: F0 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: F0 09 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: F0 09 00 FE 00 00 82 AE C3 66 5F 7F 2B 66 BE [20:43:46]GetLastDocTimeStamp 1724100092 [20:43:46]current date 1724100226 [20:43:46]FM_GetShiftState [20:43:46]SAM_PROTO_GetShiftState [20:43:46]wFMCommunicate request_size=4 [20:43:46]MH_SAM_APDU [20:43:46]CAPDU: 80 13 01 00 [20:43:46]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:46]Read from MH i2c: E2 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 0E 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 33 [20:43:46]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:43:46]wFMCommunicate OK [20:43:46]SAM_PROTO_GetShiftState done [20:43:46]FM_GetShiftState done [20:43:46]opened in 1724027888 [20:43:46]opened+sec_in_day 1724114288 [20:43:46]quantity*price = 250054 [20:43:46]sum+1 = 250055 [20:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 328 19.08.2024 20:43 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139493 ФПД: 77252783778019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T204346&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139493&fm=77252783778019&tin=02508201610067®Number=0000000000092569&sum=250000 [20:43:47]StoreToDocumentArchive [20:43:47]shift 452 fd 139493 [20:43:47]save to /storage/0452/doc_00139493 [20:43:47]save last doc name /storage/0452/doc_00139493 to /storage/kkm_last_doc_name [20:43:47]save OK [20:43:47]Clear old archive folders... [20:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:43:47]tlvbuf is 00D13F60 [20:43:47]SAM_PROTO_ClearQueue [20:43:47]wFMCommunicate request_size=4 [20:43:47]MH_SAM_APDU [20:43:47]CAPDU: 80 09 00 00 [20:43:47]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:47]Read from MH i2c: E2 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 03 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [20:43:47]RAPDU: 90 00 [20:43:47]wFMCommunicate OK [20:43:47]SAM_PROTO_ClearQueue done [20:43:47]KKMCreateOFDPacket [20:43:47]OFDProtocolAddRootSTLVToBuf [20:43:47]FM_MakeSignedData [20:43:47]FM_MakeSignedData [20:43:47]SAM_PROTO_SignData [20:43:47]wFMCommunicate request_size=4 [20:43:47]MH_SAM_APDU [20:43:47]CAPDU: 80 0D 01 02 [20:43:47]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:47]Read from MH i2c: E2 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 03 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [20:43:47]RAPDU: 90 00 [20:43:47]wFMCommunicate OK [20:43:47]wFMCommunicate request_size=255 [20:43:47]MH_SAM_APDU [20:43:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 82 AE C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 20 02 00 35 04 06 00 46 [20:43:47]Write to MH i2c: E2 02 01 0E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 82 AE C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 20 02 00 35 04 06 00 46 00 00 BF [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:47]Read from MH i2c: E2 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 03 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [20:43:47]RAPDU: 90 00 [20:43:47]wFMCommunicate OK [20:43:47]wFMCommunicate request_size=10 [20:43:47]MH_SAM_APDU [20:43:47]CAPDU: 80 0D 02 02 05 42 D0 BC 28 E3 [20:43:47]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 42 D0 BC 28 E3 00 00 6D [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:47]Read from MH i2c: E2 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 03 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [20:43:47]RAPDU: 90 00 [20:43:47]wFMCommunicate OK [20:43:47]wFMCommunicate request_size=4 [20:43:47]MH_SAM_APDU [20:43:47]CAPDU: 80 0D 03 02 [20:43:47]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:47]Read from MH i2c: E2 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 0B 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 0B 00 10 01 00 3F F8 6C B2 E6 AB DF 08 90 00 5A [20:43:47]RAPDU: 3F F8 6C B2 E6 AB DF 08 90 00 [20:43:47]wFMCommunicate OK [20:43:47]SAM_PROTO_SignData done [20:43:47]FM_MakeSignedData done [20:43:47]CreateOFDProtocolMessage [20:43:47]wFMCommunicate request_size=4 [20:43:47]MH_SAM_APDU [20:43:47]CAPDU: 80 11 00 00 [20:43:47]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:47]Read from MH i2c: E2 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 17 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [20:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:43:47]wFMCommunicate OK [20:43:47]CreateOFDProtocolMessage done [20:43:47]OFDSenderStorePacket 139493 [20:43:47]StoreOFDPacket docnum=139493 [20:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 92 07 01 67 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 82 AE C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 20 02 00 35 04 06 00 46 42 D0 BC 28 E3 3F F8 6C B2 E6 AB DF 08 [20:43:47]CheckFolder [20:43:47]dirname=/storage/ofd_packets [20:43:47]CheckFolder done [20:43:47]ProducePacketName [20:43:47]name=ofd_packets/00139493 [20:43:47]NVStorageSaveData ofd_packets/00139493 [20:43:47]File name is /storage/ofd_packets/00139493 [20:43:47]Write 301 bytes [20:43:47]NVStorageSaveData done [20:43:47]OFDSenderStorePacket done [20:43:47]KKMCreateOFDPacket done [20:43:47]NVStorageSaveData kkm_last_timestamp [20:43:47]File name is /storage/kkm_last_timestamp [20:43:47]Write 4 bytes [20:43:47]NVStorageSaveData done [20:43:47]ExternCall_PrintAddStr [20:43:47]wPrintStart [20:43:47]Write to MH i2c: 01 00 00 12 01 13 [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: 01 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: 01 07 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [20:43:47]RasterBufferAndPrint [20:43:47]line Счет N : (1)593336 [20:43:47]line ИНН: 02508201610067 [20:43:47]line Контрольно-Кассовый Чек [20:43:47]line ПРОДАЖА [20:43:47]line ТРК (МРК, ГНК) : 41 [20:43:47]line Товар: 2710124500 [20:43:47]line Аи-95-К-5 [20:43:47]line 33.700 * 74.20 [20:43:47]line = 2500.54 [20:43:47]line НДС 12% НСП 1% [20:43:47]line > о реализуемом товаре [20:43:47]line ОКРУГЛЕНИЕ: -0.54 [20:43:47]line ИТОГО: 2500.00 [20:43:47]line НСП 1% : 22.13 [20:43:47]line НДС 12% : 265.54 [20:43:47]line Наличными: 0.00 [20:43:47]line Безнал.: 2500.00 [20:43:47]line Место: АЗС № 136 "Партнер Нефть" [20:43:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:43:47]line СНО: Общий режим [20:43:47]line Чек 328 19.08.2024 20:43 [20:43:47]line Смена: 452 ФФД: 1.0 [20:43:47]line ЗНМ: 0300000067 [20:43:47]line РНМ: 0000000000092569 [20:43:47]line Версия ККМ: 001 [20:43:47]line Платежная система: Бакай Банк [20:43:47]line ФМ: 0000000000871776 [20:43:47]line ФД: 139493 [20:43:47]line ФПД: 77252783778019 [20:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T204346&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139493&fm=77252783778019&tin=02508201610067®Number=0000000000092569&sum=250000 [20:43:48]OFD Sender: Processing packet 139493 [packets to send 137, broken 136] [20:43:48]ProducePacketName [20:43:48]name=ofd_packets/00139493 [20:43:48]OFD Sender: To server: pG, [20:43:48]CommunicateWithHost lk.salyk.kg:30040 [20:43:48]ConnectInit lk.salyk.kg [20:43:48]written 0, free lines is 4095 [20:43:48]Connected sock=10 [20: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 37 36 0F 01 00 00 93 92 07 01 67 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 82 AE C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 20 02 00 35 04 06 00 46 42 D0 BC 28 E3 3F F8 6C B2 E6 AB DF 08 [20: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 37 36 4F 00 00 00 13 71 47 00 3D 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 37 36 10 04 04 00 E5 20 02 00 F4 03 04 00 17 55 C3 66 B6 04 01 00 00 00 71 97 58 9E 68 39 0A [20:43:48]CommunicateWithHost err = 0 [20:43:48]CheckOFDResponse [20:43:48]1017 (14) - 77093643461234 [20:43:48]1041 (16) - 0000000000871776 [20:43:48]1040 (4) - 139493 [20:43:48]1012 (4) - 19.08.2024 14:22 [20:43:48]1206 (1) - 0 [20:43:48]OFD Sender: Remove packet 139493 [20:43:48]ProducePacketName [20:43:48]name=ofd_packets/00139493 [20:43:48]NVStorageDeleteData [20:43:48]Write to MH i2c: 01 00 00 3D 01 3E [20:43:48]Write i2c OK [20:43:48]MH_I2C_Read... [20:43:48]Read from MH i2c: 01 [20:43:48]MH_I2C_Read... [20:43:48]Read from MH i2c: 01 07 00 [20:43:48]MH_I2C_Read... [20:43:48]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 EB 0C 3C [20:43:48]RasterBufferAndPrint [20:43:48]line [20:43:48]line [20:43:48]line [20:43:48]line [20:43:48]line [20:43:48]written 0, free lines is 3314 [20:43:48]MH_Cut [20:43:48]Write to MH i2c: D1 01 00 44 01 01 17 [20:43:48]Write i2c OK [20:43:48]MH_I2C_Read... [20:43:48]Read from MH i2c: D1 [20:43:48]MH_I2C_Read... [20:43:48]Read from MH i2c: D1 01 00 [20:43:48]MH_I2C_Read... [20:43:48]Read from MH i2c: D1 01 00 44 01 00 16 [20:43:48]Write to MH i2c: 01 00 00 45 01 46 [20:43:48]Write i2c OK [20:43:48]MH_I2C_Read... [20:43:49]OFD Sender: No OFD packet to send [20:43:49]*** Cut start [20:43:49]*** Partial cut [20:43:49]*** CUTSNS_PIN = 1 [20:43:49]*** CUTSNS_PIN = 0 [20:43:49]*** Brake cut motor [20:43:50]Read from MH i2c: 01 [20:43:50]MH_I2C_Read... [20:43:50]*** Stop cut motor [20:43:50]*** Cut end [20:43:50]Read from MH i2c: 01 07 00 [20:43:50]MH_I2C_Read... [20:43:50]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [20:43:50]process_action close_receipt done [20:43:50]requested_data is exist [20:43:50]produce_requested_data [20:43:50]requested_item fm.sn is exist - process it [20:43:50]wFMCommunicate request_size=4 [20:43:50]MH_SAM_APDU [20:43:50]CAPDU: 80 11 00 00 [20:43:50]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [20:43:50]Write i2c OK [20:43:50]MH_I2C_Read... [20:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:50]Read from MH i2c: E2 [20:43:50]MH_I2C_Read... [20:43:50]Read from MH i2c: E2 17 00 [20:43:50]MH_I2C_Read... [20:43:50]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [20:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:43:50]wFMCommunicate OK [20:43:50]requested_item fd.num is exist - process it [20:43:50]SAM_PROTO_GetFieldsCounters [20:43:50]wFMCommunicate request_size=4 [20:43:50]MH_SAM_APDU [20:43:50]CAPDU: 80 13 00 00 [20:43:50]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [20:43:50]Write i2c OK [20:43:50]MH_I2C_Read... [20:43:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:50]Read from MH i2c: E2 [20:43:50]MH_I2C_Read... [20:43:50]Read from MH i2c: E2 62 00 [20:43:50]MH_I2C_Read... [20:43:50]Read from MH i2c: E2 62 00 47 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 20 02 00 0E 04 04 00 C4 01 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 96 [20:43: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 20 02 00 0E 04 04 00 C4 01 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 [20:43:50]wFMCommunicate OK [20:43:50]SAM_PROTO_GetFieldsCounters done [20:43:50]requested_item shift.num is exist - process it [20:43:50]requested_item shift.opened is exist - process it [20:43:50]req_shift_opened [20:43:50]FM_GetShiftState [20:43:50]SAM_PROTO_GetShiftState [20:43:50]wFMCommunicate request_size=4 [20:43:50]MH_SAM_APDU [20:43:50]CAPDU: 80 13 01 00 [20:43:50]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [20:43:50]Write i2c OK [20:43:50]MH_I2C_Read... [20:43:50]Read from MH i2c: E2 [20:43:50]MH_I2C_Read... [20:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:50]Read from MH i2c: E2 0E 00 [20:43:50]MH_I2C_Read... [20:43:50]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7D [20:43:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:43:50]wFMCommunicate OK [20:43:50]SAM_PROTO_GetShiftState done [20:43:50]FM_GetShiftState done [20:43:50]req_shift_opened done [20:43:50]requested_item shift.open_date is exist - process it [20:43:50]req_shift_open_date [20:43:50]req_shift_open_date done [20:43:50]produce_requested_data done [20:43:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139493,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:43:50]process_action_free close_receipt [20:43:50]json_value_free [20:43:50]json_value_free done [20:43:50]process_json_proto returns [20:43:50]Send response to host [20:43:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139493,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:43:50]free response buf [20:43:50]execute_script done [20:43:50]execute_script returns [20:43:50]free content buf [20:43:50]Sock 7.Close socket [20:43:50]Sock 7.Thread stoped [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:49]accept exits with 9 [20:46:49]New connection [20:46:49]New thread 3067215204 created [20:46:49]Thread 3067071844 joined [20:46:49]Waiting for new connection... [20:46:49] Sock 9.Parse request [20:46:49]Sock 9.Check first char [20:46:49]Sock 9.First char is OK [20:46:49]request: POST /json_proto HTTP/1.0 [20:46:49]Method: POST [20:46:49]URL: /json_proto [20:46:49]Method is POST - this is cgi request [20:46:49]url: /json_proto [20:46:49]query_string will be loaded in cgi processing [20:46:49]execute_cgi json_proto POST (null) [20:46:49]execute_cgi path=json_proto method=POST [20:46:49]POST find Content-Length [20:46:49]Host: 172.17.45.67:8080 [20:46:49]Content-Length: 682 [20:46:49]Content-Type: application/json [20:46:49] [20:46:49]POST finish read [20:46:49]Found Content-Length = 682 [20:46:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "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" ] } } [20:46:49]execute_script... [20:46: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)593337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "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" ] } } [20:46:49]POST & json_proto [20:46:49]process_json_proto [20:46:49]json parsed OK: [20:46:49]protocol is kg_v1.0 [20:46:49]action value=close_receipt [20:46:49]process_action close_receipt [20:46:49]cmd_close_receipt [20:46:49]MH_GetDate [20:46:49]Write to MH i2c: F0 00 00 49 01 39 [20:46:49]Write i2c OK [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: F0 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: F0 09 00 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: F0 09 00 49 01 00 3A AF C3 66 5F 7F 2B 66 C3 [20:46:49]GetLastDocTimeStamp 1724100226 [20:46:49]current date 1724100410 [20:46:49]FM_GetShiftState [20:46:49]SAM_PROTO_GetShiftState [20:46:49]wFMCommunicate request_size=4 [20:46:49]MH_SAM_APDU [20:46:49]CAPDU: 80 13 01 00 [20:46:49]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [20:46:49]Write i2c OK [20:46:49]MH_I2C_Read... [20:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:49]Read from MH i2c: E2 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 0E 00 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7F [20:46:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:46:49]wFMCommunicate OK [20:46:49]SAM_PROTO_GetShiftState done [20:46:49]FM_GetShiftState done [20:46:49]opened in 1724027888 [20:46:49]opened+sec_in_day 1724114288 [20:46:49]quantity*price = 130040 [20:46:49]sum+1 = 130041 [20:46:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.10 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 329 19.08.2024 20:46 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139494 ФПД: 98174878767089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T204650&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139494&fm=98174878767089&tin=02508201610067®Number=0000000000092569&sum=130000 [20:46:51]StoreToDocumentArchive [20:46:51]shift 452 fd 139494 [20:46:51]save to /storage/0452/doc_00139494 [20:46:51]save last doc name /storage/0452/doc_00139494 to /storage/kkm_last_doc_name [20:46:51]save OK [20:46:51]Clear old archive folders... [20:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:51]tlvbuf is 00D1B040 [20:46:51]SAM_PROTO_ClearQueue [20:46:51]wFMCommunicate request_size=4 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 09 00 00 [20:46:51]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [20:46:51]RAPDU: 90 00 [20:46:51]wFMCommunicate OK [20:46:51]SAM_PROTO_ClearQueue done [20:46:51]KKMCreateOFDPacket [20:46:51]OFDProtocolAddRootSTLVToBuf [20:46:51]FM_MakeSignedData [20:46:51]FM_MakeSignedData [20:46:51]SAM_PROTO_SignData [20:46:51]wFMCommunicate request_size=4 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 0D 01 02 [20:46:51]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [20:46:51]RAPDU: 90 00 [20:46:51]wFMCommunicate OK [20:46:51]wFMCommunicate request_size=255 [20:46:51]MH_SAM_APDU [20:46: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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 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 49 01 00 00 F4 03 04 00 3A AF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 20 02 00 35 04 06 00 59 [20:46:51]Write to MH i2c: E2 02 01 59 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 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 49 01 00 00 F4 03 04 00 3A AF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 20 02 00 35 04 06 00 59 00 00 6A [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [20:46:51]RAPDU: 90 00 [20:46:51]wFMCommunicate OK [20:46:51]wFMCommunicate request_size=10 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 0D 02 02 05 4A 1E C6 57 F1 [20:46:51]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 4A 1E C6 57 F1 00 00 55 [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [20:46:51]RAPDU: 90 00 [20:46:51]wFMCommunicate OK [20:46:51]wFMCommunicate request_size=4 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 0D 03 02 [20:46:51]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 0B 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 0B 00 5B 01 00 FD B4 93 6B C3 9B B5 C9 90 00 63 [20:46:51]RAPDU: FD B4 93 6B C3 9B B5 C9 90 00 [20:46:51]wFMCommunicate OK [20:46:51]SAM_PROTO_SignData done [20:46:51]FM_MakeSignedData done [20:46:51]CreateOFDProtocolMessage [20:46:51]wFMCommunicate request_size=4 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 11 00 00 [20:46:51]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 17 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [20:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:46:51]wFMCommunicate OK [20:46:51]CreateOFDProtocolMessage done [20:46:51]OFDSenderStorePacket 139494 [20:46:51]StoreOFDPacket docnum=139494 [20:46:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C5 CD 07 01 80 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 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 49 01 00 00 F4 03 04 00 3A AF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 20 02 00 35 04 06 00 59 4A 1E C6 57 F1 FD B4 93 6B C3 9B B5 C9 [20:46:51]CheckFolder [20:46:51]dirname=/storage/ofd_packets [20:46:51]CheckFolder done [20:46:51]ProducePacketName [20:46:51]name=ofd_packets/00139494 [20:46:51]NVStorageSaveData ofd_packets/00139494 [20:46:51]File name is /storage/ofd_packets/00139494 [20:46:51]Write 301 bytes [20:46:51]NVStorageSaveData done [20:46:51]OFDSenderStorePacket done [20:46:51]KKMCreateOFDPacket done [20:46:51]NVStorageSaveData kkm_last_timestamp [20:46:51]File name is /storage/kkm_last_timestamp [20:46:51]Write 4 bytes [20:46:51]NVStorageSaveData done [20:46:51]ExternCall_PrintAddStr [20:46:51]wPrintStart [20:46:51]Write to MH i2c: 01 00 00 5D 01 5E [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: 01 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: 01 07 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [20:46:51]RasterBufferAndPrint [20:46:51]line Счет N : (1)593337 [20:46:51]line ИНН: 02508201610067 [20:46:51]line Контрольно-Кассовый Чек [20:46:51]line ПРОДАЖА [20:46:51]line ТРК (МРК, ГНК) : 52 [20:46:51]line Товар: 2710124130 [20:46:51]line Аи-92-К-5 [20:46:51]line 19.180 * 67.80 [20:46:51]line = 1300.40 [20:46:51]line НДС 12% НСП 1% [20:46:51]line > о реализуемом товаре [20:46:51]line ОКРУГЛЕНИЕ: -0.40 [20:46:51]line ИТОГО: 1300.00 [20:46:51]line Внесено: 1300.00 [20:46:51]line СДАЧА: 0.00 [20:46:51]line НСП 1% : 11.51 [20:46:51]line НДС 12% : 138.10 [20:46:51]line Наличными: 1300.00 [20:46:51]line Безнал.: 0.00 [20:46:51]line Место: АЗС № 136 "Партнер Нефть" [20:46:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:46:51]line СНО: Общий режим [20:46:51]line Чек 329 19.08.2024 20:46 [20:46:51]line Смена: 452 ФФД: 1.0 [20:46:51]line ЗНМ: 0300000067 [20:46:51]line РНМ: 0000000000092569 [20:46:51]line Версия ККМ: 001 [20:46:51]line ФМ: 0000000000871776 [20:46:51]line ФД: 139494 [20:46:51]line ФПД: 98174878767089 [20:46:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T204650&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139494&fm=98174878767089&tin=02508201610067®Number=0000000000092569&sum=130000 [20:46:51]OFD Sender: Processing packet 139494 [packets to send 137, broken 136] [20:46:51]ProducePacketName [20:46:51]name=ofd_packets/00139494 [20:46:51]OFD Sender: To server: pG, [20:46:51]CommunicateWithHost lk.salyk.kg:30040 [20:46:51]ConnectInit lk.salyk.kg [20:46:51]written 0, free lines is 4095 [20:46:52]Connected sock=10 [20:46: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 37 36 0F 01 00 00 C5 CD 07 01 80 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 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 49 01 00 00 F4 03 04 00 3A AF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 20 02 00 35 04 06 00 59 4A 1E C6 57 F1 FD B4 93 6B C3 9B B5 C9 [20:46: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 37 36 4F 00 00 00 55 61 47 00 66 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 20 02 00 F4 03 04 00 CF 55 C3 66 B6 04 01 00 00 2C A3 8B 05 93 39 94 16 [20:46:52]CommunicateWithHost err = 0 [20:46:52]CheckOFDResponse [20:46:52]1017 (14) - 77093643461234 [20:46:52]1041 (16) - 0000000000871776 [20:46:52]1040 (4) - 139494 [20:46:52]1012 (4) - 19.08.2024 14:25 [20:46:52]1206 (1) - 0 [20:46:52]OFD Sender: Remove packet 139494 [20:46:52]ProducePacketName [20:46:52]name=ofd_packets/00139494 [20:46:52]NVStorageDeleteData [20:46:52]Write to MH i2c: 01 00 00 88 01 89 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 07 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 C8 0C 64 [20:46:52]RasterBufferAndPrint [20:46:52]line [20:46:52]line [20:46:52]line [20:46:52]line [20:46:52]line [20:46:52]written 0, free lines is 3278 [20:46:52]MH_Cut [20:46:52]Write to MH i2c: D1 01 00 8F 01 01 62 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: D1 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: D1 01 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: D1 01 00 8F 01 00 61 [20:46:52]Write to MH i2c: 01 00 00 90 01 91 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]OFD Sender: No OFD packet to send [20:46:53]*** Cut start [20:46:53]*** Partial cut [20:46:53]*** CUTSNS_PIN = 1 [20:46:53]*** CUTSNS_PIN = 0 [20:46:53]*** Brake cut motor [20:46:53]Read from MH i2c: 01 [20:46:53]MH_I2C_Read... [20:46:53]*** Stop cut motor [20:46:53]*** Cut end [20:46:53]Read from MH i2c: 01 07 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [20:46:53]process_action close_receipt done [20:46:53]requested_data is exist [20:46:53]produce_requested_data [20:46:53]requested_item fm.sn is exist - process it [20:46:53]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 11 00 00 [20:46:53]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 17 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [20:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:46:53]wFMCommunicate OK [20:46:53]requested_item fd.num is exist - process it [20:46:53]SAM_PROTO_GetFieldsCounters [20:46:53]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 13 00 00 [20:46:53]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 62 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 62 00 92 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 20 02 00 0E 04 04 00 C4 01 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 E5 [20:46: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 20 02 00 0E 04 04 00 C4 01 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 [20:46:53]wFMCommunicate OK [20:46:53]SAM_PROTO_GetFieldsCounters done [20:46:53]requested_item shift.num is exist - process it [20:46:53]requested_item shift.opened is exist - process it [20:46:53]req_shift_opened [20:46:53]FM_GetShiftState [20:46:53]SAM_PROTO_GetShiftState [20:46:53]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 13 01 00 [20:46:53]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 0E 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 C8 [20:46:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:46:53]wFMCommunicate OK [20:46:53]SAM_PROTO_GetShiftState done [20:46:53]FM_GetShiftState done [20:46:53]req_shift_opened done [20:46:53]requested_item shift.open_date is exist - process it [20:46:53]req_shift_open_date [20:46:53]req_shift_open_date done [20:46:53]produce_requested_data done [20:46:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139494,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:46:53]process_action_free close_receipt [20:46:53]json_value_free [20:46:53]json_value_free done [20:46:53]process_json_proto returns [20:46:53]Send response to host [20:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139494,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:46:53]free response buf [20:46:53]execute_script done [20:46:53]execute_script returns [20:46:53]free content buf [20:46:53]Sock 9.Close socket [20:46:53]Sock 9.Thread stoped [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:52]accept exits with 7 [20:55:52]New connection [20:55:52]New thread 3067071844 created [20:55:52]Thread 3067215204 joined [20:55:52]Waiting for new connection... [20:55:52] Sock 7.Parse request [20:55:52]Sock 7.Check first char [20:55:52]Sock 7.First char is OK [20:55:52]request: POST /json_proto HTTP/1.0 [20:55:52]Method: POST [20:55:52]URL: /json_proto [20:55:52]Method is POST - this is cgi request [20:55:52]url: /json_proto [20:55:52]query_string will be loaded in cgi processing [20:55:52]execute_cgi json_proto POST (null) [20:55:52]execute_cgi path=json_proto method=POST [20:55:52]POST find Content-Length [20:55:52]Host: 172.17.45.67:8080 [20:55:52]Content-Length: 687 [20:55:52]Content-Type: application/json [20:55:52] [20:55:52]POST finish read [20:55:52]Found Content-Length = 687 [20:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:55:52]execute_script... [20:55: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)593338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:55:52]POST & json_proto [20:55:52]process_json_proto [20:55:52]json parsed OK: [20:55:52]protocol is kg_v1.0 [20:55:52]action value=close_receipt [20:55:52]process_action close_receipt [20:55:52]cmd_close_receipt [20:55:52]MH_GetDate [20:55:52]Write to MH i2c: F0 00 00 94 01 84 [20:55:52]Write i2c OK [20:55:52]MH_I2C_Read... [20:55:52]Read from MH i2c: F0 [20:55:52]MH_I2C_Read... [20:55:52]Read from MH i2c: F0 09 00 [20:55:52]MH_I2C_Read... [20:55:52]Read from MH i2c: F0 09 00 94 01 00 58 B1 C3 66 5F 7F 2B 66 2E [20:55:52]GetLastDocTimeStamp 1724100410 [20:55:52]current date 1724100952 [20:55:52]FM_GetShiftState [20:55:52]SAM_PROTO_GetShiftState [20:55:52]wFMCommunicate request_size=4 [20:55:52]MH_SAM_APDU [20:55:52]CAPDU: 80 13 01 00 [20:55:52]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [20:55:52]Write i2c OK [20:55:52]MH_I2C_Read... [20:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:52]Read from MH i2c: E2 [20:55:52]MH_I2C_Read... [20:55:52]Read from MH i2c: E2 0E 00 [20:55:52]MH_I2C_Read... [20:55:52]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CA [20:55:52]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:55:52]wFMCommunicate OK [20:55:52]SAM_PROTO_GetShiftState done [20:55:52]FM_GetShiftState done [20:55:52]opened in 1724027888 [20:55:52]opened+sec_in_day 1724114288 [20:55:52]quantity*price = 100050 [20:55:52]sum+1 = 100052 [20:55:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 330 19.08.2024 20:55 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139495 ФПД: 25588788229987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139495&fm=25588788229987&tin=02508201610067®Number=0000000000092569&sum=100000 [20:55:53]StoreToDocumentArchive [20:55:53]shift 452 fd 139495 [20:55:53]save to /storage/0452/doc_00139495 [20:55:53]save last doc name /storage/0452/doc_00139495 to /storage/kkm_last_doc_name [20:55:53]save OK [20:55:53]Clear old archive folders... [20:55:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:55:53]tlvbuf is 00CF99C0 [20:55:53]SAM_PROTO_ClearQueue [20:55:53]wFMCommunicate request_size=4 [20:55:53]MH_SAM_APDU [20:55:53]CAPDU: 80 09 00 00 [20:55:53]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [20:55:53]Write i2c OK [20:55:53]MH_I2C_Read... [20:55:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:53]Read from MH i2c: E2 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 03 00 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [20:55:53]RAPDU: 90 00 [20:55:53]wFMCommunicate OK [20:55:53]SAM_PROTO_ClearQueue done [20:55:53]KKMCreateOFDPacket [20:55:53]OFDProtocolAddRootSTLVToBuf [20:55:53]FM_MakeSignedData [20:55:53]FM_MakeSignedData [20:55:53]SAM_PROTO_SignData [20:55:53]wFMCommunicate request_size=4 [20:55:53]MH_SAM_APDU [20:55:53]CAPDU: 80 0D 01 02 [20:55:53]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [20:55:53]Write i2c OK [20:55:53]MH_I2C_Read... [20:55:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:53]Read from MH i2c: E2 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 03 00 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [20:55:53]RAPDU: 90 00 [20:55:53]wFMCommunicate OK [20:55:53]wFMCommunicate request_size=255 [20:55:53]MH_SAM_APDU [20:55:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 01 00 00 F4 03 04 00 58 B1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 20 02 00 35 04 06 00 [20:55:53]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 01 00 00 F4 03 04 00 58 B1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 20 02 00 35 04 06 00 00 00 DF [20:55:53]Write i2c OK [20:55:53]MH_I2C_Read... [20:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:54]Read from MH i2c: E2 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: E2 03 00 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [20:55:54]RAPDU: 90 00 [20:55:54]wFMCommunicate OK [20:55:54]wFMCommunicate request_size=11 [20:55:54]MH_SAM_APDU [20:55:54]CAPDU: 80 0D 02 02 06 17 45 DA A1 F7 63 [20:55:54]Write to MH i2c: E2 0E 00 A5 01 80 0D 02 02 06 00 17 45 DA A1 F7 63 00 00 5D [20:55:54]Write i2c OK [20:55:54]MH_I2C_Read... [20:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:54]Read from MH i2c: E2 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: E2 03 00 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [20:55:54]RAPDU: 90 00 [20:55:54]wFMCommunicate OK [20:55:54]wFMCommunicate request_size=4 [20:55:54]MH_SAM_APDU [20:55:54]CAPDU: 80 0D 03 02 [20:55:54]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [20:55:54]Write i2c OK [20:55:54]MH_I2C_Read... [20:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:54]Read from MH i2c: E2 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: E2 0B 00 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: E2 0B 00 A6 01 00 AC 9C E8 7A B5 1E 21 D7 90 00 98 [20:55:54]RAPDU: AC 9C E8 7A B5 1E 21 D7 90 00 [20:55:54]wFMCommunicate OK [20:55:54]SAM_PROTO_SignData done [20:55:54]FM_MakeSignedData done [20:55:54]CreateOFDProtocolMessage [20:55:54]wFMCommunicate request_size=4 [20:55:54]MH_SAM_APDU [20:55:54]CAPDU: 80 11 00 00 [20:55:54]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [20:55:54]Write i2c OK [20:55:54]MH_I2C_Read... [20:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:54]Read from MH i2c: E2 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: E2 17 00 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [20:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:55:54]wFMCommunicate OK [20:55:54]CreateOFDProtocolMessage done [20:55:54]OFDSenderStorePacket 139495 [20:55:54]StoreOFDPacket docnum=139495 [20:55:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 DA F7 08 01 96 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 01 00 00 F4 03 04 00 58 B1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 20 02 00 35 04 06 00 17 45 DA A1 F7 63 AC 9C E8 7A B5 1E 21 D7 [20:55:54]CheckFolder [20:55:54]dirname=/storage/ofd_packets [20:55:54]CheckFolder done [20:55:54]ProducePacketName [20:55:54]name=ofd_packets/00139495 [20:55:54]NVStorageSaveData ofd_packets/00139495 [20:55:54]File name is /storage/ofd_packets/00139495 [20:55:54]Write 302 bytes [20:55:54]NVStorageSaveData done [20:55:54]OFDSenderStorePacket done [20:55:54]KKMCreateOFDPacket done [20:55:54]NVStorageSaveData kkm_last_timestamp [20:55:54]File name is /storage/kkm_last_timestamp [20:55:54]Write 4 bytes [20:55:54]NVStorageSaveData done [20:55:54]ExternCall_PrintAddStr [20:55:54]wPrintStart [20:55:54]Write to MH i2c: 01 00 00 A8 01 A9 [20:55:54]Write i2c OK [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: 01 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: 01 07 00 [20:55:54]MH_I2C_Read... [20:55:54]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [20:55:54]RasterBufferAndPrint [20:55:54]line Счет N : (1)593338 [20:55:54]line ИНН: 02508201610067 [20:55:54]line Контрольно-Кассовый Чек [20:55:54]line ПРОДАЖА [20:55:54]line ТРК (МРК, ГНК) : 64 [20:55:54]line Товар: 2710194210 [20:55:54]line ДТ(л)-К-5 [20:55:54]line 13.130 * 76.20 [20:55:54]line = 1000.51 [20:55:54]line НДС 12% НСП 1% [20:55:54]line > о реализуемом товаре [20:55:54]line ОКРУГЛЕНИЕ: -0.51 [20:55:54]line ИТОГО: 1000.00 [20:55:54]line Внесено: 1000.00 [20:55:54]line СДАЧА: 0.00 [20:55:54]line НСП 1% : 8.85 [20:55:54]line НДС 12% : 106.25 [20:55:54]line Наличными: 1000.00 [20:55:54]line Безнал.: 0.00 [20:55:54]line Место: АЗС № 136 "Партнер Нефть" [20:55:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:55:54]line СНО: Общий режим [20:55:54]line Чек 330 19.08.2024 20:55 [20:55:54]line Смена: 452 ФФД: 1.0 [20:55:54]line ЗНМ: 0300000067 [20:55:54]line РНМ: 0000000000092569 [20:55:54]line Версия ККМ: 001 [20:55:54]line ФМ: 0000000000871776 [20:55:54]line ФД: 139495 [20:55:54]line ФПД: 25588788229987 [20:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139495&fm=25588788229987&tin=02508201610067®Number=0000000000092569&sum=100000 [20:55:54]OFD Sender: Processing packet 139495 [packets to send 137, broken 136] [20:55:54]ProducePacketName [20:55:54]name=ofd_packets/00139495 [20:55:54]OFD Sender: To server: pG, [20:55:54]CommunicateWithHost lk.salyk.kg:30040 [20:55:54]ConnectInit lk.salyk.kg [20:55:54]written 0, free lines is 4095 [20:55:54]Connected sock=10 [20:55: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 37 36 10 01 00 00 DA F7 08 01 96 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 01 00 00 F4 03 04 00 58 B1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 20 02 00 35 04 06 00 17 45 DA A1 F7 63 AC 9C E8 7A B5 1E 21 D7 [20:55:55]Write to MH i2c: 01 00 00 D3 01 D4 [20:55:55]Write i2c OK [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: 01 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: 01 07 00 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 D8 0C BF [20:55:55]RasterBufferAndPrint [20:55:55]line [20:55:55]line [20:55:55]line [20:55:55]line [20:55:55]line [20:55: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 37 36 4F 00 00 00 BA F9 47 00 F2 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 37 36 10 04 04 00 E7 20 02 00 F4 03 04 00 EE 57 C3 66 B6 04 01 00 00 4F 7E 96 E3 43 22 B7 3E [20:55:55]CommunicateWithHost err = 0 [20:55:55]CheckOFDResponse [20:55:55]1017 (14) - 77093643461234 [20:55:55]1041 (16) - 0000000000871776 [20:55:55]1040 (4) - 139495 [20:55:55]1012 (4) - 19.08.2024 14:34 [20:55:55]1206 (1) - 0 [20:55:55]OFD Sender: Remove packet 139495 [20:55:55]ProducePacketName [20:55:55]name=ofd_packets/00139495 [20:55:55]NVStorageDeleteData [20:55:55]written 0, free lines is 3295 [20:55:55]MH_Cut [20:55:55]Write to MH i2c: D1 01 00 DA 01 01 AD [20:55:55]Write i2c OK [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: D1 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: D1 01 00 [20:55:55]MH_I2C_Read... [20:55:55]Read from MH i2c: D1 01 00 DA 01 00 AC [20:55:55]Write to MH i2c: 01 00 00 DB 01 DC [20:55:55]Write i2c OK [20:55:55]MH_I2C_Read... [20:55:55]OFD Sender: No OFD packet to send [20:55:55]*** Cut start [20:55:55]*** Partial cut [20:55:55]*** CUTSNS_PIN = 1 [20:55:55]*** CUTSNS_PIN = 0 [20:55:56]*** Brake cut motor [20:55:56]Read from MH i2c: 01 [20:55:56]MH_I2C_Read... [20:55:56]*** Stop cut motor [20:55:56]*** Cut end [20:55:56]Read from MH i2c: 01 07 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [20:55:56]process_action close_receipt done [20:55:56]requested_data is exist [20:55:56]produce_requested_data [20:55:56]requested_item fm.sn is exist - process it [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 11 00 00 [20:55:56]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 17 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [20:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:55:56]wFMCommunicate OK [20:55:56]requested_item fd.num is exist - process it [20:55:56]SAM_PROTO_GetFieldsCounters [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 13 00 00 [20:55:56]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 62 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 62 00 DD 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 20 02 00 0E 04 04 00 C4 01 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 34 [20:55: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 20 02 00 0E 04 04 00 C4 01 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 [20:55:56]wFMCommunicate OK [20:55:56]SAM_PROTO_GetFieldsCounters done [20:55:56]requested_item shift.num is exist - process it [20:55:56]requested_item shift.opened is exist - process it [20:55:56]req_shift_opened [20:55:56]FM_GetShiftState [20:55:56]SAM_PROTO_GetShiftState [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 13 01 00 [20:55:56]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 0E 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 13 [20:55:56]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:55:56]wFMCommunicate OK [20:55:56]SAM_PROTO_GetShiftState done [20:55:56]FM_GetShiftState done [20:55:56]req_shift_opened done [20:55:56]requested_item shift.open_date is exist - process it [20:55:56]req_shift_open_date [20:55:56]req_shift_open_date done [20:55:56]produce_requested_data done [20:55:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139495,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:55:56]process_action_free close_receipt [20:55:56]json_value_free [20:55:56]json_value_free done [20:55:56]process_json_proto returns [20:55:56]Send response to host [20:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139495,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:55:56]free response buf [20:55:56]execute_script done [20:55:56]execute_script returns [20:55:56]free content buf [20:55:56]Sock 7.Close socket [20:55:56]Sock 7.Thread stoped [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:37]accept exits with 9 [20:59:37]New connection [20:59:37]New thread 3067215204 created [20:59:37]Thread 3067071844 joined [20:59:37]Waiting for new connection... [20:59:37] Sock 9.Parse request [20:59:37]Sock 9.Check first char [20:59:37]Sock 9.First char is OK [20:59:37]request: POST /json_proto HTTP/1.0 [20:59:37]Method: POST [20:59:37]URL: /json_proto [20:59:37]Method is POST - this is cgi request [20:59:37]url: /json_proto [20:59:37]query_string will be loaded in cgi processing [20:59:37]execute_cgi json_proto POST (null) [20:59:37]execute_cgi path=json_proto method=POST [20:59:37]POST find Content-Length [20:59:37]Host: 172.17.45.67:8080 [20:59:37]Content-Length: 677 [20:59:37]Content-Type: application/json [20:59:37] [20:59:37]POST finish read [20:59:37]Found Content-Length = 677 [20:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:59:37]execute_script... [20:59: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)593339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:59:37]POST & json_proto [20:59:37]process_json_proto [20:59:37]json parsed OK: [20:59:37]protocol is kg_v1.0 [20:59:37]action value=close_receipt [20:59:37]process_action close_receipt [20:59:37]cmd_close_receipt [20:59:37]MH_GetDate [20:59:37]Write to MH i2c: F0 00 00 DF 01 CF [20:59:37]Write i2c OK [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: F0 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: F0 09 00 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: F0 09 00 DF 01 00 3A B2 C3 66 5F 7F 2B 66 5C [20:59:37]GetLastDocTimeStamp 1724100952 [20:59:37]current date 1724101178 [20:59:37]FM_GetShiftState [20:59:37]SAM_PROTO_GetShiftState [20:59:37]wFMCommunicate request_size=4 [20:59:37]MH_SAM_APDU [20:59:37]CAPDU: 80 13 01 00 [20:59:37]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [20:59:37]Write i2c OK [20:59:37]MH_I2C_Read... [20:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:37]Read from MH i2c: E2 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: E2 0E 00 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 15 [20:59:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:59:37]wFMCommunicate OK [20:59:37]SAM_PROTO_GetShiftState done [20:59:37]FM_GetShiftState done [20:59:37]opened in 1724027888 [20:59:37]opened+sec_in_day 1724114288 [20:59:37]quantity*price = 50010 [20:59:37]sum+1 = 50012 [20:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 331 19.08.2024 20:59 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139496 ФПД: 100818433561421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205938&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139496&fm=100818433561421&tin=02508201610067®Number=0000000000092569&sum=50000 [20:59:38]StoreToDocumentArchive [20:59:38]shift 452 fd 139496 [20:59:38]save to /storage/0452/doc_00139496 [20:59:38]save last doc name /storage/0452/doc_00139496 to /storage/kkm_last_doc_name [20:59:38]save OK [20:59:38]Clear old archive folders... [20:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:38]tlvbuf is 00D21DD0 [20:59:38]SAM_PROTO_ClearQueue [20:59:38]wFMCommunicate request_size=4 [20:59:38]MH_SAM_APDU [20:59:38]CAPDU: 80 09 00 00 [20:59:38]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [20:59:38]Write i2c OK [20:59:38]MH_I2C_Read... [20:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:38]Read from MH i2c: E2 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: E2 03 00 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [20:59:38]RAPDU: 90 00 [20:59:38]wFMCommunicate OK [20:59:38]SAM_PROTO_ClearQueue done [20:59:38]KKMCreateOFDPacket [20:59:38]OFDProtocolAddRootSTLVToBuf [20:59:38]FM_MakeSignedData [20:59:38]FM_MakeSignedData [20:59:38]SAM_PROTO_SignData [20:59:38]wFMCommunicate request_size=4 [20:59:38]MH_SAM_APDU [20:59:38]CAPDU: 80 0D 01 02 [20:59:38]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [20:59:38]Write i2c OK [20:59:38]MH_I2C_Read... [20:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:39]Read from MH i2c: E2 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 03 00 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [20:59:39]RAPDU: 90 00 [20:59:39]wFMCommunicate OK [20:59:39]wFMCommunicate request_size=255 [20:59:39]MH_SAM_APDU [20:59:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 3A B2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 20 02 00 35 04 06 00 5B [20:59:39]Write to MH i2c: E2 02 01 EF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 3A B2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 20 02 00 35 04 06 00 5B 00 00 64 [20:59:39]Write i2c OK [20:59:39]MH_I2C_Read... [20:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:39]Read from MH i2c: E2 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 03 00 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [20:59:39]RAPDU: 90 00 [20:59:39]wFMCommunicate OK [20:59:39]wFMCommunicate request_size=10 [20:59:39]MH_SAM_APDU [20:59:39]CAPDU: 80 0D 02 02 05 B1 9E EB 53 4D [20:59:39]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 B1 9E EB 53 4D 00 00 4F [20:59:39]Write i2c OK [20:59:39]MH_I2C_Read... [20:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:39]Read from MH i2c: E2 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 03 00 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [20:59:39]RAPDU: 90 00 [20:59:39]wFMCommunicate OK [20:59:39]wFMCommunicate request_size=4 [20:59:39]MH_SAM_APDU [20:59:39]CAPDU: 80 0D 03 02 [20:59:39]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [20:59:39]Write i2c OK [20:59:39]MH_I2C_Read... [20:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:39]Read from MH i2c: E2 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 0B 00 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 0B 00 F1 01 00 47 6B D8 32 4B 90 07 D7 90 00 E3 [20:59:39]RAPDU: 47 6B D8 32 4B 90 07 D7 90 00 [20:59:39]wFMCommunicate OK [20:59:39]SAM_PROTO_SignData done [20:59:39]FM_MakeSignedData done [20:59:39]CreateOFDProtocolMessage [20:59:39]wFMCommunicate request_size=4 [20:59:39]MH_SAM_APDU [20:59:39]CAPDU: 80 11 00 00 [20:59:39]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [20:59:39]Write i2c OK [20:59:39]MH_I2C_Read... [20:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:39]Read from MH i2c: E2 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 17 00 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [20:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:59:39]wFMCommunicate OK [20:59:39]CreateOFDProtocolMessage done [20:59:39]OFDSenderStorePacket 139496 [20:59:39]StoreOFDPacket docnum=139496 [20:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AB 81 07 01 21 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 3A B2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 20 02 00 35 04 06 00 5B B1 9E EB 53 4D 47 6B D8 32 4B 90 07 D7 [20:59:39]CheckFolder [20:59:39]dirname=/storage/ofd_packets [20:59:39]CheckFolder done [20:59:39]ProducePacketName [20:59:39]name=ofd_packets/00139496 [20:59:39]NVStorageSaveData ofd_packets/00139496 [20:59:39]File name is /storage/ofd_packets/00139496 [20:59:39]Write 301 bytes [20:59:39]NVStorageSaveData done [20:59:39]OFDSenderStorePacket done [20:59:39]KKMCreateOFDPacket done [20:59:39]NVStorageSaveData kkm_last_timestamp [20:59:39]File name is /storage/kkm_last_timestamp [20:59:39]Write 4 bytes [20:59:39]NVStorageSaveData done [20:59:39]ExternCall_PrintAddStr [20:59:39]wPrintStart [20:59:39]Write to MH i2c: 01 00 00 F3 01 F4 [20:59:39]Write i2c OK [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: 01 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: 01 07 00 [20:59:39]MH_I2C_Read... [20:59:39]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [20:59:39]RasterBufferAndPrint [20:59:39]line Счет N : (1)593339 [20:59:39]line ИНН: 02508201610067 [20:59:39]line Контрольно-Кассовый Чек [20:59:39]line ПРОДАЖА [20:59:39]line ТРК (МРК, ГНК) : 51 [20:59:39]line Товар: 2710124500 [20:59:39]line Аи-95-К-5 [20:59:39]line 6.740 * 74.20 [20:59:39]line = 500.11 [20:59:39]line НДС 12% НСП 1% [20:59:39]line > о реализуемом товаре [20:59:39]line ОКРУГЛЕНИЕ: -0.11 [20:59:39]line ИТОГО: 500.00 [20:59:39]line Внесено: 500.00 [20:59:39]line СДАЧА: 0.00 [20:59:39]line НСП 1% : 4.43 [20:59:39]line НДС 12% : 53.11 [20:59:39]line Наличными: 500.00 [20:59:39]line Безнал.: 0.00 [20:59:39]line Место: АЗС № 136 "Партнер Нефть" [20:59:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:59:39]line СНО: Общий режим [20:59:39]line Чек 331 19.08.2024 20:59 [20:59:39]line Смена: 452 ФФД: 1.0 [20:59:39]line ЗНМ: 0300000067 [20:59:39]line РНМ: 0000000000092569 [20:59:39]line Версия ККМ: 001 [20:59:39]line ФМ: 0000000000871776 [20:59:39]line ФД: 139496 [20:59:39]line ФПД: 100818433561421 [20:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205938&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139496&fm=100818433561421&tin=02508201610067®Number=0000000000092569&sum=50000 [20:59:39]OFD Sender: Processing packet 139496 [packets to send 137, broken 136] [20:59:39]ProducePacketName [20:59:39]name=ofd_packets/00139496 [20:59:39]OFD Sender: To server: pG, [20:59:39]CommunicateWithHost lk.salyk.kg:30040 [20:59:39]ConnectInit lk.salyk.kg [20:59:39]written 0, free lines is 4095 [20:59:39]Connected sock=10 [20:59: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 37 36 0F 01 00 00 AB 81 07 01 21 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 3A B2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 20 02 00 35 04 06 00 5B B1 9E EB 53 4D 47 6B D8 32 4B 90 07 D7 [20:59: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 37 36 4F 00 00 00 A9 2A 47 00 87 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 37 36 10 04 04 00 E8 20 02 00 F4 03 04 00 CF 58 C3 66 B6 04 01 00 00 84 6E 3C 51 3B F8 8D 31 [20:59:40]CommunicateWithHost err = 0 [20:59:40]CheckOFDResponse [20:59:40]1017 (14) - 77093643461234 [20:59:40]1041 (16) - 0000000000871776 [20:59:40]1040 (4) - 139496 [20:59:40]1012 (4) - 19.08.2024 14:38 [20:59:40]1206 (1) - 0 [20:59:40]OFD Sender: Remove packet 139496 [20:59:40]ProducePacketName [20:59:40]name=ofd_packets/00139496 [20:59:40]NVStorageDeleteData [20:59:40]Write to MH i2c: 01 00 00 1E 02 20 [20:59:40]Write i2c OK [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: 01 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: 01 07 00 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 D4 0C 07 [20:59:40]RasterBufferAndPrint [20:59:40]line [20:59:40]line [20:59:40]line [20:59:40]line [20:59:40]line [20:59:40]written 0, free lines is 3292 [20:59:40]MH_Cut [20:59:40]Write to MH i2c: D1 01 00 25 02 01 F9 [20:59:40]Write i2c OK [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: D1 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: D1 01 00 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: D1 01 00 25 02 00 F8 [20:59:40]Write to MH i2c: 01 00 00 26 02 28 [20:59:40]Write i2c OK [20:59:40]MH_I2C_Read... [20:59:40]OFD Sender: No OFD packet to send [20:59:40]*** Cut start [20:59:40]*** Partial cut [20:59:40]*** CUTSNS_PIN = 1 [20:59:40]*** CUTSNS_PIN = 0 [20:59:41]*** Brake cut motor [20:59:41]Read from MH i2c: 01 [20:59:41]MH_I2C_Read... [20:59:41]*** Stop cut motor [20:59:41]*** Cut end [20:59:41]Read from MH i2c: 01 07 00 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [20:59:41]process_action close_receipt done [20:59:41]requested_data is exist [20:59:41]produce_requested_data [20:59:41]requested_item fm.sn is exist - process it [20:59:41]wFMCommunicate request_size=4 [20:59:41]MH_SAM_APDU [20:59:41]CAPDU: 80 11 00 00 [20:59:41]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [20:59:41]Write i2c OK [20:59:41]MH_I2C_Read... [20:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:41]Read from MH i2c: E2 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: E2 17 00 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [20:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:59:41]wFMCommunicate OK [20:59:41]requested_item fd.num is exist - process it [20:59:41]SAM_PROTO_GetFieldsCounters [20:59:41]wFMCommunicate request_size=4 [20:59:41]MH_SAM_APDU [20:59:41]CAPDU: 80 13 00 00 [20:59:41]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [20:59:41]Write i2c OK [20:59:41]MH_I2C_Read... [20:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:41]Read from MH i2c: E2 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: E2 62 00 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: E2 62 00 28 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 20 02 00 0E 04 04 00 C4 01 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 84 [20:59: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 20 02 00 0E 04 04 00 C4 01 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 [20:59:41]wFMCommunicate OK [20:59:41]SAM_PROTO_GetFieldsCounters done [20:59:41]requested_item shift.num is exist - process it [20:59:41]requested_item shift.opened is exist - process it [20:59:41]req_shift_opened [20:59:41]FM_GetShiftState [20:59:41]SAM_PROTO_GetShiftState [20:59:41]wFMCommunicate request_size=4 [20:59:41]MH_SAM_APDU [20:59:41]CAPDU: 80 13 01 00 [20:59:41]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [20:59:41]Write i2c OK [20:59:41]MH_I2C_Read... [20:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:41]Read from MH i2c: E2 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: E2 0E 00 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 5F [20:59:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [20:59:41]wFMCommunicate OK [20:59:41]SAM_PROTO_GetShiftState done [20:59:41]FM_GetShiftState done [20:59:41]req_shift_opened done [20:59:41]requested_item shift.open_date is exist - process it [20:59:41]req_shift_open_date [20:59:41]req_shift_open_date done [20:59:41]produce_requested_data done [20:59:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139496,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [20:59:41]process_action_free close_receipt [20:59:41]json_value_free [20:59:41]json_value_free done [20:59:41]process_json_proto returns [20:59:41]Send response to host [20:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139496,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [20:59:41]free response buf [20:59:41]execute_script done [20:59:41]execute_script returns [20:59:41]free content buf [20:59:41]Sock 9.Close socket [20:59:41]Sock 9.Thread stoped [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]accept exits with 7 [21:00:05]New connection [21:00:05]New thread 3067071844 created [21:00:05]Thread 3067215204 joined [21:00:05]Waiting for new connection... [21:00:05] Sock 7.Parse request [21:00:05]Sock 7.Check first char [21:00:05]Sock 7.First char is OK [21:00:05]request: POST /json_proto HTTP/1.0 [21:00:05]Method: POST [21:00:05]URL: /json_proto [21:00:05]Method is POST - this is cgi request [21:00:05]url: /json_proto [21:00:05]query_string will be loaded in cgi processing [21:00:05]execute_cgi json_proto POST (null) [21:00:05]execute_cgi path=json_proto method=POST [21:00:05]POST find Content-Length [21:00:05]Host: 172.17.45.67:8080 [21:00:05]Content-Length: 677 [21:00:05]Content-Type: application/json [21:00:05] [21:00:05]POST finish read [21:00:05]Found Content-Length = 677 [21:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:00:05]execute_script... [21:00: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)593340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:00:05]POST & json_proto [21:00:05]process_json_proto [21:00:05]json parsed OK: [21:00:05]protocol is kg_v1.0 [21:00:05]action value=close_receipt [21:00:05]process_action close_receipt [21:00:05]cmd_close_receipt [21:00:05]MH_GetDate [21:00:05]Write to MH i2c: F0 00 00 2A 02 1B [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: F0 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: F0 09 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: F0 09 00 2A 02 00 55 B2 C3 66 5F 7F 2B 66 C3 [21:00:05]GetLastDocTimeStamp 1724101178 [21:00:05]current date 1724101205 [21:00:05]FM_GetShiftState [21:00:05]SAM_PROTO_GetShiftState [21:00:05]wFMCommunicate request_size=4 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 13 01 00 [21:00:05]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 0E 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 61 [21:00:05]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:00:05]wFMCommunicate OK [21:00:05]SAM_PROTO_GetShiftState done [21:00:05]FM_GetShiftState done [21:00:05]opened in 1724027888 [21:00:05]opened+sec_in_day 1724114288 [21:00:05]quantity*price = 50036 [21:00:05]sum+1 = 50037 [21:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 332 19.08.2024 21:00 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139497 ФПД: 269957616985466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T210005&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139497&fm=269957616985466&tin=02508201610067®Number=0000000000092569&sum=50000 [21:00:06]StoreToDocumentArchive [21:00:06]shift 452 fd 139497 [21:00:06]save to /storage/0452/doc_00139497 [21:00:06]save last doc name /storage/0452/doc_00139497 to /storage/kkm_last_doc_name [21:00:06]save OK [21:00:06]Clear old archive folders... [21:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:06]tlvbuf is 00D3A580 [21:00:06]SAM_PROTO_ClearQueue [21:00:06]wFMCommunicate request_size=4 [21:00:06]MH_SAM_APDU [21:00:06]CAPDU: 80 09 00 00 [21:00:06]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:06]Read from MH i2c: E2 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 03 00 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [21:00:06]RAPDU: 90 00 [21:00:06]wFMCommunicate OK [21:00:06]SAM_PROTO_ClearQueue done [21:00:06]KKMCreateOFDPacket [21:00:06]OFDProtocolAddRootSTLVToBuf [21:00:06]FM_MakeSignedData [21:00:06]FM_MakeSignedData [21:00:06]SAM_PROTO_SignData [21:00:06]wFMCommunicate request_size=4 [21:00:06]MH_SAM_APDU [21:00:06]CAPDU: 80 0D 01 02 [21:00:06]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:06]Read from MH i2c: E2 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 03 00 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [21:00:06]RAPDU: 90 00 [21:00:06]wFMCommunicate OK [21:00:06]wFMCommunicate request_size=255 [21:00:06]MH_SAM_APDU [21:00: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 4C 01 00 00 F4 03 04 00 55 B2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 20 02 00 35 04 06 00 F5 [21:00:06]Write to MH i2c: E2 02 01 3A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 4C 01 00 00 F4 03 04 00 55 B2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 20 02 00 35 04 06 00 F5 00 00 7F [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:06]Read from MH i2c: E2 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 03 00 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [21:00:06]RAPDU: 90 00 [21:00:06]wFMCommunicate OK [21:00:06]wFMCommunicate request_size=10 [21:00:06]MH_SAM_APDU [21:00:06]CAPDU: 80 0D 02 02 05 86 67 DD 65 7A [21:00:06]Write to MH i2c: E2 0D 00 3B 02 80 0D 02 02 05 00 86 67 DD 65 7A 00 00 6A [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:06]Read from MH i2c: E2 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 03 00 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [21:00:06]RAPDU: 90 00 [21:00:06]wFMCommunicate OK [21:00:06]wFMCommunicate request_size=4 [21:00:06]MH_SAM_APDU [21:00:06]CAPDU: 80 0D 03 02 [21:00:06]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:06]Read from MH i2c: E2 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 0B 00 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 0B 00 3C 02 00 4D 68 37 92 01 D4 9F 93 90 00 3F [21:00:06]RAPDU: 4D 68 37 92 01 D4 9F 93 90 00 [21:00:06]wFMCommunicate OK [21:00:06]SAM_PROTO_SignData done [21:00:06]FM_MakeSignedData done [21:00:06]CreateOFDProtocolMessage [21:00:06]wFMCommunicate request_size=4 [21:00:06]MH_SAM_APDU [21:00:06]CAPDU: 80 11 00 00 [21:00:06]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:06]Read from MH i2c: E2 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 17 00 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [21:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:00:06]wFMCommunicate OK [21:00:06]CreateOFDProtocolMessage done [21:00:06]OFDSenderStorePacket 139497 [21:00:06]StoreOFDPacket docnum=139497 [21:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 78 52 07 01 48 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 4C 01 00 00 F4 03 04 00 55 B2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 20 02 00 35 04 06 00 F5 86 67 DD 65 7A 4D 68 37 92 01 D4 9F 93 [21:00:06]CheckFolder [21:00:06]dirname=/storage/ofd_packets [21:00:06]CheckFolder done [21:00:06]ProducePacketName [21:00:06]name=ofd_packets/00139497 [21:00:06]NVStorageSaveData ofd_packets/00139497 [21:00:06]File name is /storage/ofd_packets/00139497 [21:00:06]Write 301 bytes [21:00:06]NVStorageSaveData done [21:00:06]OFDSenderStorePacket done [21:00:06]KKMCreateOFDPacket done [21:00:06]NVStorageSaveData kkm_last_timestamp [21:00:06]File name is /storage/kkm_last_timestamp [21:00:06]Write 4 bytes [21:00:06]NVStorageSaveData done [21:00:06]ExternCall_PrintAddStr [21:00:06]wPrintStart [21:00:06]Write to MH i2c: 01 00 00 3E 02 40 [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: 01 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: 01 07 00 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [21:00:06]RasterBufferAndPrint [21:00:06]line Счет N : (1)593340 [21:00:06]line ИНН: 02508201610067 [21:00:06]line Контрольно-Кассовый Чек [21:00:06]line ПРОДАЖА [21:00:06]line ТРК (МРК, ГНК) : 32 [21:00:06]line Товар: 2710124130 [21:00:06]line Аи-92-К-5 [21:00:06]line 7.380 * 67.80 [21:00:06]line = 500.36 [21:00:06]line НДС 12% НСП 1% [21:00:06]line > о реализуемом товаре [21:00:06]line ОКРУГЛЕНИЕ: -0.36 [21:00:06]line ИТОГО: 500.00 [21:00:06]line Внесено: 500.00 [21:00:06]line СДАЧА: 0.00 [21:00:06]line НСП 1% : 4.43 [21:00:06]line НДС 12% : 53.14 [21:00:06]line Наличными: 500.00 [21:00:06]line Безнал.: 0.00 [21:00:06]line Место: АЗС № 136 "Партнер Нефть" [21:00:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:00:06]line СНО: Общий режим [21:00:06]line Чек 332 19.08.2024 21:00 [21:00:06]line Смена: 452 ФФД: 1.0 [21:00:06]line ЗНМ: 0300000067 [21:00:06]line РНМ: 0000000000092569 [21:00:06]line Версия ККМ: 001 [21:00:06]line ФМ: 0000000000871776 [21:00:06]line ФД: 139497 [21:00:06]line ФПД: 269957616985466 [21:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T210005&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139497&fm=269957616985466&tin=02508201610067®Number=0000000000092569&sum=50000 [21:00:07]OFD Sender: Processing packet 139497 [packets to send 137, broken 136] [21:00:07]ProducePacketName [21:00:07]name=ofd_packets/00139497 [21:00:07]OFD Sender: To server: pG, [21:00:07]CommunicateWithHost lk.salyk.kg:30040 [21:00:07]ConnectInit lk.salyk.kg [21:00:07]written 0, free lines is 4095 [21:00:07]Connected sock=9 [21:00: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 37 36 0F 01 00 00 78 52 07 01 48 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 4C 01 00 00 F4 03 04 00 55 B2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 20 02 00 35 04 06 00 F5 86 67 DD 65 7A 4D 68 37 92 01 D4 9F 93 [21:00: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 37 36 4F 00 00 00 1A 09 47 00 AE 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 37 36 10 04 04 00 E9 20 02 00 F4 03 04 00 EA 58 C3 66 B6 04 01 00 00 D7 67 83 26 AB 96 24 37 [21:00:07]CommunicateWithHost err = 0 [21:00:07]CheckOFDResponse [21:00:07]1017 (14) - 77093643461234 [21:00:07]1041 (16) - 0000000000871776 [21:00:07]1040 (4) - 139497 [21:00:07]1012 (4) - 19.08.2024 14:38 [21:00:07]1206 (1) - 0 [21:00:07]OFD Sender: Remove packet 139497 [21:00:07]ProducePacketName [21:00:07]name=ofd_packets/00139497 [21:00:07]NVStorageDeleteData [21:00:07]Write to MH i2c: 01 00 00 69 02 6B [21:00:07]Write i2c OK [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: 01 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: 01 07 00 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 CD 0C 4B [21:00:07]RasterBufferAndPrint [21:00:07]line [21:00:07]line [21:00:07]line [21:00:07]line [21:00:07]line [21:00:07]written 0, free lines is 3285 [21:00:07]MH_Cut [21:00:07]Write to MH i2c: D1 01 00 70 02 01 44 [21:00:07]Write i2c OK [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: D1 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: D1 01 00 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: D1 01 00 70 02 00 43 [21:00:07]Write to MH i2c: 01 00 00 71 02 73 [21:00:07]Write i2c OK [21:00:07]MH_I2C_Read... [21:00:08]OFD Sender: No OFD packet to send [21:00:08]*** Cut start [21:00:08]*** Partial cut [21:00:08]*** CUTSNS_PIN = 1 [21:00:08]*** CUTSNS_PIN = 0 [21:00:08]*** Brake cut motor [21:00:09]Read from MH i2c: 01 [21:00:09]MH_I2C_Read... [21:00:09]*** Stop cut motor [21:00:09]*** Cut end [21:00:09]Read from MH i2c: 01 07 00 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [21:00:09]process_action close_receipt done [21:00:09]requested_data is exist [21:00:09]produce_requested_data [21:00:09]requested_item fm.sn is exist - process it [21:00:09]wFMCommunicate request_size=4 [21:00:09]MH_SAM_APDU [21:00:09]CAPDU: 80 11 00 00 [21:00:09]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [21:00:09]Write i2c OK [21:00:09]MH_I2C_Read... [21:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:09]Read from MH i2c: E2 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: E2 17 00 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [21:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:00:09]wFMCommunicate OK [21:00:09]requested_item fd.num is exist - process it [21:00:09]SAM_PROTO_GetFieldsCounters [21:00:09]wFMCommunicate request_size=4 [21:00:09]MH_SAM_APDU [21:00:09]CAPDU: 80 13 00 00 [21:00:09]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [21:00:09]Write i2c OK [21:00:09]MH_I2C_Read... [21:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:09]Read from MH i2c: E2 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: E2 62 00 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: E2 62 00 73 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 20 02 00 0E 04 04 00 C4 01 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 D3 [21:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 20 02 00 0E 04 04 00 C4 01 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 [21:00:09]wFMCommunicate OK [21:00:09]SAM_PROTO_GetFieldsCounters done [21:00:09]requested_item shift.num is exist - process it [21:00:09]requested_item shift.opened is exist - process it [21:00:09]req_shift_opened [21:00:09]FM_GetShiftState [21:00:09]SAM_PROTO_GetShiftState [21:00:09]wFMCommunicate request_size=4 [21:00:09]MH_SAM_APDU [21:00:09]CAPDU: 80 13 01 00 [21:00:09]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [21:00:09]Write i2c OK [21:00:09]MH_I2C_Read... [21:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:09]Read from MH i2c: E2 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: E2 0E 00 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AA [21:00:09]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:00:09]wFMCommunicate OK [21:00:09]SAM_PROTO_GetShiftState done [21:00:09]FM_GetShiftState done [21:00:09]req_shift_opened done [21:00:09]requested_item shift.open_date is exist - process it [21:00:09]req_shift_open_date [21:00:09]req_shift_open_date done [21:00:09]produce_requested_data done [21:00:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139497,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:00:09]process_action_free close_receipt [21:00:09]json_value_free [21:00:09]json_value_free done [21:00:09]process_json_proto returns [21:00:09]Send response to host [21:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139497,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:00:09]free response buf [21:00:09]execute_script done [21:00:09]execute_script returns [21:00:09]free content buf [21:00:09]Sock 7.Close socket [21:00:09]Sock 7.Thread stoped [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:31]accept exits with 10 [21:09:31]New connection [21:09:31]New thread 3067215204 created [21:09:31]Thread 3067071844 joined [21:09:31]Waiting for new connection... [21:09:31] Sock 10.Parse request [21:09:31]Sock 10.Check first char [21:09:31]Sock 10.First char is OK [21:09:31]request: POST /json_proto HTTP/1.0 [21:09:31]Method: POST [21:09:31]URL: /json_proto [21:09:31]Method is POST - this is cgi request [21:09:31]url: /json_proto [21:09:31]query_string will be loaded in cgi processing [21:09:31]execute_cgi json_proto POST (null) [21:09:31]execute_cgi path=json_proto method=POST [21:09:31]POST find Content-Length [21:09:31]Host: 172.17.45.67:8080 [21:09:31]Content-Length: 687 [21:09:31]Content-Type: application/json [21:09:31] [21:09:31]POST finish read [21:09:31]Found Content-Length = 687 [21:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [21:09:31]execute_script... [21:09: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)593341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [21:09:31]POST & json_proto [21:09:31]process_json_proto [21:09:31]json parsed OK: [21:09:31]protocol is kg_v1.0 [21:09:31]action value=close_receipt [21:09:31]process_action close_receipt [21:09:31]cmd_close_receipt [21:09:31]MH_GetDate [21:09:31]Write to MH i2c: F0 00 00 75 02 66 [21:09:31]Write i2c OK [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: F0 [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: F0 09 00 [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: F0 09 00 75 02 00 8B B4 C3 66 5F 7F 2B 66 46 [21:09:31]GetLastDocTimeStamp 1724101205 [21:09:31]current date 1724101771 [21:09:31]FM_GetShiftState [21:09:31]SAM_PROTO_GetShiftState [21:09:31]wFMCommunicate request_size=4 [21:09:31]MH_SAM_APDU [21:09:31]CAPDU: 80 13 01 00 [21:09:31]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [21:09:31]Write i2c OK [21:09:31]MH_I2C_Read... [21:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:31]Read from MH i2c: E2 [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: E2 0E 00 [21:09:31]MH_I2C_Read... [21:09:31]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AC [21:09:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:09:31]wFMCommunicate OK [21:09:31]SAM_PROTO_GetShiftState done [21:09:31]FM_GetShiftState done [21:09:31]opened in 1724027888 [21:09:31]opened+sec_in_day 1724114288 [21:09:31]quantity*price = 100050 [21:09:31]sum+1 = 100052 [21:09:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 333 19.08.2024 21:09 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139498 ФПД: 89311580670017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T210931&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139498&fm=89311580670017&tin=02508201610067®Number=0000000000092569&sum=100000 [21:09:32]StoreToDocumentArchive [21:09:32]shift 452 fd 139498 [21:09:32]save to /storage/0452/doc_00139498 [21:09:32]save last doc name /storage/0452/doc_00139498 to /storage/kkm_last_doc_name [21:09:32]save OK [21:09:32]Clear old archive folders... [21:09:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:09:32]tlvbuf is 00D30BD0 [21:09:32]SAM_PROTO_ClearQueue [21:09:32]wFMCommunicate request_size=4 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 09 00 00 [21:09:32]Write to MH i2c: E2 08 00 83 02 80 09 00 00 00 00 00 00 F7 [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [21:09:32]RAPDU: 90 00 [21:09:32]wFMCommunicate OK [21:09:32]SAM_PROTO_ClearQueue done [21:09:32]KKMCreateOFDPacket [21:09:32]OFDProtocolAddRootSTLVToBuf [21:09:32]FM_MakeSignedData [21:09:32]FM_MakeSignedData [21:09:32]SAM_PROTO_SignData [21:09:32]wFMCommunicate request_size=4 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 0D 01 02 [21:09:32]Write to MH i2c: E2 08 00 84 02 80 0D 01 02 00 00 00 00 FF [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [21:09:32]RAPDU: 90 00 [21:09:32]wFMCommunicate OK [21:09:32]wFMCommunicate request_size=255 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 01 00 00 F4 03 04 00 8B B4 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 20 02 00 35 04 06 00 [21:09:32]Write to MH i2c: E2 02 01 85 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 01 00 00 F4 03 04 00 8B B4 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 20 02 00 35 04 06 00 00 00 FD [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [21:09:32]RAPDU: 90 00 [21:09:32]wFMCommunicate OK [21:09:32]wFMCommunicate request_size=11 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 0D 02 02 06 51 3A 79 0A 48 41 [21:09:32]Write to MH i2c: E2 0E 00 86 02 80 0D 02 02 06 00 51 3A 79 0A 48 41 00 00 A5 [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [21:09:32]RAPDU: 90 00 [21:09:32]wFMCommunicate OK [21:09:32]wFMCommunicate request_size=4 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 0D 03 02 [21:09:32]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 0B 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 0B 00 87 02 00 63 DD 86 97 F9 6B 7B A0 90 00 E1 [21:09:32]RAPDU: 63 DD 86 97 F9 6B 7B A0 90 00 [21:09:32]wFMCommunicate OK [21:09:32]SAM_PROTO_SignData done [21:09:32]FM_MakeSignedData done [21:09:32]CreateOFDProtocolMessage [21:09:32]wFMCommunicate request_size=4 [21:09:32]MH_SAM_APDU [21:09:32]CAPDU: 80 11 00 00 [21:09:32]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:32]Read from MH i2c: E2 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 17 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [21:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:09:32]wFMCommunicate OK [21:09:32]CreateOFDProtocolMessage done [21:09:32]OFDSenderStorePacket 139498 [21:09:32]StoreOFDPacket docnum=139498 [21:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 49 37 08 01 42 83 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 01 00 00 F4 03 04 00 8B B4 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 20 02 00 35 04 06 00 51 3A 79 0A 48 41 63 DD 86 97 F9 6B 7B A0 [21:09:32]CheckFolder [21:09:32]dirname=/storage/ofd_packets [21:09:32]CheckFolder done [21:09:32]ProducePacketName [21:09:32]name=ofd_packets/00139498 [21:09:32]NVStorageSaveData ofd_packets/00139498 [21:09:32]File name is /storage/ofd_packets/00139498 [21:09:32]Write 302 bytes [21:09:32]NVStorageSaveData done [21:09:32]OFDSenderStorePacket done [21:09:32]KKMCreateOFDPacket done [21:09:32]NVStorageSaveData kkm_last_timestamp [21:09:32]File name is /storage/kkm_last_timestamp [21:09:32]Write 4 bytes [21:09:32]NVStorageSaveData done [21:09:32]ExternCall_PrintAddStr [21:09:32]wPrintStart [21:09:32]Write to MH i2c: 01 00 00 89 02 8B [21:09:32]Write i2c OK [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: 01 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: 01 07 00 [21:09:32]MH_I2C_Read... [21:09:32]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [21:09:32]RasterBufferAndPrint [21:09:32]line Счет N : (1)593341 [21:09:32]line ИНН: 02508201610067 [21:09:32]line Контрольно-Кассовый Чек [21:09:32]line ПРОДАЖА [21:09:32]line ТРК (МРК, ГНК) : 44 [21:09:32]line Товар: 2710194210 [21:09:32]line ДТ(л)-К-5 [21:09:32]line 13.130 * 76.20 [21:09:32]line = 1000.51 [21:09:32]line НДС 12% НСП 1% [21:09:32]line > о реализуемом товаре [21:09:32]line ОКРУГЛЕНИЕ: -0.51 [21:09:32]line ИТОГО: 1000.00 [21:09:32]line Внесено: 1000.00 [21:09:32]line СДАЧА: 0.00 [21:09:32]line НСП 1% : 8.85 [21:09:32]line НДС 12% : 106.25 [21:09:32]line Наличными: 1000.00 [21:09:32]line Безнал.: 0.00 [21:09:32]line Место: АЗС № 136 "Партнер Нефть" [21:09:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:09:32]line СНО: Общий режим [21:09:32]line Чек 333 19.08.2024 21:09 [21:09:32]line Смена: 452 ФФД: 1.0 [21:09:32]line ЗНМ: 0300000067 [21:09:32]line РНМ: 0000000000092569 [21:09:32]line Версия ККМ: 001 [21:09:32]line ФМ: 0000000000871776 [21:09:32]line ФД: 139498 [21:09:32]line ФПД: 89311580670017 [21:09:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T210931&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139498&fm=89311580670017&tin=02508201610067®Number=0000000000092569&sum=100000 [21:09:33]OFD Sender: Processing packet 139498 [packets to send 137, broken 136] [21:09:33]ProducePacketName [21:09:33]name=ofd_packets/00139498 [21:09:33]OFD Sender: To server: pG, [21:09:33]CommunicateWithHost lk.salyk.kg:30040 [21:09:33]ConnectInit lk.salyk.kg [21:09:33]written 0, free lines is 4095 [21:09:33]Connected sock=9 [21:09: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 37 36 10 01 00 00 49 37 08 01 42 83 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 01 00 00 F4 03 04 00 8B B4 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 20 02 00 35 04 06 00 51 3A 79 0A 48 41 63 DD 86 97 F9 6B 7B A0 [21:09:33]Write to MH i2c: 01 00 00 B4 02 B6 [21:09:33]Write i2c OK [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: 01 [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: 01 07 00 [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 D1 0C 9A [21:09:33]RasterBufferAndPrint [21:09:33]line [21:09:33]line [21:09:33]line [21:09:33]line [21:09:33]line [21:09:33]written 0, free lines is 3287 [21:09:33]MH_Cut [21:09:33]Write to MH i2c: D1 01 00 BB 02 01 8F [21:09:33]Write i2c OK [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: D1 [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: D1 01 00 [21:09:33]MH_I2C_Read... [21:09:33]Read from MH i2c: D1 01 00 BB 02 00 8E [21:09:33]Write to MH i2c: 01 00 00 BC 02 BE [21:09: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 37 36 4F 00 00 00 1E 5D 47 00 9C 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 20 02 00 F4 03 04 00 20 5B C3 66 B6 04 01 00 00 6D DC 54 EE D2 00 B9 D4 [21:09:33]CommunicateWithHost err = 0 [21:09:33]CheckOFDResponse [21:09:33]1017 (14) - 77093643461234 [21:09:33]1041 (16) - 0000000000871776 [21:09:33]1040 (4) - 139498 [21:09:33]1012 (4) - 19.08.2024 14:48 [21:09:33]1206 (1) - 0 [21:09:33]OFD Sender: Remove packet 139498 [21:09:33]ProducePacketName [21:09:33]name=ofd_packets/00139498 [21:09:33]NVStorageDeleteData [21:09:33]Write i2c OK [21:09:33]MH_I2C_Read... [21:09:34]OFD Sender: No OFD packet to send [21:09:34]*** Cut start [21:09:34]*** Partial cut [21:09:34]*** CUTSNS_PIN = 1 [21:09:34]*** CUTSNS_PIN = 0 [21:09:34]*** Brake cut motor [21:09:34]Read from MH i2c: 01 [21:09:34]MH_I2C_Read... [21:09:34]*** Stop cut motor [21:09:34]*** Cut end [21:09:34]Read from MH i2c: 01 07 00 [21:09:34]MH_I2C_Read... [21:09:34]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [21:09:34]process_action close_receipt done [21:09:34]requested_data is exist [21:09:34]produce_requested_data [21:09:34]requested_item fm.sn is exist - process it [21:09:34]wFMCommunicate request_size=4 [21:09:34]MH_SAM_APDU [21:09:34]CAPDU: 80 11 00 00 [21:09:34]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [21:09:34]Write i2c OK [21:09:34]MH_I2C_Read... [21:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:35]Read from MH i2c: E2 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: E2 17 00 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [21:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:09:35]wFMCommunicate OK [21:09:35]requested_item fd.num is exist - process it [21:09:35]SAM_PROTO_GetFieldsCounters [21:09:35]wFMCommunicate request_size=4 [21:09:35]MH_SAM_APDU [21:09:35]CAPDU: 80 13 00 00 [21:09:35]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [21:09:35]Write i2c OK [21:09:35]MH_I2C_Read... [21:09:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:35]Read from MH i2c: E2 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: E2 62 00 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: E2 62 00 BE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EA 20 02 00 0E 04 04 00 C4 01 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 22 [21:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EA 20 02 00 0E 04 04 00 C4 01 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:09:35]wFMCommunicate OK [21:09:35]SAM_PROTO_GetFieldsCounters done [21:09:35]requested_item shift.num is exist - process it [21:09:35]requested_item shift.opened is exist - process it [21:09:35]req_shift_opened [21:09:35]FM_GetShiftState [21:09:35]SAM_PROTO_GetShiftState [21:09:35]wFMCommunicate request_size=4 [21:09:35]MH_SAM_APDU [21:09:35]CAPDU: 80 13 01 00 [21:09:35]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [21:09:35]Write i2c OK [21:09:35]MH_I2C_Read... [21:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:35]Read from MH i2c: E2 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: E2 0E 00 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F5 [21:09:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:09:35]wFMCommunicate OK [21:09:35]SAM_PROTO_GetShiftState done [21:09:35]FM_GetShiftState done [21:09:35]req_shift_opened done [21:09:35]requested_item shift.open_date is exist - process it [21:09:35]req_shift_open_date [21:09:35]req_shift_open_date done [21:09:35]produce_requested_data done [21:09:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139498,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:09:35]process_action_free close_receipt [21:09:35]json_value_free [21:09:35]json_value_free done [21:09:35]process_json_proto returns [21:09:35]Send response to host [21:09:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139498,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:09:35]free response buf [21:09:35]execute_script done [21:09:35]execute_script returns [21:09:35]free content buf [21:09:35]Sock 10.Close socket [21:09:35]Sock 10.Thread stoped [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:29]accept exits with 7 [21:12:29]New connection [21:12:29]New thread 3067071844 created [21:12:29]Thread 3067215204 joined [21:12:29]Waiting for new connection... [21:12:29] Sock 7.Parse request [21:12:29]Sock 7.Check first char [21:12:29]Sock 7.First char is OK [21:12:29]request: POST /json_proto HTTP/1.0 [21:12:29]Method: POST [21:12:29]URL: /json_proto [21:12:29]Method is POST - this is cgi request [21:12:29]url: /json_proto [21:12:29]query_string will be loaded in cgi processing [21:12:29]execute_cgi json_proto POST (null) [21:12:29]execute_cgi path=json_proto method=POST [21:12:29]POST find Content-Length [21:12:29]Host: 172.17.45.67:8080 [21:12:29]Content-Length: 682 [21:12:29]Content-Type: application/json [21:12:29] [21:12:29]POST finish read [21:12:29]Found Content-Length = 682 [21:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:29]execute_script... [21:12: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)593342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:29]POST & json_proto [21:12:29]process_json_proto [21:12:29]json parsed OK: [21:12:29]protocol is kg_v1.0 [21:12:29]action value=close_receipt [21:12:29]process_action close_receipt [21:12:29]cmd_close_receipt [21:12:29]MH_GetDate [21:12:29]Write to MH i2c: F0 00 00 C0 02 B1 [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: F0 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: F0 09 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: F0 09 00 C0 02 00 3E B5 C3 66 5F 7F 2B 66 45 [21:12:29]GetLastDocTimeStamp 1724101771 [21:12:29]current date 1724101950 [21:12:29]FM_GetShiftState [21:12:29]SAM_PROTO_GetShiftState [21:12:29]wFMCommunicate request_size=4 [21:12:29]MH_SAM_APDU [21:12:29]CAPDU: 80 13 01 00 [21:12:29]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:29]Read from MH i2c: E2 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 0E 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F7 [21:12:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:12:29]wFMCommunicate OK [21:12:29]SAM_PROTO_GetShiftState done [21:12:29]FM_GetShiftState done [21:12:29]opened in 1724027888 [21:12:29]opened+sec_in_day 1724114288 [21:12:29]quantity*price = 100005 [21:12:29]sum+1 = 100006 [21:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 334 19.08.2024 21:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139499 ФПД: 93309823946412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T211230&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139499&fm=93309823946412&tin=02508201610067®Number=0000000000092569&sum=100000 [21:12:31]StoreToDocumentArchive [21:12:31]shift 452 fd 139499 [21:12:31]save to /storage/0452/doc_00139499 [21:12:31]save last doc name /storage/0452/doc_00139499 to /storage/kkm_last_doc_name [21:12:31]save OK [21:12:31]Clear old archive folders... [21:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:12:31]tlvbuf is 00D326D0 [21:12:31]SAM_PROTO_ClearQueue [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 09 00 00 [21:12:31]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [21:12:31]RAPDU: 90 00 [21:12:31]wFMCommunicate OK [21:12:31]SAM_PROTO_ClearQueue done [21:12:31]KKMCreateOFDPacket [21:12:31]OFDProtocolAddRootSTLVToBuf [21:12:31]FM_MakeSignedData [21:12:31]FM_MakeSignedData [21:12:31]SAM_PROTO_SignData [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 0D 01 02 [21:12:31]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [21:12:31]RAPDU: 90 00 [21:12:31]wFMCommunicate OK [21:12:31]wFMCommunicate request_size=255 [21:12:31]MH_SAM_APDU [21:12: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 3E B5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 20 02 00 35 04 06 00 54 [21:12:31]Write to MH i2c: E2 02 01 D0 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 3E B5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 20 02 00 35 04 06 00 54 00 00 F3 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [21:12:31]RAPDU: 90 00 [21:12:31]wFMCommunicate OK [21:12:31]wFMCommunicate request_size=10 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 0D 02 02 05 DD 62 E9 0E AC [21:12:31]Write to MH i2c: E2 0D 00 D1 02 80 0D 02 02 05 00 DD 62 E9 0E AC 00 00 39 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [21:12:31]RAPDU: 90 00 [21:12:31]wFMCommunicate OK [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 0D 03 02 [21:12:31]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 0B 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 0B 00 D2 02 00 08 86 F2 38 74 AF 12 47 90 00 84 [21:12:31]RAPDU: 08 86 F2 38 74 AF 12 47 90 00 [21:12:31]wFMCommunicate OK [21:12:31]SAM_PROTO_SignData done [21:12:31]FM_MakeSignedData done [21:12:31]CreateOFDProtocolMessage [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 11 00 00 [21:12:31]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 17 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [21:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:12:31]wFMCommunicate OK [21:12:31]CreateOFDProtocolMessage done [21:12:31]OFDSenderStorePacket 139499 [21:12:31]StoreOFDPacket docnum=139499 [21:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7F FC 07 01 BA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 3E B5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 20 02 00 35 04 06 00 54 DD 62 E9 0E AC 08 86 F2 38 74 AF 12 47 [21:12:31]CheckFolder [21:12:31]dirname=/storage/ofd_packets [21:12:31]CheckFolder done [21:12:31]ProducePacketName [21:12:31]name=ofd_packets/00139499 [21:12:31]NVStorageSaveData ofd_packets/00139499 [21:12:31]File name is /storage/ofd_packets/00139499 [21:12:31]Write 301 bytes [21:12:31]NVStorageSaveData done [21:12:31]OFDSenderStorePacket done [21:12:31]KKMCreateOFDPacket done [21:12:31]NVStorageSaveData kkm_last_timestamp [21:12:31]File name is /storage/kkm_last_timestamp [21:12:31]Write 4 bytes [21:12:31]NVStorageSaveData done [21:12:31]OFD Sender: Processing packet 139499 [packets to send 137, broken 136] [21:12:31]ProducePacketName [21:12:31]name=ofd_packets/00139499 [21:12:31]OFD Sender: To server: pG, [21:12:31]CommunicateWithHost lk.salyk.kg:30040 [21:12:31]ConnectInit lk.salyk.kg [21:12:31]ExternCall_PrintAddStr [21:12:31]wPrintStart [21:12:31]Write to MH i2c: 01 00 00 D4 02 D6 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: 01 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: 01 07 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [21:12:31]RasterBufferAndPrint [21:12:31]line Счет N : (1)593342 [21:12:31]line ИНН: 02508201610067 [21:12:31]line Контрольно-Кассовый Чек [21:12:31]line ПРОДАЖА [21:12:31]line ТРК (МРК, ГНК) : 52 [21:12:31]line Товар: 2710124130 [21:12:31]line Аи-92-К-5 [21:12:31]line 14.750 * 67.80 [21:12:31]line = 1000.05 [21:12:31]line НДС 12% НСП 1% [21:12:31]line > о реализуемом товаре [21:12:31]line ОКРУГЛЕНИЕ: -0.05 [21:12:31]line ИТОГО: 1000.00 [21:12:31]line Внесено: 1000.00 [21:12:31]line СДАЧА: 0.00 [21:12:31]line НСП 1% : 8.85 [21:12:31]line НДС 12% : 106.20 [21:12:31]line Наличными: 1000.00 [21:12:31]line Безнал.: 0.00 [21:12:31]line Место: АЗС № 136 "Партнер Нефть" [21:12:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:12:31]line СНО: Общий режим [21:12:31]line Чек 334 19.08.2024 21:12 [21:12:31]line Смена: 452 ФФД: 1.0 [21:12:31]line ЗНМ: 0300000067 [21:12:31]line РНМ: 0000000000092569 [21:12:31]line Версия ККМ: 001 [21:12:31]line ФМ: 0000000000871776 [21:12:31]line ФД: 139499 [21:12:31]line ФПД: 93309823946412 [21:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T211230&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139499&fm=93309823946412&tin=02508201610067®Number=0000000000092569&sum=100000 [21:12:31]Connected sock=11 [21:12: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 37 36 0F 01 00 00 7F FC 07 01 BA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 3E B5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 20 02 00 35 04 06 00 54 DD 62 E9 0E AC 08 86 F2 38 74 AF 12 47 [21:12:31]written 0, free lines is 4095 [21:12: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 37 36 4F 00 00 00 FB 8E 47 00 84 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 37 36 10 04 04 00 EB 20 02 00 F4 03 04 00 D3 5B C3 66 B6 04 01 00 00 AE E3 B0 E8 16 7A 07 79 [21:12:32]CommunicateWithHost err = 0 [21:12:32]CheckOFDResponse [21:12:32]1017 (14) - 77093643461234 [21:12:32]1041 (16) - 0000000000871776 [21:12:32]1040 (4) - 139499 [21:12:32]1012 (4) - 19.08.2024 14:50 [21:12:32]1206 (1) - 0 [21:12:32]OFD Sender: Remove packet 139499 [21:12:32]ProducePacketName [21:12:32]name=ofd_packets/00139499 [21:12:32]NVStorageDeleteData [21:12:32]Write to MH i2c: 01 00 00 FF 02 01 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 CD 0C E1 [21:12:32]RasterBufferAndPrint [21:12:32]line [21:12:32]line [21:12:32]line [21:12:32]line [21:12:32]line [21:12:32]written 0, free lines is 3284 [21:12:32]MH_Cut [21:12:32]Write to MH i2c: D1 01 00 06 03 01 DB [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: D1 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: D1 01 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: D1 01 00 06 03 00 DA [21:12:32]Write to MH i2c: 01 00 00 07 03 0A [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]OFD Sender: No OFD packet to send [21:12:33]*** Cut start [21:12:33]*** Partial cut [21:12:33]*** CUTSNS_PIN = 1 [21:12:33]*** CUTSNS_PIN = 0 [21:12:33]*** Brake cut motor [21:12:33]Read from MH i2c: 01 [21:12:33]MH_I2C_Read... [21:12:33]*** Stop cut motor [21:12:33]*** Cut end [21:12:33]Read from MH i2c: 01 07 00 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [21:12:33]process_action close_receipt done [21:12:33]requested_data is exist [21:12:33]produce_requested_data [21:12:33]requested_item fm.sn is exist - process it [21:12:33]wFMCommunicate request_size=4 [21:12:33]MH_SAM_APDU [21:12:33]CAPDU: 80 11 00 00 [21:12:33]Write to MH i2c: E2 08 00 08 03 80 11 00 00 00 00 00 00 85 [21:12:33]Write i2c OK [21:12:33]MH_I2C_Read... [21:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:33]Read from MH i2c: E2 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: E2 17 00 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: E2 17 00 08 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DC [21:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:12:33]wFMCommunicate OK [21:12:33]requested_item fd.num is exist - process it [21:12:33]SAM_PROTO_GetFieldsCounters [21:12:33]wFMCommunicate request_size=4 [21:12:33]MH_SAM_APDU [21:12:33]CAPDU: 80 13 00 00 [21:12:33]Write to MH i2c: E2 08 00 09 03 80 13 00 00 00 00 00 00 88 [21:12:33]Write i2c OK [21:12:33]MH_I2C_Read... [21:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:33]Read from MH i2c: E2 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: E2 62 00 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: E2 62 00 09 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [21:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:33]wFMCommunicate OK [21:12:33]SAM_PROTO_GetFieldsCounters done [21:12:33]requested_item shift.num is exist - process it [21:12:33]requested_item shift.opened is exist - process it [21:12:33]req_shift_opened [21:12:33]FM_GetShiftState [21:12:33]SAM_PROTO_GetShiftState [21:12:33]wFMCommunicate request_size=4 [21:12:33]MH_SAM_APDU [21:12:33]CAPDU: 80 13 01 00 [21:12:33]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [21:12:33]Write i2c OK [21:12:33]MH_I2C_Read... [21:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:33]Read from MH i2c: E2 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: E2 0E 00 [21:12:33]MH_I2C_Read... [21:12:33]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 41 [21:12:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:12:33]wFMCommunicate OK [21:12:33]SAM_PROTO_GetShiftState done [21:12:33]FM_GetShiftState done [21:12:33]req_shift_opened done [21:12:33]requested_item shift.open_date is exist - process it [21:12:33]req_shift_open_date [21:12:33]req_shift_open_date done [21:12:33]produce_requested_data done [21:12:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139499,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:12:33]process_action_free close_receipt [21:12:33]json_value_free [21:12:33]json_value_free done [21:12:33]process_json_proto returns [21:12:33]Send response to host [21:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139499,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:12:33]free response buf [21:12:33]execute_script done [21:12:33]execute_script returns [21:12:33]free content buf [21:12:33]Sock 7.Close socket [21:12:33]Sock 7.Thread stoped [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:30]accept exits with 9 [21:13:30]New connection [21:13:30]New thread 3067215204 created [21:13:30]Thread 3067071844 joined [21:13:30]Waiting for new connection... [21:13:30] Sock 9.Parse request [21:13:30]Sock 9.Check first char [21:13:30]Sock 9.First char is OK [21:13:30]request: POST /json_proto HTTP/1.0 [21:13:30]Method: POST [21:13:30]URL: /json_proto [21:13:30]Method is POST - this is cgi request [21:13:30]url: /json_proto [21:13:30]query_string will be loaded in cgi processing [21:13:30]execute_cgi json_proto POST (null) [21:13:30]execute_cgi path=json_proto method=POST [21:13:30]POST find Content-Length [21:13:30]Host: 172.17.45.67:8080 [21:13:30]Content-Length: 677 [21:13:30]Content-Type: application/json [21:13:30] [21:13:30]POST finish read [21:13:30]Found Content-Length = 677 [21:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [21:13:30]execute_script... [21:13:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [21:13:30]POST & json_proto [21:13:30]process_json_proto [21:13:30]json parsed OK: [21:13:30]protocol is kg_v1.0 [21:13:30]action value=close_receipt [21:13:30]process_action close_receipt [21:13:30]cmd_close_receipt [21:13:30]MH_GetDate [21:13:30]Write to MH i2c: F0 00 00 0B 03 FD [21:13:30]Write i2c OK [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: F0 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: F0 09 00 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: F0 09 00 0B 03 00 7A B5 C3 66 5F 7F 2B 66 CD [21:13:30]GetLastDocTimeStamp 1724101950 [21:13:30]current date 1724102010 [21:13:30]FM_GetShiftState [21:13:30]SAM_PROTO_GetShiftState [21:13:30]wFMCommunicate request_size=4 [21:13:30]MH_SAM_APDU [21:13:30]CAPDU: 80 13 01 00 [21:13:30]Write to MH i2c: E2 08 00 0C 03 80 13 01 00 00 00 00 00 8C [21:13:30]Write i2c OK [21:13:30]MH_I2C_Read... [21:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:30]Read from MH i2c: E2 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: E2 0E 00 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: E2 0E 00 0C 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 43 [21:13:30]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:13:30]wFMCommunicate OK [21:13:30]SAM_PROTO_GetShiftState done [21:13:30]FM_GetShiftState done [21:13:30]opened in 1724027888 [21:13:30]opened+sec_in_day 1724114288 [21:13:30]quantity*price = 35052 [21:13:30]sum+1 = 35054 [21:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 335 19.08.2024 21:13 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139500 ФПД: 93838296176265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T211330&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139500&fm=93838296176265&tin=02508201610067®Number=0000000000092569&sum=35000 [21:13:31]StoreToDocumentArchive [21:13:31]shift 452 fd 139500 [21:13:31]save to /storage/0452/doc_00139500 [21:13:31]save last doc name /storage/0452/doc_00139500 to /storage/kkm_last_doc_name [21:13:31]save OK [21:13:31]Clear old archive folders... [21:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:31]tlvbuf is 00D22550 [21:13:31]SAM_PROTO_ClearQueue [21:13:31]wFMCommunicate request_size=4 [21:13:31]MH_SAM_APDU [21:13:31]CAPDU: 80 09 00 00 [21:13:31]Write to MH i2c: E2 08 00 19 03 80 09 00 00 00 00 00 00 8E [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:31]Read from MH i2c: E2 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [21:13:31]RAPDU: 90 00 [21:13:31]wFMCommunicate OK [21:13:31]SAM_PROTO_ClearQueue done [21:13:31]KKMCreateOFDPacket [21:13:31]OFDProtocolAddRootSTLVToBuf [21:13:31]FM_MakeSignedData [21:13:31]FM_MakeSignedData [21:13:31]SAM_PROTO_SignData [21:13:31]wFMCommunicate request_size=4 [21:13:31]MH_SAM_APDU [21:13:31]CAPDU: 80 0D 01 02 [21:13:31]Write to MH i2c: E2 08 00 1A 03 80 0D 01 02 00 00 00 00 96 [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:31]Read from MH i2c: E2 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [21:13:31]RAPDU: 90 00 [21:13:31]wFMCommunicate OK [21:13:31]wFMCommunicate request_size=255 [21:13:31]MH_SAM_APDU [21:13: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 4F 01 00 00 F4 03 04 00 7A B5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 20 02 00 35 04 06 00 55 [21:13:31]Write to MH i2c: E2 02 01 1B 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 4F 01 00 00 F4 03 04 00 7A B5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 20 02 00 35 04 06 00 55 00 00 1A [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:31]Read from MH i2c: E2 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [21:13:31]RAPDU: 90 00 [21:13:31]wFMCommunicate OK [21:13:31]wFMCommunicate request_size=10 [21:13:31]MH_SAM_APDU [21:13:31]CAPDU: 80 0D 02 02 05 58 6E 4F 56 89 [21:13:31]Write to MH i2c: E2 0D 00 1C 03 80 0D 02 02 05 00 58 6E 4F 56 89 00 00 97 [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:31]Read from MH i2c: E2 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [21:13:31]RAPDU: 90 00 [21:13:31]wFMCommunicate OK [21:13:31]wFMCommunicate request_size=4 [21:13:31]MH_SAM_APDU [21:13:31]CAPDU: 80 0D 03 02 [21:13:31]Write to MH i2c: E2 08 00 1D 03 80 0D 03 02 00 00 00 00 9B [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:31]Read from MH i2c: E2 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 0B 00 [21:13:31]MH_I2C_Read... [21:13:31]Read from MH i2c: E2 0B 00 1D 03 00 E8 56 C2 0C 8F E2 24 46 90 00 83 [21:13:31]RAPDU: E8 56 C2 0C 8F E2 24 46 90 00 [21:13:31]wFMCommunicate OK [21:13:31]SAM_PROTO_SignData done [21:13:31]FM_MakeSignedData done [21:13:31]CreateOFDProtocolMessage [21:13:31]wFMCommunicate request_size=4 [21:13:31]MH_SAM_APDU [21:13:31]CAPDU: 80 11 00 00 [21:13:31]Write to MH i2c: E2 08 00 1E 03 80 11 00 00 00 00 00 00 9B [21:13:31]Write i2c OK [21:13:31]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 17 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 17 00 1E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [21:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:13:32]wFMCommunicate OK [21:13:32]CreateOFDProtocolMessage done [21:13:32]OFDSenderStorePacket 139500 [21:13:32]StoreOFDPacket docnum=139500 [21:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CC 61 07 01 D4 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 4F 01 00 00 F4 03 04 00 7A B5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 20 02 00 35 04 06 00 55 58 6E 4F 56 89 E8 56 C2 0C 8F E2 24 46 [21:13:32]CheckFolder [21:13:32]dirname=/storage/ofd_packets [21:13:32]CheckFolder done [21:13:32]ProducePacketName [21:13:32]name=ofd_packets/00139500 [21:13:32]NVStorageSaveData ofd_packets/00139500 [21:13:32]File name is /storage/ofd_packets/00139500 [21:13:32]Write 301 bytes [21:13:32]NVStorageSaveData done [21:13:32]OFDSenderStorePacket done [21:13:32]KKMCreateOFDPacket done [21:13:32]NVStorageSaveData kkm_last_timestamp [21:13:32]File name is /storage/kkm_last_timestamp [21:13:32]Write 4 bytes [21:13:32]NVStorageSaveData done [21:13:32]ExternCall_PrintAddStr [21:13:32]wPrintStart [21:13:32]Write to MH i2c: 01 00 00 1F 03 22 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 07 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 FF 0F 37 [21:13:32]RasterBufferAndPrint [21:13:32]line Счет N : (1)593343 [21:13:32]line ИНН: 02508201610067 [21:13:32]line Контрольно-Кассовый Чек [21:13:32]line ПРОДАЖА [21:13:32]line ТРК (МРК, ГНК) : 42 [21:13:32]line Товар: 2710124130 [21:13:32]line Аи-92-К-5 [21:13:32]line 5.170 * 67.80 [21:13:32]line = 350.53 [21:13:32]line НДС 12% НСП 1% [21:13:32]line > о реализуемом товаре [21:13:32]line ОКРУГЛЕНИЕ: -0.53 [21:13:32]line ИТОГО: 350.00 [21:13:32]line Внесено: 350.00 [21:13:32]line СДАЧА: 0.00 [21:13:32]line НСП 1% : 3.10 [21:13:32]line НДС 12% : 37.22 [21:13:32]line Наличными: 350.00 [21:13:32]line Безнал.: 0.00 [21:13:32]line Место: АЗС № 136 "Партнер Нефть" [21:13:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:13:32]line СНО: Общий режим [21:13:32]line Чек 335 19.08.2024 21:13 [21:13:32]line Смена: 452 ФФД: 1.0 [21:13:32]line ЗНМ: 0300000067 [21:13:32]line РНМ: 0000000000092569 [21:13:32]line Версия ККМ: 001 [21:13:32]line ФМ: 0000000000871776 [21:13:32]line ФД: 139500 [21:13:32]line ФПД: 93838296176265 [21:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T211330&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139500&fm=93838296176265&tin=02508201610067®Number=0000000000092569&sum=35000 [21:13:32]OFD Sender: Processing packet 139500 [packets to send 137, broken 136] [21:13:32]ProducePacketName [21:13:32]name=ofd_packets/00139500 [21:13:32]OFD Sender: To server: pG, [21:13:32]CommunicateWithHost lk.salyk.kg:30040 [21:13:32]ConnectInit lk.salyk.kg [21:13:32]written 0, free lines is 4095 [21:13:32]Connected sock=11 [21:13:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CC 61 07 01 D4 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 4F 01 00 00 F4 03 04 00 7A B5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 20 02 00 35 04 06 00 55 58 6E 4F 56 89 E8 56 C2 0C 8F E2 24 46 [21:13:32]Write to MH i2c: 01 00 00 4A 03 4D [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 07 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 D9 0C 39 [21:13:32]RasterBufferAndPrint [21:13:32]line [21:13:32]line [21:13:32]line [21:13:32]line [21:13:32]line [21:13:32]written 0, free lines is 3294 [21:13:32]MH_Cut [21:13:32]Write to MH i2c: D1 01 00 51 03 01 26 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: D1 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: D1 01 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: D1 01 00 51 03 00 25 [21:13:32]Write to MH i2c: 01 00 00 52 03 55 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13: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 37 36 4F 00 00 00 5A F1 47 00 11 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 20 02 00 F4 03 04 00 0F 5C C3 66 B6 04 01 00 00 D9 0C 9A A0 99 68 11 F2 [21:13:33]CommunicateWithHost err = 0 [21:13:33]CheckOFDResponse [21:13:33]1017 (14) - 77093643461234 [21:13:33]1041 (16) - 0000000000871776 [21:13:33]1040 (4) - 139500 [21:13:33]1012 (4) - 19.08.2024 14:51 [21:13:33]1206 (1) - 0 [21:13:33]OFD Sender: Remove packet 139500 [21:13:33]ProducePacketName [21:13:33]name=ofd_packets/00139500 [21:13:33]NVStorageDeleteData [21:13:33]OFD Sender: No OFD packet to send [21:13:33]*** Cut start [21:13:33]*** Partial cut [21:13:33]*** CUTSNS_PIN = 1 [21:13:33]*** CUTSNS_PIN = 0 [21:13:33]*** Brake cut motor [21:13:34]Read from MH i2c: 01 [21:13:34]MH_I2C_Read... [21:13:34]*** Stop cut motor [21:13:34]*** Cut end [21:13:34]Read from MH i2c: 01 07 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 FF 0F 6A [21:13:34]process_action close_receipt done [21:13:34]requested_data is exist [21:13:34]produce_requested_data [21:13:34]requested_item fm.sn is exist - process it [21:13:34]wFMCommunicate request_size=4 [21:13:34]MH_SAM_APDU [21:13:34]CAPDU: 80 11 00 00 [21:13:34]Write to MH i2c: E2 08 00 53 03 80 11 00 00 00 00 00 00 D0 [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:34]Read from MH i2c: E2 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 17 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 17 00 53 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [21:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:13:34]wFMCommunicate OK [21:13:34]requested_item fd.num is exist - process it [21:13:34]SAM_PROTO_GetFieldsCounters [21:13:34]wFMCommunicate request_size=4 [21:13:34]MH_SAM_APDU [21:13:34]CAPDU: 80 13 00 00 [21:13:34]Write to MH i2c: E2 08 00 54 03 80 13 00 00 00 00 00 00 D3 [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:34]Read from MH i2c: E2 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 62 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 62 00 54 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [21:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:34]wFMCommunicate OK [21:13:34]SAM_PROTO_GetFieldsCounters done [21:13:34]requested_item shift.num is exist - process it [21:13:34]requested_item shift.opened is exist - process it [21:13:34]req_shift_opened [21:13:34]FM_GetShiftState [21:13:34]SAM_PROTO_GetShiftState [21:13:34]wFMCommunicate request_size=4 [21:13:34]MH_SAM_APDU [21:13:34]CAPDU: 80 13 01 00 [21:13:34]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:34]Read from MH i2c: E2 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 0E 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8C [21:13:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:13:34]wFMCommunicate OK [21:13:34]SAM_PROTO_GetShiftState done [21:13:34]FM_GetShiftState done [21:13:34]req_shift_opened done [21:13:34]requested_item shift.open_date is exist - process it [21:13:34]req_shift_open_date [21:13:34]req_shift_open_date done [21:13:34]produce_requested_data done [21:13:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139500,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:13:34]process_action_free close_receipt [21:13:34]json_value_free [21:13:34]json_value_free done [21:13:34]process_json_proto returns [21:13:34]Send response to host [21:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139500,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:13:34]free response buf [21:13:34]execute_script done [21:13:34]execute_script returns [21:13:34]free content buf [21:13:34]Sock 9.Close socket [21:13:34]Sock 9.Thread stoped [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:35]accept exits with 7 [21:20:35]New connection [21:20:35]New thread 3067071844 created [21:20:35]Thread 3067215204 joined [21:20:35]Waiting for new connection... [21:20:35] Sock 7.Parse request [21:20:35]Sock 7.Check first char [21:20:35]Sock 7.First char is OK [21:20:35]request: POST /json_proto HTTP/1.0 [21:20:35]Method: POST [21:20:35]URL: /json_proto [21:20:35]Method is POST - this is cgi request [21:20:35]url: /json_proto [21:20:35]query_string will be loaded in cgi processing [21:20:35]execute_cgi json_proto POST (null) [21:20:35]execute_cgi path=json_proto method=POST [21:20:35]POST find Content-Length [21:20:35]Host: 172.17.45.67:8080 [21:20:35]Content-Length: 677 [21:20:35]Content-Type: application/json [21:20:35] [21:20:35]POST finish read [21:20:35]Found Content-Length = 677 [21:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.600, "sum" : 515.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 515.00, "total" : 515.00, "payments": [ { "type": 0, "sum" : 515.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:35]execute_script... [21:20: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)593344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.600, "sum" : 515.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 515.00, "total" : 515.00, "payments": [ { "type": 0, "sum" : 515.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:35]POST & json_proto [21:20:35]process_json_proto [21:20:35]json parsed OK: [21:20:35]protocol is kg_v1.0 [21:20:35]action value=close_receipt [21:20:35]process_action close_receipt [21:20:35]cmd_close_receipt [21:20:35]MH_GetDate [21:20:35]Write to MH i2c: F0 00 00 56 03 48 [21:20:35]Write i2c OK [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: F0 [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: F0 09 00 [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: F0 09 00 56 03 00 23 B7 C3 66 5F 7F 2B 66 C3 [21:20:35]GetLastDocTimeStamp 1724102010 [21:20:35]current date 1724102435 [21:20:35]FM_GetShiftState [21:20:35]SAM_PROTO_GetShiftState [21:20:35]wFMCommunicate request_size=4 [21:20:35]MH_SAM_APDU [21:20:35]CAPDU: 80 13 01 00 [21:20:35]Write to MH i2c: E2 08 00 57 03 80 13 01 00 00 00 00 00 D7 [21:20:35]Write i2c OK [21:20:35]MH_I2C_Read... [21:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:35]Read from MH i2c: E2 [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: E2 0E 00 [21:20:35]MH_I2C_Read... [21:20:35]Read from MH i2c: E2 0E 00 57 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8E [21:20:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:20:35]wFMCommunicate OK [21:20:35]SAM_PROTO_GetShiftState done [21:20:35]FM_GetShiftState done [21:20:35]opened in 1724027888 [21:20:35]opened+sec_in_day 1724114288 [21:20:35]quantity*price = 51528 [21:20:35]sum+1 = 51529 [21:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 515.00 Внесено: 515.00 СДАЧА: 0.00 НСП 1% : 4.56 НДС 12% : 54.72 Наличными: 515.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 336 19.08.2024 21:20 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139501 ФПД: 44464134510000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T212035&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139501&fm=44464134510000&tin=02508201610067®Number=0000000000092569&sum=51500 [21:20:36]StoreToDocumentArchive [21:20:36]shift 452 fd 139501 [21:20:36]save to /storage/0452/doc_00139501 [21:20:36]save last doc name /storage/0452/doc_00139501 to /storage/kkm_last_doc_name [21:20:36]save OK [21:20:36]Clear old archive folders... [21:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:20:36]tlvbuf is 00D29540 [21:20:36]SAM_PROTO_ClearQueue [21:20:36]wFMCommunicate request_size=4 [21:20:36]MH_SAM_APDU [21:20:36]CAPDU: 80 09 00 00 [21:20:36]Write to MH i2c: E2 08 00 64 03 80 09 00 00 00 00 00 00 D9 [21:20:36]Write i2c OK [21:20:36]MH_I2C_Read... [21:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:36]Read from MH i2c: E2 [21:20:36]MH_I2C_Read... [21:20:36]Read from MH i2c: E2 03 00 [21:20:36]MH_I2C_Read... [21:20:36]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [21:20:36]RAPDU: 90 00 [21:20:36]wFMCommunicate OK [21:20:36]SAM_PROTO_ClearQueue done [21:20:36]KKMCreateOFDPacket [21:20:36]OFDProtocolAddRootSTLVToBuf [21:20:36]FM_MakeSignedData [21:20:36]FM_MakeSignedData [21:20:36]SAM_PROTO_SignData [21:20:36]wFMCommunicate request_size=4 [21:20:36]MH_SAM_APDU [21:20:36]CAPDU: 80 0D 01 02 [21:20:36]Write to MH i2c: E2 08 00 65 03 80 0D 01 02 00 00 00 00 E1 [21:20:36]Write i2c OK [21:20:36]MH_I2C_Read... [21:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:36]Read from MH i2c: E2 [21:20:36]MH_I2C_Read... [21:20:36]Read from MH i2c: E2 03 00 [21:20:36]MH_I2C_Read... [21:20:36]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [21:20:36]RAPDU: 90 00 [21:20:36]wFMCommunicate OK [21:20:36]wFMCommunicate request_size=255 [21:20:36]MH_SAM_APDU [21:20: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 B0 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 48 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 15 00 00 00 00 07 04 06 00 2C C9 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 01 00 00 F4 03 04 00 23 B7 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 20 02 00 35 04 06 00 28 [21:20:36]Write to MH i2c: E2 02 01 66 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 B0 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 48 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 15 00 00 00 00 07 04 06 00 2C C9 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 01 00 00 F4 03 04 00 23 B7 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 20 02 00 35 04 06 00 28 00 00 E1 [21:20:36]Write i2c OK [21:20:36]MH_I2C_Read... [21:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:37]Read from MH i2c: E2 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 03 00 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [21:20:37]RAPDU: 90 00 [21:20:37]wFMCommunicate OK [21:20:37]wFMCommunicate request_size=10 [21:20:37]MH_SAM_APDU [21:20:37]CAPDU: 80 0D 02 02 05 70 9C F1 55 B0 [21:20:37]Write to MH i2c: E2 0D 00 67 03 80 0D 02 02 05 00 70 9C F1 55 B0 00 00 F0 [21:20:37]Write i2c OK [21:20:37]MH_I2C_Read... [21:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:37]Read from MH i2c: E2 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 03 00 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [21:20:37]RAPDU: 90 00 [21:20:37]wFMCommunicate OK [21:20:37]wFMCommunicate request_size=4 [21:20:37]MH_SAM_APDU [21:20:37]CAPDU: 80 0D 03 02 [21:20:37]Write to MH i2c: E2 08 00 68 03 80 0D 03 02 00 00 00 00 E6 [21:20:37]Write i2c OK [21:20:37]MH_I2C_Read... [21:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:37]Read from MH i2c: E2 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 0B 00 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 0B 00 68 03 00 5A 12 DC BC F2 34 74 E9 90 00 6E [21:20:37]RAPDU: 5A 12 DC BC F2 34 74 E9 90 00 [21:20:37]wFMCommunicate OK [21:20:37]SAM_PROTO_SignData done [21:20:37]FM_MakeSignedData done [21:20:37]CreateOFDProtocolMessage [21:20:37]wFMCommunicate request_size=4 [21:20:37]MH_SAM_APDU [21:20:37]CAPDU: 80 11 00 00 [21:20:37]Write to MH i2c: E2 08 00 69 03 80 11 00 00 00 00 00 00 E6 [21:20:37]Write i2c OK [21:20:37]MH_I2C_Read... [21:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:37]Read from MH i2c: E2 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 17 00 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: E2 17 00 69 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3D [21:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:20:37]wFMCommunicate OK [21:20:37]CreateOFDProtocolMessage done [21:20:37]OFDSenderStorePacket 139501 [21:20:37]StoreOFDPacket docnum=139501 [21:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 37 B4 07 01 32 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 48 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 15 00 00 00 00 07 04 06 00 2C C9 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 01 00 00 F4 03 04 00 23 B7 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 20 02 00 35 04 06 00 28 70 9C F1 55 B0 5A 12 DC BC F2 34 74 E9 [21:20:37]CheckFolder [21:20:37]dirname=/storage/ofd_packets [21:20:37]CheckFolder done [21:20:37]ProducePacketName [21:20:37]name=ofd_packets/00139501 [21:20:37]NVStorageSaveData ofd_packets/00139501 [21:20:37]File name is /storage/ofd_packets/00139501 [21:20:37]Write 301 bytes [21:20:37]NVStorageSaveData done [21:20:37]OFDSenderStorePacket done [21:20:37]KKMCreateOFDPacket done [21:20:37]NVStorageSaveData kkm_last_timestamp [21:20:37]File name is /storage/kkm_last_timestamp [21:20:37]Write 4 bytes [21:20:37]NVStorageSaveData done [21:20:37]ExternCall_PrintAddStr [21:20:37]wPrintStart [21:20:37]Write to MH i2c: 01 00 00 6A 03 6D [21:20:37]Write i2c OK [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: 01 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: 01 07 00 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: 01 07 00 6A 03 00 00 00 00 00 FF 0F 82 [21:20:37]RasterBufferAndPrint [21:20:37]line Счет N : (1)593344 [21:20:37]line ИНН: 02508201610067 [21:20:37]line Контрольно-Кассовый Чек [21:20:37]line ПРОДАЖА [21:20:37]line ТРК (МРК, ГНК) : 42 [21:20:37]line Товар: 2710124130 [21:20:37]line Аи-92-К-5 [21:20:37]line 7.600 * 67.80 [21:20:37]line = 515.28 [21:20:37]line НДС 12% НСП 1% [21:20:37]line > о реализуемом товаре [21:20:37]line ОКРУГЛЕНИЕ: -0.28 [21:20:37]line ИТОГО: 515.00 [21:20:37]line Внесено: 515.00 [21:20:37]line СДАЧА: 0.00 [21:20:37]line НСП 1% : 4.56 [21:20:37]line НДС 12% : 54.72 [21:20:37]line Наличными: 515.00 [21:20:37]line Безнал.: 0.00 [21:20:37]line Место: АЗС № 136 "Партнер Нефть" [21:20:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:20:37]line СНО: Общий режим [21:20:37]line Чек 336 19.08.2024 21:20 [21:20:37]line Смена: 452 ФФД: 1.0 [21:20:37]line ЗНМ: 0300000067 [21:20:37]line РНМ: 0000000000092569 [21:20:37]line Версия ККМ: 001 [21:20:37]line ФМ: 0000000000871776 [21:20:37]line ФД: 139501 [21:20:37]line ФПД: 44464134510000 [21:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T212035&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139501&fm=44464134510000&tin=02508201610067®Number=0000000000092569&sum=51500 [21:20:37]OFD Sender: Processing packet 139501 [packets to send 137, broken 136] [21:20:37]ProducePacketName [21:20:37]name=ofd_packets/00139501 [21:20:37]OFD Sender: To server: pG, [21:20:37]CommunicateWithHost lk.salyk.kg:30040 [21:20:37]ConnectInit lk.salyk.kg [21:20:37]written 0, free lines is 4095 [21:20:37]Connected sock=10 [21:20: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 37 36 0F 01 00 00 37 B4 07 01 32 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 48 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 15 00 00 00 00 07 04 06 00 2C C9 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 01 00 00 F4 03 04 00 23 B7 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 20 02 00 35 04 06 00 28 70 9C F1 55 B0 5A 12 DC BC F2 34 74 E9 [21:20: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 37 36 4F 00 00 00 1E 52 47 00 35 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 37 36 10 04 04 00 ED 20 02 00 F4 03 04 00 B8 5D C3 66 B6 04 01 00 00 19 D5 39 98 E9 A6 E8 A4 [21:20:37]CommunicateWithHost err = 0 [21:20:37]CheckOFDResponse [21:20:37]1017 (14) - 77093643461234 [21:20:37]1041 (16) - 0000000000871776 [21:20:37]1040 (4) - 139501 [21:20:37]1012 (4) - 19.08.2024 14:59 [21:20:37]1206 (1) - 0 [21:20:37]OFD Sender: Remove packet 139501 [21:20:37]ProducePacketName [21:20:37]name=ofd_packets/00139501 [21:20:37]NVStorageDeleteData [21:20:38]Write to MH i2c: 01 00 00 95 03 98 [21:20:38]Write i2c OK [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: 01 [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: 01 07 00 [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 CC 0C 77 [21:20:38]RasterBufferAndPrint [21:20:38]line [21:20:38]line [21:20:38]line [21:20:38]line [21:20:38]line [21:20:38]written 0, free lines is 3282 [21:20:38]MH_Cut [21:20:38]Write to MH i2c: D1 01 00 9C 03 01 71 [21:20:38]Write i2c OK [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: D1 [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: D1 01 00 [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: D1 01 00 9C 03 00 70 [21:20:38]Write to MH i2c: 01 00 00 9D 03 A0 [21:20:38]Write i2c OK [21:20:38]MH_I2C_Read... [21:20:38]OFD Sender: No OFD packet to send [21:20:38]*** Cut start [21:20:38]*** Partial cut [21:20:38]*** CUTSNS_PIN = 1 [21:20:38]*** CUTSNS_PIN = 0 [21:20:38]*** Brake cut motor [21:20:39]Read from MH i2c: 01 [21:20:39]MH_I2C_Read... [21:20:39]*** Stop cut motor [21:20:39]*** Cut end [21:20:39]Read from MH i2c: 01 07 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 FF 0F B5 [21:20:39]process_action close_receipt done [21:20:39]requested_data is exist [21:20:39]produce_requested_data [21:20:39]requested_item fm.sn is exist - process it [21:20:39]wFMCommunicate request_size=4 [21:20:39]MH_SAM_APDU [21:20:39]CAPDU: 80 11 00 00 [21:20:39]Write to MH i2c: E2 08 00 9E 03 80 11 00 00 00 00 00 00 1B [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:39]Read from MH i2c: E2 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 17 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 17 00 9E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [21:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:20:39]wFMCommunicate OK [21:20:39]requested_item fd.num is exist - process it [21:20:39]SAM_PROTO_GetFieldsCounters [21:20:39]wFMCommunicate request_size=4 [21:20:39]MH_SAM_APDU [21:20:39]CAPDU: 80 13 00 00 [21:20:39]Write to MH i2c: E2 08 00 9F 03 80 13 00 00 00 00 00 00 1E [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:39]Read from MH i2c: E2 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 62 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 62 00 9F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [21:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:39]wFMCommunicate OK [21:20:39]SAM_PROTO_GetFieldsCounters done [21:20:39]requested_item shift.num is exist - process it [21:20:39]requested_item shift.opened is exist - process it [21:20:39]req_shift_opened [21:20:39]FM_GetShiftState [21:20:39]SAM_PROTO_GetShiftState [21:20:39]wFMCommunicate request_size=4 [21:20:39]MH_SAM_APDU [21:20:39]CAPDU: 80 13 01 00 [21:20:39]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:39]Read from MH i2c: E2 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 0E 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D7 [21:20:39]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:20:39]wFMCommunicate OK [21:20:39]SAM_PROTO_GetShiftState done [21:20:39]FM_GetShiftState done [21:20:39]req_shift_opened done [21:20:39]requested_item shift.open_date is exist - process it [21:20:39]req_shift_open_date [21:20:39]req_shift_open_date done [21:20:39]produce_requested_data done [21:20:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139501,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:20:39]process_action_free close_receipt [21:20:39]json_value_free [21:20:39]json_value_free done [21:20:39]process_json_proto returns [21:20:39]Send response to host [21:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139501,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:20:39]free response buf [21:20:39]execute_script done [21:20:39]execute_script returns [21:20:39]free content buf [21:20:39]Sock 7.Close socket [21:20:39]Sock 7.Thread stoped [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:45]accept exits with 9 [21:21:45]New connection [21:21:45]New thread 3067215204 created [21:21:45]Thread 3067071844 joined [21:21:45]Waiting for new connection... [21:21:45] Sock 9.Parse request [21:21:45]Sock 9.Check first char [21:21:45]Sock 9.First char is OK [21:21:45]request: POST /json_proto HTTP/1.0 [21:21:45]Method: POST [21:21:45]URL: /json_proto [21:21:45]Method is POST - this is cgi request [21:21:45]url: /json_proto [21:21:45]query_string will be loaded in cgi processing [21:21:45]execute_cgi json_proto POST (null) [21:21:45]execute_cgi path=json_proto method=POST [21:21:45]POST find Content-Length [21:21:45]Host: 172.17.45.67:8080 [21:21:45]Content-Length: 677 [21:21:45]Content-Type: application/json [21:21:45] [21:21:45]POST finish read [21:21:45]Found Content-Length = 677 [21:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:21:45]execute_script... [21:21: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)593345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:21:45]POST & json_proto [21:21:45]process_json_proto [21:21:45]json parsed OK: [21:21:45]protocol is kg_v1.0 [21:21:45]action value=close_receipt [21:21:45]process_action close_receipt [21:21:45]cmd_close_receipt [21:21:45]MH_GetDate [21:21:45]Write to MH i2c: F0 00 00 A1 03 93 [21:21:45]Write i2c OK [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: F0 [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: F0 09 00 [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: F0 09 00 A1 03 00 69 B7 C3 66 5F 7F 2B 66 54 [21:21:45]GetLastDocTimeStamp 1724102435 [21:21:45]current date 1724102505 [21:21:45]FM_GetShiftState [21:21:45]SAM_PROTO_GetShiftState [21:21:45]wFMCommunicate request_size=4 [21:21:45]MH_SAM_APDU [21:21:45]CAPDU: 80 13 01 00 [21:21:45]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [21:21:45]Write i2c OK [21:21:45]MH_I2C_Read... [21:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:45]Read from MH i2c: E2 [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: E2 0E 00 [21:21:45]MH_I2C_Read... [21:21:45]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D9 [21:21:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:21:45]wFMCommunicate OK [21:21:45]SAM_PROTO_GetShiftState done [21:21:45]FM_GetShiftState done [21:21:45]opened in 1724027888 [21:21:45]opened+sec_in_day 1724114288 [21:21:45]quantity*price = 40002 [21:21:45]sum+1 = 40003 [21:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 337 19.08.2024 21:21 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139502 ФПД: 28412954295551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T212145&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139502&fm=28412954295551&tin=02508201610067®Number=0000000000092569&sum=40000 [21:21:46]StoreToDocumentArchive [21:21:46]shift 452 fd 139502 [21:21:46]save to /storage/0452/doc_00139502 [21:21:46]save last doc name /storage/0452/doc_00139502 to /storage/kkm_last_doc_name [21:21:46]save OK [21:21:46]Clear old archive folders... [21:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:21:46]tlvbuf is 00D215B0 [21:21:46]SAM_PROTO_ClearQueue [21:21:46]wFMCommunicate request_size=4 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 09 00 00 [21:21:46]Write to MH i2c: E2 08 00 AF 03 80 09 00 00 00 00 00 00 24 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [21:21:46]RAPDU: 90 00 [21:21:46]wFMCommunicate OK [21:21:46]SAM_PROTO_ClearQueue done [21:21:46]KKMCreateOFDPacket [21:21:46]OFDProtocolAddRootSTLVToBuf [21:21:46]FM_MakeSignedData [21:21:46]FM_MakeSignedData [21:21:46]SAM_PROTO_SignData [21:21:46]wFMCommunicate request_size=4 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 0D 01 02 [21:21:46]Write to MH i2c: E2 08 00 B0 03 80 0D 01 02 00 00 00 00 2C [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [21:21:46]RAPDU: 90 00 [21:21:46]wFMCommunicate OK [21:21:46]wFMCommunicate request_size=255 [21:21:46]MH_SAM_APDU [21:21: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 51 01 00 00 F4 03 04 00 69 B7 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 20 02 00 35 04 06 00 19 [21:21:46]Write to MH i2c: E2 02 01 B1 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 51 01 00 00 F4 03 04 00 69 B7 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 20 02 00 35 04 06 00 19 00 00 23 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [21:21:46]RAPDU: 90 00 [21:21:46]wFMCommunicate OK [21:21:46]wFMCommunicate request_size=10 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 0D 02 02 05 D7 68 0C 3C FF [21:21:46]Write to MH i2c: E2 0D 00 B2 03 80 0D 02 02 05 00 D7 68 0C 3C FF 00 00 BF [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [21:21:46]RAPDU: 90 00 [21:21:46]wFMCommunicate OK [21:21:46]wFMCommunicate request_size=4 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 0D 03 02 [21:21:46]Write to MH i2c: E2 08 00 B3 03 80 0D 03 02 00 00 00 00 31 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 0B 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 0B 00 B3 03 00 F7 8F 8E 46 3C 2A CD 4D 90 00 0C [21:21:46]RAPDU: F7 8F 8E 46 3C 2A CD 4D 90 00 [21:21:46]wFMCommunicate OK [21:21:46]SAM_PROTO_SignData done [21:21:46]FM_MakeSignedData done [21:21:46]CreateOFDProtocolMessage [21:21:46]wFMCommunicate request_size=4 [21:21:46]MH_SAM_APDU [21:21:46]CAPDU: 80 11 00 00 [21:21:46]Write to MH i2c: E2 08 00 B4 03 80 11 00 00 00 00 00 00 31 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:46]Read from MH i2c: E2 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 17 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: E2 17 00 B4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [21:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:21:46]wFMCommunicate OK [21:21:46]CreateOFDProtocolMessage done [21:21:46]OFDSenderStorePacket 139502 [21:21:46]StoreOFDPacket docnum=139502 [21:21:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9A BF 07 01 62 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 51 01 00 00 F4 03 04 00 69 B7 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 20 02 00 35 04 06 00 19 D7 68 0C 3C FF F7 8F 8E 46 3C 2A CD 4D [21:21:46]CheckFolder [21:21:46]dirname=/storage/ofd_packets [21:21:46]CheckFolder done [21:21:46]ProducePacketName [21:21:46]name=ofd_packets/00139502 [21:21:46]NVStorageSaveData ofd_packets/00139502 [21:21:46]File name is /storage/ofd_packets/00139502 [21:21:46]Write 301 bytes [21:21:46]NVStorageSaveData done [21:21:46]OFDSenderStorePacket done [21:21:46]KKMCreateOFDPacket done [21:21:46]NVStorageSaveData kkm_last_timestamp [21:21:46]File name is /storage/kkm_last_timestamp [21:21:46]Write 4 bytes [21:21:46]NVStorageSaveData done [21:21:46]OFD Sender: Processing packet 139502 [packets to send 137, broken 136] [21:21:46]ProducePacketName [21:21:46]name=ofd_packets/00139502 [21:21:46]OFD Sender: To server: pG, [21:21:46]CommunicateWithHost lk.salyk.kg:30040 [21:21:46]ConnectInit lk.salyk.kg [21:21:46]ExternCall_PrintAddStr [21:21:46]wPrintStart [21:21:46]Write to MH i2c: 01 00 00 B5 03 B8 [21:21:46]Write i2c OK [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: 01 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: 01 07 00 [21:21:46]MH_I2C_Read... [21:21:46]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 FF 0F CD [21:21:46]RasterBufferAndPrint [21:21:46]line Счет N : (1)593345 [21:21:46]line ИНН: 02508201610067 [21:21:46]line Контрольно-Кассовый Чек [21:21:46]line ПРОДАЖА [21:21:46]line ТРК (МРК, ГНК) : 62 [21:21:46]line Товар: 2710124130 [21:21:46]line Аи-92-К-5 [21:21:46]line 5.900 * 67.80 [21:21:46]line = 400.02 [21:21:46]line НДС 12% НСП 1% [21:21:46]line > о реализуемом товаре [21:21:46]line ОКРУГЛЕНИЕ: -0.02 [21:21:46]line ИТОГО: 400.00 [21:21:46]line Внесено: 400.00 [21:21:46]line СДАЧА: 0.00 [21:21:46]line НСП 1% : 3.54 [21:21:46]line НДС 12% : 42.48 [21:21:46]line Наличными: 400.00 [21:21:46]line Безнал.: 0.00 [21:21:46]line Место: АЗС № 136 "Партнер Нефть" [21:21:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:21:46]line СНО: Общий режим [21:21:46]line Чек 337 19.08.2024 21:21 [21:21:46]line Смена: 452 ФФД: 1.0 [21:21:46]line ЗНМ: 0300000067 [21:21:46]line РНМ: 0000000000092569 [21:21:46]line Версия ККМ: 001 [21:21:46]line ФМ: 0000000000871776 [21:21:46]line ФД: 139502 [21:21:46]line ФПД: 28412954295551 [21:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T212145&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139502&fm=28412954295551&tin=02508201610067®Number=0000000000092569&sum=40000 [21:21:46]written 0, free lines is 4095 [21:21:46]Connected sock=11 [21:21: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 37 36 0F 01 00 00 9A BF 07 01 62 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 51 01 00 00 F4 03 04 00 69 B7 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 20 02 00 35 04 06 00 19 D7 68 0C 3C FF F7 8F 8E 46 3C 2A CD 4D [21:21: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 37 36 4F 00 00 00 F7 E8 47 00 06 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 37 36 10 04 04 00 EE 20 02 00 F4 03 04 00 FE 5D C3 66 B6 04 01 00 00 CF 5E 6B EB C9 05 04 6A [21:21:47]CommunicateWithHost err = 0 [21:21:47]CheckOFDResponse [21:21:47]1017 (14) - 77093643461234 [21:21:47]1041 (16) - 0000000000871776 [21:21:47]1040 (4) - 139502 [21:21:47]1012 (4) - 19.08.2024 15:00 [21:21:47]1206 (1) - 0 [21:21:47]OFD Sender: Remove packet 139502 [21:21:47]ProducePacketName [21:21:47]name=ofd_packets/00139502 [21:21:47]NVStorageDeleteData [21:21:47]Write to MH i2c: 01 00 00 E0 03 E3 [21:21:47]Write i2c OK [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: 01 [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: 01 07 00 [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: 01 07 00 E0 03 00 00 00 00 00 E1 0C D7 [21:21:47]RasterBufferAndPrint [21:21:47]line [21:21:47]line [21:21:47]line [21:21:47]line [21:21:47]line [21:21:47]written 0, free lines is 3303 [21:21:47]MH_Cut [21:21:47]Write to MH i2c: D1 01 00 E7 03 01 BC [21:21:47]Write i2c OK [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: D1 [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: D1 01 00 [21:21:47]MH_I2C_Read... [21:21:47]Read from MH i2c: D1 01 00 E7 03 00 BB [21:21:47]Write to MH i2c: 01 00 00 E8 03 EB [21:21:47]Write i2c OK [21:21:47]MH_I2C_Read... [21:21:47]OFD Sender: No OFD packet to send [21:21:47]*** Cut start [21:21:47]*** Partial cut [21:21:47]*** CUTSNS_PIN = 1 [21:21:48]*** CUTSNS_PIN = 0 [21:21:48]*** Brake cut motor [21:21:48]Read from MH i2c: 01 [21:21:48]MH_I2C_Read... [21:21:48]*** Stop cut motor [21:21:48]*** Cut end [21:21:48]Read from MH i2c: 01 07 00 [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: 01 07 00 E8 03 00 00 00 00 00 FF 0F 00 [21:21:48]process_action close_receipt done [21:21:48]requested_data is exist [21:21:48]produce_requested_data [21:21:48]requested_item fm.sn is exist - process it [21:21:48]wFMCommunicate request_size=4 [21:21:48]MH_SAM_APDU [21:21:48]CAPDU: 80 11 00 00 [21:21:48]Write to MH i2c: E2 08 00 E9 03 80 11 00 00 00 00 00 00 66 [21:21:48]Write i2c OK [21:21:48]MH_I2C_Read... [21:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:48]Read from MH i2c: E2 [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: E2 17 00 [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: E2 17 00 E9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [21:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:21:48]wFMCommunicate OK [21:21:48]requested_item fd.num is exist - process it [21:21:48]SAM_PROTO_GetFieldsCounters [21:21:48]wFMCommunicate request_size=4 [21:21:48]MH_SAM_APDU [21:21:48]CAPDU: 80 13 00 00 [21:21:48]Write to MH i2c: E2 08 00 EA 03 80 13 00 00 00 00 00 00 69 [21:21:48]Write i2c OK [21:21:48]MH_I2C_Read... [21:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:48]Read from MH i2c: E2 [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: E2 62 00 [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: E2 62 00 EA 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [21:21: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:48]wFMCommunicate OK [21:21:48]SAM_PROTO_GetFieldsCounters done [21:21:48]requested_item shift.num is exist - process it [21:21:48]requested_item shift.opened is exist - process it [21:21:48]req_shift_opened [21:21:48]FM_GetShiftState [21:21:48]SAM_PROTO_GetShiftState [21:21:48]wFMCommunicate request_size=4 [21:21:48]MH_SAM_APDU [21:21:48]CAPDU: 80 13 01 00 [21:21:48]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [21:21:48]Write i2c OK [21:21:48]MH_I2C_Read... [21:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:48]Read from MH i2c: E2 [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: E2 0E 00 [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 22 [21:21:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:21:48]wFMCommunicate OK [21:21:48]SAM_PROTO_GetShiftState done [21:21:48]FM_GetShiftState done [21:21:48]req_shift_opened done [21:21:48]requested_item shift.open_date is exist - process it [21:21:48]req_shift_open_date [21:21:48]req_shift_open_date done [21:21:48]produce_requested_data done [21:21:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139502,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:21:48]process_action_free close_receipt [21:21:48]json_value_free [21:21:48]json_value_free done [21:21:48]process_json_proto returns [21:21:48]Send response to host [21:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139502,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:21:48]free response buf [21:21:48]execute_script done [21:21:48]execute_script returns [21:21:48]free content buf [21:21:48]Sock 9.Close socket [21:21:48]Sock 9.Thread stoped [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24: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:23]accept exits with 7 [21:25:23]New connection [21:25:23]New thread 3067071844 created [21:25:23]Thread 3067215204 joined [21:25:23]Waiting for new connection... [21:25:23] Sock 7.Parse request [21:25:23]Sock 7.Check first char [21:25:23]Sock 7.First char is OK [21:25:23]request: POST /json_proto HTTP/1.0 [21:25:23]Method: POST [21:25:23]URL: /json_proto [21:25:23]Method is POST - this is cgi request [21:25:23]url: /json_proto [21:25:23]query_string will be loaded in cgi processing [21:25:23]execute_cgi json_proto POST (null) [21:25:23]execute_cgi path=json_proto method=POST [21:25:23]POST find Content-Length [21:25:23]Host: 172.17.45.67:8080 [21:25:23]Content-Length: 677 [21:25:23]Content-Type: application/json [21:25:23] [21:25:23]POST finish read [21:25:23]Found Content-Length = 677 [21:25:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [21:25:23]execute_script... [21:25: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)593346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [21:25:23]POST & json_proto [21:25:23]process_json_proto [21:25:23]json parsed OK: [21:25:23]protocol is kg_v1.0 [21:25:23]action value=close_receipt [21:25:23]process_action close_receipt [21:25:23]cmd_close_receipt [21:25:23]MH_GetDate [21:25:23]Write to MH i2c: F0 00 00 EC 03 DE [21:25:23]Write i2c OK [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: F0 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: F0 09 00 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: F0 09 00 EC 03 00 44 B8 C3 66 5F 7F 2B 66 7B [21:25:23]GetLastDocTimeStamp 1724102505 [21:25:23]current date 1724102724 [21:25:23]FM_GetShiftState [21:25:23]SAM_PROTO_GetShiftState [21:25:23]wFMCommunicate request_size=4 [21:25:23]MH_SAM_APDU [21:25:23]CAPDU: 80 13 01 00 [21:25:23]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [21:25:23]Write i2c OK [21:25:23]MH_I2C_Read... [21:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:23]Read from MH i2c: E2 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: E2 0E 00 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 24 [21:25:23]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:25:23]wFMCommunicate OK [21:25:23]SAM_PROTO_GetShiftState done [21:25:23]FM_GetShiftState done [21:25:23]opened in 1724027888 [21:25:23]opened+sec_in_day 1724114288 [21:25:23]quantity*price = 25018 [21:25:23]sum+1 = 25019 [21:25:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 338 19.08.2024 21:25 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139503 ФПД: 224390821056481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T212524&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139503&fm=224390821056481&tin=02508201610067®Number=0000000000092569&sum=25000 [21:25:24]StoreToDocumentArchive [21:25:24]shift 452 fd 139503 [21:25:24]save to /storage/0452/doc_00139503 [21:25:24]save last doc name /storage/0452/doc_00139503 to /storage/kkm_last_doc_name [21:25:24]save OK [21:25:24]Clear old archive folders... [21:25:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:24]tlvbuf is 00D1C8F0 [21:25:24]SAM_PROTO_ClearQueue [21:25:24]wFMCommunicate request_size=4 [21:25:24]MH_SAM_APDU [21:25:24]CAPDU: 80 09 00 00 [21:25:24]Write to MH i2c: E2 08 00 FA 03 80 09 00 00 00 00 00 00 6F [21:25:24]Write i2c OK [21:25:24]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [21:25:25]RAPDU: 90 00 [21:25:25]wFMCommunicate OK [21:25:25]SAM_PROTO_ClearQueue done [21:25:25]KKMCreateOFDPacket [21:25:25]OFDProtocolAddRootSTLVToBuf [21:25:25]FM_MakeSignedData [21:25:25]FM_MakeSignedData [21:25:25]SAM_PROTO_SignData [21:25:25]wFMCommunicate request_size=4 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 0D 01 02 [21:25:25]Write to MH i2c: E2 08 00 FB 03 80 0D 01 02 00 00 00 00 77 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [21:25:25]RAPDU: 90 00 [21:25:25]wFMCommunicate OK [21:25:25]wFMCommunicate request_size=255 [21:25:25]MH_SAM_APDU [21:25: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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 52 01 00 00 F4 03 04 00 44 B8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 20 02 00 35 04 06 00 CC [21:25:25]Write to MH i2c: E2 02 01 FC 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 52 01 00 00 F4 03 04 00 44 B8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 20 02 00 35 04 06 00 CC 00 00 28 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [21:25:25]RAPDU: 90 00 [21:25:25]wFMCommunicate OK [21:25:25]wFMCommunicate request_size=10 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 0D 02 02 05 15 0F 2E 0F E1 [21:25:25]Write to MH i2c: E2 0D 00 FD 03 80 0D 02 02 05 00 15 0F 2E 0F E1 00 00 C6 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [21:25:25]RAPDU: 90 00 [21:25:25]wFMCommunicate OK [21:25:25]wFMCommunicate request_size=4 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 0D 03 02 [21:25:25]Write to MH i2c: E2 08 00 FE 03 80 0D 03 02 00 00 00 00 7C [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 0B 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 0B 00 FE 03 00 C9 C5 22 1C 84 04 FF 10 90 00 E0 [21:25:25]RAPDU: C9 C5 22 1C 84 04 FF 10 90 00 [21:25:25]wFMCommunicate OK [21:25:25]SAM_PROTO_SignData done [21:25:25]FM_MakeSignedData done [21:25:25]CreateOFDProtocolMessage [21:25:25]wFMCommunicate request_size=4 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 11 00 00 [21:25:25]Write to MH i2c: E2 08 00 FF 03 80 11 00 00 00 00 00 00 7C [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 17 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 17 00 FF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [21:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:25:25]wFMCommunicate OK [21:25:25]CreateOFDProtocolMessage done [21:25:25]OFDSenderStorePacket 139503 [21:25:25]StoreOFDPacket docnum=139503 [21:25:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 73 60 07 01 18 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 52 01 00 00 F4 03 04 00 44 B8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 20 02 00 35 04 06 00 CC 15 0F 2E 0F E1 C9 C5 22 1C 84 04 FF 10 [21:25:25]CheckFolder [21:25:25]dirname=/storage/ofd_packets [21:25:25]CheckFolder done [21:25:25]ProducePacketName [21:25:25]name=ofd_packets/00139503 [21:25:25]NVStorageSaveData ofd_packets/00139503 [21:25:25]File name is /storage/ofd_packets/00139503 [21:25:25]Write 301 bytes [21:25:25]NVStorageSaveData done [21:25:25]OFDSenderStorePacket done [21:25:25]KKMCreateOFDPacket done [21:25:25]NVStorageSaveData kkm_last_timestamp [21:25:25]File name is /storage/kkm_last_timestamp [21:25:25]Write 4 bytes [21:25:25]NVStorageSaveData done [21:25:25]ExternCall_PrintAddStr [21:25:25]wPrintStart [21:25:25]Write to MH i2c: 01 00 00 00 04 04 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: 01 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: 01 07 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: 01 07 00 00 04 00 00 00 00 00 FF 0F 19 [21:25:25]RasterBufferAndPrint [21:25:25]line Счет N : (1)593346 [21:25:25]line ИНН: 02508201610067 [21:25:25]line Контрольно-Кассовый Чек [21:25:25]line ПРОДАЖА [21:25:25]line ТРК (МРК, ГНК) : 52 [21:25:25]line Товар: 2710124130 [21:25:25]line Аи-92-К-5 [21:25:25]line 3.690 * 67.80 [21:25:25]line = 250.18 [21:25:25]line НДС 12% НСП 1% [21:25:25]line > о реализуемом товаре [21:25:25]line ОКРУГЛЕНИЕ: -0.18 [21:25:25]line ИТОГО: 250.00 [21:25:25]line Внесено: 250.00 [21:25:25]line СДАЧА: 0.00 [21:25:25]line НСП 1% : 2.21 [21:25:25]line НДС 12% : 26.57 [21:25:25]line Наличными: 250.00 [21:25:25]line Безнал.: 0.00 [21:25:25]line Место: АЗС № 136 "Партнер Нефть" [21:25:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:25:25]line СНО: Общий режим [21:25:25]line Чек 338 19.08.2024 21:25 [21:25:25]line Смена: 452 ФФД: 1.0 [21:25:25]line ЗНМ: 0300000067 [21:25:25]line РНМ: 0000000000092569 [21:25:25]line Версия ККМ: 001 [21:25:25]line ФМ: 0000000000871776 [21:25:25]line ФД: 139503 [21:25:25]line ФПД: 224390821056481 [21:25:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T212524&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139503&fm=224390821056481&tin=02508201610067®Number=0000000000092569&sum=25000 [21:25:25]OFD Sender: Processing packet 139503 [packets to send 137, broken 136] [21:25:25]ProducePacketName [21:25:25]name=ofd_packets/00139503 [21:25:25]OFD Sender: To server: pG, [21:25:25]CommunicateWithHost lk.salyk.kg:30040 [21:25:25]ConnectInit lk.salyk.kg [21:25:25]written 0, free lines is 4095 [21:25:26]Connected sock=10 [21:25: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 37 36 0F 01 00 00 73 60 07 01 18 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 52 01 00 00 F4 03 04 00 44 B8 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 20 02 00 35 04 06 00 CC 15 0F 2E 0F E1 C9 C5 22 1C 84 04 FF 10 [21:25: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 37 36 4F 00 00 00 BE BA 47 00 5F 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 37 36 10 04 04 00 EF 20 02 00 F4 03 04 00 D9 5E C3 66 B6 04 01 00 00 5D ED EB 29 52 81 E7 C9 [21:25:26]CommunicateWithHost err = 0 [21:25:26]CheckOFDResponse [21:25:26]1017 (14) - 77093643461234 [21:25:26]1041 (16) - 0000000000871776 [21:25:26]1040 (4) - 139503 [21:25:26]1012 (4) - 19.08.2024 15:03 [21:25:26]1206 (1) - 0 [21:25:26]OFD Sender: Remove packet 139503 [21:25:26]ProducePacketName [21:25:26]name=ofd_packets/00139503 [21:25:26]NVStorageDeleteData [21:25:26]Write to MH i2c: 01 00 00 2B 04 2F [21:25:26]Write i2c OK [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: 01 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: 01 07 00 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: 01 07 00 2B 04 00 00 00 00 00 DF 0C 21 [21:25:26]RasterBufferAndPrint [21:25:26]line [21:25:26]line [21:25:26]line [21:25:26]line [21:25:26]line [21:25:26]written 0, free lines is 3300 [21:25:26]MH_Cut [21:25:26]Write to MH i2c: D1 01 00 32 04 01 08 [21:25:26]Write i2c OK [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: D1 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: D1 01 00 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: D1 01 00 32 04 00 07 [21:25:26]Write to MH i2c: 01 00 00 33 04 37 [21:25:26]Write i2c OK [21:25:26]MH_I2C_Read... [21:25:26]OFD Sender: No OFD packet to send [21:25:27]*** Cut start [21:25:27]*** Partial cut [21:25:27]*** CUTSNS_PIN = 1 [21:25:27]*** CUTSNS_PIN = 0 [21:25:27]*** Brake cut motor [21:25:27]Read from MH i2c: 01 [21:25:27]MH_I2C_Read... [21:25:27]*** Stop cut motor [21:25:27]*** Cut end [21:25:27]Read from MH i2c: 01 07 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 FF 0F 4C [21:25:27]process_action close_receipt done [21:25:27]requested_data is exist [21:25:27]produce_requested_data [21:25:27]requested_item fm.sn is exist - process it [21:25:27]wFMCommunicate request_size=4 [21:25:27]MH_SAM_APDU [21:25:27]CAPDU: 80 11 00 00 [21:25:27]Write to MH i2c: E2 08 00 34 04 80 11 00 00 00 00 00 00 B2 [21:25:27]Write i2c OK [21:25:27]MH_I2C_Read... [21:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:27]Read from MH i2c: E2 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 17 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 17 00 34 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [21:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:25:27]wFMCommunicate OK [21:25:27]requested_item fd.num is exist - process it [21:25:27]SAM_PROTO_GetFieldsCounters [21:25:27]wFMCommunicate request_size=4 [21:25:27]MH_SAM_APDU [21:25:27]CAPDU: 80 13 00 00 [21:25:27]Write to MH i2c: E2 08 00 35 04 80 13 00 00 00 00 00 00 B5 [21:25:27]Write i2c OK [21:25:27]MH_I2C_Read... [21:25:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:27]Read from MH i2c: E2 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 62 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 62 00 35 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [21:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:27]wFMCommunicate OK [21:25:27]SAM_PROTO_GetFieldsCounters done [21:25:27]requested_item shift.num is exist - process it [21:25:27]requested_item shift.opened is exist - process it [21:25:27]req_shift_opened [21:25:27]FM_GetShiftState [21:25:27]SAM_PROTO_GetShiftState [21:25:27]wFMCommunicate request_size=4 [21:25:27]MH_SAM_APDU [21:25:27]CAPDU: 80 13 01 00 [21:25:27]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [21:25:27]Write i2c OK [21:25:27]MH_I2C_Read... [21:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:27]Read from MH i2c: E2 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 0E 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6E [21:25:27]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:25:27]wFMCommunicate OK [21:25:27]SAM_PROTO_GetShiftState done [21:25:27]FM_GetShiftState done [21:25:27]req_shift_opened done [21:25:27]requested_item shift.open_date is exist - process it [21:25:27]req_shift_open_date [21:25:27]req_shift_open_date done [21:25:27]produce_requested_data done [21:25:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139503,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:25:27]process_action_free close_receipt [21:25:27]json_value_free [21:25:27]json_value_free done [21:25:27]process_json_proto returns [21:25:27]Send response to host [21:25:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139503,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:25:27]free response buf [21:25:27]execute_script done [21:25:27]execute_script returns [21:25:27]free content buf [21:25:27]Sock 7.Close socket [21:25:27]Sock 7.Thread stoped [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:33]accept exits with 9 [21:29:33]New connection [21:29:33]New thread 3067215204 created [21:29:33]Thread 3067071844 joined [21:29:33]Waiting for new connection... [21:29:33] Sock 9.Parse request [21:29:33]Sock 9.Check first char [21:29:33]Sock 9.First char is OK [21:29:33]request: POST /json_proto HTTP/1.0 [21:29:33]Method: POST [21:29:33]URL: /json_proto [21:29:33]Method is POST - this is cgi request [21:29:33]url: /json_proto [21:29:33]query_string will be loaded in cgi processing [21:29:33]execute_cgi json_proto POST (null) [21:29:33]execute_cgi path=json_proto method=POST [21:29:33]POST find Content-Length [21:29:33]Host: 172.17.45.67:8080 [21:29:33]Content-Length: 682 [21:29:33]Content-Type: application/json [21:29:33] [21:29:33]POST finish read [21:29:33]Found Content-Length = 682 [21:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:33]execute_script... [21:29: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)593347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:33]POST & json_proto [21:29:33]process_json_proto [21:29:33]json parsed OK: [21:29:33]protocol is kg_v1.0 [21:29:33]action value=close_receipt [21:29:33]process_action close_receipt [21:29:33]cmd_close_receipt [21:29:33]MH_GetDate [21:29:33]Write to MH i2c: F0 00 00 37 04 2A [21:29:33]Write i2c OK [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: F0 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: F0 09 00 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: F0 09 00 37 04 00 3E B9 C3 66 5F 7F 2B 66 C2 [21:29:33]GetLastDocTimeStamp 1724102724 [21:29:33]current date 1724102974 [21:29:33]FM_GetShiftState [21:29:33]SAM_PROTO_GetShiftState [21:29:33]wFMCommunicate request_size=4 [21:29:33]MH_SAM_APDU [21:29:33]CAPDU: 80 13 01 00 [21:29:33]Write to MH i2c: E2 08 00 38 04 80 13 01 00 00 00 00 00 B9 [21:29:33]Write i2c OK [21:29:33]MH_I2C_Read... [21:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:33]Read from MH i2c: E2 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: E2 0E 00 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: E2 0E 00 38 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 70 [21:29:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:29:33]wFMCommunicate OK [21:29:33]SAM_PROTO_GetShiftState done [21:29:33]FM_GetShiftState done [21:29:33]opened in 1724027888 [21:29:33]opened+sec_in_day 1724114288 [21:29:33]quantity*price = 100005 [21:29:33]sum+1 = 100006 [21:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 339 19.08.2024 21:29 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139504 ФПД: 148165966149905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T212934&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139504&fm=148165966149905&tin=02508201610067®Number=0000000000092569&sum=100000 [21:29:35]StoreToDocumentArchive [21:29:35]shift 452 fd 139504 [21:29:35]save to /storage/0452/doc_00139504 [21:29:35]save last doc name /storage/0452/doc_00139504 to /storage/kkm_last_doc_name [21:29:35]save OK [21:29:35]Clear old archive folders... [21:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:35]tlvbuf is 00D27B40 [21:29:35]SAM_PROTO_ClearQueue [21:29:35]wFMCommunicate request_size=4 [21:29:35]MH_SAM_APDU [21:29:35]CAPDU: 80 09 00 00 [21:29:35]Write to MH i2c: E2 08 00 45 04 80 09 00 00 00 00 00 00 BB [21:29:35]Write i2c OK [21:29:35]MH_I2C_Read... [21:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:35]Read from MH i2c: E2 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 03 00 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [21:29:35]RAPDU: 90 00 [21:29:35]wFMCommunicate OK [21:29:35]SAM_PROTO_ClearQueue done [21:29:35]KKMCreateOFDPacket [21:29:35]OFDProtocolAddRootSTLVToBuf [21:29:35]FM_MakeSignedData [21:29:35]FM_MakeSignedData [21:29:35]SAM_PROTO_SignData [21:29:35]wFMCommunicate request_size=4 [21:29:35]MH_SAM_APDU [21:29:35]CAPDU: 80 0D 01 02 [21:29:35]Write to MH i2c: E2 08 00 46 04 80 0D 01 02 00 00 00 00 C3 [21:29:35]Write i2c OK [21:29:35]MH_I2C_Read... [21:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:35]Read from MH i2c: E2 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 03 00 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [21:29:35]RAPDU: 90 00 [21:29:35]wFMCommunicate OK [21:29:35]wFMCommunicate request_size=255 [21:29:35]MH_SAM_APDU [21:29: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 3E B9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 20 02 00 35 04 06 00 86 [21:29:35]Write to MH i2c: E2 02 01 47 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 3E B9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 20 02 00 35 04 06 00 86 00 00 AC [21:29:35]Write i2c OK [21:29:35]MH_I2C_Read... [21:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:35]Read from MH i2c: E2 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 03 00 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [21:29:35]RAPDU: 90 00 [21:29:35]wFMCommunicate OK [21:29:35]wFMCommunicate request_size=10 [21:29:35]MH_SAM_APDU [21:29:35]CAPDU: 80 0D 02 02 05 C1 93 C7 B9 11 [21:29:35]Write to MH i2c: E2 0D 00 48 04 80 0D 02 02 05 00 C1 93 C7 B9 11 00 00 B5 [21:29:35]Write i2c OK [21:29:35]MH_I2C_Read... [21:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:35]Read from MH i2c: E2 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 03 00 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 03 00 48 04 00 90 00 C0 [21:29:35]RAPDU: 90 00 [21:29:35]wFMCommunicate OK [21:29:35]wFMCommunicate request_size=4 [21:29:35]MH_SAM_APDU [21:29:35]CAPDU: 80 0D 03 02 [21:29:35]Write to MH i2c: E2 08 00 49 04 80 0D 03 02 00 00 00 00 C8 [21:29:35]Write i2c OK [21:29:35]MH_I2C_Read... [21:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:35]Read from MH i2c: E2 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 0B 00 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 0B 00 49 04 00 3B A0 E4 DA 48 69 B2 BC 90 00 81 [21:29:35]RAPDU: 3B A0 E4 DA 48 69 B2 BC 90 00 [21:29:35]wFMCommunicate OK [21:29:35]SAM_PROTO_SignData done [21:29:35]FM_MakeSignedData done [21:29:35]CreateOFDProtocolMessage [21:29:35]wFMCommunicate request_size=4 [21:29:35]MH_SAM_APDU [21:29:35]CAPDU: 80 11 00 00 [21:29:35]Write to MH i2c: E2 08 00 4A 04 80 11 00 00 00 00 00 00 C8 [21:29:35]Write i2c OK [21:29:35]MH_I2C_Read... [21:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:35]Read from MH i2c: E2 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 17 00 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: E2 17 00 4A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [21:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:29:35]wFMCommunicate OK [21:29:35]CreateOFDProtocolMessage done [21:29:35]OFDSenderStorePacket 139504 [21:29:35]StoreOFDPacket docnum=139504 [21:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 F9 07 01 7A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 3E B9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 20 02 00 35 04 06 00 86 C1 93 C7 B9 11 3B A0 E4 DA 48 69 B2 BC [21:29:35]CheckFolder [21:29:35]dirname=/storage/ofd_packets [21:29:35]CheckFolder done [21:29:35]ProducePacketName [21:29:35]name=ofd_packets/00139504 [21:29:35]NVStorageSaveData ofd_packets/00139504 [21:29:35]File name is /storage/ofd_packets/00139504 [21:29:35]Write 301 bytes [21:29:35]NVStorageSaveData done [21:29:35]OFDSenderStorePacket done [21:29:35]KKMCreateOFDPacket done [21:29:35]NVStorageSaveData kkm_last_timestamp [21:29:35]File name is /storage/kkm_last_timestamp [21:29:35]Write 4 bytes [21:29:35]NVStorageSaveData done [21:29:35]ExternCall_PrintAddStr [21:29:35]wPrintStart [21:29:35]Write to MH i2c: 01 00 00 4B 04 4F [21:29:35]Write i2c OK [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: 01 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: 01 07 00 [21:29:35]MH_I2C_Read... [21:29:35]Read from MH i2c: 01 07 00 4B 04 00 00 00 00 00 FF 0F 64 [21:29:35]RasterBufferAndPrint [21:29:35]line Счет N : (1)593347 [21:29:35]line ИНН: 02508201610067 [21:29:35]line Контрольно-Кассовый Чек [21:29:35]line ПРОДАЖА [21:29:35]line ТРК (МРК, ГНК) : 42 [21:29:35]line Товар: 2710124130 [21:29:35]line Аи-92-К-5 [21:29:35]line 14.750 * 67.80 [21:29:35]line = 1000.05 [21:29:35]line НДС 12% НСП 1% [21:29:35]line > о реализуемом товаре [21:29:35]line ОКРУГЛЕНИЕ: -0.05 [21:29:35]line ИТОГО: 1000.00 [21:29:35]line Внесено: 1000.00 [21:29:35]line СДАЧА: 0.00 [21:29:35]line НСП 1% : 8.85 [21:29:35]line НДС 12% : 106.20 [21:29:35]line Наличными: 1000.00 [21:29:35]line Безнал.: 0.00 [21:29:35]line Место: АЗС № 136 "Партнер Нефть" [21:29:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:29:35]line СНО: Общий режим [21:29:35]line Чек 339 19.08.2024 21:29 [21:29:35]line Смена: 452 ФФД: 1.0 [21:29:35]line ЗНМ: 0300000067 [21:29:35]line РНМ: 0000000000092569 [21:29:35]line Версия ККМ: 001 [21:29:35]line ФМ: 0000000000871776 [21:29:35]line ФД: 139504 [21:29:35]line ФПД: 148165966149905 [21:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T212934&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139504&fm=148165966149905&tin=02508201610067®Number=0000000000092569&sum=100000 [21:29:35]OFD Sender: Processing packet 139504 [packets to send 137, broken 136] [21:29:35]ProducePacketName [21:29:35]name=ofd_packets/00139504 [21:29:35]OFD Sender: To server: pG, [21:29:35]CommunicateWithHost lk.salyk.kg:30040 [21:29:35]ConnectInit lk.salyk.kg [21:29:35]written 0, free lines is 4095 [21:29:36]Connected sock=10 [21:29:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 F9 07 01 7A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 3E B9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 20 02 00 35 04 06 00 86 C1 93 C7 B9 11 3B A0 E4 DA 48 69 B2 BC [21:29: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 37 36 4F 00 00 00 A2 8D 47 00 EE 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 37 36 10 04 04 00 F0 20 02 00 F4 03 04 00 D3 5F C3 66 B6 04 01 00 00 76 B1 D8 F3 2F 6D 37 BB [21:29:36]CommunicateWithHost err = 0 [21:29:36]CheckOFDResponse [21:29:36]1017 (14) - 77093643461234 [21:29:36]1041 (16) - 0000000000871776 [21:29:36]1040 (4) - 139504 [21:29:36]1012 (4) - 19.08.2024 15:08 [21:29:36]1206 (1) - 0 [21:29:36]OFD Sender: Remove packet 139504 [21:29:36]ProducePacketName [21:29:36]name=ofd_packets/00139504 [21:29:36]NVStorageDeleteData [21:29:36]Write to MH i2c: 01 00 00 76 04 7A [21:29:36]Write i2c OK [21:29:36]MH_I2C_Read... [21:29:36]Read from MH i2c: 01 [21:29:36]MH_I2C_Read... [21:29:36]Read from MH i2c: 01 07 00 [21:29:36]MH_I2C_Read... [21:29:36]Read from MH i2c: 01 07 00 76 04 00 00 00 00 00 E0 0C 6D [21:29:36]RasterBufferAndPrint [21:29:36]line [21:29:36]line [21:29:36]line [21:29:36]line [21:29:36]line [21:29:36]written 0, free lines is 3302 [21:29:36]MH_Cut [21:29:36]Write to MH i2c: D1 01 00 7D 04 01 53 [21:29:36]Write i2c OK [21:29:36]MH_I2C_Read... [21:29:36]Read from MH i2c: D1 [21:29:36]MH_I2C_Read... [21:29:36]Read from MH i2c: D1 01 00 [21:29:36]MH_I2C_Read... [21:29:36]Read from MH i2c: D1 01 00 7D 04 00 52 [21:29:36]Write to MH i2c: 01 00 00 7E 04 82 [21:29:36]Write i2c OK [21:29:36]MH_I2C_Read... [21:29:36]OFD Sender: No OFD packet to send [21:29:37]*** Cut start [21:29:37]*** Partial cut [21:29:37]*** CUTSNS_PIN = 1 [21:29:37]*** CUTSNS_PIN = 0 [21:29:37]*** Brake cut motor [21:29:37]Read from MH i2c: 01 [21:29:37]MH_I2C_Read... [21:29:37]*** Stop cut motor [21:29:37]*** Cut end [21:29:37]Read from MH i2c: 01 07 00 [21:29:37]MH_I2C_Read... [21:29:37]Read from MH i2c: 01 07 00 7E 04 00 00 00 00 00 FF 0F 97 [21:29:37]process_action close_receipt done [21:29:37]requested_data is exist [21:29:37]produce_requested_data [21:29:37]requested_item fm.sn is exist - process it [21:29:37]wFMCommunicate request_size=4 [21:29:37]MH_SAM_APDU [21:29:37]CAPDU: 80 11 00 00 [21:29:37]Write to MH i2c: E2 08 00 7F 04 80 11 00 00 00 00 00 00 FD [21:29:37]Write i2c OK [21:29:37]MH_I2C_Read... [21:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:37]Read from MH i2c: E2 [21:29:37]MH_I2C_Read... [21:29:37]Read from MH i2c: E2 17 00 [21:29:37]MH_I2C_Read... [21:29:37]Read from MH i2c: E2 17 00 7F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [21:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:29:37]wFMCommunicate OK [21:29:37]requested_item fd.num is exist - process it [21:29:37]SAM_PROTO_GetFieldsCounters [21:29:37]wFMCommunicate request_size=4 [21:29:37]MH_SAM_APDU [21:29:37]CAPDU: 80 13 00 00 [21:29:37]Write to MH i2c: E2 08 00 80 04 80 13 00 00 00 00 00 00 00 [21:29:37]Write i2c OK [21:29:37]MH_I2C_Read... [21:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:37]Read from MH i2c: E2 [21:29:37]MH_I2C_Read... [21:29:37]Read from MH i2c: E2 62 00 [21:29:37]MH_I2C_Read... [21:29:37]Read from MH i2c: E2 62 00 80 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [21:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:37]wFMCommunicate OK [21:29:37]SAM_PROTO_GetFieldsCounters done [21:29:37]requested_item shift.num is exist - process it [21:29:37]requested_item shift.opened is exist - process it [21:29:37]req_shift_opened [21:29:37]FM_GetShiftState [21:29:37]SAM_PROTO_GetShiftState [21:29:37]wFMCommunicate request_size=4 [21:29:37]MH_SAM_APDU [21:29:37]CAPDU: 80 13 01 00 [21:29:37]Write to MH i2c: E2 08 00 81 04 80 13 01 00 00 00 00 00 02 [21:29:37]Write i2c OK [21:29:37]MH_I2C_Read... [21:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:37]Read from MH i2c: E2 [21:29:37]MH_I2C_Read... [21:29:37]Read from MH i2c: E2 0E 00 [21:29:37]MH_I2C_Read... [21:29:37]Read from MH i2c: E2 0E 00 81 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B9 [21:29:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:29:37]wFMCommunicate OK [21:29:37]SAM_PROTO_GetShiftState done [21:29:37]FM_GetShiftState done [21:29:37]req_shift_opened done [21:29:37]requested_item shift.open_date is exist - process it [21:29:37]req_shift_open_date [21:29:37]req_shift_open_date done [21:29:37]produce_requested_data done [21:29:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139504,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:29:37]process_action_free close_receipt [21:29:37]json_value_free [21:29:37]json_value_free done [21:29:37]process_json_proto returns [21:29:37]Send response to host [21:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139504,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:29:37]free response buf [21:29:37]execute_script done [21:29:37]execute_script returns [21:29:37]free content buf [21:29:37]Sock 9.Close socket [21:29:37]Sock 9.Thread stoped [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:23]accept exits with 7 [21:32:23]New connection [21:32:23]New thread 3067071844 created [21:32:23]Thread 3067215204 joined [21:32:23]Waiting for new connection... [21:32:23] Sock 7.Parse request [21:32:23]Sock 7.Check first char [21:32:23]Sock 7.First char is OK [21:32:23]request: POST /json_proto HTTP/1.0 [21:32:23]Method: POST [21:32:23]URL: /json_proto [21:32:23]Method is POST - this is cgi request [21:32:23]url: /json_proto [21:32:23]query_string will be loaded in cgi processing [21:32:23]execute_cgi json_proto POST (null) [21:32:23]execute_cgi path=json_proto method=POST [21:32:23]POST find Content-Length [21:32:23]Host: 172.17.45.67:8080 [21:32:23]Content-Length: 682 [21:32:23]Content-Type: application/json [21:32:23] [21:32:23]POST finish read [21:32:23]Found Content-Length = 682 [21:32:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "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" ] } } [21:32:23]execute_script... [21:32: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)593348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "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" ] } } [21:32:23]POST & json_proto [21:32:23]process_json_proto [21:32:24]json parsed OK: [21:32:24]protocol is kg_v1.0 [21:32:24]action value=close_receipt [21:32:24]process_action close_receipt [21:32:24]cmd_close_receipt [21:32:24]MH_GetDate [21:32:24]Write to MH i2c: F0 00 00 82 04 75 [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: F0 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: F0 09 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: F0 09 00 82 04 00 E8 B9 C3 66 5F 7F 2B 66 B7 [21:32:24]GetLastDocTimeStamp 1724102974 [21:32:24]current date 1724103144 [21:32:24]FM_GetShiftState [21:32:24]SAM_PROTO_GetShiftState [21:32:24]wFMCommunicate request_size=4 [21:32:24]MH_SAM_APDU [21:32:24]CAPDU: 80 13 01 00 [21:32:24]Write to MH i2c: E2 08 00 83 04 80 13 01 00 00 00 00 00 04 [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:24]Read from MH i2c: E2 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 0E 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 0E 00 83 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BB [21:32:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:32:24]wFMCommunicate OK [21:32:24]SAM_PROTO_GetShiftState done [21:32:24]FM_GetShiftState done [21:32:24]opened in 1724027888 [21:32:24]opened+sec_in_day 1724114288 [21:32:24]quantity*price = 170066 [21:32:24]sum+1 = 170067 [21:32:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 340 19.08.2024 21:32 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139505 ФПД: 96842398086198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T213224&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139505&fm=96842398086198&tin=02508201610067®Number=0000000000092569&sum=170000 [21:32:25]StoreToDocumentArchive [21:32:25]shift 452 fd 139505 [21:32:25]save to /storage/0452/doc_00139505 [21:32:25]save last doc name /storage/0452/doc_00139505 to /storage/kkm_last_doc_name [21:32:25]save OK [21:32:25]Clear old archive folders... [21:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:25]tlvbuf is B6EE8A20 [21:32:25]SAM_PROTO_ClearQueue [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 09 00 00 [21:32:25]Write to MH i2c: E2 08 00 90 04 80 09 00 00 00 00 00 00 06 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 03 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [21:32:25]RAPDU: 90 00 [21:32:25]wFMCommunicate OK [21:32:25]SAM_PROTO_ClearQueue done [21:32:25]KKMCreateOFDPacket [21:32:25]OFDProtocolAddRootSTLVToBuf [21:32:25]FM_MakeSignedData [21:32:25]FM_MakeSignedData [21:32:25]SAM_PROTO_SignData [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 0D 01 02 [21:32:25]Write to MH i2c: E2 08 00 91 04 80 0D 01 02 00 00 00 00 0E [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 03 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [21:32:25]RAPDU: 90 00 [21:32:25]wFMCommunicate OK [21:32:25]wFMCommunicate request_size=255 [21:32:25]MH_SAM_APDU [21:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 54 01 00 00 F4 03 04 00 E8 B9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 20 02 00 35 04 06 00 58 [21:32:25]Write to MH i2c: E2 02 01 92 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 54 01 00 00 F4 03 04 00 E8 B9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 20 02 00 35 04 06 00 58 00 00 66 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 03 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [21:32:25]RAPDU: 90 00 [21:32:25]wFMCommunicate OK [21:32:25]wFMCommunicate request_size=10 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 0D 02 02 05 13 E0 BC B4 36 [21:32:25]Write to MH i2c: E2 0D 00 93 04 80 0D 02 02 05 00 13 E0 BC B4 36 00 00 B4 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 03 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 03 00 93 04 00 90 00 0B [21:32:25]RAPDU: 90 00 [21:32:25]wFMCommunicate OK [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 0D 03 02 [21:32:25]Write to MH i2c: E2 08 00 94 04 80 0D 03 02 00 00 00 00 13 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 0B 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 0B 00 94 04 00 E3 D7 69 58 3C AC 82 94 90 00 8D [21:32:25]RAPDU: E3 D7 69 58 3C AC 82 94 90 00 [21:32:25]wFMCommunicate OK [21:32:25]SAM_PROTO_SignData done [21:32:25]FM_MakeSignedData done [21:32:25]CreateOFDProtocolMessage [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 11 00 00 [21:32:25]Write to MH i2c: E2 08 00 95 04 80 11 00 00 00 00 00 00 13 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 17 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 17 00 95 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [21:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:32:25]wFMCommunicate OK [21:32:25]CreateOFDProtocolMessage done [21:32:25]OFDSenderStorePacket 139505 [21:32:25]StoreOFDPacket docnum=139505 [21:32:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 1D 07 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 54 01 00 00 F4 03 04 00 E8 B9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 20 02 00 35 04 06 00 58 13 E0 BC B4 36 E3 D7 69 58 3C AC 82 94 [21:32:25]CheckFolder [21:32:25]dirname=/storage/ofd_packets [21:32:25]CheckFolder done [21:32:25]ProducePacketName [21:32:25]name=ofd_packets/00139505 [21:32:25]NVStorageSaveData ofd_packets/00139505 [21:32:25]File name is /storage/ofd_packets/00139505 [21:32:25]Write 301 bytes [21:32:25]NVStorageSaveData done [21:32:25]OFDSenderStorePacket done [21:32:25]KKMCreateOFDPacket done [21:32:25]NVStorageSaveData kkm_last_timestamp [21:32:25]File name is /storage/kkm_last_timestamp [21:32:25]Write 4 bytes [21:32:25]NVStorageSaveData done [21:32:25]ExternCall_PrintAddStr [21:32:25]wPrintStart [21:32:25]Write to MH i2c: 01 00 00 96 04 9A [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 07 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 07 00 96 04 00 00 00 00 00 FF 0F AF [21:32:25]RasterBufferAndPrint [21:32:25]line Счет N : (1)593348 [21:32:25]line ИНН: 02508201610067 [21:32:25]line Контрольно-Кассовый Чек [21:32:25]line ПРОДАЖА [21:32:25]line ТРК (МРК, ГНК) : 51 [21:32:25]line Товар: 2710124500 [21:32:25]line Аи-95-К-5 [21:32:25]line 22.920 * 74.20 [21:32:25]line = 1700.66 [21:32:25]line НДС 12% НСП 1% [21:32:25]line > о реализуемом товаре [21:32:25]line ОКРУГЛЕНИЕ: -0.66 [21:32:25]line ИТОГО: 1700.00 [21:32:25]line Внесено: 1700.00 [21:32:25]line СДАЧА: 0.00 [21:32:25]line НСП 1% : 15.05 [21:32:25]line НДС 12% : 180.60 [21:32:25]line Наличными: 1700.00 [21:32:25]line Безнал.: 0.00 [21:32:25]line Место: АЗС № 136 "Партнер Нефть" [21:32:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:32:25]line СНО: Общий режим [21:32:25]line Чек 340 19.08.2024 21:32 [21:32:25]line Смена: 452 ФФД: 1.0 [21:32:25]line ЗНМ: 0300000067 [21:32:25]line РНМ: 0000000000092569 [21:32:25]line Версия ККМ: 001 [21:32:25]line ФМ: 0000000000871776 [21:32:25]line ФД: 139505 [21:32:25]line ФПД: 96842398086198 [21:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T213224&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139505&fm=96842398086198&tin=02508201610067®Number=0000000000092569&sum=170000 [21:32:26]OFD Sender: Processing packet 139505 [packets to send 137, broken 136] [21:32:26]ProducePacketName [21:32:26]name=ofd_packets/00139505 [21:32:26]OFD Sender: To server: pG, [21:32:26]CommunicateWithHost lk.salyk.kg:30040 [21:32:26]ConnectInit lk.salyk.kg [21:32:26]written 0, free lines is 4095 [21:32:26]Connected sock=10 [21:32: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 37 36 0F 01 00 00 92 1D 07 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 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 54 01 00 00 F4 03 04 00 E8 B9 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 20 02 00 35 04 06 00 58 13 E0 BC B4 36 E3 D7 69 58 3C AC 82 94 [21:32: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 37 36 4F 00 00 00 CE 99 47 00 CC 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 37 36 10 04 04 00 F1 20 02 00 F4 03 04 00 7D 60 C3 66 B6 04 01 00 00 E0 15 A9 0E EF 06 00 87 [21:32:26]CommunicateWithHost err = 0 [21:32:26]CheckOFDResponse [21:32:26]1017 (14) - 77093643461234 [21:32:26]1041 (16) - 0000000000871776 [21:32:26]1040 (4) - 139505 [21:32:26]1012 (4) - 19.08.2024 15:10 [21:32:26]1206 (1) - 0 [21:32:26]OFD Sender: Remove packet 139505 [21:32:26]ProducePacketName [21:32:26]name=ofd_packets/00139505 [21:32:26]NVStorageDeleteData [21:32:26]Write to MH i2c: 01 00 00 C1 04 C5 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 07 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 07 00 C1 04 00 00 00 00 00 D9 0C B1 [21:32:26]RasterBufferAndPrint [21:32:26]line [21:32:26]line [21:32:26]line [21:32:26]line [21:32:26]line [21:32:26]written 0, free lines is 3296 [21:32:26]MH_Cut [21:32:26]Write to MH i2c: D1 01 00 C8 04 01 9E [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: D1 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: D1 01 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: D1 01 00 C8 04 00 9D [21:32:26]Write to MH i2c: 01 00 00 C9 04 CD [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]OFD Sender: No OFD packet to send [21:32:27]*** Cut start [21:32:27]*** Partial cut [21:32:27]*** CUTSNS_PIN = 1 [21:32:27]*** CUTSNS_PIN = 0 [21:32:27]*** Brake cut motor [21:32:27]Read from MH i2c: 01 [21:32:27]MH_I2C_Read... [21:32:27]*** Stop cut motor [21:32:27]*** Cut end [21:32:27]Read from MH i2c: 01 07 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 07 00 C9 04 00 00 00 00 00 FF 0F E2 [21:32:27]process_action close_receipt done [21:32:27]requested_data is exist [21:32:27]produce_requested_data [21:32:27]requested_item fm.sn is exist - process it [21:32:27]wFMCommunicate request_size=4 [21:32:27]MH_SAM_APDU [21:32:27]CAPDU: 80 11 00 00 [21:32:27]Write to MH i2c: E2 08 00 CA 04 80 11 00 00 00 00 00 00 48 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 17 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 17 00 CA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9F [21:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:32:27]wFMCommunicate OK [21:32:27]requested_item fd.num is exist - process it [21:32:27]SAM_PROTO_GetFieldsCounters [21:32:27]wFMCommunicate request_size=4 [21:32:27]MH_SAM_APDU [21:32:27]CAPDU: 80 13 00 00 [21:32:27]Write to MH i2c: E2 08 00 CB 04 80 13 00 00 00 00 00 00 4B [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:27]Read from MH i2c: E2 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 62 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: E2 62 00 CB 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F1 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [21:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F1 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:27]wFMCommunicate OK [21:32:27]SAM_PROTO_GetFieldsCounters done [21:32:27]requested_item shift.num is exist - process it [21:32:27]requested_item shift.opened is exist - process it [21:32:28]req_shift_opened [21:32:28]FM_GetShiftState [21:32:28]SAM_PROTO_GetShiftState [21:32:28]wFMCommunicate request_size=4 [21:32:28]MH_SAM_APDU [21:32:28]CAPDU: 80 13 01 00 [21:32:28]Write to MH i2c: E2 08 00 CC 04 80 13 01 00 00 00 00 00 4D [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:28]Read from MH i2c: E2 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 0E 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 0E 00 CC 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 04 [21:32:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:32:28]wFMCommunicate OK [21:32:28]SAM_PROTO_GetShiftState done [21:32:28]FM_GetShiftState done [21:32:28]req_shift_opened done [21:32:28]requested_item shift.open_date is exist - process it [21:32:28]req_shift_open_date [21:32:28]req_shift_open_date done [21:32:28]produce_requested_data done [21:32:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139505,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:32:28]process_action_free close_receipt [21:32:28]json_value_free [21:32:28]json_value_free done [21:32:28]process_json_proto returns [21:32:28]Send response to host [21:32:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139505,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:32:28]free response buf [21:32:28]execute_script done [21:32:28]execute_script returns [21:32:28]free content buf [21:32:28]Sock 7.Close socket [21:32:28]Sock 7.Thread stoped [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:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [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]accept exits with 9 [21:35:02]New connection [21:35:02]New thread 3067215204 created [21:35:02]Thread 3067071844 joined [21:35:02]Waiting for new connection... [21:35:02] Sock 9.Parse request [21:35:02]Sock 9.Check first char [21:35:02]Sock 9.First char is OK [21:35:02]request: POST /json_proto HTTP/1.0 [21:35:02]Method: POST [21:35:02]URL: /json_proto [21:35:02]Method is POST - this is cgi request [21:35:02]url: /json_proto [21:35:02]query_string will be loaded in cgi processing [21:35:02]execute_cgi json_proto POST (null) [21:35:02]execute_cgi path=json_proto method=POST [21:35:02]POST find Content-Length [21:35:02]Host: 172.17.45.67:8080 [21:35:02]Content-Length: 677 [21:35:02]Content-Type: application/json [21:35:02] [21:35:02]POST finish read [21:35:02]Found Content-Length = 677 [21:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:35:02]execute_script... [21:35: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)593349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:35:02]POST & json_proto [21:35:02]process_json_proto [21:35:02]json parsed OK: [21:35:02]protocol is kg_v1.0 [21:35:02]action value=close_receipt [21:35:02]process_action close_receipt [21:35:02]cmd_close_receipt [21:35:02]MH_GetDate [21:35:02]Write to MH i2c: F0 00 00 CD 04 C0 [21:35:02]Write i2c OK [21:35:02]MH_I2C_Read... [21:35:02]Read from MH i2c: F0 [21:35:02]MH_I2C_Read... [21:35:02]Read from MH i2c: F0 09 00 [21:35:02]MH_I2C_Read... [21:35:02]Read from MH i2c: F0 09 00 CD 04 00 86 BA C3 66 5F 7F 2B 66 A1 [21:35:02]GetLastDocTimeStamp 1724103144 [21:35:02]current date 1724103302 [21:35:02]FM_GetShiftState [21:35:02]SAM_PROTO_GetShiftState [21:35:02]wFMCommunicate request_size=4 [21:35:02]MH_SAM_APDU [21:35:02]CAPDU: 80 13 01 00 [21:35:02]Write to MH i2c: E2 08 00 CE 04 80 13 01 00 00 00 00 00 4F [21:35:02]Write i2c OK [21:35:02]MH_I2C_Read... [21:35:02]OFD Sender: No OFD packet to send [21:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:02]Read from MH i2c: E2 [21:35:02]MH_I2C_Read... [21:35:02]Read from MH i2c: E2 0E 00 [21:35:02]MH_I2C_Read... [21:35:02]Read from MH i2c: E2 0E 00 CE 04 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 06 [21:35:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:35:02]wFMCommunicate OK [21:35:02]SAM_PROTO_GetShiftState done [21:35:02]FM_GetShiftState done [21:35:02]opened in 1724027888 [21:35:02]opened+sec_in_day 1724114288 [21:35:02]quantity*price = 50036 [21:35:02]sum+1 = 50037 [21:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 341 19.08.2024 21:35 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139506 ФПД: 250655214666323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T213502&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139506&fm=250655214666323&tin=02508201610067®Number=0000000000092569&sum=50000 [21:35:03]StoreToDocumentArchive [21:35:03]shift 452 fd 139506 [21:35:03]save to /storage/0452/doc_00139506 [21:35:03]save last doc name /storage/0452/doc_00139506 to /storage/kkm_last_doc_name [21:35:03]save OK [21:35:03]Clear old archive folders... [21:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:03]tlvbuf is 00D1A780 [21:35:03]SAM_PROTO_ClearQueue [21:35:03]wFMCommunicate request_size=4 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 09 00 00 [21:35:03]Write to MH i2c: E2 08 00 DB 04 80 09 00 00 00 00 00 00 51 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 03 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [21:35:03]RAPDU: 90 00 [21:35:03]wFMCommunicate OK [21:35:03]SAM_PROTO_ClearQueue done [21:35:03]KKMCreateOFDPacket [21:35:03]OFDProtocolAddRootSTLVToBuf [21:35:03]FM_MakeSignedData [21:35:03]FM_MakeSignedData [21:35:03]SAM_PROTO_SignData [21:35:03]wFMCommunicate request_size=4 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 0D 01 02 [21:35:03]Write to MH i2c: E2 08 00 DC 04 80 0D 01 02 00 00 00 00 59 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 03 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [21:35:03]RAPDU: 90 00 [21:35:03]wFMCommunicate OK [21:35:03]wFMCommunicate request_size=255 [21:35:03]MH_SAM_APDU [21:35: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 55 01 00 00 F4 03 04 00 86 BA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 20 02 00 35 04 06 00 E3 [21:35:03]Write to MH i2c: E2 02 01 DD 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 55 01 00 00 F4 03 04 00 86 BA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 20 02 00 35 04 06 00 E3 00 00 5D [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 03 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [21:35:03]RAPDU: 90 00 [21:35:03]wFMCommunicate OK [21:35:03]wFMCommunicate request_size=10 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 0D 02 02 05 F8 37 08 02 53 [21:35:03]Write to MH i2c: E2 0D 00 DE 04 80 0D 02 02 05 00 F8 37 08 02 53 00 00 F2 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 03 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [21:35:03]RAPDU: 90 00 [21:35:03]wFMCommunicate OK [21:35:03]wFMCommunicate request_size=4 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 0D 03 02 [21:35:03]Write to MH i2c: E2 08 00 DF 04 80 0D 03 02 00 00 00 00 5E [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 0B 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 0B 00 DF 04 00 C4 CE E4 E6 64 11 DA B4 90 00 BE [21:35:03]RAPDU: C4 CE E4 E6 64 11 DA B4 90 00 [21:35:03]wFMCommunicate OK [21:35:03]SAM_PROTO_SignData done [21:35:03]FM_MakeSignedData done [21:35:03]CreateOFDProtocolMessage [21:35:03]wFMCommunicate request_size=4 [21:35:03]MH_SAM_APDU [21:35:03]CAPDU: 80 11 00 00 [21:35:03]Write to MH i2c: E2 08 00 E0 04 80 11 00 00 00 00 00 00 5E [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:03]Read from MH i2c: E2 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 17 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: E2 17 00 E0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [21:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:35:03]wFMCommunicate OK [21:35:03]CreateOFDProtocolMessage done [21:35:03]OFDSenderStorePacket 139506 [21:35:03]StoreOFDPacket docnum=139506 [21:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F BA 07 01 50 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 55 01 00 00 F4 03 04 00 86 BA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 20 02 00 35 04 06 00 E3 F8 37 08 02 53 C4 CE E4 E6 64 11 DA B4 [21:35:03]CheckFolder [21:35:03]dirname=/storage/ofd_packets [21:35:03]CheckFolder done [21:35:03]ProducePacketName [21:35:03]name=ofd_packets/00139506 [21:35:03]NVStorageSaveData ofd_packets/00139506 [21:35:03]File name is /storage/ofd_packets/00139506 [21:35:03]Write 301 bytes [21:35:03]NVStorageSaveData done [21:35:03]OFDSenderStorePacket done [21:35:03]KKMCreateOFDPacket done [21:35:03]NVStorageSaveData kkm_last_timestamp [21:35:03]File name is /storage/kkm_last_timestamp [21:35:03]Write 4 bytes [21:35:03]NVStorageSaveData done [21:35:03]ExternCall_PrintAddStr [21:35:03]wPrintStart [21:35:03]Write to MH i2c: 01 00 00 E1 04 E5 [21:35:03]Write i2c OK [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: 01 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: 01 07 00 [21:35:03]MH_I2C_Read... [21:35:03]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 FF 0F FA [21:35:03]RasterBufferAndPrint [21:35:03]line Счет N : (1)593349 [21:35:03]line ИНН: 02508201610067 [21:35:03]line Контрольно-Кассовый Чек [21:35:03]line ПРОДАЖА [21:35:03]line ТРК (МРК, ГНК) : 42 [21:35:03]line Товар: 2710124130 [21:35:03]line Аи-92-К-5 [21:35:03]line 7.380 * 67.80 [21:35:03]line = 500.36 [21:35:03]line НДС 12% НСП 1% [21:35:03]line > о реализуемом товаре [21:35:03]line ОКРУГЛЕНИЕ: -0.36 [21:35:03]line ИТОГО: 500.00 [21:35:03]line Внесено: 500.00 [21:35:03]line СДАЧА: 0.00 [21:35:03]line НСП 1% : 4.43 [21:35:03]line НДС 12% : 53.14 [21:35:03]line Наличными: 500.00 [21:35:03]line Безнал.: 0.00 [21:35:03]line Место: АЗС № 136 "Партнер Нефть" [21:35:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:35:03]line СНО: Общий режим [21:35:03]line Чек 341 19.08.2024 21:35 [21:35:03]line Смена: 452 ФФД: 1.0 [21:35:03]line ЗНМ: 0300000067 [21:35:03]line РНМ: 0000000000092569 [21:35:03]line Версия ККМ: 001 [21:35:03]line ФМ: 0000000000871776 [21:35:03]line ФД: 139506 [21:35:03]line ФПД: 250655214666323 [21:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T213502&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139506&fm=250655214666323&tin=02508201610067®Number=0000000000092569&sum=50000 [21:35:04]OFD Sender: Processing packet 139506 [packets to send 137, broken 136] [21:35:04]ProducePacketName [21:35:04]name=ofd_packets/00139506 [21:35:04]OFD Sender: To server: pG, [21:35:04]CommunicateWithHost lk.salyk.kg:30040 [21:35:04]ConnectInit lk.salyk.kg [21:35:04]written 0, free lines is 4095 [21:35:04]Connected sock=10 [21:35: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 37 36 0F 01 00 00 6F BA 07 01 50 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 55 01 00 00 F4 03 04 00 86 BA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 20 02 00 35 04 06 00 E3 F8 37 08 02 53 C4 CE E4 E6 64 11 DA B4 [21:35: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 37 36 4F 00 00 00 C2 56 47 00 02 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 20 02 00 F4 03 04 00 1B 61 C3 66 B6 04 01 00 00 01 A0 9F C6 C3 CE AE A3 [21:35:04]CommunicateWithHost err = 0 [21:35:04]CheckOFDResponse [21:35:04]1017 (14) - 77093643461234 [21:35:04]1041 (16) - 0000000000871776 [21:35:04]1040 (4) - 139506 [21:35:04]1012 (4) - 19.08.2024 15:13 [21:35:04]1206 (1) - 0 [21:35:04]OFD Sender: Remove packet 139506 [21:35:04]ProducePacketName [21:35:04]name=ofd_packets/00139506 [21:35:04]NVStorageDeleteData [21:35:04]Write to MH i2c: 01 00 00 0C 05 11 [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: 01 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: 01 07 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: 01 07 00 0C 05 00 00 00 00 00 E0 0C 04 [21:35:04]RasterBufferAndPrint [21:35:04]line [21:35:04]line [21:35:04]line [21:35:04]line [21:35:04]line [21:35:04]written 0, free lines is 3302 [21:35:04]MH_Cut [21:35:04]Write to MH i2c: D1 01 00 13 05 01 EA [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: D1 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: D1 01 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: D1 01 00 13 05 00 E9 [21:35:04]Write to MH i2c: 01 00 00 14 05 19 [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:05]OFD Sender: No OFD packet to send [21:35:05]*** Cut start [21:35:05]*** Partial cut [21:35:05]*** CUTSNS_PIN = 1 [21:35:05]*** CUTSNS_PIN = 0 [21:35:05]*** Brake cut motor [21:35:05]Read from MH i2c: 01 [21:35:05]MH_I2C_Read... [21:35:05]*** Stop cut motor [21:35:05]*** Cut end [21:35:05]Read from MH i2c: 01 07 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: 01 07 00 14 05 00 00 00 00 00 FF 0F 2E [21:35:05]process_action close_receipt done [21:35:05]requested_data is exist [21:35:05]produce_requested_data [21:35:05]requested_item fm.sn is exist - process it [21:35:05]wFMCommunicate request_size=4 [21:35:05]MH_SAM_APDU [21:35:05]CAPDU: 80 11 00 00 [21:35:05]Write to MH i2c: E2 08 00 15 05 80 11 00 00 00 00 00 00 94 [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:05]Read from MH i2c: E2 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 17 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 17 00 15 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [21:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:35:05]wFMCommunicate OK [21:35:05]requested_item fd.num is exist - process it [21:35:05]SAM_PROTO_GetFieldsCounters [21:35:05]wFMCommunicate request_size=4 [21:35:05]MH_SAM_APDU [21:35:05]CAPDU: 80 13 00 00 [21:35:05]Write to MH i2c: E2 08 00 16 05 80 13 00 00 00 00 00 00 97 [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:06]Read from MH i2c: E2 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: E2 62 00 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: E2 62 00 16 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [21:35: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:06]wFMCommunicate OK [21:35:06]SAM_PROTO_GetFieldsCounters done [21:35:06]requested_item shift.num is exist - process it [21:35:06]requested_item shift.opened is exist - process it [21:35:06]req_shift_opened [21:35:06]FM_GetShiftState [21:35:06]SAM_PROTO_GetShiftState [21:35:06]wFMCommunicate request_size=4 [21:35:06]MH_SAM_APDU [21:35:06]CAPDU: 80 13 01 00 [21:35:06]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [21:35:06]Write i2c OK [21:35:06]MH_I2C_Read... [21:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:06]Read from MH i2c: E2 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: E2 0E 00 [21:35:06]MH_I2C_Read... [21:35:06]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 50 [21:35:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:35:06]wFMCommunicate OK [21:35:06]SAM_PROTO_GetShiftState done [21:35:06]FM_GetShiftState done [21:35:06]req_shift_opened done [21:35:06]requested_item shift.open_date is exist - process it [21:35:06]req_shift_open_date [21:35:06]req_shift_open_date done [21:35:06]produce_requested_data done [21:35:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139506,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:35:06]process_action_free close_receipt [21:35:06]json_value_free [21:35:06]json_value_free done [21:35:06]process_json_proto returns [21:35:06]Send response to host [21:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139506,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:35:06]free response buf [21:35:06]execute_script done [21:35:06]execute_script returns [21:35:06]free content buf [21:35:06]Sock 9.Close socket [21:35:06]Sock 9.Thread stoped [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]accept exits with 7 [21:47:00]New connection [21:47:00]New thread 3067071844 created [21:47:00]Thread 3067215204 joined [21:47:00]Waiting for new connection... [21:47:00] Sock 7.Parse request [21:47:00]Sock 7.Check first char [21:47:00]Sock 7.First char is OK [21:47:00]request: POST /json_proto HTTP/1.0 [21:47:00]Method: POST [21:47:00]URL: /json_proto [21:47:00]Method is POST - this is cgi request [21:47:00]url: /json_proto [21:47:00]query_string will be loaded in cgi processing [21:47:00]execute_cgi json_proto POST (null) [21:47:00]execute_cgi path=json_proto method=POST [21:47:00]POST find Content-Length [21:47:00]Host: 172.17.45.67:8080 [21:47:00]Content-Length: 677 [21:47:00]Content-Type: application/json [21:47:00] [21:47:00]POST finish read [21:47:00]Found Content-Length = 677 [21:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.810, "sum" : 665.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:00]execute_script... [21: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)593350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.810, "sum" : 665.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:00]POST & json_proto [21:47:00]process_json_proto [21:47:00]json parsed OK: [21:47:00]protocol is kg_v1.0 [21:47:00]action value=close_receipt [21:47:00]process_action close_receipt [21:47:00]cmd_close_receipt [21:47:00]MH_GetDate [21:47:00]Write to MH i2c: F0 00 00 18 05 0C [21:47:00]Write i2c OK [21:47:00]MH_I2C_Read... [21:47:00]Read from MH i2c: F0 [21:47:00]MH_I2C_Read... [21:47:00]Read from MH i2c: F0 09 00 [21:47:00]MH_I2C_Read... [21:47:00]Read from MH i2c: F0 09 00 18 05 00 54 BD C3 66 5F 7F 2B 66 BE [21:47:00]GetLastDocTimeStamp 1724103302 [21:47:00]current date 1724104020 [21:47:00]FM_GetShiftState [21:47:00]SAM_PROTO_GetShiftState [21:47:00]wFMCommunicate request_size=4 [21:47:00]MH_SAM_APDU [21:47:00]CAPDU: 80 13 01 00 [21:47:00]Write to MH i2c: E2 08 00 19 05 80 13 01 00 00 00 00 00 9B [21:47:00]Write i2c OK [21:47:00]MH_I2C_Read... [21:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:00]Read from MH i2c: E2 [21:47:00]MH_I2C_Read... [21:47:00]Read from MH i2c: E2 0E 00 [21:47:00]MH_I2C_Read... [21:47:00]Read from MH i2c: E2 0E 00 19 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 52 [21:47:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:47:00]wFMCommunicate OK [21:47:00]SAM_PROTO_GetShiftState done [21:47:00]FM_GetShiftState done [21:47:00]opened in 1724027888 [21:47:00]opened+sec_in_day 1724114288 [21:47:00]quantity*price = 66511 [21:47:00]sum+1 = 66513 [21:47:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 665.00 Внесено: 665.00 СДАЧА: 0.00 НСП 1% : 5.89 НДС 12% : 70.63 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 342 19.08.2024 21:47 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139507 ФПД: 96697000929152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T214700&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139507&fm=96697000929152&tin=02508201610067®Number=0000000000092569&sum=66500 [21:47:01]StoreToDocumentArchive [21:47:01]shift 452 fd 139507 [21:47:01]save to /storage/0452/doc_00139507 [21:47:01]save last doc name /storage/0452/doc_00139507 to /storage/kkm_last_doc_name [21:47:01]save OK [21:47:01]Clear old archive folders... [21:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:01]tlvbuf is 00CF9BE0 [21:47:01]SAM_PROTO_ClearQueue [21:47:01]wFMCommunicate request_size=4 [21:47:01]MH_SAM_APDU [21:47:01]CAPDU: 80 09 00 00 [21:47:01]Write to MH i2c: E2 08 00 26 05 80 09 00 00 00 00 00 00 9D [21:47:01]Write i2c OK [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: E2 [21:47:01]MH_I2C_Read... [21:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:01]Read from MH i2c: E2 03 00 [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [21:47:01]RAPDU: 90 00 [21:47:01]wFMCommunicate OK [21:47:01]SAM_PROTO_ClearQueue done [21:47:01]KKMCreateOFDPacket [21:47:01]OFDProtocolAddRootSTLVToBuf [21:47:01]FM_MakeSignedData [21:47:01]FM_MakeSignedData [21:47:01]SAM_PROTO_SignData [21:47:01]wFMCommunicate request_size=4 [21:47:01]MH_SAM_APDU [21:47:01]CAPDU: 80 0D 01 02 [21:47:01]Write to MH i2c: E2 08 00 27 05 80 0D 01 02 00 00 00 00 A5 [21:47:01]Write i2c OK [21:47:01]MH_I2C_Read... [21:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:01]Read from MH i2c: E2 [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: E2 03 00 [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [21:47:01]RAPDU: 90 00 [21:47:01]wFMCommunicate OK [21:47:01]wFMCommunicate request_size=255 [21:47:01]MH_SAM_APDU [21: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 52 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D0 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 54 BD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 20 02 00 35 04 06 00 57 [21:47:01]Write to MH i2c: E2 02 01 28 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D0 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 54 BD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 20 02 00 35 04 06 00 57 00 00 EE [21:47:01]Write i2c OK [21:47:01]MH_I2C_Read... [21:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:01]Read from MH i2c: E2 [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: E2 03 00 [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [21:47:01]RAPDU: 90 00 [21:47:01]wFMCommunicate OK [21:47:01]wFMCommunicate request_size=10 [21:47:01]MH_SAM_APDU [21:47:01]CAPDU: 80 0D 02 02 05 F2 06 64 27 80 [21:47:01]Write to MH i2c: E2 0D 00 29 05 80 0D 02 02 05 00 F2 06 64 27 80 00 00 B5 [21:47:01]Write i2c OK [21:47:01]MH_I2C_Read... [21:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:02]Read from MH i2c: E2 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [21:47:02]RAPDU: 90 00 [21:47:02]wFMCommunicate OK [21:47:02]wFMCommunicate request_size=4 [21:47:02]MH_SAM_APDU [21:47:02]CAPDU: 80 0D 03 02 [21:47:02]Write to MH i2c: E2 08 00 2A 05 80 0D 03 02 00 00 00 00 AA [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:02]Read from MH i2c: E2 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 0B 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 0B 00 2A 05 00 F6 2F 95 5C E5 0E 71 E1 90 00 06 [21:47:02]RAPDU: F6 2F 95 5C E5 0E 71 E1 90 00 [21:47:02]wFMCommunicate OK [21:47:02]SAM_PROTO_SignData done [21:47:02]FM_MakeSignedData done [21:47:02]CreateOFDProtocolMessage [21:47:02]wFMCommunicate request_size=4 [21:47:02]MH_SAM_APDU [21:47:02]CAPDU: 80 11 00 00 [21:47:02]Write to MH i2c: E2 08 00 2B 05 80 11 00 00 00 00 00 00 AA [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:02]Read from MH i2c: E2 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 17 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 17 00 2B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [21:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:47:02]wFMCommunicate OK [21:47:02]CreateOFDProtocolMessage done [21:47:02]OFDSenderStorePacket 139507 [21:47:02]StoreOFDPacket docnum=139507 [21:47:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A3 CE 07 01 C8 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D0 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 54 BD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 20 02 00 35 04 06 00 57 F2 06 64 27 80 F6 2F 95 5C E5 0E 71 E1 [21:47:02]CheckFolder [21:47:02]dirname=/storage/ofd_packets [21:47:02]CheckFolder done [21:47:02]ProducePacketName [21:47:02]name=ofd_packets/00139507 [21:47:02]NVStorageSaveData ofd_packets/00139507 [21:47:02]File name is /storage/ofd_packets/00139507 [21:47:02]Write 301 bytes [21:47:02]NVStorageSaveData done [21:47:02]OFDSenderStorePacket done [21:47:02]KKMCreateOFDPacket done [21:47:02]NVStorageSaveData kkm_last_timestamp [21:47:02]File name is /storage/kkm_last_timestamp [21:47:02]Write 4 bytes [21:47:02]NVStorageSaveData done [21:47:02]ExternCall_PrintAddStr [21:47:02]wPrintStart [21:47:02]Write to MH i2c: 01 00 00 2C 05 31 [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: 01 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: 01 07 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: 01 07 00 2C 05 00 00 00 00 00 FF 0F 46 [21:47:02]RasterBufferAndPrint [21:47:02]line Счет N : (1)593350 [21:47:02]line ИНН: 02508201610067 [21:47:02]line Контрольно-Кассовый Чек [21:47:02]line ПРОДАЖА [21:47:02]line ТРК (МРК, ГНК) : 62 [21:47:02]line Товар: 2710124130 [21:47:02]line Аи-92-К-5 [21:47:02]line 9.810 * 67.80 [21:47:02]line = 665.12 [21:47:02]line НДС 12% НСП 1% [21:47:02]line > о реализуемом товаре [21:47:02]line ОКРУГЛЕНИЕ: -0.12 [21:47:02]line ИТОГО: 665.00 [21:47:02]line Внесено: 665.00 [21:47:02]line СДАЧА: 0.00 [21:47:02]line НСП 1% : 5.89 [21:47:02]line НДС 12% : 70.63 [21:47:02]line Наличными: 665.00 [21:47:02]line Безнал.: 0.00 [21:47:02]line Место: АЗС № 136 "Партнер Нефть" [21:47:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:47:02]line СНО: Общий режим [21:47:02]line Чек 342 19.08.2024 21:47 [21:47:02]line Смена: 452 ФФД: 1.0 [21:47:02]line ЗНМ: 0300000067 [21:47:02]line РНМ: 0000000000092569 [21:47:02]line Версия ККМ: 001 [21:47:02]line ФМ: 0000000000871776 [21:47:02]line ФД: 139507 [21:47:02]line ФПД: 96697000929152 [21:47:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T214700&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139507&fm=96697000929152&tin=02508201610067®Number=0000000000092569&sum=66500 [21:47:02]OFD Sender: Processing packet 139507 [packets to send 137, broken 136] [21:47:02]ProducePacketName [21:47:02]name=ofd_packets/00139507 [21:47:02]OFD Sender: To server: pG, [21:47:02]CommunicateWithHost lk.salyk.kg:30040 [21:47:02]ConnectInit lk.salyk.kg [21:47:02]written 0, free lines is 4095 [21:47:02]Connected sock=10 [21: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 37 36 0F 01 00 00 A3 CE 07 01 C8 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D0 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 54 BD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 20 02 00 35 04 06 00 57 F2 06 64 27 80 F6 2F 95 5C E5 0E 71 E1 [21:47:02]Write to MH i2c: 01 00 00 57 05 5C [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: 01 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: 01 07 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: 01 07 00 57 05 00 00 00 00 00 D9 0C 48 [21:47:02]RasterBufferAndPrint [21:47:02]line [21:47:02]line [21:47:02]line [21:47:02]line [21:47:02]line [21:47:02]written 0, free lines is 3296 [21:47:02]MH_Cut [21:47:02]Write to MH i2c: D1 01 00 5E 05 01 35 [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: D1 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: D1 01 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: D1 01 00 5E 05 00 34 [21:47:02]Write to MH i2c: 01 00 00 5F 05 64 [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21: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 37 36 4F 00 00 00 E1 8C 47 00 0D CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 20 02 00 F4 03 04 00 E9 63 C3 66 B6 04 01 00 00 2D A3 42 1F E8 C2 A4 B4 [21:47:02]CommunicateWithHost err = 0 [21:47:02]CheckOFDResponse [21:47:02]1017 (14) - 77093643461234 [21:47:02]1041 (16) - 0000000000871776 [21:47:02]1040 (4) - 139507 [21:47:02]1012 (4) - 19.08.2024 15:25 [21:47:02]1206 (1) - 0 [21:47:02]OFD Sender: Remove packet 139507 [21:47:02]ProducePacketName [21:47:02]name=ofd_packets/00139507 [21:47:02]NVStorageDeleteData [21:47:03]OFD Sender: No OFD packet to send [21:47:03]*** Cut start [21:47:03]*** Partial cut [21:47:03]*** CUTSNS_PIN = 1 [21:47:03]*** CUTSNS_PIN = 0 [21:47:03]*** Brake cut motor [21:47:04]Read from MH i2c: 01 [21:47:04]MH_I2C_Read... [21:47:04]*** Stop cut motor [21:47:04]*** Cut end [21:47:04]Read from MH i2c: 01 07 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: 01 07 00 5F 05 00 00 00 00 00 FF 0F 79 [21:47:04]process_action close_receipt done [21:47:04]requested_data is exist [21:47:04]produce_requested_data [21:47:04]requested_item fm.sn is exist - process it [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 11 00 00 [21:47:04]Write to MH i2c: E2 08 00 60 05 80 11 00 00 00 00 00 00 DF [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 17 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 17 00 60 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [21:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:47:04]wFMCommunicate OK [21:47:04]requested_item fd.num is exist - process it [21:47:04]SAM_PROTO_GetFieldsCounters [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 13 00 00 [21:47:04]Write to MH i2c: E2 08 00 61 05 80 13 00 00 00 00 00 00 E2 [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 62 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 62 00 61 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [21:47: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:04]wFMCommunicate OK [21:47:04]SAM_PROTO_GetFieldsCounters done [21:47:04]requested_item shift.num is exist - process it [21:47:04]requested_item shift.opened is exist - process it [21:47:04]req_shift_opened [21:47:04]FM_GetShiftState [21:47:04]SAM_PROTO_GetShiftState [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 13 01 00 [21:47:04]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 0E 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9B [21:47:04]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:47:04]wFMCommunicate OK [21:47:04]SAM_PROTO_GetShiftState done [21:47:04]FM_GetShiftState done [21:47:04]req_shift_opened done [21:47:04]requested_item shift.open_date is exist - process it [21:47:04]req_shift_open_date [21:47:04]req_shift_open_date done [21:47:04]produce_requested_data done [21:47:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139507,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:47:04]process_action_free close_receipt [21:47:04]json_value_free [21:47:04]json_value_free done [21:47:04]process_json_proto returns [21:47:04]Send response to host [21:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139507,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:47:04]free response buf [21:47:04]execute_script done [21:47:04]execute_script returns [21:47:04]free content buf [21:47:04]Sock 7.Close socket [21:47:04]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:40]int [21:52:40]Write to MH i2c: 01 00 00 63 05 68 [21:52:40]*** FLAG_PRN_KEY set [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 07 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 07 00 63 05 00 08 00 00 00 FF 0F 85 [21:52:40]state=0 [21:52:40]Key pressed [21:52:40]Feed [21:52:40]Write to MH i2c: D8 00 00 64 05 40 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: D8 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: D8 01 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: D8 01 00 64 05 00 41 [21:52:40]int [21:52:40]Write to MH i2c: 01 00 00 65 05 6A [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 07 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 07 00 65 05 00 48 00 00 00 3C 00 F5 [21:52:40]state=2 [21:52:40]Key pressed [21:52:40]int [21:52:40]Write to MH i2c: 01 00 00 66 05 6B [21:52:40]*** FLAG_PRN_KEY reset [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 07 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 07 00 66 05 00 00 00 00 00 F9 0F 7A [21:52:40]state=2 [21:52:40]Stop feed [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]accept exits with 9 [21:53:28]New connection [21:53:28]New thread 3067215204 created [21:53:28]Thread 3067071844 joined [21:53:28]Waiting for new connection... [21:53:28] Sock 9.Parse request [21:53:28]Sock 9.Check first char [21:53:28]Sock 9.First char is OK [21:53:28]request: POST /json_proto HTTP/1.0 [21:53:28]Method: POST [21:53:28]URL: /json_proto [21:53:28]Method is POST - this is cgi request [21:53:28]url: /json_proto [21:53:28]query_string will be loaded in cgi processing [21:53:28]execute_cgi json_proto POST (null) [21:53:28]execute_cgi path=json_proto method=POST [21:53:28]POST find Content-Length [21:53:28]Host: 172.17.45.67:8080 [21:53:28]Content-Length: 682 [21:53:28]Content-Type: application/json [21:53:28] [21:53:28]POST finish read [21:53:28]Found Content-Length = 682 [21:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:28]execute_script... [21: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)593351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:28]POST & json_proto [21:53:28]process_json_proto [21:53:28]json parsed OK: [21:53:28]protocol is kg_v1.0 [21:53:28]action value=close_receipt [21:53:28]process_action close_receipt [21:53:28]cmd_close_receipt [21:53:28]MH_GetDate [21:53:28]Write to MH i2c: F0 00 00 67 05 5B [21:53:28]Write i2c OK [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: F0 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: F0 09 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: F0 09 00 67 05 00 D8 BE C3 66 5F 7F 2B 66 92 [21:53:28]GetLastDocTimeStamp 1724104020 [21:53:28]current date 1724104408 [21:53:28]FM_GetShiftState [21:53:28]SAM_PROTO_GetShiftState [21:53:28]wFMCommunicate request_size=4 [21:53:28]MH_SAM_APDU [21:53:28]CAPDU: 80 13 01 00 [21:53:28]Write to MH i2c: E2 08 00 68 05 80 13 01 00 00 00 00 00 EA [21:53:28]Write i2c OK [21:53:28]MH_I2C_Read... [21:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:28]Read from MH i2c: E2 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 0E 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 0E 00 68 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 A1 [21:53:28]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:53:28]wFMCommunicate OK [21:53:28]SAM_PROTO_GetShiftState done [21:53:28]FM_GetShiftState done [21:53:28]opened in 1724027888 [21:53:28]opened+sec_in_day 1724114288 [21:53:28]quantity*price = 100005 [21:53:28]sum+1 = 100006 [21:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 343 19.08.2024 21:53 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139508 ФПД: 107694738625001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215329&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139508&fm=107694738625001&tin=02508201610067®Number=0000000000092569&sum=100000 [21:53:29]StoreToDocumentArchive [21:53:29]shift 452 fd 139508 [21:53:29]save to /storage/0452/doc_00139508 [21:53:29]save last doc name /storage/0452/doc_00139508 to /storage/kkm_last_doc_name [21:53:29]save OK [21:53:29]Clear old archive folders... [21:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:29]tlvbuf is 00D45490 [21:53:29]SAM_PROTO_ClearQueue [21:53:29]wFMCommunicate request_size=4 [21:53:29]MH_SAM_APDU [21:53:29]CAPDU: 80 09 00 00 [21:53:29]Write to MH i2c: E2 08 00 75 05 80 09 00 00 00 00 00 00 EC [21:53:29]Write i2c OK [21:53:29]MH_I2C_Read... [21:53:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:29]Read from MH i2c: E2 [21:53:29]MH_I2C_Read... [21:53:29]Read from MH i2c: E2 03 00 [21:53:29]MH_I2C_Read... [21:53:29]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [21:53:29]RAPDU: 90 00 [21:53:29]wFMCommunicate OK [21:53:29]SAM_PROTO_ClearQueue done [21:53:29]KKMCreateOFDPacket [21:53:29]OFDProtocolAddRootSTLVToBuf [21:53:29]FM_MakeSignedData [21:53:29]FM_MakeSignedData [21:53:29]SAM_PROTO_SignData [21:53:29]wFMCommunicate request_size=4 [21:53:29]MH_SAM_APDU [21:53:29]CAPDU: 80 0D 01 02 [21:53:29]Write to MH i2c: E2 08 00 76 05 80 0D 01 02 00 00 00 00 F4 [21:53:29]Write i2c OK [21:53:29]MH_I2C_Read... [21:53:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:29]Read from MH i2c: E2 [21:53:29]MH_I2C_Read... [21:53:29]Read from MH i2c: E2 03 00 [21:53:29]MH_I2C_Read... [21:53:29]Read from MH i2c: E2 03 00 76 05 00 90 00 EF [21:53:29]RAPDU: 90 00 [21:53:29]wFMCommunicate OK [21:53:29]wFMCommunicate request_size=255 [21:53:29]MH_SAM_APDU [21: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 D9 BE C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 20 02 00 35 04 06 00 61 [21:53:29]Write to MH i2c: E2 02 01 77 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 D9 BE C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 20 02 00 35 04 06 00 61 00 00 60 [21:53:29]Write i2c OK [21:53:29]MH_I2C_Read... [21:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:30]Read from MH i2c: E2 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: E2 03 00 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [21:53:30]RAPDU: 90 00 [21:53:30]wFMCommunicate OK [21:53:30]wFMCommunicate request_size=10 [21:53:30]MH_SAM_APDU [21:53:30]CAPDU: 80 0D 02 02 05 F2 A2 A3 D1 E9 [21:53:30]Write to MH i2c: E2 0D 00 78 05 80 0D 02 02 05 00 F2 A2 A3 D1 E9 00 00 F2 [21:53:30]Write i2c OK [21:53:30]MH_I2C_Read... [21:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:30]Read from MH i2c: E2 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: E2 03 00 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [21:53:30]RAPDU: 90 00 [21:53:30]wFMCommunicate OK [21:53:30]wFMCommunicate request_size=4 [21:53:30]MH_SAM_APDU [21:53:30]CAPDU: 80 0D 03 02 [21:53:30]Write to MH i2c: E2 08 00 79 05 80 0D 03 02 00 00 00 00 F9 [21:53:30]Write i2c OK [21:53:30]MH_I2C_Read... [21:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:30]Read from MH i2c: E2 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: E2 0B 00 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: E2 0B 00 79 05 00 86 12 0D DC C5 E6 1D 36 90 00 79 [21:53:30]RAPDU: 86 12 0D DC C5 E6 1D 36 90 00 [21:53:30]wFMCommunicate OK [21:53:30]SAM_PROTO_SignData done [21:53:30]FM_MakeSignedData done [21:53:30]CreateOFDProtocolMessage [21:53:30]wFMCommunicate request_size=4 [21:53:30]MH_SAM_APDU [21:53:30]CAPDU: 80 11 00 00 [21:53:30]Write to MH i2c: E2 08 00 7A 05 80 11 00 00 00 00 00 00 F9 [21:53:30]Write i2c OK [21:53:30]MH_I2C_Read... [21:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:30]Read from MH i2c: E2 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: E2 17 00 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: E2 17 00 7A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 50 [21:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:53:30]wFMCommunicate OK [21:53:30]CreateOFDProtocolMessage done [21:53:30]OFDSenderStorePacket 139508 [21:53:30]StoreOFDPacket docnum=139508 [21:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 C0 07 01 0C 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 D9 BE C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 20 02 00 35 04 06 00 61 F2 A2 A3 D1 E9 86 12 0D DC C5 E6 1D 36 [21:53:30]CheckFolder [21:53:30]dirname=/storage/ofd_packets [21:53:30]CheckFolder done [21:53:30]ProducePacketName [21:53:30]name=ofd_packets/00139508 [21:53:30]NVStorageSaveData ofd_packets/00139508 [21:53:30]File name is /storage/ofd_packets/00139508 [21:53:30]Write 301 bytes [21:53:30]NVStorageSaveData done [21:53:30]OFDSenderStorePacket done [21:53:30]KKMCreateOFDPacket done [21:53:30]NVStorageSaveData kkm_last_timestamp [21:53:30]File name is /storage/kkm_last_timestamp [21:53:30]Write 4 bytes [21:53:30]NVStorageSaveData done [21:53:30]ExternCall_PrintAddStr [21:53:30]wPrintStart [21:53:30]Write to MH i2c: 01 00 00 7B 05 80 [21:53:30]Write i2c OK [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: 01 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: 01 07 00 [21:53:30]MH_I2C_Read... [21:53:30]Read from MH i2c: 01 07 00 7B 05 00 00 00 00 00 FF 0F 95 [21:53:30]RasterBufferAndPrint [21:53:30]line Счет N : (1)593351 [21:53:30]line ИНН: 02508201610067 [21:53:30]line Контрольно-Кассовый Чек [21:53:30]line ПРОДАЖА [21:53:30]line ТРК (МРК, ГНК) : 52 [21:53:30]line Товар: 2710124130 [21:53:30]line Аи-92-К-5 [21:53:30]line 14.750 * 67.80 [21:53:30]line = 1000.05 [21:53:30]line НДС 12% НСП 1% [21:53:30]line > о реализуемом товаре [21:53:30]line ОКРУГЛЕНИЕ: -0.05 [21:53:30]line ИТОГО: 1000.00 [21:53:30]line Внесено: 1000.00 [21:53:30]line СДАЧА: 0.00 [21:53:30]line НСП 1% : 8.85 [21:53:30]line НДС 12% : 106.20 [21:53:30]line Наличными: 1000.00 [21:53:30]line Безнал.: 0.00 [21:53:30]line Место: АЗС № 136 "Партнер Нефть" [21:53:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:53:30]line СНО: Общий режим [21:53:30]line Чек 343 19.08.2024 21:53 [21:53:30]line Смена: 452 ФФД: 1.0 [21:53:30]line ЗНМ: 0300000067 [21:53:30]line РНМ: 0000000000092569 [21:53:30]line Версия ККМ: 001 [21:53:30]line ФМ: 0000000000871776 [21:53:30]line ФД: 139508 [21:53:30]line ФПД: 107694738625001 [21:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215329&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139508&fm=107694738625001&tin=02508201610067®Number=0000000000092569&sum=100000 [21:53:30]OFD Sender: Processing packet 139508 [packets to send 137, broken 136] [21:53:30]ProducePacketName [21:53:30]name=ofd_packets/00139508 [21:53:30]OFD Sender: To server: pG, [21:53:30]CommunicateWithHost lk.salyk.kg:30040 [21:53:30]ConnectInit lk.salyk.kg [21:53:30]written 0, free lines is 4095 [21:53:30]Connected sock=10 [21: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 37 36 0F 01 00 00 29 C0 07 01 0C 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 D9 BE C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 20 02 00 35 04 06 00 61 F2 A2 A3 D1 E9 86 12 0D DC C5 E6 1D 36 [21:53:31]Write to MH i2c: 01 00 00 A6 05 AB [21:53:31]Write i2c OK [21:53:31]MH_I2C_Read... [21:53:31]Read from MH i2c: 01 [21:53:31]MH_I2C_Read... [21:53:31]Read from MH i2c: 01 07 00 [21:53:31]MH_I2C_Read... [21:53:31]Read from MH i2c: 01 07 00 A6 05 00 00 00 00 00 D8 0C 96 [21:53:31]RasterBufferAndPrint [21:53:31]line [21:53:31]line [21:53:31]line [21:53:31]line [21:53:31]line [21:53:31]written 0, free lines is 3293 [21:53:31]MH_Cut [21:53:31]Write to MH i2c: D1 01 00 AD 05 01 84 [21:53:31]Write i2c OK [21:53:31]MH_I2C_Read... [21:53:31]Read from MH i2c: D1 [21:53:31]MH_I2C_Read... [21:53:31]Read from MH i2c: D1 01 00 [21:53:31]MH_I2C_Read... [21:53:31]Read from MH i2c: D1 01 00 AD 05 00 83 [21:53:31]Write to MH i2c: 01 00 00 AE 05 B3 [21:53:31]Write i2c OK [21:53:31]MH_I2C_Read... [21:53: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 37 36 4F 00 00 00 AD FF 47 00 A3 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 37 36 10 04 04 00 F4 20 02 00 F4 03 04 00 6E 65 C3 66 B6 04 01 00 00 95 E9 96 67 75 8B 34 15 [21:53:31]CommunicateWithHost err = 0 [21:53:31]CheckOFDResponse [21:53:31]1017 (14) - 77093643461234 [21:53:31]1041 (16) - 0000000000871776 [21:53:31]1040 (4) - 139508 [21:53:31]1012 (4) - 19.08.2024 15:31 [21:53:31]1206 (1) - 0 [21:53:31]OFD Sender: Remove packet 139508 [21:53:31]ProducePacketName [21:53:31]name=ofd_packets/00139508 [21:53:31]NVStorageDeleteData [21:53:31]OFD Sender: No OFD packet to send [21:53:31]*** Cut start [21:53:31]*** Partial cut [21:53:31]*** CUTSNS_PIN = 1 [21:53:31]*** CUTSNS_PIN = 0 [21:53:31]*** Brake cut motor [21:53:32]Read from MH i2c: 01 [21:53:32]MH_I2C_Read... [21:53:32]*** Stop cut motor [21:53:32]*** Cut end [21:53:32]Read from MH i2c: 01 07 00 [21:53:32]MH_I2C_Read... [21:53:32]Read from MH i2c: 01 07 00 AE 05 00 00 00 00 00 FF 0F C8 [21:53:32]process_action close_receipt done [21:53:32]requested_data is exist [21:53:32]produce_requested_data [21:53:32]requested_item fm.sn is exist - process it [21:53:32]wFMCommunicate request_size=4 [21:53:32]MH_SAM_APDU [21:53:32]CAPDU: 80 11 00 00 [21:53:32]Write to MH i2c: E2 08 00 AF 05 80 11 00 00 00 00 00 00 2E [21:53:32]Write i2c OK [21:53:32]MH_I2C_Read... [21:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:32]Read from MH i2c: E2 [21:53:32]MH_I2C_Read... [21:53:32]Read from MH i2c: E2 17 00 [21:53:32]MH_I2C_Read... [21:53:32]Read from MH i2c: E2 17 00 AF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [21:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:53:32]wFMCommunicate OK [21:53:32]requested_item fd.num is exist - process it [21:53:32]SAM_PROTO_GetFieldsCounters [21:53:32]wFMCommunicate request_size=4 [21:53:32]MH_SAM_APDU [21:53:32]CAPDU: 80 13 00 00 [21:53:32]Write to MH i2c: E2 08 00 B0 05 80 13 00 00 00 00 00 00 31 [21:53:32]Write i2c OK [21:53:32]MH_I2C_Read... [21:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:32]Read from MH i2c: E2 [21:53:32]MH_I2C_Read... [21:53:32]Read from MH i2c: E2 62 00 [21:53:32]MH_I2C_Read... [21:53:32]Read from MH i2c: E2 62 00 B0 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [21:53: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:32]wFMCommunicate OK [21:53:32]SAM_PROTO_GetFieldsCounters done [21:53:32]requested_item shift.num is exist - process it [21:53:32]requested_item shift.opened is exist - process it [21:53:32]req_shift_opened [21:53:32]FM_GetShiftState [21:53:32]SAM_PROTO_GetShiftState [21:53:32]wFMCommunicate request_size=4 [21:53:32]MH_SAM_APDU [21:53:32]CAPDU: 80 13 01 00 [21:53:32]Write to MH i2c: E2 08 00 B1 05 80 13 01 00 00 00 00 00 33 [21:53:32]Write i2c OK [21:53:32]MH_I2C_Read... [21:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:32]Read from MH i2c: E2 [21:53:32]MH_I2C_Read... [21:53:32]Read from MH i2c: E2 0E 00 [21:53:32]MH_I2C_Read... [21:53:32]Read from MH i2c: E2 0E 00 B1 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EA [21:53:32]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:53:32]wFMCommunicate OK [21:53:32]SAM_PROTO_GetShiftState done [21:53:32]FM_GetShiftState done [21:53:32]req_shift_opened done [21:53:32]requested_item shift.open_date is exist - process it [21:53:32]req_shift_open_date [21:53:32]req_shift_open_date done [21:53:32]produce_requested_data done [21:53:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139508,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:53:32]process_action_free close_receipt [21:53:32]json_value_free [21:53:32]json_value_free done [21:53:32]process_json_proto returns [21:53:32]Send response to host [21:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139508,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:53:32]free response buf [21:53:32]execute_script done [21:53:32]execute_script returns [21:53:32]free content buf [21:53:32]Sock 9.Close socket [21:53:32]Sock 9.Thread stoped [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:21]accept exits with 7 [21:56:21]New connection [21:56:21]New thread 3067071844 created [21:56:21]Thread 3067215204 joined [21:56:21]Waiting for new connection... [21:56:21] Sock 7.Parse request [21:56:21]Sock 7.Check first char [21:56:21]Sock 7.First char is OK [21:56:21]request: POST /json_proto HTTP/1.0 [21:56:21]Method: POST [21:56:21]URL: /json_proto [21:56:21]Method is POST - this is cgi request [21:56:21]url: /json_proto [21:56:21]query_string will be loaded in cgi processing [21:56:21]execute_cgi json_proto POST (null) [21:56:21]execute_cgi path=json_proto method=POST [21:56:21]POST find Content-Length [21:56:21]Host: 172.17.45.67:8080 [21:56:21]Content-Length: 797 [21:56:21]Content-Type: application/json [21:56:21] [21:56:21]POST finish read [21:56:21]Found Content-Length = 797 [21:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 42.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:21]execute_script... [21:56: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)593352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 42.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:21]POST & json_proto [21:56:21]process_json_proto [21:56:21]json parsed OK: [21:56:21]protocol is kg_v1.0 [21:56:21]action value=close_receipt [21:56:21]process_action close_receipt [21:56:21]cmd_close_receipt [21:56:21]MH_GetDate [21:56:21]Write to MH i2c: F0 00 00 B2 05 A6 [21:56:21]Write i2c OK [21:56:21]MH_I2C_Read... [21:56:21]Read from MH i2c: F0 [21:56:21]MH_I2C_Read... [21:56:21]Read from MH i2c: F0 09 00 [21:56:21]MH_I2C_Read... [21:56:21]Read from MH i2c: F0 09 00 B2 05 00 86 BF C3 66 5F 7F 2B 66 8C [21:56:21]GetLastDocTimeStamp 1724104409 [21:56:21]current date 1724104582 [21:56:21]FM_GetShiftState [21:56:21]SAM_PROTO_GetShiftState [21:56:21]wFMCommunicate request_size=4 [21:56:21]MH_SAM_APDU [21:56:21]CAPDU: 80 13 01 00 [21:56:21]Write to MH i2c: E2 08 00 B3 05 80 13 01 00 00 00 00 00 35 [21:56:21]Write i2c OK [21:56:21]MH_I2C_Read... [21:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:21]Read from MH i2c: E2 [21:56:21]MH_I2C_Read... [21:56:21]Read from MH i2c: E2 0E 00 [21:56:21]MH_I2C_Read... [21:56:21]Read from MH i2c: E2 0E 00 B3 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 EC [21:56:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:56:21]wFMCommunicate OK [21:56:21]SAM_PROTO_GetShiftState done [21:56:21]FM_GetShiftState done [21:56:21]opened in 1724027888 [21:56:21]opened+sec_in_day 1724114288 [21:56:21]quantity*price = 0 [21:56:21]sum+1 = 1 [21:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 344 19.08.2024 21:56 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139509 ФПД: 128537029684905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139509&fm=128537029684905&tin=02508201610067®Number=0000000000092569&sum=0 [21:56:23]StoreToDocumentArchive [21:56:23]shift 452 fd 139509 [21:56:23]save to /storage/0452/doc_00139509 [21:56:23]save last doc name /storage/0452/doc_00139509 to /storage/kkm_last_doc_name [21:56:23]save OK [21:56:23]Clear old archive folders... [21:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:56:23]tlvbuf is 00CFA430 [21:56:23]SAM_PROTO_ClearQueue [21:56:23]wFMCommunicate request_size=4 [21:56:23]MH_SAM_APDU [21:56:23]CAPDU: 80 09 00 00 [21:56:23]Write to MH i2c: E2 08 00 C0 05 80 09 00 00 00 00 00 00 37 [21:56:23]Write i2c OK [21:56:23]MH_I2C_Read... [21:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:23]Read from MH i2c: E2 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 03 00 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 03 00 C0 05 00 90 00 39 [21:56:23]RAPDU: 90 00 [21:56:23]wFMCommunicate OK [21:56:23]SAM_PROTO_ClearQueue done [21:56:23]KKMCreateOFDPacket [21:56:23]OFDProtocolAddRootSTLVToBuf [21:56:23]FM_MakeSignedData [21:56:23]FM_MakeSignedData [21:56:23]SAM_PROTO_SignData [21:56:23]wFMCommunicate request_size=4 [21:56:23]MH_SAM_APDU [21:56:23]CAPDU: 80 0D 01 02 [21:56:23]Write to MH i2c: E2 08 00 C1 05 80 0D 01 02 00 00 00 00 3F [21:56:23]Write i2c OK [21:56:23]MH_I2C_Read... [21:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:23]Read from MH i2c: E2 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 03 00 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 03 00 C1 05 00 90 00 3A [21:56:23]RAPDU: 90 00 [21:56:23]wFMCommunicate OK [21:56:23]wFMCommunicate request_size=255 [21:56:23]MH_SAM_APDU [21:56:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 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 58 01 00 00 F4 03 04 00 86 BF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 20 02 00 35 04 06 00 [21:56:23]Write to MH i2c: E2 02 01 C2 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 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 58 01 00 00 F4 03 04 00 86 BF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 20 02 00 35 04 06 00 00 00 E5 [21:56:23]Write i2c OK [21:56:23]MH_I2C_Read... [21:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:23]Read from MH i2c: E2 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 03 00 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 03 00 C2 05 00 90 00 3B [21:56:23]RAPDU: 90 00 [21:56:23]wFMCommunicate OK [21:56:23]wFMCommunicate request_size=11 [21:56:23]MH_SAM_APDU [21:56:23]CAPDU: 80 0D 02 02 06 74 E7 5B FE AE A9 [21:56:23]Write to MH i2c: E2 0E 00 C3 05 80 0D 02 02 06 00 74 E7 5B FE AE A9 00 00 59 [21:56:23]Write i2c OK [21:56:23]MH_I2C_Read... [21:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:23]Read from MH i2c: E2 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 03 00 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 03 00 C3 05 00 90 00 3C [21:56:23]RAPDU: 90 00 [21:56:23]wFMCommunicate OK [21:56:23]wFMCommunicate request_size=4 [21:56:23]MH_SAM_APDU [21:56:23]CAPDU: 80 0D 03 02 [21:56:23]Write to MH i2c: E2 08 00 C4 05 80 0D 03 02 00 00 00 00 44 [21:56:23]Write i2c OK [21:56:23]MH_I2C_Read... [21:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:23]Read from MH i2c: E2 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 0B 00 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 0B 00 C4 05 00 6E 3B 92 C5 3E 1B A2 C3 90 00 03 [21:56:23]RAPDU: 6E 3B 92 C5 3E 1B A2 C3 90 00 [21:56:23]wFMCommunicate OK [21:56:23]SAM_PROTO_SignData done [21:56:23]FM_MakeSignedData done [21:56:23]CreateOFDProtocolMessage [21:56:23]wFMCommunicate request_size=4 [21:56:23]MH_SAM_APDU [21:56:23]CAPDU: 80 11 00 00 [21:56:23]Write to MH i2c: E2 08 00 C5 05 80 11 00 00 00 00 00 00 44 [21:56:23]Write i2c OK [21:56:23]MH_I2C_Read... [21:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:23]Read from MH i2c: E2 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 17 00 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: E2 17 00 C5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [21:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:56:23]wFMCommunicate OK [21:56:23]CreateOFDProtocolMessage done [21:56:23]OFDSenderStorePacket 139509 [21:56:23]StoreOFDPacket docnum=139509 [21:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 C4 15 08 01 12 D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 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 58 01 00 00 F4 03 04 00 86 BF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 20 02 00 35 04 06 00 74 E7 5B FE AE A9 6E 3B 92 C5 3E 1B A2 C3 [21:56:23]CheckFolder [21:56:23]dirname=/storage/ofd_packets [21:56:23]CheckFolder done [21:56:23]ProducePacketName [21:56:23]name=ofd_packets/00139509 [21:56:23]NVStorageSaveData ofd_packets/00139509 [21:56:23]File name is /storage/ofd_packets/00139509 [21:56:23]Write 302 bytes [21:56:23]NVStorageSaveData done [21:56:23]OFDSenderStorePacket done [21:56:23]KKMCreateOFDPacket done [21:56:23]NVStorageSaveData kkm_last_timestamp [21:56:23]File name is /storage/kkm_last_timestamp [21:56:23]Write 4 bytes [21:56:23]NVStorageSaveData done [21:56:23]ExternCall_PrintAddStr [21:56:23]wPrintStart [21:56:23]Write to MH i2c: 01 00 00 C6 05 CB [21:56:23]Write i2c OK [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: 01 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: 01 07 00 [21:56:23]MH_I2C_Read... [21:56:23]Read from MH i2c: 01 07 00 C6 05 00 00 00 00 00 FF 0F E0 [21:56:23]RasterBufferAndPrint [21:56:23]line Счет N : (1)593352 [21:56:23]line ИНН: 02508201610067 [21:56:23]line Контрольно-Кассовый Чек [21:56:23]line ПРОДАЖА [21:56:23]line ТРК (МРК, ГНК) : 64 [21:56:23]line Товар: 2710194210 [21:56:23]line ДТ(л)-К-5 [21:56:23]line 42.000 * 0.00 [21:56:23]line = 0.00 [21:56:23]line НДС 12% НСП 1% [21:56:23]line > о реализуемом товаре [21:56:23]line ИТОГО: 0.00 [21:56:23]line НСП 1% : 0.00 [21:56:23]line НДС 12% : 0.00 [21:56:23]line Наличными: 0.00 [21:56:23]line Безнал.: 0.00 [21:56:23]line Место: АЗС № 136 "Партнер Нефть" [21:56:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:56:23]line СНО: Общий режим [21:56:23]line Чек 344 19.08.2024 21:56 [21:56:23]line Смена: 452 ФФД: 1.0 [21:56:23]line ЗНМ: 0300000067 [21:56:23]line РНМ: 0000000000092569 [21:56:23]line Версия ККМ: 001 [21:56:23]line Талоны: Топливная Карта [21:56:23]line 99761 [21:56:23]line ФМ: 0000000000871776 [21:56:23]line ФД: 139509 [21:56:23]line ФПД: 128537029684905 [21:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139509&fm=128537029684905&tin=02508201610067®Number=0000000000092569&sum=0 [21:56:23]written 0, free lines is 4095 [21:56:23]OFD Sender: Processing packet 139509 [packets to send 137, broken 136] [21:56:23]ProducePacketName [21:56:23]name=ofd_packets/00139509 [21:56:23]OFD Sender: To server: pG, [21:56:23]CommunicateWithHost lk.salyk.kg:30040 [21:56:23]ConnectInit lk.salyk.kg [21:56:24]Write to MH i2c: 01 00 00 F0 05 F5 [21:56:24]Write i2c OK [21:56:24]MH_I2C_Read... [21:56:24]Read from MH i2c: 01 [21:56:24]MH_I2C_Read... [21:56:24]Read from MH i2c: 01 07 00 [21:56:24]MH_I2C_Read... [21:56:24]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 E4 0C EC [21:56:24]RasterBufferAndPrint [21:56:24]line [21:56:24]line [21:56:24]line [21:56:24]line [21:56:24]line [21:56:24]written 0, free lines is 3306 [21:56:24]MH_Cut [21:56:24]Write to MH i2c: D1 01 00 F7 05 01 CE [21:56:24]Write i2c OK [21:56:24]MH_I2C_Read... [21:56:24]Read from MH i2c: D1 [21:56:24]MH_I2C_Read... [21:56:24]Read from MH i2c: D1 01 00 [21:56:24]MH_I2C_Read... [21:56:24]Read from MH i2c: D1 01 00 F7 05 00 CD [21:56:24]Write to MH i2c: 01 00 00 F8 05 FD [21:56:24]Write i2c OK [21:56:24]MH_I2C_Read... [21:56:24]Connected sock=10 [21:56: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 37 36 10 01 00 00 C4 15 08 01 12 D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 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 58 01 00 00 F4 03 04 00 86 BF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 20 02 00 35 04 06 00 74 E7 5B FE AE A9 6E 3B 92 C5 3E 1B A2 C3 [21:56: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 37 36 4F 00 00 00 E4 AE 47 00 48 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 20 02 00 F4 03 04 00 1B 66 C3 66 B6 04 01 00 00 64 D2 48 1A 03 F6 B8 3F [21:56:24]CommunicateWithHost err = 0 [21:56:24]CheckOFDResponse [21:56:24]1017 (14) - 77093643461234 [21:56:24]1041 (16) - 0000000000871776 [21:56:24]1040 (4) - 139509 [21:56:24]1012 (4) - 19.08.2024 15:34 [21:56:24]1206 (1) - 0 [21:56:24]OFD Sender: Remove packet 139509 [21:56:24]ProducePacketName [21:56:24]name=ofd_packets/00139509 [21:56:24]NVStorageDeleteData [21:56:24]*** Cut start [21:56:24]*** Partial cut [21:56:24]*** CUTSNS_PIN = 1 [21:56:24]*** CUTSNS_PIN = 0 [21:56:24]OFD Sender: No OFD packet to send [21:56:25]*** Brake cut motor [21:56:25]Read from MH i2c: 01 [21:56:25]MH_I2C_Read... [21:56:25]*** Stop cut motor [21:56:25]*** Cut end [21:56:25]Read from MH i2c: 01 07 00 [21:56:25]MH_I2C_Read... [21:56:25]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 FF 0F 12 [21:56:25]process_action close_receipt done [21:56:25]requested_data is exist [21:56:25]produce_requested_data [21:56:25]requested_item fm.sn is exist - process it [21:56:25]wFMCommunicate request_size=4 [21:56:25]MH_SAM_APDU [21:56:25]CAPDU: 80 11 00 00 [21:56:25]Write to MH i2c: E2 08 00 F9 05 80 11 00 00 00 00 00 00 78 [21:56:25]Write i2c OK [21:56:25]MH_I2C_Read... [21:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:25]Read from MH i2c: E2 [21:56:25]MH_I2C_Read... [21:56:25]Read from MH i2c: E2 17 00 [21:56:25]MH_I2C_Read... [21:56:25]Read from MH i2c: E2 17 00 F9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [21:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:56:25]wFMCommunicate OK [21:56:25]requested_item fd.num is exist - process it [21:56:25]SAM_PROTO_GetFieldsCounters [21:56:25]wFMCommunicate request_size=4 [21:56:25]MH_SAM_APDU [21:56:25]CAPDU: 80 13 00 00 [21:56:25]Write to MH i2c: E2 08 00 FA 05 80 13 00 00 00 00 00 00 7B [21:56:25]Write i2c OK [21:56:25]MH_I2C_Read... [21:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:25]Read from MH i2c: E2 [21:56:25]MH_I2C_Read... [21:56:25]Read from MH i2c: E2 62 00 [21:56:25]MH_I2C_Read... [21:56:25]Read from MH i2c: E2 62 00 FA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [21:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:25]wFMCommunicate OK [21:56:25]SAM_PROTO_GetFieldsCounters done [21:56:25]requested_item shift.num is exist - process it [21:56:25]requested_item shift.opened is exist - process it [21:56:25]req_shift_opened [21:56:25]FM_GetShiftState [21:56:25]SAM_PROTO_GetShiftState [21:56:25]wFMCommunicate request_size=4 [21:56:25]MH_SAM_APDU [21:56:25]CAPDU: 80 13 01 00 [21:56:25]Write to MH i2c: E2 08 00 FB 05 80 13 01 00 00 00 00 00 7D [21:56:25]Write i2c OK [21:56:25]MH_I2C_Read... [21:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:25]Read from MH i2c: E2 [21:56:25]MH_I2C_Read... [21:56:25]Read from MH i2c: E2 0E 00 [21:56:25]MH_I2C_Read... [21:56:25]Read from MH i2c: E2 0E 00 FB 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 34 [21:56:25]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:56:25]wFMCommunicate OK [21:56:25]SAM_PROTO_GetShiftState done [21:56:25]FM_GetShiftState done [21:56:25]req_shift_opened done [21:56:25]requested_item shift.open_date is exist - process it [21:56:25]req_shift_open_date [21:56:25]req_shift_open_date done [21:56:25]produce_requested_data done [21:56:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139509,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:56:25]process_action_free close_receipt [21:56:25]json_value_free [21:56:25]json_value_free done [21:56:25]process_json_proto returns [21:56:25]Send response to host [21:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139509,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:56:25]free response buf [21:56:25]execute_script done [21:56:25]execute_script returns [21:56:25]free content buf [21:56:25]Sock 7.Close socket [21:56:25]Sock 7.Thread stoped [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57: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:06]accept exits with 9 [21:58:06]New connection [21:58:06]New thread 3067215204 created [21:58:06]Thread 3067071844 joined [21:58:06]Waiting for new connection... [21:58:06] Sock 9.Parse request [21:58:06]Sock 9.Check first char [21:58:06]Sock 9.First char is OK [21:58:06]request: POST /json_proto HTTP/1.0 [21:58:06]Method: POST [21:58:06]URL: /json_proto [21:58:06]Method is POST - this is cgi request [21:58:06]url: /json_proto [21:58:06]query_string will be loaded in cgi processing [21:58:06]execute_cgi json_proto POST (null) [21:58:06]execute_cgi path=json_proto method=POST [21:58:06]POST find Content-Length [21:58:06]Host: 172.17.45.67:8080 [21:58:06]Content-Length: 797 [21:58:06]Content-Type: application/json [21:58:06] [21:58:06]POST finish read [21:58:06]Found Content-Length = 797 [21:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:06]execute_script... [21: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)593353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:06]POST & json_proto [21:58:06]process_json_proto [21:58:06]json parsed OK: [21:58:06]protocol is kg_v1.0 [21:58:06]action value=close_receipt [21:58:06]process_action close_receipt [21:58:06]cmd_close_receipt [21:58:06]MH_GetDate [21:58:06]Write to MH i2c: F0 00 00 FC 05 F0 [21:58:06]Write i2c OK [21:58:06]MH_I2C_Read... [21:58:06]Read from MH i2c: F0 [21:58:06]MH_I2C_Read... [21:58:06]Read from MH i2c: F0 09 00 [21:58:06]MH_I2C_Read... [21:58:06]Read from MH i2c: F0 09 00 FC 05 00 EE BF C3 66 5F 7F 2B 66 3E [21:58:06]GetLastDocTimeStamp 1724104582 [21:58:06]current date 1724104686 [21:58:06]FM_GetShiftState [21:58:06]SAM_PROTO_GetShiftState [21:58:06]wFMCommunicate request_size=4 [21:58:06]MH_SAM_APDU [21:58:06]CAPDU: 80 13 01 00 [21:58:06]Write to MH i2c: E2 08 00 FD 05 80 13 01 00 00 00 00 00 7F [21:58:06]Write i2c OK [21:58:06]MH_I2C_Read... [21:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:06]Read from MH i2c: E2 [21:58:06]MH_I2C_Read... [21:58:06]Read from MH i2c: E2 0E 00 [21:58:06]MH_I2C_Read... [21:58:06]Read from MH i2c: E2 0E 00 FD 05 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 36 [21:58:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:58:06]wFMCommunicate OK [21:58:06]SAM_PROTO_GetShiftState done [21:58:06]FM_GetShiftState done [21:58:06]opened in 1724027888 [21:58:06]opened+sec_in_day 1724114288 [21:58:06]quantity*price = 0 [21:58:06]sum+1 = 1 [21:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 345 19.08.2024 21:58 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139510 ФПД: 267201594295252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139510&fm=267201594295252&tin=02508201610067®Number=0000000000092569&sum=0 [21:58:07]StoreToDocumentArchive [21:58:07]shift 452 fd 139510 [21:58:07]save to /storage/0452/doc_00139510 [21:58:07]save last doc name /storage/0452/doc_00139510 to /storage/kkm_last_doc_name [21:58:07]save OK [21:58:07]Clear old archive folders... [21:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:58:07]tlvbuf is 00D3DA10 [21:58:07]SAM_PROTO_ClearQueue [21:58:07]wFMCommunicate request_size=4 [21:58:07]MH_SAM_APDU [21:58:07]CAPDU: 80 09 00 00 [21:58:07]Write to MH i2c: E2 08 00 0A 06 80 09 00 00 00 00 00 00 82 [21:58:07]Write i2c OK [21:58:07]MH_I2C_Read... [21:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:07]Read from MH i2c: E2 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 03 00 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 03 00 0A 06 00 90 00 84 [21:58:07]RAPDU: 90 00 [21:58:07]wFMCommunicate OK [21:58:07]SAM_PROTO_ClearQueue done [21:58:07]KKMCreateOFDPacket [21:58:07]OFDProtocolAddRootSTLVToBuf [21:58:07]FM_MakeSignedData [21:58:07]FM_MakeSignedData [21:58:07]SAM_PROTO_SignData [21:58:07]wFMCommunicate request_size=4 [21:58:07]MH_SAM_APDU [21:58:07]CAPDU: 80 0D 01 02 [21:58:07]Write to MH i2c: E2 08 00 0B 06 80 0D 01 02 00 00 00 00 8A [21:58:07]Write i2c OK [21:58:07]MH_I2C_Read... [21:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:07]Read from MH i2c: E2 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 03 00 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 03 00 0B 06 00 90 00 85 [21:58:07]RAPDU: 90 00 [21:58:07]wFMCommunicate OK [21:58:07]wFMCommunicate request_size=255 [21:58:07]MH_SAM_APDU [21:58:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 59 01 00 00 F4 03 04 00 EE BF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 20 02 00 35 04 06 00 [21:58:07]Write to MH i2c: E2 02 01 0C 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 59 01 00 00 F4 03 04 00 EE BF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 20 02 00 35 04 06 00 00 00 F9 [21:58:07]Write i2c OK [21:58:07]MH_I2C_Read... [21:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:07]Read from MH i2c: E2 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 03 00 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [21:58:07]RAPDU: 90 00 [21:58:07]wFMCommunicate OK [21:58:07]wFMCommunicate request_size=11 [21:58:07]MH_SAM_APDU [21:58:07]CAPDU: 80 0D 02 02 06 F3 04 B8 1C 83 D4 [21:58:07]Write to MH i2c: E2 0E 00 0D 06 80 0D 02 02 06 00 F3 04 B8 1C 83 D4 00 00 BB [21:58:07]Write i2c OK [21:58:07]MH_I2C_Read... [21:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:07]Read from MH i2c: E2 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 03 00 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 03 00 0D 06 00 90 00 87 [21:58:07]RAPDU: 90 00 [21:58:07]wFMCommunicate OK [21:58:07]wFMCommunicate request_size=4 [21:58:07]MH_SAM_APDU [21:58:07]CAPDU: 80 0D 03 02 [21:58:07]Write to MH i2c: E2 08 00 0E 06 80 0D 03 02 00 00 00 00 8F [21:58:07]Write i2c OK [21:58:07]MH_I2C_Read... [21:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:07]Read from MH i2c: E2 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 0B 00 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 0B 00 0E 06 00 58 99 55 74 48 43 82 6D 90 00 C4 [21:58:07]RAPDU: 58 99 55 74 48 43 82 6D 90 00 [21:58:07]wFMCommunicate OK [21:58:07]SAM_PROTO_SignData done [21:58:07]FM_MakeSignedData done [21:58:07]CreateOFDProtocolMessage [21:58:07]wFMCommunicate request_size=4 [21:58:07]MH_SAM_APDU [21:58:07]CAPDU: 80 11 00 00 [21:58:07]Write to MH i2c: E2 08 00 0F 06 80 11 00 00 00 00 00 00 8F [21:58:07]Write i2c OK [21:58:07]MH_I2C_Read... [21:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:07]Read from MH i2c: E2 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 17 00 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 17 00 0F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E6 [21:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:58:07]wFMCommunicate OK [21:58:07]CreateOFDProtocolMessage done [21:58:07]OFDSenderStorePacket 139510 [21:58:07]StoreOFDPacket docnum=139510 [21:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 BB FC 08 01 3C CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 59 01 00 00 F4 03 04 00 EE BF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 20 02 00 35 04 06 00 F3 04 B8 1C 83 D4 58 99 55 74 48 43 82 6D [21:58:07]CheckFolder [21:58:07]dirname=/storage/ofd_packets [21:58:07]CheckFolder done [21:58:07]ProducePacketName [21:58:07]name=ofd_packets/00139510 [21:58:07]NVStorageSaveData ofd_packets/00139510 [21:58:07]File name is /storage/ofd_packets/00139510 [21:58:07]Write 302 bytes [21:58:07]NVStorageSaveData done [21:58:07]OFDSenderStorePacket done [21:58:07]KKMCreateOFDPacket done [21:58:07]NVStorageSaveData kkm_last_timestamp [21:58:07]File name is /storage/kkm_last_timestamp [21:58:07]Write 4 bytes [21:58:07]NVStorageSaveData done [21:58:08]OFD Sender: Processing packet 139510 [packets to send 137, broken 136] [21:58:08]ProducePacketName [21:58:08]name=ofd_packets/00139510 [21:58:08]OFD Sender: To server: pG, [21:58:08]CommunicateWithHost lk.salyk.kg:30040 [21:58:08]ConnectInit lk.salyk.kg [21:58:08]ExternCall_PrintAddStr [21:58:08]wPrintStart [21:58:08]Write to MH i2c: 01 00 00 10 06 16 [21:58:08]Write i2c OK [21:58:08]MH_I2C_Read... [21:58:08]Read from MH i2c: 01 [21:58:08]MH_I2C_Read... [21:58:08]Read from MH i2c: 01 07 00 [21:58:08]MH_I2C_Read... [21:58:08]Read from MH i2c: 01 07 00 10 06 00 00 00 00 00 FF 0F 2B [21:58:08]RasterBufferAndPrint [21:58:08]line Счет N : (1)593353 [21:58:08]line ИНН: 02508201610067 [21:58:08]line Контрольно-Кассовый Чек [21:58:08]line ПРОДАЖА [21:58:08]line ТРК (МРК, ГНК) : 54 [21:58:08]line Товар: 2710194210 [21:58:08]line ДТ(л)-К-5 [21:58:08]line 50.000 * 0.00 [21:58:08]line = 0.00 [21:58:08]line НДС 12% НСП 1% [21:58:08]line > о реализуемом товаре [21:58:08]line ИТОГО: 0.00 [21:58:08]line НСП 1% : 0.00 [21:58:08]line НДС 12% : 0.00 [21:58:08]line Наличными: 0.00 [21:58:08]line Безнал.: 0.00 [21:58:08]line Место: АЗС № 136 "Партнер Нефть" [21:58:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:58:08]line СНО: Общий режим [21:58:08]line Чек 345 19.08.2024 21:58 [21:58:08]line Смена: 452 ФФД: 1.0 [21:58:08]line ЗНМ: 0300000067 [21:58:08]line РНМ: 0000000000092569 [21:58:08]line Версия ККМ: 001 [21:58:08]line Талоны: Топливная Карта [21:58:08]line 99761 [21:58:08]line ФМ: 0000000000871776 [21:58:08]line ФД: 139510 [21:58:08]line ФПД: 267201594295252 [21:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139510&fm=267201594295252&tin=02508201610067®Number=0000000000092569&sum=0 [21:58:08]Connected sock=11 [21: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 37 36 10 01 00 00 BB FC 08 01 3C CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 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 59 01 00 00 F4 03 04 00 EE BF C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 20 02 00 35 04 06 00 F3 04 B8 1C 83 D4 58 99 55 74 48 43 82 6D [21:58:08]written 0, free lines is 4095 [21:58: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 37 36 4F 00 00 00 AC 7F 47 00 A6 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 37 36 10 04 04 00 F6 20 02 00 F4 03 04 00 83 66 C3 66 B6 04 01 00 00 EA 6A 8F F1 1C 1D 4C DD [21:58:08]CommunicateWithHost err = 0 [21:58:08]CheckOFDResponse [21:58:08]1017 (14) - 77093643461234 [21:58:08]1041 (16) - 0000000000871776 [21:58:08]1040 (4) - 139510 [21:58:08]1012 (4) - 19.08.2024 15:36 [21:58:08]1206 (1) - 0 [21:58:08]OFD Sender: Remove packet 139510 [21:58:08]ProducePacketName [21:58:08]name=ofd_packets/00139510 [21:58:08]NVStorageDeleteData [21:58:08]Write to MH i2c: 01 00 00 3A 06 40 [21:58:08]Write i2c OK [21:58:08]MH_I2C_Read... [21:58:08]Read from MH i2c: 01 [21:58:08]MH_I2C_Read... [21:58:08]Read from MH i2c: 01 07 00 [21:58:08]MH_I2C_Read... [21:58:08]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 DF 0C 32 [21:58:08]RasterBufferAndPrint [21:58:08]line [21:58:08]line [21:58:08]line [21:58:08]line [21:58:08]line [21:58:08]written 0, free lines is 3301 [21:58:08]MH_Cut [21:58:08]Write to MH i2c: D1 01 00 41 06 01 19 [21:58:08]Write i2c OK [21:58:08]MH_I2C_Read... [21:58:08]Read from MH i2c: D1 [21:58:08]MH_I2C_Read... [21:58:08]Read from MH i2c: D1 01 00 [21:58:08]MH_I2C_Read... [21:58:08]Read from MH i2c: D1 01 00 41 06 00 18 [21:58:08]Write to MH i2c: 01 00 00 42 06 48 [21:58:08]Write i2c OK [21:58:08]MH_I2C_Read... [21:58:09]OFD Sender: No OFD packet to send [21:58:09]*** Cut start [21:58:09]*** Partial cut [21:58:09]*** CUTSNS_PIN = 1 [21:58:09]*** CUTSNS_PIN = 0 [21:58:09]*** Brake cut motor [21:58:10]Read from MH i2c: 01 [21:58:10]MH_I2C_Read... [21:58:10]*** Stop cut motor [21:58:10]*** Cut end [21:58:10]Read from MH i2c: 01 07 00 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FF 0F 5D [21:58:10]process_action close_receipt done [21:58:10]requested_data is exist [21:58:10]produce_requested_data [21:58:10]requested_item fm.sn is exist - process it [21:58:10]wFMCommunicate request_size=4 [21:58:10]MH_SAM_APDU [21:58:10]CAPDU: 80 11 00 00 [21:58:10]Write to MH i2c: E2 08 00 43 06 80 11 00 00 00 00 00 00 C3 [21:58:10]Write i2c OK [21:58:10]MH_I2C_Read... [21:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:10]Read from MH i2c: E2 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: E2 17 00 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: E2 17 00 43 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1A [21:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:58:10]wFMCommunicate OK [21:58:10]requested_item fd.num is exist - process it [21:58:10]SAM_PROTO_GetFieldsCounters [21:58:10]wFMCommunicate request_size=4 [21:58:10]MH_SAM_APDU [21:58:10]CAPDU: 80 13 00 00 [21:58:10]Write to MH i2c: E2 08 00 44 06 80 13 00 00 00 00 00 00 C6 [21:58:10]Write i2c OK [21:58:10]MH_I2C_Read... [21:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:10]Read from MH i2c: E2 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: E2 62 00 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: E2 62 00 44 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [21:58: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:10]wFMCommunicate OK [21:58:10]SAM_PROTO_GetFieldsCounters done [21:58:10]requested_item shift.num is exist - process it [21:58:10]requested_item shift.opened is exist - process it [21:58:10]req_shift_opened [21:58:10]FM_GetShiftState [21:58:10]SAM_PROTO_GetShiftState [21:58:10]wFMCommunicate request_size=4 [21:58:10]MH_SAM_APDU [21:58:10]CAPDU: 80 13 01 00 [21:58:10]Write to MH i2c: E2 08 00 45 06 80 13 01 00 00 00 00 00 C8 [21:58:10]Write i2c OK [21:58:10]MH_I2C_Read... [21:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:10]Read from MH i2c: E2 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: E2 0E 00 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: E2 0E 00 45 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 7F [21:58:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [21:58:10]wFMCommunicate OK [21:58:10]SAM_PROTO_GetShiftState done [21:58:10]FM_GetShiftState done [21:58:10]req_shift_opened done [21:58:10]requested_item shift.open_date is exist - process it [21:58:10]req_shift_open_date [21:58:10]req_shift_open_date done [21:58:10]produce_requested_data done [21:58:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139510,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [21:58:10]process_action_free close_receipt [21:58:10]json_value_free [21:58:10]json_value_free done [21:58:10]process_json_proto returns [21:58:10]Send response to host [21:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139510,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [21:58:10]free response buf [21:58:10]execute_script done [21:58:10]execute_script returns [21:58:10]free content buf [21:58:10]Sock 9.Close socket [21:58:10]Sock 9.Thread stoped [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:02]accept exits with 7 [22:00:02]New connection [22:00:02]New thread 3067071844 created [22:00:02]Thread 3067215204 joined [22:00:02]Waiting for new connection... [22:00:02] Sock 7.Parse request [22:00:02]Sock 7.Check first char [22:00:02]Sock 7.First char is OK [22:00:02]request: POST /json_proto HTTP/1.0 [22:00:02]Method: POST [22:00:02]URL: /json_proto [22:00:02]Method is POST - this is cgi request [22:00:02]url: /json_proto [22:00:02]query_string will be loaded in cgi processing [22:00:02]execute_cgi json_proto POST (null) [22:00:02]execute_cgi path=json_proto method=POST [22:00:02]POST find Content-Length [22:00:02]Host: 172.17.45.67:8080 [22:00:02]Content-Length: 677 [22:00:02]Content-Type: application/json [22:00:02] [22:00:02]POST finish read [22:00:02]Found Content-Length = 677 [22:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [22:00:02]execute_script... [22:00:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [22:00:02]POST & json_proto [22:00:02]process_json_proto [22:00:02]json parsed OK: [22:00:02]protocol is kg_v1.0 [22:00:02]action value=close_receipt [22:00:02]process_action close_receipt [22:00:02]cmd_close_receipt [22:00:02]MH_GetDate [22:00:02]Write to MH i2c: F0 00 00 46 06 3B [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: F0 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: F0 09 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: F0 09 00 46 06 00 63 C0 C3 66 5F 7F 2B 66 FF [22:00:02]GetLastDocTimeStamp 1724104686 [22:00:02]current date 1724104803 [22:00:02]FM_GetShiftState [22:00:02]SAM_PROTO_GetShiftState [22:00:02]wFMCommunicate request_size=4 [22:00:02]MH_SAM_APDU [22:00:02]CAPDU: 80 13 01 00 [22:00:02]Write to MH i2c: E2 08 00 47 06 80 13 01 00 00 00 00 00 CA [22:00:02]Write i2c OK [22:00:02]MH_I2C_Read... [22:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:02]Read from MH i2c: E2 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 0E 00 [22:00:02]MH_I2C_Read... [22:00:02]Read from MH i2c: E2 0E 00 47 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 81 [22:00:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:00:02]wFMCommunicate OK [22:00:02]SAM_PROTO_GetShiftState done [22:00:02]FM_GetShiftState done [22:00:02]opened in 1724027888 [22:00:02]opened+sec_in_day 1724114288 [22:00:02]quantity*price = 60003 [22:00:02]sum+1 = 60004 [22:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 346 19.08.2024 22:00 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139511 ФПД: 38521611830755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220003&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139511&fm=38521611830755&tin=02508201610067®Number=0000000000092569&sum=60000 [22:00:03]StoreToDocumentArchive [22:00:03]shift 452 fd 139511 [22:00:03]save to /storage/0452/doc_00139511 [22:00:03]save last doc name /storage/0452/doc_00139511 to /storage/kkm_last_doc_name [22:00:03]save OK [22:00:03]Clear old archive folders... [22:00:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:03]tlvbuf is 00D44D30 [22:00:03]SAM_PROTO_ClearQueue [22:00:03]wFMCommunicate request_size=4 [22:00:03]MH_SAM_APDU [22:00:03]CAPDU: 80 09 00 00 [22:00:03]Write to MH i2c: E2 08 00 54 06 80 09 00 00 00 00 00 00 CC [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:03]Read from MH i2c: E2 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: E2 03 00 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: E2 03 00 54 06 00 90 00 CE [22:00:03]RAPDU: 90 00 [22:00:03]wFMCommunicate OK [22:00:03]SAM_PROTO_ClearQueue done [22:00:03]KKMCreateOFDPacket [22:00:03]OFDProtocolAddRootSTLVToBuf [22:00:03]FM_MakeSignedData [22:00:03]FM_MakeSignedData [22:00:03]SAM_PROTO_SignData [22:00:03]wFMCommunicate request_size=4 [22:00:03]MH_SAM_APDU [22:00:03]CAPDU: 80 0D 01 02 [22:00:03]Write to MH i2c: E2 08 00 55 06 80 0D 01 02 00 00 00 00 D4 [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:03]Read from MH i2c: E2 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: E2 03 00 [22:00:03]MH_I2C_Read... [22:00:03]Read from MH i2c: E2 03 00 55 06 00 90 00 CF [22:00:03]RAPDU: 90 00 [22:00:03]wFMCommunicate OK [22:00:03]wFMCommunicate request_size=255 [22:00:03]MH_SAM_APDU [22: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 5A 01 00 00 F4 03 04 00 63 C0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 20 02 00 35 04 06 00 23 [22:00:03]Write to MH i2c: E2 02 01 56 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 5A 01 00 00 F4 03 04 00 63 C0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 20 02 00 35 04 06 00 23 00 00 CC [22:00:03]Write i2c OK [22:00:03]MH_I2C_Read... [22:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:04]Read from MH i2c: E2 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 03 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 03 00 56 06 00 90 00 D0 [22:00:04]RAPDU: 90 00 [22:00:04]wFMCommunicate OK [22:00:04]wFMCommunicate request_size=10 [22:00:04]MH_SAM_APDU [22:00:04]CAPDU: 80 0D 02 02 05 09 02 FD 45 E3 [22:00:04]Write to MH i2c: E2 0D 00 57 06 80 0D 02 02 05 00 09 02 FD 45 E3 00 00 11 [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:04]Read from MH i2c: E2 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 03 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 03 00 57 06 00 90 00 D1 [22:00:04]RAPDU: 90 00 [22:00:04]wFMCommunicate OK [22:00:04]wFMCommunicate request_size=4 [22:00:04]MH_SAM_APDU [22:00:04]CAPDU: 80 0D 03 02 [22:00:04]Write to MH i2c: E2 08 00 58 06 80 0D 03 02 00 00 00 00 D9 [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:04]OFD Sender: No OFD packet to send [22:00:04]Read from MH i2c: E2 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 0B 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 0B 00 58 06 00 09 D8 79 B3 33 00 04 14 90 00 32 [22:00:04]RAPDU: 09 D8 79 B3 33 00 04 14 90 00 [22:00:04]wFMCommunicate OK [22:00:04]SAM_PROTO_SignData done [22:00:04]FM_MakeSignedData done [22:00:04]CreateOFDProtocolMessage [22:00:04]wFMCommunicate request_size=4 [22:00:04]MH_SAM_APDU [22:00:04]CAPDU: 80 11 00 00 [22:00:04]Write to MH i2c: E2 08 00 59 06 80 11 00 00 00 00 00 00 D9 [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:04]Read from MH i2c: E2 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 17 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: E2 17 00 59 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 30 [22:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:00:04]wFMCommunicate OK [22:00:04]CreateOFDProtocolMessage done [22:00:04]OFDSenderStorePacket 139511 [22:00:04]StoreOFDPacket docnum=139511 [22:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1A FF 07 01 09 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 5A 01 00 00 F4 03 04 00 63 C0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 20 02 00 35 04 06 00 23 09 02 FD 45 E3 09 D8 79 B3 33 00 04 14 [22:00:04]CheckFolder [22:00:04]dirname=/storage/ofd_packets [22:00:04]CheckFolder done [22:00:04]ProducePacketName [22:00:04]name=ofd_packets/00139511 [22:00:04]NVStorageSaveData ofd_packets/00139511 [22:00:04]File name is /storage/ofd_packets/00139511 [22:00:04]Write 301 bytes [22:00:04]NVStorageSaveData done [22:00:04]OFDSenderStorePacket done [22:00:04]KKMCreateOFDPacket done [22:00:04]NVStorageSaveData kkm_last_timestamp [22:00:04]File name is /storage/kkm_last_timestamp [22:00:04]Write 4 bytes [22:00:04]NVStorageSaveData done [22:00:04]ExternCall_PrintAddStr [22:00:04]wPrintStart [22:00:04]Write to MH i2c: 01 00 00 5A 06 60 [22:00:04]Write i2c OK [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: 01 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: 01 07 00 [22:00:04]MH_I2C_Read... [22:00:04]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 FF 0F 75 [22:00:04]RasterBufferAndPrint [22:00:04]line Счет N : (1)593354 [22:00:04]line ИНН: 02508201610067 [22:00:04]line Контрольно-Кассовый Чек [22:00:04]line ПРОДАЖА [22:00:04]line ТРК (МРК, ГНК) : 32 [22:00:04]line Товар: 2710124130 [22:00:04]line Аи-92-К-5 [22:00:04]line 8.850 * 67.80 [22:00:04]line = 600.03 [22:00:04]line НДС 12% НСП 1% [22:00:04]line > о реализуемом товаре [22:00:04]line ОКРУГЛЕНИЕ: -0.03 [22:00:04]line ИТОГО: 600.00 [22:00:04]line Внесено: 600.00 [22:00:04]line СДАЧА: 0.00 [22:00:04]line НСП 1% : 5.31 [22:00:04]line НДС 12% : 63.72 [22:00:04]line Наличными: 600.00 [22:00:04]line Безнал.: 0.00 [22:00:04]line Место: АЗС № 136 "Партнер Нефть" [22:00:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:00:04]line СНО: Общий режим [22:00:04]line Чек 346 19.08.2024 22:00 [22:00:04]line Смена: 452 ФФД: 1.0 [22:00:04]line ЗНМ: 0300000067 [22:00:04]line РНМ: 0000000000092569 [22:00:04]line Версия ККМ: 001 [22:00:04]line ФМ: 0000000000871776 [22:00:04]line ФД: 139511 [22:00:04]line ФПД: 38521611830755 [22:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220003&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139511&fm=38521611830755&tin=02508201610067®Number=0000000000092569&sum=60000 [22:00:04]OFD Sender: Processing packet 139511 [packets to send 137, broken 136] [22:00:04]ProducePacketName [22:00:04]name=ofd_packets/00139511 [22:00:04]OFD Sender: To server: pG, [22:00:04]CommunicateWithHost lk.salyk.kg:30040 [22:00:04]ConnectInit lk.salyk.kg [22:00:04]written 0, free lines is 4095 [22:00:04]Connected sock=10 [22:00:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1A FF 07 01 09 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 5A 01 00 00 F4 03 04 00 63 C0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 20 02 00 35 04 06 00 23 09 02 FD 45 E3 09 D8 79 B3 33 00 04 14 [22:00: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 37 36 4F 00 00 00 3C 40 47 00 9E 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 37 36 10 04 04 00 F7 20 02 00 F4 03 04 00 F8 66 C3 66 B6 04 01 00 00 0B 79 13 C8 58 6B 1D EE [22:00:05]CommunicateWithHost err = 0 [22:00:05]CheckOFDResponse [22:00:05]1017 (14) - 77093643461234 [22:00:05]1041 (16) - 0000000000871776 [22:00:05]1040 (4) - 139511 [22:00:05]1012 (4) - 19.08.2024 15:38 [22:00:05]1206 (1) - 0 [22:00:05]OFD Sender: Remove packet 139511 [22:00:05]ProducePacketName [22:00:05]name=ofd_packets/00139511 [22:00:05]NVStorageDeleteData [22:00:05]Write to MH i2c: 01 00 00 85 06 8B [22:00:05]Write i2c OK [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: 01 [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: 01 07 00 [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 DA 0C 78 [22:00:05]RasterBufferAndPrint [22:00:05]line [22:00:05]line [22:00:05]line [22:00:05]line [22:00:05]line [22:00:05]written 0, free lines is 3297 [22:00:05]MH_Cut [22:00:05]Write to MH i2c: D1 01 00 8C 06 01 64 [22:00:05]Write i2c OK [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: D1 [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: D1 01 00 [22:00:05]MH_I2C_Read... [22:00:05]Read from MH i2c: D1 01 00 8C 06 00 63 [22:00:05]Write to MH i2c: 01 00 00 8D 06 93 [22:00:05]Write i2c OK [22:00:05]MH_I2C_Read... [22:00:05]OFD Sender: No OFD packet to send [22:00:05]*** Cut start [22:00:05]*** Partial cut [22:00:05]*** CUTSNS_PIN = 1 [22:00:05]*** CUTSNS_PIN = 0 [22:00:06]*** Brake cut motor [22:00:06]Read from MH i2c: 01 [22:00:06]MH_I2C_Read... [22:00:06]*** Stop cut motor [22:00:06]*** Cut end [22:00:06]Read from MH i2c: 01 07 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: 01 07 00 8D 06 00 00 00 00 00 FF 0F A8 [22:00:06]process_action close_receipt done [22:00:06]requested_data is exist [22:00:06]produce_requested_data [22:00:06]requested_item fm.sn is exist - process it [22:00:06]wFMCommunicate request_size=4 [22:00:06]MH_SAM_APDU [22:00:06]CAPDU: 80 11 00 00 [22:00:06]Write to MH i2c: E2 08 00 8E 06 80 11 00 00 00 00 00 00 0E [22:00:06]Write i2c OK [22:00:06]MH_I2C_Read... [22:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:06]Read from MH i2c: E2 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 17 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 17 00 8E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 65 [22:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:00:06]wFMCommunicate OK [22:00:06]requested_item fd.num is exist - process it [22:00:06]SAM_PROTO_GetFieldsCounters [22:00:06]wFMCommunicate request_size=4 [22:00:06]MH_SAM_APDU [22:00:06]CAPDU: 80 13 00 00 [22:00:06]Write to MH i2c: E2 08 00 8F 06 80 13 00 00 00 00 00 00 11 [22:00:06]Write i2c OK [22:00:06]MH_I2C_Read... [22:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:06]Read from MH i2c: E2 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 62 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 62 00 8F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [22:00:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:06]wFMCommunicate OK [22:00:06]SAM_PROTO_GetFieldsCounters done [22:00:06]requested_item shift.num is exist - process it [22:00:06]requested_item shift.opened is exist - process it [22:00:06]req_shift_opened [22:00:06]FM_GetShiftState [22:00:06]SAM_PROTO_GetShiftState [22:00:06]wFMCommunicate request_size=4 [22:00:06]MH_SAM_APDU [22:00:06]CAPDU: 80 13 01 00 [22:00:06]Write to MH i2c: E2 08 00 90 06 80 13 01 00 00 00 00 00 13 [22:00:06]Write i2c OK [22:00:06]MH_I2C_Read... [22:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:06]Read from MH i2c: E2 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 0E 00 [22:00:06]MH_I2C_Read... [22:00:06]Read from MH i2c: E2 0E 00 90 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CA [22:00:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:00:06]wFMCommunicate OK [22:00:06]SAM_PROTO_GetShiftState done [22:00:06]FM_GetShiftState done [22:00:06]req_shift_opened done [22:00:06]requested_item shift.open_date is exist - process it [22:00:06]req_shift_open_date [22:00:06]req_shift_open_date done [22:00:06]produce_requested_data done [22:00:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139511,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:00:06]process_action_free close_receipt [22:00:06]json_value_free [22:00:06]json_value_free done [22:00:06]process_json_proto returns [22:00:06]Send response to host [22:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139511,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:00:06]free response buf [22:00:06]execute_script done [22:00:06]execute_script returns [22:00:06]free content buf [22:00:06]Sock 7.Close socket [22:00:06]Sock 7.Thread stoped [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:37]accept exits with 9 [22:00:37]New connection [22:00:37]New thread 3067215204 created [22:00:37]Thread 3067071844 joined [22:00:37]Waiting for new connection... [22:00:37] Sock 9.Parse request [22:00:37]Sock 9.Check first char [22:00:37]Sock 9.First char is OK [22:00:37]request: POST /json_proto HTTP/1.0 [22:00:37]Method: POST [22:00:37]URL: /json_proto [22:00:37]Method is POST - this is cgi request [22:00:37]url: /json_proto [22:00:37]query_string will be loaded in cgi processing [22:00:37]execute_cgi json_proto POST (null) [22:00:37]execute_cgi path=json_proto method=POST [22:00:37]POST find Content-Length [22:00:37]Host: 172.17.45.67:8080 [22:00:37]Content-Length: 677 [22:00:37]Content-Type: application/json [22:00:37] [22:00:37]POST finish read [22:00:37]Found Content-Length = 677 [22:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:00:37]execute_script... [22:00: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)593355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:00:37]POST & json_proto [22:00:37]process_json_proto [22:00:37]json parsed OK: [22:00:37]protocol is kg_v1.0 [22:00:37]action value=close_receipt [22:00:37]process_action close_receipt [22:00:37]cmd_close_receipt [22:00:37]MH_GetDate [22:00:37]Write to MH i2c: F0 00 00 91 06 86 [22:00:37]Write i2c OK [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: F0 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: F0 09 00 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: F0 09 00 91 06 00 85 C0 C3 66 5F 7F 2B 66 6C [22:00:37]GetLastDocTimeStamp 1724104803 [22:00:37]current date 1724104837 [22:00:37]FM_GetShiftState [22:00:37]SAM_PROTO_GetShiftState [22:00:37]wFMCommunicate request_size=4 [22:00:37]MH_SAM_APDU [22:00:37]CAPDU: 80 13 01 00 [22:00:37]Write to MH i2c: E2 08 00 92 06 80 13 01 00 00 00 00 00 15 [22:00:37]Write i2c OK [22:00:37]MH_I2C_Read... [22:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:37]Read from MH i2c: E2 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: E2 0E 00 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: E2 0E 00 92 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CC [22:00:37]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:00:37]wFMCommunicate OK [22:00:37]SAM_PROTO_GetShiftState done [22:00:37]FM_GetShiftState done [22:00:37]opened in 1724027888 [22:00:37]opened+sec_in_day 1724114288 [22:00:37]quantity*price = 50036 [22:00:37]sum+1 = 50037 [22:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 347 19.08.2024 22:00 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139512 ФПД: 214087106831971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220037&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139512&fm=214087106831971&tin=02508201610067®Number=0000000000092569&sum=50000 [22:00:38]StoreToDocumentArchive [22:00:38]shift 452 fd 139512 [22:00:38]save to /storage/0452/doc_00139512 [22:00:38]save last doc name /storage/0452/doc_00139512 to /storage/kkm_last_doc_name [22:00:38]save OK [22:00:38]Clear old archive folders... [22:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:38]tlvbuf is 00D3E420 [22:00:38]SAM_PROTO_ClearQueue [22:00:38]wFMCommunicate request_size=4 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 09 00 00 [22:00:38]Write to MH i2c: E2 08 00 9F 06 80 09 00 00 00 00 00 00 17 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 9F 06 00 90 00 19 [22:00:38]RAPDU: 90 00 [22:00:38]wFMCommunicate OK [22:00:38]SAM_PROTO_ClearQueue done [22:00:38]KKMCreateOFDPacket [22:00:38]OFDProtocolAddRootSTLVToBuf [22:00:38]FM_MakeSignedData [22:00:38]FM_MakeSignedData [22:00:38]SAM_PROTO_SignData [22:00:38]wFMCommunicate request_size=4 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 0D 01 02 [22:00:38]Write to MH i2c: E2 08 00 A0 06 80 0D 01 02 00 00 00 00 1F [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 A0 06 00 90 00 1A [22:00:38]RAPDU: 90 00 [22:00:38]wFMCommunicate OK [22:00:38]wFMCommunicate request_size=255 [22:00:38]MH_SAM_APDU [22:00: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 5B 01 00 00 F4 03 04 00 85 C0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 20 02 00 35 04 06 00 C2 [22:00:38]Write to MH i2c: E2 02 01 A1 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 5B 01 00 00 F4 03 04 00 85 C0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 20 02 00 35 04 06 00 C2 00 00 13 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 A1 06 00 90 00 1B [22:00:38]RAPDU: 90 00 [22:00:38]wFMCommunicate OK [22:00:38]wFMCommunicate request_size=10 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 0D 02 02 05 B6 09 F4 26 63 [22:00:38]Write to MH i2c: E2 0D 00 A2 06 80 0D 02 02 05 00 B6 09 F4 26 63 00 00 68 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 A2 06 00 90 00 1C [22:00:38]RAPDU: 90 00 [22:00:38]wFMCommunicate OK [22:00:38]wFMCommunicate request_size=4 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 0D 03 02 [22:00:38]Write to MH i2c: E2 08 00 A3 06 80 0D 03 02 00 00 00 00 24 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 0B 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 0B 00 A3 06 00 1A 48 41 D2 E1 B0 F3 92 90 00 B0 [22:00:38]RAPDU: 1A 48 41 D2 E1 B0 F3 92 90 00 [22:00:38]wFMCommunicate OK [22:00:38]SAM_PROTO_SignData done [22:00:38]FM_MakeSignedData done [22:00:38]CreateOFDProtocolMessage [22:00:38]wFMCommunicate request_size=4 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 11 00 00 [22:00:38]Write to MH i2c: E2 08 00 A4 06 80 11 00 00 00 00 00 00 24 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 17 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 17 00 A4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7B [22:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:00:38]wFMCommunicate OK [22:00:38]CreateOFDProtocolMessage done [22:00:38]OFDSenderStorePacket 139512 [22:00:38]StoreOFDPacket docnum=139512 [22:00:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 18 C8 07 01 01 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 5B 01 00 00 F4 03 04 00 85 C0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 20 02 00 35 04 06 00 C2 B6 09 F4 26 63 1A 48 41 D2 E1 B0 F3 92 [22:00:38]CheckFolder [22:00:38]dirname=/storage/ofd_packets [22:00:38]CheckFolder done [22:00:38]ProducePacketName [22:00:38]name=ofd_packets/00139512 [22:00:38]NVStorageSaveData ofd_packets/00139512 [22:00:38]File name is /storage/ofd_packets/00139512 [22:00:38]Write 301 bytes [22:00:38]NVStorageSaveData done [22:00:38]OFDSenderStorePacket done [22:00:38]KKMCreateOFDPacket done [22:00:38]NVStorageSaveData kkm_last_timestamp [22:00:38]File name is /storage/kkm_last_timestamp [22:00:38]Write 4 bytes [22:00:38]NVStorageSaveData done [22:00:38]OFD Sender: Processing packet 139512 [packets to send 137, broken 136] [22:00:38]ProducePacketName [22:00:38]name=ofd_packets/00139512 [22:00:38]OFD Sender: To server: pG, [22:00:38]CommunicateWithHost lk.salyk.kg:30040 [22:00:38]ConnectInit lk.salyk.kg [22:00:38]ExternCall_PrintAddStr [22:00:38]wPrintStart [22:00:38]Write to MH i2c: 01 00 00 A5 06 AB [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: 01 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: 01 07 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: 01 07 00 A5 06 00 00 00 00 00 FF 0F C0 [22:00:38]RasterBufferAndPrint [22:00:38]line Счет N : (1)593355 [22:00:38]line ИНН: 02508201610067 [22:00:38]line Контрольно-Кассовый Чек [22:00:38]line ПРОДАЖА [22:00:38]line ТРК (МРК, ГНК) : 52 [22:00:38]line Товар: 2710124130 [22:00:38]line Аи-92-К-5 [22:00:38]line 7.380 * 67.80 [22:00:38]line = 500.36 [22:00:38]line НДС 12% НСП 1% [22:00:38]line > о реализуемом товаре [22:00:38]line ОКРУГЛЕНИЕ: -0.36 [22:00:38]line ИТОГО: 500.00 [22:00:38]line Внесено: 500.00 [22:00:38]line СДАЧА: 0.00 [22:00:38]line НСП 1% : 4.43 [22:00:38]line НДС 12% : 53.14 [22:00:38]line Наличными: 500.00 [22:00:38]line Безнал.: 0.00 [22:00:38]line Место: АЗС № 136 "Партнер Нефть" [22:00:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:00:38]line СНО: Общий режим [22:00:38]line Чек 347 19.08.2024 22:00 [22:00:38]line Смена: 452 ФФД: 1.0 [22:00:38]line ЗНМ: 0300000067 [22:00:38]line РНМ: 0000000000092569 [22:00:38]line Версия ККМ: 001 [22:00:38]line ФМ: 0000000000871776 [22:00:38]line ФД: 139512 [22:00:38]line ФПД: 214087106831971 [22:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220037&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139512&fm=214087106831971&tin=02508201610067®Number=0000000000092569&sum=50000 [22:00:39]written 0, free lines is 4095 [22:00:39]Connected sock=12 [22:00: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 37 36 0F 01 00 00 18 C8 07 01 01 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 5B 01 00 00 F4 03 04 00 85 C0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 20 02 00 35 04 06 00 C2 B6 09 F4 26 63 1A 48 41 D2 E1 B0 F3 92 [22:00: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 37 36 4F 00 00 00 3A 6E 47 00 01 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 37 36 10 04 04 00 F8 20 02 00 F4 03 04 00 1A 67 C3 66 B6 04 01 00 00 29 32 FC 35 E7 58 A1 2C [22:00:39]CommunicateWithHost err = 0 [22:00:39]CheckOFDResponse [22:00:39]1017 (14) - 77093643461234 [22:00:39]1041 (16) - 0000000000871776 [22:00:39]1040 (4) - 139512 [22:00:39]1012 (4) - 19.08.2024 15:39 [22:00:39]1206 (1) - 0 [22:00:39]OFD Sender: Remove packet 139512 [22:00:39]ProducePacketName [22:00:39]name=ofd_packets/00139512 [22:00:39]NVStorageDeleteData [22:00:39]Write to MH i2c: 01 00 00 D0 06 D6 [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: 01 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: 01 07 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: 01 07 00 D0 06 00 00 00 00 00 D3 0C BC [22:00:39]RasterBufferAndPrint [22:00:39]line [22:00:39]line [22:00:39]line [22:00:39]line [22:00:39]line [22:00:39]written 0, free lines is 3289 [22:00:39]MH_Cut [22:00:39]Write to MH i2c: D1 01 00 D7 06 01 AF [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: D1 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: D1 01 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: D1 01 00 D7 06 00 AE [22:00:39]Write to MH i2c: 01 00 00 D8 06 DE [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:40]OFD Sender: No OFD packet to send [22:00:40]*** Cut start [22:00:40]*** Partial cut [22:00:40]*** CUTSNS_PIN = 1 [22:00:40]*** CUTSNS_PIN = 0 [22:00:40]*** Brake cut motor [22:00:41]Read from MH i2c: 01 [22:00:41]MH_I2C_Read... [22:00:41]*** Stop cut motor [22:00:41]*** Cut end [22:00:41]Read from MH i2c: 01 07 00 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: 01 07 00 D8 06 00 00 00 00 00 FF 0F F3 [22:00:41]process_action close_receipt done [22:00:41]requested_data is exist [22:00:41]produce_requested_data [22:00:41]requested_item fm.sn is exist - process it [22:00:41]wFMCommunicate request_size=4 [22:00:41]MH_SAM_APDU [22:00:41]CAPDU: 80 11 00 00 [22:00:41]Write to MH i2c: E2 08 00 D9 06 80 11 00 00 00 00 00 00 59 [22:00:41]Write i2c OK [22:00:41]MH_I2C_Read... [22:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:41]Read from MH i2c: E2 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 17 00 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 17 00 D9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B0 [22:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:00:41]wFMCommunicate OK [22:00:41]requested_item fd.num is exist - process it [22:00:41]SAM_PROTO_GetFieldsCounters [22:00:41]wFMCommunicate request_size=4 [22:00:41]MH_SAM_APDU [22:00:41]CAPDU: 80 13 00 00 [22:00:41]Write to MH i2c: E2 08 00 DA 06 80 13 00 00 00 00 00 00 5C [22:00:41]Write i2c OK [22:00:41]MH_I2C_Read... [22:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:41]Read from MH i2c: E2 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 62 00 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 62 00 DA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [22:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:41]wFMCommunicate OK [22:00:41]SAM_PROTO_GetFieldsCounters done [22:00:41]requested_item shift.num is exist - process it [22:00:41]requested_item shift.opened is exist - process it [22:00:41]req_shift_opened [22:00:41]FM_GetShiftState [22:00:41]SAM_PROTO_GetShiftState [22:00:41]wFMCommunicate request_size=4 [22:00:41]MH_SAM_APDU [22:00:41]CAPDU: 80 13 01 00 [22:00:41]Write to MH i2c: E2 08 00 DB 06 80 13 01 00 00 00 00 00 5E [22:00:41]Write i2c OK [22:00:41]MH_I2C_Read... [22:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:41]Read from MH i2c: E2 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 0E 00 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: E2 0E 00 DB 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 15 [22:00:41]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:00:41]wFMCommunicate OK [22:00:41]SAM_PROTO_GetShiftState done [22:00:41]FM_GetShiftState done [22:00:41]req_shift_opened done [22:00:41]requested_item shift.open_date is exist - process it [22:00:41]req_shift_open_date [22:00:41]req_shift_open_date done [22:00:41]produce_requested_data done [22:00:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139512,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:00:41]process_action_free close_receipt [22:00:41]json_value_free [22:00:41]json_value_free done [22:00:41]process_json_proto returns [22:00:41]Send response to host [22:00:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139512,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:00:41]free response buf [22:00:41]execute_script done [22:00:41]execute_script returns [22:00:41]free content buf [22:00:41]Sock 9.Close socket [22:00:41]Sock 9.Thread stoped [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:06]accept exits with 7 [22:04:06]New connection [22:04:06]New thread 3067071844 created [22:04:06]Thread 3067215204 joined [22:04:06]Waiting for new connection... [22:04:06] Sock 7.Parse request [22:04:06]Sock 7.Check first char [22:04:06]Sock 7.First char is OK [22:04:06]request: POST /json_proto HTTP/1.0 [22:04:06]Method: POST [22:04:06]URL: /json_proto [22:04:06]Method is POST - this is cgi request [22:04:06]url: /json_proto [22:04:06]query_string will be loaded in cgi processing [22:04:06]execute_cgi json_proto POST (null) [22:04:06]execute_cgi path=json_proto method=POST [22:04:06]POST find Content-Length [22:04:06]Host: 172.17.45.67:8080 [22:04:06]Content-Length: 677 [22:04:06]Content-Type: application/json [22:04:06] [22:04:06]POST finish read [22:04:06]Found Content-Length = 677 [22:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [22:04:06]execute_script... [22:04: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)593356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [22:04:06]POST & json_proto [22:04:06]process_json_proto [22:04:06]json parsed OK: [22:04:06]protocol is kg_v1.0 [22:04:06]action value=close_receipt [22:04:06]process_action close_receipt [22:04:06]cmd_close_receipt [22:04:06]MH_GetDate [22:04:06]Write to MH i2c: F0 00 00 DC 06 D1 [22:04:06]Write i2c OK [22:04:06]MH_I2C_Read... [22:04:06]Read from MH i2c: F0 [22:04:06]MH_I2C_Read... [22:04:06]Read from MH i2c: F0 09 00 [22:04:06]MH_I2C_Read... [22:04:06]Read from MH i2c: F0 09 00 DC 06 00 57 C1 C3 66 5F 7F 2B 66 8A [22:04:06]GetLastDocTimeStamp 1724104837 [22:04:06]current date 1724105047 [22:04:06]FM_GetShiftState [22:04:06]SAM_PROTO_GetShiftState [22:04:06]wFMCommunicate request_size=4 [22:04:06]MH_SAM_APDU [22:04:06]CAPDU: 80 13 01 00 [22:04:06]Write to MH i2c: E2 08 00 DD 06 80 13 01 00 00 00 00 00 60 [22:04:06]Write i2c OK [22:04:06]MH_I2C_Read... [22:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:06]Read from MH i2c: E2 [22:04:06]MH_I2C_Read... [22:04:06]Read from MH i2c: E2 0E 00 [22:04:06]MH_I2C_Read... [22:04:06]Read from MH i2c: E2 0E 00 DD 06 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 17 [22:04:06]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:04:06]wFMCommunicate OK [22:04:06]SAM_PROTO_GetShiftState done [22:04:06]FM_GetShiftState done [22:04:06]opened in 1724027888 [22:04:06]opened+sec_in_day 1724114288 [22:04:06]quantity*price = 20001 [22:04:06]sum+1 = 20002 [22:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 348 19.08.2024 22:04 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139513 ФПД: 233391395927867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220407&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139513&fm=233391395927867&tin=02508201610067®Number=0000000000092569&sum=20000 [22:04:07]StoreToDocumentArchive [22:04:07]shift 452 fd 139513 [22:04:07]save to /storage/0452/doc_00139513 [22:04:07]save last doc name /storage/0452/doc_00139513 to /storage/kkm_last_doc_name [22:04:07]save OK [22:04:07]Clear old archive folders... [22:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:07]tlvbuf is 00D41210 [22:04:07]SAM_PROTO_ClearQueue [22:04:07]wFMCommunicate request_size=4 [22:04:07]MH_SAM_APDU [22:04:07]CAPDU: 80 09 00 00 [22:04:07]Write to MH i2c: E2 08 00 EA 06 80 09 00 00 00 00 00 00 62 [22:04:07]Write i2c OK [22:04:07]MH_I2C_Read... [22:04:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:08]Read from MH i2c: E2 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 03 00 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 03 00 EA 06 00 90 00 64 [22:04:08]RAPDU: 90 00 [22:04:08]wFMCommunicate OK [22:04:08]SAM_PROTO_ClearQueue done [22:04:08]KKMCreateOFDPacket [22:04:08]OFDProtocolAddRootSTLVToBuf [22:04:08]FM_MakeSignedData [22:04:08]FM_MakeSignedData [22:04:08]SAM_PROTO_SignData [22:04:08]wFMCommunicate request_size=4 [22:04:08]MH_SAM_APDU [22:04:08]CAPDU: 80 0D 01 02 [22:04:08]Write to MH i2c: E2 08 00 EB 06 80 0D 01 02 00 00 00 00 6A [22:04:08]Write i2c OK [22:04:08]MH_I2C_Read... [22:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:08]Read from MH i2c: E2 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 03 00 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 03 00 EB 06 00 90 00 65 [22:04:08]RAPDU: 90 00 [22:04:08]wFMCommunicate OK [22:04:08]wFMCommunicate request_size=255 [22:04:08]MH_SAM_APDU [22:04: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 5C 01 00 00 F4 03 04 00 57 C1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 20 02 00 35 04 06 00 D4 [22:04:08]Write to MH i2c: E2 02 01 EC 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 5C 01 00 00 F4 03 04 00 57 C1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 20 02 00 35 04 06 00 D4 00 00 47 [22:04:08]Write i2c OK [22:04:08]MH_I2C_Read... [22:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:08]Read from MH i2c: E2 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 03 00 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 03 00 EC 06 00 90 00 66 [22:04:08]RAPDU: 90 00 [22:04:08]wFMCommunicate OK [22:04:08]wFMCommunicate request_size=10 [22:04:08]MH_SAM_APDU [22:04:08]CAPDU: 80 0D 02 02 05 44 AB 3F 77 3B [22:04:08]Write to MH i2c: E2 0D 00 ED 06 80 0D 02 02 05 00 44 AB 3F 77 3B 00 00 57 [22:04:08]Write i2c OK [22:04:08]MH_I2C_Read... [22:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:08]Read from MH i2c: E2 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 03 00 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 03 00 ED 06 00 90 00 67 [22:04:08]RAPDU: 90 00 [22:04:08]wFMCommunicate OK [22:04:08]wFMCommunicate request_size=4 [22:04:08]MH_SAM_APDU [22:04:08]CAPDU: 80 0D 03 02 [22:04:08]Write to MH i2c: E2 08 00 EE 06 80 0D 03 02 00 00 00 00 6F [22:04:08]Write i2c OK [22:04:08]MH_I2C_Read... [22:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:08]Read from MH i2c: E2 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 0B 00 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 0B 00 EE 06 00 99 A4 15 8B E1 55 FC FF 90 00 7E [22:04:08]RAPDU: 99 A4 15 8B E1 55 FC FF 90 00 [22:04:08]wFMCommunicate OK [22:04:08]SAM_PROTO_SignData done [22:04:08]FM_MakeSignedData done [22:04:08]CreateOFDProtocolMessage [22:04:08]wFMCommunicate request_size=4 [22:04:08]MH_SAM_APDU [22:04:08]CAPDU: 80 11 00 00 [22:04:08]Write to MH i2c: E2 08 00 EF 06 80 11 00 00 00 00 00 00 6F [22:04:08]Write i2c OK [22:04:08]MH_I2C_Read... [22:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:08]Read from MH i2c: E2 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 17 00 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: E2 17 00 EF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C6 [22:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:04:08]wFMCommunicate OK [22:04:08]CreateOFDProtocolMessage done [22:04:08]OFDSenderStorePacket 139513 [22:04:08]StoreOFDPacket docnum=139513 [22:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4E 40 07 01 B6 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 5C 01 00 00 F4 03 04 00 57 C1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 20 02 00 35 04 06 00 D4 44 AB 3F 77 3B 99 A4 15 8B E1 55 FC FF [22:04:08]CheckFolder [22:04:08]dirname=/storage/ofd_packets [22:04:08]CheckFolder done [22:04:08]ProducePacketName [22:04:08]name=ofd_packets/00139513 [22:04:08]NVStorageSaveData ofd_packets/00139513 [22:04:08]File name is /storage/ofd_packets/00139513 [22:04:08]Write 301 bytes [22:04:08]NVStorageSaveData done [22:04:08]OFDSenderStorePacket done [22:04:08]KKMCreateOFDPacket done [22:04:08]NVStorageSaveData kkm_last_timestamp [22:04:08]File name is /storage/kkm_last_timestamp [22:04:08]Write 4 bytes [22:04:08]NVStorageSaveData done [22:04:08]ExternCall_PrintAddStr [22:04:08]wPrintStart [22:04:08]Write to MH i2c: 01 00 00 F0 06 F6 [22:04:08]Write i2c OK [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: 01 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: 01 07 00 [22:04:08]MH_I2C_Read... [22:04:08]Read from MH i2c: 01 07 00 F0 06 00 00 00 00 00 FF 0F 0B [22:04:08]RasterBufferAndPrint [22:04:08]line Счет N : (1)593356 [22:04:08]line ИНН: 02508201610067 [22:04:08]line Контрольно-Кассовый Чек [22:04:08]line ПРОДАЖА [22:04:08]line ТРК (МРК, ГНК) : 52 [22:04:08]line Товар: 2710124130 [22:04:08]line Аи-92-К-5 [22:04:08]line 2.950 * 67.80 [22:04:08]line = 200.01 [22:04:08]line НДС 12% НСП 1% [22:04:08]line > о реализуемом товаре [22:04:08]line ОКРУГЛЕНИЕ: -0.01 [22:04:08]line ИТОГО: 200.00 [22:04:08]line Внесено: 200.00 [22:04:08]line СДАЧА: 0.00 [22:04:08]line НСП 1% : 1.77 [22:04:08]line НДС 12% : 21.24 [22:04:08]line Наличными: 200.00 [22:04:08]line Безнал.: 0.00 [22:04:08]line Место: АЗС № 136 "Партнер Нефть" [22:04:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:04:08]line СНО: Общий режим [22:04:08]line Чек 348 19.08.2024 22:04 [22:04:08]line Смена: 452 ФФД: 1.0 [22:04:08]line ЗНМ: 0300000067 [22:04:08]line РНМ: 0000000000092569 [22:04:08]line Версия ККМ: 001 [22:04:08]line ФМ: 0000000000871776 [22:04:08]line ФД: 139513 [22:04:08]line ФПД: 233391395927867 [22:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220407&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139513&fm=233391395927867&tin=02508201610067®Number=0000000000092569&sum=20000 [22:04:08]OFD Sender: Processing packet 139513 [packets to send 137, broken 136] [22:04:08]ProducePacketName [22:04:08]name=ofd_packets/00139513 [22:04:08]OFD Sender: To server: pG, [22:04:08]CommunicateWithHost lk.salyk.kg:30040 [22:04:08]ConnectInit lk.salyk.kg [22:04:08]written 0, free lines is 4095 [22:04:09]Connected sock=10 [22:04: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 37 36 0F 01 00 00 4E 40 07 01 B6 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 5C 01 00 00 F4 03 04 00 57 C1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 20 02 00 35 04 06 00 D4 44 AB 3F 77 3B 99 A4 15 8B E1 55 FC FF [22:04:09]Write to MH i2c: 01 00 00 1B 07 22 [22:04:09]Write i2c OK [22:04:09]MH_I2C_Read... [22:04:09]Read from MH i2c: 01 [22:04:09]MH_I2C_Read... [22:04:09]Read from MH i2c: 01 07 00 [22:04:09]MH_I2C_Read... [22:04:09]Read from MH i2c: 01 07 00 1B 07 00 00 00 00 00 E0 0C 15 [22:04:09]RasterBufferAndPrint [22:04:09]line [22:04:09]line [22:04:09]line [22:04:09]line [22:04:09]line [22:04:09]written 0, free lines is 3302 [22:04:09]MH_Cut [22:04:09]Write to MH i2c: D1 01 00 22 07 01 FB [22:04:09]Write i2c OK [22:04:09]MH_I2C_Read... [22:04:09]Read from MH i2c: D1 [22:04:09]MH_I2C_Read... [22:04:09]Read from MH i2c: D1 01 00 [22:04:09]MH_I2C_Read... [22:04:09]Read from MH i2c: D1 01 00 22 07 00 FA [22:04:09]Write to MH i2c: 01 00 00 23 07 2A [22:04:09]Write i2c OK [22:04:09]MH_I2C_Read... [22:04: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 37 36 4F 00 00 00 67 AC 47 00 07 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 20 02 00 F4 03 04 00 EC 67 C3 66 B6 04 01 00 00 76 92 52 88 8A 86 B9 20 [22:04:09]CommunicateWithHost err = 0 [22:04:09]CheckOFDResponse [22:04:09]1017 (14) - 77093643461234 [22:04:09]1041 (16) - 0000000000871776 [22:04:09]1040 (4) - 139513 [22:04:09]1012 (4) - 19.08.2024 15:42 [22:04:09]1206 (1) - 0 [22:04:09]OFD Sender: Remove packet 139513 [22:04:09]ProducePacketName [22:04:09]name=ofd_packets/00139513 [22:04:09]NVStorageDeleteData [22:04:09]OFD Sender: No OFD packet to send [22:04:10]*** Cut start [22:04:10]*** Partial cut [22:04:10]*** CUTSNS_PIN = 1 [22:04:10]*** CUTSNS_PIN = 0 [22:04:10]*** Brake cut motor [22:04:10]Read from MH i2c: 01 [22:04:10]MH_I2C_Read... [22:04:10]*** Stop cut motor [22:04:10]*** Cut end [22:04:10]Read from MH i2c: 01 07 00 [22:04:10]MH_I2C_Read... [22:04:10]Read from MH i2c: 01 07 00 23 07 00 00 00 00 00 FF 0F 3F [22:04:10]process_action close_receipt done [22:04:10]requested_data is exist [22:04:10]produce_requested_data [22:04:10]requested_item fm.sn is exist - process it [22:04:10]wFMCommunicate request_size=4 [22:04:10]MH_SAM_APDU [22:04:10]CAPDU: 80 11 00 00 [22:04:10]Write to MH i2c: E2 08 00 24 07 80 11 00 00 00 00 00 00 A5 [22:04:10]Write i2c OK [22:04:10]MH_I2C_Read... [22:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:10]Read from MH i2c: E2 [22:04:10]MH_I2C_Read... [22:04:10]Read from MH i2c: E2 17 00 [22:04:10]MH_I2C_Read... [22:04:10]Read from MH i2c: E2 17 00 24 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FC [22:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:04:10]wFMCommunicate OK [22:04:10]requested_item fd.num is exist - process it [22:04:10]SAM_PROTO_GetFieldsCounters [22:04:10]wFMCommunicate request_size=4 [22:04:10]MH_SAM_APDU [22:04:10]CAPDU: 80 13 00 00 [22:04:10]Write to MH i2c: E2 08 00 25 07 80 13 00 00 00 00 00 00 A8 [22:04:10]Write i2c OK [22:04:10]MH_I2C_Read... [22:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:10]Read from MH i2c: E2 [22:04:10]MH_I2C_Read... [22:04:10]Read from MH i2c: E2 62 00 [22:04:10]MH_I2C_Read... [22:04:10]Read from MH i2c: E2 62 00 25 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [22:04: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:10]wFMCommunicate OK [22:04:10]SAM_PROTO_GetFieldsCounters done [22:04:10]requested_item shift.num is exist - process it [22:04:10]requested_item shift.opened is exist - process it [22:04:10]req_shift_opened [22:04:10]FM_GetShiftState [22:04:10]SAM_PROTO_GetShiftState [22:04:10]wFMCommunicate request_size=4 [22:04:10]MH_SAM_APDU [22:04:10]CAPDU: 80 13 01 00 [22:04:10]Write to MH i2c: E2 08 00 26 07 80 13 01 00 00 00 00 00 AA [22:04:10]Write i2c OK [22:04:10]MH_I2C_Read... [22:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:10]Read from MH i2c: E2 [22:04:10]MH_I2C_Read... [22:04:10]Read from MH i2c: E2 0E 00 [22:04:10]MH_I2C_Read... [22:04:10]Read from MH i2c: E2 0E 00 26 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 61 [22:04:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:04:10]wFMCommunicate OK [22:04:10]SAM_PROTO_GetShiftState done [22:04:10]FM_GetShiftState done [22:04:10]req_shift_opened done [22:04:10]requested_item shift.open_date is exist - process it [22:04:10]req_shift_open_date [22:04:10]req_shift_open_date done [22:04:10]produce_requested_data done [22:04:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139513,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:04:10]process_action_free close_receipt [22:04:10]json_value_free [22:04:10]json_value_free done [22:04:10]process_json_proto returns [22:04:10]Send response to host [22:04:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139513,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:04:10]free response buf [22:04:10]execute_script done [22:04:10]execute_script returns [22:04:10]free content buf [22:04:10]Sock 7.Close socket [22:04:10]Sock 7.Thread stoped [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]accept exits with 9 [22:05:29]New connection [22:05:29]New thread 3067215204 created [22:05:29]Thread 3067071844 joined [22:05:29]Waiting for new connection... [22:05:29] Sock 9.Parse request [22:05:29]Sock 9.Check first char [22:05:29]Sock 9.First char is OK [22:05:29]request: POST /json_proto HTTP/1.0 [22:05:29]Method: POST [22:05:29]URL: /json_proto [22:05:29]Method is POST - this is cgi request [22:05:29]url: /json_proto [22:05:29]query_string will be loaded in cgi processing [22:05:29]execute_cgi json_proto POST (null) [22:05:29]execute_cgi path=json_proto method=POST [22:05:29]POST find Content-Length [22:05:29]Host: 172.17.45.67:8080 [22:05:29]Content-Length: 682 [22:05:29]Content-Type: application/json [22:05:29] [22:05:29]POST finish read [22:05:29]Found Content-Length = 682 [22:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:05:29]execute_script... [22:05: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)593357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:05:29]POST & json_proto [22:05:29]process_json_proto [22:05:29]json parsed OK: [22:05:29]protocol is kg_v1.0 [22:05:29]action value=close_receipt [22:05:29]process_action close_receipt [22:05:29]cmd_close_receipt [22:05:29]MH_GetDate [22:05:29]Write to MH i2c: F0 00 00 27 07 1D [22:05:29]Write i2c OK [22:05:29]MH_I2C_Read... [22:05:29]Read from MH i2c: F0 [22:05:29]MH_I2C_Read... [22:05:29]Read from MH i2c: F0 09 00 [22:05:29]MH_I2C_Read... [22:05:29]Read from MH i2c: F0 09 00 27 07 00 AA C1 C3 66 5F 7F 2B 66 29 [22:05:29]GetLastDocTimeStamp 1724105047 [22:05:29]current date 1724105130 [22:05:29]FM_GetShiftState [22:05:29]SAM_PROTO_GetShiftState [22:05:29]wFMCommunicate request_size=4 [22:05:29]MH_SAM_APDU [22:05:29]CAPDU: 80 13 01 00 [22:05:29]Write to MH i2c: E2 08 00 28 07 80 13 01 00 00 00 00 00 AC [22:05:29]Write i2c OK [22:05:29]MH_I2C_Read... [22:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:29]Read from MH i2c: E2 [22:05:29]MH_I2C_Read... [22:05:29]Read from MH i2c: E2 0E 00 [22:05:29]MH_I2C_Read... [22:05:29]Read from MH i2c: E2 0E 00 28 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 63 [22:05:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:05:29]wFMCommunicate OK [22:05:29]SAM_PROTO_GetShiftState done [22:05:29]FM_GetShiftState done [22:05:29]opened in 1724027888 [22:05:29]opened+sec_in_day 1724114288 [22:05:29]quantity*price = 100021 [22:05:29]sum+1 = 100023 [22:05:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 349 19.08.2024 22:05 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139514 ФПД: 35990302071428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220530&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139514&fm=35990302071428&tin=02508201610067®Number=0000000000092569&sum=100000 [22:05:30]StoreToDocumentArchive [22:05:30]shift 452 fd 139514 [22:05:30]save to /storage/0452/doc_00139514 [22:05:30]save last doc name /storage/0452/doc_00139514 to /storage/kkm_last_doc_name [22:05:30]save OK [22:05:30]Clear old archive folders... [22:05:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:05:30]tlvbuf is 00D28C10 [22:05:30]SAM_PROTO_ClearQueue [22:05:30]wFMCommunicate request_size=4 [22:05:30]MH_SAM_APDU [22:05:30]CAPDU: 80 09 00 00 [22:05:30]Write to MH i2c: E2 08 00 35 07 80 09 00 00 00 00 00 00 AE [22:05:30]Write i2c OK [22:05:30]MH_I2C_Read... [22:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:31]Read from MH i2c: E2 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 03 00 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [22:05:31]RAPDU: 90 00 [22:05:31]wFMCommunicate OK [22:05:31]SAM_PROTO_ClearQueue done [22:05:31]KKMCreateOFDPacket [22:05:31]OFDProtocolAddRootSTLVToBuf [22:05:31]FM_MakeSignedData [22:05:31]FM_MakeSignedData [22:05:31]SAM_PROTO_SignData [22:05:31]wFMCommunicate request_size=4 [22:05:31]MH_SAM_APDU [22:05:31]CAPDU: 80 0D 01 02 [22:05:31]Write to MH i2c: E2 08 00 36 07 80 0D 01 02 00 00 00 00 B6 [22:05:31]Write i2c OK [22:05:31]MH_I2C_Read... [22:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:31]Read from MH i2c: E2 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 03 00 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 03 00 36 07 00 90 00 B1 [22:05:31]RAPDU: 90 00 [22:05:31]wFMCommunicate OK [22:05:31]wFMCommunicate request_size=255 [22:05:31]MH_SAM_APDU [22:05:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 AA C1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 20 02 00 35 04 06 00 20 [22:05:31]Write to MH i2c: E2 02 01 37 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 AA C1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 20 02 00 35 04 06 00 20 00 00 5F [22:05:31]Write i2c OK [22:05:31]MH_I2C_Read... [22:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:31]Read from MH i2c: E2 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 03 00 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 03 00 37 07 00 90 00 B2 [22:05:31]RAPDU: 90 00 [22:05:31]wFMCommunicate OK [22:05:31]wFMCommunicate request_size=10 [22:05:31]MH_SAM_APDU [22:05:31]CAPDU: 80 0D 02 02 05 BB A5 2B 9A 84 [22:05:31]Write to MH i2c: E2 0D 00 38 07 80 0D 02 02 05 00 BB A5 2B 9A 84 00 00 6C [22:05:31]Write i2c OK [22:05:31]MH_I2C_Read... [22:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:31]Read from MH i2c: E2 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 03 00 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [22:05:31]RAPDU: 90 00 [22:05:31]wFMCommunicate OK [22:05:31]wFMCommunicate request_size=4 [22:05:31]MH_SAM_APDU [22:05:31]CAPDU: 80 0D 03 02 [22:05:31]Write to MH i2c: E2 08 00 39 07 80 0D 03 02 00 00 00 00 BB [22:05:31]Write i2c OK [22:05:31]MH_I2C_Read... [22:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:31]Read from MH i2c: E2 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 0B 00 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 0B 00 39 07 00 BC E4 B8 1B 68 11 3D C2 90 00 A7 [22:05:31]RAPDU: BC E4 B8 1B 68 11 3D C2 90 00 [22:05:31]wFMCommunicate OK [22:05:31]SAM_PROTO_SignData done [22:05:31]FM_MakeSignedData done [22:05:31]CreateOFDProtocolMessage [22:05:31]wFMCommunicate request_size=4 [22:05:31]MH_SAM_APDU [22:05:31]CAPDU: 80 11 00 00 [22:05:31]Write to MH i2c: E2 08 00 3A 07 80 11 00 00 00 00 00 00 BB [22:05:31]Write i2c OK [22:05:31]MH_I2C_Read... [22:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:31]Read from MH i2c: E2 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 17 00 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: E2 17 00 3A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 12 [22:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:05:31]wFMCommunicate OK [22:05:31]CreateOFDProtocolMessage done [22:05:31]OFDSenderStorePacket 139514 [22:05:31]StoreOFDPacket docnum=139514 [22:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F 29 07 01 E8 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 AA C1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 20 02 00 35 04 06 00 20 BB A5 2B 9A 84 BC E4 B8 1B 68 11 3D C2 [22:05:31]CheckFolder [22:05:31]dirname=/storage/ofd_packets [22:05:31]CheckFolder done [22:05:31]ProducePacketName [22:05:31]name=ofd_packets/00139514 [22:05:31]NVStorageSaveData ofd_packets/00139514 [22:05:31]File name is /storage/ofd_packets/00139514 [22:05:31]Write 301 bytes [22:05:31]NVStorageSaveData done [22:05:31]OFDSenderStorePacket done [22:05:31]KKMCreateOFDPacket done [22:05:31]NVStorageSaveData kkm_last_timestamp [22:05:31]File name is /storage/kkm_last_timestamp [22:05:31]Write 4 bytes [22:05:31]NVStorageSaveData done [22:05:31]ExternCall_PrintAddStr [22:05:31]wPrintStart [22:05:31]Write to MH i2c: 01 00 00 3B 07 42 [22:05:31]Write i2c OK [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: 01 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: 01 07 00 [22:05:31]MH_I2C_Read... [22:05:31]Read from MH i2c: 01 07 00 3B 07 00 00 00 00 00 FF 0F 57 [22:05:31]RasterBufferAndPrint [22:05:31]line Счет N : (1)593357 [22:05:31]line ИНН: 02508201610067 [22:05:31]line Контрольно-Кассовый Чек [22:05:31]line ПРОДАЖА [22:05:31]line ТРК (МРК, ГНК) : 41 [22:05:31]line Товар: 2710124500 [22:05:31]line Аи-95-К-5 [22:05:31]line 13.480 * 74.20 [22:05:31]line = 1000.22 [22:05:31]line НДС 12% НСП 1% [22:05:31]line > о реализуемом товаре [22:05:31]line ОКРУГЛЕНИЕ: -0.22 [22:05:31]line ИТОГО: 1000.00 [22:05:31]line Внесено: 1000.00 [22:05:31]line СДАЧА: 0.00 [22:05:31]line НСП 1% : 8.85 [22:05:31]line НДС 12% : 106.22 [22:05:31]line Наличными: 1000.00 [22:05:31]line Безнал.: 0.00 [22:05:31]line Место: АЗС № 136 "Партнер Нефть" [22:05:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:05:31]line СНО: Общий режим [22:05:31]line Чек 349 19.08.2024 22:05 [22:05:31]line Смена: 452 ФФД: 1.0 [22:05:31]line ЗНМ: 0300000067 [22:05:31]line РНМ: 0000000000092569 [22:05:31]line Версия ККМ: 001 [22:05:31]line ФМ: 0000000000871776 [22:05:31]line ФД: 139514 [22:05:31]line ФПД: 35990302071428 [22:05:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220530&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139514&fm=35990302071428&tin=02508201610067®Number=0000000000092569&sum=100000 [22:05:31]written 0, free lines is 4095 [22:05:31]OFD Sender: Processing packet 139514 [packets to send 137, broken 136] [22:05:31]ProducePacketName [22:05:31]name=ofd_packets/00139514 [22:05:31]OFD Sender: To server: pG, [22:05:31]CommunicateWithHost lk.salyk.kg:30040 [22:05:31]ConnectInit lk.salyk.kg [22:05:32]Connected sock=10 [22:05: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 37 36 0F 01 00 00 0F 29 07 01 E8 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 AA C1 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 20 02 00 35 04 06 00 20 BB A5 2B 9A 84 BC E4 B8 1B 68 11 3D C2 [22:05: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 37 36 4F 00 00 00 12 54 47 00 29 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 37 36 10 04 04 00 FA 20 02 00 F4 03 04 00 3F 68 C3 66 B6 04 01 00 00 55 4A 21 45 17 E2 0D F5 [22:05:32]CommunicateWithHost err = 0 [22:05:32]CheckOFDResponse [22:05:32]1017 (14) - 77093643461234 [22:05:32]1041 (16) - 0000000000871776 [22:05:32]1040 (4) - 139514 [22:05:32]1012 (4) - 19.08.2024 15:43 [22:05:32]1206 (1) - 0 [22:05:32]OFD Sender: Remove packet 139514 [22:05:32]ProducePacketName [22:05:32]name=ofd_packets/00139514 [22:05:32]NVStorageDeleteData [22:05:32]Write to MH i2c: 01 00 00 66 07 6D [22:05:32]Write i2c OK [22:05:32]MH_I2C_Read... [22:05:32]Read from MH i2c: 01 [22:05:32]MH_I2C_Read... [22:05:32]Read from MH i2c: 01 07 00 [22:05:32]MH_I2C_Read... [22:05:32]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 DC 0C 5C [22:05:32]RasterBufferAndPrint [22:05:32]line [22:05:32]line [22:05:32]line [22:05:32]line [22:05:32]line [22:05:32]written 0, free lines is 3298 [22:05:32]MH_Cut [22:05:32]Write to MH i2c: D1 01 00 6D 07 01 46 [22:05:32]Write i2c OK [22:05:32]MH_I2C_Read... [22:05:32]Read from MH i2c: D1 [22:05:32]MH_I2C_Read... [22:05:32]Read from MH i2c: D1 01 00 [22:05:32]MH_I2C_Read... [22:05:32]Read from MH i2c: D1 01 00 6D 07 00 45 [22:05:32]Write to MH i2c: 01 00 00 6E 07 75 [22:05:32]Write i2c OK [22:05:32]MH_I2C_Read... [22:05:32]OFD Sender: No OFD packet to send [22:05:33]*** Cut start [22:05:33]*** Partial cut [22:05:33]*** CUTSNS_PIN = 1 [22:05:33]*** CUTSNS_PIN = 0 [22:05:33]*** Brake cut motor [22:05:33]Read from MH i2c: 01 [22:05:33]MH_I2C_Read... [22:05:33]*** Stop cut motor [22:05:33]*** Cut end [22:05:33]Read from MH i2c: 01 07 00 [22:05:33]MH_I2C_Read... [22:05:33]Read from MH i2c: 01 07 00 6E 07 00 00 00 00 00 FF 0F 8A [22:05:33]process_action close_receipt done [22:05:33]requested_data is exist [22:05:33]produce_requested_data [22:05:33]requested_item fm.sn is exist - process it [22:05:33]wFMCommunicate request_size=4 [22:05:33]MH_SAM_APDU [22:05:33]CAPDU: 80 11 00 00 [22:05:33]Write to MH i2c: E2 08 00 6F 07 80 11 00 00 00 00 00 00 F0 [22:05:33]Write i2c OK [22:05:33]MH_I2C_Read... [22:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:33]Read from MH i2c: E2 [22:05:33]MH_I2C_Read... [22:05:33]Read from MH i2c: E2 17 00 [22:05:33]MH_I2C_Read... [22:05:33]Read from MH i2c: E2 17 00 6F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 47 [22:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:05:33]wFMCommunicate OK [22:05:33]requested_item fd.num is exist - process it [22:05:33]SAM_PROTO_GetFieldsCounters [22:05:33]wFMCommunicate request_size=4 [22:05:33]MH_SAM_APDU [22:05:33]CAPDU: 80 13 00 00 [22:05:33]Write to MH i2c: E2 08 00 70 07 80 13 00 00 00 00 00 00 F3 [22:05:33]Write i2c OK [22:05:33]MH_I2C_Read... [22:05:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:33]Read from MH i2c: E2 [22:05:33]MH_I2C_Read... [22:05:33]Read from MH i2c: E2 62 00 [22:05:33]MH_I2C_Read... [22:05:33]Read from MH i2c: E2 62 00 70 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [22:05: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:33]wFMCommunicate OK [22:05:33]SAM_PROTO_GetFieldsCounters done [22:05:33]requested_item shift.num is exist - process it [22:05:33]requested_item shift.opened is exist - process it [22:05:33]req_shift_opened [22:05:33]FM_GetShiftState [22:05:33]SAM_PROTO_GetShiftState [22:05:33]wFMCommunicate request_size=4 [22:05:33]MH_SAM_APDU [22:05:33]CAPDU: 80 13 01 00 [22:05:33]Write to MH i2c: E2 08 00 71 07 80 13 01 00 00 00 00 00 F5 [22:05:33]Write i2c OK [22:05:33]MH_I2C_Read... [22:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:33]Read from MH i2c: E2 [22:05:33]MH_I2C_Read... [22:05:33]Read from MH i2c: E2 0E 00 [22:05:33]MH_I2C_Read... [22:05:33]Read from MH i2c: E2 0E 00 71 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AC [22:05:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:05:33]wFMCommunicate OK [22:05:33]SAM_PROTO_GetShiftState done [22:05:33]FM_GetShiftState done [22:05:33]req_shift_opened done [22:05:33]requested_item shift.open_date is exist - process it [22:05:33]req_shift_open_date [22:05:33]req_shift_open_date done [22:05:33]produce_requested_data done [22:05:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139514,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:05:33]process_action_free close_receipt [22:05:33]json_value_free [22:05:33]json_value_free done [22:05:33]process_json_proto returns [22:05:33]Send response to host [22:05:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139514,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:05:33]free response buf [22:05:33]execute_script done [22:05:33]execute_script returns [22:05:33]free content buf [22:05:33]Sock 9.Close socket [22:05:33]Sock 9.Thread stoped [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:44]accept exits with 7 [22:08:44]New connection [22:08:44]New thread 3067071844 created [22:08:44]Thread 3067215204 joined [22:08:44]Waiting for new connection... [22:08:44] Sock 7.Parse request [22:08:44]Sock 7.Check first char [22:08:44]Sock 7.First char is OK [22:08:44]request: POST /json_proto HTTP/1.0 [22:08:44]Method: POST [22:08:44]URL: /json_proto [22:08:44]Method is POST - this is cgi request [22:08:44]url: /json_proto [22:08:44]query_string will be loaded in cgi processing [22:08:44]execute_cgi json_proto POST (null) [22:08:44]execute_cgi path=json_proto method=POST [22:08:44]POST find Content-Length [22:08:44]Host: 172.17.45.67:8080 [22:08:44]Content-Length: 677 [22:08:44]Content-Type: application/json [22:08:44] [22:08:44]POST finish read [22:08:44]Found Content-Length = 677 [22:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:44]execute_script... [22:08: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)593358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:44]POST & json_proto [22:08:44]process_json_proto [22:08:44]json parsed OK: [22:08:44]protocol is kg_v1.0 [22:08:44]action value=close_receipt [22:08:44]process_action close_receipt [22:08:44]cmd_close_receipt [22:08:44]MH_GetDate [22:08:44]Write to MH i2c: F0 00 00 72 07 68 [22:08:44]Write i2c OK [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: F0 [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: F0 09 00 [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: F0 09 00 72 07 00 6D C2 C3 66 5F 7F 2B 66 38 [22:08:44]GetLastDocTimeStamp 1724105130 [22:08:44]current date 1724105325 [22:08:44]FM_GetShiftState [22:08:44]SAM_PROTO_GetShiftState [22:08:44]wFMCommunicate request_size=4 [22:08:44]MH_SAM_APDU [22:08:44]CAPDU: 80 13 01 00 [22:08:44]Write to MH i2c: E2 08 00 73 07 80 13 01 00 00 00 00 00 F7 [22:08:44]Write i2c OK [22:08:44]MH_I2C_Read... [22:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:44]Read from MH i2c: E2 [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: E2 0E 00 [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: E2 0E 00 73 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 AE [22:08:44]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:08:44]wFMCommunicate OK [22:08:44]SAM_PROTO_GetShiftState done [22:08:44]FM_GetShiftState done [22:08:44]opened in 1724027888 [22:08:44]opened+sec_in_day 1724114288 [22:08:44]quantity*price = 30035 [22:08:44]sum+1 = 30036 [22:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 350 19.08.2024 22:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139515 ФПД: 274554580340733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220845&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139515&fm=274554580340733&tin=02508201610067®Number=0000000000092569&sum=30000 [22:08:45]StoreToDocumentArchive [22:08:45]shift 452 fd 139515 [22:08:45]save to /storage/0452/doc_00139515 [22:08:45]save last doc name /storage/0452/doc_00139515 to /storage/kkm_last_doc_name [22:08:45]save OK [22:08:45]Clear old archive folders... [22:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:45]tlvbuf is 00D44F70 [22:08:45]SAM_PROTO_ClearQueue [22:08:45]wFMCommunicate request_size=4 [22:08:45]MH_SAM_APDU [22:08:45]CAPDU: 80 09 00 00 [22:08:45]Write to MH i2c: E2 08 00 80 07 80 09 00 00 00 00 00 00 F9 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:46]Read from MH i2c: E2 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 03 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 03 00 80 07 00 90 00 FB [22:08:46]RAPDU: 90 00 [22:08:46]wFMCommunicate OK [22:08:46]SAM_PROTO_ClearQueue done [22:08:46]KKMCreateOFDPacket [22:08:46]OFDProtocolAddRootSTLVToBuf [22:08:46]FM_MakeSignedData [22:08:46]FM_MakeSignedData [22:08:46]SAM_PROTO_SignData [22:08:46]wFMCommunicate request_size=4 [22:08:46]MH_SAM_APDU [22:08:46]CAPDU: 80 0D 01 02 [22:08:46]Write to MH i2c: E2 08 00 81 07 80 0D 01 02 00 00 00 00 01 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:46]Read from MH i2c: E2 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 03 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 03 00 81 07 00 90 00 FC [22:08:46]RAPDU: 90 00 [22:08:46]wFMCommunicate OK [22:08:46]wFMCommunicate request_size=255 [22:08:46]MH_SAM_APDU [22:08: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 6D C2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 20 02 00 35 04 06 00 F9 [22:08:46]Write to MH i2c: E2 02 01 82 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 6D C2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 20 02 00 35 04 06 00 F9 00 00 3B [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:46]Read from MH i2c: E2 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 03 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 03 00 82 07 00 90 00 FD [22:08:46]RAPDU: 90 00 [22:08:46]wFMCommunicate OK [22:08:46]wFMCommunicate request_size=10 [22:08:46]MH_SAM_APDU [22:08:46]CAPDU: 80 0D 02 02 05 B4 B8 3B 8F FD [22:08:46]Write to MH i2c: E2 0D 00 83 07 80 0D 02 02 05 00 B4 B8 3B 8F FD 00 00 41 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:46]Read from MH i2c: E2 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 03 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [22:08:46]RAPDU: 90 00 [22:08:46]wFMCommunicate OK [22:08:46]wFMCommunicate request_size=4 [22:08:46]MH_SAM_APDU [22:08:46]CAPDU: 80 0D 03 02 [22:08:46]Write to MH i2c: E2 08 00 84 07 80 0D 03 02 00 00 00 00 06 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:46]Read from MH i2c: E2 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 0B 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 0B 00 84 07 00 85 FD 01 F6 86 E0 92 EE 90 00 66 [22:08:46]RAPDU: 85 FD 01 F6 86 E0 92 EE 90 00 [22:08:46]wFMCommunicate OK [22:08:46]SAM_PROTO_SignData done [22:08:46]FM_MakeSignedData done [22:08:46]CreateOFDProtocolMessage [22:08:46]wFMCommunicate request_size=4 [22:08:46]MH_SAM_APDU [22:08:46]CAPDU: 80 11 00 00 [22:08:46]Write to MH i2c: E2 08 00 85 07 80 11 00 00 00 00 00 00 06 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:46]Read from MH i2c: E2 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 17 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 17 00 85 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5D [22:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:08:46]wFMCommunicate OK [22:08:46]CreateOFDProtocolMessage done [22:08:46]OFDSenderStorePacket 139515 [22:08:46]StoreOFDPacket docnum=139515 [22:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 EC 07 01 09 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 6D C2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 20 02 00 35 04 06 00 F9 B4 B8 3B 8F FD 85 FD 01 F6 86 E0 92 EE [22:08:46]CheckFolder [22:08:46]dirname=/storage/ofd_packets [22:08:46]CheckFolder done [22:08:46]ProducePacketName [22:08:46]name=ofd_packets/00139515 [22:08:46]NVStorageSaveData ofd_packets/00139515 [22:08:46]File name is /storage/ofd_packets/00139515 [22:08:46]Write 301 bytes [22:08:46]NVStorageSaveData done [22:08:46]OFDSenderStorePacket done [22:08:46]KKMCreateOFDPacket done [22:08:46]NVStorageSaveData kkm_last_timestamp [22:08:46]File name is /storage/kkm_last_timestamp [22:08:46]Write 4 bytes [22:08:46]NVStorageSaveData done [22:08:46]ExternCall_PrintAddStr [22:08:46]wPrintStart [22:08:46]Write to MH i2c: 01 00 00 86 07 8D [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 86 07 00 00 00 00 00 FF 0F A2 [22:08:46]RasterBufferAndPrint [22:08:46]line Счет N : (1)593358 [22:08:46]line ИНН: 02508201610067 [22:08:46]line Контрольно-Кассовый Чек [22:08:46]line ПРОДАЖА [22:08:46]line ТРК (МРК, ГНК) : 42 [22:08:46]line Товар: 2710124130 [22:08:46]line Аи-92-К-5 [22:08:46]line 4.430 * 67.80 [22:08:46]line = 300.35 [22:08:46]line НДС 12% НСП 1% [22:08:46]line > о реализуемом товаре [22:08:46]line ОКРУГЛЕНИЕ: -0.35 [22:08:46]line ИТОГО: 300.00 [22:08:46]line Внесено: 300.00 [22:08:46]line СДАЧА: 0.00 [22:08:46]line НСП 1% : 2.66 [22:08:46]line НДС 12% : 31.90 [22:08:46]line Наличными: 300.00 [22:08:46]line Безнал.: 0.00 [22:08:46]line Место: АЗС № 136 "Партнер Нефть" [22:08:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:08:46]line СНО: Общий режим [22:08:46]line Чек 350 19.08.2024 22:08 [22:08:46]line Смена: 452 ФФД: 1.0 [22:08:46]line ЗНМ: 0300000067 [22:08:46]line РНМ: 0000000000092569 [22:08:46]line Версия ККМ: 001 [22:08:46]line ФМ: 0000000000871776 [22:08:46]line ФД: 139515 [22:08:46]line ФПД: 274554580340733 [22:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220845&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139515&fm=274554580340733&tin=02508201610067®Number=0000000000092569&sum=30000 [22:08:46]OFD Sender: Processing packet 139515 [packets to send 137, broken 136] [22:08:46]ProducePacketName [22:08:46]name=ofd_packets/00139515 [22:08:46]OFD Sender: To server: pG, [22:08:46]CommunicateWithHost lk.salyk.kg:30040 [22:08:46]ConnectInit lk.salyk.kg [22:08:46]written 0, free lines is 4095 [22:08:47]Connected sock=10 [22:08:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 EC 07 01 09 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 6D C2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 20 02 00 35 04 06 00 F9 B4 B8 3B 8F FD 85 FD 01 F6 86 E0 92 EE [22:08:47]Write to MH i2c: 01 00 00 B1 07 B8 [22:08:47]Write i2c OK [22:08:47]MH_I2C_Read... [22:08:47]Read from MH i2c: 01 [22:08:47]MH_I2C_Read... [22:08:47]Read from MH i2c: 01 07 00 [22:08:47]MH_I2C_Read... [22:08:47]Read from MH i2c: 01 07 00 B1 07 00 00 00 00 00 D9 0C A4 [22:08:47]RasterBufferAndPrint [22:08:47]line [22:08:47]line [22:08:47]line [22:08:47]line [22:08:47]line [22:08:47]written 0, free lines is 3297 [22:08:47]MH_Cut [22:08:47]Write to MH i2c: D1 01 00 B8 07 01 91 [22:08:47]Write i2c OK [22:08:47]MH_I2C_Read... [22:08:47]Read from MH i2c: D1 [22:08:47]MH_I2C_Read... [22:08:47]Read from MH i2c: D1 01 00 [22:08:47]MH_I2C_Read... [22:08:47]Read from MH i2c: D1 01 00 B8 07 00 90 [22:08:47]Write to MH i2c: 01 00 00 B9 07 C0 [22:08:47]Write i2c OK [22:08:47]MH_I2C_Read... [22:08:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 11 7F 47 00 23 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 37 36 10 04 04 00 FB 20 02 00 F4 03 04 00 02 69 C3 66 B6 04 01 00 00 4B 29 1B 57 E0 2C FF CA [22:08:47]CommunicateWithHost err = 0 [22:08:47]CheckOFDResponse [22:08:47]1017 (14) - 77093643461234 [22:08:47]1041 (16) - 0000000000871776 [22:08:47]1040 (4) - 139515 [22:08:47]1012 (4) - 19.08.2024 15:47 [22:08:47]1206 (1) - 0 [22:08:47]OFD Sender: Remove packet 139515 [22:08:47]ProducePacketName [22:08:47]name=ofd_packets/00139515 [22:08:47]NVStorageDeleteData [22:08:47]OFD Sender: No OFD packet to send [22:08:48]*** Cut start [22:08:48]*** Partial cut [22:08:48]*** CUTSNS_PIN = 1 [22:08:48]*** CUTSNS_PIN = 0 [22:08:48]*** Brake cut motor [22:08:48]Read from MH i2c: 01 [22:08:48]MH_I2C_Read... [22:08:48]*** Stop cut motor [22:08:48]*** Cut end [22:08:48]Read from MH i2c: 01 07 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: 01 07 00 B9 07 00 00 00 00 00 FF 0F D5 [22:08:48]process_action close_receipt done [22:08:48]requested_data is exist [22:08:48]produce_requested_data [22:08:48]requested_item fm.sn is exist - process it [22:08:48]wFMCommunicate request_size=4 [22:08:48]MH_SAM_APDU [22:08:48]CAPDU: 80 11 00 00 [22:08:48]Write to MH i2c: E2 08 00 BA 07 80 11 00 00 00 00 00 00 3B [22:08:48]Write i2c OK [22:08:48]MH_I2C_Read... [22:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:48]Read from MH i2c: E2 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 17 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 17 00 BA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 92 [22:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:08:48]wFMCommunicate OK [22:08:48]requested_item fd.num is exist - process it [22:08:48]SAM_PROTO_GetFieldsCounters [22:08:48]wFMCommunicate request_size=4 [22:08:48]MH_SAM_APDU [22:08:48]CAPDU: 80 13 00 00 [22:08:48]Write to MH i2c: E2 08 00 BB 07 80 13 00 00 00 00 00 00 3E [22:08:48]Write i2c OK [22:08:48]MH_I2C_Read... [22:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:48]Read from MH i2c: E2 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 62 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 62 00 BB 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [22:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:48]wFMCommunicate OK [22:08:48]SAM_PROTO_GetFieldsCounters done [22:08:48]requested_item shift.num is exist - process it [22:08:48]requested_item shift.opened is exist - process it [22:08:48]req_shift_opened [22:08:48]FM_GetShiftState [22:08:48]SAM_PROTO_GetShiftState [22:08:48]wFMCommunicate request_size=4 [22:08:48]MH_SAM_APDU [22:08:48]CAPDU: 80 13 01 00 [22:08:48]Write to MH i2c: E2 08 00 BC 07 80 13 01 00 00 00 00 00 40 [22:08:48]Write i2c OK [22:08:48]MH_I2C_Read... [22:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:48]Read from MH i2c: E2 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 0E 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 0E 00 BC 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F7 [22:08:48]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:08:48]wFMCommunicate OK [22:08:48]SAM_PROTO_GetShiftState done [22:08:48]FM_GetShiftState done [22:08:48]req_shift_opened done [22:08:48]requested_item shift.open_date is exist - process it [22:08:48]req_shift_open_date [22:08:48]req_shift_open_date done [22:08:48]produce_requested_data done [22:08:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139515,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:08:48]process_action_free close_receipt [22:08:48]json_value_free [22:08:48]json_value_free done [22:08:48]process_json_proto returns [22:08:48]Send response to host [22:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139515,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:08:48]free response buf [22:08:48]execute_script done [22:08:48]execute_script returns [22:08:48]free content buf [22:08:48]Sock 7.Close socket [22:08:48]Sock 7.Thread stoped [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:31]accept exits with 9 [22:09:31]New connection [22:09:31]New thread 3067215204 created [22:09:31]Thread 3067071844 joined [22:09:31]Waiting for new connection... [22:09:31] Sock 9.Parse request [22:09:31]Sock 9.Check first char [22:09:31]Sock 9.First char is OK [22:09:31]request: POST /json_proto HTTP/1.0 [22:09:31]Method: POST [22:09:31]URL: /json_proto [22:09:31]Method is POST - this is cgi request [22:09:31]url: /json_proto [22:09:31]query_string will be loaded in cgi processing [22:09:31]execute_cgi json_proto POST (null) [22:09:31]execute_cgi path=json_proto method=POST [22:09:31]POST find Content-Length [22:09:31]Host: 172.17.45.67:8080 [22:09:31]Content-Length: 677 [22:09:31]Content-Type: application/json [22:09:31] [22:09:31]POST finish read [22:09:31]Found Content-Length = 677 [22:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "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" ] } } [22:09:31]execute_script... [22:09: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)593359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "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" ] } } [22:09:31]POST & json_proto [22:09:31]process_json_proto [22:09:31]json parsed OK: [22:09:31]protocol is kg_v1.0 [22:09:31]action value=close_receipt [22:09:31]process_action close_receipt [22:09:31]cmd_close_receipt [22:09:31]MH_GetDate [22:09:31]Write to MH i2c: F0 00 00 BD 07 B3 [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 09 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 09 00 BD 07 00 9B C2 C3 66 5F 7F 2B 66 B1 [22:09:31]GetLastDocTimeStamp 1724105325 [22:09:31]current date 1724105371 [22:09:31]FM_GetShiftState [22:09:31]SAM_PROTO_GetShiftState [22:09:31]wFMCommunicate request_size=4 [22:09:31]MH_SAM_APDU [22:09:31]CAPDU: 80 13 01 00 [22:09:31]Write to MH i2c: E2 08 00 BE 07 80 13 01 00 00 00 00 00 42 [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:31]Read from MH i2c: E2 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: E2 0E 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: E2 0E 00 BE 07 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 F9 [22:09:31]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:09:31]wFMCommunicate OK [22:09:31]SAM_PROTO_GetShiftState done [22:09:31]FM_GetShiftState done [22:09:31]opened in 1724027888 [22:09:31]opened+sec_in_day 1724114288 [22:09:31]quantity*price = 12000 [22:09:31]sum+1 = 12002 [22:09:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 351 19.08.2024 22:09 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139516 ФПД: 175120261257501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220931&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139516&fm=175120261257501&tin=02508201610067®Number=0000000000092569&sum=12000 [22:09:32]StoreToDocumentArchive [22:09:32]shift 452 fd 139516 [22:09:32]save to /storage/0452/doc_00139516 [22:09:32]save last doc name /storage/0452/doc_00139516 to /storage/kkm_last_doc_name [22:09:32]save OK [22:09:32]Clear old archive folders... [22:09:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:09:32]tlvbuf is 00D27EF0 [22:09:32]SAM_PROTO_ClearQueue [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 09 00 00 [22:09:32]Write to MH i2c: E2 08 00 CB 07 80 09 00 00 00 00 00 00 44 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [22:09:32]RAPDU: 90 00 [22:09:32]wFMCommunicate OK [22:09:32]SAM_PROTO_ClearQueue done [22:09:32]KKMCreateOFDPacket [22:09:32]OFDProtocolAddRootSTLVToBuf [22:09:32]FM_MakeSignedData [22:09:32]FM_MakeSignedData [22:09:32]SAM_PROTO_SignData [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 0D 01 02 [22:09:32]Write to MH i2c: E2 08 00 CC 07 80 0D 01 02 00 00 00 00 4C [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 CC 07 00 90 00 47 [22:09:32]RAPDU: 90 00 [22:09:32]wFMCommunicate OK [22:09:32]wFMCommunicate request_size=255 [22:09:32]MH_SAM_APDU [22:09: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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 5F 01 00 00 F4 03 04 00 9B C2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 20 02 00 35 04 06 00 9F [22:09:32]Write to MH i2c: E2 02 01 CD 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 5F 01 00 00 F4 03 04 00 9B C2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 20 02 00 35 04 06 00 9F 00 00 E1 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 CD 07 00 90 00 48 [22:09:32]RAPDU: 90 00 [22:09:32]wFMCommunicate OK [22:09:32]wFMCommunicate request_size=10 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 0D 02 02 05 45 5C F7 19 1D [22:09:32]Write to MH i2c: E2 0D 00 CE 07 80 0D 02 02 05 00 45 5C F7 19 1D 00 00 27 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 CE 07 00 90 00 49 [22:09:32]RAPDU: 90 00 [22:09:32]wFMCommunicate OK [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 0D 03 02 [22:09:32]Write to MH i2c: E2 08 00 CF 07 80 0D 03 02 00 00 00 00 51 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 0B 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 0B 00 CF 07 00 FB A2 6E FA A1 D6 B8 03 90 00 89 [22:09:32]RAPDU: FB A2 6E FA A1 D6 B8 03 90 00 [22:09:32]wFMCommunicate OK [22:09:32]SAM_PROTO_SignData done [22:09:32]FM_MakeSignedData done [22:09:32]CreateOFDProtocolMessage [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 11 00 00 [22:09:32]Write to MH i2c: E2 08 00 D0 07 80 11 00 00 00 00 00 00 51 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 17 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 17 00 D0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A8 [22:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:09:32]wFMCommunicate OK [22:09:32]CreateOFDProtocolMessage done [22:09:32]OFDSenderStorePacket 139516 [22:09:32]StoreOFDPacket docnum=139516 [22:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E4 B3 07 01 92 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 5F 01 00 00 F4 03 04 00 9B C2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 20 02 00 35 04 06 00 9F 45 5C F7 19 1D FB A2 6E FA A1 D6 B8 03 [22:09:32]CheckFolder [22:09:32]dirname=/storage/ofd_packets [22:09:32]CheckFolder done [22:09:32]ProducePacketName [22:09:32]name=ofd_packets/00139516 [22:09:32]NVStorageSaveData ofd_packets/00139516 [22:09:32]File name is /storage/ofd_packets/00139516 [22:09:32]Write 301 bytes [22:09:32]NVStorageSaveData done [22:09:32]OFDSenderStorePacket done [22:09:32]KKMCreateOFDPacket done [22:09:32]NVStorageSaveData kkm_last_timestamp [22:09:32]File name is /storage/kkm_last_timestamp [22:09:32]Write 4 bytes [22:09:32]NVStorageSaveData done [22:09:32]ExternCall_PrintAddStr [22:09:32]wPrintStart [22:09:32]Write to MH i2c: 01 00 00 D1 07 D8 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: 01 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: 01 07 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: 01 07 00 D1 07 00 00 00 00 00 FF 0F ED [22:09:32]RasterBufferAndPrint [22:09:32]line Счет N : (1)593359 [22:09:32]line ИНН: 02508201610067 [22:09:32]line Контрольно-Кассовый Чек [22:09:32]line ПРОДАЖА [22:09:32]line ТРК (МРК, ГНК) : 52 [22:09:32]line Товар: 2710124130 [22:09:32]line Аи-92-К-5 [22:09:32]line 1.770 * 67.80 [22:09:32]line = 120.01 [22:09:32]line НДС 12% НСП 1% [22:09:32]line > о реализуемом товаре [22:09:32]line ОКРУГЛЕНИЕ: -0.01 [22:09:32]line ИТОГО: 120.00 [22:09:32]line Внесено: 120.00 [22:09:32]line СДАЧА: 0.00 [22:09:32]line НСП 1% : 1.06 [22:09:32]line НДС 12% : 12.74 [22:09:32]line Наличными: 120.00 [22:09:32]line Безнал.: 0.00 [22:09:32]line Место: АЗС № 136 "Партнер Нефть" [22:09:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:09:32]line СНО: Общий режим [22:09:32]line Чек 351 19.08.2024 22:09 [22:09:32]line Смена: 452 ФФД: 1.0 [22:09:32]line ЗНМ: 0300000067 [22:09:32]line РНМ: 0000000000092569 [22:09:32]line Версия ККМ: 001 [22:09:32]line ФМ: 0000000000871776 [22:09:32]line ФД: 139516 [22:09:32]line ФПД: 175120261257501 [22:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220931&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139516&fm=175120261257501&tin=02508201610067®Number=0000000000092569&sum=12000 [22:09:32]written 0, free lines is 4095 [22:09:32]OFD Sender: Processing packet 139516 [packets to send 137, broken 136] [22:09:32]ProducePacketName [22:09:32]name=ofd_packets/00139516 [22:09:32]OFD Sender: To server: pG, [22:09:32]CommunicateWithHost lk.salyk.kg:30040 [22:09:32]ConnectInit lk.salyk.kg [22:09:33]Connected sock=10 [22:09: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 37 36 0F 01 00 00 E4 B3 07 01 92 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 5F 01 00 00 F4 03 04 00 9B C2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 20 02 00 35 04 06 00 9F 45 5C F7 19 1D FB A2 6E FA A1 D6 B8 03 [22:09: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 37 36 4F 00 00 00 B6 BB 47 00 77 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 37 36 10 04 04 00 FC 20 02 00 F4 03 04 00 30 69 C3 66 B6 04 01 00 00 51 EA 82 03 77 B1 46 93 [22:09:33]CommunicateWithHost err = 0 [22:09:33]CheckOFDResponse [22:09:33]1017 (14) - 77093643461234 [22:09:33]1041 (16) - 0000000000871776 [22:09:33]1040 (4) - 139516 [22:09:33]1012 (4) - 19.08.2024 15:48 [22:09:33]1206 (1) - 0 [22:09:33]OFD Sender: Remove packet 139516 [22:09:33]ProducePacketName [22:09:33]name=ofd_packets/00139516 [22:09:33]NVStorageDeleteData [22:09:33]Write to MH i2c: 01 00 00 FC 07 03 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 FC 07 00 00 00 00 00 CB 0C E1 [22:09:33]RasterBufferAndPrint [22:09:33]line [22:09:33]line [22:09:33]line [22:09:33]line [22:09:33]line [22:09:33]written 0, free lines is 3281 [22:09:33]MH_Cut [22:09:33]Write to MH i2c: D1 01 00 03 08 01 DD [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: D1 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: D1 01 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: D1 01 00 03 08 00 DC [22:09:33]Write to MH i2c: 01 00 00 04 08 0C [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]OFD Sender: No OFD packet to send [22:09:34]*** Cut start [22:09:34]*** Partial cut [22:09:34]*** CUTSNS_PIN = 1 [22:09:34]*** CUTSNS_PIN = 0 [22:09:34]*** Brake cut motor [22:09:34]Read from MH i2c: 01 [22:09:34]MH_I2C_Read... [22:09:34]*** Stop cut motor [22:09:34]*** Cut end [22:09:34]Read from MH i2c: 01 07 00 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: 01 07 00 04 08 00 00 00 00 00 FF 0F 21 [22:09:34]process_action close_receipt done [22:09:34]requested_data is exist [22:09:34]produce_requested_data [22:09:34]requested_item fm.sn is exist - process it [22:09:34]wFMCommunicate request_size=4 [22:09:34]MH_SAM_APDU [22:09:34]CAPDU: 80 11 00 00 [22:09:34]Write to MH i2c: E2 08 00 05 08 80 11 00 00 00 00 00 00 87 [22:09:34]Write i2c OK [22:09:34]MH_I2C_Read... [22:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:34]Read from MH i2c: E2 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: E2 17 00 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: E2 17 00 05 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DE [22:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:09:34]wFMCommunicate OK [22:09:34]requested_item fd.num is exist - process it [22:09:34]SAM_PROTO_GetFieldsCounters [22:09:34]wFMCommunicate request_size=4 [22:09:34]MH_SAM_APDU [22:09:34]CAPDU: 80 13 00 00 [22:09:34]Write to MH i2c: E2 08 00 06 08 80 13 00 00 00 00 00 00 8A [22:09:34]Write i2c OK [22:09:34]MH_I2C_Read... [22:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:34]Read from MH i2c: E2 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: E2 62 00 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: E2 62 00 06 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [22:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:34]wFMCommunicate OK [22:09:34]SAM_PROTO_GetFieldsCounters done [22:09:34]requested_item shift.num is exist - process it [22:09:34]requested_item shift.opened is exist - process it [22:09:34]req_shift_opened [22:09:34]FM_GetShiftState [22:09:34]SAM_PROTO_GetShiftState [22:09:34]wFMCommunicate request_size=4 [22:09:34]MH_SAM_APDU [22:09:34]CAPDU: 80 13 01 00 [22:09:34]Write to MH i2c: E2 08 00 07 08 80 13 01 00 00 00 00 00 8C [22:09:34]Write i2c OK [22:09:34]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 0E 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 0E 00 07 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 43 [22:09:35]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:09:35]wFMCommunicate OK [22:09:35]SAM_PROTO_GetShiftState done [22:09:35]FM_GetShiftState done [22:09:35]req_shift_opened done [22:09:35]requested_item shift.open_date is exist - process it [22:09:35]req_shift_open_date [22:09:35]req_shift_open_date done [22:09:35]produce_requested_data done [22:09:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139516,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:09:35]process_action_free close_receipt [22:09:35]json_value_free [22:09:35]json_value_free done [22:09:35]process_json_proto returns [22:09:35]Send response to host [22:09:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139516,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:09:35]free response buf [22:09:35]execute_script done [22:09:35]execute_script returns [22:09:35]free content buf [22:09:35]Sock 9.Close socket [22:09:35]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]accept exits with 7 [22:12:49]New connection [22:12:49]New thread 3067071844 created [22:12:49]Thread 3067215204 joined [22:12:49]Waiting for new connection... [22:12:49] Sock 7.Parse request [22:12:49]Sock 7.Check first char [22:12:49]Sock 7.First char is OK [22:12:49]request: POST /json_proto HTTP/1.0 [22:12:49]Method: POST [22:12:49]URL: /json_proto [22:12:49]Method is POST - this is cgi request [22:12:49]url: /json_proto [22:12:49]query_string will be loaded in cgi processing [22:12:49]execute_cgi json_proto POST (null) [22:12:49]execute_cgi path=json_proto method=POST [22:12:49]POST find Content-Length [22:12:49]Host: 172.17.45.67:8080 [22:12:49]Content-Length: 682 [22:12:49]Content-Type: application/json [22:12:49] [22:12:49]POST finish read [22:12:49]Found Content-Length = 682 [22:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:12:49]execute_script... [22:12:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:12:49]POST & json_proto [22:12:49]process_json_proto [22:12:49]json parsed OK: [22:12:49]protocol is kg_v1.0 [22:12:49]action value=close_receipt [22:12:49]process_action close_receipt [22:12:49]cmd_close_receipt [22:12:49]MH_GetDate [22:12:49]Write to MH i2c: F0 00 00 08 08 FF [22:12:49]Write i2c OK [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: F0 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: F0 09 00 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: F0 09 00 08 08 00 61 C3 C3 66 5F 7F 2B 66 C4 [22:12:49]GetLastDocTimeStamp 1724105371 [22:12:49]current date 1724105569 [22:12:49]FM_GetShiftState [22:12:49]SAM_PROTO_GetShiftState [22:12:49]wFMCommunicate request_size=4 [22:12:49]MH_SAM_APDU [22:12:49]CAPDU: 80 13 01 00 [22:12:49]Write to MH i2c: E2 08 00 09 08 80 13 01 00 00 00 00 00 8E [22:12:49]Write i2c OK [22:12:49]MH_I2C_Read... [22:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:49]Read from MH i2c: E2 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: E2 0E 00 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: E2 0E 00 09 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 45 [22:12:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:12:49]wFMCommunicate OK [22:12:49]SAM_PROTO_GetShiftState done [22:12:49]FM_GetShiftState done [22:12:49]opened in 1724027888 [22:12:49]opened+sec_in_day 1724114288 [22:12:49]quantity*price = 100005 [22:12:49]sum+1 = 100006 [22:12:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 352 19.08.2024 22:12 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139517 ФПД: 268876806742808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139517&fm=268876806742808&tin=02508201610067®Number=0000000000092569&sum=100000 [22:12:50]StoreToDocumentArchive [22:12:50]shift 452 fd 139517 [22:12:50]save to /storage/0452/doc_00139517 [22:12:50]save last doc name /storage/0452/doc_00139517 to /storage/kkm_last_doc_name [22:12:50]save OK [22:12:50]Clear old archive folders... [22:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:50]tlvbuf is 00D36D00 [22:12:50]SAM_PROTO_ClearQueue [22:12:50]wFMCommunicate request_size=4 [22:12:50]MH_SAM_APDU [22:12:50]CAPDU: 80 09 00 00 [22:12:50]Write to MH i2c: E2 08 00 16 08 80 09 00 00 00 00 00 00 90 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:50]Read from MH i2c: E2 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 03 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [22:12:50]RAPDU: 90 00 [22:12:50]wFMCommunicate OK [22:12:50]SAM_PROTO_ClearQueue done [22:12:50]KKMCreateOFDPacket [22:12:50]OFDProtocolAddRootSTLVToBuf [22:12:50]FM_MakeSignedData [22:12:50]FM_MakeSignedData [22:12:50]SAM_PROTO_SignData [22:12:50]wFMCommunicate request_size=4 [22:12:50]MH_SAM_APDU [22:12:50]CAPDU: 80 0D 01 02 [22:12:50]Write to MH i2c: E2 08 00 17 08 80 0D 01 02 00 00 00 00 98 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:50]Read from MH i2c: E2 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 03 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 03 00 17 08 00 90 00 93 [22:12:50]RAPDU: 90 00 [22:12:50]wFMCommunicate OK [22:12:50]wFMCommunicate request_size=255 [22:12:50]MH_SAM_APDU [22:12: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 61 C3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 20 02 00 35 04 06 00 F4 [22:12:50]Write to MH i2c: E2 02 01 18 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 61 C3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 20 02 00 35 04 06 00 F4 00 00 36 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:50]Read from MH i2c: E2 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 03 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 03 00 18 08 00 90 00 94 [22:12:50]RAPDU: 90 00 [22:12:50]wFMCommunicate OK [22:12:50]wFMCommunicate request_size=10 [22:12:50]MH_SAM_APDU [22:12:50]CAPDU: 80 0D 02 02 05 8A C2 8D E3 18 [22:12:50]Write to MH i2c: E2 0D 00 19 08 80 0D 02 02 05 00 8A C2 8D E3 18 00 00 79 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:50]Read from MH i2c: E2 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 03 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 03 00 19 08 00 90 00 95 [22:12:50]RAPDU: 90 00 [22:12:50]wFMCommunicate OK [22:12:50]wFMCommunicate request_size=4 [22:12:50]MH_SAM_APDU [22:12:50]CAPDU: 80 0D 03 02 [22:12:50]Write to MH i2c: E2 08 00 1A 08 80 0D 03 02 00 00 00 00 9D [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:50]Read from MH i2c: E2 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 0B 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 0B 00 1A 08 00 9A 55 7E F7 2A B5 8D 37 90 00 A5 [22:12:50]RAPDU: 9A 55 7E F7 2A B5 8D 37 90 00 [22:12:50]wFMCommunicate OK [22:12:50]SAM_PROTO_SignData done [22:12:50]FM_MakeSignedData done [22:12:50]CreateOFDProtocolMessage [22:12:50]wFMCommunicate request_size=4 [22:12:50]MH_SAM_APDU [22:12:50]CAPDU: 80 11 00 00 [22:12:50]Write to MH i2c: E2 08 00 1B 08 80 11 00 00 00 00 00 00 9D [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:50]Read from MH i2c: E2 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 17 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 17 00 1B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F4 [22:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:12:50]wFMCommunicate OK [22:12:50]CreateOFDProtocolMessage done [22:12:50]OFDSenderStorePacket 139517 [22:12:50]StoreOFDPacket docnum=139517 [22:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 42 0B 07 01 44 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 61 C3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 20 02 00 35 04 06 00 F4 8A C2 8D E3 18 9A 55 7E F7 2A B5 8D 37 [22:12:50]CheckFolder [22:12:50]dirname=/storage/ofd_packets [22:12:50]CheckFolder done [22:12:50]ProducePacketName [22:12:50]name=ofd_packets/00139517 [22:12:50]NVStorageSaveData ofd_packets/00139517 [22:12:50]File name is /storage/ofd_packets/00139517 [22:12:50]Write 301 bytes [22:12:50]NVStorageSaveData done [22:12:50]OFDSenderStorePacket done [22:12:50]KKMCreateOFDPacket done [22:12:50]NVStorageSaveData kkm_last_timestamp [22:12:50]File name is /storage/kkm_last_timestamp [22:12:50]Write 4 bytes [22:12:50]NVStorageSaveData done [22:12:50]ExternCall_PrintAddStr [22:12:50]wPrintStart [22:12:50]Write to MH i2c: 01 00 00 1C 08 24 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: 01 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: 01 07 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: 01 07 00 1C 08 00 00 00 00 00 FF 0F 39 [22:12:50]RasterBufferAndPrint [22:12:50]line Счет N : (1)593360 [22:12:50]line ИНН: 02508201610067 [22:12:50]line Контрольно-Кассовый Чек [22:12:50]line ПРОДАЖА [22:12:50]line ТРК (МРК, ГНК) : 52 [22:12:50]line Товар: 2710124130 [22:12:50]line Аи-92-К-5 [22:12:50]line 14.750 * 67.80 [22:12:50]line = 1000.05 [22:12:50]line НДС 12% НСП 1% [22:12:50]line > о реализуемом товаре [22:12:50]line ОКРУГЛЕНИЕ: -0.05 [22:12:50]line ИТОГО: 1000.00 [22:12:50]line Внесено: 1000.00 [22:12:50]line СДАЧА: 0.00 [22:12:50]line НСП 1% : 8.85 [22:12:50]line НДС 12% : 106.20 [22:12:50]line Наличными: 1000.00 [22:12:50]line Безнал.: 0.00 [22:12:50]line Место: АЗС № 136 "Партнер Нефть" [22:12:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:12:50]line СНО: Общий режим [22:12:50]line Чек 352 19.08.2024 22:12 [22:12:50]line Смена: 452 ФФД: 1.0 [22:12:50]line ЗНМ: 0300000067 [22:12:50]line РНМ: 0000000000092569 [22:12:50]line Версия ККМ: 001 [22:12:50]line ФМ: 0000000000871776 [22:12:50]line ФД: 139517 [22:12:50]line ФПД: 268876806742808 [22:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139517&fm=268876806742808&tin=02508201610067®Number=0000000000092569&sum=100000 [22:12:51]written 0, free lines is 4095 [22:12:51]OFD Sender: Processing packet 139517 [packets to send 137, broken 136] [22:12:51]ProducePacketName [22:12:51]name=ofd_packets/00139517 [22:12:51]OFD Sender: To server: pG, [22:12:51]CommunicateWithHost lk.salyk.kg:30040 [22:12:51]ConnectInit lk.salyk.kg [22:12:51]Connected sock=10 [22:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 42 0B 07 01 44 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 61 C3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 20 02 00 35 04 06 00 F4 8A C2 8D E3 18 9A 55 7E F7 2A B5 8D 37 [22:12: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 37 36 4F 00 00 00 B2 79 47 00 A9 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 37 36 10 04 04 00 FD 20 02 00 F4 03 04 00 F6 69 C3 66 B6 04 01 00 00 FB 93 4F D8 BD A8 EC 2C [22:12:51]CommunicateWithHost err = 0 [22:12:51]CheckOFDResponse [22:12:51]1017 (14) - 77093643461234 [22:12:51]1041 (16) - 0000000000871776 [22:12:51]1040 (4) - 139517 [22:12:51]1012 (4) - 19.08.2024 15:51 [22:12:51]1206 (1) - 0 [22:12:51]OFD Sender: Remove packet 139517 [22:12:51]ProducePacketName [22:12:51]name=ofd_packets/00139517 [22:12:51]NVStorageDeleteData [22:12:51]Write to MH i2c: 01 00 00 47 08 4F [22:12:51]Write i2c OK [22:12:51]MH_I2C_Read... [22:12:51]Read from MH i2c: 01 [22:12:51]MH_I2C_Read... [22:12:51]Read from MH i2c: 01 07 00 [22:12:51]MH_I2C_Read... [22:12:51]Read from MH i2c: 01 07 00 47 08 00 00 00 00 00 DC 0C 3E [22:12:51]RasterBufferAndPrint [22:12:51]line [22:12:51]line [22:12:51]line [22:12:51]line [22:12:51]line [22:12:51]written 0, free lines is 3300 [22:12:51]MH_Cut [22:12:51]Write to MH i2c: D1 01 00 4E 08 01 28 [22:12:51]Write i2c OK [22:12:51]MH_I2C_Read... [22:12:51]Read from MH i2c: D1 [22:12:51]MH_I2C_Read... [22:12:51]Read from MH i2c: D1 01 00 [22:12:51]MH_I2C_Read... [22:12:51]Read from MH i2c: D1 01 00 4E 08 00 27 [22:12:51]Write to MH i2c: 01 00 00 4F 08 57 [22:12:51]Write i2c OK [22:12:51]MH_I2C_Read... [22:12:52]OFD Sender: No OFD packet to send [22:12:52]*** Cut start [22:12:52]*** Partial cut [22:12:52]*** CUTSNS_PIN = 1 [22:12:52]*** CUTSNS_PIN = 0 [22:12:52]*** Brake cut motor [22:12:52]Read from MH i2c: 01 [22:12:52]MH_I2C_Read... [22:12:52]*** Stop cut motor [22:12:52]*** Cut end [22:12:52]Read from MH i2c: 01 07 00 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: 01 07 00 4F 08 00 00 00 00 00 FF 0F 6C [22:12:52]process_action close_receipt done [22:12:52]requested_data is exist [22:12:52]produce_requested_data [22:12:52]requested_item fm.sn is exist - process it [22:12:52]wFMCommunicate request_size=4 [22:12:52]MH_SAM_APDU [22:12:52]CAPDU: 80 11 00 00 [22:12:52]Write to MH i2c: E2 08 00 50 08 80 11 00 00 00 00 00 00 D2 [22:12:52]Write i2c OK [22:12:52]MH_I2C_Read... [22:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:52]Read from MH i2c: E2 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 17 00 [22:12:52]MH_I2C_Read... [22:12:52]Read from MH i2c: E2 17 00 50 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 29 [22:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:12:52]wFMCommunicate OK [22:12:52]requested_item fd.num is exist - process it [22:12:52]SAM_PROTO_GetFieldsCounters [22:12:52]wFMCommunicate request_size=4 [22:12:52]MH_SAM_APDU [22:12:52]CAPDU: 80 13 00 00 [22:12:52]Write to MH i2c: E2 08 00 51 08 80 13 00 00 00 00 00 00 D5 [22:12:52]Write i2c OK [22:12:52]MH_I2C_Read... [22:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:53]Read from MH i2c: E2 [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: E2 62 00 [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: E2 62 00 51 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [22:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:53]wFMCommunicate OK [22:12:53]SAM_PROTO_GetFieldsCounters done [22:12:53]requested_item shift.num is exist - process it [22:12:53]requested_item shift.opened is exist - process it [22:12:53]req_shift_opened [22:12:53]FM_GetShiftState [22:12:53]SAM_PROTO_GetShiftState [22:12:53]wFMCommunicate request_size=4 [22:12:53]MH_SAM_APDU [22:12:53]CAPDU: 80 13 01 00 [22:12:53]Write to MH i2c: E2 08 00 52 08 80 13 01 00 00 00 00 00 D7 [22:12:53]Write i2c OK [22:12:53]MH_I2C_Read... [22:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:53]Read from MH i2c: E2 [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: E2 0E 00 [22:12:53]MH_I2C_Read... [22:12:53]Read from MH i2c: E2 0E 00 52 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 8E [22:12:53]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:12:53]wFMCommunicate OK [22:12:53]SAM_PROTO_GetShiftState done [22:12:53]FM_GetShiftState done [22:12:53]req_shift_opened done [22:12:53]requested_item shift.open_date is exist - process it [22:12:53]req_shift_open_date [22:12:53]req_shift_open_date done [22:12:53]produce_requested_data done [22:12:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139517,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:12:53]process_action_free close_receipt [22:12:53]json_value_free [22:12:53]json_value_free done [22:12:53]process_json_proto returns [22:12:53]Send response to host [22:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139517,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:12:53]free response buf [22:12:53]execute_script done [22:12:53]execute_script returns [22:12:53]free content buf [22:12:53]Sock 7.Close socket [22:12:53]Sock 7.Thread stoped [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:14:57]accept exits with 9 [22:14:57]New connection [22:14:57]New thread 3067215204 created [22:14:57]Thread 3067071844 joined [22:14:57]Waiting for new connection... [22:14:57] Sock 9.Parse request [22:14:57]Sock 9.Check first char [22:14:57]Sock 9.First char is OK [22:14:57]request: POST /json_proto HTTP/1.0 [22:14:57]Method: POST [22:14:57]URL: /json_proto [22:14:57]Method is POST - this is cgi request [22:14:57]url: /json_proto [22:14:57]query_string will be loaded in cgi processing [22:14:57]execute_cgi json_proto POST (null) [22:14:57]execute_cgi path=json_proto method=POST [22:14:57]POST find Content-Length [22:14:57]Host: 172.17.45.67:8080 [22:14:57]Content-Length: 682 [22:14:57]Content-Type: application/json [22:14:57] [22:14:57]POST finish read [22:14:57]Found Content-Length = 682 [22:14:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:14:57]execute_script... [22:14: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)593361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:14:57]POST & json_proto [22:14:57]process_json_proto [22:14:57]json parsed OK: [22:14:57]protocol is kg_v1.0 [22:14:57]action value=close_receipt [22:14:57]process_action close_receipt [22:14:57]cmd_close_receipt [22:14:57]MH_GetDate [22:14:57]Write to MH i2c: F0 00 00 53 08 4A [22:14:57]Write i2c OK [22:14:57]MH_I2C_Read... [22:14:57]Read from MH i2c: F0 [22:14:57]MH_I2C_Read... [22:14:57]Read from MH i2c: F0 09 00 [22:14:57]MH_I2C_Read... [22:14:57]Read from MH i2c: F0 09 00 53 08 00 E2 C3 C3 66 5F 7F 2B 66 90 [22:14:57]GetLastDocTimeStamp 1724105569 [22:14:57]current date 1724105698 [22:14:57]FM_GetShiftState [22:14:57]SAM_PROTO_GetShiftState [22:14:57]wFMCommunicate request_size=4 [22:14:57]MH_SAM_APDU [22:14:57]CAPDU: 80 13 01 00 [22:14:57]Write to MH i2c: E2 08 00 54 08 80 13 01 00 00 00 00 00 D9 [22:14:57]Write i2c OK [22:14:57]MH_I2C_Read... [22:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:58]Read from MH i2c: E2 [22:14:58]MH_I2C_Read... [22:14:58]Read from MH i2c: E2 0E 00 [22:14:58]MH_I2C_Read... [22:14:58]Read from MH i2c: E2 0E 00 54 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 90 [22:14:58]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:14:58]wFMCommunicate OK [22:14:58]SAM_PROTO_GetShiftState done [22:14:58]FM_GetShiftState done [22:14:58]opened in 1724027888 [22:14:58]opened+sec_in_day 1724114288 [22:14:58]quantity*price = 50063 [22:14:58]sum+1 = 50064 [22:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 353 19.08.2024 22:14 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139518 ФПД: 278858823904886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221458&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139518&fm=278858823904886&tin=02508201610067®Number=0000000000092569&sum=50000 [22:14:59]StoreToDocumentArchive [22:14:59]shift 452 fd 139518 [22:14:59]save to /storage/0452/doc_00139518 [22:14:59]save last doc name /storage/0452/doc_00139518 to /storage/kkm_last_doc_name [22:14:59]save OK [22:14:59]Clear old archive folders... [22:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:14:59]tlvbuf is 00D16670 [22:14:59]SAM_PROTO_ClearQueue [22:14:59]wFMCommunicate request_size=4 [22:14:59]MH_SAM_APDU [22:14:59]CAPDU: 80 09 00 00 [22:14:59]Write to MH i2c: E2 08 00 61 08 80 09 00 00 00 00 00 00 DB [22:14:59]Write i2c OK [22:14:59]MH_I2C_Read... [22:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:59]Read from MH i2c: E2 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 03 00 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 03 00 61 08 00 90 00 DD [22:14:59]RAPDU: 90 00 [22:14:59]wFMCommunicate OK [22:14:59]SAM_PROTO_ClearQueue done [22:14:59]KKMCreateOFDPacket [22:14:59]OFDProtocolAddRootSTLVToBuf [22:14:59]FM_MakeSignedData [22:14:59]FM_MakeSignedData [22:14:59]SAM_PROTO_SignData [22:14:59]wFMCommunicate request_size=4 [22:14:59]MH_SAM_APDU [22:14:59]CAPDU: 80 0D 01 02 [22:14:59]Write to MH i2c: E2 08 00 62 08 80 0D 01 02 00 00 00 00 E3 [22:14:59]Write i2c OK [22:14:59]MH_I2C_Read... [22:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:59]Read from MH i2c: E2 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 03 00 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 03 00 62 08 00 90 00 DE [22:14:59]RAPDU: 90 00 [22:14:59]wFMCommunicate OK [22:14:59]wFMCommunicate request_size=255 [22:14:59]MH_SAM_APDU [22:14:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 61 01 00 00 F4 03 04 00 E2 C3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 20 02 00 35 04 06 00 [22:14:59]Write to MH i2c: E2 02 01 63 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 61 01 00 00 F4 03 04 00 E2 C3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 20 02 00 35 04 06 00 00 00 F7 [22:14:59]Write i2c OK [22:14:59]MH_I2C_Read... [22:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:59]Read from MH i2c: E2 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 03 00 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 03 00 63 08 00 90 00 DF [22:14:59]RAPDU: 90 00 [22:14:59]wFMCommunicate OK [22:14:59]wFMCommunicate request_size=11 [22:14:59]MH_SAM_APDU [22:14:59]CAPDU: 80 0D 02 02 06 FD 9E E1 24 2E 76 [22:14:59]Write to MH i2c: E2 0E 00 64 08 80 0D 02 02 06 00 FD 9E E1 24 2E 76 00 00 36 [22:14:59]Write i2c OK [22:14:59]MH_I2C_Read... [22:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:59]Read from MH i2c: E2 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 03 00 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 03 00 64 08 00 90 00 E0 [22:14:59]RAPDU: 90 00 [22:14:59]wFMCommunicate OK [22:14:59]wFMCommunicate request_size=4 [22:14:59]MH_SAM_APDU [22:14:59]CAPDU: 80 0D 03 02 [22:14:59]Write to MH i2c: E2 08 00 65 08 80 0D 03 02 00 00 00 00 E8 [22:14:59]Write i2c OK [22:14:59]MH_I2C_Read... [22:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:59]Read from MH i2c: E2 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 0B 00 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 0B 00 65 08 00 6F 34 A8 C9 B6 54 AC 8F 90 00 42 [22:14:59]RAPDU: 6F 34 A8 C9 B6 54 AC 8F 90 00 [22:14:59]wFMCommunicate OK [22:14:59]SAM_PROTO_SignData done [22:14:59]FM_MakeSignedData done [22:14:59]CreateOFDProtocolMessage [22:14:59]wFMCommunicate request_size=4 [22:14:59]MH_SAM_APDU [22:14:59]CAPDU: 80 11 00 00 [22:14:59]Write to MH i2c: E2 08 00 66 08 80 11 00 00 00 00 00 00 E8 [22:14:59]Write i2c OK [22:14:59]MH_I2C_Read... [22:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:59]Read from MH i2c: E2 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 17 00 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: E2 17 00 66 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3F [22:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:14:59]wFMCommunicate OK [22:14:59]CreateOFDProtocolMessage done [22:14:59]OFDSenderStorePacket 139518 [22:14:59]StoreOFDPacket docnum=139518 [22:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 D3 10 08 01 88 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 61 01 00 00 F4 03 04 00 E2 C3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 20 02 00 35 04 06 00 FD 9E E1 24 2E 76 6F 34 A8 C9 B6 54 AC 8F [22:14:59]CheckFolder [22:14:59]dirname=/storage/ofd_packets [22:14:59]CheckFolder done [22:14:59]ProducePacketName [22:14:59]name=ofd_packets/00139518 [22:14:59]NVStorageSaveData ofd_packets/00139518 [22:14:59]File name is /storage/ofd_packets/00139518 [22:14:59]Write 302 bytes [22:14:59]NVStorageSaveData done [22:14:59]OFDSenderStorePacket done [22:14:59]KKMCreateOFDPacket done [22:14:59]NVStorageSaveData kkm_last_timestamp [22:14:59]File name is /storage/kkm_last_timestamp [22:14:59]Write 4 bytes [22:14:59]NVStorageSaveData done [22:14:59]ExternCall_PrintAddStr [22:14:59]wPrintStart [22:14:59]Write to MH i2c: 01 00 00 67 08 6F [22:14:59]Write i2c OK [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: 01 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: 01 07 00 [22:14:59]MH_I2C_Read... [22:14:59]Read from MH i2c: 01 07 00 67 08 00 00 00 00 00 FF 0F 84 [22:14:59]RasterBufferAndPrint [22:14:59]line Счет N : (1)593361 [22:14:59]line ИНН: 02508201610067 [22:14:59]line Контрольно-Кассовый Чек [22:14:59]line ПРОДАЖА [22:14:59]line ТРК (МРК, ГНК) : 34 [22:14:59]line Товар: 2710194210 [22:14:59]line ДТ(л)-К-5 [22:14:59]line 6.570 * 76.20 [22:14:59]line = 500.63 [22:14:59]line НДС 12% НСП 1% [22:14:59]line > о реализуемом товаре [22:14:59]line ОКРУГЛЕНИЕ: -0.63 [22:14:59]line ИТОГО: 500.00 [22:14:59]line Внесено: 500.00 [22:14:59]line СДАЧА: 0.00 [22:14:59]line НСП 1% : 4.43 [22:14:59]line НДС 12% : 53.16 [22:14:59]line Наличными: 500.00 [22:14:59]line Безнал.: 0.00 [22:14:59]line Место: АЗС № 136 "Партнер Нефть" [22:14:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:14:59]line СНО: Общий режим [22:14:59]line Чек 353 19.08.2024 22:14 [22:14:59]line Смена: 452 ФФД: 1.0 [22:14:59]line ЗНМ: 0300000067 [22:14:59]line РНМ: 0000000000092569 [22:14:59]line Версия ККМ: 001 [22:14:59]line ФМ: 0000000000871776 [22:14:59]line ФД: 139518 [22:14:59]line ФПД: 278858823904886 [22:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221458&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139518&fm=278858823904886&tin=02508201610067®Number=0000000000092569&sum=50000 [22:15:00]OFD Sender: Processing packet 139518 [packets to send 137, broken 136] [22:15:00]ProducePacketName [22:15:00]name=ofd_packets/00139518 [22:15:00]OFD Sender: To server: pG, [22:15:00]CommunicateWithHost lk.salyk.kg:30040 [22:15:00]ConnectInit lk.salyk.kg [22:15:00]written 0, free lines is 4095 [22:15:00]Connected sock=10 [22:15: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 37 36 10 01 00 00 D3 10 08 01 88 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 61 01 00 00 F4 03 04 00 E2 C3 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 20 02 00 35 04 06 00 FD 9E E1 24 2E 76 6F 34 A8 C9 B6 54 AC 8F [22:15:00]Write to MH i2c: 01 00 00 92 08 9A [22:15:00]Write i2c OK [22:15:00]MH_I2C_Read... [22:15:00]Read from MH i2c: 01 [22:15:00]MH_I2C_Read... [22:15:00]Read from MH i2c: 01 07 00 [22:15:00]MH_I2C_Read... [22:15:00]Read from MH i2c: 01 07 00 92 08 00 00 00 00 00 F1 0C 9E [22:15:00]RasterBufferAndPrint [22:15:00]line [22:15:00]line [22:15:00]line [22:15:00]line [22:15:00]line [22:15:00]written 0, free lines is 3319 [22:15: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 37 36 4F 00 00 00 97 30 47 00 58 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 20 02 00 F4 03 04 00 77 6A C3 66 B6 04 01 00 00 39 95 6D DA AD 49 23 98 [22:15:00]CommunicateWithHost err = 0 [22:15:00]CheckOFDResponse [22:15:00]1017 (14) - 77093643461234 [22:15:00]1041 (16) - 0000000000871776 [22:15:00]1040 (4) - 139518 [22:15:00]1012 (4) - 19.08.2024 15:53 [22:15:00]1206 (1) - 0 [22:15:00]OFD Sender: Remove packet 139518 [22:15:00]ProducePacketName [22:15:00]name=ofd_packets/00139518 [22:15:00]NVStorageDeleteData [22:15:00]MH_Cut [22:15:00]Write to MH i2c: D1 01 00 99 08 01 73 [22:15:00]Write i2c OK [22:15:00]MH_I2C_Read... [22:15:00]Read from MH i2c: D1 [22:15:00]MH_I2C_Read... [22:15:00]Read from MH i2c: D1 01 00 [22:15:00]MH_I2C_Read... [22:15:00]Read from MH i2c: D1 01 00 99 08 00 72 [22:15:00]Write to MH i2c: 01 00 00 9A 08 A2 [22:15:00]Write i2c OK [22:15:00]MH_I2C_Read... [22:15:01]OFD Sender: No OFD packet to send [22:15:01]*** Cut start [22:15:01]*** Partial cut [22:15:01]*** CUTSNS_PIN = 1 [22:15:01]*** CUTSNS_PIN = 0 [22:15:01]*** Brake cut motor [22:15:01]Read from MH i2c: 01 [22:15:01]MH_I2C_Read... [22:15:01]*** Stop cut motor [22:15:01]*** Cut end [22:15:01]Read from MH i2c: 01 07 00 [22:15:01]MH_I2C_Read... [22:15:01]Read from MH i2c: 01 07 00 9A 08 00 00 00 00 00 FF 0F B7 [22:15:01]process_action close_receipt done [22:15:01]requested_data is exist [22:15:01]produce_requested_data [22:15:01]requested_item fm.sn is exist - process it [22:15:01]wFMCommunicate request_size=4 [22:15:01]MH_SAM_APDU [22:15:01]CAPDU: 80 11 00 00 [22:15:01]Write to MH i2c: E2 08 00 9B 08 80 11 00 00 00 00 00 00 1D [22:15:01]Write i2c OK [22:15:01]MH_I2C_Read... [22:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:01]Read from MH i2c: E2 [22:15:01]MH_I2C_Read... [22:15:01]Read from MH i2c: E2 17 00 [22:15:01]MH_I2C_Read... [22:15:01]Read from MH i2c: E2 17 00 9B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [22:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:15:01]wFMCommunicate OK [22:15:01]requested_item fd.num is exist - process it [22:15:01]SAM_PROTO_GetFieldsCounters [22:15:01]wFMCommunicate request_size=4 [22:15:01]MH_SAM_APDU [22:15:01]CAPDU: 80 13 00 00 [22:15:01]Write to MH i2c: E2 08 00 9C 08 80 13 00 00 00 00 00 00 20 [22:15:01]Write i2c OK [22:15:01]MH_I2C_Read... [22:15:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:01]Read from MH i2c: E2 [22:15:01]MH_I2C_Read... [22:15:01]Read from MH i2c: E2 62 00 [22:15:01]MH_I2C_Read... [22:15:01]Read from MH i2c: E2 62 00 9C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [22:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:01]wFMCommunicate OK [22:15:01]SAM_PROTO_GetFieldsCounters done [22:15:01]requested_item shift.num is exist - process it [22:15:01]requested_item shift.opened is exist - process it [22:15:01]req_shift_opened [22:15:01]FM_GetShiftState [22:15:01]SAM_PROTO_GetShiftState [22:15:01]wFMCommunicate request_size=4 [22:15:01]MH_SAM_APDU [22:15:01]CAPDU: 80 13 01 00 [22:15:01]Write to MH i2c: E2 08 00 9D 08 80 13 01 00 00 00 00 00 22 [22:15:01]Write i2c OK [22:15:01]MH_I2C_Read... [22:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:02]Read from MH i2c: E2 [22:15:02]MH_I2C_Read... [22:15:02]Read from MH i2c: E2 0E 00 [22:15:02]MH_I2C_Read... [22:15:02]Read from MH i2c: E2 0E 00 9D 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 D9 [22:15:02]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:15:02]wFMCommunicate OK [22:15:02]SAM_PROTO_GetShiftState done [22:15:02]FM_GetShiftState done [22:15:02]req_shift_opened done [22:15:02]requested_item shift.open_date is exist - process it [22:15:02]req_shift_open_date [22:15:02]req_shift_open_date done [22:15:02]produce_requested_data done [22:15:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139518,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:15:02]process_action_free close_receipt [22:15:02]json_value_free [22:15:02]json_value_free done [22:15:02]process_json_proto returns [22:15:02]Send response to host [22:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139518,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:15:02]free response buf [22:15:02]execute_script done [22:15:02]execute_script returns [22:15:02]free content buf [22:15:02]Sock 9.Close socket [22:15:02]Sock 9.Thread stoped [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [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:34]accept exits with 7 [22:23:34]New connection [22:23:34]New thread 3067071844 created [22:23:34]Thread 3067215204 joined [22:23:34]Waiting for new connection... [22:23:34] Sock 7.Parse request [22:23:34]Sock 7.Check first char [22:23:34]Sock 7.First char is OK [22:23:34]request: POST /json_proto HTTP/1.0 [22:23:34]Method: POST [22:23:34]URL: /json_proto [22:23:34]Method is POST - this is cgi request [22:23:34]url: /json_proto [22:23:34]query_string will be loaded in cgi processing [22:23:34]execute_cgi json_proto POST (null) [22:23:34]execute_cgi path=json_proto method=POST [22:23:34]POST find Content-Length [22:23:34]Host: 172.17.45.67:8080 [22:23:34]Content-Length: 658 [22:23:34]Content-Type: application/json [22:23:34] [22:23:34]POST finish read [22:23:34]Found Content-Length = 658 [22:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:23:34]execute_script... [22:23: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)593362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:23:34]POST & json_proto [22:23:34]process_json_proto [22:23:34]json parsed OK: [22:23:34]protocol is kg_v1.0 [22:23:34]action value=close_receipt [22:23:34]process_action close_receipt [22:23:34]cmd_close_receipt [22:23:34]MH_GetDate [22:23:34]Write to MH i2c: F0 00 00 9E 08 95 [22:23:34]Write i2c OK [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: F0 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: F0 09 00 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: F0 09 00 9E 08 00 E6 C5 C3 66 5F 7F 2B 66 E1 [22:23:34]GetLastDocTimeStamp 1724105698 [22:23:34]current date 1724106214 [22:23:34]FM_GetShiftState [22:23:34]SAM_PROTO_GetShiftState [22:23:34]wFMCommunicate request_size=4 [22:23:34]MH_SAM_APDU [22:23:34]CAPDU: 80 13 01 00 [22:23:34]Write to MH i2c: E2 08 00 9F 08 80 13 01 00 00 00 00 00 24 [22:23:34]Write i2c OK [22:23:34]MH_I2C_Read... [22:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:34]Read from MH i2c: E2 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: E2 0E 00 [22:23:34]MH_I2C_Read... [22:23:34]Read from MH i2c: E2 0E 00 9F 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 DB [22:23:34]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:23:34]wFMCommunicate OK [22:23:34]SAM_PROTO_GetShiftState done [22:23:34]FM_GetShiftState done [22:23:34]opened in 1724027888 [22:23:34]opened+sec_in_day 1724114288 [22:23:34]quantity*price = 40041 [22:23:34]sum+1 = 40043 [22:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 354 19.08.2024 22:23 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139519 ФПД: 274600928569351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T222334&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139519&fm=274600928569351&tin=02508201610067®Number=0000000000092569&sum=40000 [22:23:35]StoreToDocumentArchive [22:23:35]shift 452 fd 139519 [22:23:35]save to /storage/0452/doc_00139519 [22:23:35]save last doc name /storage/0452/doc_00139519 to /storage/kkm_last_doc_name [22:23:35]save OK [22:23:35]Clear old archive folders... [22:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:23:35]tlvbuf is 00D26FA0 [22:23:35]SAM_PROTO_ClearQueue [22:23:35]wFMCommunicate request_size=4 [22:23:35]MH_SAM_APDU [22:23:35]CAPDU: 80 09 00 00 [22:23:35]Write to MH i2c: E2 08 00 AC 08 80 09 00 00 00 00 00 00 26 [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:35]Read from MH i2c: E2 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 03 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [22:23:35]RAPDU: 90 00 [22:23:35]wFMCommunicate OK [22:23:35]SAM_PROTO_ClearQueue done [22:23:35]KKMCreateOFDPacket [22:23:35]OFDProtocolAddRootSTLVToBuf [22:23:35]FM_MakeSignedData [22:23:35]FM_MakeSignedData [22:23:35]SAM_PROTO_SignData [22:23:35]wFMCommunicate request_size=4 [22:23:35]MH_SAM_APDU [22:23:35]CAPDU: 80 0D 01 02 [22:23:35]Write to MH i2c: E2 08 00 AD 08 80 0D 01 02 00 00 00 00 2E [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:35]Read from MH i2c: E2 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 03 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [22:23:35]RAPDU: 90 00 [22:23:35]wFMCommunicate OK [22:23:35]wFMCommunicate request_size=253 [22:23:35]MH_SAM_APDU [22:23:35]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E6 C5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 20 02 00 35 04 06 00 F9 BF 82 CD 68 07 [22:23:35]Write to MH i2c: E2 00 01 AE 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E6 C5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 20 02 00 35 04 06 00 F9 BF 82 CD 68 07 00 00 1C [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:35]Read from MH i2c: E2 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 03 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [22:23:35]RAPDU: 90 00 [22:23:35]wFMCommunicate OK [22:23:35]wFMCommunicate request_size=4 [22:23:35]MH_SAM_APDU [22:23:35]CAPDU: 80 0D 03 02 [22:23:35]Write to MH i2c: E2 08 00 AF 08 80 0D 03 02 00 00 00 00 32 [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:35]Read from MH i2c: E2 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 0B 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 0B 00 AF 08 00 1C 43 CD 0E 8B EB 7B 14 90 00 72 [22:23:35]RAPDU: 1C 43 CD 0E 8B EB 7B 14 90 00 [22:23:35]wFMCommunicate OK [22:23:35]SAM_PROTO_SignData done [22:23:35]FM_MakeSignedData done [22:23:35]CreateOFDProtocolMessage [22:23:35]wFMCommunicate request_size=4 [22:23:35]MH_SAM_APDU [22:23:35]CAPDU: 80 11 00 00 [22:23:35]Write to MH i2c: E2 08 00 B0 08 80 11 00 00 00 00 00 00 32 [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:35]Read from MH i2c: E2 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 17 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: E2 17 00 B0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 89 [22:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:23:35]wFMCommunicate OK [22:23:35]CreateOFDProtocolMessage done [22:23:35]OFDSenderStorePacket 139519 [22:23:35]StoreOFDPacket docnum=139519 [22:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 69 0C 00 01 5F 4F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E6 C5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 20 02 00 35 04 06 00 F9 BF 82 CD 68 07 1C 43 CD 0E 8B EB 7B 14 [22:23:35]CheckFolder [22:23:35]dirname=/storage/ofd_packets [22:23:35]CheckFolder done [22:23:35]ProducePacketName [22:23:35]name=ofd_packets/00139519 [22:23:35]NVStorageSaveData ofd_packets/00139519 [22:23:35]File name is /storage/ofd_packets/00139519 [22:23:35]Write 294 bytes [22:23:35]NVStorageSaveData done [22:23:35]OFDSenderStorePacket done [22:23:35]KKMCreateOFDPacket done [22:23:35]NVStorageSaveData kkm_last_timestamp [22:23:35]File name is /storage/kkm_last_timestamp [22:23:35]Write 4 bytes [22:23:35]NVStorageSaveData done [22:23:35]ExternCall_PrintAddStr [22:23:35]wPrintStart [22:23:35]Write to MH i2c: 01 00 00 B1 08 B9 [22:23:35]Write i2c OK [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: 01 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: 01 07 00 [22:23:35]MH_I2C_Read... [22:23:35]Read from MH i2c: 01 07 00 B1 08 00 00 00 00 00 FF 0F CE [22:23:35]RasterBufferAndPrint [22:23:35]line Счет N : (1)593362 [22:23:35]line ИНН: 02508201610067 [22:23:35]line Контрольно-Кассовый Чек [22:23:35]line ПРОДАЖА [22:23:35]line ТРК (МРК, ГНК) : 53 [22:23:35]line Товар: 2710124130 [22:23:35]line SU-92 [22:23:35]line 5.820 * 68.80 [22:23:35]line = 400.42 [22:23:35]line НДС 12% НСП 1% [22:23:35]line > о реализуемом товаре [22:23:35]line ОКРУГЛЕНИЕ: -0.42 [22:23:35]line ИТОГО: 400.00 [22:23:35]line Внесено: 400.00 [22:23:35]line СДАЧА: 0.00 [22:23:35]line НСП 1% : 3.54 [22:23:35]line НДС 12% : 42.52 [22:23:35]line Наличными: 400.00 [22:23:35]line Безнал.: 0.00 [22:23:35]line Место: АЗС № 136 "Партнер Нефть" [22:23:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:23:35]line СНО: Общий режим [22:23:35]line Чек 354 19.08.2024 22:23 [22:23:35]line Смена: 452 ФФД: 1.0 [22:23:35]line ЗНМ: 0300000067 [22:23:35]line РНМ: 0000000000092569 [22:23:35]line Версия ККМ: 001 [22:23:35]line ФМ: 0000000000871776 [22:23:35]line ФД: 139519 [22:23:35]line ФПД: 274600928569351 [22:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T222334&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139519&fm=274600928569351&tin=02508201610067®Number=0000000000092569&sum=40000 [22:23:36]OFD Sender: Processing packet 139519 [packets to send 137, broken 136] [22:23:36]ProducePacketName [22:23:36]name=ofd_packets/00139519 [22:23:36]OFD Sender: To server: pG, [22:23:36]CommunicateWithHost lk.salyk.kg:30040 [22:23:36]ConnectInit lk.salyk.kg [22:23:36]written 0, free lines is 4095 [22:23:36]Connected sock=10 [22:23: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 37 36 08 01 00 00 69 0C 00 01 5F 4F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E6 C5 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 20 02 00 35 04 06 00 F9 BF 82 CD 68 07 1C 43 CD 0E 8B EB 7B 14 [22:23: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 37 36 4F 00 00 00 E4 0B 47 00 3C 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 37 36 10 04 04 00 FF 20 02 00 F4 03 04 00 7B 6C C3 66 B6 04 01 00 00 3A A4 4A 46 97 52 F6 10 [22:23:36]CommunicateWithHost err = 0 [22:23:36]CheckOFDResponse [22:23:36]1017 (14) - 77093643461234 [22:23:36]1041 (16) - 0000000000871776 [22:23:36]1040 (4) - 139519 [22:23:36]1012 (4) - 19.08.2024 16:02 [22:23:36]1206 (1) - 0 [22:23:36]OFD Sender: Remove packet 139519 [22:23:36]ProducePacketName [22:23:36]name=ofd_packets/00139519 [22:23:36]NVStorageDeleteData [22:23:36]Write to MH i2c: 01 00 00 DC 08 E4 [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: 01 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: 01 07 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: 01 07 00 DC 08 00 00 00 00 00 D8 0C CF [22:23:36]RasterBufferAndPrint [22:23:36]line [22:23:36]line [22:23:36]line [22:23:36]line [22:23:36]line [22:23:36]written 0, free lines is 3295 [22:23:36]MH_Cut [22:23:36]Write to MH i2c: D1 01 00 E3 08 01 BD [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: D1 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: D1 01 00 [22:23:36]MH_I2C_Read... [22:23:36]Read from MH i2c: D1 01 00 E3 08 00 BC [22:23:36]Write to MH i2c: 01 00 00 E4 08 EC [22:23:36]Write i2c OK [22:23:36]MH_I2C_Read... [22:23:37]OFD Sender: No OFD packet to send [22:23:37]*** Cut start [22:23:37]*** Partial cut [22:23:37]*** CUTSNS_PIN = 1 [22:23:37]*** CUTSNS_PIN = 0 [22:23:37]*** Brake cut motor [22:23:38]Read from MH i2c: 01 [22:23:38]MH_I2C_Read... [22:23:38]*** Stop cut motor [22:23:38]*** Cut end [22:23:38]Read from MH i2c: 01 07 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: 01 07 00 E4 08 00 00 00 00 00 FF 0F 01 [22:23:38]process_action close_receipt done [22:23:38]requested_data is exist [22:23:38]produce_requested_data [22:23:38]requested_item fm.sn is exist - process it [22:23:38]wFMCommunicate request_size=4 [22:23:38]MH_SAM_APDU [22:23:38]CAPDU: 80 11 00 00 [22:23:38]Write to MH i2c: E2 08 00 E5 08 80 11 00 00 00 00 00 00 67 [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:38]Read from MH i2c: E2 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 17 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 17 00 E5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BE [22:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:23:38]wFMCommunicate OK [22:23:38]requested_item fd.num is exist - process it [22:23:38]SAM_PROTO_GetFieldsCounters [22:23:38]wFMCommunicate request_size=4 [22:23:38]MH_SAM_APDU [22:23:38]CAPDU: 80 13 00 00 [22:23:38]Write to MH i2c: E2 08 00 E6 08 80 13 00 00 00 00 00 00 6A [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:38]Read from MH i2c: E2 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 62 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 62 00 E6 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [22:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 20 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:38]wFMCommunicate OK [22:23:38]SAM_PROTO_GetFieldsCounters done [22:23:38]requested_item shift.num is exist - process it [22:23:38]requested_item shift.opened is exist - process it [22:23:38]req_shift_opened [22:23:38]FM_GetShiftState [22:23:38]SAM_PROTO_GetShiftState [22:23:38]wFMCommunicate request_size=4 [22:23:38]MH_SAM_APDU [22:23:38]CAPDU: 80 13 01 00 [22:23:38]Write to MH i2c: E2 08 00 E7 08 80 13 01 00 00 00 00 00 6C [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:38]Read from MH i2c: E2 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 0E 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 0E 00 E7 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 23 [22:23:38]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:23:38]wFMCommunicate OK [22:23:38]SAM_PROTO_GetShiftState done [22:23:38]FM_GetShiftState done [22:23:38]req_shift_opened done [22:23:38]requested_item shift.open_date is exist - process it [22:23:38]req_shift_open_date [22:23:38]req_shift_open_date done [22:23:38]produce_requested_data done [22:23:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139519,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:23:38]process_action_free close_receipt [22:23:38]json_value_free [22:23:38]json_value_free done [22:23:38]process_json_proto returns [22:23:38]Send response to host [22:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139519,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:23:38]free response buf [22:23:38]execute_script done [22:23:38]execute_script returns [22:23:38]free content buf [22:23:38]Sock 7.Close socket [22:23:38]Sock 7.Thread stoped [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:17]accept exits with 9 [22:42:17]New connection [22:42:17]New thread 3067215204 created [22:42:17]Thread 3067071844 joined [22:42:17]Waiting for new connection... [22:42:17] Sock 9.Parse request [22:42:17]Sock 9.Check first char [22:42:17]Sock 9.First char is OK [22:42:17]request: POST /json_proto HTTP/1.0 [22:42:17]Method: POST [22:42:17]URL: /json_proto [22:42:17]Method is POST - this is cgi request [22:42:17]url: /json_proto [22:42:17]query_string will be loaded in cgi processing [22:42:17]execute_cgi json_proto POST (null) [22:42:17]execute_cgi path=json_proto method=POST [22:42:17]POST find Content-Length [22:42:17]Host: 172.17.45.67:8080 [22:42:17]Content-Length: 677 [22:42:17]Content-Type: application/json [22:42:17] [22:42:17]POST finish read [22:42:17]Found Content-Length = 677 [22:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:42:17]execute_script... [22:42: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)593363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:42:17]POST & json_proto [22:42:17]process_json_proto [22:42:17]json parsed OK: [22:42:17]protocol is kg_v1.0 [22:42:17]action value=close_receipt [22:42:17]process_action close_receipt [22:42:17]cmd_close_receipt [22:42:17]MH_GetDate [22:42:17]Write to MH i2c: F0 00 00 E8 08 DF [22:42:17]Write i2c OK [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: F0 [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: F0 09 00 [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: F0 09 00 E8 08 00 4A CA C3 66 5F 7F 2B 66 94 [22:42:17]GetLastDocTimeStamp 1724106214 [22:42:17]current date 1724107338 [22:42:17]FM_GetShiftState [22:42:17]SAM_PROTO_GetShiftState [22:42:17]wFMCommunicate request_size=4 [22:42:17]MH_SAM_APDU [22:42:17]CAPDU: 80 13 01 00 [22:42:17]Write to MH i2c: E2 08 00 E9 08 80 13 01 00 00 00 00 00 6E [22:42:17]Write i2c OK [22:42:17]MH_I2C_Read... [22:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:17]Read from MH i2c: E2 [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: E2 0E 00 [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: E2 0E 00 E9 08 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 25 [22:42:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:42:17]wFMCommunicate OK [22:42:17]SAM_PROTO_GetShiftState done [22:42:17]FM_GetShiftState done [22:42:17]opened in 1724027888 [22:42:17]opened+sec_in_day 1724114288 [22:42:17]quantity*price = 50010 [22:42:17]sum+1 = 50012 [22:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 355 19.08.2024 22:42 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139520 ФПД: 91965377009639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T224218&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139520&fm=91965377009639&tin=02508201610067®Number=0000000000092569&sum=50000 [22:42:18]StoreToDocumentArchive [22:42:18]shift 452 fd 139520 [22:42:18]save to /storage/0452/doc_00139520 [22:42:18]save last doc name /storage/0452/doc_00139520 to /storage/kkm_last_doc_name [22:42:18]save OK [22:42:18]Clear old archive folders... [22:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:42:18]tlvbuf is 00D374C0 [22:42:18]SAM_PROTO_ClearQueue [22:42:18]wFMCommunicate request_size=4 [22:42:18]MH_SAM_APDU [22:42:18]CAPDU: 80 09 00 00 [22:42:18]Write to MH i2c: E2 08 00 F6 08 80 09 00 00 00 00 00 00 70 [22:42:18]Write i2c OK [22:42:18]MH_I2C_Read... [22:42:18]OFD Sender: No OFD packet to send [22:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:18]Read from MH i2c: E2 [22:42:18]MH_I2C_Read... [22:42:18]Read from MH i2c: E2 03 00 [22:42:18]MH_I2C_Read... [22:42:18]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [22:42:18]RAPDU: 90 00 [22:42:18]wFMCommunicate OK [22:42:18]SAM_PROTO_ClearQueue done [22:42:18]KKMCreateOFDPacket [22:42:18]OFDProtocolAddRootSTLVToBuf [22:42:18]FM_MakeSignedData [22:42:18]FM_MakeSignedData [22:42:18]SAM_PROTO_SignData [22:42:18]wFMCommunicate request_size=4 [22:42:18]MH_SAM_APDU [22:42:18]CAPDU: 80 0D 01 02 [22:42:18]Write to MH i2c: E2 08 00 F7 08 80 0D 01 02 00 00 00 00 78 [22:42:18]Write i2c OK [22:42:18]MH_I2C_Read... [22:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:18]Read from MH i2c: E2 [22:42:18]MH_I2C_Read... [22:42:18]Read from MH i2c: E2 03 00 [22:42:18]MH_I2C_Read... [22:42:18]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [22:42:18]RAPDU: 90 00 [22:42:18]wFMCommunicate OK [22:42:18]wFMCommunicate request_size=255 [22:42:18]MH_SAM_APDU [22:42:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 4A CA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 21 02 00 35 04 06 00 53 [22:42:18]Write to MH i2c: E2 02 01 F8 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 4A CA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 21 02 00 35 04 06 00 53 00 00 C5 [22:42:18]Write i2c OK [22:42:18]MH_I2C_Read... [22:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:19]Read from MH i2c: E2 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 03 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [22:42:19]RAPDU: 90 00 [22:42:19]wFMCommunicate OK [22:42:19]wFMCommunicate request_size=10 [22:42:19]MH_SAM_APDU [22:42:19]CAPDU: 80 0D 02 02 05 A4 5B A0 D7 E7 [22:42:19]Write to MH i2c: E2 0D 00 F9 08 80 0D 02 02 05 00 A4 5B A0 D7 E7 00 00 E2 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:19]Read from MH i2c: E2 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 03 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [22:42:19]RAPDU: 90 00 [22:42:19]wFMCommunicate OK [22:42:19]wFMCommunicate request_size=4 [22:42:19]MH_SAM_APDU [22:42:19]CAPDU: 80 0D 03 02 [22:42:19]Write to MH i2c: E2 08 00 FA 08 80 0D 03 02 00 00 00 00 7D [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:19]Read from MH i2c: E2 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 0B 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 0B 00 FA 08 00 F8 4B 3B 1C 6C 38 21 B0 90 00 8D [22:42:19]RAPDU: F8 4B 3B 1C 6C 38 21 B0 90 00 [22:42:19]wFMCommunicate OK [22:42:19]SAM_PROTO_SignData done [22:42:19]FM_MakeSignedData done [22:42:19]CreateOFDProtocolMessage [22:42:19]wFMCommunicate request_size=4 [22:42:19]MH_SAM_APDU [22:42:19]CAPDU: 80 11 00 00 [22:42:19]Write to MH i2c: E2 08 00 FB 08 80 11 00 00 00 00 00 00 7D [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:19]Read from MH i2c: E2 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 17 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 17 00 FB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [22:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:42:19]wFMCommunicate OK [22:42:19]CreateOFDProtocolMessage done [22:42:19]OFDSenderStorePacket 139520 [22:42:19]StoreOFDPacket docnum=139520 [22:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 74 F7 07 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 4A CA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 21 02 00 35 04 06 00 53 A4 5B A0 D7 E7 F8 4B 3B 1C 6C 38 21 B0 [22:42:19]CheckFolder [22:42:19]dirname=/storage/ofd_packets [22:42:19]CheckFolder done [22:42:19]ProducePacketName [22:42:19]name=ofd_packets/00139520 [22:42:19]NVStorageSaveData ofd_packets/00139520 [22:42:19]File name is /storage/ofd_packets/00139520 [22:42:19]Write 301 bytes [22:42:19]NVStorageSaveData done [22:42:19]OFDSenderStorePacket done [22:42:19]KKMCreateOFDPacket done [22:42:19]NVStorageSaveData kkm_last_timestamp [22:42:19]File name is /storage/kkm_last_timestamp [22:42:19]Write 4 bytes [22:42:19]NVStorageSaveData done [22:42:19]ExternCall_PrintAddStr [22:42:19]wPrintStart [22:42:19]Write to MH i2c: 01 00 00 FC 08 04 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 07 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 07 00 FC 08 00 00 00 00 00 FF 0F 19 [22:42:19]RasterBufferAndPrint [22:42:19]line Счет N : (1)593363 [22:42:19]line ИНН: 02508201610067 [22:42:19]line Контрольно-Кассовый Чек [22:42:19]line ПРОДАЖА [22:42:19]line ТРК (МРК, ГНК) : 41 [22:42:19]line Товар: 2710124500 [22:42:19]line Аи-95-К-5 [22:42:19]line 6.740 * 74.20 [22:42:19]line = 500.11 [22:42:19]line НДС 12% НСП 1% [22:42:19]line > о реализуемом товаре [22:42:19]line ОКРУГЛЕНИЕ: -0.11 [22:42:19]line ИТОГО: 500.00 [22:42:19]line Внесено: 500.00 [22:42:19]line СДАЧА: 0.00 [22:42:19]line НСП 1% : 4.43 [22:42:19]line НДС 12% : 53.11 [22:42:19]line Наличными: 500.00 [22:42:19]line Безнал.: 0.00 [22:42:19]line Место: АЗС № 136 "Партнер Нефть" [22:42:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:42:19]line СНО: Общий режим [22:42:19]line Чек 355 19.08.2024 22:42 [22:42:19]line Смена: 452 ФФД: 1.0 [22:42:19]line ЗНМ: 0300000067 [22:42:19]line РНМ: 0000000000092569 [22:42:19]line Версия ККМ: 001 [22:42:19]line ФМ: 0000000000871776 [22:42:19]line ФД: 139520 [22:42:19]line ФПД: 91965377009639 [22:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T224218&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139520&fm=91965377009639&tin=02508201610067®Number=0000000000092569&sum=50000 [22:42:19]OFD Sender: Processing packet 139520 [packets to send 137, broken 136] [22:42:19]ProducePacketName [22:42:19]name=ofd_packets/00139520 [22:42:19]OFD Sender: To server: pG, [22:42:19]CommunicateWithHost lk.salyk.kg:30040 [22:42:19]ConnectInit lk.salyk.kg [22:42:19]written 0, free lines is 4095 [22:42:19]Connected sock=10 [22:42: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 37 36 0F 01 00 00 74 F7 07 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 4A CA C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 21 02 00 35 04 06 00 53 A4 5B A0 D7 E7 F8 4B 3B 1C 6C 38 21 B0 [22:42: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 37 36 4F 00 00 00 72 D3 47 00 49 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 21 02 00 F4 03 04 00 DF 70 C3 66 B6 04 01 00 00 AE 3B 58 89 83 72 9F 5A [22:42:19]CommunicateWithHost err = 0 [22:42:19]CheckOFDResponse [22:42:19]1017 (14) - 77093643461234 [22:42:19]1041 (16) - 0000000000871776 [22:42:19]1040 (4) - 139520 [22:42:19]1012 (4) - 19.08.2024 16:20 [22:42:19]1206 (1) - 0 [22:42:19]OFD Sender: Remove packet 139520 [22:42:19]ProducePacketName [22:42:19]name=ofd_packets/00139520 [22:42:19]NVStorageDeleteData [22:42:19]Write to MH i2c: 01 00 00 27 09 30 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 07 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 C6 0C 09 [22:42:19]RasterBufferAndPrint [22:42:19]line [22:42:19]line [22:42:19]line [22:42:19]line [22:42:19]line [22:42:19]written 0, free lines is 3276 [22:42:19]MH_Cut [22:42:19]Write to MH i2c: D1 01 00 2E 09 01 09 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: D1 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: D1 01 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: D1 01 00 2E 09 00 08 [22:42:19]Write to MH i2c: 01 00 00 2F 09 38 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:20]OFD Sender: No OFD packet to send [22:42:20]*** Cut start [22:42:20]*** Partial cut [22:42:20]*** CUTSNS_PIN = 1 [22:42:20]*** CUTSNS_PIN = 0 [22:42:20]*** Brake cut motor [22:42:21]Read from MH i2c: 01 [22:42:21]MH_I2C_Read... [22:42:21]*** Stop cut motor [22:42:21]*** Cut end [22:42:21]Read from MH i2c: 01 07 00 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: 01 07 00 2F 09 00 00 00 00 00 FF 0F 4D [22:42:21]process_action close_receipt done [22:42:21]requested_data is exist [22:42:21]produce_requested_data [22:42:21]requested_item fm.sn is exist - process it [22:42:21]wFMCommunicate request_size=4 [22:42:21]MH_SAM_APDU [22:42:21]CAPDU: 80 11 00 00 [22:42:21]Write to MH i2c: E2 08 00 30 09 80 11 00 00 00 00 00 00 B3 [22:42:21]Write i2c OK [22:42:21]MH_I2C_Read... [22:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:21]Read from MH i2c: E2 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 17 00 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 17 00 30 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [22:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:42:21]wFMCommunicate OK [22:42:21]requested_item fd.num is exist - process it [22:42:21]SAM_PROTO_GetFieldsCounters [22:42:21]wFMCommunicate request_size=4 [22:42:21]MH_SAM_APDU [22:42:21]CAPDU: 80 13 00 00 [22:42:21]Write to MH i2c: E2 08 00 31 09 80 13 00 00 00 00 00 00 B6 [22:42:21]Write i2c OK [22:42:21]MH_I2C_Read... [22:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:21]Read from MH i2c: E2 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 62 00 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 62 00 31 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [22:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:21]wFMCommunicate OK [22:42:21]SAM_PROTO_GetFieldsCounters done [22:42:21]requested_item shift.num is exist - process it [22:42:21]requested_item shift.opened is exist - process it [22:42:21]req_shift_opened [22:42:21]FM_GetShiftState [22:42:21]SAM_PROTO_GetShiftState [22:42:21]wFMCommunicate request_size=4 [22:42:21]MH_SAM_APDU [22:42:21]CAPDU: 80 13 01 00 [22:42:21]Write to MH i2c: E2 08 00 32 09 80 13 01 00 00 00 00 00 B8 [22:42:21]Write i2c OK [22:42:21]MH_I2C_Read... [22:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:21]Read from MH i2c: E2 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 0E 00 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 0E 00 32 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 6F [22:42:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:42:21]wFMCommunicate OK [22:42:21]SAM_PROTO_GetShiftState done [22:42:21]FM_GetShiftState done [22:42:21]req_shift_opened done [22:42:21]requested_item shift.open_date is exist - process it [22:42:21]req_shift_open_date [22:42:21]req_shift_open_date done [22:42:21]produce_requested_data done [22:42:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139520,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:42:21]process_action_free close_receipt [22:42:21]json_value_free [22:42:21]json_value_free done [22:42:21]process_json_proto returns [22:42:21]Send response to host [22:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139520,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:42:21]free response buf [22:42:21]execute_script done [22:42:21]execute_script returns [22:42:21]free content buf [22:42:21]Sock 9.Close socket [22:42:21]Sock 9.Thread stoped [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:17]accept exits with 7 [22:46:17]New connection [22:46:17]New thread 3067071844 created [22:46:17]Thread 3067215204 joined [22:46:17]Waiting for new connection... [22:46:17] Sock 7.Parse request [22:46:17]Sock 7.Check first char [22:46:17]Sock 7.First char is OK [22:46:17]request: POST /json_proto HTTP/1.0 [22:46:17]Method: POST [22:46:17]URL: /json_proto [22:46:17]Method is POST - this is cgi request [22:46:17]url: /json_proto [22:46:17]query_string will be loaded in cgi processing [22:46:17]execute_cgi json_proto POST (null) [22:46:17]execute_cgi path=json_proto method=POST [22:46:17]POST find Content-Length [22:46:17]Host: 172.17.45.67:8080 [22:46:17]Content-Length: 677 [22:46:17]Content-Type: application/json [22:46:17] [22:46:17]POST finish read [22:46:17]Found Content-Length = 677 [22:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:46:17]execute_script... [22: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)593364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:46:17]POST & json_proto [22:46:17]process_json_proto [22:46:17]json parsed OK: [22:46:17]protocol is kg_v1.0 [22:46:17]action value=close_receipt [22:46:17]process_action close_receipt [22:46:17]cmd_close_receipt [22:46:17]MH_GetDate [22:46:17]Write to MH i2c: F0 00 00 33 09 2B [22:46:17]Write i2c OK [22:46:17]MH_I2C_Read... [22:46:17]Read from MH i2c: F0 [22:46:17]MH_I2C_Read... [22:46:17]Read from MH i2c: F0 09 00 [22:46:17]MH_I2C_Read... [22:46:17]Read from MH i2c: F0 09 00 33 09 00 3A CB C3 66 5F 7F 2B 66 D1 [22:46:17]GetLastDocTimeStamp 1724107338 [22:46:17]current date 1724107578 [22:46:17]FM_GetShiftState [22:46:17]SAM_PROTO_GetShiftState [22:46:17]wFMCommunicate request_size=4 [22:46:17]MH_SAM_APDU [22:46:17]CAPDU: 80 13 01 00 [22:46:17]Write to MH i2c: E2 08 00 34 09 80 13 01 00 00 00 00 00 BA [22:46:17]Write i2c OK [22:46:17]MH_I2C_Read... [22:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:17]Read from MH i2c: E2 [22:46:17]MH_I2C_Read... [22:46:17]Read from MH i2c: E2 0E 00 [22:46:17]MH_I2C_Read... [22:46:17]Read from MH i2c: E2 0E 00 34 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 71 [22:46:17]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:46:17]wFMCommunicate OK [22:46:17]SAM_PROTO_GetShiftState done [22:46:17]FM_GetShiftState done [22:46:17]opened in 1724027888 [22:46:17]opened+sec_in_day 1724114288 [22:46:17]quantity*price = 50036 [22:46:17]sum+1 = 50037 [22:46:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 356 19.08.2024 22:46 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139521 ФПД: 279179764680511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T224618&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139521&fm=279179764680511&tin=02508201610067®Number=0000000000092569&sum=50000 [22:46:18]StoreToDocumentArchive [22:46:18]shift 452 fd 139521 [22:46:18]save to /storage/0452/doc_00139521 [22:46:18]save last doc name /storage/0452/doc_00139521 to /storage/kkm_last_doc_name [22:46:18]save OK [22:46:18]Clear old archive folders... [22:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:18]tlvbuf is 00D549A0 [22:46:18]SAM_PROTO_ClearQueue [22:46:18]wFMCommunicate request_size=4 [22:46:18]MH_SAM_APDU [22:46:18]CAPDU: 80 09 00 00 [22:46:18]Write to MH i2c: E2 08 00 41 09 80 09 00 00 00 00 00 00 BC [22:46:18]Write i2c OK [22:46:18]MH_I2C_Read... [22:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:18]Read from MH i2c: E2 [22:46:18]MH_I2C_Read... [22:46:18]Read from MH i2c: E2 03 00 [22:46:18]MH_I2C_Read... [22:46:18]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [22:46:18]RAPDU: 90 00 [22:46:18]wFMCommunicate OK [22:46:18]SAM_PROTO_ClearQueue done [22:46:18]KKMCreateOFDPacket [22:46:18]OFDProtocolAddRootSTLVToBuf [22:46:18]FM_MakeSignedData [22:46:18]FM_MakeSignedData [22:46:18]SAM_PROTO_SignData [22:46:18]wFMCommunicate request_size=4 [22:46:18]MH_SAM_APDU [22:46:18]CAPDU: 80 0D 01 02 [22:46:18]Write to MH i2c: E2 08 00 42 09 80 0D 01 02 00 00 00 00 C4 [22:46:18]Write i2c OK [22:46:18]MH_I2C_Read... [22:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:18]Read from MH i2c: E2 [22:46:18]MH_I2C_Read... [22:46:18]Read from MH i2c: E2 03 00 [22:46:18]MH_I2C_Read... [22:46:18]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [22:46:18]RAPDU: 90 00 [22:46:18]wFMCommunicate OK [22:46:18]wFMCommunicate request_size=255 [22:46:18]MH_SAM_APDU [22: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 01 00 00 F4 03 04 00 3A CB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 21 02 00 35 04 06 00 FD [22:46:18]Write to MH i2c: E2 02 01 43 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 01 00 00 F4 03 04 00 3A CB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 21 02 00 35 04 06 00 FD 00 00 C6 [22:46:18]Write i2c OK [22:46:18]MH_I2C_Read... [22:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:19]Read from MH i2c: E2 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: E2 03 00 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [22:46:19]RAPDU: 90 00 [22:46:19]wFMCommunicate OK [22:46:19]wFMCommunicate request_size=10 [22:46:19]MH_SAM_APDU [22:46:19]CAPDU: 80 0D 02 02 05 E9 9A B3 C7 3F [22:46:19]Write to MH i2c: E2 0D 00 44 09 80 0D 02 02 05 00 E9 9A B3 C7 3F 00 00 0D [22:46:19]Write i2c OK [22:46:19]MH_I2C_Read... [22:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:19]Read from MH i2c: E2 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: E2 03 00 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [22:46:19]RAPDU: 90 00 [22:46:19]wFMCommunicate OK [22:46:19]wFMCommunicate request_size=4 [22:46:19]MH_SAM_APDU [22:46:19]CAPDU: 80 0D 03 02 [22:46:19]Write to MH i2c: E2 08 00 45 09 80 0D 03 02 00 00 00 00 C9 [22:46:19]Write i2c OK [22:46:19]MH_I2C_Read... [22:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:19]Read from MH i2c: E2 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: E2 0B 00 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: E2 0B 00 45 09 00 B9 10 C8 A0 7D 06 3D 7E 90 00 39 [22:46:19]RAPDU: B9 10 C8 A0 7D 06 3D 7E 90 00 [22:46:19]wFMCommunicate OK [22:46:19]SAM_PROTO_SignData done [22:46:19]FM_MakeSignedData done [22:46:19]CreateOFDProtocolMessage [22:46:19]wFMCommunicate request_size=4 [22:46:19]MH_SAM_APDU [22:46:19]CAPDU: 80 11 00 00 [22:46:19]Write to MH i2c: E2 08 00 46 09 80 11 00 00 00 00 00 00 C9 [22:46:19]Write i2c OK [22:46:19]MH_I2C_Read... [22:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:19]Read from MH i2c: E2 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: E2 17 00 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: E2 17 00 46 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 20 [22:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:46:19]wFMCommunicate OK [22:46:19]CreateOFDProtocolMessage done [22:46:19]OFDSenderStorePacket 139521 [22:46:19]StoreOFDPacket docnum=139521 [22:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 35 1C 07 01 FF E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 01 00 00 F4 03 04 00 3A CB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 21 02 00 35 04 06 00 FD E9 9A B3 C7 3F B9 10 C8 A0 7D 06 3D 7E [22:46:19]CheckFolder [22:46:19]dirname=/storage/ofd_packets [22:46:19]CheckFolder done [22:46:19]ProducePacketName [22:46:19]name=ofd_packets/00139521 [22:46:19]NVStorageSaveData ofd_packets/00139521 [22:46:19]File name is /storage/ofd_packets/00139521 [22:46:19]Write 301 bytes [22:46:19]NVStorageSaveData done [22:46:19]OFDSenderStorePacket done [22:46:19]KKMCreateOFDPacket done [22:46:19]NVStorageSaveData kkm_last_timestamp [22:46:19]File name is /storage/kkm_last_timestamp [22:46:19]Write 4 bytes [22:46:19]NVStorageSaveData done [22:46:19]ExternCall_PrintAddStr [22:46:19]wPrintStart [22:46:19]Write to MH i2c: 01 00 00 47 09 50 [22:46:19]Write i2c OK [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: 01 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: 01 07 00 [22:46:19]MH_I2C_Read... [22:46:19]Read from MH i2c: 01 07 00 47 09 00 00 00 00 00 FF 0F 65 [22:46:19]RasterBufferAndPrint [22:46:19]line Счет N : (1)593364 [22:46:19]line ИНН: 02508201610067 [22:46:19]line Контрольно-Кассовый Чек [22:46:19]line ПРОДАЖА [22:46:19]line ТРК (МРК, ГНК) : 52 [22:46:19]line Товар: 2710124130 [22:46:19]line Аи-92-К-5 [22:46:19]line 7.380 * 67.80 [22:46:19]line = 500.36 [22:46:19]line НДС 12% НСП 1% [22:46:19]line > о реализуемом товаре [22:46:19]line ОКРУГЛЕНИЕ: -0.36 [22:46:19]line ИТОГО: 500.00 [22:46:19]line Внесено: 500.00 [22:46:19]line СДАЧА: 0.00 [22:46:19]line НСП 1% : 4.43 [22:46:19]line НДС 12% : 53.14 [22:46:19]line Наличными: 500.00 [22:46:19]line Безнал.: 0.00 [22:46:19]line Место: АЗС № 136 "Партнер Нефть" [22:46:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:46:19]line СНО: Общий режим [22:46:19]line Чек 356 19.08.2024 22:46 [22:46:19]line Смена: 452 ФФД: 1.0 [22:46:19]line ЗНМ: 0300000067 [22:46:19]line РНМ: 0000000000092569 [22:46:19]line Версия ККМ: 001 [22:46:19]line ФМ: 0000000000871776 [22:46:19]line ФД: 139521 [22:46:19]line ФПД: 279179764680511 [22:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T224618&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139521&fm=279179764680511&tin=02508201610067®Number=0000000000092569&sum=50000 [22:46:19]OFD Sender: Processing packet 139521 [packets to send 137, broken 136] [22:46:19]ProducePacketName [22:46:19]name=ofd_packets/00139521 [22:46:19]OFD Sender: To server: pG, [22:46:19]CommunicateWithHost lk.salyk.kg:30040 [22:46:19]ConnectInit lk.salyk.kg [22:46:19]written 0, free lines is 4095 [22:46:19]Connected sock=10 [22: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 37 36 0F 01 00 00 35 1C 07 01 FF E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 01 00 00 F4 03 04 00 3A CB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 21 02 00 35 04 06 00 FD E9 9A B3 C7 3F B9 10 C8 A0 7D 06 3D 7E [22:46:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EB 0D 47 00 E1 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 37 36 10 04 04 00 01 21 02 00 F4 03 04 00 CF 71 C3 66 B6 04 01 00 00 C7 F5 82 67 F6 28 E7 9E [22:46:20]CommunicateWithHost err = 0 [22:46:20]CheckOFDResponse [22:46:20]1017 (14) - 77093643461234 [22:46:20]1041 (16) - 0000000000871776 [22:46:20]1040 (4) - 139521 [22:46:20]1012 (4) - 19.08.2024 16:24 [22:46:20]1206 (1) - 0 [22:46:20]OFD Sender: Remove packet 139521 [22:46:20]ProducePacketName [22:46:20]name=ofd_packets/00139521 [22:46:20]NVStorageDeleteData [22:46:20]Write to MH i2c: 01 00 00 72 09 7B [22:46:20]Write i2c OK [22:46:20]MH_I2C_Read... [22:46:20]Read from MH i2c: 01 [22:46:20]MH_I2C_Read... [22:46:20]Read from MH i2c: 01 07 00 [22:46:20]MH_I2C_Read... [22:46:20]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 BF 0C 4D [22:46:20]RasterBufferAndPrint [22:46:20]line [22:46:20]line [22:46:20]line [22:46:20]line [22:46:20]line [22:46:20]written 0, free lines is 3269 [22:46:20]MH_Cut [22:46:20]Write to MH i2c: D1 01 00 79 09 01 54 [22:46:20]Write i2c OK [22:46:20]MH_I2C_Read... [22:46:20]Read from MH i2c: D1 [22:46:20]MH_I2C_Read... [22:46:20]Read from MH i2c: D1 01 00 [22:46:20]MH_I2C_Read... [22:46:20]Read from MH i2c: D1 01 00 79 09 00 53 [22:46:20]Write to MH i2c: 01 00 00 7A 09 83 [22:46:20]Write i2c OK [22:46:20]MH_I2C_Read... [22:46:20]OFD Sender: No OFD packet to send [22:46:20]*** Cut start [22:46:20]*** Partial cut [22:46:20]*** CUTSNS_PIN = 1 [22:46:20]*** CUTSNS_PIN = 0 [22:46:21]*** Brake cut motor [22:46:21]Read from MH i2c: 01 [22:46:21]MH_I2C_Read... [22:46:21]*** Stop cut motor [22:46:21]*** Cut end [22:46:21]Read from MH i2c: 01 07 00 [22:46:21]MH_I2C_Read... [22:46:21]Read from MH i2c: 01 07 00 7A 09 00 00 00 00 00 FF 0F 98 [22:46:21]process_action close_receipt done [22:46:21]requested_data is exist [22:46:21]produce_requested_data [22:46:21]requested_item fm.sn is exist - process it [22:46:21]wFMCommunicate request_size=4 [22:46:21]MH_SAM_APDU [22:46:21]CAPDU: 80 11 00 00 [22:46:21]Write to MH i2c: E2 08 00 7B 09 80 11 00 00 00 00 00 00 FE [22:46:21]Write i2c OK [22:46:21]MH_I2C_Read... [22:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:21]Read from MH i2c: E2 [22:46:21]MH_I2C_Read... [22:46:21]Read from MH i2c: E2 17 00 [22:46:21]MH_I2C_Read... [22:46:21]Read from MH i2c: E2 17 00 7B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [22:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:46:21]wFMCommunicate OK [22:46:21]requested_item fd.num is exist - process it [22:46:21]SAM_PROTO_GetFieldsCounters [22:46:21]wFMCommunicate request_size=4 [22:46:21]MH_SAM_APDU [22:46:21]CAPDU: 80 13 00 00 [22:46:21]Write to MH i2c: E2 08 00 7C 09 80 13 00 00 00 00 00 00 01 [22:46:21]Write i2c OK [22:46:21]MH_I2C_Read... [22:46:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:21]Read from MH i2c: E2 [22:46:21]MH_I2C_Read... [22:46:21]Read from MH i2c: E2 62 00 [22:46:21]MH_I2C_Read... [22:46:21]Read from MH i2c: E2 62 00 7C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [22:46: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:21]wFMCommunicate OK [22:46:21]SAM_PROTO_GetFieldsCounters done [22:46:21]requested_item shift.num is exist - process it [22:46:21]requested_item shift.opened is exist - process it [22:46:21]req_shift_opened [22:46:21]FM_GetShiftState [22:46:21]SAM_PROTO_GetShiftState [22:46:21]wFMCommunicate request_size=4 [22:46:21]MH_SAM_APDU [22:46:21]CAPDU: 80 13 01 00 [22:46:21]Write to MH i2c: E2 08 00 7D 09 80 13 01 00 00 00 00 00 03 [22:46:21]Write i2c OK [22:46:21]MH_I2C_Read... [22:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:21]Read from MH i2c: E2 [22:46:21]MH_I2C_Read... [22:46:21]Read from MH i2c: E2 0E 00 [22:46:21]MH_I2C_Read... [22:46:21]Read from MH i2c: E2 0E 00 7D 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BA [22:46:21]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:46:21]wFMCommunicate OK [22:46:21]SAM_PROTO_GetShiftState done [22:46:21]FM_GetShiftState done [22:46:21]req_shift_opened done [22:46:21]requested_item shift.open_date is exist - process it [22:46:21]req_shift_open_date [22:46:21]req_shift_open_date done [22:46:21]produce_requested_data done [22:46:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139521,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:46:21]process_action_free close_receipt [22:46:21]json_value_free [22:46:21]json_value_free done [22:46:21]process_json_proto returns [22:46:21]Send response to host [22:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139521,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:46:21]free response buf [22:46:21]execute_script done [22:46:21]execute_script returns [22:46:21]free content buf [22:46:21]Sock 7.Close socket [22:46:21]Sock 7.Thread stoped [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:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]accept exits with 9 [22:47:45]New connection [22:47:45]New thread 3067215204 created [22:47:45]Thread 3067071844 joined [22:47:45]Waiting for new connection... [22:47:45] Sock 9.Parse request [22:47:45]Sock 9.Check first char [22:47:45]Sock 9.First char is OK [22:47:45]request: POST /json_proto HTTP/1.0 [22:47:45]Method: POST [22:47:45]URL: /json_proto [22:47:45]Method is POST - this is cgi request [22:47:45]url: /json_proto [22:47:45]query_string will be loaded in cgi processing [22:47:45]execute_cgi json_proto POST (null) [22:47:45]execute_cgi path=json_proto method=POST [22:47:45]POST find Content-Length [22:47:45]Host: 172.17.45.67:8080 [22:47:45]Content-Length: 677 [22:47:45]Content-Type: application/json [22:47:45] [22:47:45]POST finish read [22:47:45]Found Content-Length = 677 [22:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:45]execute_script... [22:47: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)593365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:45]POST & json_proto [22:47:45]process_json_proto [22:47:45]json parsed OK: [22:47:45]protocol is kg_v1.0 [22:47:45]action value=close_receipt [22:47:45]process_action close_receipt [22:47:45]cmd_close_receipt [22:47:45]MH_GetDate [22:47:45]Write to MH i2c: F0 00 00 7E 09 76 [22:47:45]Write i2c OK [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: F0 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: F0 09 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: F0 09 00 7E 09 00 91 CB C3 66 5F 7F 2B 66 73 [22:47:45]GetLastDocTimeStamp 1724107578 [22:47:45]current date 1724107665 [22:47:45]FM_GetShiftState [22:47:45]SAM_PROTO_GetShiftState [22:47:45]wFMCommunicate request_size=4 [22:47:45]MH_SAM_APDU [22:47:45]CAPDU: 80 13 01 00 [22:47:45]Write to MH i2c: E2 08 00 7F 09 80 13 01 00 00 00 00 00 05 [22:47:45]Write i2c OK [22:47:45]MH_I2C_Read... [22:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:45]Read from MH i2c: E2 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 0E 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 0E 00 7F 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 BC [22:47:45]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:47:45]wFMCommunicate OK [22:47:45]SAM_PROTO_GetShiftState done [22:47:45]FM_GetShiftState done [22:47:45]opened in 1724027888 [22:47:45]opened+sec_in_day 1724114288 [22:47:45]quantity*price = 50036 [22:47:45]sum+1 = 50037 [22:47:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 357 19.08.2024 22:47 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139522 ФПД: 213242036297118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T224745&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139522&fm=213242036297118&tin=02508201610067®Number=0000000000092569&sum=50000 [22:47:46]StoreToDocumentArchive [22:47:46]shift 452 fd 139522 [22:47:46]save to /storage/0452/doc_00139522 [22:47:46]save last doc name /storage/0452/doc_00139522 to /storage/kkm_last_doc_name [22:47:46]save OK [22:47:46]Clear old archive folders... [22:47:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:46]tlvbuf is 00D56260 [22:47:46]SAM_PROTO_ClearQueue [22:47:46]wFMCommunicate request_size=4 [22:47:46]MH_SAM_APDU [22:47:46]CAPDU: 80 09 00 00 [22:47:46]Write to MH i2c: E2 08 00 8C 09 80 09 00 00 00 00 00 00 07 [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:46]Read from MH i2c: E2 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 03 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [22:47:46]RAPDU: 90 00 [22:47:46]wFMCommunicate OK [22:47:46]SAM_PROTO_ClearQueue done [22:47:46]KKMCreateOFDPacket [22:47:46]OFDProtocolAddRootSTLVToBuf [22:47:46]FM_MakeSignedData [22:47:46]FM_MakeSignedData [22:47:46]SAM_PROTO_SignData [22:47:46]wFMCommunicate request_size=4 [22:47:46]MH_SAM_APDU [22:47:46]CAPDU: 80 0D 01 02 [22:47:46]Write to MH i2c: E2 08 00 8D 09 80 0D 01 02 00 00 00 00 0F [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:46]Read from MH i2c: E2 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 03 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [22:47:46]RAPDU: 90 00 [22:47:46]wFMCommunicate OK [22:47:46]wFMCommunicate request_size=255 [22:47:46]MH_SAM_APDU [22:47: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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 65 01 00 00 F4 03 04 00 91 CB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 21 02 00 35 04 06 00 C1 [22:47:46]Write to MH i2c: E2 02 01 8E 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 65 01 00 00 F4 03 04 00 91 CB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 21 02 00 35 04 06 00 C1 00 00 2E [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:46]Read from MH i2c: E2 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 03 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [22:47:46]RAPDU: 90 00 [22:47:46]wFMCommunicate OK [22:47:46]wFMCommunicate request_size=10 [22:47:46]MH_SAM_APDU [22:47:46]CAPDU: 80 0D 02 02 05 F1 47 D3 1D 9E [22:47:46]Write to MH i2c: E2 0D 00 8F 09 80 0D 02 02 05 00 F1 47 D3 1D 9E 00 00 E2 [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:46]Read from MH i2c: E2 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 03 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [22:47:46]RAPDU: 90 00 [22:47:46]wFMCommunicate OK [22:47:46]wFMCommunicate request_size=4 [22:47:46]MH_SAM_APDU [22:47:46]CAPDU: 80 0D 03 02 [22:47:46]Write to MH i2c: E2 08 00 90 09 80 0D 03 02 00 00 00 00 14 [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:46]Read from MH i2c: E2 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 0B 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 0B 00 90 09 00 23 9E 2A CA F5 45 06 E4 90 00 EE [22:47:46]RAPDU: 23 9E 2A CA F5 45 06 E4 90 00 [22:47:46]wFMCommunicate OK [22:47:46]SAM_PROTO_SignData done [22:47:46]FM_MakeSignedData done [22:47:46]CreateOFDProtocolMessage [22:47:46]wFMCommunicate request_size=4 [22:47:46]MH_SAM_APDU [22:47:46]CAPDU: 80 11 00 00 [22:47:46]Write to MH i2c: E2 08 00 91 09 80 11 00 00 00 00 00 00 14 [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:46]Read from MH i2c: E2 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 17 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: E2 17 00 91 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6B [22:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:47:46]wFMCommunicate OK [22:47:46]CreateOFDProtocolMessage done [22:47:46]OFDSenderStorePacket 139522 [22:47:46]StoreOFDPacket docnum=139522 [22:47:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8F 44 07 01 7B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 65 01 00 00 F4 03 04 00 91 CB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 21 02 00 35 04 06 00 C1 F1 47 D3 1D 9E 23 9E 2A CA F5 45 06 E4 [22:47:46]CheckFolder [22:47:46]dirname=/storage/ofd_packets [22:47:46]CheckFolder done [22:47:46]ProducePacketName [22:47:46]name=ofd_packets/00139522 [22:47:46]NVStorageSaveData ofd_packets/00139522 [22:47:46]File name is /storage/ofd_packets/00139522 [22:47:46]Write 301 bytes [22:47:46]NVStorageSaveData done [22:47:46]OFDSenderStorePacket done [22:47:46]KKMCreateOFDPacket done [22:47:46]NVStorageSaveData kkm_last_timestamp [22:47:46]File name is /storage/kkm_last_timestamp [22:47:46]Write 4 bytes [22:47:46]NVStorageSaveData done [22:47:46]ExternCall_PrintAddStr [22:47:46]wPrintStart [22:47:46]Write to MH i2c: 01 00 00 92 09 9B [22:47:46]Write i2c OK [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 07 00 [22:47:46]MH_I2C_Read... [22:47:46]Read from MH i2c: 01 07 00 92 09 00 00 00 00 00 FF 0F B0 [22:47:46]RasterBufferAndPrint [22:47:46]line Счет N : (1)593365 [22:47:46]line ИНН: 02508201610067 [22:47:46]line Контрольно-Кассовый Чек [22:47:46]line ПРОДАЖА [22:47:46]line ТРК (МРК, ГНК) : 42 [22:47:46]line Товар: 2710124130 [22:47:46]line Аи-92-К-5 [22:47:46]line 7.380 * 67.80 [22:47:46]line = 500.36 [22:47:46]line НДС 12% НСП 1% [22:47:46]line > о реализуемом товаре [22:47:46]line ОКРУГЛЕНИЕ: -0.36 [22:47:46]line ИТОГО: 500.00 [22:47:46]line Внесено: 500.00 [22:47:46]line СДАЧА: 0.00 [22:47:46]line НСП 1% : 4.43 [22:47:46]line НДС 12% : 53.14 [22:47:46]line Наличными: 500.00 [22:47:46]line Безнал.: 0.00 [22:47:46]line Место: АЗС № 136 "Партнер Нефть" [22:47:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:47:46]line СНО: Общий режим [22:47:46]line Чек 357 19.08.2024 22:47 [22:47:46]line Смена: 452 ФФД: 1.0 [22:47:46]line ЗНМ: 0300000067 [22:47:46]line РНМ: 0000000000092569 [22:47:46]line Версия ККМ: 001 [22:47:46]line ФМ: 0000000000871776 [22:47:46]line ФД: 139522 [22:47:46]line ФПД: 213242036297118 [22:47:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T224745&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139522&fm=213242036297118&tin=02508201610067®Number=0000000000092569&sum=50000 [22:47:47]OFD Sender: Processing packet 139522 [packets to send 137, broken 136] [22:47:47]ProducePacketName [22:47:47]name=ofd_packets/00139522 [22:47:47]OFD Sender: To server: pG, [22:47:47]CommunicateWithHost lk.salyk.kg:30040 [22:47:47]ConnectInit lk.salyk.kg [22:47:47]written 0, free lines is 4095 [22:47:47]Connected sock=10 [22:47: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 37 36 0F 01 00 00 8F 44 07 01 7B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 65 01 00 00 F4 03 04 00 91 CB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 21 02 00 35 04 06 00 C1 F1 47 D3 1D 9E 23 9E 2A CA F5 45 06 E4 [22:47: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 37 36 4F 00 00 00 E2 02 47 00 35 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 21 02 00 F4 03 04 00 26 72 C3 66 B6 04 01 00 00 1E 43 DE 64 28 44 02 8A [22:47:47]CommunicateWithHost err = 0 [22:47:47]CheckOFDResponse [22:47:47]1017 (14) - 77093643461234 [22:47:47]1041 (16) - 0000000000871776 [22:47:47]1040 (4) - 139522 [22:47:47]1012 (4) - 19.08.2024 16:26 [22:47:47]1206 (1) - 0 [22:47:47]OFD Sender: Remove packet 139522 [22:47:47]ProducePacketName [22:47:47]name=ofd_packets/00139522 [22:47:47]NVStorageDeleteData [22:47:47]Write to MH i2c: 01 00 00 BD 09 C6 [22:47:47]Write i2c OK [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 07 00 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 07 00 BD 09 00 00 00 00 00 D0 0C A9 [22:47:47]RasterBufferAndPrint [22:47:47]line [22:47:47]line [22:47:47]line [22:47:47]line [22:47:47]line [22:47:47]written 0, free lines is 3287 [22:47:47]MH_Cut [22:47:47]Write to MH i2c: D1 01 00 C4 09 01 9F [22:47:47]Write i2c OK [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: D1 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: D1 01 00 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: D1 01 00 C4 09 00 9E [22:47:47]Write to MH i2c: 01 00 00 C5 09 CE [22:47:47]Write i2c OK [22:47:47]MH_I2C_Read... [22:47:47]OFD Sender: No OFD packet to send [22:47:48]*** Cut start [22:47:48]*** Partial cut [22:47:48]*** CUTSNS_PIN = 1 [22:47:48]*** CUTSNS_PIN = 0 [22:47:48]*** Brake cut motor [22:47:48]Read from MH i2c: 01 [22:47:48]MH_I2C_Read... [22:47:48]*** Stop cut motor [22:47:48]*** Cut end [22:47:48]Read from MH i2c: 01 07 00 [22:47:48]MH_I2C_Read... [22:47:48]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 FF 0F E3 [22:47:48]process_action close_receipt done [22:47:48]requested_data is exist [22:47:48]produce_requested_data [22:47:48]requested_item fm.sn is exist - process it [22:47:48]wFMCommunicate request_size=4 [22:47:48]MH_SAM_APDU [22:47:48]CAPDU: 80 11 00 00 [22:47:48]Write to MH i2c: E2 08 00 C6 09 80 11 00 00 00 00 00 00 49 [22:47:48]Write i2c OK [22:47:48]MH_I2C_Read... [22:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:48]Read from MH i2c: E2 [22:47:48]MH_I2C_Read... [22:47:48]Read from MH i2c: E2 17 00 [22:47:48]MH_I2C_Read... [22:47:48]Read from MH i2c: E2 17 00 C6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [22:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:47:48]wFMCommunicate OK [22:47:48]requested_item fd.num is exist - process it [22:47:48]SAM_PROTO_GetFieldsCounters [22:47:48]wFMCommunicate request_size=4 [22:47:48]MH_SAM_APDU [22:47:48]CAPDU: 80 13 00 00 [22:47:48]Write to MH i2c: E2 08 00 C7 09 80 13 00 00 00 00 00 00 4C [22:47:48]Write i2c OK [22:47:48]MH_I2C_Read... [22:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:48]Read from MH i2c: E2 [22:47:48]MH_I2C_Read... [22:47:48]Read from MH i2c: E2 62 00 [22:47:48]MH_I2C_Read... [22:47:48]Read from MH i2c: E2 62 00 C7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [22:47: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:49]wFMCommunicate OK [22:47:49]SAM_PROTO_GetFieldsCounters done [22:47:49]requested_item shift.num is exist - process it [22:47:49]requested_item shift.opened is exist - process it [22:47:49]req_shift_opened [22:47:49]FM_GetShiftState [22:47:49]SAM_PROTO_GetShiftState [22:47:49]wFMCommunicate request_size=4 [22:47:49]MH_SAM_APDU [22:47:49]CAPDU: 80 13 01 00 [22:47:49]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [22:47:49]Write i2c OK [22:47:49]MH_I2C_Read... [22:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:49]Read from MH i2c: E2 [22:47:49]MH_I2C_Read... [22:47:49]Read from MH i2c: E2 0E 00 [22:47:49]MH_I2C_Read... [22:47:49]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 05 [22:47:49]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:47:49]wFMCommunicate OK [22:47:49]SAM_PROTO_GetShiftState done [22:47:49]FM_GetShiftState done [22:47:49]req_shift_opened done [22:47:49]requested_item shift.open_date is exist - process it [22:47:49]req_shift_open_date [22:47:49]req_shift_open_date done [22:47:49]produce_requested_data done [22:47:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139522,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:47:49]process_action_free close_receipt [22:47:49]json_value_free [22:47:49]json_value_free done [22:47:49]process_json_proto returns [22:47:49]Send response to host [22:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139522,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:47:49]free response buf [22:47:49]execute_script done [22:47:49]execute_script returns [22:47:49]free content buf [22:47:49]Sock 9.Close socket [22:47:49]Sock 9.Thread stoped [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:08]accept exits with 7 [22:57:08]New connection [22:57:08]New thread 3067071844 created [22:57:08]Thread 3067215204 joined [22:57:08]Waiting for new connection... [22:57:08] Sock 7.Parse request [22:57:08]Sock 7.Check first char [22:57:08]Sock 7.First char is OK [22:57:08]request: POST /json_proto HTTP/1.0 [22:57:08]Method: POST [22:57:08]URL: /json_proto [22:57:08]Method is POST - this is cgi request [22:57:08]url: /json_proto [22:57:08]query_string will be loaded in cgi processing [22:57:08]execute_cgi json_proto POST (null) [22:57:08]execute_cgi path=json_proto method=POST [22:57:08]POST find Content-Length [22:57:08]Host: 172.17.45.67:8080 [22:57:08]Content-Length: 819 [22:57:08]Content-Type: application/json [22:57:08] [22:57:08]POST finish read [22:57:08]Found Content-Length = 819 [22:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 21.810, "sum" : 1500.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:08]execute_script... [22:57: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)593366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 21.810, "sum" : 1500.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:08]POST & json_proto [22:57:08]process_json_proto [22:57:08]json parsed OK: [22:57:08]protocol is kg_v1.0 [22:57:08]action value=close_receipt [22:57:08]process_action close_receipt [22:57:08]cmd_close_receipt [22:57:08]MH_GetDate [22:57:08]Write to MH i2c: F0 00 00 C9 09 C1 [22:57:08]Write i2c OK [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: F0 [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: F0 09 00 [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: F0 09 00 C9 09 00 C5 CD C3 66 5F 7F 2B 66 F4 [22:57:08]GetLastDocTimeStamp 1724107665 [22:57:08]current date 1724108229 [22:57:08]FM_GetShiftState [22:57:08]SAM_PROTO_GetShiftState [22:57:08]wFMCommunicate request_size=4 [22:57:08]MH_SAM_APDU [22:57:08]CAPDU: 80 13 01 00 [22:57:08]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [22:57:08]Write i2c OK [22:57:08]MH_I2C_Read... [22:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:08]Read from MH i2c: E2 [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: E2 0E 00 [22:57:08]MH_I2C_Read... [22:57:08]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 07 [22:57:08]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:57:08]wFMCommunicate OK [22:57:08]SAM_PROTO_GetShiftState done [22:57:08]FM_GetShiftState done [22:57:08]opened in 1724027888 [22:57:08]opened+sec_in_day 1724114288 [22:57:08]quantity*price = 150052 [22:57:08]sum+1 = 150054 [22:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 358 19.08.2024 22:57 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139523 ФПД: 154421840337073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T225709&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139523&fm=154421840337073&tin=02508201610067®Number=0000000000092569&sum=150000 [22:57:10]StoreToDocumentArchive [22:57:10]shift 452 fd 139523 [22:57:10]save to /storage/0452/doc_00139523 [22:57:10]save last doc name /storage/0452/doc_00139523 to /storage/kkm_last_doc_name [22:57:10]save OK [22:57:10]Clear old archive folders... [22:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:57:10]tlvbuf is 00D36B30 [22:57:10]SAM_PROTO_ClearQueue [22:57:10]wFMCommunicate request_size=4 [22:57:10]MH_SAM_APDU [22:57:10]CAPDU: 80 09 00 00 [22:57:10]Write to MH i2c: E2 08 00 D7 09 80 09 00 00 00 00 00 00 52 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:10]Read from MH i2c: E2 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [22:57:10]RAPDU: 90 00 [22:57:10]wFMCommunicate OK [22:57:10]SAM_PROTO_ClearQueue done [22:57:10]KKMCreateOFDPacket [22:57:10]OFDProtocolAddRootSTLVToBuf [22:57:10]FM_MakeSignedData [22:57:10]FM_MakeSignedData [22:57:10]SAM_PROTO_SignData [22:57:10]wFMCommunicate request_size=4 [22:57:10]MH_SAM_APDU [22:57:10]CAPDU: 80 0D 01 02 [22:57:10]Write to MH i2c: E2 08 00 D8 09 80 0D 01 02 00 00 00 00 5A [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:10]Read from MH i2c: E2 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [22:57:10]RAPDU: 90 00 [22:57:10]wFMCommunicate OK [22:57:10]wFMCommunicate request_size=253 [22:57:10]MH_SAM_APDU [22:57:10]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 25 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 C5 CD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 21 02 00 35 04 06 00 8C 72 22 F0 58 B1 [22:57:10]Write to MH i2c: E2 00 01 D9 09 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 25 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 C5 CD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 21 02 00 35 04 06 00 8C 72 22 F0 58 B1 00 00 5C [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:10]Read from MH i2c: E2 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [22:57:10]RAPDU: 90 00 [22:57:10]wFMCommunicate OK [22:57:10]wFMCommunicate request_size=4 [22:57:10]MH_SAM_APDU [22:57:10]CAPDU: 80 0D 03 02 [22:57:10]Write to MH i2c: E2 08 00 DA 09 80 0D 03 02 00 00 00 00 5E [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:10]Read from MH i2c: E2 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 0B 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 0B 00 DA 09 00 8B E7 DE C6 EA A6 3B F4 90 00 34 [22:57:10]RAPDU: 8B E7 DE C6 EA A6 3B F4 90 00 [22:57:10]wFMCommunicate OK [22:57:10]SAM_PROTO_SignData done [22:57:10]FM_MakeSignedData done [22:57:10]CreateOFDProtocolMessage [22:57:10]wFMCommunicate request_size=4 [22:57:10]MH_SAM_APDU [22:57:10]CAPDU: 80 11 00 00 [22:57:10]Write to MH i2c: E2 08 00 DB 09 80 11 00 00 00 00 00 00 5E [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:10]Read from MH i2c: E2 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 17 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 17 00 DB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [22:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:57:10]wFMCommunicate OK [22:57:10]CreateOFDProtocolMessage done [22:57:10]OFDSenderStorePacket 139523 [22:57:10]StoreOFDPacket docnum=139523 [22:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 81 BB 00 01 17 C3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 25 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 C5 CD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 21 02 00 35 04 06 00 8C 72 22 F0 58 B1 8B E7 DE C6 EA A6 3B F4 [22:57:10]CheckFolder [22:57:10]dirname=/storage/ofd_packets [22:57:10]CheckFolder done [22:57:10]ProducePacketName [22:57:10]name=ofd_packets/00139523 [22:57:10]NVStorageSaveData ofd_packets/00139523 [22:57:10]File name is /storage/ofd_packets/00139523 [22:57:10]Write 294 bytes [22:57:10]NVStorageSaveData done [22:57:10]OFDSenderStorePacket done [22:57:10]KKMCreateOFDPacket done [22:57:10]NVStorageSaveData kkm_last_timestamp [22:57:10]File name is /storage/kkm_last_timestamp [22:57:10]Write 4 bytes [22:57:10]NVStorageSaveData done [22:57:10]ExternCall_PrintAddStr [22:57:10]wPrintStart [22:57:10]Write to MH i2c: 01 00 00 DC 09 E5 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 07 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 07 00 DC 09 00 00 00 00 00 FF 0F FA [22:57:10]RasterBufferAndPrint [22:57:10]line Счет N : (1)593366 [22:57:10]line ИНН: 02508201610067 [22:57:10]line Контрольно-Кассовый Чек [22:57:10]line ПРОДАЖА [22:57:10]line ТРК (МРК, ГНК) : 53 [22:57:10]line Товар: 2710124130 [22:57:10]line SU-92 [22:57:10]line 21.810 * 68.80 [22:57:10]line = 1500.53 [22:57:10]line НДС 12% НСП 1% [22:57:10]line > о реализуемом товаре [22:57:10]line ОКРУГЛЕНИЕ: -0.53 [22:57:10]line ИТОГО: 1500.00 [22:57:10]line НСП 1% : 13.28 [22:57:10]line НДС 12% : 159.35 [22:57:10]line Наличными: 0.00 [22:57:10]line Безнал.: 1500.00 [22:57:10]line Место: АЗС № 136 "Партнер Нефть" [22:57:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:57:10]line СНО: Общий режим [22:57:10]line Чек 358 19.08.2024 22:57 [22:57:10]line Смена: 452 ФФД: 1.0 [22:57:10]line ЗНМ: 0300000067 [22:57:10]line РНМ: 0000000000092569 [22:57:10]line Версия ККМ: 001 [22:57:10]line Платежная система: Бакай Банк [22:57:10]line ФМ: 0000000000871776 [22:57:10]line ФД: 139523 [22:57:10]line ФПД: 154421840337073 [22:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T225709&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139523&fm=154421840337073&tin=02508201610067®Number=0000000000092569&sum=150000 [22:57:10]OFD Sender: Processing packet 139523 [packets to send 137, broken 136] [22:57:10]ProducePacketName [22:57:10]name=ofd_packets/00139523 [22:57:10]OFD Sender: To server: pG, [22:57:10]CommunicateWithHost lk.salyk.kg:30040 [22:57:10]ConnectInit lk.salyk.kg [22:57:10]written 0, free lines is 4095 [22:57:10]Connected sock=10 [22:57: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 37 36 08 01 00 00 81 BB 00 01 17 C3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 25 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 C5 CD C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 21 02 00 35 04 06 00 8C 72 22 F0 58 B1 8B E7 DE C6 EA A6 3B F4 [22:57: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 37 36 4F 00 00 00 7A 8D 47 00 3A 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 21 02 00 F4 03 04 00 5A 74 C3 66 B6 04 01 00 00 66 93 C9 60 62 A4 23 16 [22:57:11]CommunicateWithHost err = 0 [22:57:11]CheckOFDResponse [22:57:11]1017 (14) - 77093643461234 [22:57:11]1041 (16) - 0000000000871776 [22:57:11]1040 (4) - 139523 [22:57:11]1012 (4) - 19.08.2024 16:35 [22:57:11]1206 (1) - 0 [22:57:11]OFD Sender: Remove packet 139523 [22:57:11]ProducePacketName [22:57:11]name=ofd_packets/00139523 [22:57:11]NVStorageDeleteData [22:57:11]Write to MH i2c: 01 00 00 07 0A 11 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: 01 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: 01 07 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 CB 0C EF [22:57:11]RasterBufferAndPrint [22:57:11]line [22:57:11]line [22:57:11]line [22:57:11]line [22:57:11]line [22:57:11]written 0, free lines is 3281 [22:57:11]MH_Cut [22:57:11]Write to MH i2c: D1 01 00 0E 0A 01 EA [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: D1 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: D1 01 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: D1 01 00 0E 0A 00 E9 [22:57:11]Write to MH i2c: 01 00 00 0F 0A 19 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]OFD Sender: No OFD packet to send [22:57:12]*** Cut start [22:57:12]*** Partial cut [22:57:12]*** CUTSNS_PIN = 1 [22:57:12]*** CUTSNS_PIN = 0 [22:57:12]*** Brake cut motor [22:57:12]Read from MH i2c: 01 [22:57:12]MH_I2C_Read... [22:57:12]*** Stop cut motor [22:57:12]*** Cut end [22:57:12]Read from MH i2c: 01 07 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 FF 0F 2E [22:57:12]process_action close_receipt done [22:57:12]requested_data is exist [22:57:12]produce_requested_data [22:57:12]requested_item fm.sn is exist - process it [22:57:12]wFMCommunicate request_size=4 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 11 00 00 [22:57:12]Write to MH i2c: E2 08 00 10 0A 80 11 00 00 00 00 00 00 94 [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:12]Read from MH i2c: E2 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 17 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 17 00 10 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [22:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:57:12]wFMCommunicate OK [22:57:12]requested_item fd.num is exist - process it [22:57:12]SAM_PROTO_GetFieldsCounters [22:57:12]wFMCommunicate request_size=4 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 13 00 00 [22:57:12]Write to MH i2c: E2 08 00 11 0A 80 13 00 00 00 00 00 00 97 [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:12]Read from MH i2c: E2 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 62 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 62 00 11 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [22:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:12]wFMCommunicate OK [22:57:12]SAM_PROTO_GetFieldsCounters done [22:57:12]requested_item shift.num is exist - process it [22:57:12]requested_item shift.opened is exist - process it [22:57:12]req_shift_opened [22:57:12]FM_GetShiftState [22:57:12]SAM_PROTO_GetShiftState [22:57:12]wFMCommunicate request_size=4 [22:57:12]MH_SAM_APDU [22:57:12]CAPDU: 80 13 01 00 [22:57:12]Write to MH i2c: E2 08 00 12 0A 80 13 01 00 00 00 00 00 99 [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:12]Read from MH i2c: E2 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 0E 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: E2 0E 00 12 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 50 [22:57:12]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [22:57:12]wFMCommunicate OK [22:57:12]SAM_PROTO_GetShiftState done [22:57:12]FM_GetShiftState done [22:57:12]req_shift_opened done [22:57:12]requested_item shift.open_date is exist - process it [22:57:12]req_shift_open_date [22:57:12]req_shift_open_date done [22:57:12]produce_requested_data done [22:57:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139523,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [22:57:12]process_action_free close_receipt [22:57:12]json_value_free [22:57:12]json_value_free done [22:57:12]process_json_proto returns [22:57:12]Send response to host [22:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139523,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [22:57:12]free response buf [22:57:12]execute_script done [22:57:12]execute_script returns [22:57:12]free content buf [22:57:12]Sock 7.Close socket [22:57:12]Sock 7.Thread stoped [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:24]accept exits with 9 [23:08:24]New connection [23:08:24]New thread 3067215204 created [23:08:24]Thread 3067071844 joined [23:08:24]Waiting for new connection... [23:08:24] Sock 9.Parse request [23:08:24]Sock 9.Check first char [23:08:24]Sock 9.First char is OK [23:08:24]request: POST /json_proto HTTP/1.0 [23:08:24]Method: POST [23:08:24]URL: /json_proto [23:08:24]Method is POST - this is cgi request [23:08:24]url: /json_proto [23:08:24]query_string will be loaded in cgi processing [23:08:24]execute_cgi json_proto POST (null) [23:08:24]execute_cgi path=json_proto method=POST [23:08:24]POST find Content-Length [23:08:24]Host: 172.17.45.67:8080 [23:08:24]Content-Length: 678 [23:08:24]Content-Type: application/json [23:08:24] [23:08:24]POST finish read [23:08:24]Found Content-Length = 678 [23:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [23:08:24]execute_script... [23: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)593367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [23:08:24]POST & json_proto [23:08:24]process_json_proto [23:08:24]json parsed OK: [23:08:24]protocol is kg_v1.0 [23:08:24]action value=close_receipt [23:08:24]process_action close_receipt [23:08:24]cmd_close_receipt [23:08:24]MH_GetDate [23:08:24]Write to MH i2c: F0 00 00 13 0A 0C [23:08:24]Write i2c OK [23:08:24]MH_I2C_Read... [23:08:24]Read from MH i2c: F0 [23:08:24]MH_I2C_Read... [23:08:24]Read from MH i2c: F0 09 00 [23:08:24]MH_I2C_Read... [23:08:24]Read from MH i2c: F0 09 00 13 0A 00 69 D0 C3 66 5F 7F 2B 66 E6 [23:08:24]GetLastDocTimeStamp 1724108229 [23:08:24]current date 1724108905 [23:08:24]FM_GetShiftState [23:08:24]SAM_PROTO_GetShiftState [23:08:24]wFMCommunicate request_size=4 [23:08:24]MH_SAM_APDU [23:08:24]CAPDU: 80 13 01 00 [23:08:24]Write to MH i2c: E2 08 00 14 0A 80 13 01 00 00 00 00 00 9B [23:08:24]Write i2c OK [23:08:24]MH_I2C_Read... [23:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:24]Read from MH i2c: E2 [23:08:24]MH_I2C_Read... [23:08:24]Read from MH i2c: E2 0E 00 [23:08:24]MH_I2C_Read... [23:08:24]Read from MH i2c: E2 0E 00 14 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 52 [23:08:24]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [23:08:24]wFMCommunicate OK [23:08:24]SAM_PROTO_GetShiftState done [23:08:24]FM_GetShiftState done [23:08:24]opened in 1724027888 [23:08:24]opened+sec_in_day 1724114288 [23:08:24]quantity*price = 80061 [23:08:24]sum+1 = 80063 [23:08:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 359 19.08.2024 23:08 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139524 ФПД: 231562184615087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T230825&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139524&fm=231562184615087&tin=02508201610067®Number=0000000000092569&sum=80000 [23:08:25]StoreToDocumentArchive [23:08:25]shift 452 fd 139524 [23:08:25]save to /storage/0452/doc_00139524 [23:08:25]save last doc name /storage/0452/doc_00139524 to /storage/kkm_last_doc_name [23:08:25]save OK [23:08:25]Clear old archive folders... [23:08:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:25]tlvbuf is 00CF9FE0 [23:08:25]SAM_PROTO_ClearQueue [23:08:25]wFMCommunicate request_size=4 [23:08:25]MH_SAM_APDU [23:08:25]CAPDU: 80 09 00 00 [23:08:25]Write to MH i2c: E2 08 00 21 0A 80 09 00 00 00 00 00 00 9D [23:08:25]Write i2c OK [23:08:25]MH_I2C_Read... [23:08:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:25]Read from MH i2c: E2 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: E2 03 00 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: E2 03 00 21 0A 00 90 00 9F [23:08:25]RAPDU: 90 00 [23:08:25]wFMCommunicate OK [23:08:25]SAM_PROTO_ClearQueue done [23:08:25]KKMCreateOFDPacket [23:08:25]OFDProtocolAddRootSTLVToBuf [23:08:25]FM_MakeSignedData [23:08:25]FM_MakeSignedData [23:08:25]SAM_PROTO_SignData [23:08:25]wFMCommunicate request_size=4 [23:08:25]MH_SAM_APDU [23:08:25]CAPDU: 80 0D 01 02 [23:08:25]Write to MH i2c: E2 08 00 22 0A 80 0D 01 02 00 00 00 00 A5 [23:08:25]Write i2c OK [23:08:25]MH_I2C_Read... [23:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:26]Read from MH i2c: E2 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 22 0A 00 90 00 A0 [23:08:26]RAPDU: 90 00 [23:08:26]wFMCommunicate OK [23:08:26]wFMCommunicate request_size=255 [23:08:26]MH_SAM_APDU [23: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 67 01 00 00 F4 03 04 00 69 D0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 21 02 00 35 04 06 00 D2 [23:08:26]Write to MH i2c: E2 02 01 23 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 67 01 00 00 F4 03 04 00 69 D0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 21 02 00 35 04 06 00 D2 00 00 33 [23:08:26]Write i2c OK [23:08:26]MH_I2C_Read... [23:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:26]Read from MH i2c: E2 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 23 0A 00 90 00 A1 [23:08:26]RAPDU: 90 00 [23:08:26]wFMCommunicate OK [23:08:26]wFMCommunicate request_size=10 [23:08:26]MH_SAM_APDU [23:08:26]CAPDU: 80 0D 02 02 05 9A C5 C1 E4 AF [23:08:26]Write to MH i2c: E2 0D 00 24 0A 80 0D 02 02 05 00 9A C5 C1 E4 AF 00 00 65 [23:08:26]Write i2c OK [23:08:26]MH_I2C_Read... [23:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:26]Read from MH i2c: E2 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [23:08:26]RAPDU: 90 00 [23:08:26]wFMCommunicate OK [23:08:26]wFMCommunicate request_size=4 [23:08:26]MH_SAM_APDU [23:08:26]CAPDU: 80 0D 03 02 [23:08:26]Write to MH i2c: E2 08 00 25 0A 80 0D 03 02 00 00 00 00 AA [23:08:26]Write i2c OK [23:08:26]MH_I2C_Read... [23:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:26]Read from MH i2c: E2 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 0B 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 0B 00 25 0A 00 2B F4 80 7E D2 B1 DC D1 90 00 F8 [23:08:26]RAPDU: 2B F4 80 7E D2 B1 DC D1 90 00 [23:08:26]wFMCommunicate OK [23:08:26]SAM_PROTO_SignData done [23:08:26]FM_MakeSignedData done [23:08:26]CreateOFDProtocolMessage [23:08:26]wFMCommunicate request_size=4 [23:08:26]MH_SAM_APDU [23:08:26]CAPDU: 80 11 00 00 [23:08:26]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [23:08:26]Write i2c OK [23:08:26]MH_I2C_Read... [23:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:26]Read from MH i2c: E2 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 17 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [23:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:08:26]wFMCommunicate OK [23:08:26]CreateOFDProtocolMessage done [23:08:26]OFDSenderStorePacket 139524 [23:08:26]StoreOFDPacket docnum=139524 [23:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1F AA 07 01 15 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 67 01 00 00 F4 03 04 00 69 D0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 21 02 00 35 04 06 00 D2 9A C5 C1 E4 AF 2B F4 80 7E D2 B1 DC D1 [23:08:26]CheckFolder [23:08:26]dirname=/storage/ofd_packets [23:08:26]CheckFolder done [23:08:26]ProducePacketName [23:08:26]name=ofd_packets/00139524 [23:08:26]NVStorageSaveData ofd_packets/00139524 [23:08:26]File name is /storage/ofd_packets/00139524 [23:08:26]Write 301 bytes [23:08:26]NVStorageSaveData done [23:08:26]OFDSenderStorePacket done [23:08:26]KKMCreateOFDPacket done [23:08:26]NVStorageSaveData kkm_last_timestamp [23:08:26]File name is /storage/kkm_last_timestamp [23:08:26]Write 4 bytes [23:08:26]NVStorageSaveData done [23:08:26]ExternCall_PrintAddStr [23:08:26]wPrintStart [23:08:26]Write to MH i2c: 01 00 00 27 0A 31 [23:08:26]Write i2c OK [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: 01 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: 01 07 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [23:08:26]RasterBufferAndPrint [23:08:26]line Счет N : (1)593367 [23:08:26]line ИНН: 02508201610067 [23:08:26]line Контрольно-Кассовый Чек [23:08:26]line ПРОДАЖА [23:08:26]line ТРК (МРК, ГНК) : 41 [23:08:26]line Товар: 2710124500 [23:08:26]line Аи-95-К-5 [23:08:26]line 10.790 * 74.20 [23:08:26]line = 800.62 [23:08:26]line НДС 12% НСП 1% [23:08:26]line > о реализуемом товаре [23:08:26]line ОКРУГЛЕНИЕ: -0.62 [23:08:26]line ИТОГО: 800.00 [23:08:26]line Внесено: 800.00 [23:08:26]line СДАЧА: 0.00 [23:08:26]line НСП 1% : 7.08 [23:08:26]line НДС 12% : 85.02 [23:08:26]line Наличными: 800.00 [23:08:26]line Безнал.: 0.00 [23:08:26]line Место: АЗС № 136 "Партнер Нефть" [23:08:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:08:26]line СНО: Общий режим [23:08:26]line Чек 359 19.08.2024 23:08 [23:08:26]line Смена: 452 ФФД: 1.0 [23:08:26]line ЗНМ: 0300000067 [23:08:26]line РНМ: 0000000000092569 [23:08:26]line Версия ККМ: 001 [23:08:26]line ФМ: 0000000000871776 [23:08:26]line ФД: 139524 [23:08:26]line ФПД: 231562184615087 [23:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T230825&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139524&fm=231562184615087&tin=02508201610067®Number=0000000000092569&sum=80000 [23:08:26]OFD Sender: Processing packet 139524 [packets to send 137, broken 136] [23:08:26]ProducePacketName [23:08:26]name=ofd_packets/00139524 [23:08:26]OFD Sender: To server: pG, [23:08:26]CommunicateWithHost lk.salyk.kg:30040 [23:08:26]ConnectInit lk.salyk.kg [23:08:26]written 0, free lines is 4095 [23:08:26]Connected sock=10 [23: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 37 36 0F 01 00 00 1F AA 07 01 15 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 67 01 00 00 F4 03 04 00 69 D0 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 21 02 00 35 04 06 00 D2 9A C5 C1 E4 AF 2B F4 80 7E D2 B1 DC D1 [23: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 37 36 4F 00 00 00 7A 96 47 00 F8 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 37 36 10 04 04 00 04 21 02 00 F4 03 04 00 FE 76 C3 66 B6 04 01 00 00 14 16 3B 1B 98 EF 87 CE [23:08:27]CommunicateWithHost err = 0 [23:08:27]CheckOFDResponse [23:08:27]1017 (14) - 77093643461234 [23:08:27]1041 (16) - 0000000000871776 [23:08:27]1040 (4) - 139524 [23:08:27]1012 (4) - 19.08.2024 16:46 [23:08:27]1206 (1) - 0 [23:08:27]OFD Sender: Remove packet 139524 [23:08:27]ProducePacketName [23:08:27]name=ofd_packets/00139524 [23:08:27]NVStorageDeleteData [23:08:27]Write to MH i2c: 01 00 00 52 0A 5C [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 52 0A 00 00 00 00 00 C9 0C 38 [23:08:27]RasterBufferAndPrint [23:08:27]line [23:08:27]line [23:08:27]line [23:08:27]line [23:08:27]line [23:08:27]written 0, free lines is 3279 [23:08:27]MH_Cut [23:08:27]Write to MH i2c: D1 01 00 59 0A 01 35 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: D1 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: D1 01 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: D1 01 00 59 0A 00 34 [23:08:27]Write to MH i2c: 01 00 00 5A 0A 64 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]OFD Sender: No OFD packet to send [23:08:28]*** Cut start [23:08:28]*** Partial cut [23:08:28]*** CUTSNS_PIN = 1 [23:08:28]*** CUTSNS_PIN = 0 [23:08:28]*** Brake cut motor [23:08:28]Read from MH i2c: 01 [23:08:28]MH_I2C_Read... [23:08:28]*** Stop cut motor [23:08:28]*** Cut end [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 5A 0A 00 00 00 00 00 FF 0F 79 [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 5B 0A 80 11 00 00 00 00 00 00 DF [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 5B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [23:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 5C 0A 80 13 00 00 00 00 00 00 E2 [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 5C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 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 5D 0A 80 13 01 00 00 00 00 00 E4 [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 5D 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9B [23:08:28]RAPDU: 09 00 01 F0 93 C2 66 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":"0000000000871776","fd.num":139524,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [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":"0000000000871776","fd.num":139524,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [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:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:50]accept exits with 7 [23:17:50]New connection [23:17:50]New thread 3067071844 created [23:17:50]Thread 3067215204 joined [23:17:50]Waiting for new connection... [23:17:50] Sock 7.Parse request [23:17:50]Sock 7.Check first char [23:17:50]Sock 7.First char is OK [23:17:50]request: POST /json_proto HTTP/1.0 [23:17:50]Method: POST [23:17:50]URL: /json_proto [23:17:50]Method is POST - this is cgi request [23:17:50]url: /json_proto [23:17:50]query_string will be loaded in cgi processing [23:17:50]execute_cgi json_proto POST (null) [23:17:50]execute_cgi path=json_proto method=POST [23:17:50]POST find Content-Length [23:17:50]Host: 172.17.45.67:8080 [23:17:50]Content-Length: 677 [23:17:50]Content-Type: application/json [23:17:50] [23:17:50]POST finish read [23:17:50]Found Content-Length = 677 [23:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.010, "sum" : 520.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:50]execute_script... [23:17: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)593368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.010, "sum" : 520.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:50]POST & json_proto [23:17:50]process_json_proto [23:17:50]json parsed OK: [23:17:50]protocol is kg_v1.0 [23:17:50]action value=close_receipt [23:17:50]process_action close_receipt [23:17:50]cmd_close_receipt [23:17:50]MH_GetDate [23:17:50]Write to MH i2c: F0 00 00 5E 0A 57 [23:17:50]Write i2c OK [23:17:50]MH_I2C_Read... [23:17:50]Read from MH i2c: F0 [23:17:50]MH_I2C_Read... [23:17:50]Read from MH i2c: F0 09 00 [23:17:50]MH_I2C_Read... [23:17:50]Read from MH i2c: F0 09 00 5E 0A 00 9F D2 C3 66 5F 7F 2B 66 69 [23:17:50]GetLastDocTimeStamp 1724108905 [23:17:50]current date 1724109471 [23:17:50]FM_GetShiftState [23:17:50]SAM_PROTO_GetShiftState [23:17:50]wFMCommunicate request_size=4 [23:17:50]MH_SAM_APDU [23:17:50]CAPDU: 80 13 01 00 [23:17:50]Write to MH i2c: E2 08 00 5F 0A 80 13 01 00 00 00 00 00 E6 [23:17:50]Write i2c OK [23:17:50]MH_I2C_Read... [23:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:50]Read from MH i2c: E2 [23:17:50]MH_I2C_Read... [23:17:50]Read from MH i2c: E2 0E 00 [23:17:50]MH_I2C_Read... [23:17:50]Read from MH i2c: E2 0E 00 5F 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 9D [23:17:50]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [23:17:50]wFMCommunicate OK [23:17:50]SAM_PROTO_GetShiftState done [23:17:50]FM_GetShiftState done [23:17:50]opened in 1724027888 [23:17:50]opened+sec_in_day 1724114288 [23:17:50]quantity*price = 52014 [23:17:50]sum+1 = 52015 [23:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.24 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 360 19.08.2024 23:17 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139525 ФПД: 116318275467002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T231751&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139525&fm=116318275467002&tin=02508201610067®Number=0000000000092569&sum=52000 [23:17:51]StoreToDocumentArchive [23:17:51]shift 452 fd 139525 [23:17:51]save to /storage/0452/doc_00139525 [23:17:51]save last doc name /storage/0452/doc_00139525 to /storage/kkm_last_doc_name [23:17:51]save OK [23:17:51]Clear old archive folders... [23:17:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:17:51]tlvbuf is 00D39C90 [23:17:51]SAM_PROTO_ClearQueue [23:17:51]wFMCommunicate request_size=4 [23:17:51]MH_SAM_APDU [23:17:51]CAPDU: 80 09 00 00 [23:17:51]Write to MH i2c: E2 08 00 6C 0A 80 09 00 00 00 00 00 00 E8 [23:17:51]Write i2c OK [23:17:51]MH_I2C_Read... [23:17:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:51]Read from MH i2c: E2 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 03 00 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 03 00 6C 0A 00 90 00 EA [23:17:51]RAPDU: 90 00 [23:17:51]wFMCommunicate OK [23:17:51]SAM_PROTO_ClearQueue done [23:17:51]KKMCreateOFDPacket [23:17:51]OFDProtocolAddRootSTLVToBuf [23:17:51]FM_MakeSignedData [23:17:51]FM_MakeSignedData [23:17:51]SAM_PROTO_SignData [23:17:51]wFMCommunicate request_size=4 [23:17:51]MH_SAM_APDU [23:17:51]CAPDU: 80 0D 01 02 [23:17:51]Write to MH i2c: E2 08 00 6D 0A 80 0D 01 02 00 00 00 00 F0 [23:17:51]Write i2c OK [23:17:51]MH_I2C_Read... [23:17:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:51]Read from MH i2c: E2 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 03 00 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 03 00 6D 0A 00 90 00 EB [23:17:51]RAPDU: 90 00 [23:17:51]wFMCommunicate OK [23:17:51]wFMCommunicate request_size=255 [23:17:51]MH_SAM_APDU [23:17:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 9F D2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 21 02 00 35 04 06 00 69 [23:17:51]Write to MH i2c: E2 02 01 6E 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 9F D2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 21 02 00 35 04 06 00 69 00 00 3B [23:17:51]Write i2c OK [23:17:51]MH_I2C_Read... [23:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:51]Read from MH i2c: E2 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 03 00 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [23:17:51]RAPDU: 90 00 [23:17:51]wFMCommunicate OK [23:17:51]wFMCommunicate request_size=10 [23:17:51]MH_SAM_APDU [23:17:51]CAPDU: 80 0D 02 02 05 CA 75 7D 76 FA [23:17:51]Write to MH i2c: E2 0D 00 6F 0A 80 0D 02 02 05 00 CA 75 7D 76 FA 00 00 29 [23:17:51]Write i2c OK [23:17:51]MH_I2C_Read... [23:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:51]Read from MH i2c: E2 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 03 00 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [23:17:51]RAPDU: 90 00 [23:17:51]wFMCommunicate OK [23:17:51]wFMCommunicate request_size=4 [23:17:51]MH_SAM_APDU [23:17:51]CAPDU: 80 0D 03 02 [23:17:51]Write to MH i2c: E2 08 00 70 0A 80 0D 03 02 00 00 00 00 F5 [23:17:51]Write i2c OK [23:17:51]MH_I2C_Read... [23:17:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:51]Read from MH i2c: E2 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 0B 00 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 0B 00 70 0A 00 C1 CE C6 03 98 5F A7 EE 90 00 DA [23:17:51]RAPDU: C1 CE C6 03 98 5F A7 EE 90 00 [23:17:51]wFMCommunicate OK [23:17:51]SAM_PROTO_SignData done [23:17:51]FM_MakeSignedData done [23:17:51]CreateOFDProtocolMessage [23:17:51]wFMCommunicate request_size=4 [23:17:51]MH_SAM_APDU [23:17:51]CAPDU: 80 11 00 00 [23:17:51]Write to MH i2c: E2 08 00 71 0A 80 11 00 00 00 00 00 00 F5 [23:17:51]Write i2c OK [23:17:51]MH_I2C_Read... [23:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:51]Read from MH i2c: E2 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 17 00 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: E2 17 00 71 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [23:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:17:51]wFMCommunicate OK [23:17:51]CreateOFDProtocolMessage done [23:17:51]OFDSenderStorePacket 139525 [23:17:51]StoreOFDPacket docnum=139525 [23:17:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C3 4A 07 01 92 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 9F D2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 21 02 00 35 04 06 00 69 CA 75 7D 76 FA C1 CE C6 03 98 5F A7 EE [23:17:51]CheckFolder [23:17:51]dirname=/storage/ofd_packets [23:17:51]CheckFolder done [23:17:51]ProducePacketName [23:17:51]name=ofd_packets/00139525 [23:17:51]NVStorageSaveData ofd_packets/00139525 [23:17:51]File name is /storage/ofd_packets/00139525 [23:17:51]Write 301 bytes [23:17:51]NVStorageSaveData done [23:17:51]OFDSenderStorePacket done [23:17:51]KKMCreateOFDPacket done [23:17:51]NVStorageSaveData kkm_last_timestamp [23:17:51]File name is /storage/kkm_last_timestamp [23:17:51]Write 4 bytes [23:17:51]NVStorageSaveData done [23:17:51]ExternCall_PrintAddStr [23:17:51]wPrintStart [23:17:51]Write to MH i2c: 01 00 00 72 0A 7C [23:17:51]Write i2c OK [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: 01 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: 01 07 00 [23:17:51]MH_I2C_Read... [23:17:51]Read from MH i2c: 01 07 00 72 0A 00 00 00 00 00 FF 0F 91 [23:17:51]RasterBufferAndPrint [23:17:51]line Счет N : (1)593368 [23:17:51]line ИНН: 02508201610067 [23:17:51]line Контрольно-Кассовый Чек [23:17:51]line ПРОДАЖА [23:17:51]line ТРК (МРК, ГНК) : 51 [23:17:51]line Товар: 2710124500 [23:17:51]line Аи-95-К-5 [23:17:51]line 7.010 * 74.20 [23:17:51]line = 520.14 [23:17:51]line НДС 12% НСП 1% [23:17:51]line > о реализуемом товаре [23:17:51]line ОКРУГЛЕНИЕ: -0.14 [23:17:51]line ИТОГО: 520.00 [23:17:51]line Внесено: 520.00 [23:17:51]line СДАЧА: 0.00 [23:17:51]line НСП 1% : 4.60 [23:17:51]line НДС 12% : 55.24 [23:17:51]line Наличными: 520.00 [23:17:51]line Безнал.: 0.00 [23:17:51]line Место: АЗС № 136 "Партнер Нефть" [23:17:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:17:51]line СНО: Общий режим [23:17:51]line Чек 360 19.08.2024 23:17 [23:17:51]line Смена: 452 ФФД: 1.0 [23:17:51]line ЗНМ: 0300000067 [23:17:51]line РНМ: 0000000000092569 [23:17:51]line Версия ККМ: 001 [23:17:51]line ФМ: 0000000000871776 [23:17:51]line ФД: 139525 [23:17:51]line ФПД: 116318275467002 [23:17:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T231751&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139525&fm=116318275467002&tin=02508201610067®Number=0000000000092569&sum=52000 [23:17:52]OFD Sender: Processing packet 139525 [packets to send 137, broken 136] [23:17:52]ProducePacketName [23:17:52]name=ofd_packets/00139525 [23:17:52]OFD Sender: To server: pG, [23:17:52]CommunicateWithHost lk.salyk.kg:30040 [23:17:52]ConnectInit lk.salyk.kg [23:17:52]written 0, free lines is 4095 [23:17:52]Connected sock=10 [23:17: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 37 36 0F 01 00 00 C3 4A 07 01 92 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 9F D2 C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 21 02 00 35 04 06 00 69 CA 75 7D 76 FA C1 CE C6 03 98 5F A7 EE [23:17:52]Write to MH i2c: 01 00 00 9D 0A A7 [23:17:52]Write i2c OK [23:17:52]MH_I2C_Read... [23:17:52]Read from MH i2c: 01 [23:17:52]MH_I2C_Read... [23:17:52]Read from MH i2c: 01 07 00 [23:17:52]MH_I2C_Read... [23:17:52]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 CA 0C 84 [23:17:52]RasterBufferAndPrint [23:17:52]line [23:17:52]line [23:17:52]line [23:17:52]line [23:17:52]line [23:17:52]written 0, free lines is 3280 [23:17:52]MH_Cut [23:17:52]Write to MH i2c: D1 01 00 A4 0A 01 80 [23:17:52]Write i2c OK [23:17:52]MH_I2C_Read... [23:17:52]Read from MH i2c: D1 [23:17:52]MH_I2C_Read... [23:17:52]Read from MH i2c: D1 01 00 [23:17:52]MH_I2C_Read... [23:17:52]Read from MH i2c: D1 01 00 A4 0A 00 7F [23:17:52]Write to MH i2c: 01 00 00 A5 0A AF [23:17:52]Write i2c OK [23:17:52]MH_I2C_Read... [23:17: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 37 36 4F 00 00 00 36 54 47 00 6A 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 21 02 00 F4 03 04 00 33 79 C3 66 B6 04 01 00 00 32 4C 7C BE C3 CA A8 5F [23:17:52]CommunicateWithHost err = 0 [23:17:52]CheckOFDResponse [23:17:52]1017 (14) - 77093643461234 [23:17:52]1041 (16) - 0000000000871776 [23:17:52]1040 (4) - 139525 [23:17:52]1012 (4) - 19.08.2024 16:56 [23:17:52]1206 (1) - 0 [23:17:52]OFD Sender: Remove packet 139525 [23:17:52]ProducePacketName [23:17:52]name=ofd_packets/00139525 [23:17:52]NVStorageDeleteData [23:17:53]OFD Sender: No OFD packet to send [23:17:53]*** Cut start [23:17:53]*** Partial cut [23:17:53]*** CUTSNS_PIN = 1 [23:17:53]*** CUTSNS_PIN = 0 [23:17:53]*** Brake cut motor [23:17:54]Read from MH i2c: 01 [23:17:54]MH_I2C_Read... [23:17:54]*** Stop cut motor [23:17:54]*** Cut end [23:17:54]Read from MH i2c: 01 07 00 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 FF 0F C4 [23:17:54]process_action close_receipt done [23:17:54]requested_data is exist [23:17:54]produce_requested_data [23:17:54]requested_item fm.sn is exist - process it [23:17:54]wFMCommunicate request_size=4 [23:17:54]MH_SAM_APDU [23:17:54]CAPDU: 80 11 00 00 [23:17:54]Write to MH i2c: E2 08 00 A6 0A 80 11 00 00 00 00 00 00 2A [23:17:54]Write i2c OK [23:17:54]MH_I2C_Read... [23:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:54]Read from MH i2c: E2 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: E2 17 00 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: E2 17 00 A6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [23:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:17:54]wFMCommunicate OK [23:17:54]requested_item fd.num is exist - process it [23:17:54]SAM_PROTO_GetFieldsCounters [23:17:54]wFMCommunicate request_size=4 [23:17:54]MH_SAM_APDU [23:17:54]CAPDU: 80 13 00 00 [23:17:54]Write to MH i2c: E2 08 00 A7 0A 80 13 00 00 00 00 00 00 2D [23:17:54]Write i2c OK [23:17:54]MH_I2C_Read... [23:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:54]Read from MH i2c: E2 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: E2 62 00 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: E2 62 00 A7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [23:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:54]wFMCommunicate OK [23:17:54]SAM_PROTO_GetFieldsCounters done [23:17:54]requested_item shift.num is exist - process it [23:17:54]requested_item shift.opened is exist - process it [23:17:54]req_shift_opened [23:17:54]FM_GetShiftState [23:17:54]SAM_PROTO_GetShiftState [23:17:54]wFMCommunicate request_size=4 [23:17:54]MH_SAM_APDU [23:17:54]CAPDU: 80 13 01 00 [23:17:54]Write to MH i2c: E2 08 00 A8 0A 80 13 01 00 00 00 00 00 2F [23:17:54]Write i2c OK [23:17:54]MH_I2C_Read... [23:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:54]Read from MH i2c: E2 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: E2 0E 00 [23:17:54]MH_I2C_Read... [23:17:54]Read from MH i2c: E2 0E 00 A8 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E6 [23:17:54]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [23:17:54]wFMCommunicate OK [23:17:54]SAM_PROTO_GetShiftState done [23:17:54]FM_GetShiftState done [23:17:54]req_shift_opened done [23:17:54]requested_item shift.open_date is exist - process it [23:17:54]req_shift_open_date [23:17:54]req_shift_open_date done [23:17:54]produce_requested_data done [23:17:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139525,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [23:17:54]process_action_free close_receipt [23:17:54]json_value_free [23:17:54]json_value_free done [23:17:54]process_json_proto returns [23:17:54]Send response to host [23:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139525,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [23:17:54]free response buf [23:17:54]execute_script done [23:17:54]execute_script returns [23:17:54]free content buf [23:17:54]Sock 7.Close socket [23:17:54]Sock 7.Thread stoped [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]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:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:29]accept exits with 9 [23:54:29]New connection [23:54:29]New thread 3067215204 created [23:54:29]Thread 3067071844 joined [23:54:29]Waiting for new connection... [23:54:29] Sock 9.Parse request [23:54:29]Sock 9.Check first char [23:54:29]Sock 9.First char is OK [23:54:29]request: POST /json_proto HTTP/1.0 [23:54:29]Method: POST [23:54:29]URL: /json_proto [23:54:29]Method is POST - this is cgi request [23:54:29]url: /json_proto [23:54:29]query_string will be loaded in cgi processing [23:54:29]execute_cgi json_proto POST (null) [23:54:29]execute_cgi path=json_proto method=POST [23:54:29]POST find Content-Length [23:54:29]Host: 172.17.45.67:8080 [23:54:29]Content-Length: 835 [23:54:29]Content-Type: application/json [23:54:29] [23:54:29]POST finish read [23:54:29]Found Content-Length = 835 [23:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:29]execute_script... [23: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)593369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:29]POST & json_proto [23:54:29]process_json_proto [23:54:29]json parsed OK: [23:54:29]protocol is kg_v1.0 [23:54:29]action value=close_receipt [23:54:29]process_action close_receipt [23:54:29]cmd_close_receipt [23:54:29]MH_GetDate [23:54:29]Write to MH i2c: F0 00 00 A9 0A A2 [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: F0 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: F0 09 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: F0 09 00 A9 0A 00 36 DB C3 66 5F 7F 2B 66 54 [23:54:29]GetLastDocTimeStamp 1724109471 [23:54:29]current date 1724111670 [23:54:29]FM_GetShiftState [23:54:29]SAM_PROTO_GetShiftState [23:54:29]wFMCommunicate request_size=4 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 13 01 00 [23:54:29]Write to MH i2c: E2 08 00 AA 0A 80 13 01 00 00 00 00 00 31 [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 0E 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 0E 00 AA 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 E8 [23:54:29]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [23:54:29]wFMCommunicate OK [23:54:29]SAM_PROTO_GetShiftState done [23:54:29]FM_GetShiftState done [23:54:29]opened in 1724027888 [23:54:29]opened+sec_in_day 1724114288 [23:54:29]quantity*price = 80004 [23:54:29]sum+1 = 80005 [23:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 361 19.08.2024 23:54 Смена: 452 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139526 ФПД: 209715727410041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T235430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139526&fm=209715727410041&tin=02508201610067®Number=0000000000092569&sum=80000 [23:54:30]StoreToDocumentArchive [23:54:30]shift 452 fd 139526 [23:54:30]save to /storage/0452/doc_00139526 [23:54:30]save last doc name /storage/0452/doc_00139526 to /storage/kkm_last_doc_name [23:54:30]save OK [23:54:30]Clear old archive folders... [23:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:30]tlvbuf is 00D36F50 [23:54:30]SAM_PROTO_ClearQueue [23:54:30]wFMCommunicate request_size=4 [23:54:30]MH_SAM_APDU [23:54:30]CAPDU: 80 09 00 00 [23:54:30]Write to MH i2c: E2 08 00 B7 0A 80 09 00 00 00 00 00 00 33 [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:30]Read from MH i2c: E2 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 03 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 03 00 B7 0A 00 90 00 35 [23:54:30]RAPDU: 90 00 [23:54:30]wFMCommunicate OK [23:54:30]SAM_PROTO_ClearQueue done [23:54:30]KKMCreateOFDPacket [23:54:30]OFDProtocolAddRootSTLVToBuf [23:54:30]FM_MakeSignedData [23:54:30]FM_MakeSignedData [23:54:30]SAM_PROTO_SignData [23:54:30]wFMCommunicate request_size=4 [23:54:30]MH_SAM_APDU [23:54:30]CAPDU: 80 0D 01 02 [23:54:30]Write to MH i2c: E2 08 00 B8 0A 80 0D 01 02 00 00 00 00 3B [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:30]Read from MH i2c: E2 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 03 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [23:54:30]RAPDU: 90 00 [23:54:30]wFMCommunicate OK [23:54:30]wFMCommunicate request_size=255 [23:54:30]MH_SAM_APDU [23: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 36 DB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 21 02 00 35 04 06 00 BE [23:54:30]Write to MH i2c: E2 02 01 B9 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 36 DB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 21 02 00 35 04 06 00 BE 00 00 C1 [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:30]Read from MH i2c: E2 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 03 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 03 00 B9 0A 00 90 00 37 [23:54:30]RAPDU: 90 00 [23:54:30]wFMCommunicate OK [23:54:30]wFMCommunicate request_size=10 [23:54:30]MH_SAM_APDU [23:54:30]CAPDU: 80 0D 02 02 05 BC 3F 6F A3 79 [23:54:30]Write to MH i2c: E2 0D 00 BA 0A 80 0D 02 02 05 00 BC 3F 6F A3 79 00 00 CE [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:30]Read from MH i2c: E2 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 03 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 03 00 BA 0A 00 90 00 38 [23:54:30]RAPDU: 90 00 [23:54:30]wFMCommunicate OK [23:54:30]wFMCommunicate request_size=4 [23:54:30]MH_SAM_APDU [23:54:30]CAPDU: 80 0D 03 02 [23:54:30]Write to MH i2c: E2 08 00 BB 0A 80 0D 03 02 00 00 00 00 40 [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:30]Read from MH i2c: E2 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 0B 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 0B 00 BB 0A 00 9F DB F5 6A BA 2B 20 B8 90 00 D7 [23:54:30]RAPDU: 9F DB F5 6A BA 2B 20 B8 90 00 [23:54:30]wFMCommunicate OK [23:54:30]SAM_PROTO_SignData done [23:54:30]FM_MakeSignedData done [23:54:30]CreateOFDProtocolMessage [23:54:30]wFMCommunicate request_size=4 [23:54:30]MH_SAM_APDU [23:54:30]CAPDU: 80 11 00 00 [23:54:30]Write to MH i2c: E2 08 00 BC 0A 80 11 00 00 00 00 00 00 40 [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:30]Read from MH i2c: E2 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 17 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: E2 17 00 BC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [23:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:54:30]wFMCommunicate OK [23:54:30]CreateOFDProtocolMessage done [23:54:30]OFDSenderStorePacket 139526 [23:54:30]StoreOFDPacket docnum=139526 [23:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F7 6A 07 01 C1 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 36 DB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 21 02 00 35 04 06 00 BE BC 3F 6F A3 79 9F DB F5 6A BA 2B 20 B8 [23:54:30]CheckFolder [23:54:30]dirname=/storage/ofd_packets [23:54:30]CheckFolder done [23:54:30]ProducePacketName [23:54:30]name=ofd_packets/00139526 [23:54:30]NVStorageSaveData ofd_packets/00139526 [23:54:30]File name is /storage/ofd_packets/00139526 [23:54:30]Write 301 bytes [23:54:30]NVStorageSaveData done [23:54:30]OFDSenderStorePacket done [23:54:30]KKMCreateOFDPacket done [23:54:30]NVStorageSaveData kkm_last_timestamp [23:54:30]File name is /storage/kkm_last_timestamp [23:54:30]Write 4 bytes [23:54:30]NVStorageSaveData done [23:54:30]ExternCall_PrintAddStr [23:54:30]wPrintStart [23:54:30]Write to MH i2c: 01 00 00 BD 0A C7 [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: 01 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: 01 07 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: 01 07 00 BD 0A 00 00 00 00 00 FF 0F DC [23:54:30]RasterBufferAndPrint [23:54:30]line Счет N : (1)593369 [23:54:30]line ИНН: 02508201610067 [23:54:30]line Контрольно-Кассовый Чек [23:54:30]line ПРОДАЖА [23:54:30]line ТРК (МРК, ГНК) : 32 [23:54:30]line Товар: 2710124130 [23:54:30]line Аи-92-К-5 [23:54:30]line 11.800 * 67.80 [23:54:30]line = 800.04 [23:54:30]line НДС 12% НСП 1% [23:54:30]line > о реализуемом товаре [23:54:30]line ОКРУГЛЕНИЕ: -0.04 [23:54:30]line ИТОГО: 800.00 [23:54:30]line НСП 1% : 7.08 [23:54:30]line НДС 12% : 84.96 [23:54:30]line Наличными: 0.00 [23:54:30]line Безнал.: 800.00 [23:54:30]line Место: АЗС № 136 "Партнер Нефть" [23:54:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:54:30]line СНО: Общий режим [23:54:30]line Чек 361 19.08.2024 23:54 [23:54:30]line Смена: 452 ФФД: 1.0 [23:54:30]line ЗНМ: 0300000067 [23:54:30]line РНМ: 0000000000092569 [23:54:30]line Версия ККМ: 001 [23:54:30]line Платежная система: Бакай Банк [23:54:30]line ФМ: 0000000000871776 [23:54:30]line ФД: 139526 [23:54:30]line ФПД: 209715727410041 [23:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T235430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139526&fm=209715727410041&tin=02508201610067®Number=0000000000092569&sum=80000 [23:54:31]OFD Sender: Processing packet 139526 [packets to send 137, broken 136] [23:54:31]ProducePacketName [23:54:31]name=ofd_packets/00139526 [23:54:31]OFD Sender: To server: pG, [23:54:31]CommunicateWithHost lk.salyk.kg:30040 [23:54:31]ConnectInit lk.salyk.kg [23:54:31]written 0, free lines is 4095 [23:54:31]Connected sock=10 [23: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 37 36 0F 01 00 00 F7 6A 07 01 C1 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 36 DB C3 66 0E 04 04 00 C4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 21 02 00 35 04 06 00 BE BC 3F 6F A3 79 9F DB F5 6A BA 2B 20 B8 [23: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 37 36 4F 00 00 00 13 90 47 00 F3 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 37 36 10 04 04 00 06 21 02 00 F4 03 04 00 CA 81 C3 66 B6 04 01 00 00 39 1A 11 80 19 61 9F 43 [23:54:31]CommunicateWithHost err = 0 [23:54:31]CheckOFDResponse [23:54:31]1017 (14) - 77093643461234 [23:54:31]1041 (16) - 0000000000871776 [23:54:31]1040 (4) - 139526 [23:54:31]1012 (4) - 19.08.2024 17:32 [23:54:31]1206 (1) - 0 [23:54:31]OFD Sender: Remove packet 139526 [23:54:31]ProducePacketName [23:54:31]name=ofd_packets/00139526 [23:54:31]NVStorageDeleteData [23:54:31]Write to MH i2c: 01 00 00 E8 0A F2 [23:54:31]Write i2c OK [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: 01 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: 01 07 00 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 CC 0C D1 [23:54:31]RasterBufferAndPrint [23:54:31]line [23:54:31]line [23:54:31]line [23:54:31]line [23:54:31]line [23:54:31]written 0, free lines is 3282 [23:54:31]MH_Cut [23:54:31]Write to MH i2c: D1 01 00 EF 0A 01 CB [23:54:31]Write i2c OK [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: D1 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: D1 01 00 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: D1 01 00 EF 0A 00 CA [23:54:31]Write to MH i2c: 01 00 00 F0 0A FA [23:54:31]Write i2c OK [23:54:31]MH_I2C_Read... [23:54:32]OFD Sender: No OFD packet to send [23:54:32]*** Cut start [23:54:32]*** Partial cut [23:54:32]*** CUTSNS_PIN = 1 [23:54:32]*** CUTSNS_PIN = 0 [23:54:32]*** Brake cut motor [23:54:32]Read from MH i2c: 01 [23:54:32]MH_I2C_Read... [23:54:32]*** Stop cut motor [23:54:32]*** Cut end [23:54:32]Read from MH i2c: 01 07 00 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 FF 0F 0F [23:54:32]process_action close_receipt done [23:54:32]requested_data is exist [23:54:32]produce_requested_data [23:54:32]requested_item fm.sn is exist - process it [23:54:32]wFMCommunicate request_size=4 [23:54:32]MH_SAM_APDU [23:54:32]CAPDU: 80 11 00 00 [23:54:32]Write to MH i2c: E2 08 00 F1 0A 80 11 00 00 00 00 00 00 75 [23:54:32]Write i2c OK [23:54:32]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 17 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 17 00 F1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [23:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:54:33]wFMCommunicate OK [23:54:33]requested_item fd.num is exist - process it [23:54:33]SAM_PROTO_GetFieldsCounters [23:54:33]wFMCommunicate request_size=4 [23:54:33]MH_SAM_APDU [23:54:33]CAPDU: 80 13 00 00 [23:54:33]Write to MH i2c: E2 08 00 F2 0A 80 13 00 00 00 00 00 00 78 [23:54:33]Write i2c OK [23:54:33]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 62 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 62 00 F2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [23:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:33]wFMCommunicate OK [23:54:33]SAM_PROTO_GetFieldsCounters done [23:54:33]requested_item shift.num is exist - process it [23:54:33]requested_item shift.opened is exist - process it [23:54:33]req_shift_opened [23:54:33]FM_GetShiftState [23:54:33]SAM_PROTO_GetShiftState [23:54:33]wFMCommunicate request_size=4 [23:54:33]MH_SAM_APDU [23:54:33]CAPDU: 80 13 01 00 [23:54:33]Write to MH i2c: E2 08 00 F3 0A 80 13 01 00 00 00 00 00 7A [23:54:33]Write i2c OK [23:54:33]MH_I2C_Read... [23:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:33]Read from MH i2c: E2 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 0E 00 [23:54:33]MH_I2C_Read... [23:54:33]Read from MH i2c: E2 0E 00 F3 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 31 [23:54:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [23:54:33]wFMCommunicate OK [23:54:33]SAM_PROTO_GetShiftState done [23:54:33]FM_GetShiftState done [23:54:33]req_shift_opened done [23:54:33]requested_item shift.open_date is exist - process it [23:54:33]req_shift_open_date [23:54:33]req_shift_open_date done [23:54:33]produce_requested_data done [23:54:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139526,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [23:54:33]process_action_free close_receipt [23:54:33]json_value_free [23:54:33]json_value_free done [23:54:33]process_json_proto returns [23:54:33]Send response to host [23:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139526,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [23:54:33]free response buf [23:54:33]execute_script done [23:54:33]execute_script returns [23:54:33]free content buf [23:54:33]Sock 9.Close socket [23:54:33]Sock 9.Thread stoped [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:54]int [00:15:54]Write to MH i2c: 01 00 00 F4 0A FE [00:15:54]*** FLAG_PRN_KEY set [00:15:54]Write i2c OK [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 07 00 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 07 00 F4 0A 00 08 00 00 00 FF 0F 1B [00:15:54]state=0 [00:15:54]Key pressed [00:15:54]Feed [00:15:54]Write to MH i2c: D8 00 00 F5 0A D6 [00:15:54]Write i2c OK [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: D8 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: D8 01 00 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: D8 01 00 F5 0A 00 D7 [00:15:54]int [00:15:54]Write to MH i2c: 01 00 00 F6 0A 00 [00:15:54]Write i2c OK [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 07 00 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 07 00 F6 0A 00 48 00 00 00 3C 00 8B [00:15:54]state=2 [00:15:54]Key pressed [00:15:54]int [00:15:54]Write to MH i2c: 01 00 00 F7 0A 01 [00:15:54]*** FLAG_PRN_KEY reset [00:15:54]Write i2c OK [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 07 00 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 07 00 F7 0A 00 00 00 00 00 F5 0F 0C [00:15:54]state=2 [00:15:54]Stop feed [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:14]accept exits with 7 [00:18:14]New connection [00:18:14]New thread 3067071844 created [00:18:14]Thread 3067215204 joined [00:18:14]Waiting for new connection... [00:18:14] Sock 7.Parse request [00:18:14]Sock 7.Check first char [00:18:14]Sock 7.First char is OK [00:18:14]request: POST /json_proto HTTP/1.0 [00:18:14]Method: POST [00:18:14]URL: /json_proto [00:18:14]Method is POST - this is cgi request [00:18:14]url: /json_proto [00:18:14]query_string will be loaded in cgi processing [00:18:14]execute_cgi json_proto POST (null) [00:18:14]execute_cgi path=json_proto method=POST [00:18:14]POST find Content-Length [00:18:14]Host: 172.17.45.67:8080 [00:18:14]Content-Length: 215 [00:18:14]Content-Type: application/json [00:18:14] [00:18:14]POST finish read [00:18:14]Found Content-Length = 215 [00:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:14]execute_script... [00:18:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:14]POST & json_proto [00:18:14]process_json_proto [00:18:14]json parsed OK: [00:18:14]protocol is kg_v1.0 [00:18:14]action value=get_value [00:18:14]process_action get_value [00:18:14]cmd_get_value [00:18:14]process_action get_value done [00:18:14]requested_data is exist [00:18:14]produce_requested_data [00:18:14]requested_item kkm.sn is exist - process it [00:18:14]requested_item kkm.ver is exist - process it [00:18:14]requested_item fm.sn is exist - process it [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 11 00 00 [00:18:14]Write to MH i2c: E2 08 00 F8 0A 80 11 00 00 00 00 00 00 7C [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 17 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 17 00 F8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [00:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:18:14]wFMCommunicate OK [00:18:14]requested_item fd.num is exist - process it [00:18:14]SAM_PROTO_GetFieldsCounters [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 13 00 00 [00:18:14]Write to MH i2c: E2 08 00 F9 0A 80 13 00 00 00 00 00 00 7F [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 62 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 62 00 F9 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [00:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:14]wFMCommunicate OK [00:18:14]SAM_PROTO_GetFieldsCounters done [00:18:14]requested_item shift.num is exist - process it [00:18:14]requested_item shift.opened is exist - process it [00:18:14]req_shift_opened [00:18:14]FM_GetShiftState [00:18:14]SAM_PROTO_GetShiftState [00:18:14]wFMCommunicate request_size=4 [00:18:14]MH_SAM_APDU [00:18:14]CAPDU: 80 13 01 00 [00:18:14]Write to MH i2c: E2 08 00 FA 0A 80 13 01 00 00 00 00 00 81 [00:18:14]Write i2c OK [00:18:14]MH_I2C_Read... [00:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:14]Read from MH i2c: E2 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 0E 00 [00:18:14]MH_I2C_Read... [00:18:14]Read from MH i2c: E2 0E 00 FA 0A 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 38 [00:18:14]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [00:18:14]wFMCommunicate OK [00:18:14]SAM_PROTO_GetShiftState done [00:18:14]FM_GetShiftState done [00:18:14]req_shift_opened done [00:18:14]requested_item shift.open_date is exist - process it [00:18:14]req_shift_open_date [00:18:14]req_shift_open_date done [00:18:14]produce_requested_data done [00:18:14]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139526,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [00:18:14]process_action_free get_value [00:18:14]json_value_free [00:18:14]json_value_free done [00:18:14]process_json_proto returns [00:18:14]Send response to host [00:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139526,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [00:18:14]free response buf [00:18:14]execute_script done [00:18:14]execute_script returns [00:18:14]free content buf [00:18:14]Sock 7.Close socket [00:18:14]Sock 7.Thread stoped [00:18:14]accept exits with 9 [00:18:14]New connection [00:18:14]New thread 3067215204 created [00:18:14]Thread 3067071844 joined [00:18:14]Waiting for new connection... [00:18:14] Sock 9.Parse request [00:18:14]Sock 9.Check first char [00:18:14]Sock 9.First char is OK [00:18:14]request: POST /json_proto HTTP/1.0 [00:18:14]Method: POST [00:18:14]URL: /json_proto [00:18:14]Method is POST - this is cgi request [00:18:14]url: /json_proto [00:18:14]query_string will be loaded in cgi processing [00:18:14]execute_cgi json_proto POST (null) [00:18:14]execute_cgi path=json_proto method=POST [00:18:14]POST find Content-Length [00:18:14]Host: 172.17.45.67:8080 [00:18:14]Content-Length: 331 [00:18:14]Content-Type: application/json [00:18:14] [00:18:14]POST finish read [00:18:14]Found Content-Length = 331 [00:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:14]execute_script... [00:18:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:14]POST & json_proto [00:18:14]process_json_proto [00:18:14]json parsed OK: [00:18:14]protocol is kg_v1.0 [00:18:14]action value=get_value [00:18:15]process_action get_value [00:18:15]cmd_get_value [00:18:15]process_action get_value done [00:18:15]requested_data is exist [00:18:15]produce_requested_data [00:18:15]requested_item fm.sale.total is exist - process it [00:18:15]SAM_PROTO_GetFMData [00:18:15]wFMCommunicate request_size=4 [00:18:15]MH_SAM_APDU [00:18:15]CAPDU: 80 13 03 00 [00:18:15]Write to MH i2c: E2 08 00 FB 0A 80 13 03 00 00 00 00 00 84 [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:15]Read from MH i2c: E2 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 FB 0A 00 C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 87 [00:18:15]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [00:18:15]wFMCommunicate OK [00:18:15]wFMCommunicate request_size=4 [00:18:15]MH_SAM_APDU [00:18:15]CAPDU: 80 17 00 00 [00:18:15]Write to MH i2c: E2 08 00 FC 0A 80 17 00 00 00 00 00 00 86 [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:15]Read from MH i2c: E2 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 [00:18:15]MH_I2C_Read... [00:18:15]Read from MH i2c: E2 FD 00 FC 0A 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 8B [00:18:15]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:18:15]wFMCommunicate OK [00:18:15]wFMCommunicate request_size=4 [00:18:15]MH_SAM_APDU [00:18:15]CAPDU: 80 17 00 00 [00:18:15]Write to MH i2c: E2 08 00 FD 0A 80 17 00 00 00 00 00 00 87 [00:18:15]Write i2c OK [00:18:15]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:16]Read from MH i2c: E2 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 FD 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 FD 00 FD 0A 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 9C [00:18:16]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:18:16]wFMCommunicate OK [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 17 00 00 [00:18:16]Write to MH i2c: E2 08 00 FE 0A 80 17 00 00 00 00 00 00 88 [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:16]Read from MH i2c: E2 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 FD 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 FD 00 FE 0A 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [00:18:16]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:16]wFMCommunicate OK [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 17 00 00 [00:18:16]Write to MH i2c: E2 08 00 FF 0A 80 17 00 00 00 00 00 00 89 [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:18:16]Read from MH i2c: E2 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 E1 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 E1 00 FF 0A 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [00:18:16]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:16]wFMCommunicate OK [00:18:16]SAM_PROTO_GetFMData done [00:18:16]requested_item fm.sale_refund.total is exist - process it [00:18:16]requested_item fm.buy.total is exist - process it [00:18:16]requested_item shift.sale.total is exist - process it [00:18:16]SAM_PROTO_GetShiftData [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 13 02 00 [00:18:16]Write to MH i2c: E2 08 00 00 0B 80 13 02 00 00 00 00 00 89 [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 00 0B 00 B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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 5B [00:18:17]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 01 0B 80 17 00 00 00 00 00 00 8C [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 01 0B 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 A5 [00:18:17]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:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 02 0B 80 17 00 00 00 00 00 00 8D [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 02 0B 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 46 [00:18:17]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:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 03 0B 80 17 00 00 00 00 00 00 8E [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 03 0B 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 06 [00:18:17]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:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=4 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 17 00 00 [00:18:18]Write to MH i2c: E2 08 00 04 0B 80 17 00 00 00 00 00 00 8F [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 CE 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 CE 00 04 0B 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 74 [00:18:18]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:18:18]wFMCommunicate OK [00:18:18]SAM_PROTO_GetShiftData done [00:18:18]requested_item shift.sale.total_cash is exist - process it [00:18:18]requested_item shift.sale_refund.total is exist - process it [00:18:18]requested_item shift.sale_refund.total_cash is exist - process it [00:18:18]requested_item shift.buy.total is exist - process it [00:18:18]requested_item shift.buy.total_cash is exist - process it [00:18:18]produce_requested_data done [00:18:18]produce_requested_data return {"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.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:18:18]process_action_free get_value [00:18:18]json_value_free [00:18:18]json_value_free done [00:18:18]process_json_proto returns [00:18:18]Send response to host [00:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.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:18:18]free response buf [00:18:18]execute_script done [00:18:18]execute_script returns [00:18:18]free content buf [00:18:18]Sock 9.Close socket [00:18:18]Sock 9.Thread stoped [00:18:18]accept exits with 7 [00:18:18]New connection [00:18:18]New thread 3067071844 created [00:18:18]Thread 3067215204 joined [00:18:18]Waiting for new connection... [00:18:18] Sock 7.Parse request [00:18:18]Sock 7.Check first char [00:18:18]Sock 7.First char is OK [00:18:18]request: POST /json_proto HTTP/1.0 [00:18:18]Method: POST [00:18:18]URL: /json_proto [00:18:18]Method is POST - this is cgi request [00:18:18]url: /json_proto [00:18:18]query_string will be loaded in cgi processing [00:18:18]execute_cgi json_proto POST (null) [00:18:18]execute_cgi path=json_proto method=POST [00:18:18]POST find Content-Length [00:18:18]Host: 172.17.45.67:8080 [00:18:18]Content-Length: 331 [00:18:18]Content-Type: application/json [00:18:18] [00:18:18]POST finish read [00:18:18]Found Content-Length = 331 [00:18:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:18]execute_script... [00:18:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:18]POST & json_proto [00:18:18]process_json_proto [00:18:18]json parsed OK: [00:18:18]protocol is kg_v1.0 [00:18:18]action value=get_value [00:18:18]process_action get_value [00:18:18]cmd_get_value [00:18:18]process_action get_value done [00:18:18]requested_data is exist [00:18:18]produce_requested_data [00:18:18]requested_item fm.sale.total is exist - process it [00:18:18]SAM_PROTO_GetFMData [00:18:18]wFMCommunicate request_size=4 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 13 03 00 [00:18:18]Write to MH i2c: E2 08 00 05 0B 80 13 03 00 00 00 00 00 8F [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]OFD Sender: No OFD packet to send [00:18:18]Read from MH i2c: E2 FD 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 FD 00 05 0B 00 C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 92 [00:18:18]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [00:18:19]wFMCommunicate OK [00:18:19]wFMCommunicate request_size=4 [00:18:19]MH_SAM_APDU [00:18:19]CAPDU: 80 17 00 00 [00:18:19]Write to MH i2c: E2 08 00 06 0B 80 17 00 00 00 00 00 00 91 [00:18:19]Write i2c OK [00:18:19]MH_I2C_Read... [00:18:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:19]Read from MH i2c: E2 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 FD 00 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 FD 00 06 0B 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 96 [00:18:19]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:18:19]wFMCommunicate OK [00:18:19]wFMCommunicate request_size=4 [00:18:19]MH_SAM_APDU [00:18:19]CAPDU: 80 17 00 00 [00:18:19]Write to MH i2c: E2 08 00 07 0B 80 17 00 00 00 00 00 00 92 [00:18:19]Write i2c OK [00:18:19]MH_I2C_Read... [00:18:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:19]Read from MH i2c: E2 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 FD 00 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 FD 00 07 0B 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 A7 [00:18:19]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:18:19]wFMCommunicate OK [00:18:19]wFMCommunicate request_size=4 [00:18:19]MH_SAM_APDU [00:18:19]CAPDU: 80 17 00 00 [00:18:19]Write to MH i2c: E2 08 00 08 0B 80 17 00 00 00 00 00 00 93 [00:18:19]Write i2c OK [00:18:19]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 08 0B 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0B [00:18:20]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:20]wFMCommunicate OK [00:18:20]wFMCommunicate request_size=4 [00:18:20]MH_SAM_APDU [00:18:20]CAPDU: 80 17 00 00 [00:18:20]Write to MH i2c: E2 08 00 09 0B 80 17 00 00 00 00 00 00 94 [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 E1 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 E1 00 09 0B 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [00:18:20]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:20]wFMCommunicate OK [00:18:20]SAM_PROTO_GetFMData done [00:18:20]requested_item fm.sale_refund.total is exist - process it [00:18:20]requested_item fm.buy.total is exist - process it [00:18:20]requested_item shift.sale.total is exist - process it [00:18:20]SAM_PROTO_GetShiftData [00:18:20]wFMCommunicate request_size=4 [00:18:20]MH_SAM_APDU [00:18:20]CAPDU: 80 13 02 00 [00:18:20]Write to MH i2c: E2 08 00 0A 0B 80 13 02 00 00 00 00 00 93 [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 0A 0B 00 B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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 65 [00:18:20]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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:18:21]wFMCommunicate OK [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 17 00 00 [00:18:21]Write to MH i2c: E2 08 00 0B 0B 80 17 00 00 00 00 00 00 96 [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:21]Read from MH i2c: E2 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 FD 00 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 FD 00 0B 0B 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 AF [00:18:21]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:18:21]wFMCommunicate OK [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 17 00 00 [00:18:21]Write to MH i2c: E2 08 00 0C 0B 80 17 00 00 00 00 00 00 97 [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:21]Read from MH i2c: E2 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 FD 00 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 FD 00 0C 0B 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 50 [00:18:21]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:18:21]wFMCommunicate OK [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 17 00 00 [00:18:21]Write to MH i2c: E2 08 00 0D 0B 80 17 00 00 00 00 00 00 98 [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 0D 0B 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 10 [00:18:22]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:18:22]wFMCommunicate OK [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 17 00 00 [00:18:22]Write to MH i2c: E2 08 00 0E 0B 80 17 00 00 00 00 00 00 99 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 CE 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 CE 00 0E 0B 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 7E [00:18:22]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:18:22]wFMCommunicate OK [00:18:22]SAM_PROTO_GetShiftData done [00:18:22]requested_item shift.sale.total_cash is exist - process it [00:18:22]requested_item shift.sale_refund.total is exist - process it [00:18:22]requested_item shift.sale_refund.total_cash is exist - process it [00:18:22]requested_item shift.buy.total is exist - process it [00:18:22]requested_item shift.buy.total_cash is exist - process it [00:18:22]produce_requested_data done [00:18:22]produce_requested_data return {"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.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:18:22]process_action_free get_value [00:18:22]json_value_free [00:18:22]json_value_free done [00:18:22]process_json_proto returns [00:18:22]Send response to host [00:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.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:18:22]free response buf [00:18:22]execute_script done [00:18:22]execute_script returns [00:18:22]free content buf [00:18:22]Sock 7.Close socket [00:18:22]Sock 7.Thread stoped [00:18:22]accept exits with 9 [00:18:22]New connection [00:18:22]New thread 3067215204 created [00:18:22]Thread 3067071844 joined [00:18:22]Waiting for new connection... [00:18:22] Sock 9.Parse request [00:18:22]Sock 9.Check first char [00:18:22]Sock 9.First char is OK [00:18:22]request: POST /json_proto HTTP/1.0 [00:18:22]Method: POST [00:18:22]URL: /json_proto [00:18:22]Method is POST - this is cgi request [00:18:22]url: /json_proto [00:18:22]query_string will be loaded in cgi processing [00:18:22]execute_cgi json_proto POST (null) [00:18:22]execute_cgi path=json_proto method=POST [00:18:22]POST find Content-Length [00:18:22]Host: 172.17.45.67:8080 [00:18:22]Content-Length: 251 [00:18:22]Content-Type: application/json [00:18:22] [00:18:22]POST finish read [00:18:22]Found Content-Length = 251 [00:18:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 2 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:22]execute_script... [00:18:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 2 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:22]POST & json_proto [00:18:22]process_json_proto [00:18:22]json parsed OK: [00:18:22]protocol is kg_v1.0 [00:18:22]action value=x_report [00:18:22]process_action x_report [00:18:22]cmd_x_report [00:18:22]MH_GetDate [00:18:22]Write to MH i2c: F0 00 00 0F 0B 09 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: F0 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: F0 09 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: F0 09 00 0F 0B 00 CF E0 C3 66 5F 7F 2B 66 59 [00:18:22]GetLastDocTimeStamp 1724111670 [00:18:22]current date 1724113103 [00:18:22]FM_GetShiftState [00:18:22]SAM_PROTO_GetShiftState [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 13 01 00 [00:18:22]Write to MH i2c: E2 08 00 10 0B 80 13 01 00 00 00 00 00 98 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 0E 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 0E 00 10 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 4F [00:18:22]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [00:18:22]wFMCommunicate OK [00:18:22]SAM_PROTO_GetShiftState done [00:18:22]FM_GetShiftState done [00:18:22]KKMCreateXReportDocument [00:18:22]Load OK [00:18:22]Malloc new data [00:18:22]MH_GetDate [00:18:22]Write to MH i2c: F0 00 00 11 0B 0B [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: F0 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: F0 09 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: F0 09 00 11 0B 00 CF E0 C3 66 5F 7F 2B 66 5B [00:18:22]Malloc new data [00:18:22]Malloc new data [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 11 00 00 [00:18:22]Write to MH i2c: E2 08 00 12 0B 80 11 00 00 00 00 00 00 97 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 17 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 17 00 12 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EE [00:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:18:22]wFMCommunicate OK [00:18:22]SAM_PROTO_GetFieldsCounters [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 13 00 00 [00:18:22]Write to MH i2c: E2 08 00 13 0B 80 13 00 00 00 00 00 00 9A [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 62 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 62 00 13 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [00:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:22]wFMCommunicate OK [00:18:22]SAM_PROTO_GetFieldsCounters done [00:18:22]Malloc new data [00:18:22]Malloc new data [00:18:22]Malloc new data [00:18:22]KKMCreateXReportDocument OK [00:18:22]KKMSetXReportData OK [00:18:22]KKMPrepareXReportFMData [00:18:23]SAM_PROTO_GetShiftData [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 13 02 00 [00:18:23]Write to MH i2c: E2 08 00 14 0B 80 13 02 00 00 00 00 00 9D [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 14 0B 00 B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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 6F [00:18:23]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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:18:23]wFMCommunicate OK [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 17 00 00 [00:18:23]Write to MH i2c: E2 08 00 15 0B 80 17 00 00 00 00 00 00 A0 [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:23]Read from MH i2c: E2 FD 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 15 0B 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 B9 [00:18:24]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 OFD Sender: No OFD packet to send [00:18:24]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:18:24]wFMCommunicate OK [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 17 00 00 [00:18:24]Write to MH i2c: E2 08 00 16 0B 80 17 00 00 00 00 00 00 A1 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 16 0B 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 5A [00:18:24]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:18:24]wFMCommunicate OK [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 17 00 00 [00:18:24]Write to MH i2c: E2 08 00 17 0B 80 17 00 00 00 00 00 00 A2 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 17 0B 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 1A [00:18:25]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:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 18 0B 80 17 00 00 00 00 00 00 A3 [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 CE 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 CE 00 18 0B 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 88 [00:18:25]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:18:25]wFMCommunicate OK [00:18:25]SAM_PROTO_GetShiftData done [00:18:25]1194 (1197) - счетчики итогов смены [00:18:25] 1134 (4) - 361 - количество чеков со всеми признаками расчетов [00:18:25] 1129 (158) - счетчики операций «приход» [00:18:25] 1135 (4) - 361 - количество чеков по признаку расчетов [00:18:25] 1201 (4) - 258094.00 - общая итоговая сумма в чеках [00:18:25] 1136 (4) - 240037.00 - итоговая сумма в чеках наличными [00:18:25] 1138 (3) - 18057.00 - итоговая сумма в чеках безналичными [00:18:25] 1024 (123) - суммы налогов [00:18:25] 1006 (9) - суммы НДС [00:18:25] 1010 (1) - 0% - код ставки НДС [00:18:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:25] 1006 (12) - суммы НДС [00:18:25] 1010 (1) - 12% - код ставки НДС [00:18:25] 1011 (3) - 27418.70 - сумма НДС по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 0% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (12) - суммы НСП [00:18:25] 1014 (1) - 1% - код ставки НСП [00:18:25] 1015 (3) - 2285.01 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 2% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 3% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 5% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 0,50% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 1,50% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1130 (141) - счетчики операций «возврат прихода» [00:18:25] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:25] 1024 (117) - суммы налогов [00:18:25] 1006 (9) - суммы НДС [00:18:25] 1010 (1) - 0% - код ставки НДС [00:18:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:25] 1006 (9) - суммы НДС [00:18:25] 1010 (1) - 12% - код ставки НДС [00:18:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 0% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 1% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 2% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 3% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 5% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 0,50% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 1,50% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1131 (141) - счетчики операций «расход» [00:18:25] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:25] 1024 (117) - суммы налогов [00:18:25] 1006 (9) - суммы НДС [00:18:25] 1010 (1) - 0% - код ставки НДС [00:18:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:25] 1006 (9) - суммы НДС [00:18:25] 1010 (1) - 12% - код ставки НДС [00:18:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 0% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 1% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 2% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 3% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 5% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 0,50% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 1,50% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1132 (141) - счетчики операций «возврат расхода» [00:18:25] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:25] 1024 (117) - суммы налогов [00:18:25] 1006 (9) - суммы НДС [00:18:25] 1010 (1) - 0% - код ставки НДС [00:18:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:25] 1006 (9) - суммы НДС [00:18:25] 1010 (1) - 12% - код ставки НДС [00:18:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 0% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 1% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 2% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 3% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 5% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 0,50% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1007 (9) - суммы НСП [00:18:25] 1014 (1) - 1,50% - код ставки НСП [00:18:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:25] 1133 (588) - - счетчики коррекции - не используются [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1194 (04AA) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1134 (046E) [00:18:26]Malloc new data [00:18:26]Processing tag 1129 (0469) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1135 (046F) [00:18:26]Malloc new data [00:18:26]Processing tag 1201 (04B1) [00:18:26]Malloc new data [00:18:26]Processing tag 1136 (0470) [00:18:26]Malloc new data [00:18:26]Processing tag 1138 (0472) [00:18:26]Malloc new data [00:18:26]Processing tag 1024 (0400) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1006 (03EE) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1010 (03F2) [00:18:26]Malloc new data [00:18:26]Processing tag 1011 (03F3) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1006 (03EE) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1010 (03F2) [00:18:26]Malloc new data [00:18:26]Processing tag 1011 (03F3) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]SetTLVBufToDocument err=0 [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1130 (046A) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1135 (046F) [00:18:26]Malloc new data [00:18:26]Processing tag 1201 (04B1) [00:18:26]Malloc new data [00:18:26]Processing tag 1136 (0470) [00:18:26]Malloc new data [00:18:26]Processing tag 1138 (0472) [00:18:26]Malloc new data [00:18:26]Processing tag 1024 (0400) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1006 (03EE) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1010 (03F2) [00:18:26]Malloc new data [00:18:26]Processing tag 1011 (03F3) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1006 (03EE) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1010 (03F2) [00:18:26]Malloc new data [00:18:26]Processing tag 1011 (03F3) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]SetTLVBufToDocument err=0 [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1131 (046B) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1135 (046F) [00:18:26]Malloc new data [00:18:26]Processing tag 1201 (04B1) [00:18:26]Malloc new data [00:18:26]Processing tag 1136 (0470) [00:18:26]Malloc new data [00:18:26]Processing tag 1138 (0472) [00:18:26]Malloc new data [00:18:26]Processing tag 1024 (0400) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1006 (03EE) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1010 (03F2) [00:18:26]Malloc new data [00:18:26]Processing tag 1011 (03F3) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1006 (03EE) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1010 (03F2) [00:18:26]Malloc new data [00:18:26]Processing tag 1011 (03F3) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]SetTLVBufToDocument err=0 [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1132 (046C) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1135 (046F) [00:18:26]Malloc new data [00:18:26]Processing tag 1201 (04B1) [00:18:26]Malloc new data [00:18:26]Processing tag 1136 (0470) [00:18:26]Malloc new data [00:18:26]Processing tag 1138 (0472) [00:18:26]Malloc new data [00:18:26]Processing tag 1024 (0400) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1006 (03EE) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1010 (03F2) [00:18:26]Malloc new data [00:18:26]Processing tag 1011 (03F3) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1006 (03EE) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1010 (03F2) [00:18:26]Malloc new data [00:18:26]Processing tag 1011 (03F3) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1007 (03EF) [00:18:26]Load OK [00:18:26]SetTLVBufToDocument [00:18:26]Processing tag 1014 (03F6) [00:18:26]Malloc new data [00:18:26]Processing tag 1015 (03F7) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]SetTLVBufToDocument err=0 [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Processing tag 1133 (046D) [00:18:26]Malloc new data [00:18:26]SetTLVBufToDocument err=0 [00:18:26]SetTLVBufToDocument err=0 [00:18:26]Malloc new data [00:18:26]SAM_PROTO_GetFMData [00:18:26]wFMCommunicate request_size=4 [00:18:26]MH_SAM_APDU [00:18:26]CAPDU: 80 13 03 00 [00:18:26]Write to MH i2c: E2 08 00 19 0B 80 13 03 00 00 00 00 00 A3 [00:18:26]Write i2c OK [00:18:26]MH_I2C_Read... [00:18:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:27]Read from MH i2c: E2 [00:18:27]MH_I2C_Read... [00:18:27]Read from MH i2c: E2 FD 00 [00:18:27]MH_I2C_Read... [00:18:27]Read from MH i2c: E2 FD 00 19 0B 00 C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 A6 [00:18:27]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [00:18:27]wFMCommunicate OK [00:18:27]wFMCommunicate request_size=4 [00:18:27]MH_SAM_APDU [00:18:27]CAPDU: 80 17 00 00 [00:18:27]Write to MH i2c: E2 08 00 1A 0B 80 17 00 00 00 00 00 00 A5 [00:18:27]Write i2c OK [00:18:27]MH_I2C_Read... [00:18:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:27]Read from MH i2c: E2 [00:18:27]MH_I2C_Read... [00:18:27]Read from MH i2c: E2 FD 00 [00:18:27]MH_I2C_Read... [00:18:27]Read from MH i2c: E2 FD 00 1A 0B 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 AA [00:18:27]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:18:27]wFMCommunicate OK [00:18:27]wFMCommunicate request_size=4 [00:18:27]MH_SAM_APDU [00:18:27]CAPDU: 80 17 00 00 [00:18:27]Write to MH i2c: E2 08 00 1B 0B 80 17 00 00 00 00 00 00 A6 [00:18:27]Write i2c OK [00:18:27]MH_I2C_Read... [00:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:28]Read from MH i2c: E2 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 1B 0B 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 BB [00:18:28]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:18:28]wFMCommunicate OK [00:18:28]wFMCommunicate request_size=4 [00:18:28]MH_SAM_APDU [00:18:28]CAPDU: 80 17 00 00 [00:18:28]Write to MH i2c: E2 08 00 1C 0B 80 17 00 00 00 00 00 00 A7 [00:18:28]Write i2c OK [00:18:28]MH_I2C_Read... [00:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:28]Read from MH i2c: E2 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 1C 0B 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [00:18:28]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:28]wFMCommunicate OK [00:18:28]wFMCommunicate request_size=4 [00:18:28]MH_SAM_APDU [00:18:28]CAPDU: 80 17 00 00 [00:18:28]Write to MH i2c: E2 08 00 1D 0B 80 17 00 00 00 00 00 00 A8 [00:18:28]Write i2c OK [00:18:28]MH_I2C_Read... [00:18:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:18:29]Read from MH i2c: E2 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 E1 00 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 E1 00 1D 0B 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 96 [00:18:29]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 OFD Sender: No OFD packet to send [00:18:29]00 90 00 [00:18:29]wFMCommunicate OK [00:18:29]SAM_PROTO_GetFMData done [00:18:29]FM_GetFMData:85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 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 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:30]oper:6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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:18:30]total:DF 70 47 3A 02 [00:18:30]Malloc new data [00:18:30]oper:6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 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 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:30]total:94 3F FD 01 [00:18:30]Malloc new data [00:18:30]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:18:30]total: [00:18:30]Malloc new data [00:18:30]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:18:30]total: [00:18:30]Malloc new data [00:18:30]KKMPrepareXReportFMData err=0 [00:18:30]Х отчет ИНН: 02508201610067 Кассир: Оператор 2 20.08.2024 00:18 Смена: 266 РНМ: 0000000000092569 ЗНМ: 0300000067 СНО: Общий режим Всего чеков: 361 ИТОГИ ПРИХОД Чеков: 361 Общий итог: 258094.00 Итого наличными: 240037.00 Итого безнал.: 18057.00 НДС 0% : 0.00 НДС 12% : 27418.70 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2285.01 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 240037.00 НС Приход: 95676950.71 НС Возвр.Прихода: 333741.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871776 [00:18:30]StoreToDocumentArchive [00:18:30]MH_GetDate [00:18:30]Write to MH i2c: F0 00 00 1E 0B 18 [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: F0 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: F0 09 00 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: F0 09 00 1E 0B 00 D7 E0 C3 66 5F 7F 2B 66 70 [00:18:30]shift 266 fd 1724113111 [00:18:30]Create dir for shift 0266 [00:18:30]save to /storage/0266/doc_1724113111 [00:18:30]save last doc name /storage/0266/doc_1724113111 to /storage/kkm_last_doc_name [00:18:30]save OK [00:18:30]Clear old archive folders... [00:18:30]NVStorageSaveData kkm_last_timestamp [00:18:30]File name is /storage/kkm_last_timestamp [00:18:30]Write 4 bytes [00:18:30]NVStorageSaveData done [00:18:30]ExternCall_PrintAddStr [00:18:30]wPrintStart [00:18:30]Write to MH i2c: 01 00 00 1F 0B 2A [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: 01 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: 01 07 00 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: 01 07 00 1F 0B 00 00 00 00 00 FF 0F 3F [00:18:30]RasterBufferAndPrint [00:18:30]line Х отчет [00:18:30]line ИНН: 02508201610067 [00:18:30]line Кассир: Оператор 2 [00:18:30]line 20.08.2024 00:18 [00:18:30]line Смена: 266 [00:18:30]line РНМ: 0000000000092569 [00:18:30]line ЗНМ: 0300000067 [00:18:30]line СНО: Общий режим [00:18:30]line Всего чеков: 361 [00:18:30]line ИТОГИ ПРИХОД [00:18:30]line Чеков: 361 [00:18:30]line Общий итог: 258094.00 [00:18:30]line Итого наличными: 240037.00 [00:18:30]line Итого безнал.: 18057.00 [00:18:30]line НДС 0% : 0.00 [00:18:30]line НДС 12% : 27418.70 [00:18:30]line НСП 0% : 0.00 [00:18:30]line НСП 1,50% : 0.00 [00:18:30]line НСП 0,50% : 0.00 [00:18:30]line НСП 5% : 0.00 [00:18:30]line НСП 3% : 0.00 [00:18:30]line НСП 2% : 0.00 [00:18:30]line НСП 1% : 2285.01 [00:18:30]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:18:30]line Чеков: 0 [00:18:30]line Общий итог: 0.00 [00:18:30]line Итого наличными: 0.00 [00:18:30]line Итого безнал.: 0.00 [00:18:30]line НДС 0% : 0.00 [00:18:30]line НДС 12% : 0.00 [00:18:30]line НСП 0% : 0.00 [00:18:30]line НСП 1,50% : 0.00 [00:18:30]line НСП 0,50% : 0.00 [00:18:30]line НСП 5% : 0.00 [00:18:30]line НСП 3% : 0.00 [00:18:30]line НСП 2% : 0.00 [00:18:30]line НСП 1% : 0.00 [00:18:30]line ИТОГИ РАСХОД [00:18:30]line Чеков: 0 [00:18:30]line Общий итог: 0.00 [00:18:30]line Итого наличными: 0.00 [00:18:30]line Итого безнал.: 0.00 [00:18:30]line НДС 0% : 0.00 [00:18:30]line НДС 12% : 0.00 [00:18:30]line НСП 0% : 0.00 [00:18:30]line НСП 1,50% : 0.00 [00:18:30]line НСП 0,50% : 0.00 [00:18:30]line НСП 5% : 0.00 [00:18:30]line НСП 3% : 0.00 [00:18:30]line НСП 2% : 0.00 [00:18:30]line НСП 1% : 0.00 [00:18:30]line ИТОГИ ВОЗВРАТ РАСХОДА [00:18:30]line Чеков: 0 [00:18:30]line Общий итог: 0.00 [00:18:30]line Итого наличными: 0.00 [00:18:30]line Итого безнал.: 0.00 [00:18:30]line НДС 0% : 0.00 [00:18:30]line НДС 12% : 0.00 [00:18:30]line НСП 0% : 0.00 [00:18:30]line НСП 1,50% : 0.00 [00:18:30]line НСП 0,50% : 0.00 [00:18:30]line НСП 5% : 0.00 [00:18:30]line НСП 3% : 0.00 [00:18:30]line НСП 2% : 0.00 [00:18:30]line НСП 1% : 0.00 [00:18:30]line Сумма внесений: 0.00 [00:18:30]line Сумма выплат: 0.00 [00:18:30]line Нал. в кассе: 240037.00 [00:18:30]line НС Приход: 95676950.71 [00:18:30]line НС Возвр.Прихода: 333741.00 [00:18:30]line НС Расход: 0.00 [00:18:30]line НС Возвр.Расхода: 0.00 [00:18:30]line ФМ: 0000000000871776 [00:18:30]written 0, free lines is 4095 [00:18:31]Write to MH i2c: 01 00 00 6A 0B 75 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: 01 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: 01 07 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: 01 07 00 6A 0B 00 00 00 00 00 C2 0A 48 [00:18:31]RasterBufferAndPrint [00:18:31]line [00:18:31]line [00:18:31]line [00:18:31]line [00:18:31]line [00:18:31]written 0, free lines is 2788 [00:18:31]MH_Cut [00:18:31]Write to MH i2c: D1 01 00 71 0B 01 4E [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: D1 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: D1 01 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: D1 01 00 71 0B 00 4D [00:18:31]Write to MH i2c: 01 00 00 72 0B 7D [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:32]*** Cut start [00:18:32]*** Partial cut [00:18:32]*** CUTSNS_PIN = 1 [00:18:32]*** CUTSNS_PIN = 0 [00:18:32]*** Brake cut motor [00:18:33]Read from MH i2c: 01 [00:18:33]MH_I2C_Read... [00:18:33]*** Stop cut motor [00:18:33]*** Cut end [00:18:33]Read from MH i2c: 01 07 00 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 FF 0F 92 [00:18:33]process_action x_report done [00:18:33]requested_data is exist [00:18:33]produce_requested_data [00:18:33]requested_item fd.num is exist - process it [00:18:33]SAM_PROTO_GetFieldsCounters [00:18:33]wFMCommunicate request_size=4 [00:18:33]MH_SAM_APDU [00:18:33]CAPDU: 80 13 00 00 [00:18:33]Write to MH i2c: E2 08 00 73 0B 80 13 00 00 00 00 00 00 FA [00:18:33]Write i2c OK [00:18:33]MH_I2C_Read... [00:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:33]Read from MH i2c: E2 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 62 00 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 62 00 73 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [00:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:33]wFMCommunicate OK [00:18:33]SAM_PROTO_GetFieldsCounters done [00:18:33]requested_item shift.num is exist - process it [00:18:33]requested_item shift.opened is exist - process it [00:18:33]req_shift_opened [00:18:33]FM_GetShiftState [00:18:33]SAM_PROTO_GetShiftState [00:18:33]wFMCommunicate request_size=4 [00:18:33]MH_SAM_APDU [00:18:33]CAPDU: 80 13 01 00 [00:18:33]Write to MH i2c: E2 08 00 74 0B 80 13 01 00 00 00 00 00 FC [00:18:33]Write i2c OK [00:18:33]MH_I2C_Read... [00:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:33]Read from MH i2c: E2 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 0E 00 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 0E 00 74 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B3 [00:18:33]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [00:18:33]wFMCommunicate OK [00:18:33]SAM_PROTO_GetShiftState done [00:18:33]FM_GetShiftState done [00:18:33]req_shift_opened done [00:18:33]requested_item shift.open_date is exist - process it [00:18:33]req_shift_open_date [00:18:33]req_shift_open_date done [00:18:33]produce_requested_data done [00:18:33]produce_requested_data return {"fd.num":139526,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [00:18:33]process_action_free x_report [00:18:33]json_value_free [00:18:33]json_value_free done [00:18:33]process_json_proto returns [00:18:33]Send response to host [00:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139526,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [00:18:33]free response buf [00:18:33]execute_script done [00:18:33]execute_script returns [00:18:33]free content buf [00:18:33]Sock 9.Close socket [00:18:33]Sock 9.Thread stoped [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:18:59]accept exits with 7 [00:18:59]New connection [00:18:59]New thread 3067071844 created [00:18:59]Thread 3067215204 joined [00:18:59]Waiting for new connection... [00:18:59] Sock 7.Parse request [00:18:59]Sock 7.Check first char [00:18:59]Sock 7.First char is OK [00:18:59]request: POST /json_proto HTTP/1.0 [00:18:59]Method: POST [00:18:59]URL: /json_proto [00:18:59]Method is POST - this is cgi request [00:18:59]url: /json_proto [00:18:59]query_string will be loaded in cgi processing [00:18:59]execute_cgi json_proto POST (null) [00:18:59]execute_cgi path=json_proto method=POST [00:18:59]POST find Content-Length [00:18:59]Host: 172.17.45.67:8080 [00:18:59]Content-Length: 215 [00:18:59]Content-Type: application/json [00:18:59] [00:18:59]POST finish read [00:18:59]Found Content-Length = 215 [00:18:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:59]execute_script... [00:18:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:59]POST & json_proto [00:18:59]process_json_proto [00:18:59]json parsed OK: [00:18:59]protocol is kg_v1.0 [00:18:59]action value=get_value [00:18:59]process_action get_value [00:18:59]cmd_get_value [00:18:59]process_action get_value done [00:18:59]requested_data is exist [00:18:59]produce_requested_data [00:18:59]requested_item kkm.sn is exist - process it [00:18:59]requested_item kkm.ver is exist - process it [00:18:59]requested_item fm.sn is exist - process it [00:18:59]wFMCommunicate request_size=4 [00:18:59]MH_SAM_APDU [00:18:59]CAPDU: 80 11 00 00 [00:18:59]Write to MH i2c: E2 08 00 75 0B 80 11 00 00 00 00 00 00 FA [00:18:59]Write i2c OK [00:18:59]MH_I2C_Read... [00:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:00]Read from MH i2c: E2 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 17 00 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 17 00 75 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 51 [00:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:19:00]wFMCommunicate OK [00:19:00]requested_item fd.num is exist - process it [00:19:00]SAM_PROTO_GetFieldsCounters [00:19:00]wFMCommunicate request_size=4 [00:19:00]MH_SAM_APDU [00:19:00]CAPDU: 80 13 00 00 [00:19:00]Write to MH i2c: E2 08 00 76 0B 80 13 00 00 00 00 00 00 FD [00:19:00]Write i2c OK [00:19:00]MH_I2C_Read... [00:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:00]Read from MH i2c: E2 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 62 00 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 62 00 76 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [00:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:00]wFMCommunicate OK [00:19:00]SAM_PROTO_GetFieldsCounters done [00:19:00]requested_item shift.num is exist - process it [00:19:00]requested_item shift.opened is exist - process it [00:19:00]req_shift_opened [00:19:00]FM_GetShiftState [00:19:00]SAM_PROTO_GetShiftState [00:19:00]wFMCommunicate request_size=4 [00:19:00]MH_SAM_APDU [00:19:00]CAPDU: 80 13 01 00 [00:19:00]Write to MH i2c: E2 08 00 77 0B 80 13 01 00 00 00 00 00 FF [00:19:00]Write i2c OK [00:19:00]MH_I2C_Read... [00:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:00]Read from MH i2c: E2 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 0E 00 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 0E 00 77 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 B6 [00:19:00]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [00:19:00]wFMCommunicate OK [00:19:00]SAM_PROTO_GetShiftState done [00:19:00]FM_GetShiftState done [00:19:00]req_shift_opened done [00:19:00]requested_item shift.open_date is exist - process it [00:19:00]req_shift_open_date [00:19:00]req_shift_open_date done [00:19:00]produce_requested_data done [00:19:00]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139526,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888} [00:19:00]process_action_free get_value [00:19:00]json_value_free [00:19:00]json_value_free done [00:19:00]process_json_proto returns [00:19:00]Send response to host [00:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139526,"shift.num":452,"shift.opened":1,"shift.open_date":1724027888}}} [00:19:00]free response buf [00:19:00]execute_script done [00:19:00]execute_script returns [00:19:00]free content buf [00:19:00]Sock 7.Close socket [00:19:00]Sock 7.Thread stoped [00:19:00]accept exits with 9 [00:19:00]New connection [00:19:00]New thread 3067215204 created [00:19:00]Thread 3067071844 joined [00:19:00]Waiting for new connection... [00:19:00] Sock 9.Parse request [00:19:00]Sock 9.Check first char [00:19:00]Sock 9.First char is OK [00:19:00]request: POST /json_proto HTTP/1.0 [00:19:00]Method: POST [00:19:00]URL: /json_proto [00:19:00]Method is POST - this is cgi request [00:19:00]url: /json_proto [00:19:00]query_string will be loaded in cgi processing [00:19:00]execute_cgi json_proto POST (null) [00:19:00]execute_cgi path=json_proto method=POST [00:19:00]POST find Content-Length [00:19:00]Host: 172.17.45.67:8080 [00:19:00]Content-Length: 331 [00:19:00]Content-Type: application/json [00:19:00] [00:19:00]POST finish read [00:19:00]Found Content-Length = 331 [00:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:00]execute_script... [00:19:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:00]POST & json_proto [00:19:00]process_json_proto [00:19:00]json parsed OK: [00:19:00]protocol is kg_v1.0 [00:19:00]action value=get_value [00:19:00]process_action get_value [00:19:00]cmd_get_value [00:19:00]process_action get_value done [00:19:00]requested_data is exist [00:19:00]produce_requested_data [00:19:00]requested_item fm.sale.total is exist - process it [00:19:00]SAM_PROTO_GetFMData [00:19:00]wFMCommunicate request_size=4 [00:19:00]MH_SAM_APDU [00:19:00]CAPDU: 80 13 03 00 [00:19:00]Write to MH i2c: E2 08 00 78 0B 80 13 03 00 00 00 00 00 02 [00:19:00]Write i2c OK [00:19:00]MH_I2C_Read... [00:19:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:00]Read from MH i2c: E2 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 FD 00 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 FD 00 78 0B 00 C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 05 [00:19:00]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [00:19:00]wFMCommunicate OK [00:19:00]wFMCommunicate request_size=4 [00:19:00]MH_SAM_APDU [00:19:00]CAPDU: 80 17 00 00 [00:19:00]Write to MH i2c: E2 08 00 79 0B 80 17 00 00 00 00 00 00 04 [00:19:00]Write i2c OK [00:19:00]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 79 0B 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 09 [00:19:01]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:19:01]wFMCommunicate OK [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 17 00 00 [00:19:01]Write to MH i2c: E2 08 00 7A 0B 80 17 00 00 00 00 00 00 05 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 7A 0B 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 1A [00:19:01]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:19:01]wFMCommunicate OK [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 17 00 00 [00:19:01]Write to MH i2c: E2 08 00 7B 0B 80 17 00 00 00 00 00 00 06 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 7B 0B 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7E [00:19:01]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:02]wFMCommunicate OK [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 17 00 00 [00:19:02]Write to MH i2c: E2 08 00 7C 0B 80 17 00 00 00 00 00 00 07 [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 E1 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 E1 00 7C 0B 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F5 [00:19:02]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:02]wFMCommunicate OK [00:19:02]SAM_PROTO_GetFMData done [00:19:02]requested_item fm.sale_refund.total is exist - process it [00:19:02]requested_item fm.buy.total is exist - process it [00:19:02]requested_item shift.sale.total is exist - process it [00:19:02]SAM_PROTO_GetShiftData [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 13 02 00 [00:19:02]Write to MH i2c: E2 08 00 7D 0B 80 13 02 00 00 00 00 00 06 [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 7D 0B 00 B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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 D8 [00:19:02]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 17 00 00 [00:19:03]Write to MH i2c: E2 08 00 7E 0B 80 17 00 00 00 00 00 00 09 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 7E 0B 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 22 [00:19:03]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:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 17 00 00 [00:19:03]Write to MH i2c: E2 08 00 7F 0B 80 17 00 00 00 00 00 00 0A [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 7F 0B 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 C3 [00:19:03]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:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 17 00 00 [00:19:03]Write to MH i2c: E2 08 00 80 0B 80 17 00 00 00 00 00 00 0B [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 FD 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 FD 00 80 0B 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 83 [00:19:04]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:19:04]wFMCommunicate OK [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 17 00 00 [00:19:04]Write to MH i2c: E2 08 00 81 0B 80 17 00 00 00 00 00 00 0C [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 CE 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 CE 00 81 0B 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 F1 [00:19: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:19:04]wFMCommunicate OK [00:19:04]SAM_PROTO_GetShiftData done [00:19:04]requested_item shift.sale.total_cash is exist - process it [00:19:04]requested_item shift.sale_refund.total is exist - process it [00:19:04]requested_item shift.sale_refund.total_cash is exist - process it [00:19:04]requested_item shift.buy.total is exist - process it [00:19:04]requested_item shift.buy.total_cash is exist - process it [00:19:04]produce_requested_data done [00:19:04]produce_requested_data return {"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.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:19:04]process_action_free get_value [00:19:04]json_value_free [00:19:04]json_value_free done [00:19:04]process_json_proto returns [00:19:04]OFD Sender: No OFD packet to send [00:19:04]Send response to host [00:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.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:19:04]free response buf [00:19:04]execute_script done [00:19:04]execute_script returns [00:19:04]free content buf [00:19:04]Sock 9.Close socket [00:19:04]Sock 9.Thread stoped [00:19:04]accept exits with 7 [00:19:04]New connection [00:19:04]New thread 3067071844 created [00:19:04]Thread 3067215204 joined [00:19:04]Waiting for new connection... [00:19:04] Sock 7.Parse request [00:19:04]Sock 7.Check first char [00:19:04]Sock 7.First char is OK [00:19:04]request: POST /json_proto HTTP/1.0 [00:19:04]Method: POST [00:19:04]URL: /json_proto [00:19:04]Method is POST - this is cgi request [00:19:04]url: /json_proto [00:19:04]query_string will be loaded in cgi processing [00:19:04]execute_cgi json_proto POST (null) [00:19:04]execute_cgi path=json_proto method=POST [00:19:04]POST find Content-Length [00:19:04]Host: 172.17.45.67:8080 [00:19:04]Content-Length: 331 [00:19:04]Content-Type: application/json [00:19:04] [00:19:04]POST finish read [00:19:04]Found Content-Length = 331 [00:19:04]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:19:04]execute_script... [00:19:04]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:19:04]POST & json_proto [00:19:04]process_json_proto [00:19:04]json parsed OK: [00:19:04]protocol is kg_v1.0 [00:19:04]action value=get_value [00:19:04]process_action get_value [00:19:04]cmd_get_value [00:19:04]process_action get_value done [00:19:04]requested_data is exist [00:19:04]produce_requested_data [00:19:04]requested_item fm.sale.total is exist - process it [00:19:04]SAM_PROTO_GetFMData [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 13 03 00 [00:19:04]Write to MH i2c: E2 08 00 82 0B 80 13 03 00 00 00 00 00 0C [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 82 0B 00 C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 0F [00:19:05]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [00:19:05]wFMCommunicate OK [00:19:05]wFMCommunicate request_size=4 [00:19:05]MH_SAM_APDU [00:19:05]CAPDU: 80 17 00 00 [00:19:05]Write to MH i2c: E2 08 00 83 0B 80 17 00 00 00 00 00 00 0E [00:19:05]Write i2c OK [00:19:05]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 83 0B 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 13 [00:19:05]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:19:06]wFMCommunicate OK [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 17 00 00 [00:19:06]Write to MH i2c: E2 08 00 84 0B 80 17 00 00 00 00 00 00 0F [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 84 0B 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 24 [00:19:06]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:19:06]wFMCommunicate OK [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 17 00 00 [00:19:06]Write to MH i2c: E2 08 00 85 0B 80 17 00 00 00 00 00 00 10 [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 85 0B 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 88 [00:19:06]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:06]wFMCommunicate OK [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 17 00 00 [00:19:06]Write to MH i2c: E2 08 00 86 0B 80 17 00 00 00 00 00 00 11 [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 E1 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 E1 00 86 0B 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FF [00:19:07]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:07]wFMCommunicate OK [00:19:07]SAM_PROTO_GetFMData done [00:19:07]requested_item fm.sale_refund.total is exist - process it [00:19:07]requested_item fm.buy.total is exist - process it [00:19:07]requested_item shift.sale.total is exist - process it [00:19:07]SAM_PROTO_GetShiftData [00:19:07]wFMCommunicate request_size=4 [00:19:07]MH_SAM_APDU [00:19:07]CAPDU: 80 13 02 00 [00:19:07]Write to MH i2c: E2 08 00 87 0B 80 13 02 00 00 00 00 00 10 [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 87 0B 00 B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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 E2 [00:19:08]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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:19:08]wFMCommunicate OK [00:19:08]wFMCommunicate request_size=4 [00:19:08]MH_SAM_APDU [00:19:08]CAPDU: 80 17 00 00 [00:19:08]Write to MH i2c: E2 08 00 88 0B 80 17 00 00 00 00 00 00 13 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:08]Read from MH i2c: E2 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 FD 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 FD 00 88 0B 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 2C [00:19:08]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:19:08]wFMCommunicate OK [00:19:08]wFMCommunicate request_size=4 [00:19:08]MH_SAM_APDU [00:19:08]CAPDU: 80 17 00 00 [00:19:08]Write to MH i2c: E2 08 00 89 0B 80 17 00 00 00 00 00 00 14 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:08]Read from MH i2c: E2 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 FD 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 FD 00 89 0B 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 CD [00:19:09]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:19:09]wFMCommunicate OK [00:19:09]wFMCommunicate request_size=4 [00:19:09]MH_SAM_APDU [00:19:09]CAPDU: 80 17 00 00 [00:19:09]Write to MH i2c: E2 08 00 8A 0B 80 17 00 00 00 00 00 00 15 [00:19:09]Write i2c OK [00:19:09]MH_I2C_Read... [00:19:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:09]Read from MH i2c: E2 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 FD 00 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 FD 00 8A 0B 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 8D [00:19:09]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:19:09]wFMCommunicate OK [00:19:09]wFMCommunicate request_size=4 [00:19:09]MH_SAM_APDU [00:19:09]CAPDU: 80 17 00 00 [00:19:09]Write to MH i2c: E2 08 00 8B 0B 80 17 00 00 00 00 00 00 16 [00:19:09]Write i2c OK [00:19:09]MH_I2C_Read... [00:19:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:09]Read from MH i2c: E2 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 CE 00 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 CE 00 8B 0B 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 FB [00:19:10]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 OFD Sender: No OFD packet to send [00:19:10]01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:10]wFMCommunicate OK [00:19:10]SAM_PROTO_GetShiftData done [00:19:10]requested_item shift.sale.total_cash is exist - process it [00:19:10]requested_item shift.sale_refund.total is exist - process it [00:19:10]requested_item shift.sale_refund.total_cash is exist - process it [00:19:10]requested_item shift.buy.total is exist - process it [00:19:10]requested_item shift.buy.total_cash is exist - process it [00:19:10]produce_requested_data done [00:19:10]produce_requested_data return {"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.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:19:10]process_action_free get_value [00:19:10]json_value_free [00:19:10]json_value_free done [00:19:10]process_json_proto returns [00:19:10]Send response to host [00:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.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:19:10]free response buf [00:19:10]execute_script done [00:19:10]execute_script returns [00:19:10]free content buf [00:19:10]Sock 7.Close socket [00:19:10]Sock 7.Thread stoped [00:19:10]accept exits with 9 [00:19:10]New connection [00:19:10]New thread 3067215204 created [00:19:10]Thread 3067071844 joined [00:19:10]Waiting for new connection... [00:19:10] Sock 9.Parse request [00:19:10]Sock 9.Check first char [00:19:10]Sock 9.First char is OK [00:19:10]request: POST /json_proto HTTP/1.0 [00:19:10]Method: POST [00:19:10]URL: /json_proto [00:19:10]Method is POST - this is cgi request [00:19:10]url: /json_proto [00:19:10]query_string will be loaded in cgi processing [00:19:10]execute_cgi json_proto POST (null) [00:19:10]execute_cgi path=json_proto method=POST [00:19:10]POST find Content-Length [00:19:10]Host: 172.17.45.67:8080 [00:19:10]Content-Length: 254 [00:19:10]Content-Type: application/json [00:19:10] [00:19:10]POST finish read [00:19:10]Found Content-Length = 254 [00:19:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 2 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:10]execute_script... [00:19:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 2 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:10]POST & json_proto [00:19:10]process_json_proto [00:19:10]json parsed OK: [00:19:10]protocol is kg_v1.0 [00:19:10]action value=close_shift [00:19:10]process_action close_shift [00:19:10]cmd_close_shift [00:19:10]MH_GetDate [00:19:10]Write to MH i2c: F0 00 00 8C 0B 86 [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: F0 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: F0 09 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: F0 09 00 8C 0B 00 FF E0 C3 66 5F 7F 2B 66 06 [00:19:10]GetLastDocTimeStamp 1724113103 [00:19:10]current date 1724113151 [00:19:10]FM_GetShiftState [00:19:10]SAM_PROTO_GetShiftState [00:19:10]wFMCommunicate request_size=4 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 13 01 00 [00:19:10]Write to MH i2c: E2 08 00 8D 0B 80 13 01 00 00 00 00 00 15 [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 0E 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 0E 00 8D 0B 00 09 00 01 F0 93 C2 66 00 00 00 00 90 00 CC [00:19:10]RAPDU: 09 00 01 F0 93 C2 66 00 00 00 00 90 00 [00:19:10]wFMCommunicate OK [00:19:10]SAM_PROTO_GetShiftState done [00:19:10]FM_GetShiftState done [00:19:10]KKMCreateCloseShiftDocument [00:19:10]Load OK [00:19:10]Malloc new data [00:19:10]MH_GetDate [00:19:10]Write to MH i2c: F0 00 00 8E 0B 88 [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: F0 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: F0 09 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: F0 09 00 8E 0B 00 FF E0 C3 66 5F 7F 2B 66 08 [00:19:10]Malloc new data [00:19:10]Malloc new data [00:19:10]Malloc new data [00:19:10]Malloc new data [00:19:10]KKMCreateCloseShiftDocument OK [00:19:10]KKMSetCloseShiftData OK [00:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=69 [00:19:10]tlvbuf is 00E5A380 [00:19:10]KKMLoadAndSignCloseShiftData [00:19:10]SAM_PROTO_ProcessDocument [00:19:10]wFMCommunicate request_size=9 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 15 01 00 04 05 00 45 00 [00:19:10]Write to MH i2c: E2 0C 00 8F 0B 80 15 01 00 04 00 05 00 45 00 00 00 6B [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [00:19:10]RAPDU: 90 00 [00:19:10]wFMCommunicate OK [00:19:10]wFMCommunicate request_size=23 [00:19:10]MH_SAM_APDU [00:19:10]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:19:10]Write to MH i2c: E2 1A 00 90 0B 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 10 [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [00:19:10]RAPDU: 90 00 [00:19:10]wFMCommunicate OK [00:19:10]wFMCommunicate request_size=28 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 [00:19:10]Write to MH i2c: E2 1F 00 91 0B 80 15 02 00 17 00 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 00 00 54 [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [00:19:10]RAPDU: 90 00 [00:19:10]wFMCommunicate OK [00:19:10]wFMCommunicate request_size=13 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 15 02 00 08 F4 03 04 00 FF E0 C3 66 [00:19:10]Write to MH i2c: E2 10 00 92 0B 80 15 02 00 08 00 F4 03 04 00 FF E0 C3 66 00 00 30 [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 92 0B 00 90 00 11 [00:19:10]RAPDU: 90 00 [00:19:10]wFMCommunicate OK [00:19:10]wFMCommunicate request_size=25 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 [00:19:10]Write to MH i2c: E2 1C 00 93 0B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 00 00 86 [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 03 00 93 0B 00 90 00 12 [00:19:10]RAPDU: 90 00 [00:19:10]wFMCommunicate OK [00:19:10]wFMCommunicate request_size=4 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 15 03 00 [00:19:10]Write to MH i2c: E2 08 00 94 0B 80 15 03 00 00 00 00 00 20 [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:11]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:19:11]Read from MH i2c: E2 [00:19:11]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 FD 00 [00:19:11]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 FD 00 94 0B 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 37 36 10 04 04 00 07 21 02 00 0E 04 04 00 C4 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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 4E [00:19:11]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 37 36 10 04 04 00 07 21 02 00 0E 04 04 00 C4 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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:19:11]wFMCommunicate OK [00:19:11]SAM_PROTO_ProcessDocument answer len = 1268 [00:19:11]SAM_PROTO_ProcessDocument remain to read = 1020 [00:19:11]wFMCommunicate request_size=4 [00:19:11]MH_SAM_APDU [00:19:11]CAPDU: 80 17 00 00 [00:19:11]Write to MH i2c: E2 08 00 95 0B 80 17 00 00 00 00 00 00 20 [00:19:11]Write i2c OK [00:19:11]MH_I2C_Read... [00:19:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:11]Read from MH i2c: E2 [00:19:11]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 FD 00 [00:19:11]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 FD 00 95 0B 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 74 [00:19: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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 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:19:12]wFMCommunicate OK [00:19:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:12]SAM_PROTO_ProcessDocument remain to read = 770 [00:19:12]wFMCommunicate request_size=4 [00:19:12]MH_SAM_APDU [00:19:12]CAPDU: 80 17 00 00 [00:19:12]Write to MH i2c: E2 08 00 96 0B 80 17 00 00 00 00 00 00 21 [00:19:12]Write i2c OK [00:19:12]MH_I2C_Read... [00:19:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:12]Read from MH i2c: E2 [00:19:12]MH_I2C_Read... [00:19:12]Read from MH i2c: E2 FD 00 [00:19:12]MH_I2C_Read... [00:19:12]Read from MH i2c: E2 FD 00 96 0B 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 83 [00:19:12]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:19:12]wFMCommunicate OK [00:19:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:12]SAM_PROTO_ProcessDocument remain to read = 520 [00:19:12]wFMCommunicate request_size=4 [00:19:12]MH_SAM_APDU [00:19:12]CAPDU: 80 17 00 00 [00:19:12]Write to MH i2c: E2 08 00 97 0B 80 17 00 00 00 00 00 00 22 [00:19:12]Write i2c OK [00:19:12]MH_I2C_Read... [00:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:13]Read from MH i2c: E2 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 97 0B 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 AA [00:19: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 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:19:13]wFMCommunicate OK [00:19:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:13]SAM_PROTO_ProcessDocument remain to read = 270 [00:19:13]wFMCommunicate request_size=4 [00:19:13]MH_SAM_APDU [00:19:13]CAPDU: 80 17 00 00 [00:19:13]Write to MH i2c: E2 08 00 98 0B 80 17 00 00 00 00 00 00 23 [00:19:13]Write i2c OK [00:19:13]MH_I2C_Read... [00:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:13]Read from MH i2c: E2 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 98 0B 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 ED [00:19:13]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:19:13]wFMCommunicate OK [00:19:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:13]SAM_PROTO_ProcessDocument remain to read = 20 [00:19:13]wFMCommunicate request_size=4 [00:19:13]MH_SAM_APDU [00:19:13]CAPDU: 80 17 00 00 [00:19:13]Write to MH i2c: E2 08 00 99 0B 80 17 00 00 00 00 00 00 24 [00:19:13]Write i2c OK [00:19:13]MH_I2C_Read... [00:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:19:13]Read from MH i2c: E2 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 17 00 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 17 00 99 0B 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 46 B3 D3 09 D7 D7 90 00 E8 [00:19:13]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 46 B3 D3 09 D7 D7 90 00 [00:19:14]wFMCommunicate OK [00:19:14]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:19:14]SAM_PROTO_ProcessDocument done [00:19:14]1209 (1) - 1.0 - номер версии ФФД [00:19:14]1041 (16) - 0000000000871776 - номер ФМ [00:19:14]1040 (4) - 139527 - номер ФД [00:19:14]1038 (4) - 452 - номер смены [00:19:14]1118 (4) - 361 - количество кассовых чеков за смену [00:19:14]1111 (4) - 363 - общее количество ФД за смену [00:19:14]1194 (1197) - счетчики итогов смены [00:19:14] 1134 (4) - 361 - количество чеков со всеми признаками расчетов [00:19:14] 1129 (158) - счетчики операций «приход» [00:19:14] 1135 (4) - 361 - количество чеков по признаку расчетов [00:19:14] 1201 (4) - 258094.00 - общая итоговая сумма в чеках [00:19:14] 1136 (4) - 240037.00 - итоговая сумма в чеках наличными [00:19:14] 1138 (3) - 18057.00 - итоговая сумма в чеках безналичными [00:19:14] 1024 (123) - суммы налогов [00:19:14] 1006 (9) - суммы НДС [00:19:14] 1010 (1) - 0% - код ставки НДС [00:19:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:14] 1006 (12) - суммы НДС [00:19:14] 1010 (1) - 12% - код ставки НДС [00:19:14] 1011 (3) - 27418.70 - сумма НДС по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 0% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (12) - суммы НСП [00:19:14] 1014 (1) - 1% - код ставки НСП [00:19:14] 1015 (3) - 2285.01 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 2% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 3% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 5% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 0,50% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 1,50% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1130 (141) - счетчики операций «возврат прихода» [00:19:14] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:14] 1024 (117) - суммы налогов [00:19:14] 1006 (9) - суммы НДС [00:19:14] 1010 (1) - 0% - код ставки НДС [00:19:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:14] 1006 (9) - суммы НДС [00:19:14] 1010 (1) - 12% - код ставки НДС [00:19:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 0% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 1% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 2% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 3% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 5% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 0,50% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 1,50% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1131 (141) - счетчики операций «расход» [00:19:14] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:14] 1024 (117) - суммы налогов [00:19:14] 1006 (9) - суммы НДС [00:19:14] 1010 (1) - 0% - код ставки НДС [00:19:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:14] 1006 (9) - суммы НДС [00:19:14] 1010 (1) - 12% - код ставки НДС [00:19:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 0% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 1% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 2% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 3% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 5% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 0,50% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 1,50% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1132 (141) - счетчики операций «возврат расхода» [00:19:14] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:14] 1024 (117) - суммы налогов [00:19:14] 1006 (9) - суммы НДС [00:19:14] 1010 (1) - 0% - код ставки НДС [00:19:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:14] 1006 (9) - суммы НДС [00:19:14] 1010 (1) - 12% - код ставки НДС [00:19:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 0% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 1% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 2% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 3% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 5% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 0,50% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1007 (9) - суммы НСП [00:19:14] 1014 (1) - 1,50% - код ставки НСП [00:19:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:14] 1133 (588) - - счетчики коррекции - не используются [00:19:14]1077 (6) - 77738153727959 - ФПД [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1209 (04B9) [00:19:14]Malloc new data [00:19:14]Processing tag 1041 (0411) [00:19:14]Processing tag 1040 (0410) [00:19:14]Malloc new data [00:19:14]Processing tag 1038 (040E) [00:19:14]Malloc new data [00:19:14]Processing tag 1118 (045E) [00:19:14]Malloc new data [00:19:14]Processing tag 1111 (0457) [00:19:14]Malloc new data [00:19:14]Processing tag 1194 (04AA) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1134 (046E) [00:19:14]Malloc new data [00:19:14]Processing tag 1129 (0469) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1135 (046F) [00:19:14]Malloc new data [00:19:14]Processing tag 1201 (04B1) [00:19:14]Malloc new data [00:19:14]Processing tag 1136 (0470) [00:19:14]Malloc new data [00:19:14]Processing tag 1138 (0472) [00:19:14]Malloc new data [00:19:14]Processing tag 1024 (0400) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1006 (03EE) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1010 (03F2) [00:19:14]Malloc new data [00:19:14]Processing tag 1011 (03F3) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1006 (03EE) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1010 (03F2) [00:19:14]Malloc new data [00:19:14]Processing tag 1011 (03F3) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]SetTLVBufToDocument err=0 [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1130 (046A) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1135 (046F) [00:19:14]Malloc new data [00:19:14]Processing tag 1201 (04B1) [00:19:14]Malloc new data [00:19:14]Processing tag 1136 (0470) [00:19:14]Malloc new data [00:19:14]Processing tag 1138 (0472) [00:19:14]Malloc new data [00:19:14]Processing tag 1024 (0400) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1006 (03EE) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1010 (03F2) [00:19:14]Malloc new data [00:19:14]Processing tag 1011 (03F3) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1006 (03EE) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1010 (03F2) [00:19:14]Malloc new data [00:19:14]Processing tag 1011 (03F3) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]SetTLVBufToDocument err=0 [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1131 (046B) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1135 (046F) [00:19:14]Malloc new data [00:19:14]Processing tag 1201 (04B1) [00:19:14]Malloc new data [00:19:14]Processing tag 1136 (0470) [00:19:14]Malloc new data [00:19:14]Processing tag 1138 (0472) [00:19:14]Malloc new data [00:19:14]Processing tag 1024 (0400) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1006 (03EE) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1010 (03F2) [00:19:14]Malloc new data [00:19:14]Processing tag 1011 (03F3) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1006 (03EE) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1010 (03F2) [00:19:14]Malloc new data [00:19:14]Processing tag 1011 (03F3) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]SetTLVBufToDocument err=0 [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1132 (046C) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1135 (046F) [00:19:14]Malloc new data [00:19:14]Processing tag 1201 (04B1) [00:19:14]Malloc new data [00:19:14]Processing tag 1136 (0470) [00:19:14]Malloc new data [00:19:14]Processing tag 1138 (0472) [00:19:14]Malloc new data [00:19:14]Processing tag 1024 (0400) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1006 (03EE) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1010 (03F2) [00:19:14]Malloc new data [00:19:14]Processing tag 1011 (03F3) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1006 (03EE) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1010 (03F2) [00:19:14]Malloc new data [00:19:14]Processing tag 1011 (03F3) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:14]SetTLVBufToDocument [00:19:14]Processing tag 1014 (03F6) [00:19:14]Malloc new data [00:19:14]Processing tag 1015 (03F7) [00:19:14]Malloc new data [00:19:14]SetTLVBufToDocument err=0 [00:19:14]Processing tag 1007 (03EF) [00:19:14]Load OK [00:19:15]SetTLVBufToDocument [00:19:15]Processing tag 1014 (03F6) [00:19:15]Malloc new data [00:19:15]Processing tag 1015 (03F7) [00:19:15]Malloc new data [00:19:15]SetTLVBufToDocument err=0 [00:19:15]Processing tag 1007 (03EF) [00:19:15]Load OK [00:19:15]SetTLVBufToDocument [00:19:15]Processing tag 1014 (03F6) [00:19:15]Malloc new data [00:19:15]Processing tag 1015 (03F7) [00:19:15]Malloc new data [00:19:15]SetTLVBufToDocument err=0 [00:19:15]Processing tag 1007 (03EF) [00:19:15]Load OK [00:19:15]SetTLVBufToDocument [00:19:15]Processing tag 1014 (03F6) [00:19:15]Malloc new data [00:19:15]Processing tag 1015 (03F7) [00:19:15]Malloc new data [00:19:15]SetTLVBufToDocument err=0 [00:19:15]Processing tag 1007 (03EF) [00:19:15]Load OK [00:19:15]SetTLVBufToDocument [00:19:15]Processing tag 1014 (03F6) [00:19:15]Malloc new data [00:19:15]Processing tag 1015 (03F7) [00:19:15]Malloc new data [00:19:15]SetTLVBufToDocument err=0 [00:19:15]Processing tag 1007 (03EF) [00:19:15]Load OK [00:19:15]SetTLVBufToDocument [00:19:15]Processing tag 1014 (03F6) [00:19:15]Malloc new data [00:19:15]Processing tag 1015 (03F7) [00:19:15]Malloc new data [00:19:15]SetTLVBufToDocument err=0 [00:19:15]SetTLVBufToDocument err=0 [00:19:15]SetTLVBufToDocument err=0 [00:19:15]Processing tag 1133 (046D) [00:19:15]Malloc new data [00:19:15]SetTLVBufToDocument err=0 [00:19:15]Processing tag 1077 (0435) [00:19:15]Malloc new data [00:19:15]SetTLVBufToDocument err=0 [00:19:15]Malloc new data [00:19:15]SAM_PROTO_GetFMData [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 13 03 00 [00:19:15]Write to MH i2c: E2 08 00 9A 0B 80 13 03 00 00 00 00 00 24 [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]OFD Sender: No OFD packet to send [00:19:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 FD 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 FD 00 9A 0B 00 C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 27 [00:19:15]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [00:19:15]wFMCommunicate OK [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 17 00 00 [00:19:15]Write to MH i2c: E2 08 00 9B 0B 80 17 00 00 00 00 00 00 26 [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 9B 0B 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 2B [00:19:16]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:19:16]wFMCommunicate OK [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 17 00 00 [00:19:16]Write to MH i2c: E2 08 00 9C 0B 80 17 00 00 00 00 00 00 27 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 9C 0B 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 3C [00:19:16]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 17 00 00 [00:19:17]Write to MH i2c: E2 08 00 9D 0B 80 17 00 00 00 00 00 00 28 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 9D 0B 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A0 [00:19:17]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 17 00 00 [00:19:17]Write to MH i2c: E2 08 00 9E 0B 80 17 00 00 00 00 00 00 29 [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 E1 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 E1 00 9E 0B 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 17 [00:19:18]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:18]wFMCommunicate OK [00:19:18]SAM_PROTO_GetFMData done [00:19:18]Malloc new data [00:19:18]Malloc new data [00:19:18]Malloc new data [00:19:18]Malloc new data [00:19:18]KKMLoadAndSignCloseShiftData err=0 [00:19:18]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Оператор 2 20.08.2024 00:19 Смена: 452 РНМ: 0000000000092569 ЗНМ: 0300000067 СНО: Общий режим Чеков за смену: 361 ФД за смену: 363 Всего чеков: 361 ИТОГИ ПРИХОД Чеков: 361 Общий итог: 258094.00 Итого наличными: 240037.00 Итого безнал.: 18057.00 НДС 0% : 0.00 НДС 12% : 27418.70 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2285.01 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 240037.00 НС Приход: 95676950.71 НС Возвр.Прихода: 333741.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 139527 ФМ: 0000000000871776 ФПД: 77738153727959 [00:19:18]StoreToDocumentArchive [00:19:18]shift 452 fd 139527 [00:19:18]save to /storage/0452/doc_00139527 [00:19:18]save last doc name /storage/0452/doc_00139527 to /storage/kkm_last_doc_name [00:19:18]save OK [00:19:18]Clear old archive folders... [00:19:18]Remove dir /storage/0266 [00:19:18]opendir ok [00:19:18]file . [00:19:18]file .. [00:19:18]file doc_1724113111 [00:19:18]remove file /storage/0266/doc_1724113111 [00:19:18]remove dir /storage/0266 [00:19:18]NVStorageSaveData kkm_registers [00:19:18]File name is /storage/kkm_registers [00:19:18]Write 24 bytes [00:19:18]NVStorageSaveData done [00:19:18]NVStorageSaveData kkm_registers [00:19:18]File name is /storage/kkm_registers [00:19:18]Write 24 bytes [00:19:18]NVStorageSaveData done [00:19:18]ProcessDocumentItem done err = 0, tmpTLVsize=1380 [00:19:18]tlvbuf is 00DB6040 [00:19:18]SAM_PROTO_ClearQueue [00:19:18]wFMCommunicate request_size=4 [00:19:18]MH_SAM_APDU [00:19:18]CAPDU: 80 09 00 00 [00:19:18]Write to MH i2c: E2 08 00 9F 0B 80 09 00 00 00 00 00 00 1C [00:19:18]Write i2c OK [00:19:18]MH_I2C_Read... [00:19:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:18]Read from MH i2c: E2 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 03 00 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [00:19:18]RAPDU: 90 00 [00:19:18]wFMCommunicate OK [00:19:18]SAM_PROTO_ClearQueue done [00:19:18]KKMCreateOFDPacket [00:19:18]OFDProtocolAddRootSTLVToBuf [00:19:18]FM_MakeSignedData [00:19:18]FM_MakeSignedData [00:19:18]SAM_PROTO_SignData [00:19:18]wFMCommunicate request_size=4 [00:19:18]MH_SAM_APDU [00:19:18]CAPDU: 80 0D 01 02 [00:19:18]Write to MH i2c: E2 08 00 A0 0B 80 0D 01 02 00 00 00 00 24 [00:19:18]Write i2c OK [00:19:18]MH_I2C_Read... [00:19:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:18]Read from MH i2c: E2 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 03 00 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [00:19:18]RAPDU: 90 00 [00:19:18]wFMCommunicate OK [00:19:18]wFMCommunicate request_size=255 [00:19:18]MH_SAM_APDU [00:19:18]CAPDU: 80 0D 02 02 FA 05 00 64 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 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 F4 03 04 00 FF E0 C3 66 0E 04 04 00 C4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 AA 04 D8 04 6E 04 04 00 69 01 00 00 69 04 A5 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 [00:19:18]Write to MH i2c: E2 02 01 A1 0B 80 0D 02 02 FA 00 05 00 64 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 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 F4 03 04 00 FF E0 C3 66 0E 04 04 00 C4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 AA 04 D8 04 6E 04 04 00 69 01 00 00 69 04 A5 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 00 00 17 [00:19:18]Write i2c OK [00:19:18]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 03 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 03 00 A1 0B 00 90 00 20 [00:19:19]RAPDU: 90 00 [00:19:19]wFMCommunicate OK [00:19:19]wFMCommunicate request_size=255 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 0D 02 02 FA 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 95 7C 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 [00:19:19]Write to MH i2c: E2 02 01 A2 0B 80 0D 02 02 FA 00 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 95 7C 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 00 00 9C [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 03 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 03 00 A2 0B 00 90 00 21 [00:19:19]RAPDU: 90 00 [00:19:19]wFMCommunicate OK [00:19:19]wFMCommunicate request_size=255 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 0D 02 02 FA 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 [00:19:20]Write to MH i2c: E2 02 01 A3 0B 80 0D 02 02 FA 00 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 00 00 F7 [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:20]OFD Sender: No OFD packet to send [00:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 03 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 03 00 A3 0B 00 90 00 22 [00:19:20]RAPDU: 90 00 [00:19:20]wFMCommunicate OK [00:19:20]wFMCommunicate request_size=255 [00:19:20]MH_SAM_APDU [00:19:20]CAPDU: 80 0D 02 02 FA 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 [00:19:20]Write to MH i2c: E2 02 01 A4 0B 80 0D 02 02 FA 00 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 00 00 F8 [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:21]Read from MH i2c: E2 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 03 00 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 03 00 A4 0B 00 90 00 23 [00:19:21]RAPDU: 90 00 [00:19:21]wFMCommunicate OK [00:19:21]wFMCommunicate request_size=255 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 [00:19:21]Write to MH i2c: E2 02 01 A5 0B 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 00 00 B3 [00:19:21]Write i2c OK [00:19:21]MH_I2C_Read... [00:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:21]Read from MH i2c: E2 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 03 00 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 03 00 A5 0B 00 90 00 24 [00:19:21]RAPDU: 90 00 [00:19:21]wFMCommunicate OK [00:19:21]wFMCommunicate request_size=139 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 0D 02 02 86 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 46 B3 D3 09 D7 D7 [00:19:22]Write to MH i2c: E2 8E 00 A6 0B 80 0D 02 02 86 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 46 B3 D3 09 D7 D7 00 00 19 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 03 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 03 00 A6 0B 00 90 00 25 [00:19:22]RAPDU: 90 00 [00:19:22]wFMCommunicate OK [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 0D 03 02 [00:19:22]Write to MH i2c: E2 08 00 A7 0B 80 0D 03 02 00 00 00 00 2D [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 0B 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 0B 00 A7 0B 00 86 63 AC 82 1D 11 DC D7 90 00 26 [00:19:22]RAPDU: 86 63 AC 82 1D 11 DC D7 90 00 [00:19:22]wFMCommunicate OK [00:19:22]SAM_PROTO_SignData done [00:19:22]FM_MakeSignedData done [00:19:22]CreateOFDProtocolMessage [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 11 00 00 [00:19:22]Write to MH i2c: E2 08 00 A8 0B 80 11 00 00 00 00 00 00 2D [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:22]Read from MH i2c: E2 17 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 17 00 A8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [00:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:19:22]wFMCommunicate OK [00:19:22]CreateOFDProtocolMessage done [00:19:22]OFDSenderStorePacket 139527 [00:19:22]StoreOFDPacket docnum=139527 [00:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 78 05 00 00 E7 87 70 05 2F B0 5A 05 01 00 05 00 64 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 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 F4 03 04 00 FF E0 C3 66 0E 04 04 00 C4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 AA 04 D8 04 6E 04 04 00 69 01 00 00 69 04 A5 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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 07 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 46 B3 D3 09 D7 D7 86 63 AC 82 1D 11 DC D7 [00:19:22]CheckFolder [00:19:22]dirname=/storage/ofd_packets [00:19:22]CheckFolder done [00:19:22]ProducePacketName [00:19:22]name=ofd_packets/00139527 [00:19:22]NVStorageSaveData ofd_packets/00139527 [00:19:22]File name is /storage/ofd_packets/00139527 [00:19:22]Write 1430 bytes [00:19:22]NVStorageSaveData done [00:19:22]OFDSenderStorePacket done [00:19:22]KKMCreateOFDPacket done [00:19:22]NVStorageSaveData kkm_last_timestamp [00:19:22]File name is /storage/kkm_last_timestamp [00:19:22]Write 4 bytes [00:19:22]NVStorageSaveData done [00:19:22]ExternCall_PrintAddStr [00:19:22]wPrintStart [00:19:22]Write to MH i2c: 01 00 00 A9 0B B4 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: 01 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: 01 07 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: 01 07 00 A9 0B 00 00 00 00 00 FF 0F C9 [00:19:22]RasterBufferAndPrint [00:19:22]line Отчет о закрытии смены [00:19:22]line ФФД: 1.0 [00:19:22]line ИНН: 02508201610067 [00:19:22]line Кассир: Оператор 2 [00:19:22]line 20.08.2024 00:19 [00:19:22]line Смена: 452 [00:19:22]line РНМ: 0000000000092569 [00:19:22]line ЗНМ: 0300000067 [00:19:22]line СНО: Общий режим [00:19:22]line Чеков за смену: 361 [00:19:22]line ФД за смену: 363 [00:19:22]line Всего чеков: 361 [00:19:22]line ИТОГИ ПРИХОД [00:19:22]line Чеков: 361 [00:19:23]line Общий итог: 258094.00 [00:19:23]line Итого наличными: 240037.00 [00:19:23]line Итого безнал.: 18057.00 [00:19:23]line НДС 0% : 0.00 [00:19:23]line НДС 12% : 27418.70 [00:19:23]line НСП 0% : 0.00 [00:19:23]line НСП 1,50% : 0.00 [00:19:23]line НСП 0,50% : 0.00 [00:19:23]line НСП 5% : 0.00 [00:19:23]line НСП 3% : 0.00 [00:19:23]line НСП 2% : 0.00 [00:19:23]line НСП 1% : 2285.01 [00:19:23]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:19:23]line Чеков: 0 [00:19:23]line Общий итог: 0.00 [00:19:23]line Итого наличными: 0.00 [00:19:23]line Итого безнал.: 0.00 [00:19:23]line НДС 0% : 0.00 [00:19:23]line НДС 12% : 0.00 [00:19:23]line НСП 0% : 0.00 [00:19:23]line НСП 1,50% : 0.00 [00:19:23]line НСП 0,50% : 0.00 [00:19:23]line НСП 5% : 0.00 [00:19:23]line НСП 3% : 0.00 [00:19:23]line НСП 2% : 0.00 [00:19:23]line НСП 1% : 0.00 [00:19:23]line ИТОГИ РАСХОД [00:19:23]line Чеков: 0 [00:19:23]line Общий итог: 0.00 [00:19:23]line Итого наличными: 0.00 [00:19:23]line Итого безнал.: 0.00 [00:19:23]line НДС 0% : 0.00 [00:19:23]line НДС 12% : 0.00 [00:19:23]line НСП 0% : 0.00 [00:19:23]line НСП 1,50% : 0.00 [00:19:23]line НСП 0,50% : 0.00 [00:19:23]line НСП 5% : 0.00 [00:19:23]line НСП 3% : 0.00 [00:19:23]line НСП 2% : 0.00 [00:19:23]line НСП 1% : 0.00 [00:19:23]line ИТОГИ ВОЗВРАТ РАСХОДА [00:19:23]line Чеков: 0 [00:19:23]line Общий итог: 0.00 [00:19:23]line Итого наличными: 0.00 [00:19:23]line Итого безнал.: 0.00 [00:19:23]line НДС 0% : 0.00 [00:19:23]line НДС 12% : 0.00 [00:19:23]line НСП 0% : 0.00 [00:19:23]line НСП 1,50% : 0.00 [00:19:23]line НСП 0,50% : 0.00 [00:19:23]line НСП 5% : 0.00 [00:19:23]line НСП 3% : 0.00 [00:19:23]line НСП 2% : 0.00 [00:19:23]line НСП 1% : 0.00 [00:19:23]line Сумма внесений: 0.00 [00:19:23]line Сумма выплат: 0.00 [00:19:23]line Нал. в кассе: 240037.00 [00:19:23]line НС Приход: 95676950.71 [00:19:23]line НС Возвр.Прихода: 333741.00 [00:19:23]line НС Расход: 0.00 [00:19:23]line НС Возвр.Расхода: 0.00 [00:19:23]line ФД: 139527 [00:19:23]line ФМ: 0000000000871776 [00:19:23]line ФПД: 77738153727959 [00:19:23]OFD Sender: Processing packet 139527 [packets to send 137, broken 136] [00:19:23]ProducePacketName [00:19:23]name=ofd_packets/00139527 [00:19:23]OFD Sender: To server: pG, [00:19:23]CommunicateWithHost lk.salyk.kg:30040 [00:19:23]ConnectInit lk.salyk.kg [00:19:23]written 0, free lines is 4095 [00:19:23]Connected sock=10 [00:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 78 05 00 00 E7 87 70 05 2F B0 5A 05 01 00 05 00 64 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 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 F4 03 04 00 FF E0 C3 66 0E 04 04 00 C4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 AA 04 D8 04 6E 04 04 00 69 01 00 00 69 04 A5 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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 Write to MH i2c: 00 01 00 70 00 04 F9 01 0B 00 04 00 [00:19:24]72 Write i2c OK [00:19:24]04 MH_I2C_Read... [00:19:24]01 Read from MH i2c: 00 01 00 [00:19:24]00 MH_I2C_Read... [00:19:24]04 7E 00 EE 03 0A 00 F2 Read from MH i2c: 03 01 01 07 00 00 00 [00:19:24]F3 MH_I2C_Read... [00:19:24]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 Read from MH i2c: 03 01 01 07 00 00 02 F9 F7 0B 03 00 01 00 00 00 00 00 EF 00 03 CE 0A 0B 00 E4 F6 [00:19:24]03 RasterBufferAndPrint [00:19:24]01 00 line [00:19:24]01 line [00:19:24]F7 line [00:19:24]03 line [00:19:24]01 line [00:19:24]00 00 6D written 0, free lines is 3458 [00:19:24]04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 MH_Cut [00:19:24]6F Write to MH i2c: 04 D1 04 01 00 00 00 00 00 B1 04 00 00 70 04 00 00 00 00 0C 72 01 04 DE 00 [00:19:24]00 Write i2c OK [00:19:24]00 MH_I2C_Read... [00:19:24]04 Read from MH i2c: 75 D1 00 [00:19:24]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 MH_I2C_Read... [00:19:24]EE Read from MH i2c: 03 D1 09 01 00 00 F2 [00:19:24]03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF MH_I2C_Read... [00:19:24]03 09 00 F6 03 01 00 04 Read from MH i2c: F7 D1 03 01 00 00 00 00 EF 0C 03 09 00 F6 03 01 00 05 F7 03 00 00 00 EF DD 03 [00:19:24]09 Write to MH i2c: 00 01 F6 00 03 01 00 06 F7 03 00 00 D0 04 8D 00 00 6F 01 04 0C 04 0D 00 [00:19:24]00 00 00 00 B1 04 Write i2c OK [00:19:24]00 MH_I2C_Read... [00:19:24]00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 *** Cut start [00:19:25]00 *** Partial cut [00:19:25]10 04 04 00 *** CUTSNS_PIN = 1 [00:19:25]07 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 46 B3 D3 09 *** CUTSNS_PIN = 0 [00:19:25]D7 D7 86 63 AC 82 1D 11 DC D7 [00:19:25]*** Brake cut motor [00:19: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 37 36 4F 00 00 00 AB 1B 47 00 1A 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 37 36 10 04 04 00 07 21 02 00 F4 03 04 00 A0 87 C3 66 B6 04 01 00 00 AD 53 FF 6E B5 0B B2 88 [00:19:25]CommunicateWithHost err = 0 [00:19:25]CheckOFDResponse [00:19:25]1017 (14) - 77093643461234 [00:19:25]1041 (16) - 0000000000871776 [00:19:25]1040 (4) - 139527 [00:19:25]1012 (4) - 19.08.2024 17:57 [00:19:25]1206 (1) - 0 [00:19:25]OFD Sender: Remove packet 139527 [00:19:25]ProducePacketName [00:19:25]name=ofd_packets/00139527 [00:19:25]NVStorageDeleteData [00:19:25]Read from MH i2c: *** Stop cut motor [00:19:25]01 *** Cut end [00:19:25] [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: 01 07 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 FF 0F 22 [00:19:25]process_action close_shift done [00:19:25]requested_data is exist [00:19:25]produce_requested_data [00:19:25]requested_item fd.num is exist - process it [00:19:25]SAM_PROTO_GetFieldsCounters [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 13 00 00 [00:19:25]Write to MH i2c: E2 08 00 02 0C 80 13 00 00 00 00 00 00 8A [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:25]Read from MH i2c: E2 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 62 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 62 00 02 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [00:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:25]wFMCommunicate OK [00:19:25]SAM_PROTO_GetFieldsCounters done [00:19:25]requested_item shift.num is exist - process it [00:19:25]requested_item shift.opened is exist - process it [00:19:25]req_shift_opened [00:19:25]FM_GetShiftState [00:19:25]SAM_PROTO_GetShiftState [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 13 01 00 [00:19:25]Write to MH i2c: E2 08 00 03 0C 80 13 01 00 00 00 00 00 8C [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:25]OFD Sender: No OFD packet to send [00:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 0E 00 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 0E 00 03 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 97 [00:19:26]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:26]wFMCommunicate OK [00:19:26]SAM_PROTO_GetShiftState done [00:19:26]FM_GetShiftState done [00:19:26]req_shift_opened done [00:19:26]requested_item shift.open_date is exist - process it [00:19:26]req_shift_open_date [00:19:26]FM_GetShiftState [00:19:26]SAM_PROTO_GetShiftState [00:19:26]wFMCommunicate request_size=4 [00:19:26]MH_SAM_APDU [00:19:26]CAPDU: 80 13 01 00 [00:19:26]Write to MH i2c: E2 08 00 04 0C 80 13 01 00 00 00 00 00 8D [00:19:26]Write i2c OK [00:19:26]MH_I2C_Read... [00:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 0E 00 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 0E 00 04 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 98 [00:19:26]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:26]wFMCommunicate OK [00:19:26]SAM_PROTO_GetShiftState done [00:19:26]FM_GetShiftState done [00:19:26]req_shift_open_date done [00:19:26]produce_requested_data done [00:19:26]produce_requested_data return {"fd.num":139527,"shift.num":452,"shift.opened":0,"shift.open_date":0} [00:19:26]process_action_free close_shift [00:19:26]json_value_free [00:19:26]json_value_free done [00:19:26]process_json_proto returns [00:19:26]Send response to host [00:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139527,"shift.num":452,"shift.opened":0,"shift.open_date":0}}} [00:19:26]free response buf [00:19:26]execute_script done [00:19:26]execute_script returns [00:19:26]free content buf [00:19:26]Sock 9.Close socket [00:19:26]Sock 9.Thread stoped [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:09]int [00:20:09]Write to MH i2c: 01 00 00 05 0C 11 [00:20:09]*** FLAG_PRN_KEY set [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 07 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 07 00 05 0C 00 08 00 00 00 FF 0F 2E [00:20:09]state=0 [00:20:09]Key pressed [00:20:09]Feed [00:20:09]Write to MH i2c: D8 00 00 06 0C E9 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: D8 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: D8 01 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: D8 01 00 06 0C 00 EA [00:20:09]int [00:20:09]Write to MH i2c: 01 00 00 07 0C 13 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 07 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 07 00 07 0C 00 48 00 00 00 3C 00 9E [00:20:09]state=2 [00:20:09]Key pressed [00:20:09]int [00:20:09]Write to MH i2c: 01 00 00 08 0C 14 [00:20:09]*** FLAG_PRN_KEY reset [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 07 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 FF 0F 29 [00:20:09]state=2 [00:20:09]Stop feed [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:40]accept exits with 7 [00:29:40]New connection [00:29:40]New thread 3067071844 created [00:29:40]Thread 3067215204 joined [00:29:40]Waiting for new connection... [00:29:40] Sock 7.Parse request [00:29:40]Sock 7.Check first char [00:29:40]Sock 7.First char is OK [00:29:40]request: POST /json_proto HTTP/1.0 [00:29:40]Method: POST [00:29:40]URL: /json_proto [00:29:40]Method is POST - this is cgi request [00:29:40]url: /json_proto [00:29:40]query_string will be loaded in cgi processing [00:29:40]execute_cgi json_proto POST (null) [00:29:40]execute_cgi path=json_proto method=POST [00:29:40]POST find Content-Length [00:29:40]Host: 172.17.45.67:8080 [00:29:40]Content-Length: 215 [00:29:40]Content-Type: application/json [00:29:40] [00:29:40]POST finish read [00:29:40]Found Content-Length = 215 [00:29:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:40]execute_script... [00:29:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:40]POST & json_proto [00:29:40]process_json_proto [00:29:40]json parsed OK: [00:29:40]protocol is kg_v1.0 [00:29:40]action value=get_value [00:29:40]process_action get_value [00:29:40]cmd_get_value [00:29:40]process_action get_value done [00:29:40]requested_data is exist [00:29:40]produce_requested_data [00:29:40]requested_item kkm.sn is exist - process it [00:29:40]requested_item kkm.ver is exist - process it [00:29:40]requested_item fm.sn is exist - process it [00:29:40]wFMCommunicate request_size=4 [00:29:40]MH_SAM_APDU [00:29:40]CAPDU: 80 11 00 00 [00:29:40]Write to MH i2c: E2 08 00 09 0C 80 11 00 00 00 00 00 00 8F [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:40]Read from MH i2c: E2 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 17 00 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: E2 17 00 09 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E6 [00:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:29:40]wFMCommunicate OK [00:29:40]requested_item fd.num is exist - process it [00:29:40]SAM_PROTO_GetFieldsCounters [00:29:40]wFMCommunicate request_size=4 [00:29:40]MH_SAM_APDU [00:29:40]CAPDU: 80 13 00 00 [00:29:40]Write to MH i2c: E2 08 00 0A 0C 80 13 00 00 00 00 00 00 92 [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 62 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 62 00 0A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 21 02 00 0E 04 04 00 C4 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:41]wFMCommunicate OK [00:29:41]SAM_PROTO_GetFieldsCounters done [00:29:41]requested_item shift.num is exist - process it [00:29:41]requested_item shift.opened is exist - process it [00:29:41]req_shift_opened [00:29:41]FM_GetShiftState [00:29:41]SAM_PROTO_GetShiftState [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 13 01 00 [00:29:41]Write to MH i2c: E2 08 00 0B 0C 80 13 01 00 00 00 00 00 94 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 0E 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 0E 00 0B 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9F [00:29:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:29:41]wFMCommunicate OK [00:29:41]SAM_PROTO_GetShiftState done [00:29:41]FM_GetShiftState done [00:29:41]req_shift_opened done [00:29:41]requested_item shift.open_date is exist - process it [00:29:41]req_shift_open_date [00:29:41]FM_GetShiftState [00:29:41]SAM_PROTO_GetShiftState [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 13 01 00 [00:29:41]Write to MH i2c: E2 08 00 0C 0C 80 13 01 00 00 00 00 00 95 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 0E 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 0E 00 0C 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A0 [00:29:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:29:41]wFMCommunicate OK [00:29:41]SAM_PROTO_GetShiftState done [00:29:41]FM_GetShiftState done [00:29:41]req_shift_open_date done [00:29:41]produce_requested_data done [00:29:41]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139527,"shift.num":452,"shift.opened":0,"shift.open_date":0} [00:29:41]process_action_free get_value [00:29:41]json_value_free [00:29:41]json_value_free done [00:29:41]process_json_proto returns [00:29:41]Send response to host [00:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139527,"shift.num":452,"shift.opened":0,"shift.open_date":0}}} [00:29:41]free response buf [00:29:41]execute_script done [00:29:41]execute_script returns [00:29:41]free content buf [00:29:41]Sock 7.Close socket [00:29:41]Sock 7.Thread stoped [00:29:41]accept exits with 9 [00:29:41]New connection [00:29:41]New thread 3067215204 created [00:29:41]Thread 3067071844 joined [00:29:41]Waiting for new connection... [00:29:41] Sock 9.Parse request [00:29:41]Sock 9.Check first char [00:29:41]Sock 9.First char is OK [00:29:41]request: POST /json_proto HTTP/1.0 [00:29:41]Method: POST [00:29:41]URL: /json_proto [00:29:41]Method is POST - this is cgi request [00:29:41]url: /json_proto [00:29:41]query_string will be loaded in cgi processing [00:29:41]execute_cgi json_proto POST (null) [00:29:41]execute_cgi path=json_proto method=POST [00:29:41]POST find Content-Length [00:29:41]Host: 172.17.45.67:8080 [00:29:41]Content-Length: 331 [00:29:41]Content-Type: application/json [00:29:41] [00:29:41]POST finish read [00:29:41]Found Content-Length = 331 [00:29:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:41]execute_script... [00:29:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:41]POST & json_proto [00:29:41]process_json_proto [00:29:41]json parsed OK: [00:29:41]protocol is kg_v1.0 [00:29:41]action value=get_value [00:29:41]process_action get_value [00:29:41]cmd_get_value [00:29:41]process_action get_value done [00:29:41]requested_data is exist [00:29:41]produce_requested_data [00:29:41]requested_item fm.sale.total is exist - process it [00:29:41]SAM_PROTO_GetFMData [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 13 03 00 [00:29:41]Write to MH i2c: E2 08 00 0D 0C 80 13 03 00 00 00 00 00 98 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]OFD Sender: No OFD packet to send [00:29:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 FD 00 0D 0C 00 C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 9B [00:29:41]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [00:29:41]wFMCommunicate OK [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 17 00 00 [00:29:41]Write to MH i2c: E2 08 00 0E 0C 80 17 00 00 00 00 00 00 9A [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:42]Read from MH i2c: E2 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 0E 0C 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 9F [00:29:42]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:29:42]wFMCommunicate OK [00:29:42]wFMCommunicate request_size=4 [00:29:42]MH_SAM_APDU [00:29:42]CAPDU: 80 17 00 00 [00:29:42]Write to MH i2c: E2 08 00 0F 0C 80 17 00 00 00 00 00 00 9B [00:29:42]Write i2c OK [00:29:42]MH_I2C_Read... [00:29:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:42]Read from MH i2c: E2 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 0F 0C 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 B0 [00:29:42]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:29:42]wFMCommunicate OK [00:29:42]wFMCommunicate request_size=4 [00:29:42]MH_SAM_APDU [00:29:42]CAPDU: 80 17 00 00 [00:29:42]Write to MH i2c: E2 08 00 10 0C 80 17 00 00 00 00 00 00 9C [00:29:42]Write i2c OK [00:29:42]MH_I2C_Read... [00:29:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:42]Read from MH i2c: E2 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 FD 00 10 0C 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [00:29:42]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:29:42]wFMCommunicate OK [00:29:42]wFMCommunicate request_size=4 [00:29:42]MH_SAM_APDU [00:29:42]CAPDU: 80 17 00 00 [00:29:42]Write to MH i2c: E2 08 00 11 0C 80 17 00 00 00 00 00 00 9D [00:29:42]Write i2c OK [00:29:42]MH_I2C_Read... [00:29:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:29:42]Read from MH i2c: E2 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 E1 00 [00:29:42]MH_I2C_Read... [00:29:42]Read from MH i2c: E2 E1 00 11 0C 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [00:29:42]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:42]wFMCommunicate OK [00:29:42]SAM_PROTO_GetFMData done [00:29:42]requested_item fm.sale_refund.total is exist - process it [00:29:42]requested_item fm.buy.total is exist - process it [00:29:42]requested_item shift.sale.total is exist - process it [00:29:42]SAM_PROTO_GetShiftData [00:29:42]wFMCommunicate request_size=4 [00:29:42]MH_SAM_APDU [00:29:42]CAPDU: 80 13 02 00 [00:29:42]Write to MH i2c: E2 08 00 12 0C 80 13 02 00 00 00 00 00 9C [00:29:42]Write i2c OK [00:29:42]MH_I2C_Read... [00:29:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:43]Read from MH i2c: E2 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 12 0C 00 B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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 6E [00:29:43]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 69 01 00 00 69 04 9E 00 6F 04 04 00 69 01 00 00 B1 04 04 00 F8 D1 89 01 70 04 04 00 74 44 6E 01 72 04 03 00 84 8D 1B 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 6E D6 29 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 95 7C 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:29:43]wFMCommunicate OK [00:29:43]wFMCommunicate request_size=4 [00:29:43]MH_SAM_APDU [00:29:43]CAPDU: 80 17 00 00 [00:29:43]Write to MH i2c: E2 08 00 13 0C 80 17 00 00 00 00 00 00 9F [00:29:43]Write i2c OK [00:29:43]MH_I2C_Read... [00:29:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:43]Read from MH i2c: E2 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 [00:29:43]MH_I2C_Read... [00:29:43]Read from MH i2c: E2 FD 00 13 0C 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 B8 [00:29:43]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:29:43]wFMCommunicate OK [00:29:43]wFMCommunicate request_size=4 [00:29:43]MH_SAM_APDU [00:29:43]CAPDU: 80 17 00 00 [00:29:43]Write to MH i2c: E2 08 00 14 0C 80 17 00 00 00 00 00 00 A0 [00:29:43]Write i2c OK [00:29:43]MH_I2C_Read... [00:29:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:44]Read from MH i2c: E2 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 FD 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 FD 00 14 0C 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 59 [00:29:44]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:29:44]wFMCommunicate OK [00:29:44]wFMCommunicate request_size=4 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 17 00 00 [00:29:44]Write to MH i2c: E2 08 00 15 0C 80 17 00 00 00 00 00 00 A1 [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:44]Read from MH i2c: E2 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 FD 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 FD 00 15 0C 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 19 [00:29:44]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:29:44]wFMCommunicate OK [00:29:44]wFMCommunicate request_size=4 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 17 00 00 [00:29:44]Write to MH i2c: E2 08 00 16 0C 80 17 00 00 00 00 00 00 A2 [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:44]Read from MH i2c: E2 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 CE 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 CE 00 16 0C 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 87 [00:29:44]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:29:44]wFMCommunicate OK [00:29:44]SAM_PROTO_GetShiftData done [00:29:44]requested_item shift.sale.total_cash is exist - process it [00:29:44]requested_item shift.sale_refund.total is exist - process it [00:29:44]requested_item shift.sale_refund.total_cash is exist - process it [00:29:44]requested_item shift.buy.total is exist - process it [00:29:44]requested_item shift.buy.total_cash is exist - process it [00:29:44]produce_requested_data done [00:29:44]produce_requested_data return {"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:29:44]process_action_free get_value [00:29:44]json_value_free [00:29:44]json_value_free done [00:29:44]process_json_proto returns [00:29:44]Send response to host [00:29:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":258094.00,"shift.sale.total_cash":240037.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:29:44]free response buf [00:29:44]execute_script done [00:29:44]execute_script returns [00:29:44]free content buf [00:29:44]Sock 9.Close socket [00:29:44]Sock 9.Thread stoped [00:29:44]accept exits with 7 [00:29:44]New connection [00:29:44]New thread 3067071844 created [00:29:44]Thread 3067215204 joined [00:29:44]Waiting for new connection... [00:29:44] Sock 7.Parse request [00:29:44]Sock 7.Check first char [00:29:44]Sock 7.First char is OK [00:29:44]request: POST /json_proto HTTP/1.0 [00:29:44]Method: POST [00:29:44]URL: /json_proto [00:29:44]Method is POST - this is cgi request [00:29:44]url: /json_proto [00:29:44]query_string will be loaded in cgi processing [00:29:44]execute_cgi json_proto POST (null) [00:29:44]execute_cgi path=json_proto method=POST [00:29:44]POST find Content-Length [00:29:44]Host: 172.17.45.67:8080 [00:29:44]Content-Length: 253 [00:29:44]Content-Type: application/json [00:29:44] [00:29:44]POST finish read [00:29:44]Found Content-Length = 253 [00:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 3 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:44]execute_script... [00:29:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 3 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:44]POST & json_proto [00:29:44]process_json_proto [00:29:44]json parsed OK: [00:29:44]protocol is kg_v1.0 [00:29:44]action value=open_shift [00:29:44]process_action open_shift [00:29:44]cmd_open_shift [00:29:44]MH_GetDate [00:29:44]Write to MH i2c: F0 00 00 17 0C 12 [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: F0 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: F0 09 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: F0 09 00 17 0C 00 79 E3 C3 66 5F 7F 2B 66 0F [00:29:44]GetLastDocTimeStamp 1724113151 [00:29:44]current date 1724113785 [00:29:44]FM_GetShiftState [00:29:44]SAM_PROTO_GetShiftState [00:29:44]wFMCommunicate request_size=4 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 13 01 00 [00:29:44]Write to MH i2c: E2 08 00 18 0C 80 13 01 00 00 00 00 00 A1 [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:44]Read from MH i2c: E2 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 0E 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: E2 0E 00 18 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AC [00:29:44]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:29:44]wFMCommunicate OK [00:29:44]SAM_PROTO_GetShiftState done [00:29:44]FM_GetShiftState done [00:29:44]KKMCreateOpenShiftDocument [00:29:44]Load OK [00:29:44]Malloc new data [00:29:44]MH_GetDate [00:29:44]Write to MH i2c: F0 00 00 19 0C 14 [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: F0 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: F0 09 00 [00:29:44]MH_I2C_Read... [00:29:44]Read from MH i2c: F0 09 00 19 0C 00 79 E3 C3 66 5F 7F 2B 66 11 [00:29:44]Malloc new data [00:29:44]KKMCreateOpenShiftDocument OK [00:29:44]KKMSetOpenShiftData OK [00:29:44]ProcessDocumentItem done err = 0, tmpTLVsize=188 [00:29:44]tlvbuf is 00D804B0 [00:29:44]KKMLoadAndSignOpenShiftData [00:29:44]SAM_PROTO_ProcessDocument [00:29:44]wFMCommunicate request_size=9 [00:29:44]MH_SAM_APDU [00:29:44]CAPDU: 80 15 01 00 04 02 00 BC 00 [00:29:44]Write to MH i2c: E2 0C 00 1A 0C 80 15 01 00 04 00 02 00 BC 00 00 00 6B [00:29:44]Write i2c OK [00:29:44]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [00:29:45]RAPDU: 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=23 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:29:45]Write to MH i2c: E2 1A 00 1B 0C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 9C [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [00:29:45]RAPDU: 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=28 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 [00:29:45]Write to MH i2c: E2 1F 00 1C 0C 80 15 02 00 17 00 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 00 00 E1 [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [00:29:45]RAPDU: 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=78 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 15 02 00 49 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 [00:29:45]Write to MH i2c: E2 51 00 1D 0C 80 15 02 00 49 00 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 00 00 0B [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [00:29:45]RAPDU: 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=51 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 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:29:45]Write to MH i2c: E2 36 00 1E 0C 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 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 56 [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [00:29:45]RAPDU: 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=13 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 15 02 00 08 F4 03 04 00 79 E3 C3 66 [00:29:45]Write to MH i2c: E2 10 00 1F 0C 80 15 02 00 08 00 F4 03 04 00 79 E3 C3 66 00 00 3B [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 1F 0C 00 90 00 9F [00:29:45]RAPDU: 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=25 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 [00:29:45]Write to MH i2c: E2 1C 00 20 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 00 00 14 [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [00:29:45]RAPDU: 90 00 [00:29:45]wFMCommunicate OK [00:29:45]wFMCommunicate request_size=4 [00:29:45]MH_SAM_APDU [00:29:45]CAPDU: 80 15 03 00 [00:29:45]Write to MH i2c: E2 08 00 21 0C 80 15 03 00 00 00 00 00 AE [00:29:45]Write i2c OK [00:29:45]MH_I2C_Read... [00:29:45]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:29:45]Read from MH i2c: E2 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 38 00 [00:29:45]MH_I2C_Read... [00:29:45]Read from MH i2c: E2 38 00 21 0C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 21 02 00 0E 04 04 00 C5 01 00 00 35 04 06 00 F7 DF E4 20 89 B0 90 00 82 [00:29:45]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 37 36 10 04 04 00 08 21 02 00 0E 04 04 00 C5 01 00 00 35 04 06 00 F7 DF E4 20 89 B0 90 00 [00:29:45]wFMCommunicate OK [00:29:45]SAM_PROTO_ProcessDocument answer len = 51 [00:29:45]SAM_PROTO_ProcessDocument done [00:29:45]SetTLVBufToDocument [00:29:45]Processing tag 1209 (04B9) [00:29:45]Malloc new data [00:29:45]Processing tag 1041 (0411) [00:29:45]Processing tag 1040 (0410) [00:29:45]Malloc new data [00:29:45]Processing tag 1038 (040E) [00:29:45]Malloc new data [00:29:45]Processing tag 1077 (0435) [00:29:45]Malloc new data [00:29:45]SetTLVBufToDocument err=0 [00:29:45]KKMLoadAndSignOpenShiftData store KKM data [00:29:45]KKMLoadAndSignOpenShiftData err=0 [00:29:45]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Оператор 3 Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 Место: АЗС № 136 "Партнер Нефть" 20.08.2024 00:29 Смена: 453 РНМ: 0000000000092569 ЗНМ: 0300000067 ФД: 139528 ФМ: 0000000000871776 ФПД: 272540977105328 [00:29:45]StoreToDocumentArchive [00:29:45]shift 453 fd 139528 [00:29:45]Create dir for shift 0453 [00:29:45]save to /storage/0453/doc_00139528 [00:29:45]save last doc name /storage/0453/doc_00139528 to /storage/kkm_last_doc_name [00:29:45]save OK [00:29:45]Clear old archive folders... [00:29:45]Remove dir /storage/0452 [00:29:45]opendir ok [00:29:45]file . [00:29:45]file .. [00:29:45]file doc_00139165 [00:29:45]remove file /storage/0452/doc_00139165 [00:29:45]file doc_00139166 [00:29:45]remove file /storage/0452/doc_00139166 [00:29:45]file doc_00139167 [00:29:45]remove file /storage/0452/doc_00139167 [00:29:45]file doc_00139168 [00:29:45]remove file /storage/0452/doc_00139168 [00:29:45]file doc_00139169 [00:29:45]remove file /storage/0452/doc_00139169 [00:29:45]file doc_00139170 [00:29:45]remove file /storage/0452/doc_00139170 [00:29:45]file doc_00139171 [00:29:45]remove file /storage/0452/doc_00139171 [00:29:45]file doc_00139172 [00:29:45]remove file /storage/0452/doc_00139172 [00:29:45]file doc_00139173 [00:29:45]remove file /storage/0452/doc_00139173 [00:29:45]file doc_00139174 [00:29:45]remove file /storage/0452/doc_00139174 [00:29:45]file doc_00139175 [00:29:45]remove file /storage/0452/doc_00139175 [00:29:45]file doc_00139176 [00:29:45]remove file /storage/0452/doc_00139176 [00:29:45]file doc_00139177 [00:29:45]remove file /storage/0452/doc_00139177 [00:29:45]file doc_00139178 [00:29:45]remove file /storage/0452/doc_00139178 [00:29:45]file doc_00139179 [00:29:45]remove file /storage/0452/doc_00139179 [00:29:45]file doc_00139180 [00:29:45]remove file /storage/0452/doc_00139180 [00:29:45]file doc_00139181 [00:29:45]remove file /storage/0452/doc_00139181 [00:29:45]file doc_00139182 [00:29:45]remove file /storage/0452/doc_00139182 [00:29:45]file doc_00139183 [00:29:45]remove file /storage/0452/doc_00139183 [00:29:45]file doc_00139184 [00:29:45]remove file /storage/0452/doc_00139184 [00:29:45]file doc_00139185 [00:29:45]remove file /storage/0452/doc_00139185 [00:29:45]file doc_00139186 [00:29:45]remove file /storage/0452/doc_00139186 [00:29:45]file doc_00139187 [00:29:45]remove file /storage/0452/doc_00139187 [00:29:45]file doc_00139188 [00:29:45]remove file /storage/0452/doc_00139188 [00:29:45]file doc_00139189 [00:29:45]remove file /storage/0452/doc_00139189 [00:29:45]file doc_00139190 [00:29:45]remove file /storage/0452/doc_00139190 [00:29:45]file doc_00139191 [00:29:45]remove file /storage/0452/doc_00139191 [00:29:45]file doc_00139192 [00:29:45]remove file /storage/0452/doc_00139192 [00:29:45]file doc_00139193 [00:29:45]remove file /storage/0452/doc_00139193 [00:29:45]file doc_00139194 [00:29:45]remove file /storage/0452/doc_00139194 [00:29:45]file doc_00139195 [00:29:45]remove file /storage/0452/doc_00139195 [00:29:45]file doc_00139196 [00:29:45]remove file /storage/0452/doc_00139196 [00:29:45]file doc_00139197 [00:29:45]remove file /storage/0452/doc_00139197 [00:29:45]file doc_00139198 [00:29:45]remove file /storage/0452/doc_00139198 [00:29:45]file doc_00139199 [00:29:45]remove file /storage/0452/doc_00139199 [00:29:45]file doc_00139200 [00:29:45]remove file /storage/0452/doc_00139200 [00:29:45]file doc_00139201 [00:29:45]remove file /storage/0452/doc_00139201 [00:29:45]file doc_00139202 [00:29:45]remove file /storage/0452/doc_00139202 [00:29:46]file doc_00139203 [00:29:46]remove file /storage/0452/doc_00139203 [00:29:46]file doc_00139204 [00:29:46]remove file /storage/0452/doc_00139204 [00:29:46]file doc_00139205 [00:29:46]remove file /storage/0452/doc_00139205 [00:29:46]file doc_00139206 [00:29:46]remove file /storage/0452/doc_00139206 [00:29:46]file doc_00139207 [00:29:46]remove file /storage/0452/doc_00139207 [00:29:46]file doc_00139208 [00:29:46]remove file /storage/0452/doc_00139208 [00:29:46]file doc_00139209 [00:29:46]remove file /storage/0452/doc_00139209 [00:29:46]file doc_00139210 [00:29:46]remove file /storage/0452/doc_00139210 [00:29:46]file doc_00139211 [00:29:46]remove file /storage/0452/doc_00139211 [00:29:46]file doc_00139212 [00:29:46]remove file /storage/0452/doc_00139212 [00:29:46]file doc_00139213 [00:29:46]remove file /storage/0452/doc_00139213 [00:29:46]file doc_00139214 [00:29:46]remove file /storage/0452/doc_00139214 [00:29:46]file doc_00139215 [00:29:46]remove file /storage/0452/doc_00139215 [00:29:46]file doc_00139216 [00:29:46]remove file /storage/0452/doc_00139216 [00:29:46]file doc_00139217 [00:29:46]remove file /storage/0452/doc_00139217 [00:29:46]file doc_00139218 [00:29:46]remove file /storage/0452/doc_00139218 [00:29:46]file doc_00139219 [00:29:46]remove file /storage/0452/doc_00139219 [00:29:46]file doc_00139220 [00:29:46]remove file /storage/0452/doc_00139220 [00:29:46]file doc_00139221 [00:29:46]remove file /storage/0452/doc_00139221 [00:29:46]file doc_00139222 [00:29:46]remove file /storage/0452/doc_00139222 [00:29:46]file doc_00139223 [00:29:46]remove file /storage/0452/doc_00139223 [00:29:46]file doc_00139224 [00:29:46]remove file /storage/0452/doc_00139224 [00:29:46]file doc_00139225 [00:29:46]remove file /storage/0452/doc_00139225 [00:29:46]file doc_00139226 [00:29:46]remove file /storage/0452/doc_00139226 [00:29:46]file doc_00139227 [00:29:46]remove file /storage/0452/doc_00139227 [00:29:46]file doc_00139228 [00:29:46]remove file /storage/0452/doc_00139228 [00:29:46]file doc_00139229 [00:29:46]remove file /storage/0452/doc_00139229 [00:29:46]file doc_00139230 [00:29:46]remove file /storage/0452/doc_00139230 [00:29:46]file doc_00139231 [00:29:46]remove file /storage/0452/doc_00139231 [00:29:46]file doc_00139232 [00:29:46]remove file /storage/0452/doc_00139232 [00:29:46]file doc_00139233 [00:29:46]remove file /storage/0452/doc_00139233 [00:29:46]file doc_00139234 [00:29:46]remove file /storage/0452/doc_00139234 [00:29:46]file doc_00139235 [00:29:46]remove file /storage/0452/doc_00139235 [00:29:46]file doc_00139236 [00:29:46]remove file /storage/0452/doc_00139236 [00:29:46]file doc_00139237 [00:29:46]remove file /storage/0452/doc_00139237 [00:29:46]file doc_00139238 [00:29:46]remove file /storage/0452/doc_00139238 [00:29:46]file doc_00139239 [00:29:46]remove file /storage/0452/doc_00139239 [00:29:46]file doc_00139240 [00:29:46]remove file /storage/0452/doc_00139240 [00:29:46]file doc_00139241 [00:29:46]remove file /storage/0452/doc_00139241 [00:29:46]file doc_00139242 [00:29:46]remove file /storage/0452/doc_00139242 [00:29:46]file doc_00139243 [00:29:46]remove file /storage/0452/doc_00139243 [00:29:46]file doc_00139244 [00:29:46]remove file /storage/0452/doc_00139244 [00:29:46]file doc_00139245 [00:29:46]remove file /storage/0452/doc_00139245 [00:29:46]file doc_00139246 [00:29:46]remove file /storage/0452/doc_00139246 [00:29:46]file doc_00139247 [00:29:46]remove file /storage/0452/doc_00139247 [00:29:46]file doc_00139248 [00:29:46]remove file /storage/0452/doc_00139248 [00:29:46]file doc_00139249 [00:29:46]remove file /storage/0452/doc_00139249 [00:29:46]file doc_00139250 [00:29:46]remove file /storage/0452/doc_00139250 [00:29:46]file doc_00139251 [00:29:46]remove file /storage/0452/doc_00139251 [00:29:46]file doc_00139252 [00:29:46]remove file /storage/0452/doc_00139252 [00:29:46]file doc_00139253 [00:29:46]remove file /storage/0452/doc_00139253 [00:29:46]file doc_00139254 [00:29:46]remove file /storage/0452/doc_00139254 [00:29:46]file doc_00139255 [00:29:46]remove file /storage/0452/doc_00139255 [00:29:46]file doc_00139256 [00:29:46]remove file /storage/0452/doc_00139256 [00:29:46]file doc_00139257 [00:29:46]remove file /storage/0452/doc_00139257 [00:29:46]file doc_00139258 [00:29:46]remove file /storage/0452/doc_00139258 [00:29:46]file doc_00139259 [00:29:46]remove file /storage/0452/doc_00139259 [00:29:46]file doc_00139260 [00:29:46]remove file /storage/0452/doc_00139260 [00:29:46]file doc_00139261 [00:29:46]remove file /storage/0452/doc_00139261 [00:29:46]file doc_00139262 [00:29:46]remove file /storage/0452/doc_00139262 [00:29:46]file doc_00139263 [00:29:46]remove file /storage/0452/doc_00139263 [00:29:46]file doc_00139264 [00:29:46]remove file /storage/0452/doc_00139264 [00:29:46]file doc_00139265 [00:29:46]remove file /storage/0452/doc_00139265 [00:29:46]file doc_00139266 [00:29:46]remove file /storage/0452/doc_00139266 [00:29:46]file doc_00139267 [00:29:46]remove file /storage/0452/doc_00139267 [00:29:46]file doc_00139268 [00:29:46]remove file /storage/0452/doc_00139268 [00:29:46]file doc_00139269 [00:29:46]remove file /storage/0452/doc_00139269 [00:29:46]file doc_00139270 [00:29:46]remove file /storage/0452/doc_00139270 [00:29:46]file doc_00139271 [00:29:46]remove file /storage/0452/doc_00139271 [00:29:46]file doc_00139272 [00:29:46]remove file /storage/0452/doc_00139272 [00:29:46]file doc_00139273 [00:29:46]remove file /storage/0452/doc_00139273 [00:29:46]file doc_00139274 [00:29:46]remove file /storage/0452/doc_00139274 [00:29:46]file doc_00139275 [00:29:46]remove file /storage/0452/doc_00139275 [00:29:46]file doc_00139276 [00:29:46]remove file /storage/0452/doc_00139276 [00:29:46]file doc_00139277 [00:29:46]remove file /storage/0452/doc_00139277 [00:29:46]file doc_00139278 [00:29:46]remove file /storage/0452/doc_00139278 [00:29:46]file doc_00139279 [00:29:46]remove file /storage/0452/doc_00139279 [00:29:46]file doc_00139280 [00:29:46]remove file /storage/0452/doc_00139280 [00:29:46]file doc_00139281 [00:29:46]remove file /storage/0452/doc_00139281 [00:29:46]file doc_00139282 [00:29:46]remove file /storage/0452/doc_00139282 [00:29:46]file doc_00139283 [00:29:46]remove file /storage/0452/doc_00139283 [00:29:46]file doc_00139284 [00:29:46]remove file /storage/0452/doc_00139284 [00:29:46]file doc_00139285 [00:29:46]remove file /storage/0452/doc_00139285 [00:29:46]file doc_00139286 [00:29:46]remove file /storage/0452/doc_00139286 [00:29:46]file doc_00139287 [00:29:46]remove file /storage/0452/doc_00139287 [00:29:46]file doc_00139288 [00:29:46]remove file /storage/0452/doc_00139288 [00:29:46]file doc_00139289 [00:29:46]remove file /storage/0452/doc_00139289 [00:29:46]file doc_00139290 [00:29:46]remove file /storage/0452/doc_00139290 [00:29:46]file doc_00139291 [00:29:46]remove file /storage/0452/doc_00139291 [00:29:46]file doc_00139292 [00:29:46]remove file /storage/0452/doc_00139292 [00:29:46]file doc_00139293 [00:29:46]remove file /storage/0452/doc_00139293 [00:29:46]file doc_00139294 [00:29:46]remove file /storage/0452/doc_00139294 [00:29:46]file doc_00139295 [00:29:46]remove file /storage/0452/doc_00139295 [00:29:46]file doc_00139296 [00:29:46]remove file /storage/0452/doc_00139296 [00:29:46]file doc_00139297 [00:29:46]remove file /storage/0452/doc_00139297 [00:29:46]file doc_00139298 [00:29:46]remove file /storage/0452/doc_00139298 [00:29:46]file doc_00139299 [00:29:46]remove file /storage/0452/doc_00139299 [00:29:46]file doc_00139300 [00:29:46]remove file /storage/0452/doc_00139300 [00:29:46]file doc_00139301 [00:29:46]remove file /storage/0452/doc_00139301 [00:29:46]file doc_00139302 [00:29:46]remove file /storage/0452/doc_00139302 [00:29:46]file doc_00139303 [00:29:46]remove file /storage/0452/doc_00139303 [00:29:46]file doc_00139304 [00:29:46]remove file /storage/0452/doc_00139304 [00:29:46]file doc_00139305 [00:29:46]remove file /storage/0452/doc_00139305 [00:29:46]file doc_00139306 [00:29:46]remove file /storage/0452/doc_00139306 [00:29:46]file doc_00139307 [00:29:46]remove file /storage/0452/doc_00139307 [00:29:46]file doc_00139308 [00:29:46]remove file /storage/0452/doc_00139308 [00:29:46]file doc_00139309 [00:29:46]remove file /storage/0452/doc_00139309 [00:29:46]file doc_00139310 [00:29:46]remove file /storage/0452/doc_00139310 [00:29:46]file doc_00139311 [00:29:46]remove file /storage/0452/doc_00139311 [00:29:46]file doc_00139312 [00:29:46]remove file /storage/0452/doc_00139312 [00:29:46]file doc_00139313 [00:29:46]remove file /storage/0452/doc_00139313 [00:29:46]file doc_00139314 [00:29:46]remove file /storage/0452/doc_00139314 [00:29:46]file doc_00139315 [00:29:46]remove file /storage/0452/doc_00139315 [00:29:46]file doc_00139316 [00:29:46]remove file /storage/0452/doc_00139316 [00:29:46]file doc_00139317 [00:29:46]remove file /storage/0452/doc_00139317 [00:29:46]file doc_00139318 [00:29:46]remove file /storage/0452/doc_00139318 [00:29:46]file doc_00139319 [00:29:46]remove file /storage/0452/doc_00139319 [00:29:46]file doc_00139320 [00:29:46]remove file /storage/0452/doc_00139320 [00:29:46]file doc_00139321 [00:29:46]remove file /storage/0452/doc_00139321 [00:29:46]file doc_00139322 [00:29:46]remove file /storage/0452/doc_00139322 [00:29:46]file doc_00139323 [00:29:46]remove file /storage/0452/doc_00139323 [00:29:46]file doc_00139324 [00:29:46]remove file /storage/0452/doc_00139324 [00:29:46]OFD Sender: No OFD packet to send [00:29:46]file doc_00139325 [00:29:46]remove file /storage/0452/doc_00139325 [00:29:46]file doc_00139326 [00:29:46]remove file /storage/0452/doc_00139326 [00:29:46]file doc_00139327 [00:29:46]remove file /storage/0452/doc_00139327 [00:29:46]file doc_00139328 [00:29:46]remove file /storage/0452/doc_00139328 [00:29:46]file doc_00139329 [00:29:46]remove file /storage/0452/doc_00139329 [00:29:46]file doc_00139330 [00:29:46]remove file /storage/0452/doc_00139330 [00:29:46]file doc_00139331 [00:29:46]remove file /storage/0452/doc_00139331 [00:29:46]file doc_00139332 [00:29:46]remove file /storage/0452/doc_00139332 [00:29:46]file doc_00139333 [00:29:46]remove file /storage/0452/doc_00139333 [00:29:46]file doc_00139334 [00:29:46]remove file /storage/0452/doc_00139334 [00:29:46]file doc_00139335 [00:29:46]remove file /storage/0452/doc_00139335 [00:29:46]file doc_00139336 [00:29:46]remove file /storage/0452/doc_00139336 [00:29:46]file doc_00139337 [00:29:46]remove file /storage/0452/doc_00139337 [00:29:46]file doc_00139338 [00:29:46]remove file /storage/0452/doc_00139338 [00:29:46]file doc_00139339 [00:29:46]remove file /storage/0452/doc_00139339 [00:29:46]file doc_00139340 [00:29:46]remove file /storage/0452/doc_00139340 [00:29:46]file doc_00139341 [00:29:46]remove file /storage/0452/doc_00139341 [00:29:46]file doc_00139342 [00:29:46]remove file /storage/0452/doc_00139342 [00:29:46]file doc_00139343 [00:29:46]remove file /storage/0452/doc_00139343 [00:29:46]file doc_00139344 [00:29:46]remove file /storage/0452/doc_00139344 [00:29:46]file doc_00139345 [00:29:46]remove file /storage/0452/doc_00139345 [00:29:46]file doc_00139346 [00:29:46]remove file /storage/0452/doc_00139346 [00:29:46]file doc_00139347 [00:29:46]remove file /storage/0452/doc_00139347 [00:29:46]file doc_00139348 [00:29:46]remove file /storage/0452/doc_00139348 [00:29:46]file doc_00139349 [00:29:46]remove file /storage/0452/doc_00139349 [00:29:46]file doc_00139350 [00:29:46]remove file /storage/0452/doc_00139350 [00:29:46]file doc_00139351 [00:29:46]remove file /storage/0452/doc_00139351 [00:29:46]file doc_00139352 [00:29:46]remove file /storage/0452/doc_00139352 [00:29:46]file doc_00139353 [00:29:46]remove file /storage/0452/doc_00139353 [00:29:46]file doc_00139354 [00:29:46]remove file /storage/0452/doc_00139354 [00:29:47]file doc_00139355 [00:29:47]remove file /storage/0452/doc_00139355 [00:29:47]file doc_00139356 [00:29:47]remove file /storage/0452/doc_00139356 [00:29:47]file doc_00139357 [00:29:47]remove file /storage/0452/doc_00139357 [00:29:47]file doc_00139358 [00:29:47]remove file /storage/0452/doc_00139358 [00:29:47]file doc_00139359 [00:29:47]remove file /storage/0452/doc_00139359 [00:29:47]file doc_00139360 [00:29:47]remove file /storage/0452/doc_00139360 [00:29:47]file doc_00139361 [00:29:47]remove file /storage/0452/doc_00139361 [00:29:47]file doc_00139362 [00:29:47]remove file /storage/0452/doc_00139362 [00:29:47]file doc_00139363 [00:29:47]remove file /storage/0452/doc_00139363 [00:29:47]file doc_00139364 [00:29:47]remove file /storage/0452/doc_00139364 [00:29:47]file doc_00139365 [00:29:47]remove file /storage/0452/doc_00139365 [00:29:47]file doc_00139366 [00:29:47]remove file /storage/0452/doc_00139366 [00:29:47]file doc_00139367 [00:29:47]remove file /storage/0452/doc_00139367 [00:29:47]file doc_00139368 [00:29:47]remove file /storage/0452/doc_00139368 [00:29:47]file doc_00139369 [00:29:47]remove file /storage/0452/doc_00139369 [00:29:47]file doc_00139370 [00:29:47]remove file /storage/0452/doc_00139370 [00:29:47]file doc_00139371 [00:29:47]remove file /storage/0452/doc_00139371 [00:29:47]file doc_00139372 [00:29:47]remove file /storage/0452/doc_00139372 [00:29:47]file doc_00139373 [00:29:47]remove file /storage/0452/doc_00139373 [00:29:47]file doc_00139374 [00:29:47]remove file /storage/0452/doc_00139374 [00:29:47]file doc_00139375 [00:29:47]remove file /storage/0452/doc_00139375 [00:29:47]file doc_00139376 [00:29:47]remove file /storage/0452/doc_00139376 [00:29:47]file doc_00139377 [00:29:47]remove file /storage/0452/doc_00139377 [00:29:47]file doc_00139378 [00:29:47]remove file /storage/0452/doc_00139378 [00:29:47]file doc_00139379 [00:29:47]remove file /storage/0452/doc_00139379 [00:29:47]file doc_00139380 [00:29:47]remove file /storage/0452/doc_00139380 [00:29:47]file doc_00139381 [00:29:47]remove file /storage/0452/doc_00139381 [00:29:47]file doc_00139382 [00:29:47]remove file /storage/0452/doc_00139382 [00:29:47]file doc_00139383 [00:29:47]remove file /storage/0452/doc_00139383 [00:29:47]file doc_00139384 [00:29:47]remove file /storage/0452/doc_00139384 [00:29:47]file doc_00139385 [00:29:47]remove file /storage/0452/doc_00139385 [00:29:47]file doc_00139386 [00:29:47]remove file /storage/0452/doc_00139386 [00:29:47]file doc_00139387 [00:29:47]remove file /storage/0452/doc_00139387 [00:29:47]file doc_00139388 [00:29:47]remove file /storage/0452/doc_00139388 [00:29:47]file doc_00139389 [00:29:47]remove file /storage/0452/doc_00139389 [00:29:47]file doc_00139390 [00:29:47]remove file /storage/0452/doc_00139390 [00:29:47]file doc_00139391 [00:29:47]remove file /storage/0452/doc_00139391 [00:29:47]file doc_00139392 [00:29:47]remove file /storage/0452/doc_00139392 [00:29:47]file doc_00139393 [00:29:47]remove file /storage/0452/doc_00139393 [00:29:47]file doc_00139394 [00:29:47]remove file /storage/0452/doc_00139394 [00:29:47]file doc_00139395 [00:29:47]remove file /storage/0452/doc_00139395 [00:29:47]file doc_00139396 [00:29:47]remove file /storage/0452/doc_00139396 [00:29:47]file doc_00139397 [00:29:47]remove file /storage/0452/doc_00139397 [00:29:47]file doc_00139398 [00:29:47]remove file /storage/0452/doc_00139398 [00:29:47]file doc_00139399 [00:29:47]remove file /storage/0452/doc_00139399 [00:29:47]file doc_00139400 [00:29:47]remove file /storage/0452/doc_00139400 [00:29:47]file doc_00139401 [00:29:47]remove file /storage/0452/doc_00139401 [00:29:47]file doc_00139402 [00:29:47]remove file /storage/0452/doc_00139402 [00:29:47]file doc_00139403 [00:29:47]remove file /storage/0452/doc_00139403 [00:29:47]file doc_00139404 [00:29:47]remove file /storage/0452/doc_00139404 [00:29:47]file doc_00139405 [00:29:47]remove file /storage/0452/doc_00139405 [00:29:47]file doc_00139406 [00:29:47]remove file /storage/0452/doc_00139406 [00:29:47]file doc_00139407 [00:29:47]remove file /storage/0452/doc_00139407 [00:29:47]file doc_00139408 [00:29:47]remove file /storage/0452/doc_00139408 [00:29:47]file doc_00139409 [00:29:47]remove file /storage/0452/doc_00139409 [00:29:47]file doc_00139410 [00:29:47]remove file /storage/0452/doc_00139410 [00:29:47]file doc_00139411 [00:29:47]remove file /storage/0452/doc_00139411 [00:29:47]file doc_00139412 [00:29:47]remove file /storage/0452/doc_00139412 [00:29:47]file doc_00139413 [00:29:47]remove file /storage/0452/doc_00139413 [00:29:47]file doc_00139414 [00:29:47]remove file /storage/0452/doc_00139414 [00:29:47]file doc_00139415 [00:29:47]remove file /storage/0452/doc_00139415 [00:29:47]file doc_00139416 [00:29:47]remove file /storage/0452/doc_00139416 [00:29:47]file doc_00139417 [00:29:47]remove file /storage/0452/doc_00139417 [00:29:47]file doc_00139418 [00:29:47]remove file /storage/0452/doc_00139418 [00:29:47]file doc_00139419 [00:29:47]remove file /storage/0452/doc_00139419 [00:29:47]file doc_00139420 [00:29:47]remove file /storage/0452/doc_00139420 [00:29:47]file doc_00139421 [00:29:47]remove file /storage/0452/doc_00139421 [00:29:47]file doc_00139422 [00:29:47]remove file /storage/0452/doc_00139422 [00:29:47]file doc_00139423 [00:29:47]remove file /storage/0452/doc_00139423 [00:29:47]file doc_00139424 [00:29:47]remove file /storage/0452/doc_00139424 [00:29:47]file doc_00139425 [00:29:47]remove file /storage/0452/doc_00139425 [00:29:47]file doc_00139426 [00:29:47]remove file /storage/0452/doc_00139426 [00:29:47]file doc_00139427 [00:29:47]remove file /storage/0452/doc_00139427 [00:29:47]file doc_00139428 [00:29:47]remove file /storage/0452/doc_00139428 [00:29:47]file doc_00139429 [00:29:47]remove file /storage/0452/doc_00139429 [00:29:47]file doc_00139430 [00:29:47]remove file /storage/0452/doc_00139430 [00:29:47]file doc_00139431 [00:29:47]remove file /storage/0452/doc_00139431 [00:29:47]file doc_00139432 [00:29:47]remove file /storage/0452/doc_00139432 [00:29:47]file doc_00139433 [00:29:47]remove file /storage/0452/doc_00139433 [00:29:47]file doc_00139434 [00:29:47]remove file /storage/0452/doc_00139434 [00:29:47]file doc_00139435 [00:29:47]remove file /storage/0452/doc_00139435 [00:29:47]file doc_00139436 [00:29:47]remove file /storage/0452/doc_00139436 [00:29:47]file doc_00139437 [00:29:47]remove file /storage/0452/doc_00139437 [00:29:47]file doc_00139438 [00:29:47]remove file /storage/0452/doc_00139438 [00:29:47]file doc_00139439 [00:29:47]remove file /storage/0452/doc_00139439 [00:29:47]file doc_00139440 [00:29:47]remove file /storage/0452/doc_00139440 [00:29:47]file doc_00139441 [00:29:47]remove file /storage/0452/doc_00139441 [00:29:47]file doc_00139442 [00:29:47]remove file /storage/0452/doc_00139442 [00:29:47]file doc_00139443 [00:29:47]remove file /storage/0452/doc_00139443 [00:29:47]file doc_00139444 [00:29:47]remove file /storage/0452/doc_00139444 [00:29:47]file doc_00139445 [00:29:47]remove file /storage/0452/doc_00139445 [00:29:47]file doc_00139446 [00:29:47]remove file /storage/0452/doc_00139446 [00:29:47]file doc_00139447 [00:29:47]remove file /storage/0452/doc_00139447 [00:29:47]file doc_00139448 [00:29:47]remove file /storage/0452/doc_00139448 [00:29:47]file doc_00139449 [00:29:47]remove file /storage/0452/doc_00139449 [00:29:47]file doc_00139450 [00:29:47]remove file /storage/0452/doc_00139450 [00:29:47]file doc_00139451 [00:29:47]remove file /storage/0452/doc_00139451 [00:29:47]file doc_00139452 [00:29:47]remove file /storage/0452/doc_00139452 [00:29:47]file doc_00139453 [00:29:47]remove file /storage/0452/doc_00139453 [00:29:47]file doc_00139454 [00:29:47]remove file /storage/0452/doc_00139454 [00:29:47]file doc_00139455 [00:29:47]remove file /storage/0452/doc_00139455 [00:29:47]file doc_00139456 [00:29:47]remove file /storage/0452/doc_00139456 [00:29:47]file doc_00139457 [00:29:47]remove file /storage/0452/doc_00139457 [00:29:47]file doc_00139458 [00:29:47]remove file /storage/0452/doc_00139458 [00:29:47]file doc_00139459 [00:29:47]remove file /storage/0452/doc_00139459 [00:29:47]file doc_00139460 [00:29:47]remove file /storage/0452/doc_00139460 [00:29:47]file doc_00139461 [00:29:47]remove file /storage/0452/doc_00139461 [00:29:47]file doc_00139462 [00:29:47]remove file /storage/0452/doc_00139462 [00:29:47]file doc_00139463 [00:29:47]remove file /storage/0452/doc_00139463 [00:29:47]file doc_00139464 [00:29:47]remove file /storage/0452/doc_00139464 [00:29:47]file doc_00139465 [00:29:47]remove file /storage/0452/doc_00139465 [00:29:47]file doc_00139466 [00:29:47]remove file /storage/0452/doc_00139466 [00:29:47]file doc_00139467 [00:29:47]remove file /storage/0452/doc_00139467 [00:29:47]file doc_00139468 [00:29:47]remove file /storage/0452/doc_00139468 [00:29:47]file doc_00139469 [00:29:47]remove file /storage/0452/doc_00139469 [00:29:47]file doc_00139470 [00:29:47]remove file /storage/0452/doc_00139470 [00:29:47]file doc_00139471 [00:29:47]remove file /storage/0452/doc_00139471 [00:29:47]file doc_00139472 [00:29:47]remove file /storage/0452/doc_00139472 [00:29:47]file doc_00139473 [00:29:47]remove file /storage/0452/doc_00139473 [00:29:47]file doc_00139474 [00:29:47]remove file /storage/0452/doc_00139474 [00:29:47]file doc_00139475 [00:29:47]remove file /storage/0452/doc_00139475 [00:29:47]file doc_00139476 [00:29:47]remove file /storage/0452/doc_00139476 [00:29:47]file doc_00139477 [00:29:47]remove file /storage/0452/doc_00139477 [00:29:47]file doc_00139478 [00:29:47]remove file /storage/0452/doc_00139478 [00:29:47]file doc_00139479 [00:29:47]remove file /storage/0452/doc_00139479 [00:29:47]file doc_00139480 [00:29:47]remove file /storage/0452/doc_00139480 [00:29:47]file doc_00139481 [00:29:47]remove file /storage/0452/doc_00139481 [00:29:47]file doc_00139482 [00:29:47]remove file /storage/0452/doc_00139482 [00:29:47]file doc_00139483 [00:29:47]remove file /storage/0452/doc_00139483 [00:29:47]file doc_00139484 [00:29:47]remove file /storage/0452/doc_00139484 [00:29:47]file doc_00139485 [00:29:47]remove file /storage/0452/doc_00139485 [00:29:47]file doc_00139486 [00:29:47]remove file /storage/0452/doc_00139486 [00:29:47]file doc_00139487 [00:29:47]remove file /storage/0452/doc_00139487 [00:29:47]file doc_00139488 [00:29:47]remove file /storage/0452/doc_00139488 [00:29:47]file doc_00139489 [00:29:47]remove file /storage/0452/doc_00139489 [00:29:47]file doc_00139490 [00:29:47]remove file /storage/0452/doc_00139490 [00:29:47]file doc_00139491 [00:29:47]remove file /storage/0452/doc_00139491 [00:29:47]file doc_00139492 [00:29:47]remove file /storage/0452/doc_00139492 [00:29:47]file doc_00139493 [00:29:47]remove file /storage/0452/doc_00139493 [00:29:47]file doc_00139494 [00:29:47]remove file /storage/0452/doc_00139494 [00:29:47]file doc_00139495 [00:29:47]remove file /storage/0452/doc_00139495 [00:29:47]file doc_00139496 [00:29:47]remove file /storage/0452/doc_00139496 [00:29:47]file doc_00139497 [00:29:47]remove file /storage/0452/doc_00139497 [00:29:47]file doc_00139498 [00:29:47]remove file /storage/0452/doc_00139498 [00:29:47]file doc_00139499 [00:29:47]remove file /storage/0452/doc_00139499 [00:29:47]file doc_00139500 [00:29:47]remove file /storage/0452/doc_00139500 [00:29:47]file doc_00139501 [00:29:47]remove file /storage/0452/doc_00139501 [00:29:47]file doc_00139502 [00:29:47]remove file /storage/0452/doc_00139502 [00:29:47]file doc_00139503 [00:29:47]remove file /storage/0452/doc_00139503 [00:29:47]file doc_00139504 [00:29:47]remove file /storage/0452/doc_00139504 [00:29:47]file doc_00139505 [00:29:47]remove file /storage/0452/doc_00139505 [00:29:47]file doc_00139506 [00:29:47]remove file /storage/0452/doc_00139506 [00:29:47]file doc_00139507 [00:29:47]remove file /storage/0452/doc_00139507 [00:29:47]file doc_00139508 [00:29:47]remove file /storage/0452/doc_00139508 [00:29:47]file doc_00139509 [00:29:47]remove file /storage/0452/doc_00139509 [00:29:47]file doc_00139510 [00:29:47]remove file /storage/0452/doc_00139510 [00:29:47]file doc_00139511 [00:29:47]remove file /storage/0452/doc_00139511 [00:29:47]file doc_00139512 [00:29:47]remove file /storage/0452/doc_00139512 [00:29:47]file doc_00139513 [00:29:47]remove file /storage/0452/doc_00139513 [00:29:47]file doc_00139514 [00:29:47]remove file /storage/0452/doc_00139514 [00:29:47]file doc_00139515 [00:29:47]remove file /storage/0452/doc_00139515 [00:29:47]file doc_00139516 [00:29:47]remove file /storage/0452/doc_00139516 [00:29:47]file doc_00139517 [00:29:47]remove file /storage/0452/doc_00139517 [00:29:47]file doc_00139518 [00:29:47]remove file /storage/0452/doc_00139518 [00:29:47]file doc_00139519 [00:29:47]remove file /storage/0452/doc_00139519 [00:29:47]file doc_00139520 [00:29:47]remove file /storage/0452/doc_00139520 [00:29:47]file doc_00139521 [00:29:47]remove file /storage/0452/doc_00139521 [00:29:47]file doc_00139522 [00:29:47]remove file /storage/0452/doc_00139522 [00:29:47]file doc_00139523 [00:29:47]remove file /storage/0452/doc_00139523 [00:29:47]file doc_00139524 [00:29:47]remove file /storage/0452/doc_00139524 [00:29:47]file doc_00139525 [00:29:47]remove file /storage/0452/doc_00139525 [00:29:47]file doc_00139526 [00:29:47]remove file /storage/0452/doc_00139526 [00:29:47]file doc_00139527 [00:29:47]remove file /storage/0452/doc_00139527 [00:29:47]remove dir /storage/0452 [00:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=239 [00:29:47]tlvbuf is 00D49350 [00:29:47]SAM_PROTO_ClearQueue [00:29:47]wFMCommunicate request_size=4 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 09 00 00 [00:29:47]Write to MH i2c: E2 08 00 22 0C 80 09 00 00 00 00 00 00 A0 [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 03 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [00:29:47]RAPDU: 90 00 [00:29:47]wFMCommunicate OK [00:29:47]SAM_PROTO_ClearQueue done [00:29:47]KKMCreateOFDPacket [00:29:47]OFDProtocolAddRootSTLVToBuf [00:29:47]FM_MakeSignedData [00:29:47]FM_MakeSignedData [00:29:47]SAM_PROTO_SignData [00:29:47]wFMCommunicate request_size=4 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 0D 01 02 [00:29:47]Write to MH i2c: E2 08 00 23 0C 80 0D 01 02 00 00 00 00 A8 [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 03 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [00:29:47]RAPDU: 90 00 [00:29:47]wFMCommunicate OK [00:29:47]wFMCommunicate request_size=248 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 0D 02 02 F3 02 00 EF 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 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 79 E3 C3 66 0E 04 04 00 C5 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 F7 DF E4 20 89 B0 [00:29:47]Write to MH i2c: E2 FB 00 24 0C 80 0D 02 02 F3 00 02 00 EF 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 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 79 E3 C3 66 0E 04 04 00 C5 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 F7 DF E4 20 89 B0 00 00 B6 [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 [00:29:48]MH_I2C_Read... [00:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:48]Read from MH i2c: E2 03 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [00:29:48]RAPDU: 90 00 [00:29:48]wFMCommunicate OK [00:29:48]wFMCommunicate request_size=4 [00:29:48]MH_SAM_APDU [00:29:48]CAPDU: 80 0D 03 02 [00:29:48]Write to MH i2c: E2 08 00 25 0C 80 0D 03 02 00 00 00 00 AC [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:48]Read from MH i2c: E2 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 0B 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 0B 00 25 0C 00 E8 5C 83 02 B6 59 F4 6C 90 00 E5 [00:29:48]RAPDU: E8 5C 83 02 B6 59 F4 6C 90 00 [00:29:48]wFMCommunicate OK [00:29:48]SAM_PROTO_SignData done [00:29:48]FM_MakeSignedData done [00:29:48]CreateOFDProtocolMessage [00:29:48]wFMCommunicate request_size=4 [00:29:48]MH_SAM_APDU [00:29:48]CAPDU: 80 11 00 00 [00:29:48]Write to MH i2c: E2 08 00 26 0C 80 11 00 00 00 00 00 00 AC [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:48]Read from MH i2c: E2 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 17 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 17 00 26 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 03 [00:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:29:48]wFMCommunicate OK [00:29:48]CreateOFDProtocolMessage done [00:29:48]OFDSenderStorePacket 139528 [00:29:48]StoreOFDPacket docnum=139528 [00:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 03 01 00 00 71 5E FB 00 FC EA 5A 02 01 00 02 00 EF 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 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 79 E3 C3 66 0E 04 04 00 C5 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 F7 DF E4 20 89 B0 E8 5C 83 02 B6 59 F4 6C [00:29:48]CheckFolder [00:29:48]dirname=/storage/ofd_packets [00:29:48]CheckFolder done [00:29:48]ProducePacketName [00:29:48]name=ofd_packets/00139528 [00:29:48]NVStorageSaveData ofd_packets/00139528 [00:29:48]File name is /storage/ofd_packets/00139528 [00:29:48]Write 289 bytes [00:29:48]NVStorageSaveData done [00:29:48]OFDSenderStorePacket done [00:29:48]KKMCreateOFDPacket done [00:29:48]NVStorageSaveData kkm_last_timestamp [00:29:48]File name is /storage/kkm_last_timestamp [00:29:48]Write 4 bytes [00:29:48]NVStorageSaveData done [00:29:48]ExternCall_PrintAddStr [00:29:48]wPrintStart [00:29:48]Write to MH i2c: 01 00 00 27 0C 33 [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: 01 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: 01 07 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: 01 07 00 27 0C 00 00 00 00 00 FF 0F 48 [00:29:48]RasterBufferAndPrint [00:29:48]line Отчет об открытии смены [00:29:48]line ФФД: 1.0 [00:29:48]line ИНН: 02508201610067 [00:29:48]line Кассир: Оператор 3 [00:29:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:29:48]line Место: АЗС № 136 "Партнер Нефть" [00:29:48]line 20.08.2024 00:29 [00:29:48]line Смена: 453 [00:29:48]line РНМ: 0000000000092569 [00:29:48]line ЗНМ: 0300000067 [00:29:48]line ФД: 139528 [00:29:48]line ФМ: 0000000000871776 [00:29:48]line ФПД: 272540977105328 [00:29:48]written 0, free lines is 4095 [00:29:48]OFD Sender: Processing packet 139528 [packets to send 137, broken 136] [00:29:48]ProducePacketName [00:29:48]name=ofd_packets/00139528 [00:29:48]OFD Sender: To server: pG, [00:29:48]CommunicateWithHost lk.salyk.kg:30040 [00:29:48]ConnectInit lk.salyk.kg [00:29:48]Connected sock=10 [00:29: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 37 36 03 01 00 00 71 5E FB 00 FC EA 5A 02 01 00 02 00 EF 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 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 79 E3 C3 66 0E 04 04 00 C5 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 F7 DF E4 20 89 B0 E8 5C 83 02 B6 59 F4 6C [00:29:48]Write to MH i2c: 01 00 00 39 0C 45 [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: 01 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: 01 07 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: 01 07 00 39 0C 00 00 00 00 00 4D 0F A8 [00:29:48]RasterBufferAndPrint [00:29:48]line [00:29:48]line [00:29:48]line [00:29:48]line [00:29:48]line [00:29:48]written 0, free lines is 3937 [00:29:48]MH_Cut [00:29:48]Write to MH i2c: D1 01 00 40 0C 01 1E [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: D1 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: D1 01 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: D1 01 00 40 0C 00 1D [00:29:48]Write to MH i2c: 01 00 00 41 0C 4D [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29: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 37 36 4F 00 00 00 D5 9A 47 00 33 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 37 36 10 04 04 00 08 21 02 00 F4 03 04 00 10 8A C3 66 B6 04 01 00 00 65 29 37 60 54 B0 16 C6 [00:29:49]CommunicateWithHost err = 0 [00:29:49]CheckOFDResponse [00:29:49]*** Cut start [00:29:49]1017 (14) - 77093643461234 [00:29:49]*** Partial cut [00:29:49]1041 (16) - 0000000000871776 [00:29:49]*** CUTSNS_PIN = 1 [00:29:49]1040 (4) - 139528 [00:29:49]*** CUTSNS_PIN = 0 [00:29:49]1012 (4) - 19.08.2024 18:08 [00:29:49]1206 (1) - 0 [00:29:49]OFD Sender: Remove packet 139528 [00:29:49]ProducePacketName [00:29:49]name=ofd_packets/00139528 [00:29:49]NVStorageDeleteData [00:29:49]*** Brake cut motor [00:29:49]Read from MH i2c: 01 [00:29:49]MH_I2C_Read... [00:29:49]*** Stop cut motor [00:29:49]*** Cut end [00:29:49]Read from MH i2c: 01 07 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 FF 0F 62 [00:29:49]process_action open_shift done [00:29:49]requested_data is exist [00:29:49]produce_requested_data [00:29:49]requested_item fd.num is exist - process it [00:29:49]SAM_PROTO_GetFieldsCounters [00:29:49]wFMCommunicate request_size=4 [00:29:49]MH_SAM_APDU [00:29:49]CAPDU: 80 13 00 00 [00:29:49]Write to MH i2c: E2 08 00 42 0C 80 13 00 00 00 00 00 00 CA [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:49]OFD Sender: No OFD packet to send [00:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 62 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 62 00 42 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [00:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:49]wFMCommunicate OK [00:29:49]SAM_PROTO_GetFieldsCounters done [00:29:49]requested_item shift.num is exist - process it [00:29:49]requested_item shift.opened is exist - process it [00:29:49]req_shift_opened [00:29:49]FM_GetShiftState [00:29:49]SAM_PROTO_GetShiftState [00:29:49]wFMCommunicate request_size=4 [00:29:49]MH_SAM_APDU [00:29:49]CAPDU: 80 13 01 00 [00:29:49]Write to MH i2c: E2 08 00 43 0C 80 13 01 00 00 00 00 00 CC [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 0E 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 0E 00 43 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5D [00:29:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:29:49]wFMCommunicate OK [00:29:49]SAM_PROTO_GetShiftState done [00:29:49]FM_GetShiftState done [00:29:49]req_shift_opened done [00:29:49]requested_item shift.open_date is exist - process it [00:29:49]req_shift_open_date [00:29:49]req_shift_open_date done [00:29:49]produce_requested_data done [00:29:49]produce_requested_data return {"fd.num":139528,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [00:29:49]process_action_free open_shift [00:29:49]json_value_free [00:29:49]json_value_free done [00:29:49]process_json_proto returns [00:29:49]Send response to host [00:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139528,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [00:29:49]free response buf [00:29:49]execute_script done [00:29:49]execute_script returns [00:29:49]free content buf [00:29:49]Sock 7.Close socket [00:29:49]Sock 7.Thread stoped [00:29:49]accept exits with 9 [00:29:49]New connection [00:29:49]New thread 3067215204 created [00:29:49]Thread 3067071844 joined [00:29:49]Waiting for new connection... [00:29:49] Sock 9.Parse request [00:29:49]Sock 9.Check first char [00:29:49]Sock 9.First char is OK [00:29:49]request: POST /json_proto HTTP/1.0 [00:29:49]Method: POST [00:29:49]URL: /json_proto [00:29:49]Method is POST - this is cgi request [00:29:49]url: /json_proto [00:29:49]query_string will be loaded in cgi processing [00:29:49]execute_cgi json_proto POST (null) [00:29:49]execute_cgi path=json_proto method=POST [00:29:49]POST find Content-Length [00:29:49]Host: 172.17.45.67:8080 [00:29:49]Content-Length: 331 [00:29:49]Content-Type: application/json [00:29:49] [00:29:49]POST finish read [00:29:49]Found Content-Length = 331 [00:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:49]execute_script... [00:29:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:49]POST & json_proto [00:29:49]process_json_proto [00:29:49]json parsed OK: [00:29:49]protocol is kg_v1.0 [00:29:49]action value=get_value [00:29:49]process_action get_value [00:29:49]cmd_get_value [00:29:49]process_action get_value done [00:29:49]requested_data is exist [00:29:49]produce_requested_data [00:29:49]requested_item fm.sale.total is exist - process it [00:29:49]SAM_PROTO_GetFMData [00:29:49]wFMCommunicate request_size=4 [00:29:49]MH_SAM_APDU [00:29:49]CAPDU: 80 13 03 00 [00:29:49]Write to MH i2c: E2 08 00 44 0C 80 13 03 00 00 00 00 00 CF [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:50]Read from MH i2c: E2 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 44 0C 00 C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 D2 [00:29:50]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 7D 1D 02 00 69 04 A3 00 6F 04 04 00 FC 1C 02 00 B1 04 05 00 DF 70 47 3A 02 70 04 05 00 08 E6 29 F0 01 72 04 04 00 D7 8A 1D 4A 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 C4 96 3C 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 0E 71 0C 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 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 E8 15 36 EF 03 09 00 90 00 [00:29:50]wFMCommunicate OK [00:29:50]wFMCommunicate request_size=4 [00:29:50]MH_SAM_APDU [00:29:50]CAPDU: 80 17 00 00 [00:29:50]Write to MH i2c: E2 08 00 45 0C 80 17 00 00 00 00 00 00 D1 [00:29:50]Write i2c OK [00:29:50]MH_I2C_Read... [00:29:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:50]Read from MH i2c: E2 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 45 0C 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 D6 [00:29:50]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:29:50]wFMCommunicate OK [00:29:50]wFMCommunicate request_size=4 [00:29:50]MH_SAM_APDU [00:29:50]CAPDU: 80 17 00 00 [00:29:51]Write to MH i2c: E2 08 00 46 0C 80 17 00 00 00 00 00 00 D2 [00:29:51]Write i2c OK [00:29:51]MH_I2C_Read... [00:29:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:51]Read from MH i2c: E2 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 46 0C 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 E7 [00:29:51]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:29:51]wFMCommunicate OK [00:29:51]wFMCommunicate request_size=4 [00:29:51]MH_SAM_APDU [00:29:51]CAPDU: 80 17 00 00 [00:29:51]Write to MH i2c: E2 08 00 47 0C 80 17 00 00 00 00 00 00 D3 [00:29:51]Write i2c OK [00:29:51]MH_I2C_Read... [00:29:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:51]Read from MH i2c: E2 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 47 0C 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4B [00:29:51]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:29:51]wFMCommunicate OK [00:29:51]wFMCommunicate request_size=4 [00:29:51]MH_SAM_APDU [00:29:51]CAPDU: 80 17 00 00 [00:29:51]Write to MH i2c: E2 08 00 48 0C 80 17 00 00 00 00 00 00 D4 [00:29:51]Write i2c OK [00:29:51]MH_I2C_Read... [00:29:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:29:52]Read from MH i2c: E2 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 E1 00 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 E1 00 48 0C 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 [00:29:52]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:52]wFMCommunicate OK [00:29:52]SAM_PROTO_GetFMData done [00:29:52]requested_item fm.sale_refund.total is exist - process it [00:29:52]requested_item fm.buy.total is exist - process it [00:29:52]requested_item shift.sale.total is exist - process it [00:29:52]SAM_PROTO_GetShiftData [00:29:52]wFMCommunicate request_size=4 [00:29:52]MH_SAM_APDU [00:29:52]CAPDU: 80 13 02 00 [00:29:52]Write to MH i2c: E2 08 00 49 0C 80 13 02 00 00 00 00 00 D3 [00:29:52]Write i2c OK [00:29:52]MH_I2C_Read... [00:29:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:52]Read from MH i2c: E2 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 49 0C 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 46 [00:29:52]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:29:52]wFMCommunicate OK [00:29:52]wFMCommunicate request_size=4 [00:29:52]MH_SAM_APDU [00:29:52]CAPDU: 80 17 00 00 [00:29:52]Write to MH i2c: E2 08 00 4A 0C 80 17 00 00 00 00 00 00 D6 [00:29:52]Write i2c OK [00:29:52]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 4A 0C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 DE [00:29:53]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:29:53]wFMCommunicate OK [00:29:53]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 17 00 00 [00:29:53]Write to MH i2c: E2 08 00 4B 0C 80 17 00 00 00 00 00 00 D7 [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 4B 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 A9 [00:29:53]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:29:53]wFMCommunicate OK [00:29:53]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 17 00 00 [00:29:53]Write to MH i2c: E2 08 00 4C 0C 80 17 00 00 00 00 00 00 D8 [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 4C 0C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 4A [00:29:54]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:29:54]wFMCommunicate OK [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 17 00 00 [00:29:54]Write to MH i2c: E2 08 00 4D 0C 80 17 00 00 00 00 00 00 D9 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 BD 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 BD 00 4D 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF OFD Sender: No OFD packet to send [00:29:54]03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BF [00:29:54]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:29:54]wFMCommunicate OK [00:29:54]SAM_PROTO_GetShiftData done [00:29:54]requested_item shift.sale.total_cash is exist - process it [00:29:54]requested_item shift.sale_refund.total is exist - process it [00:29:54]requested_item shift.sale_refund.total_cash is exist - process it [00:29:54]requested_item shift.buy.total is exist - process it [00:29:54]requested_item shift.buy.total_cash is exist - process it [00:29:54]produce_requested_data done [00:29:54]produce_requested_data return {"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.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:29:54]process_action_free get_value [00:29:54]json_value_free [00:29:54]json_value_free done [00:29:54]process_json_proto returns [00:29:54]Send response to host [00:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95676950.71,"fm.sale_refund.total":333741.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:29:54]free response buf [00:29:54]execute_script done [00:29:54]execute_script returns [00:29:54]free content buf [00:29:54]Sock 9.Close socket [00:29:54]Sock 9.Thread stoped [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:43]accept exits with 7 [00:39:43]New connection [00:39:43]New thread 3067071844 created [00:39:43]Thread 3067215204 joined [00:39:43]Waiting for new connection... [00:39:43] Sock 7.Parse request [00:39:43]Sock 7.Check first char [00:39:43]Sock 7.First char is OK [00:39:43]request: POST /json_proto HTTP/1.0 [00:39:43]Method: POST [00:39:43]URL: /json_proto [00:39:43]Method is POST - this is cgi request [00:39:43]url: /json_proto [00:39:43]query_string will be loaded in cgi processing [00:39:43]execute_cgi json_proto POST (null) [00:39:43]execute_cgi path=json_proto method=POST [00:39:43]POST find Content-Length [00:39:43]Host: 172.17.45.67:8080 [00:39:43]Content-Length: 677 [00:39:43]Content-Type: application/json [00:39:43] [00:39:43]POST finish read [00:39:43]Found Content-Length = 677 [00:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:43]execute_script... [00:39: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)593371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:43]POST & json_proto [00:39:43]process_json_proto [00:39:43]json parsed OK: [00:39:43]protocol is kg_v1.0 [00:39:43]action value=close_receipt [00:39:43]process_action close_receipt [00:39:43]cmd_close_receipt [00:39:43]MH_GetDate [00:39:43]Write to MH i2c: F0 00 00 4E 0C 49 [00:39:43]Write i2c OK [00:39:43]MH_I2C_Read... [00:39:43]Read from MH i2c: F0 [00:39:43]MH_I2C_Read... [00:39:43]Read from MH i2c: F0 09 00 [00:39:43]MH_I2C_Read... [00:39:43]Read from MH i2c: F0 09 00 4E 0C 00 D0 E5 C3 66 5F 7F 2B 66 9F [00:39:43]GetLastDocTimeStamp 1724113785 [00:39:43]current date 1724114384 [00:39:43]FM_GetShiftState [00:39:43]SAM_PROTO_GetShiftState [00:39:43]wFMCommunicate request_size=4 [00:39:43]MH_SAM_APDU [00:39:43]CAPDU: 80 13 01 00 [00:39:43]Write to MH i2c: E2 08 00 4F 0C 80 13 01 00 00 00 00 00 D8 [00:39:43]Write i2c OK [00:39:43]MH_I2C_Read... [00:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:43]Read from MH i2c: E2 [00:39:43]MH_I2C_Read... [00:39:43]Read from MH i2c: E2 0E 00 [00:39:43]MH_I2C_Read... [00:39:43]Read from MH i2c: E2 0E 00 4F 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 69 [00:39:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:39:43]wFMCommunicate OK [00:39:43]SAM_PROTO_GetShiftState done [00:39:43]FM_GetShiftState done [00:39:43]opened in 1724113785 [00:39:43]opened+sec_in_day 1724200185 [00:39:43]quantity*price = 50010 [00:39:43]sum+1 = 50012 [00:39:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 1 20.08.2024 00:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139529 ФПД: 195363037713173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T003944&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139529&fm=195363037713173&tin=02508201610067®Number=0000000000092569&sum=50000 [00:39:44]StoreToDocumentArchive [00:39:44]shift 453 fd 139529 [00:39:44]save to /storage/0453/doc_00139529 [00:39:44]save last doc name /storage/0453/doc_00139529 to /storage/kkm_last_doc_name [00:39:44]save OK [00:39:44]Clear old archive folders... [00:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:39:44]tlvbuf is 00D3A8A0 [00:39:44]SAM_PROTO_ClearQueue [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 09 00 00 [00:39:44]Write to MH i2c: E2 08 00 5C 0C 80 09 00 00 00 00 00 00 DA [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [00:39:44]RAPDU: 90 00 [00:39:44]wFMCommunicate OK [00:39:44]SAM_PROTO_ClearQueue done [00:39:44]KKMCreateOFDPacket [00:39:44]OFDProtocolAddRootSTLVToBuf [00:39:44]FM_MakeSignedData [00:39:44]FM_MakeSignedData [00:39:44]SAM_PROTO_SignData [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 0D 01 02 [00:39:44]Write to MH i2c: E2 08 00 5D 0C 80 0D 01 02 00 00 00 00 E2 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [00:39:44]RAPDU: 90 00 [00:39:44]wFMCommunicate OK [00:39:44]wFMCommunicate request_size=255 [00:39:44]MH_SAM_APDU [00:39: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D0 E5 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 21 02 00 35 04 06 00 B1 [00:39:44]Write to MH i2c: E2 02 01 5E 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D0 E5 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 21 02 00 35 04 06 00 B1 00 00 D5 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [00:39:44]RAPDU: 90 00 [00:39:44]wFMCommunicate OK [00:39:44]wFMCommunicate request_size=10 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 0D 02 02 05 AE 80 77 13 15 [00:39:44]Write to MH i2c: E2 0D 00 5F 0C 80 0D 02 02 05 00 AE 80 77 13 15 00 00 BC [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [00:39:44]RAPDU: 90 00 [00:39:44]wFMCommunicate OK [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 0D 03 02 [00:39:44]Write to MH i2c: E2 08 00 60 0C 80 0D 03 02 00 00 00 00 E7 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 0B 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 0B 00 60 0C 00 BE 43 B4 37 98 60 6F 0C 90 00 47 [00:39:45]RAPDU: BE 43 B4 37 98 60 6F 0C 90 00 [00:39:45]wFMCommunicate OK [00:39:45]SAM_PROTO_SignData done [00:39:45]FM_MakeSignedData done [00:39:45]CreateOFDProtocolMessage [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 11 00 00 [00:39:45]Write to MH i2c: E2 08 00 61 0C 80 11 00 00 00 00 00 00 E7 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 17 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 17 00 61 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [00:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:39:45]wFMCommunicate OK [00:39:45]CreateOFDProtocolMessage done [00:39:45]OFDSenderStorePacket 139529 [00:39:45]StoreOFDPacket docnum=139529 [00:39:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 D3 07 01 70 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D0 E5 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 21 02 00 35 04 06 00 B1 AE 80 77 13 15 BE 43 B4 37 98 60 6F 0C [00:39:45]CheckFolder [00:39:45]dirname=/storage/ofd_packets [00:39:45]CheckFolder done [00:39:45]ProducePacketName [00:39:45]name=ofd_packets/00139529 [00:39:45]NVStorageSaveData ofd_packets/00139529 [00:39:45]File name is /storage/ofd_packets/00139529 [00:39:45]Write 301 bytes [00:39:45]NVStorageSaveData done [00:39:45]OFDSenderStorePacket done [00:39:45]KKMCreateOFDPacket done [00:39:45]NVStorageSaveData kkm_last_timestamp [00:39:45]File name is /storage/kkm_last_timestamp [00:39:45]Write 4 bytes [00:39:45]NVStorageSaveData done [00:39:45]ExternCall_PrintAddStr [00:39:45]wPrintStart [00:39:45]Write to MH i2c: 01 00 00 62 0C 6E [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 62 0C 00 00 00 00 00 FF 0F 83 [00:39:45]RasterBufferAndPrint [00:39:45]line Счет N : (1)593371 [00:39:45]line ИНН: 02508201610067 [00:39:45]line Контрольно-Кассовый Чек [00:39:45]line ПРОДАЖА [00:39:45]line ТРК (МРК, ГНК) : 51 [00:39:45]line Товар: 2710124500 [00:39:45]line Аи-95-К-5 [00:39:45]line 6.740 * 74.20 [00:39:45]line = 500.11 [00:39:45]line НДС 12% НСП 1% [00:39:45]line > о реализуемом товаре [00:39:45]line ОКРУГЛЕНИЕ: -0.11 [00:39:45]line ИТОГО: 500.00 [00:39:45]line Внесено: 500.00 [00:39:45]line СДАЧА: 0.00 [00:39:45]line НСП 1% : 4.43 [00:39:45]line НДС 12% : 53.11 [00:39:45]line Наличными: 500.00 [00:39:45]line Безнал.: 0.00 [00:39:45]line Место: АЗС № 136 "Партнер Нефть" [00:39:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:39:45]line СНО: Общий режим [00:39:45]line Чек 1 20.08.2024 00:39 [00:39:45]line Смена: 453 ФФД: 1.0 [00:39:45]line ЗНМ: 0300000067 [00:39:45]line РНМ: 0000000000092569 [00:39:45]line Версия ККМ: 001 [00:39:45]line ФМ: 0000000000871776 [00:39:45]line ФД: 139529 [00:39:45]line ФПД: 195363037713173 [00:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T003944&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139529&fm=195363037713173&tin=02508201610067®Number=0000000000092569&sum=50000 [00:39:45]OFD Sender: Processing packet 139529 [packets to send 137, broken 136] [00:39:45]ProducePacketName [00:39:45]name=ofd_packets/00139529 [00:39:45]OFD Sender: To server: pG, [00:39:45]CommunicateWithHost lk.salyk.kg:30040 [00:39:45]ConnectInit lk.salyk.kg [00:39:45]written 0, free lines is 4095 [00:39:45]Connected sock=10 [00: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 37 36 0F 01 00 00 81 D3 07 01 70 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D0 E5 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 21 02 00 35 04 06 00 B1 AE 80 77 13 15 BE 43 B4 37 98 60 6F 0C [00: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 37 36 4F 00 00 00 A8 77 47 00 7D 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 37 36 10 04 04 00 09 21 02 00 F4 03 04 00 65 8C C3 66 B6 04 01 00 00 DC 11 79 CD DE 63 91 CB [00:39:45]CommunicateWithHost err = 0 [00:39:45]CheckOFDResponse [00:39:45]1017 (14) - 77093643461234 [00:39:45]1041 (16) - 0000000000871776 [00:39:45]1040 (4) - 139529 [00:39:45]1012 (4) - 19.08.2024 18:18 [00:39:45]1206 (1) - 0 [00:39:45]OFD Sender: Remove packet 139529 [00:39:45]ProducePacketName [00:39:45]name=ofd_packets/00139529 [00:39:45]NVStorageDeleteData [00:39:45]Write to MH i2c: 01 00 00 8D 0C 99 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 8D 0C 00 00 00 00 00 BE 0C 6A [00:39:45]RasterBufferAndPrint [00:39:45]line [00:39:45]line [00:39:45]line [00:39:45]line [00:39:45]line [00:39:45]written 0, free lines is 3269 [00:39:45]MH_Cut [00:39:45]Write to MH i2c: D1 01 00 94 0C 01 72 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: D1 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: D1 01 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: D1 01 00 94 0C 00 71 [00:39:45]Write to MH i2c: 01 00 00 95 0C A1 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:46]OFD Sender: No OFD packet to send [00:39:46]*** Cut start [00:39:46]*** Partial cut [00:39:46]*** CUTSNS_PIN = 1 [00:39:46]*** CUTSNS_PIN = 0 [00:39:46]*** Brake cut motor [00:39:47]Read from MH i2c: 01 [00:39:47]MH_I2C_Read... [00:39:47]*** Stop cut motor [00:39:47]*** Cut end [00:39:47]Read from MH i2c: 01 07 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: 01 07 00 95 0C 00 00 00 00 00 FF 0F B6 [00:39:47]process_action close_receipt done [00:39:47]requested_data is exist [00:39:47]produce_requested_data [00:39:47]requested_item fm.sn is exist - process it [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 11 00 00 [00:39:47]Write to MH i2c: E2 08 00 96 0C 80 11 00 00 00 00 00 00 1C [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 17 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 17 00 96 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 73 [00:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:39:47]wFMCommunicate OK [00:39:47]requested_item fd.num is exist - process it [00:39:47]SAM_PROTO_GetFieldsCounters [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 13 00 00 [00:39:47]Write to MH i2c: E2 08 00 97 0C 80 13 00 00 00 00 00 00 1F [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 62 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 62 00 97 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [00:39: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:47]wFMCommunicate OK [00:39:47]SAM_PROTO_GetFieldsCounters done [00:39:47]requested_item shift.num is exist - process it [00:39:47]requested_item shift.opened is exist - process it [00:39:47]req_shift_opened [00:39:47]FM_GetShiftState [00:39:47]SAM_PROTO_GetShiftState [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 13 01 00 [00:39:47]Write to MH i2c: E2 08 00 98 0C 80 13 01 00 00 00 00 00 21 [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 0E 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 0E 00 98 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B2 [00:39:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:39:47]wFMCommunicate OK [00:39:47]SAM_PROTO_GetShiftState done [00:39:47]FM_GetShiftState done [00:39:47]req_shift_opened done [00:39:47]requested_item shift.open_date is exist - process it [00:39:47]req_shift_open_date [00:39:47]req_shift_open_date done [00:39:47]produce_requested_data done [00:39:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139529,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [00:39:47]process_action_free close_receipt [00:39:47]json_value_free [00:39:47]json_value_free done [00:39:47]process_json_proto returns [00:39:47]Send response to host [00:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139529,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [00:39:47]free response buf [00:39:47]execute_script done [00:39:47]execute_script returns [00:39:47]free content buf [00:39:47]Sock 7.Close socket [00:39:47]Sock 7.Thread stoped [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:04]accept exits with 9 [00:41:04]New connection [00:41:04]New thread 3067215204 created [00:41:04]Thread 3067071844 joined [00:41:04]Waiting for new connection... [00:41:04] Sock 9.Parse request [00:41:04]Sock 9.Check first char [00:41:04]Sock 9.First char is OK [00:41:04]request: POST /json_proto HTTP/1.0 [00:41:04]Method: POST [00:41:04]URL: /json_proto [00:41:04]Method is POST - this is cgi request [00:41:04]url: /json_proto [00:41:04]query_string will be loaded in cgi processing [00:41:04]execute_cgi json_proto POST (null) [00:41:04]execute_cgi path=json_proto method=POST [00:41:04]POST find Content-Length [00:41:04]Host: 172.17.45.67:8080 [00:41:04]Content-Length: 677 [00:41:04]Content-Type: application/json [00:41:04] [00:41:04]POST finish read [00:41:04]Found Content-Length = 677 [00:41:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [00:41:04]execute_script... [00:41: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)593373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [00:41:04]POST & json_proto [00:41:04]process_json_proto [00:41:04]json parsed OK: [00:41:04]protocol is kg_v1.0 [00:41:04]action value=close_receipt [00:41:04]process_action close_receipt [00:41:04]cmd_close_receipt [00:41:04]MH_GetDate [00:41:04]Write to MH i2c: F0 00 00 99 0C 94 [00:41:04]Write i2c OK [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: F0 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: F0 09 00 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: F0 09 00 99 0C 00 21 E6 C3 66 5F 7F 2B 66 3C [00:41:04]GetLastDocTimeStamp 1724114384 [00:41:04]current date 1724114465 [00:41:04]FM_GetShiftState [00:41:04]SAM_PROTO_GetShiftState [00:41:04]wFMCommunicate request_size=4 [00:41:04]MH_SAM_APDU [00:41:04]CAPDU: 80 13 01 00 [00:41:04]Write to MH i2c: E2 08 00 9A 0C 80 13 01 00 00 00 00 00 23 [00:41:04]Write i2c OK [00:41:04]MH_I2C_Read... [00:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:04]Read from MH i2c: E2 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: E2 0E 00 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: E2 0E 00 9A 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B4 [00:41:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:41:04]wFMCommunicate OK [00:41:04]SAM_PROTO_GetShiftState done [00:41:04]FM_GetShiftState done [00:41:04]opened in 1724113785 [00:41:04]opened+sec_in_day 1724200185 [00:41:04]quantity*price = 40002 [00:41:04]sum+1 = 40003 [00:41:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 2 20.08.2024 00:41 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139530 ФПД: 15558946224764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T004105&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139530&fm=15558946224764&tin=02508201610067®Number=0000000000092569&sum=40000 [00:41:05]StoreToDocumentArchive [00:41:05]shift 453 fd 139530 [00:41:05]save to /storage/0453/doc_00139530 [00:41:05]save last doc name /storage/0453/doc_00139530 to /storage/kkm_last_doc_name [00:41:05]save OK [00:41:05]Clear old archive folders... [00:41:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:05]tlvbuf is 00CFA8F0 [00:41:05]SAM_PROTO_ClearQueue [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 09 00 00 [00:41:05]Write to MH i2c: E2 08 00 A7 0C 80 09 00 00 00 00 00 00 25 [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 03 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [00:41:05]RAPDU: 90 00 [00:41:05]wFMCommunicate OK [00:41:05]SAM_PROTO_ClearQueue done [00:41:05]KKMCreateOFDPacket [00:41:05]OFDProtocolAddRootSTLVToBuf [00:41:05]FM_MakeSignedData [00:41:05]FM_MakeSignedData [00:41:05]SAM_PROTO_SignData [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 0D 01 02 [00:41:05]Write to MH i2c: E2 08 00 A8 0C 80 0D 01 02 00 00 00 00 2D [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 03 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [00:41:05]RAPDU: 90 00 [00:41:05]wFMCommunicate OK [00:41:05]wFMCommunicate request_size=255 [00:41:05]MH_SAM_APDU [00:41: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 02 00 00 00 F4 03 04 00 21 E6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 21 02 00 35 04 06 00 0E [00:41:05]Write to MH i2c: E2 02 01 A9 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 02 00 00 00 F4 03 04 00 21 E6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 21 02 00 35 04 06 00 0E 00 00 CE [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:06]Read from MH i2c: E2 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 03 00 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [00:41:06]RAPDU: 90 00 [00:41:06]wFMCommunicate OK [00:41:06]wFMCommunicate request_size=10 [00:41:06]MH_SAM_APDU [00:41:06]CAPDU: 80 0D 02 02 05 26 99 76 7A 7C [00:41:06]Write to MH i2c: E2 0D 00 AA 0C 80 0D 02 02 05 00 26 99 76 7A 7C 00 00 65 [00:41:06]Write i2c OK [00:41:06]MH_I2C_Read... [00:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:06]Read from MH i2c: E2 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 03 00 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [00:41:06]RAPDU: 90 00 [00:41:06]wFMCommunicate OK [00:41:06]wFMCommunicate request_size=4 [00:41:06]MH_SAM_APDU [00:41:06]CAPDU: 80 0D 03 02 [00:41:06]Write to MH i2c: E2 08 00 AB 0C 80 0D 03 02 00 00 00 00 32 [00:41:06]Write i2c OK [00:41:06]MH_I2C_Read... [00:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:06]Read from MH i2c: E2 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 0B 00 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 0B 00 AB 0C 00 B9 35 B2 E6 82 35 31 83 90 00 24 [00:41:06]RAPDU: B9 35 B2 E6 82 35 31 83 90 00 [00:41:06]wFMCommunicate OK [00:41:06]SAM_PROTO_SignData done [00:41:06]FM_MakeSignedData done [00:41:06]CreateOFDProtocolMessage [00:41:06]wFMCommunicate request_size=4 [00:41:06]MH_SAM_APDU [00:41:06]CAPDU: 80 11 00 00 [00:41:06]Write to MH i2c: E2 08 00 AC 0C 80 11 00 00 00 00 00 00 32 [00:41:06]Write i2c OK [00:41:06]MH_I2C_Read... [00:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:06]Read from MH i2c: E2 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 17 00 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: E2 17 00 AC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 89 [00:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:41:06]wFMCommunicate OK [00:41:06]CreateOFDProtocolMessage done [00:41:06]OFDSenderStorePacket 139530 [00:41:06]StoreOFDPacket docnum=139530 [00:41:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AB 77 07 01 5A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 02 00 00 00 F4 03 04 00 21 E6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 21 02 00 35 04 06 00 0E 26 99 76 7A 7C B9 35 B2 E6 82 35 31 83 [00:41:06]CheckFolder [00:41:06]dirname=/storage/ofd_packets [00:41:06]CheckFolder done [00:41:06]ProducePacketName [00:41:06]name=ofd_packets/00139530 [00:41:06]NVStorageSaveData ofd_packets/00139530 [00:41:06]File name is /storage/ofd_packets/00139530 [00:41:06]Write 301 bytes [00:41:06]NVStorageSaveData done [00:41:06]OFDSenderStorePacket done [00:41:06]KKMCreateOFDPacket done [00:41:06]NVStorageSaveData kkm_last_timestamp [00:41:06]File name is /storage/kkm_last_timestamp [00:41:06]Write 4 bytes [00:41:06]NVStorageSaveData done [00:41:06]ExternCall_PrintAddStr [00:41:06]wPrintStart [00:41:06]Write to MH i2c: 01 00 00 AD 0C B9 [00:41:06]Write i2c OK [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: 01 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: 01 07 00 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: 01 07 00 AD 0C 00 00 00 00 00 FF 0F CE [00:41:06]RasterBufferAndPrint [00:41:06]line Счет N : (1)593373 [00:41:06]line ИНН: 02508201610067 [00:41:06]line Контрольно-Кассовый Чек [00:41:06]line ПРОДАЖА [00:41:06]line ТРК (МРК, ГНК) : 42 [00:41:06]line Товар: 2710124130 [00:41:06]line Аи-92-К-5 [00:41:06]line 5.900 * 67.80 [00:41:06]line = 400.02 [00:41:06]line НДС 12% НСП 1% [00:41:06]line > о реализуемом товаре [00:41:06]line ОКРУГЛЕНИЕ: -0.02 [00:41:06]line ИТОГО: 400.00 [00:41:06]line Внесено: 400.00 [00:41:06]line СДАЧА: 0.00 [00:41:06]line НСП 1% : 3.54 [00:41:06]line НДС 12% : 42.48 [00:41:06]line Наличными: 400.00 [00:41:06]line Безнал.: 0.00 [00:41:06]line Место: АЗС № 136 "Партнер Нефть" [00:41:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:41:06]line СНО: Общий режим [00:41:06]line Чек 2 20.08.2024 00:41 [00:41:06]line Смена: 453 ФФД: 1.0 [00:41:06]line ЗНМ: 0300000067 [00:41:06]line РНМ: 0000000000092569 [00:41:06]line Версия ККМ: 001 [00:41:06]line ФМ: 0000000000871776 [00:41:06]line ФД: 139530 [00:41:06]line ФПД: 15558946224764 [00:41:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T004105&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139530&fm=15558946224764&tin=02508201610067®Number=0000000000092569&sum=40000 [00:41:06]OFD Sender: Processing packet 139530 [packets to send 137, broken 136] [00:41:06]ProducePacketName [00:41:06]name=ofd_packets/00139530 [00:41:06]OFD Sender: To server: pG, [00:41:06]CommunicateWithHost lk.salyk.kg:30040 [00:41:06]ConnectInit lk.salyk.kg [00:41:06]written 0, free lines is 4095 [00:41:06]Connected sock=7 [00:41: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 37 36 0F 01 00 00 AB 77 07 01 5A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 02 00 00 00 F4 03 04 00 21 E6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 21 02 00 35 04 06 00 0E 26 99 76 7A 7C B9 35 B2 E6 82 35 31 83 [00:41: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 37 36 4F 00 00 00 7F 56 47 00 A4 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 37 36 10 04 04 00 0A 21 02 00 F4 03 04 00 B6 8C C3 66 B6 04 01 00 00 66 F8 E1 58 4F DC 09 F4 [00:41:06]CommunicateWithHost err = 0 [00:41:06]CheckOFDResponse [00:41:06]1017 (14) - 77093643461234 [00:41:06]1041 (16) - 0000000000871776 [00:41:06]1040 (4) - 139530 [00:41:06]1012 (4) - 19.08.2024 18:19 [00:41:06]1206 (1) - 0 [00:41:06]OFD Sender: Remove packet 139530 [00:41:06]ProducePacketName [00:41:06]name=ofd_packets/00139530 [00:41:06]NVStorageDeleteData [00:41:06]Write to MH i2c: 01 00 00 D8 0C E4 [00:41:06]Write i2c OK [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: 01 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: 01 07 00 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: 01 07 00 D8 0C 00 00 00 00 00 BE 0C B5 [00:41:06]RasterBufferAndPrint [00:41:06]line [00:41:06]line [00:41:06]line [00:41:06]line [00:41:06]line [00:41:06]written 0, free lines is 3268 [00:41:06]MH_Cut [00:41:06]Write to MH i2c: D1 01 00 DF 0C 01 BD [00:41:06]Write i2c OK [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: D1 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: D1 01 00 [00:41:06]MH_I2C_Read... [00:41:06]Read from MH i2c: D1 01 00 DF 0C 00 BC [00:41:06]Write to MH i2c: 01 00 00 E0 0C EC [00:41:06]Write i2c OK [00:41:06]MH_I2C_Read... [00:41:07]OFD Sender: No OFD packet to send [00:41:07]*** Cut start [00:41:07]*** Partial cut [00:41:07]*** CUTSNS_PIN = 1 [00:41:07]*** CUTSNS_PIN = 0 [00:41:07]*** Brake cut motor [00:41:08]Read from MH i2c: 01 [00:41:08]MH_I2C_Read... [00:41:08]*** Stop cut motor [00:41:08]*** Cut end [00:41:08]Read from MH i2c: 01 07 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: 01 07 00 E0 0C 00 00 00 00 00 FF 0F 01 [00:41:08]process_action close_receipt done [00:41:08]requested_data is exist [00:41:08]produce_requested_data [00:41:08]requested_item fm.sn is exist - process it [00:41:08]wFMCommunicate request_size=4 [00:41:08]MH_SAM_APDU [00:41:08]CAPDU: 80 11 00 00 [00:41:08]Write to MH i2c: E2 08 00 E1 0C 80 11 00 00 00 00 00 00 67 [00:41:08]Write i2c OK [00:41:08]MH_I2C_Read... [00:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:08]Read from MH i2c: E2 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 17 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 17 00 E1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BE [00:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:41:08]wFMCommunicate OK [00:41:08]requested_item fd.num is exist - process it [00:41:08]SAM_PROTO_GetFieldsCounters [00:41:08]wFMCommunicate request_size=4 [00:41:08]MH_SAM_APDU [00:41:08]CAPDU: 80 13 00 00 [00:41:08]Write to MH i2c: E2 08 00 E2 0C 80 13 00 00 00 00 00 00 6A [00:41:08]Write i2c OK [00:41:08]MH_I2C_Read... [00:41:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:08]Read from MH i2c: E2 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 62 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 62 00 E2 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [00:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:08]wFMCommunicate OK [00:41:08]SAM_PROTO_GetFieldsCounters done [00:41:08]requested_item shift.num is exist - process it [00:41:08]requested_item shift.opened is exist - process it [00:41:08]req_shift_opened [00:41:08]FM_GetShiftState [00:41:08]SAM_PROTO_GetShiftState [00:41:08]wFMCommunicate request_size=4 [00:41:08]MH_SAM_APDU [00:41:08]CAPDU: 80 13 01 00 [00:41:08]Write to MH i2c: E2 08 00 E3 0C 80 13 01 00 00 00 00 00 6C [00:41:08]Write i2c OK [00:41:08]MH_I2C_Read... [00:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:08]Read from MH i2c: E2 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 0E 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 0E 00 E3 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FD [00:41:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:41:08]wFMCommunicate OK [00:41:08]SAM_PROTO_GetShiftState done [00:41:08]FM_GetShiftState done [00:41:08]req_shift_opened done [00:41:08]requested_item shift.open_date is exist - process it [00:41:08]req_shift_open_date [00:41:08]req_shift_open_date done [00:41:08]produce_requested_data done [00:41:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139530,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [00:41:08]process_action_free close_receipt [00:41:08]json_value_free [00:41:08]json_value_free done [00:41:08]process_json_proto returns [00:41:08]Send response to host [00:41:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139530,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [00:41:08]free response buf [00:41:08]execute_script done [00:41:08]execute_script returns [00:41:08]free content buf [00:41:08]Sock 9.Close socket [00:41:08]Sock 9.Thread stoped [00:41:08]accept exits with 10 [00:41:08]New connection [00:41:08]New thread 3067071844 created [00:41:08]Thread 3067215204 joined [00:41:08]Waiting for new connection... [00:41:08] Sock 10.Parse request [00:41:08]Sock 10.Check first char [00:41:08]Sock 10.First char is OK [00:41:08]request: POST /json_proto HTTP/1.0 [00:41:08]Method: POST [00:41:08]URL: /json_proto [00:41:08]Method is POST - this is cgi request [00:41:08]url: /json_proto [00:41:08]query_string will be loaded in cgi processing [00:41:08]execute_cgi json_proto POST (null) [00:41:08]execute_cgi path=json_proto method=POST [00:41:08]POST find Content-Length [00:41:08]Host: 172.17.45.67:8080 [00:41:08]Content-Length: 682 [00:41:08]Content-Type: application/json [00:41:08] [00:41:08]POST finish read [00:41:08]Found Content-Length = 682 [00:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:41:08]execute_script... [00:41: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)593372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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:41:08]POST & json_proto [00:41:08]process_json_proto [00:41:08]json parsed OK: [00:41:08]protocol is kg_v1.0 [00:41:08]action value=close_receipt [00:41:08]process_action close_receipt [00:41:08]cmd_close_receipt [00:41:08]MH_GetDate [00:41:08]Write to MH i2c: F0 00 00 E4 0C DF [00:41:08]Write i2c OK [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: F0 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: F0 09 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: F0 09 00 E4 0C 00 25 E6 C3 66 5F 7F 2B 66 8B [00:41:08]GetLastDocTimeStamp 1724114465 [00:41:08]current date 1724114469 [00:41:08]FM_GetShiftState [00:41:08]SAM_PROTO_GetShiftState [00:41:08]wFMCommunicate request_size=4 [00:41:08]MH_SAM_APDU [00:41:08]CAPDU: 80 13 01 00 [00:41:08]Write to MH i2c: E2 08 00 E5 0C 80 13 01 00 00 00 00 00 6E [00:41:08]Write i2c OK [00:41:08]MH_I2C_Read... [00:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:08]Read from MH i2c: E2 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 0E 00 [00:41:08]MH_I2C_Read... [00:41:08]Read from MH i2c: E2 0E 00 E5 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FF [00:41:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:41:08]wFMCommunicate OK [00:41:08]SAM_PROTO_GetShiftState done [00:41:08]FM_GetShiftState done [00:41:08]opened in 1724113785 [00:41:08]opened+sec_in_day 1724200185 [00:41:08]quantity*price = 100021 [00:41:08]sum+1 = 100023 [00:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 3 20.08.2024 00:41 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139531 ФПД: 240050363832576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T004109&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139531&fm=240050363832576&tin=02508201610067®Number=0000000000092569&sum=100000 [00:41:10]StoreToDocumentArchive [00:41:10]shift 453 fd 139531 [00:41:10]save to /storage/0453/doc_00139531 [00:41:10]save last doc name /storage/0453/doc_00139531 to /storage/kkm_last_doc_name [00:41:10]save OK [00:41:10]Clear old archive folders... [00:41:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:10]tlvbuf is 00D49370 [00:41:10]SAM_PROTO_ClearQueue [00:41:10]wFMCommunicate request_size=4 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 09 00 00 [00:41:10]Write to MH i2c: E2 08 00 F2 0C 80 09 00 00 00 00 00 00 70 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [00:41:10]RAPDU: 90 00 [00:41:10]wFMCommunicate OK [00:41:10]SAM_PROTO_ClearQueue done [00:41:10]KKMCreateOFDPacket [00:41:10]OFDProtocolAddRootSTLVToBuf [00:41:10]FM_MakeSignedData [00:41:10]FM_MakeSignedData [00:41:10]SAM_PROTO_SignData [00:41:10]wFMCommunicate request_size=4 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 0D 01 02 [00:41:10]Write to MH i2c: E2 08 00 F3 0C 80 0D 01 02 00 00 00 00 78 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [00:41:10]RAPDU: 90 00 [00:41:10]wFMCommunicate OK [00:41:10]wFMCommunicate request_size=255 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 25 E6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 21 02 00 35 04 06 00 DA [00:41:10]Write to MH i2c: E2 02 01 F4 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 25 E6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 21 02 00 35 04 06 00 DA 00 00 33 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [00:41:10]RAPDU: 90 00 [00:41:10]wFMCommunicate OK [00:41:10]wFMCommunicate request_size=10 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 0D 02 02 05 53 14 AA 19 00 [00:41:10]Write to MH i2c: E2 0D 00 F5 0C 80 0D 02 02 05 00 53 14 AA 19 00 00 00 AF [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 03 00 F5 0C 00 90 00 75 [00:41:10]RAPDU: 90 00 [00:41:10]wFMCommunicate OK [00:41:10]wFMCommunicate request_size=4 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 0D 03 02 [00:41:10]Write to MH i2c: E2 08 00 F6 0C 80 0D 03 02 00 00 00 00 7D [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 0B 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 0B 00 F6 0C 00 2B EB 36 BE 1A F3 C7 1D 90 00 79 [00:41:10]RAPDU: 2B EB 36 BE 1A F3 C7 1D 90 00 [00:41:10]wFMCommunicate OK [00:41:10]SAM_PROTO_SignData done [00:41:10]FM_MakeSignedData done [00:41:10]CreateOFDProtocolMessage [00:41:10]wFMCommunicate request_size=4 [00:41:10]MH_SAM_APDU [00:41:10]CAPDU: 80 11 00 00 [00:41:10]Write to MH i2c: E2 08 00 F7 0C 80 11 00 00 00 00 00 00 7D [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:10]Read from MH i2c: E2 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 17 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: E2 17 00 F7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [00:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:41:10]wFMCommunicate OK [00:41:10]CreateOFDProtocolMessage done [00:41:10]OFDSenderStorePacket 139531 [00:41:10]StoreOFDPacket docnum=139531 [00:41:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B8 83 07 01 F1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 25 E6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 21 02 00 35 04 06 00 DA 53 14 AA 19 00 2B EB 36 BE 1A F3 C7 1D [00:41:10]CheckFolder [00:41:10]dirname=/storage/ofd_packets [00:41:10]CheckFolder done [00:41:10]ProducePacketName [00:41:10]name=ofd_packets/00139531 [00:41:10]NVStorageSaveData ofd_packets/00139531 [00:41:10]File name is /storage/ofd_packets/00139531 [00:41:10]Write 301 bytes [00:41:10]NVStorageSaveData done [00:41:10]OFDSenderStorePacket done [00:41:10]KKMCreateOFDPacket done [00:41:10]NVStorageSaveData kkm_last_timestamp [00:41:10]File name is /storage/kkm_last_timestamp [00:41:10]Write 4 bytes [00:41:10]NVStorageSaveData done [00:41:10]ExternCall_PrintAddStr [00:41:10]wPrintStart [00:41:10]Write to MH i2c: 01 00 00 F8 0C 04 [00:41:10]Write i2c OK [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: 01 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: 01 07 00 [00:41:10]MH_I2C_Read... [00:41:10]Read from MH i2c: 01 07 00 F8 0C 00 00 00 00 00 FF 0F 19 [00:41:10]RasterBufferAndPrint [00:41:10]line Счет N : (1)593372 [00:41:10]line ИНН: 02508201610067 [00:41:10]line Контрольно-Кассовый Чек [00:41:10]line ПРОДАЖА [00:41:10]line ТРК (МРК, ГНК) : 31 [00:41:10]line Товар: 2710124500 [00:41:10]line Аи-95-К-5 [00:41:10]line 13.480 * 74.20 [00:41:10]line = 1000.22 [00:41:10]line НДС 12% НСП 1% [00:41:10]line > о реализуемом товаре [00:41:10]line ОКРУГЛЕНИЕ: -0.22 [00:41:10]line ИТОГО: 1000.00 [00:41:10]line Внесено: 1000.00 [00:41:10]line СДАЧА: 0.00 [00:41:10]line НСП 1% : 8.85 [00:41:10]line НДС 12% : 106.22 [00:41:10]line Наличными: 1000.00 [00:41:10]line Безнал.: 0.00 [00:41:10]line Место: АЗС № 136 "Партнер Нефть" [00:41:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:41:11]line СНО: Общий режим [00:41:11]line Чек 3 20.08.2024 00:41 [00:41:11]line Смена: 453 ФФД: 1.0 [00:41:11]line ЗНМ: 0300000067 [00:41:11]line РНМ: 0000000000092569 [00:41:11]line Версия ККМ: 001 [00:41:11]line ФМ: 0000000000871776 [00:41:11]line ФД: 139531 [00:41:11]line ФПД: 240050363832576 [00:41:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T004109&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139531&fm=240050363832576&tin=02508201610067®Number=0000000000092569&sum=100000 [00:41:11]OFD Sender: Processing packet 139531 [packets to send 137, broken 136] [00:41:11]ProducePacketName [00:41:11]name=ofd_packets/00139531 [00:41:11]OFD Sender: To server: pG, [00:41:11]CommunicateWithHost lk.salyk.kg:30040 [00:41:11]ConnectInit lk.salyk.kg [00:41:11]written 0, free lines is 4095 [00:41:11]Connected sock=9 [00:41:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B8 83 07 01 F1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 25 E6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 21 02 00 35 04 06 00 DA 53 14 AA 19 00 2B EB 36 BE 1A F3 C7 1D [00:41: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 37 36 4F 00 00 00 A2 A9 47 00 8C 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 37 36 10 04 04 00 0B 21 02 00 F4 03 04 00 BB 8C C3 66 B6 04 01 00 00 DE 29 79 2D 12 E0 58 9C [00:41:11]CommunicateWithHost err = 0 [00:41:11]CheckOFDResponse [00:41:11]1017 (14) - 77093643461234 [00:41:11]1041 (16) - 0000000000871776 [00:41:11]1040 (4) - 139531 [00:41:11]1012 (4) - 19.08.2024 18:19 [00:41:11]1206 (1) - 0 [00:41:11]OFD Sender: Remove packet 139531 [00:41:11]ProducePacketName [00:41:11]name=ofd_packets/00139531 [00:41:11]NVStorageDeleteData [00:41:11]Write to MH i2c: 01 00 00 23 0D 30 [00:41:11]Write i2c OK [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: 01 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: 01 07 00 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: 01 07 00 23 0D 00 00 00 00 00 CC 0C 0F [00:41:11]RasterBufferAndPrint [00:41:11]line [00:41:11]line [00:41:11]line [00:41:11]line [00:41:11]line [00:41:11]written 0, free lines is 3288 [00:41:11]MH_Cut [00:41:11]Write to MH i2c: D1 01 00 2A 0D 01 09 [00:41:11]Write i2c OK [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: D1 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: D1 01 00 [00:41:11]MH_I2C_Read... [00:41:11]Read from MH i2c: D1 01 00 2A 0D 00 08 [00:41:11]Write to MH i2c: 01 00 00 2B 0D 38 [00:41:11]Write i2c OK [00:41:11]MH_I2C_Read... [00:41:12]OFD Sender: No OFD packet to send [00:41:12]*** Cut start [00:41:12]*** Partial cut [00:41:12]*** CUTSNS_PIN = 1 [00:41:12]*** CUTSNS_PIN = 0 [00:41:12]*** Brake cut motor [00:41:13]Read from MH i2c: 01 [00:41:13]MH_I2C_Read... [00:41:13]*** Stop cut motor [00:41:13]*** Cut end [00:41:13]Read from MH i2c: 01 07 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: 01 07 00 2B 0D 00 00 00 00 00 FF 0F 4D [00:41:13]process_action close_receipt done [00:41:13]requested_data is exist [00:41:13]produce_requested_data [00:41:13]requested_item fm.sn is exist - process it [00:41:13]wFMCommunicate request_size=4 [00:41:13]MH_SAM_APDU [00:41:13]CAPDU: 80 11 00 00 [00:41:13]Write to MH i2c: E2 08 00 2C 0D 80 11 00 00 00 00 00 00 B3 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:13]Read from MH i2c: E2 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 17 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 17 00 2C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [00:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:41:13]wFMCommunicate OK [00:41:13]requested_item fd.num is exist - process it [00:41:13]SAM_PROTO_GetFieldsCounters [00:41:13]wFMCommunicate request_size=4 [00:41:13]MH_SAM_APDU [00:41:13]CAPDU: 80 13 00 00 [00:41:13]Write to MH i2c: E2 08 00 2D 0D 80 13 00 00 00 00 00 00 B6 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:13]Read from MH i2c: E2 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 62 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 62 00 2D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:13]wFMCommunicate OK [00:41:13]SAM_PROTO_GetFieldsCounters done [00:41:13]requested_item shift.num is exist - process it [00:41:13]requested_item shift.opened is exist - process it [00:41:13]req_shift_opened [00:41:13]FM_GetShiftState [00:41:13]SAM_PROTO_GetShiftState [00:41:13]wFMCommunicate request_size=4 [00:41:13]MH_SAM_APDU [00:41:13]CAPDU: 80 13 01 00 [00:41:13]Write to MH i2c: E2 08 00 2E 0D 80 13 01 00 00 00 00 00 B8 [00:41:13]Write i2c OK [00:41:13]MH_I2C_Read... [00:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:13]Read from MH i2c: E2 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 0E 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 0E 00 2E 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 49 [00:41:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:41:13]wFMCommunicate OK [00:41:13]SAM_PROTO_GetShiftState done [00:41:13]FM_GetShiftState done [00:41:13]req_shift_opened done [00:41:13]requested_item shift.open_date is exist - process it [00:41:13]req_shift_open_date [00:41:13]req_shift_open_date done [00:41:13]produce_requested_data done [00:41:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139531,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [00:41:13]process_action_free close_receipt [00:41:13]json_value_free [00:41:13]json_value_free done [00:41:13]process_json_proto returns [00:41:13]Send response to host [00:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139531,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [00:41:13]free response buf [00:41:13]execute_script done [00:41:13]execute_script returns [00:41:13]free content buf [00:41:13]Sock 10.Close socket [00:41:13]Sock 10.Thread stoped [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:22]accept exits with 7 [01:52:22]New connection [01:52:22]New thread 3067215204 created [01:52:22]Thread 3067071844 joined [01:52:22]Waiting for new connection... [01:52:22] Sock 7.Parse request [01:52:22]Sock 7.Check first char [01:52:22]Sock 7.First char is OK [01:52:22]request: POST /json_proto HTTP/1.0 [01:52:22]Method: POST [01:52:22]URL: /json_proto [01:52:22]Method is POST - this is cgi request [01:52:22]url: /json_proto [01:52:22]query_string will be loaded in cgi processing [01:52:22]execute_cgi json_proto POST (null) [01:52:22]execute_cgi path=json_proto method=POST [01:52:22]POST find Content-Length [01:52:22]Host: 172.17.45.67:8080 [01:52:22]Content-Length: 838 [01:52:22]Content-Type: application/json [01:52:22] [01:52:22]POST finish read [01:52:22]Found Content-Length = 838 [01:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:22]execute_script... [01:52: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)593374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:22]POST & json_proto [01:52:22]process_json_proto [01:52:22]json parsed OK: [01:52:22]protocol is kg_v1.0 [01:52:22]action value=close_receipt [01:52:22]process_action close_receipt [01:52:22]cmd_close_receipt [01:52:22]MH_GetDate [01:52:22]Write to MH i2c: F0 00 00 2F 0D 2B [01:52:22]Write i2c OK [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: F0 [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: F0 09 00 [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: F0 09 00 2F 0D 00 D7 F6 C3 66 5F 7F 2B 66 99 [01:52:22]GetLastDocTimeStamp 1724114469 [01:52:22]current date 1724118743 [01:52:22]FM_GetShiftState [01:52:22]SAM_PROTO_GetShiftState [01:52:22]wFMCommunicate request_size=4 [01:52:22]MH_SAM_APDU [01:52:22]CAPDU: 80 13 01 00 [01:52:22]Write to MH i2c: E2 08 00 30 0D 80 13 01 00 00 00 00 00 BA [01:52:22]Write i2c OK [01:52:22]MH_I2C_Read... [01:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:22]Read from MH i2c: E2 [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: E2 0E 00 [01:52:22]MH_I2C_Read... [01:52:22]Read from MH i2c: E2 0E 00 30 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4B [01:52:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [01:52:22]wFMCommunicate OK [01:52:22]SAM_PROTO_GetShiftState done [01:52:22]FM_GetShiftState done [01:52:22]opened in 1724113785 [01:52:22]opened+sec_in_day 1724200185 [01:52:22]quantity*price = 100005 [01:52:22]sum+1 = 100006 [01:52:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 4 20.08.2024 01:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139532 ФПД: 266381095307910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T015223&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139532&fm=266381095307910&tin=02508201610067®Number=0000000000092569&sum=100000 [01:52:23]StoreToDocumentArchive [01:52:23]shift 453 fd 139532 [01:52:23]save to /storage/0453/doc_00139532 [01:52:23]save last doc name /storage/0453/doc_00139532 to /storage/kkm_last_doc_name [01:52:23]save OK [01:52:23]Clear old archive folders... [01:52:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:52:23]tlvbuf is B6F98670 [01:52:23]SAM_PROTO_ClearQueue [01:52:23]wFMCommunicate request_size=4 [01:52:23]MH_SAM_APDU [01:52:23]CAPDU: 80 09 00 00 [01:52:23]Write to MH i2c: E2 08 00 3D 0D 80 09 00 00 00 00 00 00 BC [01:52:23]Write i2c OK [01:52:23]MH_I2C_Read... [01:52:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:52:23]Read from MH i2c: E2 [01:52:23]MH_I2C_Read... [01:52:23]Read from MH i2c: E2 03 00 [01:52:23]MH_I2C_Read... [01:52:23]Read from MH i2c: E2 03 00 3D 0D 00 90 00 BE [01:52:23]RAPDU: 90 00 [01:52:23]wFMCommunicate OK [01:52:23]SAM_PROTO_ClearQueue done [01:52:23]KKMCreateOFDPacket [01:52:23]OFDProtocolAddRootSTLVToBuf [01:52:23]FM_MakeSignedData [01:52:23]FM_MakeSignedData [01:52:23]SAM_PROTO_SignData [01:52:23]wFMCommunicate request_size=4 [01:52:23]MH_SAM_APDU [01:52:23]CAPDU: 80 0D 01 02 [01:52:23]Write to MH i2c: E2 08 00 3E 0D 80 0D 01 02 00 00 00 00 C4 [01:52:23]Write i2c OK [01:52:23]MH_I2C_Read... [01:52:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:52:23]Read from MH i2c: E2 [01:52:23]MH_I2C_Read... [01:52:23]Read from MH i2c: E2 03 00 [01:52:23]MH_I2C_Read... [01:52:23]Read from MH i2c: E2 03 00 3E 0D 00 90 00 BF [01:52:23]RAPDU: 90 00 [01:52:23]wFMCommunicate OK [01:52:23]wFMCommunicate request_size=255 [01:52:23]MH_SAM_APDU [01:52: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D7 F6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 21 02 00 35 04 06 00 F2 [01:52:23]Write to MH i2c: E2 02 01 3F 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D7 F6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 21 02 00 35 04 06 00 F2 00 00 BD [01:52:23]Write i2c OK [01:52:23]MH_I2C_Read... [01:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:24]Read from MH i2c: E2 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: E2 03 00 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: E2 03 00 3F 0D 00 90 00 C0 [01:52:24]RAPDU: 90 00 [01:52:24]wFMCommunicate OK [01:52:24]wFMCommunicate request_size=10 [01:52:24]MH_SAM_APDU [01:52:24]CAPDU: 80 0D 02 02 05 45 AE 8F 8A 86 [01:52:24]Write to MH i2c: E2 0D 00 40 0D 80 0D 02 02 05 00 45 AE 8F 8A 86 00 00 63 [01:52:24]Write i2c OK [01:52:24]MH_I2C_Read... [01:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:24]Read from MH i2c: E2 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: E2 03 00 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [01:52:24]RAPDU: 90 00 [01:52:24]wFMCommunicate OK [01:52:24]wFMCommunicate request_size=4 [01:52:24]MH_SAM_APDU [01:52:24]CAPDU: 80 0D 03 02 [01:52:24]Write to MH i2c: E2 08 00 41 0D 80 0D 03 02 00 00 00 00 C9 [01:52:24]Write i2c OK [01:52:24]MH_I2C_Read... [01:52:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:52:24]Read from MH i2c: E2 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: E2 0B 00 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: E2 0B 00 41 0D 00 BD 69 39 DC 9A C6 D4 B2 90 00 EB [01:52:24]RAPDU: BD 69 39 DC 9A C6 D4 B2 90 00 [01:52:24]wFMCommunicate OK [01:52:24]SAM_PROTO_SignData done [01:52:24]FM_MakeSignedData done [01:52:24]CreateOFDProtocolMessage [01:52:24]wFMCommunicate request_size=4 [01:52:24]MH_SAM_APDU [01:52:24]CAPDU: 80 11 00 00 [01:52:24]Write to MH i2c: E2 08 00 42 0D 80 11 00 00 00 00 00 00 C9 [01:52:24]Write i2c OK [01:52:24]MH_I2C_Read... [01:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:24]Read from MH i2c: E2 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: E2 17 00 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: E2 17 00 42 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 20 [01:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:52:24]wFMCommunicate OK [01:52:24]CreateOFDProtocolMessage done [01:52:24]OFDSenderStorePacket 139532 [01:52:24]StoreOFDPacket docnum=139532 [01:52:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DB 91 07 01 E3 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D7 F6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 21 02 00 35 04 06 00 F2 45 AE 8F 8A 86 BD 69 39 DC 9A C6 D4 B2 [01:52:24]CheckFolder [01:52:24]dirname=/storage/ofd_packets [01:52:24]CheckFolder done [01:52:24]ProducePacketName [01:52:24]name=ofd_packets/00139532 [01:52:24]NVStorageSaveData ofd_packets/00139532 [01:52:24]File name is /storage/ofd_packets/00139532 [01:52:24]Write 301 bytes [01:52:24]NVStorageSaveData done [01:52:24]OFDSenderStorePacket done [01:52:24]KKMCreateOFDPacket done [01:52:24]NVStorageSaveData kkm_last_timestamp [01:52:24]File name is /storage/kkm_last_timestamp [01:52:24]Write 4 bytes [01:52:24]NVStorageSaveData done [01:52:24]ExternCall_PrintAddStr [01:52:24]wPrintStart [01:52:24]Write to MH i2c: 01 00 00 43 0D 50 [01:52:24]Write i2c OK [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: 01 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: 01 07 00 [01:52:24]MH_I2C_Read... [01:52:24]Read from MH i2c: 01 07 00 43 0D 00 00 00 00 00 FF 0F 65 [01:52:24]RasterBufferAndPrint [01:52:24]line Счет N : (1)593374 [01:52:24]line ИНН: 02508201610067 [01:52:24]line Контрольно-Кассовый Чек [01:52:24]line ПРОДАЖА [01:52:24]line ТРК (МРК, ГНК) : 52 [01:52:24]line Товар: 2710124130 [01:52:24]line Аи-92-К-5 [01:52:24]line 14.750 * 67.80 [01:52:24]line = 1000.05 [01:52:24]line НДС 12% НСП 1% [01:52:24]line > о реализуемом товаре [01:52:24]line ОКРУГЛЕНИЕ: -0.05 [01:52:24]line ИТОГО: 1000.00 [01:52:24]line НСП 1% : 8.85 [01:52:24]line НДС 12% : 106.20 [01:52:24]line Наличными: 0.00 [01:52:24]line Безнал.: 1000.00 [01:52:24]line Место: АЗС № 136 "Партнер Нефть" [01:52:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [01:52:24]line СНО: Общий режим [01:52:24]line Чек 4 20.08.2024 01:52 [01:52:24]line Смена: 453 ФФД: 1.0 [01:52:24]line ЗНМ: 0300000067 [01:52:24]line РНМ: 0000000000092569 [01:52:24]line Версия ККМ: 001 [01:52:24]line Платежная система: Бакай Банк [01:52:24]line ФМ: 0000000000871776 [01:52:24]line ФД: 139532 [01:52:24]line ФПД: 266381095307910 [01:52:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T015223&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139532&fm=266381095307910&tin=02508201610067®Number=0000000000092569&sum=100000 [01:52:24]OFD Sender: Processing packet 139532 [packets to send 137, broken 136] [01:52:24]ProducePacketName [01:52:24]name=ofd_packets/00139532 [01:52:24]OFD Sender: To server: pG, [01:52:24]CommunicateWithHost lk.salyk.kg:30040 [01:52:24]ConnectInit lk.salyk.kg [01:52:24]written 0, free lines is 4095 [01:52:24]Connected sock=10 [01:52: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 37 36 0F 01 00 00 DB 91 07 01 E3 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D7 F6 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 21 02 00 35 04 06 00 F2 45 AE 8F 8A 86 BD 69 39 DC 9A C6 D4 B2 [01:52:25]Write to MH i2c: 01 00 00 6E 0D 7B [01:52:25]Write i2c OK [01:52:25]MH_I2C_Read... [01:52:25]Read from MH i2c: 01 [01:52:25]MH_I2C_Read... [01:52:25]Read from MH i2c: 01 07 00 [01:52:25]MH_I2C_Read... [01:52:25]Read from MH i2c: 01 07 00 6E 0D 00 00 00 00 00 CE 0C 5C [01:52:25]RasterBufferAndPrint [01:52:25]line [01:52:25]line [01:52:25]line [01:52:25]line [01:52:25]line [01:52:25]written 0, free lines is 3285 [01:52:25]MH_Cut [01:52:25]Write to MH i2c: D1 01 00 75 0D 01 54 [01:52:25]Write i2c OK [01:52:25]MH_I2C_Read... [01:52:25]Read from MH i2c: D1 [01:52:25]MH_I2C_Read... [01:52:25]Read from MH i2c: D1 01 00 [01:52:25]MH_I2C_Read... [01:52:25]Read from MH i2c: D1 01 00 75 0D 00 53 [01:52:25]Write to MH i2c: 01 00 00 76 0D 83 [01:52:25]Write i2c OK [01:52:25]MH_I2C_Read... [01:52: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 37 36 4F 00 00 00 15 28 47 00 C6 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 37 36 10 04 04 00 0C 21 02 00 F4 03 04 00 6C 9D C3 66 B6 04 01 00 00 16 0D 4C F5 5F BA 76 93 [01:52:25]CommunicateWithHost err = 0 [01:52:25]CheckOFDResponse [01:52:25]1017 (14) - 77093643461234 [01:52:25]1041 (16) - 0000000000871776 [01:52:25]1040 (4) - 139532 [01:52:25]1012 (4) - 19.08.2024 19:30 [01:52:25]1206 (1) - 0 [01:52:25]OFD Sender: Remove packet 139532 [01:52:25]ProducePacketName [01:52:25]name=ofd_packets/00139532 [01:52:25]NVStorageDeleteData [01:52:25]OFD Sender: No OFD packet to send [01:52:25]*** Cut start [01:52:25]*** Partial cut [01:52:25]*** CUTSNS_PIN = 1 [01:52:25]*** CUTSNS_PIN = 0 [01:52:26]*** Brake cut motor [01:52:26]Read from MH i2c: 01 [01:52:26]MH_I2C_Read... [01:52:26]*** Stop cut motor [01:52:26]*** Cut end [01:52:26]Read from MH i2c: 01 07 00 [01:52:26]MH_I2C_Read... [01:52:26]Read from MH i2c: 01 07 00 76 0D 00 00 00 00 00 FF 0F 98 [01:52:26]process_action close_receipt done [01:52:26]requested_data is exist [01:52:26]produce_requested_data [01:52:26]requested_item fm.sn is exist - process it [01:52:26]wFMCommunicate request_size=4 [01:52:26]MH_SAM_APDU [01:52:26]CAPDU: 80 11 00 00 [01:52:26]Write to MH i2c: E2 08 00 77 0D 80 11 00 00 00 00 00 00 FE [01:52:26]Write i2c OK [01:52:26]MH_I2C_Read... [01:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:26]Read from MH i2c: E2 [01:52:26]MH_I2C_Read... [01:52:26]Read from MH i2c: E2 17 00 [01:52:26]MH_I2C_Read... [01:52:26]Read from MH i2c: E2 17 00 77 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [01:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:52:26]wFMCommunicate OK [01:52:26]requested_item fd.num is exist - process it [01:52:26]SAM_PROTO_GetFieldsCounters [01:52:26]wFMCommunicate request_size=4 [01:52:26]MH_SAM_APDU [01:52:26]CAPDU: 80 13 00 00 [01:52:26]Write to MH i2c: E2 08 00 78 0D 80 13 00 00 00 00 00 00 01 [01:52:26]Write i2c OK [01:52:26]MH_I2C_Read... [01:52:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:52:26]Read from MH i2c: E2 [01:52:26]MH_I2C_Read... [01:52:26]Read from MH i2c: E2 62 00 [01:52:26]MH_I2C_Read... [01:52:26]Read from MH i2c: E2 62 00 78 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [01: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:52:26]wFMCommunicate OK [01:52:26]SAM_PROTO_GetFieldsCounters done [01:52:26]requested_item shift.num is exist - process it [01:52:26]requested_item shift.opened is exist - process it [01:52:26]req_shift_opened [01:52:26]FM_GetShiftState [01:52:26]SAM_PROTO_GetShiftState [01:52:26]wFMCommunicate request_size=4 [01:52:26]MH_SAM_APDU [01:52:26]CAPDU: 80 13 01 00 [01:52:26]Write to MH i2c: E2 08 00 79 0D 80 13 01 00 00 00 00 00 03 [01:52:26]Write i2c OK [01:52:26]MH_I2C_Read... [01:52:26]Read from MH i2c: E2 [01:52:26]MH_I2C_Read... [01:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:26]Read from MH i2c: E2 0E 00 [01:52:26]MH_I2C_Read... [01:52:26]Read from MH i2c: E2 0E 00 79 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 94 [01:52:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [01:52:26]wFMCommunicate OK [01:52:26]SAM_PROTO_GetShiftState done [01:52:26]FM_GetShiftState done [01:52:26]req_shift_opened done [01:52:26]requested_item shift.open_date is exist - process it [01:52:26]req_shift_open_date [01:52:26]req_shift_open_date done [01:52:26]produce_requested_data done [01:52:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139532,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [01:52:26]process_action_free close_receipt [01:52:26]json_value_free [01:52:26]json_value_free done [01:52:26]process_json_proto returns [01:52:26]Send response to host [01:52:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139532,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [01:52:26]free response buf [01:52:26]execute_script done [01:52:26]execute_script returns [01:52:26]free content buf [01:52:26]Sock 7.Close socket [01:52:26]Sock 7.Thread stoped [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:08]accept exits with 9 [01:54:08]New connection [01:54:08]New thread 3067071844 created [01:54:08]Thread 3067215204 joined [01:54:08]Waiting for new connection... [01:54:08] Sock 9.Parse request [01:54:08]Sock 9.Check first char [01:54:08]Sock 9.First char is OK [01:54:08]request: POST /json_proto HTTP/1.0 [01:54:08]Method: POST [01:54:08]URL: /json_proto [01:54:08]Method is POST - this is cgi request [01:54:08]url: /json_proto [01:54:08]query_string will be loaded in cgi processing [01:54:08]execute_cgi json_proto POST (null) [01:54:08]execute_cgi path=json_proto method=POST [01:54:08]POST find Content-Length [01:54:08]Host: 172.17.45.67:8080 [01:54:08]Content-Length: 677 [01:54:08]Content-Type: application/json [01:54:08] [01:54:08]POST finish read [01:54:08]Found Content-Length = 677 [01:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "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" ] } } [01:54:08]execute_script... [01:54: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)593375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "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" ] } } [01:54:08]POST & json_proto [01:54:08]process_json_proto [01:54:08]json parsed OK: [01:54:08]protocol is kg_v1.0 [01:54:08]action value=close_receipt [01:54:08]process_action close_receipt [01:54:08]cmd_close_receipt [01:54:08]MH_GetDate [01:54:08]Write to MH i2c: F0 00 00 7A 0D 76 [01:54:08]Write i2c OK [01:54:08]MH_I2C_Read... [01:54:08]Read from MH i2c: F0 [01:54:08]MH_I2C_Read... [01:54:08]Read from MH i2c: F0 09 00 [01:54:08]MH_I2C_Read... [01:54:08]Read from MH i2c: F0 09 00 7A 0D 00 41 F7 C3 66 5F 7F 2B 66 4F [01:54:08]GetLastDocTimeStamp 1724118743 [01:54:08]current date 1724118849 [01:54:08]FM_GetShiftState [01:54:08]SAM_PROTO_GetShiftState [01:54:08]wFMCommunicate request_size=4 [01:54:08]MH_SAM_APDU [01:54:08]CAPDU: 80 13 01 00 [01:54:08]Write to MH i2c: E2 08 00 7B 0D 80 13 01 00 00 00 00 00 05 [01:54:08]Write i2c OK [01:54:08]MH_I2C_Read... [01:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:54:08]Read from MH i2c: E2 [01:54:08]MH_I2C_Read... [01:54:08]Read from MH i2c: E2 0E 00 [01:54:08]MH_I2C_Read... [01:54:08]Read from MH i2c: E2 0E 00 7B 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 96 [01:54:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [01:54:08]wFMCommunicate OK [01:54:08]SAM_PROTO_GetShiftState done [01:54:08]FM_GetShiftState done [01:54:08]opened in 1724113785 [01:54:08]opened+sec_in_day 1724200185 [01:54:08]quantity*price = 12000 [01:54:08]sum+1 = 12002 [01:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 5 20.08.2024 01:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139533 ФПД: 1892466648773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T015409&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139533&fm=1892466648773&tin=02508201610067®Number=0000000000092569&sum=12000 [01:54:09]StoreToDocumentArchive [01:54:09]shift 453 fd 139533 [01:54:09]save to /storage/0453/doc_00139533 [01:54:09]save last doc name /storage/0453/doc_00139533 to /storage/kkm_last_doc_name [01:54:09]save OK [01:54:09]Clear old archive folders... [01:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:54:09]tlvbuf is 00D2E3D0 [01:54:09]SAM_PROTO_ClearQueue [01:54:09]wFMCommunicate request_size=4 [01:54:09]MH_SAM_APDU [01:54:09]CAPDU: 80 09 00 00 [01:54:09]Write to MH i2c: E2 08 00 88 0D 80 09 00 00 00 00 00 00 07 [01:54:09]Write i2c OK [01:54:09]MH_I2C_Read... [01:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:54:09]Read from MH i2c: E2 [01:54:09]MH_I2C_Read... [01:54:09]Read from MH i2c: E2 03 00 [01:54:09]MH_I2C_Read... [01:54:09]Read from MH i2c: E2 03 00 88 0D 00 90 00 09 [01:54:09]RAPDU: 90 00 [01:54:09]wFMCommunicate OK [01:54:09]SAM_PROTO_ClearQueue done [01:54:09]KKMCreateOFDPacket [01:54:09]OFDProtocolAddRootSTLVToBuf [01:54:09]FM_MakeSignedData [01:54:09]FM_MakeSignedData [01:54:09]SAM_PROTO_SignData [01:54:09]wFMCommunicate request_size=4 [01:54:09]MH_SAM_APDU [01:54:09]CAPDU: 80 0D 01 02 [01:54:09]Write to MH i2c: E2 08 00 89 0D 80 0D 01 02 00 00 00 00 0F [01:54:09]Write i2c OK [01:54:09]MH_I2C_Read... [01:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:54:09]Read from MH i2c: E2 [01:54:09]MH_I2C_Read... [01:54:09]Read from MH i2c: E2 03 00 [01:54:09]MH_I2C_Read... [01:54:09]Read from MH i2c: E2 03 00 89 0D 00 90 00 0A [01:54:09]RAPDU: 90 00 [01:54:09]wFMCommunicate OK [01:54:09]wFMCommunicate request_size=255 [01:54:09]MH_SAM_APDU [01:54: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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 05 00 00 00 F4 03 04 00 41 F7 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 21 02 00 35 04 06 00 01 [01:54:09]Write to MH i2c: E2 02 01 8A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 05 00 00 00 F4 03 04 00 41 F7 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 21 02 00 35 04 06 00 01 00 00 99 [01:54:09]Write i2c OK [01:54:09]MH_I2C_Read... [01:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:09]Read from MH i2c: E2 [01:54:09]MH_I2C_Read... [01:54:09]Read from MH i2c: E2 03 00 [01:54:09]MH_I2C_Read... [01:54:09]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [01:54:09]RAPDU: 90 00 [01:54:09]wFMCommunicate OK [01:54:09]wFMCommunicate request_size=10 [01:54:09]MH_SAM_APDU [01:54:09]CAPDU: 80 0D 02 02 05 B8 9F CD 66 C5 [01:54:09]Write to MH i2c: E2 0D 00 8B 0D 80 0D 02 02 05 00 B8 9F CD 66 C5 00 00 6B [01:54:09]Write i2c OK [01:54:09]MH_I2C_Read... [01:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:09]Read from MH i2c: E2 [01:54:09]MH_I2C_Read... [01:54:09]Read from MH i2c: E2 03 00 [01:54:09]MH_I2C_Read... [01:54:09]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [01:54:09]RAPDU: 90 00 [01:54:09]wFMCommunicate OK [01:54:09]wFMCommunicate request_size=4 [01:54:09]MH_SAM_APDU [01:54:09]CAPDU: 80 0D 03 02 [01:54:09]Write to MH i2c: E2 08 00 8C 0D 80 0D 03 02 00 00 00 00 14 [01:54:09]Write i2c OK [01:54:09]MH_I2C_Read... [01:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:54:10]Read from MH i2c: E2 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: E2 0B 00 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: E2 0B 00 8C 0D 00 73 0D D2 8C 4E 95 08 A9 90 00 87 [01:54:10]RAPDU: 73 0D D2 8C 4E 95 08 A9 90 00 [01:54:10]wFMCommunicate OK [01:54:10]SAM_PROTO_SignData done [01:54:10]FM_MakeSignedData done [01:54:10]CreateOFDProtocolMessage [01:54:10]wFMCommunicate request_size=4 [01:54:10]MH_SAM_APDU [01:54:10]CAPDU: 80 11 00 00 [01:54:10]Write to MH i2c: E2 08 00 8D 0D 80 11 00 00 00 00 00 00 14 [01:54:10]Write i2c OK [01:54:10]MH_I2C_Read... [01:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:10]Read from MH i2c: E2 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: E2 17 00 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: E2 17 00 8D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6B [01:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:54:10]wFMCommunicate OK [01:54:10]CreateOFDProtocolMessage done [01:54:10]OFDSenderStorePacket 139533 [01:54:10]StoreOFDPacket docnum=139533 [01:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 47 0E 07 01 65 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 05 00 00 00 F4 03 04 00 41 F7 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 21 02 00 35 04 06 00 01 B8 9F CD 66 C5 73 0D D2 8C 4E 95 08 A9 [01:54:10]CheckFolder [01:54:10]dirname=/storage/ofd_packets [01:54:10]CheckFolder done [01:54:10]ProducePacketName [01:54:10]name=ofd_packets/00139533 [01:54:10]NVStorageSaveData ofd_packets/00139533 [01:54:10]File name is /storage/ofd_packets/00139533 [01:54:10]Write 301 bytes [01:54:10]NVStorageSaveData done [01:54:10]OFDSenderStorePacket done [01:54:10]KKMCreateOFDPacket done [01:54:10]NVStorageSaveData kkm_last_timestamp [01:54:10]File name is /storage/kkm_last_timestamp [01:54:10]Write 4 bytes [01:54:10]NVStorageSaveData done [01:54:10]ExternCall_PrintAddStr [01:54:10]wPrintStart [01:54:10]Write to MH i2c: 01 00 00 8E 0D 9B [01:54:10]Write i2c OK [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: 01 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: 01 07 00 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: 01 07 00 8E 0D 00 00 00 00 00 FF 0F B0 [01:54:10]RasterBufferAndPrint [01:54:10]line Счет N : (1)593375 [01:54:10]line ИНН: 02508201610067 [01:54:10]line Контрольно-Кассовый Чек [01:54:10]line ПРОДАЖА [01:54:10]line ТРК (МРК, ГНК) : 42 [01:54:10]line Товар: 2710124130 [01:54:10]line Аи-92-К-5 [01:54:10]line 1.770 * 67.80 [01:54:10]line = 120.01 [01:54:10]line НДС 12% НСП 1% [01:54:10]line > о реализуемом товаре [01:54:10]line ОКРУГЛЕНИЕ: -0.01 [01:54:10]line ИТОГО: 120.00 [01:54:10]line Внесено: 120.00 [01:54:10]line СДАЧА: 0.00 [01:54:10]line НСП 1% : 1.06 [01:54:10]line НДС 12% : 12.74 [01:54:10]line Наличными: 120.00 [01:54:10]line Безнал.: 0.00 [01:54:10]line Место: АЗС № 136 "Партнер Нефть" [01:54:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [01:54:10]line СНО: Общий режим [01:54:10]line Чек 5 20.08.2024 01:54 [01:54:10]line Смена: 453 ФФД: 1.0 [01:54:10]line ЗНМ: 0300000067 [01:54:10]line РНМ: 0000000000092569 [01:54:10]line Версия ККМ: 001 [01:54:10]line ФМ: 0000000000871776 [01:54:10]line ФД: 139533 [01:54:10]line ФПД: 1892466648773 [01:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T015409&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139533&fm=1892466648773&tin=02508201610067®Number=0000000000092569&sum=12000 [01:54:10]OFD Sender: Processing packet 139533 [packets to send 137, broken 136] [01:54:10]ProducePacketName [01:54:10]name=ofd_packets/00139533 [01:54:10]OFD Sender: To server: pG, [01:54:10]CommunicateWithHost lk.salyk.kg:30040 [01:54:10]ConnectInit lk.salyk.kg [01:54:10]written 0, free lines is 4095 [01:54:10]Connected sock=10 [01:54: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 37 36 0F 01 00 00 47 0E 07 01 65 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 05 00 00 00 F4 03 04 00 41 F7 C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 21 02 00 35 04 06 00 01 B8 9F CD 66 C5 73 0D D2 8C 4E 95 08 A9 [01:54:10]Write to MH i2c: 01 00 00 B9 0D C6 [01:54:10]Write i2c OK [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: 01 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: 01 07 00 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: 01 07 00 B9 0D 00 00 00 00 00 B8 0C 91 [01:54:10]RasterBufferAndPrint [01:54:10]line [01:54:10]line [01:54:10]line [01:54:10]line [01:54:10]line [01:54:10]written 0, free lines is 3263 [01:54:10]MH_Cut [01:54:10]Write to MH i2c: D1 01 00 C0 0D 01 9F [01:54:10]Write i2c OK [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: D1 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: D1 01 00 [01:54:10]MH_I2C_Read... [01:54:10]Read from MH i2c: D1 01 00 C0 0D 00 9E [01:54:10]Write to MH i2c: 01 00 00 C1 0D CE [01:54:10]Write i2c OK [01:54:10]MH_I2C_Read... [01:54: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 37 36 4F 00 00 00 BB E0 47 00 D7 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 37 36 10 04 04 00 0D 21 02 00 F4 03 04 00 D6 9D C3 66 B6 04 01 00 00 ED 21 AF 78 0A 1A 7F F8 [01:54:10]CommunicateWithHost err = 0 [01:54:10]CheckOFDResponse [01:54:10]1017 (14) - 77093643461234 [01:54:10]1041 (16) - 0000000000871776 [01:54:10]1040 (4) - 139533 [01:54:10]1012 (4) - 19.08.2024 19:32 [01:54:10]1206 (1) - 0 [01:54:10]OFD Sender: Remove packet 139533 [01:54:10]ProducePacketName [01:54:10]name=ofd_packets/00139533 [01:54:10]NVStorageDeleteData [01:54:11]OFD Sender: No OFD packet to send [01:54:11]*** Cut start [01:54:11]*** Partial cut [01:54:11]*** CUTSNS_PIN = 1 [01:54:11]*** CUTSNS_PIN = 0 [01:54:11]*** Brake cut motor [01:54:12]Read from MH i2c: 01 [01:54:12]MH_I2C_Read... [01:54:12]*** Stop cut motor [01:54:12]*** Cut end [01:54:12]Read from MH i2c: 01 07 00 [01:54:12]MH_I2C_Read... [01:54:12]Read from MH i2c: 01 07 00 C1 0D 00 00 00 00 00 FF 0F E3 [01:54:12]process_action close_receipt done [01:54:12]requested_data is exist [01:54:12]produce_requested_data [01:54:12]requested_item fm.sn is exist - process it [01:54:12]wFMCommunicate request_size=4 [01:54:12]MH_SAM_APDU [01:54:12]CAPDU: 80 11 00 00 [01:54:12]Write to MH i2c: E2 08 00 C2 0D 80 11 00 00 00 00 00 00 49 [01:54:12]Write i2c OK [01:54:12]MH_I2C_Read... [01:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:12]Read from MH i2c: E2 [01:54:12]MH_I2C_Read... [01:54:12]Read from MH i2c: E2 17 00 [01:54:12]MH_I2C_Read... [01:54:12]Read from MH i2c: E2 17 00 C2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [01:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:54:12]wFMCommunicate OK [01:54:12]requested_item fd.num is exist - process it [01:54:12]SAM_PROTO_GetFieldsCounters [01:54:12]wFMCommunicate request_size=4 [01:54:12]MH_SAM_APDU [01:54:12]CAPDU: 80 13 00 00 [01:54:12]Write to MH i2c: E2 08 00 C3 0D 80 13 00 00 00 00 00 00 4C [01:54:12]Write i2c OK [01:54:12]MH_I2C_Read... [01:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:54:12]Read from MH i2c: E2 [01:54:12]MH_I2C_Read... [01:54:12]Read from MH i2c: E2 62 00 [01:54:12]MH_I2C_Read... [01:54:12]Read from MH i2c: E2 62 00 C3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [01:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:54:12]wFMCommunicate OK [01:54:12]SAM_PROTO_GetFieldsCounters done [01:54:12]requested_item shift.num is exist - process it [01:54:12]requested_item shift.opened is exist - process it [01:54:12]req_shift_opened [01:54:12]FM_GetShiftState [01:54:12]SAM_PROTO_GetShiftState [01:54:12]wFMCommunicate request_size=4 [01:54:12]MH_SAM_APDU [01:54:12]CAPDU: 80 13 01 00 [01:54:12]Write to MH i2c: E2 08 00 C4 0D 80 13 01 00 00 00 00 00 4E [01:54:12]Write i2c OK [01:54:12]MH_I2C_Read... [01:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:54:12]Read from MH i2c: E2 [01:54:12]MH_I2C_Read... [01:54:12]Read from MH i2c: E2 0E 00 [01:54:12]MH_I2C_Read... [01:54:12]Read from MH i2c: E2 0E 00 C4 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DF [01:54:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [01:54:12]wFMCommunicate OK [01:54:12]SAM_PROTO_GetShiftState done [01:54:12]FM_GetShiftState done [01:54:12]req_shift_opened done [01:54:12]requested_item shift.open_date is exist - process it [01:54:12]req_shift_open_date [01:54:12]req_shift_open_date done [01:54:12]produce_requested_data done [01:54:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139533,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [01:54:12]process_action_free close_receipt [01:54:12]json_value_free [01:54:12]json_value_free done [01:54:12]process_json_proto returns [01:54:12]Send response to host [01:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139533,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [01:54:12]free response buf [01:54:12]execute_script done [01:54:12]execute_script returns [01:54:12]free content buf [01:54:12]Sock 9.Close socket [01:54:12]Sock 9.Thread stoped [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]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:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:07]accept exits with 7 [02:26:07]New connection [02:26:07]New thread 3067215204 created [02:26:07]Thread 3067071844 joined [02:26:07]Waiting for new connection... [02:26:07] Sock 7.Parse request [02:26:07]Sock 7.Check first char [02:26:07]Sock 7.First char is OK [02:26:07]request: POST /json_proto HTTP/1.0 [02:26:07]Method: POST [02:26:07]URL: /json_proto [02:26:07]Method is POST - this is cgi request [02:26:07]url: /json_proto [02:26:07]query_string will be loaded in cgi processing [02:26:07]execute_cgi json_proto POST (null) [02:26:07]execute_cgi path=json_proto method=POST [02:26:07]POST find Content-Length [02:26:07]Host: 172.17.45.67:8080 [02:26:07]Content-Length: 677 [02:26:07]Content-Type: application/json [02:26:07] [02:26:07]POST finish read [02:26:07]Found Content-Length = 677 [02:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:07]execute_script... [02:26: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)593376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:07]POST & json_proto [02:26:07]process_json_proto [02:26:07]json parsed OK: [02:26:07]protocol is kg_v1.0 [02:26:07]action value=close_receipt [02:26:07]process_action close_receipt [02:26:07]cmd_close_receipt [02:26:07]MH_GetDate [02:26:07]Write to MH i2c: F0 00 00 C5 0D C1 [02:26:07]Write i2c OK [02:26:07]MH_I2C_Read... [02:26:07]Read from MH i2c: F0 [02:26:07]MH_I2C_Read... [02:26:07]Read from MH i2c: F0 09 00 [02:26:07]MH_I2C_Read... [02:26:07]Read from MH i2c: F0 09 00 C5 0D 00 C0 FE C3 66 5F 7F 2B 66 20 [02:26:07]GetLastDocTimeStamp 1724118849 [02:26:07]current date 1724120768 [02:26:07]FM_GetShiftState [02:26:07]SAM_PROTO_GetShiftState [02:26:07]wFMCommunicate request_size=4 [02:26:07]MH_SAM_APDU [02:26:07]CAPDU: 80 13 01 00 [02:26:07]Write to MH i2c: E2 08 00 C6 0D 80 13 01 00 00 00 00 00 50 [02:26:07]Write i2c OK [02:26:07]MH_I2C_Read... [02:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:07]Read from MH i2c: E2 [02:26:07]MH_I2C_Read... [02:26:07]Read from MH i2c: E2 0E 00 [02:26:07]MH_I2C_Read... [02:26:07]Read from MH i2c: E2 0E 00 C6 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E1 [02:26:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [02:26:07]wFMCommunicate OK [02:26:07]SAM_PROTO_GetShiftState done [02:26:07]FM_GetShiftState done [02:26:07]opened in 1724113785 [02:26:07]opened+sec_in_day 1724200185 [02:26:07]quantity*price = 50010 [02:26:07]sum+1 = 50012 [02:26:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 6 20.08.2024 02:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139534 ФПД: 28467888410369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T022608&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139534&fm=28467888410369&tin=02508201610067®Number=0000000000092569&sum=50000 [02:26:08]StoreToDocumentArchive [02:26:08]shift 453 fd 139534 [02:26:08]save to /storage/0453/doc_00139534 [02:26:08]save last doc name /storage/0453/doc_00139534 to /storage/kkm_last_doc_name [02:26:08]save OK [02:26:08]Clear old archive folders... [02:26:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:26:08]tlvbuf is 00D1B280 [02:26:08]SAM_PROTO_ClearQueue [02:26:08]wFMCommunicate request_size=4 [02:26:08]MH_SAM_APDU [02:26:08]CAPDU: 80 09 00 00 [02:26:08]Write to MH i2c: E2 08 00 D3 0D 80 09 00 00 00 00 00 00 52 [02:26:08]Write i2c OK [02:26:08]MH_I2C_Read... [02:26:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:26:08]Read from MH i2c: E2 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 03 00 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [02:26:08]RAPDU: 90 00 [02:26:08]wFMCommunicate OK [02:26:08]SAM_PROTO_ClearQueue done [02:26:08]KKMCreateOFDPacket [02:26:08]OFDProtocolAddRootSTLVToBuf [02:26:08]FM_MakeSignedData [02:26:08]FM_MakeSignedData [02:26:08]SAM_PROTO_SignData [02:26:08]wFMCommunicate request_size=4 [02:26:08]MH_SAM_APDU [02:26:08]CAPDU: 80 0D 01 02 [02:26:08]Write to MH i2c: E2 08 00 D4 0D 80 0D 01 02 00 00 00 00 5A [02:26:08]Write i2c OK [02:26:08]MH_I2C_Read... [02:26:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:26:08]Read from MH i2c: E2 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 03 00 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [02:26:08]RAPDU: 90 00 [02:26:08]wFMCommunicate OK [02:26:08]wFMCommunicate request_size=255 [02:26:08]MH_SAM_APDU [02:26:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C0 FE C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 21 02 00 35 04 06 00 19 [02:26:08]Write to MH i2c: E2 02 01 D5 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C0 FE C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 21 02 00 35 04 06 00 19 00 00 C8 [02:26:08]Write i2c OK [02:26:08]MH_I2C_Read... [02:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:08]Read from MH i2c: E2 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 03 00 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [02:26:08]RAPDU: 90 00 [02:26:08]wFMCommunicate OK [02:26:08]wFMCommunicate request_size=10 [02:26:08]MH_SAM_APDU [02:26:08]CAPDU: 80 0D 02 02 05 E4 32 60 4F 01 [02:26:08]Write to MH i2c: E2 0D 00 D6 0D 80 0D 02 02 05 00 E4 32 60 4F 01 00 00 2D [02:26:08]Write i2c OK [02:26:08]MH_I2C_Read... [02:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:08]Read from MH i2c: E2 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 03 00 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [02:26:08]RAPDU: 90 00 [02:26:08]wFMCommunicate OK [02:26:08]wFMCommunicate request_size=4 [02:26:08]MH_SAM_APDU [02:26:08]CAPDU: 80 0D 03 02 [02:26:08]Write to MH i2c: E2 08 00 D7 0D 80 0D 03 02 00 00 00 00 5F [02:26:08]OFD Sender: No OFD packet to send [02:26:08]Write i2c OK [02:26:08]MH_I2C_Read... [02:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:26:08]Read from MH i2c: E2 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 0B 00 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 0B 00 D7 0D 00 7F 2C C8 AA 27 92 7F E1 90 00 96 [02:26:08]RAPDU: 7F 2C C8 AA 27 92 7F E1 90 00 [02:26:08]wFMCommunicate OK [02:26:08]SAM_PROTO_SignData done [02:26:08]FM_MakeSignedData done [02:26:08]CreateOFDProtocolMessage [02:26:08]wFMCommunicate request_size=4 [02:26:08]MH_SAM_APDU [02:26:08]CAPDU: 80 11 00 00 [02:26:08]Write to MH i2c: E2 08 00 D8 0D 80 11 00 00 00 00 00 00 5F [02:26:08]Write i2c OK [02:26:08]MH_I2C_Read... [02:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:08]Read from MH i2c: E2 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 17 00 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: E2 17 00 D8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B6 [02:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [02:26:08]wFMCommunicate OK [02:26:08]CreateOFDProtocolMessage done [02:26:08]OFDSenderStorePacket 139534 [02:26:08]StoreOFDPacket docnum=139534 [02:26:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AA DF 07 01 6C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C0 FE C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 21 02 00 35 04 06 00 19 E4 32 60 4F 01 7F 2C C8 AA 27 92 7F E1 [02:26:08]CheckFolder [02:26:08]dirname=/storage/ofd_packets [02:26:08]CheckFolder done [02:26:08]ProducePacketName [02:26:08]name=ofd_packets/00139534 [02:26:08]NVStorageSaveData ofd_packets/00139534 [02:26:08]File name is /storage/ofd_packets/00139534 [02:26:08]Write 301 bytes [02:26:08]NVStorageSaveData done [02:26:08]OFDSenderStorePacket done [02:26:08]KKMCreateOFDPacket done [02:26:08]NVStorageSaveData kkm_last_timestamp [02:26:08]File name is /storage/kkm_last_timestamp [02:26:08]Write 4 bytes [02:26:08]NVStorageSaveData done [02:26:08]ExternCall_PrintAddStr [02:26:08]wPrintStart [02:26:08]Write to MH i2c: 01 00 00 D9 0D E6 [02:26:08]OFD Sender: Processing packet 139534 [packets to send 137, broken 136] [02:26:08]ProducePacketName [02:26:08]name=ofd_packets/00139534 [02:26:08]OFD Sender: To server: pG, [02:26:08]CommunicateWithHost lk.salyk.kg:30040 [02:26:08]ConnectInit lk.salyk.kg [02:26:08]Write i2c OK [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: 01 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: 01 07 00 [02:26:08]MH_I2C_Read... [02:26:08]Read from MH i2c: 01 07 00 D9 0D 00 00 00 00 00 FF 0F FB [02:26:08]RasterBufferAndPrint [02:26:08]line Счет N : (1)593376 [02:26:08]line ИНН: 02508201610067 [02:26:08]line Контрольно-Кассовый Чек [02:26:08]line ПРОДАЖА [02:26:08]line ТРК (МРК, ГНК) : 51 [02:26:08]line Товар: 2710124500 [02:26:08]line Аи-95-К-5 [02:26:08]line 6.740 * 74.20 [02:26:08]line = 500.11 [02:26:08]line НДС 12% НСП 1% [02:26:08]line > о реализуемом товаре [02:26:08]line ОКРУГЛЕНИЕ: -0.11 [02:26:08]line ИТОГО: 500.00 [02:26:08]line Внесено: 500.00 [02:26:08]line СДАЧА: 0.00 [02:26:08]line НСП 1% : 4.43 [02:26:08]line НДС 12% : 53.11 [02:26:08]line Наличными: 500.00 [02:26:08]line Безнал.: 0.00 [02:26:08]line Место: АЗС № 136 "Партнер Нефть" [02:26:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [02:26:08]line СНО: Общий режим [02:26:08]line Чек 6 20.08.2024 02:26 [02:26:08]line Смена: 453 ФФД: 1.0 [02:26:08]line ЗНМ: 0300000067 [02:26:08]line РНМ: 0000000000092569 [02:26:08]line Версия ККМ: 001 [02:26:08]line ФМ: 0000000000871776 [02:26:08]line ФД: 139534 [02:26:08]line ФПД: 28467888410369 [02:26:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T022608&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139534&fm=28467888410369&tin=02508201610067®Number=0000000000092569&sum=50000 [02:26:09]Connected sock=10 [02:26: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 37 36 0F 01 00 00 AA DF 07 01 6C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C0 FE C3 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 21 02 00 35 04 06 00 19 E4 32 60 4F 01 7F 2C C8 AA 27 92 7F E1 [02:26:09]written 0, free lines is 4095 [02: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 37 36 4F 00 00 00 7A 00 47 00 52 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 21 02 00 F4 03 04 00 54 A5 C3 66 B6 04 01 00 00 9E F2 61 E5 B7 47 C3 AD [02:26:09]CommunicateWithHost err = 0 [02:26:09]CheckOFDResponse [02:26:09]1017 (14) - 77093643461234 [02:26:09]1041 (16) - 0000000000871776 [02:26:09]1040 (4) - 139534 [02:26:09]1012 (4) - 19.08.2024 20:04 [02:26:09]1206 (1) - 0 [02:26:09]OFD Sender: Remove packet 139534 [02:26:09]ProducePacketName [02:26:09]name=ofd_packets/00139534 [02:26:09]NVStorageDeleteData [02:26:09]Write to MH i2c: 01 00 00 04 0E 12 [02:26:09]Write i2c OK [02:26:09]MH_I2C_Read... [02:26:09]Read from MH i2c: 01 [02:26:09]MH_I2C_Read... [02:26:09]Read from MH i2c: 01 07 00 [02:26:09]MH_I2C_Read... [02:26:09]Read from MH i2c: 01 07 00 04 0E 00 00 00 00 00 B7 0C DC [02:26:09]RasterBufferAndPrint [02:26:09]line [02:26:09]line [02:26:09]line [02:26:09]line [02:26:09]line [02:26:09]written 0, free lines is 3262 [02:26:09]MH_Cut [02:26:09]Write to MH i2c: D1 01 00 0B 0E 01 EB [02:26:09]Write i2c OK [02:26:09]MH_I2C_Read... [02:26:09]Read from MH i2c: D1 [02:26:09]MH_I2C_Read... [02:26:09]Read from MH i2c: D1 01 00 [02:26:09]MH_I2C_Read... [02:26:09]Read from MH i2c: D1 01 00 0B 0E 00 EA [02:26:09]Write to MH i2c: 01 00 00 0C 0E 1A [02:26:09]Write i2c OK [02:26:09]MH_I2C_Read... [02:26:10]OFD Sender: No OFD packet to send [02:26:10]*** Cut start [02:26:10]*** Partial cut [02:26:10]*** CUTSNS_PIN = 1 [02:26:10]*** CUTSNS_PIN = 0 [02:26:10]*** Brake cut motor [02:26:11]Read from MH i2c: 01 [02:26:11]MH_I2C_Read... [02:26:11]*** Stop cut motor [02:26:11]*** Cut end [02:26:11]Read from MH i2c: 01 07 00 [02:26:11]MH_I2C_Read... [02:26:11]Read from MH i2c: 01 07 00 0C 0E 00 00 00 00 00 FF 0F 2F [02:26:11]process_action close_receipt done [02:26:11]requested_data is exist [02:26:11]produce_requested_data [02:26:11]requested_item fm.sn is exist - process it [02:26:11]wFMCommunicate request_size=4 [02:26:11]MH_SAM_APDU [02:26:11]CAPDU: 80 11 00 00 [02:26:11]Write to MH i2c: E2 08 00 0D 0E 80 11 00 00 00 00 00 00 95 [02:26:11]Write i2c OK [02:26:11]MH_I2C_Read... [02:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:11]Read from MH i2c: E2 [02:26:11]MH_I2C_Read... [02:26:11]Read from MH i2c: E2 17 00 [02:26:11]MH_I2C_Read... [02:26:11]Read from MH i2c: E2 17 00 0D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EC [02:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [02:26:11]wFMCommunicate OK [02:26:11]requested_item fd.num is exist - process it [02:26:11]SAM_PROTO_GetFieldsCounters [02:26:11]wFMCommunicate request_size=4 [02:26:11]MH_SAM_APDU [02:26:11]CAPDU: 80 13 00 00 [02:26:11]Write to MH i2c: E2 08 00 0E 0E 80 13 00 00 00 00 00 00 98 [02:26:11]Write i2c OK [02:26:11]MH_I2C_Read... [02:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:26:11]Read from MH i2c: E2 [02:26:11]MH_I2C_Read... [02:26:11]Read from MH i2c: E2 62 00 [02:26:11]MH_I2C_Read... [02:26:11]Read from MH i2c: E2 62 00 0E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [02:26: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:26:11]wFMCommunicate OK [02:26:11]SAM_PROTO_GetFieldsCounters done [02:26:11]requested_item shift.num is exist - process it [02:26:11]requested_item shift.opened is exist - process it [02:26:11]req_shift_opened [02:26:11]FM_GetShiftState [02:26:11]SAM_PROTO_GetShiftState [02:26:11]wFMCommunicate request_size=4 [02:26:11]MH_SAM_APDU [02:26:11]CAPDU: 80 13 01 00 [02:26:11]Write to MH i2c: E2 08 00 0F 0E 80 13 01 00 00 00 00 00 9A [02:26:11]Write i2c OK [02:26:11]MH_I2C_Read... [02:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:11]Read from MH i2c: E2 [02:26:11]MH_I2C_Read... [02:26:11]Read from MH i2c: E2 0E 00 [02:26:11]MH_I2C_Read... [02:26:11]Read from MH i2c: E2 0E 00 0F 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2B [02:26:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [02:26:11]wFMCommunicate OK [02:26:11]SAM_PROTO_GetShiftState done [02:26:11]FM_GetShiftState done [02:26:11]req_shift_opened done [02:26:11]requested_item shift.open_date is exist - process it [02:26:11]req_shift_open_date [02:26:11]req_shift_open_date done [02:26:11]produce_requested_data done [02:26:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139534,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [02:26:11]process_action_free close_receipt [02:26:11]json_value_free [02:26:11]json_value_free done [02:26:11]process_json_proto returns [02:26:11]Send response to host [02:26:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139534,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [02:26:11]free response buf [02:26:11]execute_script done [02:26:11]execute_script returns [02:26:11]free content buf [02:26:11]Sock 7.Close socket [02:26:11]Sock 7.Thread stoped [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39: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:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53: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:27]OFD Sender: No OFD packet to send [02:57:32]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:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]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:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]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